n20-common-lib 2.22.11 → 2.22.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -579,27 +579,8 @@ export default {
|
|
|
579
579
|
noMsg: true
|
|
580
580
|
}
|
|
581
581
|
)
|
|
582
|
-
//
|
|
583
|
-
|
|
584
|
-
this.$confirm('请确定是否向后加签', $lc('提示'), {
|
|
585
|
-
confirmButtonText: $lc('确定'),
|
|
586
|
-
cancelButtonText: $lc('取消'),
|
|
587
|
-
type: 'warning'
|
|
588
|
-
}).then(() => {
|
|
589
|
-
// 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
|
|
590
|
-
if (
|
|
591
|
-
res.code === 200 &&
|
|
592
|
-
res.data &&
|
|
593
|
-
(res.data.showNextEgwOutgoingNodeName || res.data.showNextNodeAssignee)
|
|
594
|
-
) {
|
|
595
|
-
this.setSpr = true
|
|
596
|
-
this.selectSprList = res.data
|
|
597
|
-
} else {
|
|
598
|
-
this.checkFlowFn()
|
|
599
|
-
}
|
|
600
|
-
})
|
|
601
|
-
} else {
|
|
602
|
-
// 如果返回正常 且有返回值 且showNextEgwOutgoingNodeName跟showNextNodeAssignee有一个为true
|
|
582
|
+
// 处理请求结果:showNextEgwOutgoingNodeName 或 showNextNodeAssignee 有一个为 true 时显示加签列表
|
|
583
|
+
const handleResult = () => {
|
|
603
584
|
if (
|
|
604
585
|
res.code === 200 &&
|
|
605
586
|
res.data &&
|
|
@@ -608,9 +589,21 @@ export default {
|
|
|
608
589
|
this.setSpr = true
|
|
609
590
|
this.selectSprList = res.data
|
|
610
591
|
} else {
|
|
592
|
+
this.nextEgwOutgoingNodeId = undefined
|
|
593
|
+
this.nextNodeApproveUnos = undefined
|
|
611
594
|
this.checkFlowFn()
|
|
612
595
|
}
|
|
613
596
|
}
|
|
597
|
+
// addTaskTip 是否给出加签提示
|
|
598
|
+
if (res.code === 200 && res.data && res.data.addTaskTip) {
|
|
599
|
+
this.$confirm('请确定是否向后加签', $lc('提示'), {
|
|
600
|
+
confirmButtonText: $lc('确定'),
|
|
601
|
+
cancelButtonText: $lc('取消'),
|
|
602
|
+
type: 'warning'
|
|
603
|
+
}).then(handleResult)
|
|
604
|
+
} else {
|
|
605
|
+
handleResult()
|
|
606
|
+
}
|
|
614
607
|
} catch (error) {
|
|
615
608
|
console.log(error)
|
|
616
609
|
this.checkFlowFn()
|
|
@@ -106,23 +106,11 @@ export default {
|
|
|
106
106
|
this.selectCheck = this.selectSprList?.showNextNodeAssignee || false
|
|
107
107
|
},
|
|
108
108
|
personChange(list) {
|
|
109
|
-
const prevList = this.personList || []
|
|
110
109
|
const { nextNodeAssigneeMinnum: min = 0, nextNodeAssigneeMaxnum: max = 0 } = this.selectSprList || {}
|
|
111
110
|
|
|
112
111
|
// 校验最大值
|
|
113
112
|
if (max && list.length > max) {
|
|
114
|
-
|
|
115
|
-
this.$message.warning(`审批人数需小于 ${max} 个`)
|
|
116
|
-
}
|
|
117
|
-
// 恢复为上一次合法选择
|
|
118
|
-
this.$nextTick(() => {
|
|
119
|
-
if (this.$refs.personTable) {
|
|
120
|
-
this.$refs.personTable.clearSelection()
|
|
121
|
-
prevList.forEach((row) => {
|
|
122
|
-
this.$refs.personTable.toggleRowSelection(row, true)
|
|
123
|
-
})
|
|
124
|
-
}
|
|
125
|
-
})
|
|
113
|
+
this.$message.warning(`审批人数需小于或等于 ${max} 个`)
|
|
126
114
|
return
|
|
127
115
|
}
|
|
128
116
|
|
|
@@ -131,9 +119,8 @@ export default {
|
|
|
131
119
|
|
|
132
120
|
// 校验最小值(仅提示,不强制拦截)
|
|
133
121
|
if (min && list.length < min) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
122
|
+
this.$message.info(`审批人数需大于或等于 ${min} 个`)
|
|
123
|
+
return
|
|
137
124
|
}
|
|
138
125
|
},
|
|
139
126
|
closeFn(item) {
|