Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jisu_gongdan_phone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglongbao
jisu_gongdan_phone
Commits
e91c3f91
Commit
e91c3f91
authored
Sep 13, 2024
by
zhanglongbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
786b1dcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
order.ts
src/api/methods/order.ts
+12
-3
index.vue
src/view/code_product_detail/index.vue
+17
-3
No files found.
src/api/methods/order.ts
View file @
e91c3f91
...
@@ -8,7 +8,10 @@ export default {
...
@@ -8,7 +8,10 @@ export default {
},
},
// 工单列表
// 工单列表
listOrder
(
params
:
{
form_id
?:
string
;
where
?:
string
})
{
listOrder
(
params
:
{
form_id
?:
string
;
where
?:
string
})
{
return
http
.
post
(
"/order.order/listOrder"
,
params
);
return
http
.
post
(
`/order.
${
container
.
qr_code
?
"external"
:
"order"
}
/listOrder`
,
params
);
},
},
// 工单列表
// 工单列表
deleteOrder
(
params
:
{
data
:
{
form_id
:
string
;
id
:
string
}[]
})
{
deleteOrder
(
params
:
{
data
:
{
form_id
:
string
;
id
:
string
}[]
})
{
...
@@ -16,7 +19,10 @@ export default {
...
@@ -16,7 +19,10 @@ export default {
},
},
// 新建/修改工单
// 新建/修改工单
saveOrder
(
params
:
any
)
{
saveOrder
(
params
:
any
)
{
return
http
.
post
(
"/order.order/saveOrder"
,
params
);
return
http
.
post
(
`/order.
${
container
.
qr_code
?
"external"
:
"order"
}
/saveOrder`
,
params
);
},
},
// 工单详情
// 工单详情
orderDetail
(
params
:
{
form_id
:
string
;
id
:
string
})
{
orderDetail
(
params
:
{
form_id
:
string
;
id
:
string
})
{
...
@@ -57,7 +63,10 @@ export default {
...
@@ -57,7 +63,10 @@ export default {
},
},
// 工单标签
// 工单标签
listOrderLabel
(
params
:
{
keyword
?:
string
;
page
:
number
;
size
:
number
})
{
listOrderLabel
(
params
:
{
keyword
?:
string
;
page
:
number
;
size
:
number
})
{
return
http
.
post
(
`/order.
${
container
.
qr_code
?
"external"
:
"order"
}
/listOrderLabel`
,
params
);
return
http
.
post
(
`/order.
${
container
.
qr_code
?
"external"
:
"order"
}
/listOrderLabel`
,
params
);
},
},
// 指派列表
// 指派列表
assignOrderList
(
params
:
{
assignOrderList
(
params
:
{
...
...
src/view/code_product_detail/index.vue
View file @
e91c3f91
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
<div
<div
class=
"order"
class=
"order"
v-if=
"product_detail.have_dealing_order"
v-if=
"product_detail.have_dealing_order"
:style=
"
{ background: hexToRgba('#f5a034', 0.15) }"
:style=
"
{
background: hexToRgba('#f5a034', 0.15),
color: 'var(--orange)',
}"
@click="toOrderList">
@click="toOrderList">
<i
class=
"icon-131"
></i>
<i
class=
"icon-131"
></i>
<span>
<span>
...
@@ -19,6 +22,19 @@
...
@@ -19,6 +22,19 @@
<i
class=
"icon-46"
></i>
<i
class=
"icon-46"
></i>
</div>
</div>
<div
class=
"order"
v-else
:style=
"
{
background: hexToRgba('#1779fc', 0.15),
color: 'var(--blue)',
}"
@click="toOrderList">
<i
class=
"icon-43"
></i>
<span>
查看产品历史工单
</span>
<i
class=
"icon-46"
></i>
</div>
<span
<span
class=
"title"
class=
"title"
v-if=
"detail_config?.show_customer_fields?.length"
>
v-if=
"detail_config?.show_customer_fields?.length"
>
...
@@ -233,8 +249,6 @@ init();
...
@@ -233,8 +249,6 @@ init();
.order {
.order {
display: flex;
display: flex;
align-items: center;
align-items: center;
color: var(--orange);
background-color: red;
padding: 10px;
padding: 10px;
border-radius: 6px;
border-radius: 6px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment