修订时-多个代替企标编号 调接口获取企标顺序号
This commit is contained in:
@@ -3010,6 +3010,23 @@
|
|||||||
// }else {
|
// }else {
|
||||||
// this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
// 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.replace(/^0+/,"")
|
||||||
this.form.standNum = this.form.standNum.padStart(3,'0')
|
this.form.standNum = this.form.standNum.padStart(3,'0')
|
||||||
|
|
||||||
@@ -3019,7 +3036,7 @@
|
|||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
// this.standSort = this.form.standSort
|
// this.standSort = this.form.standSort
|
||||||
this.formKey++
|
this.formKey++
|
||||||
|
}
|
||||||
|
|
||||||
} else if (this.form.reviseStatus === '3'){
|
} else if (this.form.reviseStatus === '3'){
|
||||||
this.form.standCode = this.form.standCode
|
this.form.standCode = this.form.standCode
|
||||||
|
|||||||
Reference in New Issue
Block a user