diff --git a/src/api/workCenter.js b/src/api/workCenter.js index ab502e61..0748cfe5 100644 --- a/src/api/workCenter.js +++ b/src/api/workCenter.js @@ -217,6 +217,8 @@ const saveInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowS const addInspectPlanTable = (params) => postAction('/process/processEsInspectPlan/add', params) // 稽查计划表-编辑 const editInspectPlanTable = (params) => postAction('/process/processEsInspectPlan/edit', params) +// 稽查计划表-填写意见 +const fillInOpinionInspectPlanTable = (params) => postAction('/process/processEsInspectPlanOpinion/fillInOpinion', params) export { getProcessNodeList, @@ -327,5 +329,6 @@ export { transferInspectPlan, saveInspectPlan, addInspectPlanTable, - editInspectPlanTable + editInspectPlanTable, + fillInOpinionInspectPlanTable } diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue index 5a4ac5da..b9c6790d 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/EnterpriseStandardInspectionPlanFlow.vue @@ -247,6 +247,7 @@ export default { loadPage (params) { this.currentNode = this.$route.query.nodeId this.projectId = this.$route.query.projectId + this.initPersonInfoData(this.currentNode === EsInspectionPlan.initiate.value) switch (this.currentNode) { case EsInspectionPlan.initiate.value: this.btn = EsInspectionPlan.initiate.btn @@ -264,6 +265,7 @@ export default { this.btn = EsInspectionPlan.liaisonLeaderApproval.btn break } + this.loading = true getInspectPlanDetail(params).then(res => { if (res.success) { const data = res.result || {} @@ -274,6 +276,8 @@ export default { prcMes: data.processAll.prcMes }) } + }).finally(() => { + this.loading = false }) }, switchChange (value) { @@ -361,6 +365,10 @@ export default { continueTurnTo () { if (this.loading) return this.loading = true + // const params = { + // taskId: this.$route.query.taskId, + // userId: this.$route.query.taskId, + // } this.getPageParams().then(res => { console.log(res) return transferInspectPlan(res) @@ -402,12 +410,14 @@ export default { if (this.loading) return this.loading = true let fn - if (this.currentNode === EsInspectionPlan.initiate.value) { - fn = startInspectPlan - } else if (this.currentNode === EsInspectionPlan.fillInComments.value) { - fn = approvalInspectPlan - } else if (this.currentNode === EsInspectionPlan.liaisonCollect.value) { - fn = approvalInspectPlan + switch (this.currentNode) { + case EsInspectionPlan.initiate.value: + fn = startInspectPlan + break + case EsInspectionPlan.fillInComments.value: + case EsInspectionPlan.liaisonCollect.value: + fn = approvalInspectPlan + break } this.getPageParams().then(res => { console.log(res) diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue index aa5cb35b..4a7e321e 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable.vue @@ -17,6 +17,7 @@ :dataSource="dataSource" :can-drag="true" rowKey="id" + :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :scroll="{x: '100%'}" @change="tableOnChange"> @@ -51,7 +52,7 @@ @@ -61,10 +62,10 @@ - - + + - + @@ -133,21 +134,21 @@ export default { title: this.$t('workCenter.esInspectionPlan.planInspectionObjects'), align: 'center', width: 120, - dataIndex: 'inspectObject', + dataIndex: 'inspectObject_dictText', scopedSlots: { customRender: 'text' } }, { // 主责标准化工作组 title: this.$t('workCenter.esInspectionPlan.mainDutyStandardizationGroup'), align: 'center', width: 150, - dataIndex: 'standardizationWorkGroup', + dataIndex: 'standardizationWorkGroup_dictText', scopedSlots: { customRender: 'text' } }, { // 所属部门 title: this.$t('workCenter.esInspectionPlan.department'), align: 'center', width: 120, - dataIndex: 'belongDept', + dataIndex: 'belongDept_dictText', scopedSlots: { customRender: 'text' } }, { // 计划稽查日期 @@ -161,14 +162,14 @@ export default { title: this.$t('workCenter.esInspectionPlan.inspectionDirector'), align: 'center', width: 120, - dataIndex: 'inspectUser', + dataIndex: 'inspectUser_dictText', scopedSlots: { customRender: 'text' } }, { // 标准化组对接人 title: this.$t('workCenter.esInspectionPlan.standardizationGroupContactPerson'), align: 'center', width: 140, - dataIndex: 'standardizationDockingUser', + dataIndex: 'standardizationDockingUser_dictText', scopedSlots: { customRender: 'text' } }, { // 所属部门人员 @@ -226,9 +227,15 @@ export default { }, watch: { // 列表查询带上项目id - projectId () { - this.filters.projectId = this.projectId - this.loadData() + projectId: { + immediate: true, + handler () { + this.filters.projectId = this.projectId + if (this.currentNode === EsInspectionPlan.fillInComments.value) { + this.filters.nodeId = this.$route.query.nodeId + } + this.loadData() + } } }, computed: { diff --git a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/WriteOpinionModal.vue b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/WriteOpinionModal.vue index 31c2920b..8cfaea58 100644 --- a/src/views/workCenter/enterpriseStandardInspectionPlan/modules/WriteOpinionModal.vue +++ b/src/views/workCenter/enterpriseStandardInspectionPlan/modules/WriteOpinionModal.vue @@ -14,6 +14,7 @@ :columns="columns" :dataSource="dataSource" :can-drag="true" + :pagination="false" rowKey="id" ref="table" size="middle" @@ -29,12 +30,12 @@ - + + :placeholder="$t('pleaseEnter') + $t('workCenter.esInspectionPlan.opinion')" v-model="formData.opinion"/> @@ -44,6 +45,7 @@