Commit e91c3f91 authored by zhanglongbao's avatar zhanglongbao

fix

parent 786b1dcd
...@@ -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: {
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment