Commit e91c3f91 authored by zhanglongbao's avatar zhanglongbao

fix

parent 786b1dcd
......@@ -8,7 +8,10 @@ export default {
},
// 工单列表
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 }[] }) {
......@@ -16,7 +19,10 @@ export default {
},
// 新建/修改工单
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 }) {
......@@ -57,7 +63,10 @@ export default {
},
// 工单标签
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: {
......
......@@ -8,7 +8,10 @@
<div
class="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">
<i class="icon-131"></i>
<span>
......@@ -19,6 +22,19 @@
<i class="icon-46"></i>
</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
class="title"
v-if="detail_config?.show_customer_fields?.length">
......@@ -233,8 +249,6 @@ init();
.order {
display: flex;
align-items: center;
color: var(--orange);
background-color: red;
padding: 10px;
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