|
|
@ -1599,8 +1599,6 @@ |
|
|
<el-table |
|
|
<el-table |
|
|
:height="this.height + 200" |
|
|
:height="this.height + 200" |
|
|
:data="copyDocumentList" |
|
|
:data="copyDocumentList" |
|
|
ref="copyDocumentTable" |
|
|
|
|
|
stripe |
|
|
|
|
|
border |
|
|
border |
|
|
@selection-change="selectionCopyDocument" |
|
|
@selection-change="selectionCopyDocument" |
|
|
style="width: 100%;"> |
|
|
style="width: 100%;"> |
|
|
@ -1755,6 +1753,7 @@ import {downLoadObjectFile2} from "../../../api/eam/eam_object_list"; |
|
|
import {EventBus} from "../../../main"; |
|
|
import {EventBus} from "../../../main"; |
|
|
import {arrayToTreeByLevelCode} from "../../../utils/arrayToTreeByLevelCode"; |
|
|
import {arrayToTreeByLevelCode} from "../../../utils/arrayToTreeByLevelCode"; |
|
|
import {updateColumnSize} from "../../../api/table"; |
|
|
import {updateColumnSize} from "../../../api/table"; |
|
|
|
|
|
import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
/*打样记录組件*/ |
|
|
/*打样记录組件*/ |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
@ -5337,19 +5336,8 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
selectionProjectDocument(val) { |
|
|
selectionProjectDocument(val) { |
|
|
this.projectDocumentSelection = val |
|
|
this.projectDocumentSelection = val |
|
|
}, |
|
|
}, |
|
|
selectionCopyDocument(selection) { |
|
|
|
|
|
if (selection.length > 1) { |
|
|
|
|
|
// 只保留最后选择的那一行 |
|
|
|
|
|
const lastRow = selection[selection.length - 1]; |
|
|
|
|
|
// 清除所有选择 |
|
|
|
|
|
this.$refs.copyDocumentTable.clearSelection(); |
|
|
|
|
|
// 选中最后一次选择的那一行 |
|
|
|
|
|
this.$refs.copyDocumentTable.toggleRowSelection(lastRow, true); |
|
|
|
|
|
// 如有需要,可以将选中行存储到一个 data 变量中 |
|
|
|
|
|
this.documentCopySelection = [lastRow]; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.documentCopySelection = selection; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
selectionCopyDocument(val) { |
|
|
|
|
|
this.documentCopySelection = val; |
|
|
}, |
|
|
}, |
|
|
saveSelectionProjectDocumentType() { |
|
|
saveSelectionProjectDocumentType() { |
|
|
if (this.projectDocumentSelection.length === 0) { |
|
|
if (this.projectDocumentSelection.length === 0) { |
|
|
@ -6228,12 +6216,6 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
type: 'error' |
|
|
type: 'error' |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} else if (this.documentCopySelection.length > 1) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '只能选择一个文档', |
|
|
|
|
|
type: 'error' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
if (this.copyModalData.proofingNo === '*'){ |
|
|
if (this.copyModalData.proofingNo === '*'){ |
|
|
this.copyModalData.conclusion = 'N/A' |
|
|
this.copyModalData.conclusion = 'N/A' |
|
|
@ -6246,17 +6228,22 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
const inData = { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
ossId: this.documentCopySelection[0].ossId, |
|
|
|
|
|
proofingId: this.copyModalData.proofingId, |
|
|
|
|
|
projectId: this.copyModalData.projectId, |
|
|
|
|
|
projectPartId: this.copyModalData.projectPartId, |
|
|
|
|
|
documentDefinitionListId: this.copyModalData.documentDefinitionListId, |
|
|
|
|
|
|
|
|
const inDataList = this.documentCopySelection.map(item => ({ |
|
|
|
|
|
ossId: item.ossId, |
|
|
|
|
|
orderRef1: this.$store.state.user.site, |
|
|
|
|
|
orderRef2: this.copyModalData.proofingId.toString(), |
|
|
|
|
|
orderRef3: this.copyModalData.documentDefinitionListId, |
|
|
|
|
|
orderRef4: this.copyModalData.projectId.toString(), |
|
|
|
|
|
orderRef5: this.copyModalData.projectPartId.toString(), |
|
|
|
|
|
documentDesc: this.copyModalData.documentTypeId, |
|
|
|
|
|
cAdditionalInfo: this.copyModalData.documentType, |
|
|
conclusion: this.copyModalData.conclusion, |
|
|
conclusion: this.copyModalData.conclusion, |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
} |
|
|
|
|
|
copyDocumentFileToDoc(inData).then(({data}) => { |
|
|
|
|
|
|
|
|
folder: (this.copyModalData.proofingId === -1) |
|
|
|
|
|
? 'projectPMPDocumentFiles' |
|
|
|
|
|
: 'projectPPDocumentFiles' |
|
|
|
|
|
})); |
|
|
|
|
|
uploadFileList('/upload/testList',inDataList).then(({data}) => { |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
|