From 5e789758a31ff62e197df0c880e95b0f270e5026 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Mon, 1 Sep 2025 16:18:27 +0800 Subject: [PATCH] =?UTF-8?q?TMS=E6=8E=A5=E5=8D=95=E6=9C=88=E7=BB=93?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=8E=B0=E9=87=91=E5=8D=95=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=8F=B7=E5=8F=96=E5=80=BC=E6=9C=88=E7=BB=93=E5=AE=A2=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisWaybill/waybillGot.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/emis/emisWaybill/waybillGot.vue b/src/views/emis/emisWaybill/waybillGot.vue index 11692a72..238a3650 100644 --- a/src/views/emis/emisWaybill/waybillGot.vue +++ b/src/views/emis/emisWaybill/waybillGot.vue @@ -1718,13 +1718,22 @@ methods: { } // }); // 获取企业税号 - if(['2', '4', '5'].includes(this.form.paymentType)){ // 月结 - const res = await listMonthUserAll({monthlyPayCode: this.form.custNo ,pageNum: 1,pageSize: 1,customerType:2}); + if(['2', '4', '5'].includes(this.form.paymentType) || this.form.customerType == 2){ // 月结或者月结客户 + let params = { + pageNum: 1, pageSize: 1, customerType: 2 + } + if (['2', '4', '5'].includes(this.form.paymentType)) { + params.monthlyPayCode = this.form.custNo; // 支付类型为月结 + } else { + params.customerCode = this.form.customerCode; // 月结客户下单的现金单 + } + + const res = await listMonthUserAll(params); if(res.rows.length > 0){ this.form.sender.enterpriseName = res.rows[0].enterpriseName; this.form.sender.enterpriseTaxId = res.rows[0].enterpriseTaxId; } - }else{ // 非月结 + }else{ // 非月结客户下的非月结单 if (this.form.sender.id) { const res = await getEmisCustomerAddress(this.form.sender.id); if (res.data) {