feat: There is no way the, bug #52159
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
<!-- </el-button>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="制修订类型" prop="standStatus" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standStatus" filterable clearable>
|
||||
<el-select v-model="form.standStatus" title="选中不可修改" filterable clearable @change="getStandInfoByReviseStatus">
|
||||
<el-option
|
||||
v-for="item in opinionsStand"
|
||||
:key="item.value"
|
||||
@@ -141,7 +141,7 @@
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="截止日期" prop="expirationDate" class="add-form-item form-item-disabled">
|
||||
<el-form-item v-show="verifySarStandard"label="截止日期" prop="expirationDate" class="add-form-item form-item-disabled">
|
||||
<el-datePicker v-model="form.expirationDate"
|
||||
placeholder="请选择截止日期"
|
||||
:editable="false"
|
||||
@@ -1501,17 +1501,10 @@
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
'form.standSort': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("")
|
||||
}
|
||||
}
|
||||
},
|
||||
'form.standStatus': {
|
||||
handler (val) {
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
this.getStandInfoByReviseStatus("1")
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1567,19 +1560,44 @@
|
||||
if(this.form.standStatus === '2'){
|
||||
this.form.id = ""
|
||||
this.form.standCode = ""
|
||||
this.FBGBUSSFileList = []
|
||||
this.LSBBBUSSFileList = []
|
||||
this.FBGBUSSFileList=[];
|
||||
this.BZSMBUSSFileList=[];
|
||||
this.LSBBBUSSFileList=[];
|
||||
this.QTWJBUSSFileList=[];
|
||||
this.GLWJBUSSFileList=[];
|
||||
this.XGDFileList=[];
|
||||
this.$refs['form'].resetFields()
|
||||
this.form.standStatus = '2'
|
||||
if((this.form.standStatus === '2') && (this.form.BDTQBBHBUSS === undefined || this.form.BDTQBBHBUSS === '')) {
|
||||
this.$message.warning("请选择一条被代替企标编号")
|
||||
return
|
||||
}
|
||||
if(this.form.BDTQBBHBUSS !== undefined && this.form.BDTQBBHBUSS !== null){
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year)
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}else if(this.form.standStatus === '3' ){
|
||||
if(type !== 'dr'){
|
||||
this.FBGBUSSFileList=[];
|
||||
this.BZSMBUSSFileList=[];
|
||||
this.LSBBBUSSFileList=[];
|
||||
this.QTWJBUSSFileList=[];
|
||||
this.GLWJBUSSFileList=[];
|
||||
this.XGDFileList=[];
|
||||
this.$refs['form'].resetFields()
|
||||
this.form.standStatus = '3'
|
||||
}else {
|
||||
this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
|
||||
this.LSBBBUSSFileList = []
|
||||
if(this.LSBBBUSSFileList && this.LSBBBUSSFileList.length > 0){
|
||||
this.LSBBBUSSFileList=this.LSBBBUSSFileList.concat(this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName))
|
||||
}else {
|
||||
this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
|
||||
}
|
||||
this.form.LSBBBUSS = this.form.FBGBUSS
|
||||
this.form.LSBBBUSSName = this.form.FBGBUSSName
|
||||
this.FBGBUSSFileList= []
|
||||
this.FBGBUSS = ""
|
||||
this.FBGBUSSName = ""
|
||||
}
|
||||
this.LSBBBUSSFileList=this.LSBBBUSSFileList.concat(this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName))
|
||||
this.form.LSBBBUSS = this.form.FBGBUSS
|
||||
this.form.LSBBBUSSName = this.form.FBGBUSSName
|
||||
@@ -1593,7 +1611,15 @@
|
||||
}else if(this.form.standStatus === '1' ){
|
||||
this.form.id = ""
|
||||
this.form.standCode = ""
|
||||
if(type === '1'){
|
||||
this.FBGBUSSFileList=[];
|
||||
this.BZSMBUSSFileList=[];
|
||||
this.LSBBBUSSFileList=[];
|
||||
this.QTWJBUSSFileList=[];
|
||||
this.GLWJBUSSFileList=[];
|
||||
this.XGDFileList=[];
|
||||
this.$refs['form'].resetFields()
|
||||
this.form.standStatus = '1'
|
||||
if(this.form.standStatus === '1'){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
}
|
||||
@@ -1608,7 +1634,7 @@
|
||||
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
this.FBGBUSSFileList = []
|
||||
this.LSBBBUSSFileList = []
|
||||
if(type === '1'){
|
||||
if(this.form.standStatus === '1'){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
@@ -2046,20 +2072,7 @@
|
||||
this.form['SYCPXCLASS'] = this.filterObj(this.form['SYCPXCLASS'])
|
||||
this.standardDrawer = false
|
||||
this.verifySarStandard = true
|
||||
this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName);
|
||||
this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
|
||||
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
|
||||
this.LSBBBUSSFileList = []
|
||||
if(this.LSBBBUSSFileList && this.LSBBBUSSFileList.length > 0){
|
||||
this.LSBBBUSSFileList=this.LSBBBUSSFileList.concat(this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName))
|
||||
}else {
|
||||
this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
|
||||
}
|
||||
this.form.LSBBBUSS = this.form.FBGBUSS
|
||||
this.form.LSBBBUSSName = this.form.FBGBUSSName
|
||||
this.FBGBUSSFileList= []
|
||||
this.FBGBUSS = ""
|
||||
this.FBGBUSSName = ""
|
||||
this.getStandInfoByReviseStatus('dr')
|
||||
this.$forceUpdate()
|
||||
}
|
||||
// 遍历对象初始化文件信息
|
||||
@@ -2485,6 +2498,12 @@
|
||||
}else if(this.replaceLawType === 'BDTQBBHBUSS'){
|
||||
this.form.BDTQBBHBUSS = this.filterSetData(textArr.join(','))
|
||||
this.form.standNum = this.filterSetData(textArr2.join(','))
|
||||
if(this.form.BDTQBBHBUSS !== undefined && this.form.BDTQBBHBUSS !== null){
|
||||
this.form.standSn = this.form.standNum
|
||||
this.form.standNumber = this.form.standNum
|
||||
this.form.standYear = this.regDate(year)
|
||||
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
||||
}
|
||||
}else {
|
||||
this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',')
|
||||
}
|
||||
@@ -2895,6 +2914,11 @@
|
||||
this.$message.warning("请选择一条被代替企标编号")
|
||||
return
|
||||
}
|
||||
|
||||
if((this.form.standStatus === '3') && (this.standardCheckedList === undefined ||this.standardCheckedList.length === 0)) {
|
||||
this.$message.warning("请选择一条企标标准")
|
||||
return
|
||||
}
|
||||
// this.changeTree(this.form.modelData)
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
Reference in New Issue
Block a user