Browse Source

2024.6.27 产品文档收集优化

java8
yuejiayang 2 years ago
parent
commit
a5d003e122
  1. 24
      src/views/modules/eam/com_project_proof_record.vue

24
src/views/modules/eam/com_project_proof_record.vue

@ -158,10 +158,10 @@
</div>
</el-dialog>
<el-dialog title="文档清单定义" :visible.sync="documentListVisible" width="50%" style="margin-top: 10vh" :close-on-click-modal="false">
<el-dialog title="文档清单定义" @close="documentListVisibleFalse" :visible.sync="documentListVisible" width="50%" style="margin-top: 10vh" :close-on-click-modal="false">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" prop="projectId" >
<el-input v-model="modalData.projectId" readonly style="width: 110px;" class="red-text"></el-input>
<el-form-item label="项目编码" prop="projectId" class="red-text">
<el-input v-model="modalData.projectId" readonly style="width: 110px;" ></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="projectDesc" >
<el-input v-model="modalData.projectDesc" readonly style="width: 170px;" class="red-text"></el-input>
@ -208,7 +208,7 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="!item.columnHidden">{{ getColumnValue(scope.row, item) }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
@ -903,6 +903,18 @@
}
})
},
getColumnValue(row, column) {
//
if (column.columnProp === 'documentType') {
return this.getCombinedDocumentType(row);
}
else if (column.columnProp === 'documentDesc') {
return row.documentDesc; //
}
else {
return row[column.columnProp]; //
}
},
getCombinedDocumentType(row) {
//
if (row.documentType === null || row.documentType === undefined) {
@ -913,6 +925,10 @@
}
return `${row.documentType}${row.documentDesc}`;
},
documentListVisibleFalse() {
this.documentListVisible = false
this.documentManifestDefinitionList = []
},
addDocumentList(row) {
this.documentListVisible = true
row.bu = row.site + "-" + row.buNo

Loading…
Cancel
Save