update 稽查整改-强制撤回部分
This commit is contained in:
@@ -305,6 +305,8 @@ const editInspectExtensionTable = (params) => postAction('/esinspectdelayapply/p
|
|||||||
/* 企标稽查整改 */
|
/* 企标稽查整改 */
|
||||||
// 详情信息
|
// 详情信息
|
||||||
const getInspectRectifyDetail = (params) => getAction('/process/esInspectRectifyFlow/queryDetailByProjectId', params)
|
const getInspectRectifyDetail = (params) => getAction('/process/esInspectRectifyFlow/queryDetailByProjectId', params)
|
||||||
|
// 发起
|
||||||
|
const startInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowStart', params)
|
||||||
// 同意
|
// 同意
|
||||||
const approvalInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowApproval', params)
|
const approvalInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowApproval', params)
|
||||||
// 驳回
|
// 驳回
|
||||||
@@ -588,6 +590,7 @@ export {
|
|||||||
editInspectExtensionTable,
|
editInspectExtensionTable,
|
||||||
|
|
||||||
getInspectRectifyDetail,
|
getInspectRectifyDetail,
|
||||||
|
startInspectRectify,
|
||||||
approvalInspectRectify,
|
approvalInspectRectify,
|
||||||
rejectInspectRectify,
|
rejectInspectRectify,
|
||||||
transferInspectRectify,
|
transferInspectRectify,
|
||||||
|
|||||||
+16
-2
@@ -110,7 +110,7 @@ import UserSelectModal from '@comp/selection/UserSelectModal'
|
|||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
import {
|
import {
|
||||||
approvalInspectRectify, getInspectRectifyDataById,
|
approvalInspectRectify, getInspectRectifyDataById,
|
||||||
getInspectRectifyDetail, rejectInspectRectify, saveInspectRectify, transferInspectRectify
|
getInspectRectifyDetail, rejectInspectRectify, saveInspectRectify, startInspectRectify, transferInspectRectify
|
||||||
} from '@api/workCenter'
|
} from '@api/workCenter'
|
||||||
import { ApprovalOpinions, EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
|
||||||
|
|
||||||
@@ -189,6 +189,11 @@ export default {
|
|||||||
// 是否节点1
|
// 是否节点1
|
||||||
isUploadRectificationResult () {
|
isUploadRectificationResult () {
|
||||||
return this.currentNode === EsInspectionRectification.uploadRectificationResult.value
|
return this.currentNode === EsInspectionRectification.uploadRectificationResult.value
|
||||||
|
},
|
||||||
|
// 是否强制撤回
|
||||||
|
isForceRevoke () {
|
||||||
|
const { nodeId, draftId } = this.$route.query
|
||||||
|
return draftId && !nodeId
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -198,6 +203,10 @@ export default {
|
|||||||
this.currentNodeName = taskName || ''
|
this.currentNodeName = taskName || ''
|
||||||
this.projectId = projectId || ''
|
this.projectId = projectId || ''
|
||||||
this.btn = EsInspectionRectification.propertyOfValue('btn', this.currentNode) || []
|
this.btn = EsInspectionRectification.propertyOfValue('btn', this.currentNode) || []
|
||||||
|
// 强制撤回默认节点1
|
||||||
|
if (this.isForceRevoke) {
|
||||||
|
this.currentNode = EsInspectionRectification.uploadRectificationResult.value
|
||||||
|
}
|
||||||
// 如果有nodeId,但是匹配不到任何节点,就是是增加的审批节点
|
// 如果有nodeId,但是匹配不到任何节点,就是是增加的审批节点
|
||||||
if (nodeId && !EsInspectionRectification.keyOfValue(nodeId)) {
|
if (nodeId && !EsInspectionRectification.keyOfValue(nodeId)) {
|
||||||
// 同意按钮
|
// 同意按钮
|
||||||
@@ -458,7 +467,12 @@ export default {
|
|||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
return approvalInspectRectify(res)
|
let fn = approvalInspectRectify
|
||||||
|
// 是否强制撤回(强制撤回的话,就发起接口)
|
||||||
|
if (this.isForceRevoke) {
|
||||||
|
fn = startInspectRectify
|
||||||
|
}
|
||||||
|
return fn(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user