From 4beaf79fd6a5c0637b67cf8b9ad85597cd873ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 11 Apr 2026 16:24:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=88=E5=90=8C/=E5=AE=A2=E6=88=B7):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B4=A7=E5=8D=95=E6=8D=AE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在合同和客户详情页新增发货单据标签页,展示wmsDeliveryWaybills数据 移除CustomerOrder中未使用的getSummary方法和相关代码 --- .../views/crm/components/CustomerOrder.vue | 36 ------------------- .../crm/contract/components/ContractTabs.vue | 14 ++++++-- klp-ui/src/views/crm/contract/index.vue | 6 ++-- klp-ui/src/views/crm/customer/index.vue | 24 +++++++++---- 4 files changed, 32 insertions(+), 48 deletions(-) diff --git a/klp-ui/src/views/crm/components/CustomerOrder.vue b/klp-ui/src/views/crm/components/CustomerOrder.vue index 939dc718..8e444565 100644 --- a/klp-ui/src/views/crm/components/CustomerOrder.vue +++ b/klp-ui/src/views/crm/components/CustomerOrder.vue @@ -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; diff --git a/klp-ui/src/views/crm/contract/components/ContractTabs.vue b/klp-ui/src/views/crm/contract/components/ContractTabs.vue index 6ac435b3..6460b017 100644 --- a/klp-ui/src/views/crm/contract/components/ContractTabs.vue +++ b/klp-ui/src/views/crm/contract/components/ContractTabs.vue @@ -40,6 +40,7 @@ +
@@ -67,14 +68,16 @@ import OrderPage from "@/views/crm/order/index.vue"; import CoilTable from "../../components/CoilTable.vue"; import FileList from "@/components/FileList"; +import DeliveryTable from "../../components/DeliveryTable.vue"; export default { name: "ContractTabs", components: { OrderPage, CoilTable, - FileList - }, + FileList, + DeliveryTable + }, props: { contractId: { type: [Number, String], @@ -116,6 +119,10 @@ export default { otherAttachment: { type: String, default: '' + }, + wmsDeliveryWaybills: { + type: Array, + default: () => [] } }, data() { @@ -128,7 +135,8 @@ export default { { label: "财务状态", name: "third" }, { label: "订单异议", name: "fourth" }, { label: "发货配卷", name: "fifth" }, - { label: "合同附件", name: "sixth" } + { label: '发货单据', name: 'seventh' }, + { label: "合同附件", name: "sixth" }, ] }; }, diff --git a/klp-ui/src/views/crm/contract/index.vue b/klp-ui/src/views/crm/contract/index.vue index 3b90578e..01a7a656 100644 --- a/klp-ui/src/views/crm/contract/index.vue +++ b/klp-ui/src/views/crm/contract/index.vue @@ -26,6 +26,7 @@
{ this.financeList = response.data.financeList || []; this.objectionList = response.data.oobjectionList || []; + this.wmsDeliveryWaybills = response.data.wmsDeliveryWaybills || []; }).finally(() => { this.tabLoading = false; }) diff --git a/klp-ui/src/views/crm/customer/index.vue b/klp-ui/src/views/crm/customer/index.vue index bd6c5368..8da69c16 100644 --- a/klp-ui/src/views/crm/customer/index.vue +++ b/klp-ui/src/views/crm/customer/index.vue @@ -6,17 +6,18 @@
客户列表
- + - +
- + + + + @@ -164,6 +168,7 @@ import CustomerEdit from '../components/CustomerEdit.vue' import CustomerOrder from '../components/CustomerOrder.vue' import ChinaAreaSelect from '@/components/ChinaAreaSelect/index.vue' import CoilTable from '../components/CoilTable.vue' +import DeliveryTable from '../components/DeliveryTable.vue' import { listCustomer, addCustomer, updateCustomer, delCustomer, listCoilByCustomerId, listFinanceByCustomerId } from '@/api/crm/customer' @@ -176,13 +181,15 @@ export default { CustomerEdit, CustomerOrder, ChinaAreaSelect, - CoilTable + CoilTable, + DeliveryTable }, dicts: ['customer_industry', 'customer_level'], data() { return { customerList: [], financeList: [], + wmsDeliveryWaybills: [], objectionList: [], coilList: [], showQuery: false, @@ -235,6 +242,7 @@ export default { listFinanceByCustomerId(this.currentCustomerId).then(response => { this.financeList = response.data.financeList || []; this.objectionList = response.data.oobjectionList || []; + this.wmsDeliveryWaybills = response.data.wmsDeliveryWaybills || []; }).catch(() => { this.$message.error('获取客户财务状态失败'); }); @@ -242,7 +250,7 @@ export default { /** 查询合同配卷列表 */ getCoilList() { - listContractPackaging(this.form.contractId).then(response => { + listCoilByCustomerId(this.currentCustomerId).then(response => { this.coilList = response.data || []; }) }, @@ -303,6 +311,8 @@ export default { handleItemClick(item) { this.currentCustomer = { ...item }; + this.getFinanceList(); + this.getCoilList(); this.activeTab = 'detail'; },