diff --git a/src/views/modules/srmPart/com_part_Attachments.vue b/src/views/modules/srmPart/com_part_Attachments.vue index 8efdf97..5f81db0 100644 --- a/src/views/modules/srmPart/com_part_Attachments.vue +++ b/src/views/modules/srmPart/com_part_Attachments.vue @@ -2,7 +2,7 @@
- + Upload @@ -13,7 +13,7 @@ :height="240" :data="fileList" ref="fileTableRef" - style="width: 100%; margin-top: 20px;"> + style="width: 100%; margin-top: 10px;"> - + diff --git a/src/views/modules/srmPart/partInfoList.vue b/src/views/modules/srmPart/partInfoList.vue index f33da08..544e72b 100644 --- a/src/views/modules/srmPart/partInfoList.vue +++ b/src/views/modules/srmPart/partInfoList.vue @@ -55,7 +55,8 @@ width="160" label="Action"> @@ -266,7 +267,6 @@ import attachments from './com_part_Attachments' import { approveNodeInstance, - getFlowPreview, restartFlowInstance } from '@/api/workFlow/workFlow.js' @@ -970,26 +970,27 @@ export default { }, // 重新审批 - rqrq - handleRestart(row) { + handleRestart(row) { this.$confirm('确定要重新发起审批流程吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { restartFlowInstance({ - applyNo: row.flowNodeInstanceData.applyNo, - site: row.flowNodeInstanceData.site, - orderType: row.flowNodeInstanceData.orderType + applyNo: row.applyNo, + site: row.site, + orderType: row.orderType }).then(({ data }) => { if (data && data.code === 0) { this.$message.success('重新审批成功') - this.currentInstance = null + this.getMainData() } else { this.$message.error(data.msg || '操作失败') } }) }).catch(() => {}) } + } }