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