Browse Source

2024.11.7 文档收集更新

java8
yuejiayang 1 year ago
parent
commit
b3a03a4c26
  1. 27
      src/views/modules/eam/com_project_proof_record.vue
  2. 2
      src/views/modules/eam/eamProjectInfo.vue
  3. 27
      src/views/modules/eam/eamProjectInfoForUploads.vue
  4. 56
      src/views/modules/eam/eamProjectPartInfo.vue

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

@ -81,10 +81,18 @@
<a type="text" size="small" v-if="scope.row.documentId !== null" @click="viewDocumentFile(scope.row)">查看附件</a> <a type="text" size="small" v-if="scope.row.documentId !== null" @click="viewDocumentFile(scope.row)">查看附件</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
<el-table-column label="序号" type="index" align="center" :index="indexMethod">
<template slot-scope="scope">
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? 'green' : '' }">
{{ scope.$index + 1 }}
</span>
</template>
</el-table-column>
<el-table-column label="文档类型" align="center"> <el-table-column label="文档类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ getCombinedDocumentType(scope.row) }}
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? '#029315' : '' }">
{{ getCombinedDocumentType(scope.row) }}
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -98,9 +106,16 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<div v-if="scope.row.uploadedFlag === 'Y'">
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1156,7 +1171,7 @@
proofingInformationSearch(tempData).then(({data}) => { proofingInformationSearch(tempData).then(({data}) => {
// //
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataList = data.page.list
this.dataList = data.page
let index = this.dataList.findIndex(item => item.proofingId === proofingId) let index = this.dataList.findIndex(item => item.proofingId === proofingId)
if (this.dataList.length > 0) { if (this.dataList.length > 0) {
this.isUpload = true this.isUpload = true

2
src/views/modules/eam/eamProjectInfo.vue

@ -3835,7 +3835,7 @@ import {searchBusinessInfo7} from "../../../api/factory/site";
}, },
toMes (row) { toMes (row) {
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { testPartNo: row.testPartNo }})
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { projectNo:row.projectNo,testPartNo: row.testPartNo }})
}, },
deletePartModal (row) { deletePartModal (row) {

27
src/views/modules/eam/eamProjectInfoForUploads.vue

@ -187,9 +187,21 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<div v-if="scope.row.proofingPhase === 'Alpha' || scope.row.proofingPhase === 'Beta'">
<span v-if="!item.columnHidden" style="color: #0033ff;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else-if="scope.row.uploadedFlag === 'Y'">
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -319,6 +331,7 @@ export default {
closeStartDate: '', closeStartDate: '',
closeEndDate: '', closeEndDate: '',
projectLeader: '', projectLeader: '',
documentDefinitionListId: '',
page: 1, page: 1,
limit: 10, limit: 10,
}, },
@ -1154,6 +1167,13 @@ export default {
this.favoriteIsOk() this.favoriteIsOk()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
// URL
const { documentDefinitionListId, flag } = this.$route.query;
// searchData
if (flag === '4'){
this.$route.query.flag = '1'
this.searchData.documentDefinitionListId = documentDefinitionListId
}
this.getDataList() this.getDataList()
}, },
activated() { activated() {
@ -1270,7 +1290,6 @@ export default {
// //
getDataList (params) { getDataList (params) {
console.log(this.searchData.projectLeader)
this.selectTypeFlag = params this.selectTypeFlag = params
// this.pageSize/10 // this.pageSize/10

56
src/views/modules/eam/eamProjectPartInfo.vue

@ -314,10 +314,18 @@
<a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a> <a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
<el-table-column label="序号" type="index" align="center" :index="indexMethod">
<template slot-scope="scope">
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? 'green' : '' }">
{{ scope.$index + 1 }}
</span>
</template>
</el-table-column>
<el-table-column label="文档类型" align="center"> <el-table-column label="文档类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ getCombinedDocumentType(scope.row) }}
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? '#029315' : '' }">
{{ getCombinedDocumentType(scope.row) }}
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -331,9 +339,16 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<div v-if="scope.row.uploadedFlag === 'Y'">
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -348,10 +363,18 @@
ref="projectAllDocumentDocumentTable" ref="projectAllDocumentDocumentTable"
@row-click="projectAllDocumentClickRow" @row-click="projectAllDocumentClickRow"
v-loading="dataListLoading"> v-loading="dataListLoading">
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
<el-table-column label="序号" type="index" align="center" :index="indexMethod">
<template slot-scope="scope">
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? 'green' : '' }">
{{ scope.$index + 1 }}
</span>
</template>
</el-table-column>
<el-table-column label="文档类型" align="center"> <el-table-column label="文档类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ getCombinedDocumentType(scope.row) }}
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? '#029315' : '' }">
{{ getCombinedDocumentType(scope.row) }}
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -365,9 +388,16 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<div v-if="scope.row.uploadedFlag === 'Y'">
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -2807,6 +2837,12 @@ import {EventBus} from "../../../main";
this.searchData1.testPartNo = this.$route.query.testPartNo; this.searchData1.testPartNo = this.$route.query.testPartNo;
this.agencyMatters = true; this.agencyMatters = true;
} }
// URL
const { projectPartId } = this.$route.query;
// searchData
if (projectPartId){
this.searchData.projectPartId = projectPartId
}
// //
this.getDataList() this.getDataList()
} }

Loading…
Cancel
Save