合并分支 'dev_20230216' 到 'master'
顺序号加0补位 查看合并请求 laws-foton-slrs/foton-laws-system-front!88
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">-->
|
<!--<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">-->
|
||||||
<el-form-item v-show="form.reviseStatus === '1' || form.reviseStatus === '2'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">
|
<el-form-item v-show="form.reviseStatus === '1' || form.reviseStatus === '2'" label="企标顺序号" :prop="form.reviseStatus === '1'? 'standNum' : ''" class="add-form-item form-item-disabled">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.standNum"
|
v-model="form.standNum"
|
||||||
:maxLength="100"
|
:maxLength="100"
|
||||||
|
|||||||
@@ -1179,6 +1179,12 @@
|
|||||||
filterText(val) {
|
filterText(val) {
|
||||||
this.$refs.tree.filter(val);
|
this.$refs.tree.filter(val);
|
||||||
},
|
},
|
||||||
|
'form.standNum': {
|
||||||
|
handler(val) {
|
||||||
|
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
||||||
|
this.form.standNum = this.form.standNum.padStart(3,'0')
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText () {
|
listNoDataText () {
|
||||||
@@ -2978,6 +2984,7 @@
|
|||||||
// 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 )
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
this.standNum = this.form.standNum // 保存初始顺序号
|
||||||
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 )
|
||||||
|
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
|
|||||||
Reference in New Issue
Block a user