From 27d3afcea398924e2e7bb2cb4efe91bc6ed3e012 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Fri, 24 Oct 2025 14:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E5=8D=95=E5=BD=95=E5=85=A5=E5=90=8C?= =?UTF-8?q?=E8=A1=8C=E5=8D=95=E5=8F=B7=E5=AF=BC=E8=87=B4=E7=9A=84=E5=8D=95?= =?UTF-8?q?=E5=8F=B7=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisWaybill/waybillRecord.vue | 26 +++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue index fe7784e6..28e58582 100644 --- a/src/views/emis/emisWaybill/waybillRecord.vue +++ b/src/views/emis/emisWaybill/waybillRecord.vue @@ -1038,7 +1038,6 @@ data() { categorySender:null, // 收件 categoryReciever:null, - hasTBillCode:null, noTBillCode:null, // 表单校验 rules: { @@ -2565,7 +2564,6 @@ methods: { let useSiteCode=this.form.sendSiteCode; realMatchWaybill(useSiteCode).then(response => { this.form.billCode=response.data; - this.hasTBillCode = response.data; this.initGetTotalAvailablePag(this.form.sendSiteCode); this.handleGenSubbill(); this.autoAjustBillCode(); @@ -2814,18 +2812,24 @@ methods: { this.autoAjustBillCodeSender(country.code); }, //根据寄件国家处理单号格式 - autoAjustBillCodeSender(code){ - if(code === '0095' || code === '0855'){ - //单号去掉T - this.form.billCode = this.form.billCode.replace('T', ''); - this.noTBillCode = this.form.billCode; - }else{ - this.form.billCode = this.hasTBillCode; + autoAjustBillCodeSender(code) { + if (code === '0095' || code === '0855') { + //如果单号是否包含7080 去掉首字母的T 否则保持不变 + if (this.form.billCode.includes('7080')) { + this.form.billCode = this.form.billCode.replace('T', ''); + this.noTBillCode = this.form.billCode; + } + } else { + if (this.form.billCode.includes('7080')) { + if (!this.form.billCode.startsWith('T')) { + this.form.billCode = 'T' + this.form.billCode; + } + } } } - } -}; +} +