This commit is contained in:
zyn
2023-05-29 11:20:06 +08:00
parent 33e42eace9
commit 3541fbf7a5
2 changed files with 19 additions and 18 deletions
@@ -696,6 +696,9 @@ export default {
mergeReason: [
{required: true, message: '请输入合并原因', trigger: 'blur'},
],
rqbName: [
{ required: true, message: "请选择代替企标编号", trigger: "blur" }
],
},
standinfoList: [],
standardSearch: {
@@ -282,22 +282,7 @@
<el-option label="修订" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="addForm.reviseStatus === '1'" label="代替企标编号" style="width: 100%; margin-right:10px" class="add-form-item" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-input
style="display: none;"
v-model="addForm.rqbJson">
</el-input>
<el-input
clearable
v-model="addForm.rqbName"
placeholder="请选择代替企标编号"
readonly
@click.native="choiceQYBZ(addForm.rqbJson)">
</el-input>
</div>
</el-form-item>
<el-form-item v-else label="代替企标编号" style="width: 100%; margin-right:10px" class="add-form-item" prop="rqbJson" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<el-form-item label="代替企标编号" style="width: 100%; margin-right:10px" class="add-form-item" prop="rqbJson" :required="addForm.reviseStatus === '2'" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-input
style="display: none;"
@@ -882,8 +867,8 @@
{required: true, message: '请选择起草人', trigger: 'change'},
],
rqbJson: [
{required: false, message: '请选择代替企标编号', trigger: ['change', 'blur']},
]
{ validator: this.validationRqbJson, trigger: 'change'},
],
},
form: {
page: 1,
@@ -919,6 +904,17 @@
},
},
methods: {
validationRqbJson(rule, value, callback){
if(this.addForm.reviseStatus === '2'){
if(!this.addForm.rqbJson || this.addForm.rqbJson === ''){
return callback(new Error('请选择代替企标编号'))
}else{
callback()
}
}else{
callback()
}
},
workChange (data) {
this.workGroupList = data
},
@@ -1079,6 +1075,7 @@
} else {
this.addForm.rqbJson = this.QYBZformSelect[0].id
this.addForm.rqbName = this.QYBZformSelect[0].standCode
this.addForm.standNum = this.QYBZformSelect[0].standNumber
this.QYBZform = {
page: 1,
standCode: '',
@@ -1344,6 +1341,7 @@
drafterName: '',
LXD:'',
LXDName:'',
standNum: ''
}
this.DrawerType = 'add'
this.addForm.planStatus = '6'