@kmkf-fe-packages/kmkf-work-order-service-component 0.8.20-alpha.1 → 0.8.20-alpha.2
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.
|
@@ -136,13 +136,13 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
136
136
|
// 当前节点是否可以撤回
|
|
137
137
|
var currentNodeCanWithdraw = function currentNodeCanWithdraw(index) {
|
|
138
138
|
var _currentNodeDetail$no2, _currentNodeDetail$no3, _currentNodeDetail$no4, _flowRecordList$slice, _currentNodeDetail$wo4;
|
|
139
|
-
//
|
|
139
|
+
// 当前节点的后续记录中不存在人工节点,我们认为他可以撤回 && 当前节点必须是人工任务 && 当前节点工单状态不是已完成
|
|
140
140
|
var tag = getTag({
|
|
141
141
|
nodeType: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no2 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no2 === void 0 ? void 0 : _currentNodeDetail$no2.nodeType) || '',
|
|
142
142
|
nodeIsAuto: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no3 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no3 === void 0 ? void 0 : (_currentNodeDetail$no4 = _currentNodeDetail$no3.relationEvent) === null || _currentNodeDetail$no4 === void 0 ? void 0 : _currentNodeDetail$no4.isAuto) || false
|
|
143
143
|
});
|
|
144
144
|
return isEmpty(flowRecordList === null || flowRecordList === void 0 ? void 0 : (_flowRecordList$slice = flowRecordList.slice(index + 1)) === null || _flowRecordList$slice === void 0 ? void 0 : _flowRecordList$slice.find(function (item) {
|
|
145
|
-
return ['artificial'
|
|
145
|
+
return ['artificial'].includes(item.tag);
|
|
146
146
|
})) && tag === 'artificial' && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo4 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo4 === void 0 ? void 0 : _currentNodeDetail$wo4.flowStatus) !== FlowStatus.COMPLETED;
|
|
147
147
|
};
|
|
148
148
|
useEffect(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.8.20-alpha.
|
|
3
|
+
"version": "0.8.20-alpha.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "1d5b217d65411c4bebb000559812065e5c933cd8",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|