平台件项目库修改bug
This commit is contained in:
+9
-10
@@ -250,7 +250,7 @@
|
||||
<span class="title-text-text"
|
||||
:title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi"
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="formInline.designDeliverableType.join(',').includes('1645667531513237506')?'':'designDutyIdName'"
|
||||
:rules="[{ required: formInline.designDeliverableType.join(',').includes('1645667531513237506')?false:true,
|
||||
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
|
||||
@@ -381,7 +381,7 @@
|
||||
<span class="title-text-text"
|
||||
:title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi"
|
||||
<a-form-model-item class="itemModel"
|
||||
:prop="formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?'':'verifyDutyIdName'"
|
||||
:rules="[{ required: formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?false:true,
|
||||
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
|
||||
@@ -653,14 +653,14 @@
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
regulationOwnerId: [
|
||||
regulationOwnerIdName: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('regulatoryEngineer') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
engineeringInterfacePerson: [
|
||||
engineeringInterfacePersonName: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('engineeringInterfacePerson') + this.$t('cannotEmpty'),
|
||||
@@ -830,9 +830,9 @@
|
||||
})
|
||||
},
|
||||
DutyDepartChange(event) {
|
||||
this.formInline.dutyTerritory = []
|
||||
// this.formInline.dutyTerritory = []
|
||||
this.formInline = { ...this.formInline }
|
||||
this.getDutyTerritory(event.join(','))
|
||||
// this.getDutyTerritory(event.join(','))
|
||||
},
|
||||
getDutyTerritory(row) {
|
||||
let query = {
|
||||
@@ -851,7 +851,7 @@
|
||||
this.formInline.designInitiatorId = undefined
|
||||
this.formInline.prehomoInitiatorId = undefined
|
||||
this.formInline.verifyInitiatorId = undefined
|
||||
this.queryPersonByProject(event.join(','))
|
||||
// this.queryPersonByProject(event.join(','))
|
||||
},
|
||||
|
||||
queryPersonByProject(row) {
|
||||
@@ -932,12 +932,11 @@
|
||||
item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : []
|
||||
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
|
||||
item.dutyDepart = item.dutyDepart ? item.dutyDepart.split(',') : []
|
||||
item.dutyTerritory = item.dutyTerritory ? item.dutyTerritory.split(',') : []
|
||||
// item.dutyTerritory = item.dutyTerritory ? item.dutyTerritory.split(',') : []
|
||||
this.getRejectCause(item.id)
|
||||
if (item.dutyDepart && item.dutyDepart.length > 0) {
|
||||
this.getDutyTerritory(item.dutyDepart.join(','))
|
||||
}
|
||||
console.log(item.dutyTerritory)
|
||||
// if (item.dutyTerritory && item.dutyTerritory.length > 0) {
|
||||
// this.queryPersonByProject(item)
|
||||
// } else {
|
||||
@@ -945,7 +944,7 @@
|
||||
this.formInline = { ...this.formInline }
|
||||
// }
|
||||
console.log(this.formInline)
|
||||
console.log(this.formInline.regulationOwnerIdName)
|
||||
console.log(this.formInline.dutyTerritory)
|
||||
this.$nextTick(() => {
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user