@kmkf-fe-packages/kmkf-work-order-service-component 2.2.40-rc.1 → 2.2.40

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,6 +1,4 @@
1
1
  import React from 'react';
2
- import type { Shop } from '../../../model/types/login';
3
- export declare const AutoTaskDetail: ({ flowEventData, shopList, }: {
2
+ export declare const AutoTaskDetail: ({ flowEventData }: {
4
3
  flowEventData: any;
5
- shopList: Shop[];
6
4
  }) => React.JSX.Element;
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { isNumber } from 'lodash';
3
- import { Divider, Button } from 'antd';
4
- import { LBOrder } from "../../../LBOrderDetail";
3
+ import { Divider } from 'antd';
5
4
  export var AutoTaskDetail = function AutoTaskDetail(_ref) {
6
- var flowEventData = _ref.flowEventData,
7
- shopList = _ref.shopList;
5
+ var flowEventData = _ref.flowEventData;
8
6
  var mapping = {
9
7
  0: '执行中',
10
8
  1: '部分成功',
@@ -15,30 +13,6 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
15
13
  6: '同时存在成功和失败且已完结',
16
14
  7: '等待业务执行'
17
15
  };
18
- var repairOrderMapList = [{
19
- name: '安装/维修单订单编号',
20
- value: 'repairOrderNumber'
21
- }, {
22
- name: '安装/维修单订单ID',
23
- value: 'repairOrderId'
24
- }, {
25
- name: '服务类型',
26
- value: 'serviceType'
27
- }, {
28
- name: '服务状态',
29
- value: 'serviceStatus',
30
- color: '#1b5bf3'
31
- }, {
32
- name: '最新服务进度',
33
- value: 'latestServiceProgress',
34
- color: '#1b5bf3'
35
- }, {
36
- name: '最新服务进度时间',
37
- value: 'latestServiceProgressTime'
38
- }, {
39
- name: '下单时间',
40
- value: 'orderTime'
41
- }];
42
16
  var eventStatus = flowEventData === null || flowEventData === void 0 ? void 0 : flowEventData.eventStatus;
43
17
  var renderRules = function renderRules() {
44
18
  var _flowEventData$eventD, _flowEventData$eventD2;
@@ -54,44 +28,8 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
54
28
  }))), /*#__PURE__*/React.createElement("p", null, item.remark));
55
29
  }));
56
30
  };
57
- var renderRepairResult = function renderRepairResult() {
58
- var _flowEventData$eventD6, _flowEventData$eventD7;
59
- 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) || {};
60
- var repairOrderStatus = repairData.repairOrderStatus,
61
- id = repairData.id;
62
- var isSuccess = repairOrderStatus === '成功';
63
- return /*#__PURE__*/React.createElement("div", null, id && /*#__PURE__*/React.createElement(LBOrder, {
64
- id: id,
65
- activeKey: "orderInfo",
66
- shopList: shopList,
67
- btn: /*#__PURE__*/React.createElement(Button, {
68
- style: {
69
- padding: '4px 0'
70
- },
71
- type: "link"
72
- }, "\u67E5\u770B\u8BE6\u60C5>>")
73
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
74
- style: {
75
- marginBottom: '8px'
76
- }
77
- }, "\u5B89\u88C5/\u7EF4\u4FEE\u5355\u72B6\u6001:", /*#__PURE__*/React.createElement("span", {
78
- style: {
79
- color: isSuccess ? '#70B603' : '#D9001B'
80
- }
81
- }, repairOrderStatus)), isSuccess && (repairOrderMapList === null || repairOrderMapList === void 0 ? void 0 : repairOrderMapList.map(function (item) {
82
- return /*#__PURE__*/React.createElement("p", {
83
- style: {
84
- marginBottom: '8px'
85
- }
86
- }, item.name, ":", /*#__PURE__*/React.createElement("span", {
87
- style: {
88
- color: (item === null || item === void 0 ? void 0 : item.color) || '#000'
89
- }
90
- }, repairData === null || repairData === void 0 ? void 0 : repairData[item.value]));
91
- }))));
92
- };
93
31
  // const renderReason = () => {
94
32
  // return <p>{ flowEventData?.eventData?.businessStatus?.map((item: any) => item?.remark)?.join(',') }</p>
95
33
  // }
96
- return /*#__PURE__*/React.createElement("div", null, (flowEventData === null || flowEventData === void 0 ? void 0 : flowEventData.eventType) === 'LBDJ_ONE_PRICE_ORDER' ? renderRepairResult() : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, isNumber(eventStatus) && "\u6267\u884C\u72B6\u6001: ".concat(mapping[eventStatus])), renderRules()));
34
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, isNumber(eventStatus) && "\u6267\u884C\u72B6\u6001: ".concat(mapping[eventStatus])), renderRules());
97
35
  };
@@ -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', '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);
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);
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
@@ -342,8 +342,7 @@ var CurrentNode = function CurrentNode(props, ref) {
342
342
  firstOrderBackfill: flowStatus !== FlowStatus.COMPLETED,
343
343
  autoSubmit: autoSubmit
344
344
  })), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
345
- flowEventData: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.flowEventData,
346
- shopList: shopList
345
+ flowEventData: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.flowEventData
347
346
  })));
348
347
  };
349
348
  export default /*#__PURE__*/forwardRef(CurrentNode);
@@ -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', 'LBDJ_ONE_PRICE_ORDER'].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', 'PLATFORM_LOGISTICS_INTERCEPT'].includes(eventNodeType);
278
278
  // 人工节点+打开状态+当前工单提交人是当前完成人+状态是待处理
279
279
  var showEdit = isArtificialNode && open && isCurrentNodeHandler && !readonly && [FlowStatus.PROCESSING, FlowStatus.COMPLETED].includes(flowStatus);
280
280
 
@@ -347,8 +347,7 @@ var NodeItem = function NodeItem(props) {
347
347
  platform: plat.platform,
348
348
  onOpenWangWang: onOpenWangWang
349
349
  })), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
350
- flowEventData: data === null || data === void 0 ? void 0 : (_data$data22 = data.data) === null || _data$data22 === void 0 ? void 0 : _data$data22.flowEventData,
351
- shopList: shopList
350
+ flowEventData: data === null || data === void 0 ? void 0 : (_data$data22 = data.data) === null || _data$data22 === void 0 ? void 0 : _data$data22.flowEventData
352
351
  })));
353
352
  };
354
353
  export default NodeItem;
@@ -26,8 +26,6 @@ export var updateWorkTypeKeys = {
26
26
  BS_DEPOSIT: 'bsDeposit',
27
27
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
28
28
  BUSINESS_ORDER_NO: 'businessOrderNo',
29
- REPAIR_ORDER_SN: 'repairOrderSn',
30
- REPAIR_ORDER_ID: 'repairOrderId',
31
29
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
32
30
  ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
33
31
  WDT_SHOP: 'shopCode'
@@ -116,8 +114,6 @@ export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
116
114
  SYSTEM_ORDER_NO: 'systemOrderNo',
117
115
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
118
116
  BUSINESS_ORDER_NO: 'businessOrderNo',
119
- REPAIR_ORDER_SN: 'repairOrderSn',
120
- REPAIR_ORDER_ID: 'repairOrderId',
121
117
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
122
118
  BASIC_MULT_SELECT: 'basicMultSelect',
123
119
  ORDER_TYPE: 'erpOrderType',
@@ -183,10 +179,6 @@ export var SUBMIT_COMPONENT_STATUS_MAP = {
183
179
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
184
180
  status: 'returnExchangeGoodsReviewStatusValue',
185
181
  reason: 'returnExchangeGoodsReviewStatusReason'
186
- },
187
- REPAIR_ORDER_STATUS: {
188
- status: 'repairOrderStatusValue',
189
- reason: 'repairOrderStatusReason'
190
182
  }
191
183
  };
192
184
  export var SUBMIT_COMPONENT_GOOD_STATUS_MAP = {
@@ -849,8 +849,6 @@ var processComponent = function processComponent(_ref59) {
849
849
  case 'ERP_ORDER_STATUS':
850
850
  case 'SKX_RETURN_BILL_NO':
851
851
  case 'JST_OUTBOUND_STATUS':
852
- case 'REPAIR_ORDER_SN':
853
- case 'REPAIR_ORDER_ID':
854
852
  wrapFn(handleOnlyAddContent);
855
853
  break;
856
854
  case 'RATE':
@@ -868,7 +866,6 @@ var processComponent = function processComponent(_ref59) {
868
866
  case 'INVOICE_STATUS':
869
867
  case 'INVOICING_STATUS':
870
868
  case 'AGREE_REFUND_STATUS':
871
- case 'REPAIR_ORDER_STATUS':
872
869
  case 'REJECT_REFUND_STATUS':
873
870
  case 'ERP_AFTER_SALE_STATUS':
874
871
  case 'AGREE_RETURN_GOODS_STATUS':
@@ -65,9 +65,7 @@ var workTypeKeys = {
65
65
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
66
66
  EXECUTE_ACTION_TYPE: 'executeActionType',
67
67
  ERP_ORDER_STATUS: 'erpOrderStatus',
68
- JST_OUTBOUND_STATUS: 'jstOutboundStatus',
69
- REPAIR_ORDER_SN: 'repairOrderSn',
70
- REPAIR_ORDER_ID: 'repairOrderId'
68
+ JST_OUTBOUND_STATUS: 'jstOutboundStatus'
71
69
  };
72
70
 
73
71
  // 根据组件类型获取组件的UniqueKey
@@ -440,10 +440,6 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
440
440
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
441
441
  status: 'returnExchangeGoodsReviewStatusValue',
442
442
  reason: 'returnExchangeGoodsReviewStatusReason'
443
- },
444
- REPAIR_ORDER_STATUS: {
445
- status: 'repairOrderStatusValue',
446
- reason: 'repairOrderStatusReason'
447
443
  }
448
444
  };
449
445
  return _defineProperty({}, nex.uniqueKey, {
@@ -1284,7 +1280,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1284
1280
  INVOICE_STATUS: processCallBackStatus,
1285
1281
  INVOICING_STATUS: processCallBackStatus,
1286
1282
  AGREE_REFUND_STATUS: processCallBackStatus,
1287
- REPAIR_ORDER_STATUS: processCallBackStatus,
1288
1283
  REJECT_REFUND_STATUS: processCallBackStatus,
1289
1284
  ERP_AFTER_SALE_STATUS: processCallBackStatus,
1290
1285
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
@@ -1377,8 +1372,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1377
1372
  BS_DEPOSIT: processSingleField,
1378
1373
  NEW_PAYMENT_STATUS: processSingleField,
1379
1374
  BUSINESS_ORDER_NO: processSingleField,
1380
- REPAIR_ORDER_SN: processSingleField,
1381
- REPAIR_ORDER_ID: processSingleField,
1382
1375
  PAYMENT_VOUCHER_CODE: processSingleField,
1383
1376
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
1384
1377
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
@@ -6,9 +6,6 @@ export { default as FormRenderTemplateId } from './FormRenderTemplateId';
6
6
  export { default as FlowWorkOrderDetailV2 } from './FlowTemplateDetailV2';
7
7
  export { default as TradeList } from './TradeList';
8
8
  export { default as WdtTradeList } from './WdtTradeList';
9
- export * as LB from './LBOrderDetail';
10
- export { DETAIL_ITEM_LIST } from './LBOrderDetail/detail/OrderInfo';
11
- export type { DetailItemSchemaType, DetailType } from './LBOrderDetail/detail/types';
12
9
  export { default as FlowFormRender } from './FlowTemplateDetailV2/components/FormRender';
13
10
  export { default as CustomerServiceToDoList } from './CustomerServiceToDoList';
14
11
  export { default as ShareLinkModal } from './FlowTemplateDetailV2/components/ShareLinkModal';
package/dist/esm/index.js CHANGED
@@ -16,9 +16,6 @@ export { default as FormRenderTemplateId } from "./FormRenderTemplateId";
16
16
  export { default as FlowWorkOrderDetailV2 } from "./FlowTemplateDetailV2";
17
17
  export { default as TradeList } from "./TradeList";
18
18
  export { default as WdtTradeList } from "./WdtTradeList";
19
- import * as _LB from "./LBOrderDetail";
20
- export { _LB as LB };
21
- export { DETAIL_ITEM_LIST } from "./LBOrderDetail/detail/OrderInfo";
22
19
  export { default as FlowFormRender } from "./FlowTemplateDetailV2/components/FormRender";
23
20
  export { default as CustomerServiceToDoList } from "./CustomerServiceToDoList";
24
21
  export { default as ShareLinkModal } from "./FlowTemplateDetailV2/components/ShareLinkModal";
@@ -19,7 +19,6 @@ export declare type Shop = {
19
19
  shopSourceStr: string;
20
20
  taobaoId: string;
21
21
  taobaoNick: string;
22
- uniqueKey: string;
23
22
  };
24
23
  export declare type LoginResultData = {
25
24
  account: string;
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.40-rc.1",
3
+ "version": "2.2.40",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ant-design/icons": "^4.7.0",
35
- "@kmkf-fe-packages/basic-components": "2.2.40-rc.1",
36
- "@kmkf-fe-packages/kmkf-utils": "2.2.40-rc.1",
37
- "@kmkf-fe-packages/services-components": "2.2.40-rc.1",
35
+ "@kmkf-fe-packages/basic-components": "2.2.40",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.2.40",
37
+ "@kmkf-fe-packages/services-components": "2.2.40",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -75,7 +75,7 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "8501cb5c9a0d2ae277a48d35bf40c17769f162e4",
78
+ "gitHead": "7dbd9242917aa827ddbd4d2d87f598edac8325fb",
79
79
  "gitHooks": {
80
80
  "pre-commit": "lint-staged"
81
81
  }
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { DetailType, DetailItemSchemaType, TableKeyType } from './types';
3
- import type { Shop } from '../../model/types/login';
4
- export declare const renderTime: (value?: string | number) => string | number;
5
- export declare const renderImages: (value?: string | number) => React.JSX.Element | undefined;
6
- export declare const renderTable: (value: DetailType[TableKeyType], record: DetailType, item: DetailItemSchemaType, effects: {
7
- shopList: Shop[];
8
- }, key: TableKeyType) => React.JSX.Element | undefined;
9
- export declare const DETAIL_ITEM_LIST: DetailItemSchemaType[];
10
- declare const OrderInfo: {
11
- (props: {
12
- id: string;
13
- setIsShowServiceProgress: (isShow: boolean) => void;
14
- shopList: Shop[];
15
- }): React.JSX.Element;
16
- displayName: string;
17
- };
18
- export default OrderInfo;