diff --git a/src/api/eam/eamProject.js b/src/api/eam/eamProject.js index 08b08ae..aa35ad5 100644 --- a/src/api/eam/eamProject.js +++ b/src/api/eam/eamProject.js @@ -13,6 +13,7 @@ export const eamProjectPartSearch= data => createAPI(`/pms/eamProject/eamProject export const queryEamProjectPart= data => createAPI(`/pms/eamProject/queryEamProjectPart`,'post',data) export const eamProjectPartInfoSave= data => createAPI(`/pms/eamProject/eamProjectPartInfoSave`,'post',data) export const eamProjectPartInfoEdit= data => createAPI(`/pms/eamProject/eamProjectPartInfoEdit`,'post',data) +export const eamProjectPartInfoCancelEdit= data => createAPI(`/pms/eamProject/eamProjectPartInfoCancelEdit`,'post',data) export const eamProjectPartInfoDelete= data => createAPI(`/pms/eamProject/eamProjectPartInfoDelete`,'post',data) export const searchConfirmatorList= data => createAPI(`/pms/eamProject/searchConfirmatorList`,'post',data) export const addConfirmatory= data => createAPI(`/pms/eamProject/addConfirmatory`,'post',data) diff --git a/src/views/modules/eam/com_project_proof_record.vue b/src/views/modules/eam/com_project_proof_record.vue index 050bf0c..ad62484 100644 --- a/src/views/modules/eam/com_project_proof_record.vue +++ b/src/views/modules/eam/com_project_proof_record.vue @@ -10,7 +10,7 @@ :data="dataList" border style="width: 100%;margin-top: -5px;" - :height="this.height +30" + :height="adjustedHeightLeft" highlight-current-row ref="proofingTable" @row-click="proofDocumentClickRow" @@ -18,6 +18,23 @@ :row-class-name="tableRowClassName2" v-loading="dataListLoading"> + + {{scope.row[item.columnProp]}} + + + + + v-else + header-align="center" + align="center" + width="50" + fixed="right" + label="操作"> - {{scope.row[item.columnProp]}} - @@ -58,7 +69,7 @@ :data="proofDocumentList" border style="width: 100%;margin-top: 5px;" - :height="this.height - 11" + :height="adjustedHeightRight" ref="proofDocumentTable" @row-click="uploadDocumentClickRow" @current-change="changeCurrentRow1" @@ -66,6 +77,7 @@ :row-class-name="tableRowClassName" v-loading="dataListLoading"> 查看附件 + + + 上传文件 + 查看附件 + + @@ -514,12 +538,28 @@ import {getSiteAndBuByUserName} from "../../../api/qc/qc"; import {updateColumnSize} from "../../../api/table"; export default { + props: { + // 增加一个 prop 用于区分是否在模态框中展示 + inModal: { + type: Boolean, + default: false + } + }, computed: { he() { return he }, row() { return row + }, + // 当在模态框中展示时,原有的计算高度需要减去100 + adjustedHeightLeft() { + // 原来左侧表格高度为 this.height + 30 + return (this.height + (this.inModal ? 200 : 0)) + 30; + }, + adjustedHeightRight() { + // 原来右侧表格高度为 this.height - 11 + return (this.height + (this.inModal ? 200 : 0)) - 11; } }, components: { @@ -535,6 +575,7 @@ }, data() { return { + authUpdate: false, userBuList: [], dataList: [], searchData: { @@ -905,7 +946,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 120, + columnWidth: 90, }, { userId: this.$store.state.user.name, @@ -923,7 +964,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 120, + columnWidth: 260, }, { userId: this.$store.state.user.name, @@ -941,7 +982,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 120, + columnWidth: 141, }, { userId: this.$store.state.user.name, @@ -959,7 +1000,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 80, + columnWidth: 100, }, ], columnFileContentArray: [ @@ -979,7 +1020,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 120, + columnWidth: 100, }, //是否上传 { @@ -1215,9 +1256,10 @@ this.documentSelection = val }, //初始化组件的参数 - init(inData) { + init(inData,authUpdate) { //初始化参数 this.searchData = JSON.parse(JSON.stringify(inData)); + this.authUpdate = authUpdate //刷新表格 proofingInformationSearch(this.searchData).then(({data}) => { //区分请求成功和失败的状况 diff --git a/src/views/modules/eam/eamProjectInfo.vue b/src/views/modules/eam/eamProjectInfo.vue index 77220a3..692f82e 100644 --- a/src/views/modules/eam/eamProjectInfo.vue +++ b/src/views/modules/eam/eamProjectInfo.vue @@ -1161,7 +1161,7 @@ import {updateColumnSize} from "../../../api/table"; functionId: 401003, serialNumber: '401003Table1BuDesc', tableId: "401003Table1", - tableName: "BU文档清单表", + tableName: "项目信息表", columnProp: 'buDesc', headerAlign: "center", align: "center", diff --git a/src/views/modules/eam/eamProjectPartInfo.vue b/src/views/modules/eam/eamProjectPartInfo.vue index 43a025c..bff8142 100644 --- a/src/views/modules/eam/eamProjectPartInfo.vue +++ b/src/views/modules/eam/eamProjectPartInfo.vue @@ -206,32 +206,37 @@ 下达 新增打样 + 详情 转正式料号 转量产 下达 新增打样 + 详情 转正式料号 转量产 新增打样 + 详情 转正式料号 转量产 + 撤销 新增打样 + 详情 转正式料号 转量产 @@ -298,9 +303,9 @@ - 文档清单定义 + 文档清单定义 上传其他文档 - 邮件提醒 + 邮件提醒 上传文件 - 提醒 查看附件 - 删除 + + + 上传文件 + 提醒 + 查看附件 + 删除 + + @@ -357,7 +375,7 @@ - 选择生产确认文档 + 选择生产确认文档 + + + + + + + + + 文档清单定义 + 上传其他文档 + 邮件提醒 + + + + 上传文件 + 查看附件 + + + + + 上传文件 + 提醒 + 查看附件 + 删除 + + + + + + {{ scope.$index + 1 }} + + + + + + + {{ getCombinedDocumentType(scope.row) }} + + + + + + {{scope.row[item.columnProp]}} + + + + + + + 选择生产确认文档 + + + + 查看附件 + 上传文件 + + + + + + {{ scope.$index + 1 }} + + + + + + + {{ getCombinedDocumentType(scope.row) }} + + + + + + {{scope.row[item.columnProp]}} + + + + + + + + + + 文档清单 + + + + + + + 查看附件 + + + + + + + + 推送人员清单 + + + + + + + + + + + + + 确认 + 查看附件 + + + + + + + + + + + + + + + + {{ '主BOM' }} + {{ scope.row.levelCode }} + + + {{scope.row[item.columnProp]}} + + + + + + + + + + + + + {{ '1' }} + {{ scope.row.levelCode }} + + + {{scope.row[item.columnProp]}} + + + + + + + + + + { + eamProjectPartInfoCancelEdit(this.modalData).then(({data}) => { + if (data && (data.code === 0 || data.code === '0')) { + EventBus.$emit('updateProjectInfo') + this.getDataList() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + } + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }).catch(() => { + }) + } + }, getRowProjectInfo(){ let inData={ site: this.proofingCurrentRow.site, @@ -4169,20 +4554,36 @@ import {updateColumnSize} from "../../../api/table"; } this.$refs.proofRecord.init(inData) }, - editProjectDocument(modalData) { - modalData.buNo = modalData.bu.split('_')[1] - modalData.proofingId = -1 - editProjectDocument(modalData).then(({data}) => { - //区分请求成功和失败的状况 - if (data && data.code === 0) { - this.$message({ - message: '编辑成功', - type: 'success' - }) - //刷新表格 - this.refreshCurrentTabTable() - } - }) + + showProofDetailModal(row) { + // 保存当前行数据 + this.proofingCurrentRow = row; + // 打开模态框 + this.dialogVisible = true; + // 模态框打开后刷新 proofRecord 组件的数据 + this.$nextTick(() => { + let inData = { + site: this.proofingCurrentRow.site, + projectId: this.proofingCurrentRow.projectId, + projectPartId: this.proofingCurrentRow.projectPartId, + projectManager: this.proofingCurrentRow.projectManager, + projectOwner: this.proofingCurrentRow.projectOwner, + engineer: this.proofingCurrentRow.engineer, + cQualityEngineer1: this.proofingCurrentRow.cQualityEngineer1, + cQualityEngineer2: this.proofingCurrentRow.cQualityEngineer2, + cQualityEngineer3: this.proofingCurrentRow.cQualityEngineer3, + cQualityEngineer4: this.proofingCurrentRow.cQualityEngineer4, + cQualityEngineer5: this.proofingCurrentRow.cQualityEngineer5, + cQualityEngineer6: this.proofingCurrentRow.cQualityEngineer6, + cManufactureEngineer: this.proofingCurrentRow.cManufactureEngineer, + docEngineer: this.proofingCurrentRow.docEngineer, + ipqcHardTag: this.proofingCurrentRow.ipqcHardTag, + page: 1, + limit: 1000 + }; + // 调用模态框内 proofRecord 组件的 init 方法刷新数据 + this.$refs.proofRecordModal.init(inData); + }); }, getFinalPartDesc(){ @@ -5582,21 +5983,23 @@ import {updateColumnSize} from "../../../api/table"; this.refreshCurrentTabTable() }, async refreshCurrentTabTable () { - if (this.activeName == 'proofRecord') { + if (this.activeName === 'proofRecord') { this.getRowProjectInfo(); } - if (this.activeName == 'massProductionStage') { + if (this.activeName === 'massProductionStage' || this.activeModalTab === 'massProductionStage') { this.getProjectOtherDocument(); } - if (this.activeName == 'allDocument'){ + if (this.activeName === 'allDocument' || this.activeModalTab === 'allDocument') { this.searchProjectAllDocumentList() this.searchConfirmatorList() } - if (this.activeName === 'productionDocumentsConfirmProgress'){ + if (this.activeName === 'productionDocumentsConfirmProgress' || this.activeModalTab === 'productionDocumentsConfirmProgress') { this.getConfirmProgressDocumentList() this.getConfirmProgressPusherList() } - if (this.activeName === 'massProductionBOM' && this.proofingCurrentRow.finalPartNo !== '' && this.proofingCurrentRow.finalPartNo !== null){ + if ((this.activeName === 'massProductionBOM' || this.activeModalTab === 'massProductionBOM') && this.proofingCurrentRow.finalPartNo + !== '' && + this.proofingCurrentRow.finalPartNo !== null){ this.dataListLoading = true; try { // 从后端获取数据 @@ -5611,7 +6014,9 @@ import {updateColumnSize} from "../../../api/table"; } else { this.projectPartBomList = [] } - if (this.activeName === 'Routing' && this.proofingCurrentRow.finalPartNo !== '' && this.proofingCurrentRow.finalPartNo !== null){ + if ((this.activeName === 'Routing' || this.activeModalTab === 'Routing') && + this.proofingCurrentRow.finalPartNo !== '' && + this.proofingCurrentRow.finalPartNo !== null){ this.dataListLoading = true; this.fetchRoutingList() } else {
文档清单
推送人员清单