技术标准 企业标准号

This commit is contained in:
zyn
2023-04-05 17:02:38 +08:00
parent 237d8ca661
commit 8359350799
2 changed files with 28 additions and 2 deletions
@@ -7,7 +7,7 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled"> <el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select v-model="form.standSort" filterable clearable @change="standSortChange"> <el-select v-model="form.standSort" filterable clearable @change="standSortChange" :disabled="form.reviseStatus === '3'">
<el-option <el-option
v-for="item in standSortOptions" v-for="item in standSortOptions"
placeholder="请选择企标类别" placeholder="请选择企标类别"
@@ -1121,6 +1121,8 @@
data: [], // 标准列表数据 data: [], // 标准列表数据
ListForm: {}, // 新增数据 ListForm: {}, // 新增数据
maxStandnSn:"", // 最大順序號 maxStandnSn:"", // 最大順序號
standSort:"",
standCode:""
} }
}, },
watch:{ watch:{
@@ -1175,6 +1177,10 @@
}else{ }else{
this.form.standNum = this.form.standSn this.form.standNum = this.form.standSn
} }
if(val === '3'){
this.form.standSort = this.standSort
this.form.standCode = this.standCode
}
}, },
standSortChange(val){ standSortChange(val){
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 )
@@ -1279,7 +1285,9 @@
this.fileType = fileType this.fileType = fileType
this.fileUpload(fileType) this.fileUpload(fileType)
} }
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) if(form.reviseStatus !== '3'){
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}
}, },
modelProp(row,index){ modelProp(row,index){
console.log(row) console.log(row)
@@ -2825,9 +2833,25 @@
}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 )
} }
this.standCode = this.form.standCode
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
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
_this: this
}, res => {
const obj = res.data
let standSn = obj.newStandSn
this.form.standSn = standSn
this.form.standNumber = standSn
this.form.standNum = standSn
}, e => {
})
this.form.standYear = this.regDate(year)
this.standSort = this.form.standSort
this.standCode = this.form.standCode
this.formKey++ this.formKey++
} else { } else {
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, { this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
@@ -2848,6 +2872,8 @@
}else { }else {
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
} }
this.standSort = this.form.standSort
this.standCode = this.form.standCode
this.formKey++ this.formKey++
}, e => { }, e => {
}) })