平台件项目库 法规清单编辑回显 认证清单修改按钮权限

This commit is contained in:
zyx.net
2023-09-15 11:02:52 +08:00
parent 34b33b608f
commit 1e4a8c7720
5 changed files with 75 additions and 67 deletions
@@ -234,21 +234,12 @@
:prop="item.deliverableType == '1635545748968783874'?'':'dataList.'+index+'.sdt'"
:rules="[{ required: item.deliverableType == '1635545748968783874'?false:true, message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'},]"
>
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
optionFilterProp="label"
showSearch
@change="handleInput('dataList.'+index+'.sdt',item.sdt,index,item.engineeringInterfacePersonList)"
v-model="item.sdt">
<a-select-option v-for="(val, key) in item.engineeringInterfacePersonList"
:label="val.name"
:key="key"
:value="val.value">
<span style="display: inline-block;width: 100%"
:title=" val.name ">
{{ val.name}}
</span>
</a-select-option>
</a-select>
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
:isSingleChoice="true"
:personneQuery="formInline"
v-if="visible"
@change="PersonnelSelectionChange"
v-model="item.sdt"/>
</a-form-model-item>
</div>
</a-col>
@@ -500,21 +491,27 @@
:rules="[{ required: formInline.deliverableType=='1635545748968783874'?false:true,
message: $t('engineeringInterfacePerson') + $t('cannotEmpty'), trigger: 'change'}]"
>
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
optionFilterProp="label"
@change="handleInput('sdt',formInline.sdt)"
showSearch
v-model="formInline.sdt">
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
:label="item.name"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%"
:title=" item.name ">
{{ item.name}}
</span>
</a-select-option>
</a-select>
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
<!-- optionFilterProp="label"-->
<!-- @change="handleInput('sdt',formInline.sdt)"-->
<!-- showSearch-->
<!-- v-model="formInline.sdt">-->
<!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"-->
<!-- :label="item.name"-->
<!-- :key="key"-->
<!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%"-->
<!-- :title=" item.name ">-->
<!-- {{ item.name}}-->
<!-- </span>-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
:isSingleChoice="true"
:personneQuery="formInline"
v-if="visible"
@change="PersonnelSelectionChange"
v-model="formInline.sdt"/>
</a-form-model-item>
</div>
</a-col>
@@ -974,12 +971,17 @@
})
},
PersonnelSelectionChange(value, id, index) {
console.log(value, id, index)
if (this.formInline.id) {
this.formInline[value] = id
} else {
this.formInline.dataList[index][value] = id
}
this.formInline = { ...this.formInline }
// console.log(this.formInline.sdt)
this.$nextTick(() => {
this.formInline = { ...this.formInline }
this.$refs.ruleForm.validateField([value])
})
},
clickButtonToUpload(item, index, isTrue) {
this.numIndex = index
@@ -1048,15 +1050,15 @@
}
},
handleChange(value) {
this.formInline.sdt = undefined
this.queryPersonByProject(this.formInline.dutyTerritory.join(','))
// this.formInline.sdt = undefined
// this.queryPersonByProject(this.formInline.dutyTerritory.join(','))
},
dutyHandleChange(index) {
this.formInline.dataList[index].sdt = undefined
this.formInline = { ...this.formInline }
this.handleInput('dataList.' + index + '.dutyTerritory')
console.log(11)
this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
// console.log(11)
// this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index)
},
queryPersonByProject(row, index) {
let query = {
@@ -35,21 +35,27 @@
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
</div>
<a-form-model-item class="itemModel">
<a-select :placeholder="$t('cannotSetResponsibilityAreas')"
class="box-input"
allowClear
optionFilterProp="label"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.sdt">
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
:key="item.key"
:label="item.name"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name ">
{{ item.name }}
</span>
</a-select-option>
</a-select>
<!-- <a-select :placeholder="$t('cannotSetResponsibilityAreas')"-->
<!-- class="box-input"-->
<!-- allowClear-->
<!-- optionFilterProp="label"-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- v-model="formInline.sdt">-->
<!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"-->
<!-- :key="item.key"-->
<!-- :label="item.name"-->
<!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.name ">-->
<!-- {{ item.name }}-->
<!-- </span>-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<PersonnelSelection :query="{db_field_name:'sdt',db_field_txt:$t('engineeringInterfacePerson')}"
:isSingleChoice="true"
:personneQuery="formInline"
v-if="visible"
@change="PersonnelSelectionChange"
v-model="formInline.sdt"/>
</a-form-model-item>
</div>
</a-col>
@@ -54,7 +54,7 @@
total: 0,
projectCertificationInventoryId: '',
url: {
list: '/platform/projectCertificationInventoryLogEO/page'
list: '/project/projectCertificationInventoryLogEO/page'
},
columns: [
{
@@ -228,27 +228,27 @@
<!-- 发起任务-->
<div @click="initiatingProcessClick('rzgcsjsrw',$t('confirmLaunchTask'))"
v-if="roleSwitchingCode == 2" class="operator-text">
v-if="roleSwitchingCode == 1" class="operator-text">
<a-icon type="check-circle"/>
{{ $t('initiateTask') }}
</div>
<!-- 退回至Studio-->
<div @click="returnToStudioClick('rzgcsthrw',$t('areYouReturnToStudio'))"
v-if="roleSwitchingCode == 2" class="operator-text">
v-if="roleSwitchingCode == 1" class="operator-text">
<a-icon type="close-circle"/>
{{ $t('returnToStudio') }}
</div>
<!-- 审批通过-->
<div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 2"
<div @click="ApprovedClick('rzgcssc_tg',$t('confirmApproval'))" v-if="roleSwitchingCode == 1"
class="operator-text">
<a-icon type="check-circle"/>
{{ $t('reviewAndPass') }}
</div>
<!-- 审批退回-->
<div @click="ApprovedClick('rzgcssc_th',$t('confirmReturnForApproval'))" v-if="roleSwitchingCode == 2"
<div @click="ApprovedClick('rzgcssc_th',$t('confirmReturnForApproval'))" v-if="roleSwitchingCode == 1"
class="operator-text">
<a-icon type="close-circle"/>
{{ $t('reviewAndReturn') }}
@@ -1125,10 +1125,10 @@
...this.queryParam,
ids: selectedRowKeys.join(','),
...this.queryParamQuery,
excelName: this.$route.query.projectName,
excelName: this.$route.query.projectNameId,
projectLibraryId: this.$route.query.id
}
downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
downloadFile(this.url.exportData, this.$route.query.projectNameId + '.zip', query, this.Deselect)
},
handleDel() {
let _this = this
@@ -166,7 +166,7 @@
<span class="Required" v-if="formInline.roleCodeIndex == 1">*</span>
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
</div>
<a-form-model-item class="itemModel" :prop="'regulationOwnerId'">
<a-form-model-item class="itemModel" :prop="'regulationOwnerIdName'">
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"-->
<!-- class="box-input"-->
<!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"-->
@@ -187,7 +187,7 @@
v-if="visible"
:disabled="isEdit(this.formInline)"
@change="PersonnelSelectionChange"
v-model="formInline.regulationOwnerId"/>
v-model="formInline.regulationOwnerIdName"/>
</a-form-model-item>
</div>
</a-col>
@@ -197,7 +197,7 @@
<span class="Required">*</span>
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
</div>
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePerson'">
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePersonName'">
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
<!-- class="box-input"-->
<!-- allowClear-->
@@ -217,7 +217,7 @@
v-if="visible"
:disabled="isEdit(this.formInline)"
@change="PersonnelSelectionChange"
v-model="formInline.engineeringInterfacePerson"/>
v-model="formInline.engineeringInterfacePersonName"/>
</a-form-model-item>
</div>
</a-col>
@@ -847,8 +847,6 @@
})
},
dutyTerritoryChange(event) {
this.formInline.regulationOwnerId = undefined
this.formInline.engineeringInterfacePerson = undefined
this.formInline.homologationEngineerId = undefined
this.formInline.designInitiatorId = undefined
this.formInline.prehomoInitiatorId = undefined
@@ -940,12 +938,14 @@
this.getDutyTerritory(item.dutyDepart.join(','))
}
console.log(item.dutyTerritory)
if (item.dutyTerritory && item.dutyTerritory.length > 0) {
this.queryPersonByProject(item)
} else {
// if (item.dutyTerritory && item.dutyTerritory.length > 0) {
// this.queryPersonByProject(item)
// } else {
this.formInline = item
this.formInline = { ...this.formInline }
}
// }
console.log(this.formInline)
console.log(this.formInline.regulationOwnerIdName)
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})