Browse Source

2025.03.24 文档收集系统 优化

java8
jiayang yue 10 months ago
parent
commit
731aba2c94
  1. 23
      src/views/modules/eam/com_project_proof_record.vue
  2. 57
      src/views/modules/eam/eamProjectPartInfo.vue

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

@ -555,6 +555,7 @@
<el-table <el-table
:height="this.height + 300" :height="this.height + 300"
:data="copyDocumentList" :data="copyDocumentList"
ref="copyDocumentTable"
stripe stripe
border border
@selection-change="selectionCopyDocument" @selection-change="selectionCopyDocument"
@ -1393,8 +1394,19 @@
selectionDocument(val) { selectionDocument(val) {
this.documentSelection = val this.documentSelection = 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;
}
}, },
// //
init(inData,authUpdate) { init(inData,authUpdate) {
@ -1861,12 +1873,6 @@
documentType: row.documentType, documentType: row.documentType,
documentId: row.documentId, documentId: row.documentId,
} }
if (tempData.createBy !== tempData.username) {
this.$message({
message: '只有上传人才能删除该文件',
type: 'warning'
})
}else {
this.$confirm('是否删除该打样文档的文件?', '提示', { this.$confirm('是否删除该打样文档的文件?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -1894,7 +1900,6 @@
message: '已取消删除' message: '已取消删除'
}); });
}); });
}
}, },
searchDocumentTypeList() { searchDocumentTypeList() {
this.searchDocumentTypeData.proofingId = this.modalData.proofingId this.searchDocumentTypeData.proofingId = this.modalData.proofingId

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

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

Loading…
Cancel
Save