@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.34 → 2.2.31-beta.37

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.
@@ -15,7 +15,7 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
15
15
  };
16
16
  var repairOrderMapList = [{
17
17
  name: '安装/维修单订单编号',
18
- value: 'repairOrderSn'
18
+ value: 'repairOrderNumber'
19
19
  }, {
20
20
  name: '安装/维修单订单id',
21
21
  value: 'repairOrderId'
@@ -33,7 +33,7 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
33
33
  value: 'latestServiceProgressTime'
34
34
  }, {
35
35
  name: '下单时间',
36
- value: 'createTime'
36
+ value: 'orderTime'
37
37
  }];
38
38
  var eventStatus = flowEventData === null || flowEventData === void 0 ? void 0 : flowEventData.eventStatus;
39
39
  var renderRules = function renderRules() {
@@ -51,9 +51,9 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
51
51
  }));
52
52
  };
53
53
  var renderRepairResult = function renderRepairResult() {
54
- var _flowEventData$eventD6;
55
- var _ref2 = (flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD6 = flowEventData.eventData) === null || _flowEventData$eventD6 === void 0 ? void 0 : _flowEventData$eventD6.repairResult) || {},
56
- repairOrderStatus = _ref2.repairOrderStatus;
54
+ var _flowEventData$eventD6, _flowEventData$eventD7;
55
+ var repairData = (flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD6 = flowEventData.eventData) === null || _flowEventData$eventD6 === void 0 ? void 0 : (_flowEventData$eventD7 = _flowEventData$eventD6.otherBusinessData) === null || _flowEventData$eventD7 === void 0 ? void 0 : _flowEventData$eventD7.repairData) || {};
56
+ var repairOrderStatus = repairData.repairOrderStatus;
57
57
  var isSuccess = repairOrderStatus === '成功';
58
58
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
59
59
  type: "link"
@@ -62,8 +62,7 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
62
62
  color: isSuccess ? '#70B603' : '#D9001B'
63
63
  }
64
64
  }, repairOrderStatus)), isSuccess && (repairOrderMapList === null || repairOrderMapList === void 0 ? void 0 : repairOrderMapList.map(function (item) {
65
- var _flowEventData$eventD7, _flowEventData$eventD8;
66
- return /*#__PURE__*/React.createElement("p", null, item.name, ": ", flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD7 = flowEventData.eventData) === null || _flowEventData$eventD7 === void 0 ? void 0 : (_flowEventData$eventD8 = _flowEventData$eventD7.repairResult) === null || _flowEventData$eventD8 === void 0 ? void 0 : _flowEventData$eventD8[item.value]);
65
+ return /*#__PURE__*/React.createElement("p", null, item.name, ": ", repairData === null || repairData === void 0 ? void 0 : repairData[item.value]);
67
66
  }))));
68
67
  };
69
68
  // const renderReason = () => {
@@ -284,7 +284,7 @@ var CurrentNode = function CurrentNode(props, ref) {
284
284
  }();
285
285
  var isArtificialNode = tag === 'artificial';
286
286
  var isAutoNode = tag === 'auto';
287
- var isShowAutoNodeDetail = isAutoNode && ['ORDER_MEMO_MANY_RULES', 'AFTER_SALE_AUTO_RETURN_GOODS_AGREE_REJECT', 'AFTER_SALE_AUTO_REFUND_REJECT', 'LOGISTICS_INTERCEPT_MULTI_RULE', 'MESSAGE_NOTIFY_EVENT', 'DING_TALK_ROBOT_NOTIFY', 'HTTP_INVOKE', 'ORDER_MEMO'].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl === void 0 ? void 0 : _currentNodeDetail$fl.eventType);
287
+ var isShowAutoNodeDetail = isAutoNode && ['ORDER_MEMO_MANY_RULES', 'AFTER_SALE_AUTO_RETURN_GOODS_AGREE_REJECT', 'AFTER_SALE_AUTO_REFUND_REJECT', 'LOGISTICS_INTERCEPT_MULTI_RULE', 'MESSAGE_NOTIFY_EVENT', 'DING_TALK_ROBOT_NOTIFY', 'HTTP_INVOKE', 'ORDER_MEMO', 'LBDJ_ONE_PRICE_ORDER'].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl === void 0 ? void 0 : _currentNodeDetail$fl.eventType);
288
288
  var showEdit = isArtificialNode && isCurrentNodeHandler && !readonly && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.flowStatus) === FlowStatus.COMPLETED;
289
289
  // TODO: 决策节点给后端修复数据加了一个入口
290
290
  // @ts-ignore
@@ -274,7 +274,7 @@ var NodeItem = function NodeItem(props) {
274
274
  isAllStaff: data === null || data === void 0 ? void 0 : (_data$data11 = data.data) === null || _data$data11 === void 0 ? void 0 : (_data$data11$nodeInfo = _data$data11.nodeInfo) === null || _data$data11$nodeInfo === void 0 ? void 0 : (_data$data11$nodeInfo2 = _data$data11$nodeInfo.assistants) === null || _data$data11$nodeInfo2 === void 0 ? void 0 : _data$data11$nodeInfo2.isAllStaff
275
275
  });
276
276
  }, [data, plat.userKey, assistantMap]);
277
- var isShowAutoNodeDetail = isAutoNode && ['ORDER_MEMO_MANY_RULES', 'AFTER_SALE_AUTO_RETURN_GOODS_AGREE_REJECT', 'AFTER_SALE_AUTO_REFUND_REJECT', 'LOGISTICS_INTERCEPT_MULTI_RULE', 'MESSAGE_NOTIFY_EVENT', 'DING_TALK_ROBOT_NOTIFY', 'HTTP_INVOKE', 'ORDER_MEMO', 'WDT_STORE_STATUS', 'BS_E3_RETAIL_RETURN_IN_STOCK_SYNC', 'RETAIL_RETURN_IN_STOCK_SYNC'].includes(eventNodeType);
277
+ var isShowAutoNodeDetail = isAutoNode && ['ORDER_MEMO_MANY_RULES', 'AFTER_SALE_AUTO_RETURN_GOODS_AGREE_REJECT', 'AFTER_SALE_AUTO_REFUND_REJECT', 'LOGISTICS_INTERCEPT_MULTI_RULE', 'MESSAGE_NOTIFY_EVENT', 'DING_TALK_ROBOT_NOTIFY', 'HTTP_INVOKE', 'ORDER_MEMO', 'WDT_STORE_STATUS', 'BS_E3_RETAIL_RETURN_IN_STOCK_SYNC', 'RETAIL_RETURN_IN_STOCK_SYNC', 'LBDJ_ONE_PRICE_ORDER'].includes(eventNodeType);
278
278
  // 人工节点+打开状态+当前工单提交人是当前完成人+状态是待处理
279
279
  var showEdit = isArtificialNode && open && isCurrentNodeHandler && !readonly && [FlowStatus.PROCESSING, FlowStatus.COMPLETED].includes(flowStatus);
280
280
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.2.31-beta.34",
3
+ "version": "2.2.31-beta.37",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -75,7 +75,7 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "b2e49d9a89e2a9259d4bbea9394e17c7e3e425fa",
78
+ "gitHead": "5b3629ae750f8a67b1e52efc50aa136c60ce57ac",
79
79
  "gitHooks": {
80
80
  "pre-commit": "lint-staged"
81
81
  }