fix 79311
This commit is contained in:
+11
-9
@@ -192,7 +192,7 @@ export default {
|
||||
// 自动发起流程: 没有默认节点
|
||||
this.currentNode = nodeId || ''
|
||||
this.currentNodeName = taskName || ''
|
||||
this.projectId = projectId
|
||||
this.projectId = projectId || ''
|
||||
this.btn = EsInspectionRectification.propertyOfValue('btn', this.currentNode) || []
|
||||
// 如果有nodeId,但是匹配不到任何节点,就是是增加的审批节点
|
||||
if (nodeId && !EsInspectionRectification.keyOfValue(nodeId)) {
|
||||
@@ -385,8 +385,6 @@ export default {
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
res.map.pass = true
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return approvalInspectRectify(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
@@ -409,13 +407,17 @@ export default {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = true
|
||||
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||
res.processApprovalRecord.commitText = '同意'
|
||||
// 不是提交按钮
|
||||
if (!isSubmitBtn) {
|
||||
// 不是提交按钮就一直传true 同意
|
||||
res.map.pass = true
|
||||
// 没有填写注释,就默认同意
|
||||
if (!res.processApprovalRecord.commitText) {
|
||||
res.processApprovalRecord.commitText = '同意'
|
||||
}
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
}
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return approvalInspectRectify(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user