|
|
|
@ -69,6 +69,11 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column> |
|
|
|
<el-table-column label="文档类型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ getCombinedDocumentType(scope.row) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnFileContentArray" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
@ -379,6 +384,13 @@ |
|
|
|
page: 1, |
|
|
|
limit: 1000 |
|
|
|
}, |
|
|
|
searchProofData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
username: this.$store.state.user.name, |
|
|
|
projectId: '', |
|
|
|
page: 1, |
|
|
|
limit: 1000 |
|
|
|
}, |
|
|
|
visible:false, |
|
|
|
documentListVisible:false, |
|
|
|
dataListLoading: false, |
|
|
|
@ -450,6 +462,7 @@ |
|
|
|
proofingNo: '', |
|
|
|
documentTypeId: '', |
|
|
|
documentType: '', |
|
|
|
documentDesc: '', |
|
|
|
responsibleDepartment: '', |
|
|
|
estimatedCompletionDays: '', |
|
|
|
page: 1, |
|
|
|
@ -461,6 +474,7 @@ |
|
|
|
proofingNo: '', |
|
|
|
documentTypeId: '', |
|
|
|
documentType: '', |
|
|
|
documentDesc: '', |
|
|
|
responsibleDepartment: '', |
|
|
|
estimatedCompletionDays: '', |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
@ -652,24 +666,6 @@ |
|
|
|
}, |
|
|
|
], |
|
|
|
columnFileContentArray: [ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 103001, |
|
|
|
serialNumber: '103001Table1DocumentType', |
|
|
|
tableId: '103001Table1', |
|
|
|
tableName: '打样文档表', |
|
|
|
columnProp: 'documentType', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
columnLabel: '文档类型', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 101001014, |
|
|
|
@ -833,6 +829,7 @@ |
|
|
|
this.visible = true |
|
|
|
//初始化参数 |
|
|
|
this.modalData = JSON.parse(JSON.stringify(inData1)); |
|
|
|
this.searchProofData = JSON.parse(JSON.stringify(inData1)); |
|
|
|
}, |
|
|
|
newProofingRecord() { |
|
|
|
proofingInformationSave(this.modalData).then(({data}) => { |
|
|
|
@ -844,6 +841,7 @@ |
|
|
|
}) |
|
|
|
this.visible = false |
|
|
|
//刷新表格 |
|
|
|
this.getProofingInformation() |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
@ -855,7 +853,13 @@ |
|
|
|
this.newProofingDocument() |
|
|
|
}, |
|
|
|
getProofingInformation() { |
|
|
|
let tempData = this.modalData |
|
|
|
let tempData = { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
username: this.$store.state.user.name, |
|
|
|
projectId: this.searchProofData.projectId, |
|
|
|
page: 1, |
|
|
|
limit: 1000 |
|
|
|
} |
|
|
|
proofingInformationSearch(tempData).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -887,7 +891,6 @@ |
|
|
|
for (let i = 0; i < this.proofDocumentList.length; i++) { |
|
|
|
this.proofDocumentList[i].buNo = this.proofDocumenCurrentRow.buNo |
|
|
|
} |
|
|
|
console.log(this.proofDocumentList) |
|
|
|
if (this.totalPage > 0) { |
|
|
|
// 设置选中行 |
|
|
|
this.$refs.proofDocumentTable.setCurrentRow(this.proofDocumentList[0]) |
|
|
|
@ -900,6 +903,16 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getCombinedDocumentType(row) { |
|
|
|
// 根据您的需求,组合或拼接需要显示的字段 |
|
|
|
if (row.documentType === null || row.documentType === undefined) { |
|
|
|
return row.documentDesc |
|
|
|
} |
|
|
|
if (row.documentDesc === null || row.documentDesc === undefined) { |
|
|
|
return row.documentType |
|
|
|
} |
|
|
|
return `${row.documentType}${row.documentDesc}`; |
|
|
|
}, |
|
|
|
addDocumentList(row) { |
|
|
|
this.documentListVisible = true |
|
|
|
row.bu = row.site + "-" + row.buNo |
|
|
|
@ -998,11 +1011,13 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
saveSelectionDocumentType() { |
|
|
|
this.getProofDocument() |
|
|
|
if (this.documentSelection.length === 0) { |
|
|
|
this.$message({ |
|
|
|
message: '请选择文档类型', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
this.extraDocumentList = [] |
|
|
|
return |
|
|
|
} |
|
|
|
this.documentSelection.forEach((item) => { |
|
|
|
@ -1111,6 +1126,9 @@ |
|
|
|
if (this.activeName === 'proofDocument') { |
|
|
|
this.getProofDocument() |
|
|
|
} |
|
|
|
if (this.activeName === 'proofingTable') { |
|
|
|
this.getProofingInformation() |
|
|
|
} |
|
|
|
}, |
|
|
|
createExportData() { |
|
|
|
|
|
|
|
|