技术标准-顺序号无法修改
This commit is contained in:
@@ -93,10 +93,11 @@
|
||||
<!--<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-input
|
||||
v-model="form.standNum"
|
||||
:value="form.standNum"
|
||||
:maxLength="100"
|
||||
placeholder="请输入企标顺序号"
|
||||
clearable
|
||||
@input="standNumChange"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||
@@ -685,7 +686,11 @@ export default {
|
||||
ProcessTitle,
|
||||
},
|
||||
props: {
|
||||
formSub: {
|
||||
// formSub: {
|
||||
// type: Object,
|
||||
// required: true
|
||||
// },
|
||||
form: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
@@ -1082,9 +1087,13 @@ export default {
|
||||
},
|
||||
reveseStatusChange(val){
|
||||
this.$emit('reveseStatusChange',val)
|
||||
},
|
||||
standNumChange (val) {
|
||||
this.$emit('standNumChange',val)
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
/*
|
||||
if(this.formSub && this.formSub.standSort && this.formSub.standSort !== ''){
|
||||
this.getDataAsync()
|
||||
this.form = this.formSub
|
||||
@@ -1097,6 +1106,17 @@ export default {
|
||||
this.summaryFileList= this.summaryFileListSub
|
||||
this.madelSubList= this.madelSubListSub
|
||||
}
|
||||
*/
|
||||
if(this.form && this.form.standSort && this.form.standSort !== ''){
|
||||
this.getDataAsync()
|
||||
this.FBGBUSSFileList= this.FBGBUSSFileListSub
|
||||
this.BZSMBUSSFileList= this.BZSMBUSSFileListSub
|
||||
this.LSBBBUSSFileList= this.LSBBBUSSFileListSub
|
||||
this.QTWJBUSSFileList= this.QTWJBUSSFileListSub
|
||||
this.GLWJBUSSFileList= this.GLWJBUSSFileListSub
|
||||
this.summaryFileList= this.summaryFileListSub
|
||||
this.madelSubList= this.madelSubListSub
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
form: {
|
||||
@@ -1126,11 +1146,11 @@ export default {
|
||||
// this.$emit('reveseStatusChange',val)
|
||||
// }
|
||||
// }
|
||||
'form.standNum': {
|
||||
handler: function(val){
|
||||
this.$emit('standNumChange',val)
|
||||
}
|
||||
}
|
||||
// 'form.standNum': {
|
||||
// handler: function(val){
|
||||
// this.$emit('standNumChange',val)
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div style="flex: auto;" v-show="active === '1'">
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:form = "form"
|
||||
:isTrue="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
@@ -1180,13 +1180,14 @@
|
||||
filterText(val) {
|
||||
this.$refs.tree.filter(val);
|
||||
},
|
||||
'form.standNum': {
|
||||
handler(val) {
|
||||
this.form.standNum = this.form.standNum + ''
|
||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
||||
this.form.standNum = this.form.standNum.padStart(3,'0')
|
||||
}
|
||||
}
|
||||
// 'form.standNum': {
|
||||
// handler(val) {
|
||||
// console.log(val)
|
||||
// this.form.standNum = (val + '').replace(/^0+/,"").padStart(3,'0')
|
||||
// this.form = { ...this.form }
|
||||
// },
|
||||
// deep: true
|
||||
// }
|
||||
},
|
||||
computed: {
|
||||
listNoDataText () {
|
||||
@@ -1267,8 +1268,10 @@
|
||||
// this.form.standCode = val + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
},
|
||||
standNumChange(val){
|
||||
this.form.standNum = val.replace(/^0+/,"").padStart(3,'0')
|
||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
this.$forceUpdate()
|
||||
|
||||
this.form = { ...this.form }
|
||||
},
|
||||
checkedRoleTransfer (data) {
|
||||
this.isSubmit = true
|
||||
|
||||
Reference in New Issue
Block a user