项目库-关联平台件后编辑弹框中均不可编辑字段

This commit is contained in:
zyx.net
2023-09-28 10:47:03 +08:00
parent 7777918f18
commit a852f53e99
2 changed files with 36 additions and 6 deletions
@@ -57,6 +57,7 @@
</div>
<a-form-model-item class="itemModel" prop="wvtaId">
<a-input class="box-input"
:disabled="flowdisabled"
v-model.trim="formInline.wvtaId"
:placeholder="$t('PleaseEnter')+'WVTA ID'"/>
</a-form-model-item>
@@ -359,6 +360,7 @@
prop="category"
>
<a-input class="box-input"
:disabled="flowdisabled"
v-model.trim="formInline.category"
:placeholder="$t('PleaseEnter')+$t('category')"/>
</a-form-model-item>
@@ -373,6 +375,7 @@
<a-form-model-item class="itemModel"
:prop="'inspectionItem'">
<a-input class="box-input"
:disabled="flowdisabled"
v-model.trim="formInline.inspectionItem"
:placeholder="$t('PleaseEnter')+$t('inspectionItems')"/>
</a-form-model-item>
@@ -392,6 +395,7 @@
>
<a-input class="box-input"
v-model.trim="formInline.configItem"
:disabled="flowdisabled"
:placeholder="$t('PleaseEnter')+$t('configurationItem')"/>
<!-- <j-dict-select-tag class="box-input" v-model="formInline.configItem"-->
<!-- @input="handleInput('configItem')"-->
@@ -415,6 +419,7 @@
<j-multi-select-tag class="box-input" v-model="formInline.attestationType"
:placeholder="$t('PleaseSelect')+$t('certificationType')"
:type="'select'"
:disabled="flowdisabled"
:triggerChange="false"
:dictCode="'ren4_zheng4_qing1_dan1_-_ren4_zheng4_lei4_xing2'"/>
</a-form-model-item>
@@ -434,6 +439,7 @@
<a-select :placeholder="$t('PleaseSelect')+$t('statisticalNodes')"
class="box-input"
optionFilterProp="label"
:disabled="flowdisabled"
@change="DutyDepartChangeOne"
mode="multiple"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
@@ -464,6 +470,7 @@
class="box-input"
optionFilterProp="label"
mode="multiple"
:disabled="flowdisabled"
@change="handleChange"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.dutyTerritory">
@@ -876,7 +883,7 @@
this.queryPersonByProject(value.dutyTerritory.join(','))
}
console.log(value)
if(value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS == null)){
if(value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS != null)){
this.flowdisabled = true
this.$refs.uploadFile.disabled = true
}
@@ -18,7 +18,7 @@
</div>
<a-form-model-item class="itemModel" prop="serialNumber">
<a-input class="box-input"
:disabled="false"
:disabled="this.dataList && this.dataList.length > 0?true:false"
v-model="formInline.serialNumber"
:placeholder="$t('PleaseEnter')+$t('standard')"/>
</a-form-model-item>
@@ -31,6 +31,7 @@
</div>
<a-form-model-item class="itemModel" prop="title">
<a-input class="box-input"
:disabled="this.dataList && this.dataList.length > 0?true:false"
v-model="formInline.title"
:placeholder="$t('PleaseEnter')+$t('title')"/>
</a-form-model-item>
@@ -45,6 +46,7 @@
</div>
<a-form-model-item class="itemModel" prop="subtitle">
<a-input class="box-input"
:disabled="this.dataList && this.dataList.length > 0?true:false"
v-model="formInline.subtitle"
:placeholder="$t('PleaseEnter')+$t('subtitle')"/>
</a-form-model-item>
@@ -58,6 +60,7 @@
</div>
<a-form-model-item class="itemModel" prop="applicableSupplement">
<a-input class="box-input"
:disabled="this.dataList && this.dataList.length > 0?true:false"
v-model="formInline.applicableSupplement"
:placeholder="$t('PleaseEnter')+$t('applicableSupplement')"/>
</a-form-model-item>
@@ -75,6 +78,7 @@
<j-multi-select-tag class="box-input" v-model="formInline.attestationType"
:placeholder="$t('PleaseSelect')+$t('certificationType')"
:type="'select'"
:disabled="this.dataList && this.dataList.length > 0?true:false"
:triggerChange="false" :dictCode="'attestation_type'"/>
</a-form-model-item>
</div>
@@ -90,6 +94,7 @@
<j-multi-select-tag class="box-input" v-model="formInline.attestationRank"
:placeholder="$t('PleaseSelect')+$t('certificationLevel')"
:type="'select'"
:disabled="this.dataList && this.dataList.length > 0?true:false"
:triggerChange="false" :dictCode="'attestation_rank'"/>
</a-form-model-item>
</div>
@@ -109,7 +114,7 @@
optionFilterProp="label"
@change="DutyDepartChange"
mode="multiple"
:disabled="formInline.roleCodeIndex == 0 ? false : true"
:disabled="isdata(this.formInline)"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.dutyDepart">
<a-select-option v-for="(item, key) in firstLevelDutyTerritoryList"
@@ -137,7 +142,7 @@
optionFilterProp="label"
mode="multiple"
@change="dutyTerritoryChange"
:disabled="formInline.roleCodeIndex == 0 ? false : true"
:disabled="isdata(this.formInline)"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.dutyTerritory">
<a-select-option v-for="(item, key) in dutyTerritoryList"
@@ -169,7 +174,7 @@
<a-form-model-item class="itemModel" :prop="'regulationOwnerId'">
<a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"
class="box-input"
:disabled="formInline.roleCodeIndex == 0 ? false : true"
:disabled="isdata(this.formInline)"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.regulationOwnerId">
@@ -194,6 +199,7 @@
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
class="box-input"
allowClear
:disabled="this.dataList && this.dataList.length > 0 ? true : false"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="formInline.engineeringInterfacePerson">
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
@@ -218,7 +224,7 @@
<a-textarea
style="width: 100%"
:placeholder="$t('PleaseEnter')+$t('remarks')"
:disabled="false"
:disabled="this.dataList && this.dataList.length > 0?true:false"
v-model="formInline.remark" :rows="4"/>
</a-form-model-item>
</div>
@@ -887,6 +893,23 @@
return true
}
},
isdata(val) {
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
// val.designFlowStatus == 'Results to be reviewed') {
// return true
// } else {
// return false
// }
if (val.roleCodeIndex == '0') {
if(this.dataList && this.dataList.length > 0) {
return true
}else{
return false
}
} else {
return false
}
},
isEditVerifi(val) {
// if (val.verifyFlowStatus == 'Task to be confirmed' || val.verifyFlowStatus == 'Results to be submitted' ||
// val.verifyFlowStatus == 'Results to be reviewed') {