|
|
|
@ -414,6 +414,7 @@ |
|
|
|
v-loading="dataListLoading" |
|
|
|
:row-class-name="tableRowClassName"> |
|
|
|
<el-table-column |
|
|
|
v-if="this.authUpdate" |
|
|
|
header-align="center" |
|
|
|
fixed="left" |
|
|
|
align="center" |
|
|
|
@ -428,6 +429,22 @@ |
|
|
|
@click="massProductionDocumentDelete(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-else |
|
|
|
header-align="center" |
|
|
|
fixed="left" |
|
|
|
align="center" |
|
|
|
width="90" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a> |
|
|
|
<a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null" |
|
|
|
@click="copyFile(scope.row)">复制</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a> |
|
|
|
<a type="text" size="small" v-if="shouldShowDelete(scope.row)" |
|
|
|
@click="massProductionDocumentDelete(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span> |
|
|
|
@ -1339,6 +1356,7 @@ |
|
|
|
v-loading="dataListLoading" |
|
|
|
:row-class-name="tableRowClassName"> |
|
|
|
<el-table-column |
|
|
|
v-if="this.authUpdate" |
|
|
|
header-align="center" |
|
|
|
fixed="left" |
|
|
|
align="center" |
|
|
|
@ -1353,6 +1371,21 @@ |
|
|
|
@click="massProductionDocumentDelete(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
v-else |
|
|
|
header-align="center" |
|
|
|
fixed="left" |
|
|
|
align="center" |
|
|
|
width="90" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a> |
|
|
|
<a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null" |
|
|
|
@click="copyFile(scope.row)">复制</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a> |
|
|
|
<a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span> |
|
|
|
@ -1564,6 +1597,7 @@ |
|
|
|
<el-table |
|
|
|
:height="this.height + 200" |
|
|
|
:data="copyDocumentList" |
|
|
|
ref="copyDocumentTable" |
|
|
|
stripe |
|
|
|
border |
|
|
|
@selection-change="selectionCopyDocument" |
|
|
|
@ -5058,12 +5092,6 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
|
documentType: row.documentType, |
|
|
|
documentId: row.documentId, |
|
|
|
} |
|
|
|
if (tempData.createBy !== tempData.username && tempData.username !== 'admin') { |
|
|
|
this.$message({ |
|
|
|
message: '只有上传人才能删除该文件', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
}else { |
|
|
|
let name = '转量产阶段' |
|
|
|
if (row.proofingId !== -1) { |
|
|
|
name = '打样' |
|
|
|
@ -5095,7 +5123,6 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
|
message: '已取消删除' |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
getProjectOtherDocument () { |
|
|
|
let tempData = { |
|
|
|
@ -5309,8 +5336,19 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
|
selectionProjectDocument(val) { |
|
|
|
this.projectDocumentSelection = val |
|
|
|
}, |
|
|
|
selectionCopyDocument(val) { |
|
|
|
this.documentCopySelection = 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; |
|
|
|
} |
|
|
|
}, |
|
|
|
saveSelectionProjectDocumentType() { |
|
|
|
if (this.projectDocumentSelection.length === 0) { |
|
|
|
@ -6172,7 +6210,6 @@ import {updateColumnSize} from "../../../api/table"; |
|
|
|
partDesc: this.proofingCurrentRow.partDesc, |
|
|
|
}; |
|
|
|
this.copyDialog = true |
|
|
|
console.log(this.copyModalData) |
|
|
|
}, |
|
|
|
searchCopyDocumentFileList() { |
|
|
|
getCopyDocumentFileList(this.copyModalData).then(({data}) => { |
|
|
|
|