修订时-多个代替企标编号 调接口获取企标顺序号

This commit is contained in:
zyn
2023-08-22 14:44:58 +08:00
parent 0c1e52d120
commit 8081c53a3b
@@ -3010,6 +3010,23 @@
// }else {
// this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
// }
if (this.form.standNum.includes(',')) {
// 多个代替企标编号 调接口获取企标顺序号
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
_this: this
}, res => {
this.form.standNum = res.data + ''
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 )
this.standCode = this.form.standCode
this.formKey++
}, e => {
})
} else {
this.form.standNum = this.form.standNum.replace(/^0+/,"")
this.form.standNum = this.form.standNum.padStart(3,'0')
@@ -3019,7 +3036,7 @@
this.standCode = this.form.standCode
// this.standSort = this.form.standSort
this.formKey++
}
} else if (this.form.reviseStatus === '3'){
this.form.standCode = this.form.standCode