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. 15
      src/views/modules/srmPart/partInfoList.vue

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

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

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

@ -2,7 +2,7 @@
<div class="customer-css"> <div class="customer-css">
<el-form :inline="true" label-position="top" :model="searchData"> <el-form :inline="true" label-position="top" :model="searchData">
<el-form-item label="供应商编码"> <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>
<el-form-item label=" "> <el-form-item label=" ">

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

@ -55,7 +55,8 @@
width="160" width="160"
label="Action"> label="Action">
<template slot-scope="scope"> <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="editPart(scope.row)">编辑 |</el-link>
<el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link> <el-link style="cursor: pointer" @click="deletePart(scope.row)">删除</el-link>
</template> </template>
@ -266,7 +267,6 @@ import attachments from './com_part_Attachments'
import { import {
approveNodeInstance, approveNodeInstance,
getFlowPreview,
restartFlowInstance restartFlowInstance
} from '@/api/workFlow/workFlow.js' } from '@/api/workFlow/workFlow.js'
@ -970,26 +970,27 @@ export default {
}, },
// - rqrq // - rqrq
handleRestart(row) {
handleRestart(row) {
this.$confirm('确定要重新发起审批流程吗?', '提示', { this.$confirm('确定要重新发起审批流程吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
restartFlowInstance({ restartFlowInstance({
applyNo: row.flowNodeInstanceData.applyNo,
site: row.flowNodeInstanceData.site,
orderType: row.flowNodeInstanceData.orderType
applyNo: row.applyNo,
site: row.site,
orderType: row.orderType
}).then(({ data }) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message.success('重新审批成功') this.$message.success('重新审批成功')
this.currentInstance = null
this.getMainData()
} else { } else {
this.$message.error(data.msg || '操作失败') this.$message.error(data.msg || '操作失败')
} }
}) })
}).catch(() => {}) }).catch(() => {})
} }
} }
} }

Loading…
Cancel
Save