平台件项目库修改bug

This commit is contained in:
zyx.net
2023-09-26 10:22:02 +08:00
parent 9ce40f9a7f
commit ac167460f9
@@ -250,7 +250,7 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('personLiable')">{{$t('personLiable')}}</span> :title="$t('personLiable')">{{$t('personLiable')}}</span>
</div> </div>
<a-form-model-item class="itemModel-multi" <a-form-model-item class="itemModel"
:prop="formInline.designDeliverableType.join(',').includes('1645667531513237506')?'':'designDutyIdName'" :prop="formInline.designDeliverableType.join(',').includes('1645667531513237506')?'':'designDutyIdName'"
:rules="[{ required: formInline.designDeliverableType.join(',').includes('1645667531513237506')?false:true, :rules="[{ required: formInline.designDeliverableType.join(',').includes('1645667531513237506')?false:true,
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]"> message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
@@ -381,7 +381,7 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('personLiable')">{{$t('personLiable')}}</span> :title="$t('personLiable')">{{$t('personLiable')}}</span>
</div> </div>
<a-form-model-item class="itemModel-multi" <a-form-model-item class="itemModel"
:prop="formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?'':'verifyDutyIdName'" :prop="formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?'':'verifyDutyIdName'"
:rules="[{ required: formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?false:true, :rules="[{ required: formInline.verifyDeliverableType.join(',').includes('1645667531513237506')?false:true,
message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]"> message: $t('personLiable') + $t('cannotEmpty'), trigger: 'change'}]">
@@ -653,14 +653,14 @@
trigger: 'change' trigger: 'change'
} }
], ],
regulationOwnerId: [ regulationOwnerIdName: [
{ {
required: true, required: true,
message: this.$t('regulatoryEngineer') + this.$t('cannotEmpty'), message: this.$t('regulatoryEngineer') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
engineeringInterfacePerson: [ engineeringInterfacePersonName: [
{ {
required: true, required: true,
message: this.$t('engineeringInterfacePerson') + this.$t('cannotEmpty'), message: this.$t('engineeringInterfacePerson') + this.$t('cannotEmpty'),
@@ -830,9 +830,9 @@
}) })
}, },
DutyDepartChange(event) { DutyDepartChange(event) {
this.formInline.dutyTerritory = [] // this.formInline.dutyTerritory = []
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
this.getDutyTerritory(event.join(',')) // this.getDutyTerritory(event.join(','))
}, },
getDutyTerritory(row) { getDutyTerritory(row) {
let query = { let query = {
@@ -851,7 +851,7 @@
this.formInline.designInitiatorId = undefined this.formInline.designInitiatorId = undefined
this.formInline.prehomoInitiatorId = undefined this.formInline.prehomoInitiatorId = undefined
this.formInline.verifyInitiatorId = undefined this.formInline.verifyInitiatorId = undefined
this.queryPersonByProject(event.join(',')) // this.queryPersonByProject(event.join(','))
}, },
queryPersonByProject(row) { queryPersonByProject(row) {
@@ -932,12 +932,11 @@
item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : [] item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : []
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : [] item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
item.dutyDepart = item.dutyDepart ? item.dutyDepart.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) this.getRejectCause(item.id)
if (item.dutyDepart && item.dutyDepart.length > 0) { if (item.dutyDepart && item.dutyDepart.length > 0) {
this.getDutyTerritory(item.dutyDepart.join(',')) this.getDutyTerritory(item.dutyDepart.join(','))
} }
console.log(item.dutyTerritory)
// if (item.dutyTerritory && item.dutyTerritory.length > 0) { // if (item.dutyTerritory && item.dutyTerritory.length > 0) {
// this.queryPersonByProject(item) // this.queryPersonByProject(item)
// } else { // } else {
@@ -945,7 +944,7 @@
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
// } // }
console.log(this.formInline) console.log(this.formInline)
console.log(this.formInline.regulationOwnerIdName) console.log(this.formInline.dutyTerritory)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })