feat(合同/客户): 添加发货单据展示功能
在合同和客户详情页新增发货单据标签页,展示wmsDeliveryWaybills数据 移除CustomerOrder中未使用的getSummary方法和相关代码
This commit is contained in:
@@ -108,8 +108,6 @@ export default {
|
||||
rules: {
|
||||
},
|
||||
orderId: '',
|
||||
// customerList: [],
|
||||
currentCustomer: {},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -123,46 +121,12 @@ export default {
|
||||
if (newVal !== oldVal) {
|
||||
this.queryParams.customerId = newVal;
|
||||
this.getList();
|
||||
this.getSummary();
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 查询正式订单主列表 */
|
||||
getSummary() {
|
||||
Promise.all(
|
||||
[
|
||||
listOrder({
|
||||
pageNum: 1,
|
||||
pageSize: 1,
|
||||
customerId: this.customerId,
|
||||
preOrderStatus: 0, // 待审核
|
||||
}),
|
||||
listOrder({
|
||||
pageNum: 1,
|
||||
pageSize: 1,
|
||||
customerId: this.customerId,
|
||||
preOrderStatus: 1, // 已审核
|
||||
}),
|
||||
listOrder({
|
||||
pageNum: 1,
|
||||
pageSize: 1,
|
||||
customerId: this.customerId,
|
||||
preOrderStatus: 2, // 已取消
|
||||
}),
|
||||
]
|
||||
).then(([preOrderList, auditOrderList, canOrderList]) => {
|
||||
console.log(preOrderList, auditOrderList, canOrderList)
|
||||
this.currentCustomer = {
|
||||
waitCount: preOrderList.total,
|
||||
dealCount: auditOrderList.total,
|
||||
cancelCount: canOrderList.total,
|
||||
total: preOrderList.total + auditOrderList.total + canOrderList.total,
|
||||
}
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
if (!this.customerId) {
|
||||
this.total = 0;
|
||||
|
||||
Reference in New Issue
Block a user