From 77e193ab8c8cbaa4779bacb59c4c9145e8d3930d Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 2 Jun 2023 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=8F=B7=E5=8A=A00=E8=A1=A5?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processCenter/pages/creatProcess/qbrk/step13.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue index 17c5030f9..1a1e3d629 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue @@ -1219,6 +1219,8 @@ } } + this.form.standNum = this.form.standNum.replace(/^0+/,"") + this.form.standNum = this.form.standNum.padStart(3,'0') this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) }, e => { }) @@ -1242,6 +1244,8 @@ this.form.standYear = this.standYear } } + this.form.standNum = this.form.standNum.replace(/^0+/,"") + this.form.standNum = this.form.standNum.padStart(3,'0') this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) } // else if(this.form.reviseStatus === '3'){ @@ -2983,6 +2987,8 @@ // }else { // this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) // } + this.form.standNum = this.form.standNum.replace(/^0+/,"") + this.form.standNum = this.form.standNum.padStart(3,'0') this.standNum = this.form.standNum // 保存初始顺序号 this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) @@ -3015,6 +3021,9 @@ // this.standSort = noYearStand.slice(0, index2) // 'Q-F' this.standSort = this.form.standSort + this.standNum = this.standNum.replace(/^0+/,"") + this.standNum = this.standNum.padStart(3,'0') + // this.form.standSort = this.standSort this.form.standNum = this.standNum // --- @@ -3061,6 +3070,9 @@ // }else { // this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) // } + this.form.standNum = this.form.standNum.replace(/^0+/,"") + this.form.standNum = this.form.standNum.padStart(3,'0') + this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) this.standSort = this.form.standSort this.standCode = this.form.standCode