Browse Source

增加重新审批功能

master
yanyan 4 weeks ago
parent
commit
61f92a59ea
  1. 4
      src/views/modules/srmPart/com_part_Attachments.vue
  2. 2
      src/views/modules/srmPart/com_part_Suppliers.vue
  3. 13
      src/views/modules/srmPart/partInfoList.vue

4
src/views/modules/srmPart/com_part_Attachments.vue

@ -2,7 +2,7 @@
<div class="customer-css">
<!-- 只有附件上传功能 -->
<el-form label-position="top" style="margin-top: -5px;">
<el-row style="margin-top: 20px">
<el-row style="margin-top: 10px">
<el-col :span="4">
<el-button class="customer-bun-min" type="primary" @click="handleUpload">Upload</el-button>
</el-col>
@ -13,7 +13,7 @@
:height="240"
:data="fileList"
ref="fileTableRef"
style="width: 100%; margin-top: 20px;">
style="width: 100%; margin-top: 10px;">
<el-table-column
prop="fileName"
header-align="center"

2
src/views/modules/srmPart/com_part_Suppliers.vue

@ -2,7 +2,7 @@
<div class="customer-css">
<el-form :inline="true" label-position="top" :model="searchData">
<el-form-item label="供应商编码">
<el-input v-model="searchData.addressType" clearable style="width: 120px"></el-input>
<el-input v-model="searchData.supplierCode" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item label=" ">

13
src/views/modules/srmPart/partInfoList.vue

@ -55,7 +55,8 @@
width="160"
label="Action">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="openApproveDialog(scope.row)">审批 |</el-link>
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'COMPLETED' || scope.row.flowStatus === 'TERMINATED'" @click="handleRestart(scope.row)">重新审批 |</el-link>
<el-link style="cursor: pointer" v-if="scope.row.flowStatus === 'RUNNING'" @click="openApproveDialog(scope.row)">审批 |</el-link>
<el-link style="cursor: pointer" @click="editPart(scope.row)">编辑 |</el-link>
<el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link>
</template>
@ -266,7 +267,6 @@ import attachments from './com_part_Attachments'
import {
approveNodeInstance,
getFlowPreview,
restartFlowInstance
} from '@/api/workFlow/workFlow.js'
@ -977,19 +977,20 @@ export default {
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(() => {})
}
}
}

Loading…
Cancel
Save