From 9d8f3f945183f6f7d32c42b65c219b860456aa6d Mon Sep 17 00:00:00 2001 From: zyn Date: Wed, 31 Jan 2024 11:36:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=87=8D=E7=82=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=A0=87=E5=87=86/=E6=94=BF=E7=AD=96=E5=90=88=E8=A7=84?= =?UTF-8?q?=E6=80=A7=E9=A1=B9=E7=9B=AE=E5=AE=A1=E6=9F=A5=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../policyComplianceReview/index.vue | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue index cbd76ffd0..910658e46 100644 --- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue +++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue @@ -172,7 +172,13 @@ - + + @@ -229,6 +235,7 @@ import personnelInformation from './components/personnelInformation';// 人员 import fetchList from './components/fetchList';// 未选择责任人时的列表 import businessDivisionList from './components/businessDivisionList';// 责任人为事业部时的列表 import productPlanningList from './components/productPlanningList';// 责任人为产品规划部的列表 +import Inventory from '@/pages/policyRegulation/standardTrackingList/Inventory.vue' import { queryTaskFirst, saveTaskFirst, @@ -243,6 +250,7 @@ import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription'; export default { name: 'Index', components: { + Inventory, ReceiptDescription, ProcessHeader, ProcessTitle, @@ -508,7 +516,7 @@ export default { const _formData = new FormData(); this.$refs.personnelInformationRef.save((row) => { const data = Object.assign(this.dataForm, row); - data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas + // data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas _formData.append('taskIds', this.$route.query.taskIds); _formData.append('json', JSON.stringify({ form: data, @@ -583,7 +591,7 @@ export default { draftSaving () { const _formData = new FormData(); const json = this.dataForm - json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas + // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas json.commentText = this.commentText _formData.append('id', this.bpnId || '') _formData.append('createUser', this.$store.getters.userInfo.userId); @@ -609,11 +617,14 @@ export default { this.openButtonLoading() if (!this.taskKey || this.taskKey == 'PolicyComplianceProgramReviewProcessKey1') {// 起草 this.closeButtonLoading() + if (!this.dataForm.infoTableDatas || this.dataForm.infoTableDatas.length === 0) { + return this.$message.warning('请至少添加一条数据') + } this.$refs.personnelInformationRef.submit((row) => { - this.$refs.fetchListRef.submit((val) => { - this.openButtonLoading() - this.startProcessRollBack(row) - }) + // this.$refs.fetchListRef.submit((val) => { + this.openButtonLoading() + this.startProcessRollBack(row) + // }) }) } else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||// 审核 this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||// 审定 @@ -677,7 +688,7 @@ export default { this.closeButtonLoading() this.$refs.personnelInformationRef.submit((row) => { const json = Object.assign(this.dataForm, row); - json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas + // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas json.commentText = this.commentText json.approvalFlag = 0 const query = { @@ -782,7 +793,7 @@ export default { startProcessRollBack (roleForm) { const json = Object.assign(this.dataForm, roleForm); json.commentText = this.commentText - json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas + // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas const query = { form: json, commentText: this.commentText @@ -927,7 +938,7 @@ export default { this.$refs.personnelInformationRef.getData(row.form) } if (this.isFetchList) { // 拿到未选择责任人数据 - this.$refs.fetchListRef.getData(row.form.infoTableDatas) + // this.$refs.fetchListRef.getData(row.form.infoTableDatas) } if (this.isBusinessDivisionList) {// 拿到责任人为事业部门的数据 this.$nextTick(() => { @@ -948,7 +959,7 @@ export default { const mes = JSON.parse(res.mes); this.dataForm = mes.form this.$refs.personnelInformationRef.getData(mes.roleForm) - this.$refs.fetchListRef.getData(mes.form.infoTableDatas) + // this.$refs.fetchListRef.getData(mes.form.infoTableDatas) this.commentText = mes.commentText this.dataLoading = false });