From 9f27d3fff09a10817a6e876c23df6bc06ab2f4b8 Mon Sep 17 00:00:00 2001 From: danshihao Date: Thu, 4 Jan 2024 17:29:16 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=A8=BD=E6=9F=A5=E8=AE=A1=E5=88=92&?= =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E6=B5=81=E7=A8=8B=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/en-us.js | 1 + src/common/lang/zh-cn.js | 1 + .../EnterpriseStandardInspectionPlanFlow.vue | 2 + .../modules/InspectionPlanDrawer.vue | 25 ++-- .../modules/InspectionPlanTable.vue | 69 ++++++++-- .../modules/ShowOpinionModal.vue | 3 +- .../modules/WriteOpinionModal.vue | 26 +--- .../EnterpriseStandardInspectionProcess.vue | 43 ++++-- .../modules/InspectionProcessContent.vue | 80 +++++------ .../modules/InspectionProcessContentModal.vue | 50 ++----- .../InspectionProcessRectificationPlan.vue | 50 +++++-- ...nspectionProcessRectificationPlanModal.vue | 25 ++-- .../modules/InspectionProcessReport.vue | 55 ++++++-- .../modules/InspectionProcessReportModal.vue | 27 ++-- .../modules/InspectionProcessTable.vue | 125 +++++++++--------- .../modules/InspectionProcessTableModal.vue | 38 +++--- 16 files changed, 354 insertions(+), 266 deletions(-) diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index e0ba0d9b..2fc5d09c 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -175,6 +175,7 @@ module.exports = { pleaseEnterAPositiveInteger: '请输入正整数', pleaseSelectStandard: '请选择标准', successfullyDelete: '删除成功', + cannotAddAgain: '不能重复添加', // 树右键 treeRight: { addFolder: 'Create New Folder', diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index dd81e14f..ab84a2fa 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -183,6 +183,7 @@ module.exports = { implementationNeedGreaterThan: '实施日期需要至少比发布日期大15天', pleaseSelectStandard: '请选择标准', successfullyDelete: '删除成功', + cannotAddAgain: '不能重复添加', // 树右键 treeRight: { addFolder: '新增文件夹', diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue index b33ef433..d090a8ec 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue @@ -352,6 +352,8 @@ export default { const params = {} // 业务表信息 params.processEsInspectPlanList = this.$refs.inspectionPlanTable.dataSource + // 获取删除业务信息的ids列表 + params.processAllDelIds = this.$refs.inspectionPlanTable.getDelIds() // 收集所有表单信息 let formDataList = [] if (isValidate) { diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue index e3df4580..44ac3d33 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanDrawer.vue @@ -280,24 +280,17 @@ export default { if (!err) { // 调整前端存储 const row = Object.assign({}, this.model, values) + if (!row.createByDictText) { + const { realname, username } = this.$store.getters.userInfo + row.createByDictText = `${realname}(${username})` + } + // 用于判断显示的按钮 + if (!row.createBy) { + const { username } = this.$store.getters.userInfo + row.createBy = username + } this.$emit('ok', row, this.index) this.close() - // const params = Object.assign({ - // projectId: this.projectId - // }, this.model, values) - // this.confirmLoading = true - // const fn = params.id ? editInspectPlanTable : addInspectPlanTable - // fn(params).then(res => { - // if (res.success) { - // this.$emit('ok', params) - // this.$message.success(res.message) - // this.close() - // } else { - // this.$message.warn(res.message) - // } - // }).finally(() => { - // this.confirmLoading = false - // }) } }) }, diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue index 07806787..19fe8989 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue @@ -18,11 +18,11 @@ :columns="columns" :dataSource="dataSource" :can-drag="true" - :rowKey="(row, index) => row.id || index" + :rowKey="(_, index) => index" :loading="loading" :pagination="false" :row-selection="hasTableOperator ? { selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps } : null" - :scroll="{x: '100%'}" + :scroll="{x: '100%', y: '50vh'}" @change="tableOnChange"> @@ -43,14 +43,14 @@