产品标准-发布-顺序号

This commit is contained in:
zyn
2023-10-31 15:22:00 +08:00
parent bda7ade767
commit cd0dfbb513
2 changed files with 18 additions and 2 deletions
@@ -974,6 +974,11 @@
}, },
deep: true //对象的深度验证 deep: true //对象的深度验证
}, },
'form.standNum': {
handler: function(val){
this.$emit('standNumChange',val)
}
}
} }
} }
</script> </script>
@@ -42,6 +42,7 @@
@formChoiceZRR2 = "formChoiceZRR2" @formChoiceZRR2 = "formChoiceZRR2"
@formChoiceZRR3 = "formChoiceZRR3" @formChoiceZRR3 = "formChoiceZRR3"
@formChoiceZRR4 = "formChoiceZRR4" @formChoiceZRR4 = "formChoiceZRR4"
@standNumChange = "standNumChange"
/> />
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion v-model="activeName">
@@ -2820,8 +2821,7 @@
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1',standSort:this.form.standSort,taskId: this.taskIds}, { this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_1',standSort:this.form.standSort,taskId: this.taskIds}, {
_this: this _this: this
}, res => { }, res => {
const obj = res.data const standSn = res.data
let standSn = obj.newStandSn
this.form.standSn = standSn this.form.standSn = standSn
this.form.standNum = standSn this.form.standNum = standSn
this.form.standNumber = standSn this.form.standNumber = standSn
@@ -2845,6 +2845,17 @@
} }
}, },
standNumChange(val){
//此处因企标编号中带有空格所以此处不再补充添加空格,如果企标编码中没有空格则补充空格 但是产品标准除外
let judgeFn = new RegExp(/\s+/g);
if(judgeFn.test(this.form.standSort)){
this.form.standCode = this.form.standSort + '' + val + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}else if(this.form.standSort === 'Q/QCBFC'){
this.form.standCode = this.form.standSort + '' + val + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}else {
this.form.standCode = this.form.standSort + ' ' + val + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}
},
processTable () { processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", { this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum, prcNum: this.$route.query.prcNum,