@kmkf-fe-packages/kmkf-work-order-service-component 2.0.79-beta.3 → 2.0.79-beta.4
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isNumber } from 'lodash';
|
|
3
|
+
import { Divider } from 'antd';
|
|
3
4
|
export var AutoTaskDetail = function AutoTaskDetail(_ref) {
|
|
4
5
|
var flowEventData = _ref.flowEventData;
|
|
5
6
|
var mapping = {
|
|
@@ -12,17 +13,22 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
|
|
|
12
13
|
var renderRules = function renderRules() {
|
|
13
14
|
var _flowEventData$eventD, _flowEventData$eventD2, _flowEventData$eventD3;
|
|
14
15
|
return /*#__PURE__*/React.createElement("div", null, flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD = flowEventData.eventData) === null || _flowEventData$eventD === void 0 ? void 0 : (_flowEventData$eventD2 = _flowEventData$eventD.otherBusinessData) === null || _flowEventData$eventD2 === void 0 ? void 0 : (_flowEventData$eventD3 = _flowEventData$eventD2.ruleDomainList) === null || _flowEventData$eventD3 === void 0 ? void 0 : _flowEventData$eventD3.map(function (item) {
|
|
15
|
-
var _item$passConditionLi;
|
|
16
|
-
|
|
16
|
+
var _flowEventData$eventD4, _flowEventData$eventD5, _item$passConditionLi;
|
|
17
|
+
var result = flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD4 = flowEventData.eventData) === null || _flowEventData$eventD4 === void 0 ? void 0 : (_flowEventData$eventD5 = _flowEventData$eventD4.businessStatus) === null || _flowEventData$eventD5 === void 0 ? void 0 : _flowEventData$eventD5.find(function (k) {
|
|
18
|
+
return k.businessKey === item.businessKey;
|
|
19
|
+
});
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Divider, {
|
|
21
|
+
dashed: true
|
|
22
|
+
}), item.ruleName && /*#__PURE__*/React.createElement("p", null, "\u547D\u4E2D\u89C4\u5219\u540D\u79F0: ", item.ruleName), /*#__PURE__*/React.createElement("p", null, (_item$passConditionLi = item.passConditionList) === null || _item$passConditionLi === void 0 ? void 0 : _item$passConditionLi.map(function (condition) {
|
|
17
23
|
return /*#__PURE__*/React.createElement("p", null, condition);
|
|
18
|
-
})));
|
|
24
|
+
})), /*#__PURE__*/React.createElement("p", null, result.remark));
|
|
19
25
|
}));
|
|
20
26
|
};
|
|
21
27
|
var renderReason = function renderReason() {
|
|
22
|
-
var _flowEventData$
|
|
23
|
-
return /*#__PURE__*/React.createElement("p", null, flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$
|
|
28
|
+
var _flowEventData$eventD6, _flowEventData$eventD7, _flowEventData$eventD8;
|
|
29
|
+
return /*#__PURE__*/React.createElement("p", null, flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD6 = flowEventData.eventData) === null || _flowEventData$eventD6 === void 0 ? void 0 : (_flowEventData$eventD7 = _flowEventData$eventD6.businessStatus) === null || _flowEventData$eventD7 === void 0 ? void 0 : (_flowEventData$eventD8 = _flowEventData$eventD7.map(function (item) {
|
|
24
30
|
return item === null || item === void 0 ? void 0 : item.remark;
|
|
25
|
-
})) === null || _flowEventData$
|
|
31
|
+
})) === null || _flowEventData$eventD8 === void 0 ? void 0 : _flowEventData$eventD8.join(','));
|
|
26
32
|
};
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, isNumber(eventStatus) && "\u6267\u884C\u72B6\u6001: ".concat(mapping[eventStatus])), isNumber(eventStatus) && [1, 2].includes(eventStatus) && renderRules(), isNumber(eventStatus) && [
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, isNumber(eventStatus) && "\u6267\u884C\u72B6\u6001: ".concat(mapping[eventStatus])), isNumber(eventStatus) && [1, 2].includes(eventStatus) && renderRules(), isNumber(eventStatus) && [4].includes(eventStatus) && renderReason());
|
|
28
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.0.79-beta.
|
|
3
|
+
"version": "2.0.79-beta.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "868f4d30d09f521cb3399e79a5a26e8e83e93938",
|
|
77
77
|
"gitHooks": {
|
|
78
78
|
"pre-commit": "lint-staged"
|
|
79
79
|
}
|