@kmkf-fe-packages/kmkf-work-order-service-component 2.0.19-beta.1 → 2.0.20

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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/FlowTemplateDetailV2/common.js +1 -1
  3. package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.d.ts +0 -1
  4. package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +1 -3
  5. package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.d.ts +0 -1
  6. package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +3 -6
  7. package/dist/esm/FlowTemplateDetailV2/components/Item/index.d.ts +0 -1
  8. package/dist/esm/FlowTemplateDetailV2/components/Item/index.js +1 -3
  9. package/dist/esm/FlowTemplateDetailV2/constant.js +1 -1
  10. package/dist/esm/FlowTemplateDetailV2/index.js +0 -2
  11. package/dist/esm/Login/index.d.ts +0 -1
  12. package/dist/esm/Login/index.js +2 -4
  13. package/dist/esm/common/utils/constant.js +1 -8
  14. package/dist/esm/common/utils/submitDataTransOldFormat.js +39 -59
  15. package/dist/esm/common/utils/tools.js +4 -5
  16. package/dist/esm/common/utils/transformWorkOrderData.js +9 -31
  17. package/dist/esm/index.d.ts +0 -1
  18. package/dist/esm/index.js +0 -1
  19. package/dist/esm/model/login.d.ts +0 -10
  20. package/dist/esm/model/login.js +25 -46
  21. package/dist/esm/model/servers/api.d.ts +0 -2
  22. package/dist/esm/model/servers/api.js +0 -9
  23. package/package.json +6 -6
  24. package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  25. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  26. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  27. package/dist/esm/LoginNew/index.d.ts +0 -8
  28. package/dist/esm/LoginNew/index.js +0 -268
  29. package/dist/esm/LoginNew/index.module.less +0 -45
  30. package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +0 -899
  31. package/dist/esm/common/utils/dist/tools.js +0 -1326
  32. package/dist/esm/common/utils/dist/transformWorkOrderData.js +0 -965
package/README.md CHANGED
@@ -40,7 +40,7 @@ Build library via `father`,
40
40
  $ npm run build
41
41
  ```
42
42
 
43
- 111222111111
43
+ 1112221111
44
44
 
45
45
  ## 企业工单工单项目抽离模块
46
46
 
@@ -46,7 +46,7 @@ export var FLOW_STATUS_V2 = {
46
46
  RETURNING: '回退中'
47
47
  };
48
48
  //不能回填的组件type
49
- export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE'];
49
+ export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE'];
50
50
  export var verifyHandle = function verifyHandle(data, componentDtoList) {
51
51
  var _componentDtoList$fin, _componentDtoList$fin2, _data$paymentUniqueKe, _data$paymentUniqueKe2;
52
52
  var res = {
@@ -7,7 +7,6 @@ declare type CurrentNodeProps = {
7
7
  readonly?: boolean;
8
8
  onOpenWangWang?: (nick: string, id: string) => void;
9
9
  onUpdateRemark?: (remark: string, flag: string) => void;
10
- onJumpPage?: (val: any) => void;
11
10
  onReminder?: (type: string) => void;
12
11
  flowTemplateId: string;
13
12
  flowWorkOrderId?: string;
@@ -64,8 +64,7 @@ var CurrentNode = function CurrentNode(props, ref) {
64
64
  flowTemplateId = props.flowTemplateId,
65
65
  flowWorkOrderId = props.flowWorkOrderId,
66
66
  queryRemarkList = props.queryRemarkList,
67
- autoSubmit = props.autoSubmit,
68
- onJumpPage = props.onJumpPage;
67
+ autoSubmit = props.autoSubmit;
69
68
  var _useContext = useContext(Context),
70
69
  dispatch = _useContext.dispatch;
71
70
  // 是否是编辑状态
@@ -316,7 +315,6 @@ var CurrentNode = function CurrentNode(props, ref) {
316
315
  shopId: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo22 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo22 === void 0 ? void 0 : _currentNodeDetail$wo22.shopId) || plat.shopId || defaultShopId,
317
316
  accountName: plat === null || plat === void 0 ? void 0 : plat.accountName,
318
317
  onOpenWangWang: onOpenWangWang,
319
- onJumpPage: onJumpPage,
320
318
  onUpdateRemark: onUpdateRemark,
321
319
  currentNodeTid: currentNodeTid,
322
320
  form: form,
@@ -24,7 +24,6 @@ declare type FormRenderProps = {
24
24
  form: FormInstance;
25
25
  currentNodeTid: string;
26
26
  onOpenWangWang?: (nick: string, id: string) => void;
27
- onJumpPage?: (val: any) => void;
28
27
  onUpdateRemark?: (remark: string, flag: string) => void;
29
28
  handleChangeTradeId?: (p: string) => void;
30
29
  canModifyPayment?: boolean;
@@ -72,8 +72,7 @@ var FormRender = function FormRender(props, ref) {
72
72
  _props$isErpUse = props.isErpUse,
73
73
  isErpUse = _props$isErpUse === void 0 ? false : _props$isErpUse,
74
74
  _props$autoSubmit = props.autoSubmit,
75
- autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit,
76
- onJumpPage = props.onJumpPage;
75
+ autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit;
77
76
  var shopIdToUniqueKeyMap = useMemo(function () {
78
77
  var json = {};
79
78
  shopList.forEach(function (shop) {
@@ -1121,8 +1120,7 @@ var FormRender = function FormRender(props, ref) {
1121
1120
  templateDetail: templateDetail,
1122
1121
  disabled: look,
1123
1122
  displayConfig: get(templateDetail, 'flowTemplateConfig.showHideRule.rules', []),
1124
- isPreRender: false,
1125
- onJumpPage: onJumpPage
1123
+ isPreRender: false
1126
1124
  }));
1127
1125
  // TODO: 这里只是为了把前置组件的值能够set到当前form表单中去
1128
1126
  // TODO: 为什么不直接把前置和当前放在同一个form里面呢?因为放在同一个里面会有必填校验等逻辑,前置节点在当前表单中只是做展示,但是还必须有控制显隐功能
@@ -1238,8 +1236,7 @@ var FormRender = function FormRender(props, ref) {
1238
1236
  templateDetail: templateDetail,
1239
1237
  disabled: true,
1240
1238
  displayConfig: finalDisplayConfig,
1241
- isPreRender: true,
1242
- onJumpPage: onJumpPage
1239
+ isPreRender: true
1243
1240
  })(t);
1244
1241
  });
1245
1242
  });
@@ -7,7 +7,6 @@ interface NodeItem {
7
7
  flowWorkOrderId?: string;
8
8
  shopList: any[];
9
9
  onOpenWangWang?: (nick: string, id: string) => void;
10
- onJumpPage?: (val: any) => void;
11
10
  queryRemarkList: () => void;
12
11
  openCloseCallback?: () => void;
13
12
  handler: string;
@@ -51,8 +51,7 @@ var NodeItem = function NodeItem(props) {
51
51
  _props$visibleType = props.visibleType,
52
52
  visibleType = _props$visibleType === void 0 ? '' : _props$visibleType,
53
53
  nodeIsAuto = props.nodeIsAuto,
54
- flowTemplateKey = props.flowTemplateKey,
55
- onJumpPage = props.onJumpPage;
54
+ flowTemplateKey = props.flowTemplateKey;
56
55
  var _useContext = useContext(Context),
57
56
  dispatch = _useContext.dispatch;
58
57
  var plat = useSelector(selectPlatInfo);
@@ -291,7 +290,6 @@ var NodeItem = function NodeItem(props) {
291
290
  accountName: plat.accountName,
292
291
  form: form,
293
292
  onOpenWangWang: onOpenWangWang,
294
- onJumpPage: onJumpPage,
295
293
  look: !editing || flowStatus === FlowStatus.STOPPING,
296
294
  shopId: data === null || data === void 0 ? void 0 : (_data$data18 = data.data) === null || _data$data18 === void 0 ? void 0 : (_data$data18$workOrde = _data$data18.workOrder) === null || _data$data18$workOrde === void 0 ? void 0 : _data$data18$workOrde.shopId,
297
295
  formProps: {
@@ -1,2 +1,2 @@
1
1
  // 切换当前店铺时,以下组件字段需要清空
2
- export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'];
2
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS'];
@@ -1259,7 +1259,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1259
1259
  nodeName: flowRecord.nodeName,
1260
1260
  shopList: shopList,
1261
1261
  onOpenWangWang: onOpenWangWang,
1262
- onJumpPage: onJumpPage,
1263
1262
  queryRemarkList: queryRemarkList,
1264
1263
  handler: flowRecord.operator,
1265
1264
  canWithdraw: canWithdraw,
@@ -1280,7 +1279,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1280
1279
  readonly: readonly,
1281
1280
  onOpenWangWang: onOpenWangWang,
1282
1281
  onUpdateRemark: onUpdateRemark,
1283
- onJumpPage: onJumpPage,
1284
1282
  onReminder: handleReminder,
1285
1283
  queryRemarkList: queryRemarkList,
1286
1284
  autoSubmit: autoSubmit
@@ -3,7 +3,6 @@ export declare const COMMON_HOST = "https://kefu.kuaimai.com";
3
3
  export declare const HD_HOST = "https://kefuab.kuaimai.com";
4
4
  interface LoginProps {
5
5
  loginCallBack?: (val: any) => void;
6
- clickImgCallBack?: () => void;
7
6
  }
8
7
  declare const ProviderLogin: (props: LoginProps) => React.JSX.Element;
9
8
  export default ProviderLogin;
@@ -21,8 +21,7 @@ import styles from "./index.module.less";
21
21
  export var COMMON_HOST = 'https://kefu.kuaimai.com';
22
22
  export var HD_HOST = 'https://kefuab.kuaimai.com';
23
23
  var Login = function Login(props) {
24
- var loginCallBack = props.loginCallBack,
25
- clickImgCallBack = props.clickImgCallBack;
24
+ var loginCallBack = props.loginCallBack;
26
25
  var _useState = useState(''),
27
26
  _useState2 = _slicedToArray(_useState, 2),
28
27
  name = _useState2[0],
@@ -249,8 +248,7 @@ var Login = function Login(props) {
249
248
  className: styles.logo
250
249
  }, /*#__PURE__*/React.createElement("img", {
251
250
  src: logo,
252
- alt: "logo",
253
- onClick: clickImgCallBack
251
+ alt: "logo"
254
252
  })), /*#__PURE__*/React.createElement(Form, {
255
253
  className: styles.container
256
254
  }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
@@ -87,8 +87,7 @@ export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
87
87
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
88
88
  BUSINESS_ORDER_NO: 'businessOrderNo',
89
89
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
90
- BASIC_MULT_SELECT: 'basicMultSelect',
91
- ORDER_TYPE: 'erpOrderType'
90
+ BASIC_MULT_SELECT: 'basicMultSelect'
92
91
  };
93
92
  export var DEFAULT_ARRAY_COMPONENT_TYPE_FIELD_MAPPING = {
94
93
  RATE: 'rate',
@@ -273,12 +272,6 @@ export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
273
272
  returnTypeKey: 'wdtReturnType',
274
273
  returnGoodsKey: 'wdtReturnGoods',
275
274
  shopCodeKey: 'shopCode'
276
- },
277
- GY_RETURN_GOODS: {
278
- returnTypeKey: 'gyReturnType',
279
- returnGoodsKey: 'gyReturnGoods',
280
- gySystemOrderNoKey: 'gySystemOrderNo',
281
- shopCodeKey: 'shopCode'
282
275
  }
283
276
  };
284
277
  export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
@@ -153,7 +153,7 @@ var handleLogisticsInterception = function handleLogisticsInterception(_ref14) {
153
153
  var addContent = _ref14.addContent,
154
154
  getNowData = _ref14.getNowData;
155
155
  return function (item) {
156
- ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsApiStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'].map(function (key) {
156
+ ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsApiStatus'].map(function (key) {
157
157
  addContent(key, getNowData("".concat(item.uniqueKey, ".").concat(key), ''));
158
158
  });
159
159
  addContent('interceptProvince', getNowData("".concat(item.uniqueKey, ".interceptAddress[0]"), ''));
@@ -553,25 +553,9 @@ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref38) {
553
553
  addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey]) || '');
554
554
  };
555
555
  };
556
- var handleGYReturnGoods = function handleGYReturnGoods(_ref39) {
556
+ var handleBsPosting = function handleBsPosting(_ref39) {
557
557
  var addContent = _ref39.addContent,
558
558
  getNowData = _ref39.getNowData;
559
- return function (item) {
560
- var currentReturn = getNowData(item.uniqueKey, {});
561
- var compType = item.workOrderComponentType;
562
- addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnTypeKey, currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnTypeKey]);
563
- addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnGoodsKey, currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnGoodsKey]);
564
- addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].gySystemOrderNoKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].gySystemOrderNoKey]) || '');
565
- // addContent(
566
- // SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey,
567
- // currentReturn?.[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey] || '',
568
- // );
569
- };
570
- };
571
-
572
- var handleBsPosting = function handleBsPosting(_ref40) {
573
- var addContent = _ref40.addContent,
574
- getNowData = _ref40.getNowData;
575
559
  return function (item) {
576
560
  ['bsPostingProvince', 'bsPostingCity', 'bsPostingDistrict'].map(function (key, index) {
577
561
  addContent(key, getNowData("".concat(item.uniqueKey, ".postingAddress[").concat(index, "]"), ''));
@@ -581,9 +565,9 @@ var handleBsPosting = function handleBsPosting(_ref40) {
581
565
  addContent('bsPostingReceiverMobile', getNowData("".concat(item.uniqueKey, ".postingReceiverMobile"), ''));
582
566
  };
583
567
  };
584
- var handleSystemOrder = function handleSystemOrder(_ref41) {
585
- var addContent = _ref41.addContent,
586
- getNowData = _ref41.getNowData;
568
+ var handleSystemOrder = function handleSystemOrder(_ref40) {
569
+ var addContent = _ref40.addContent,
570
+ getNowData = _ref40.getNowData;
587
571
  return function (item) {
588
572
  var selectIds = getNowData("".concat(item.uniqueKey, ".selectIds"), '');
589
573
  var showOrderInfo = getNowData("".concat(item.uniqueKey, ".showOrderInfo"), []);
@@ -597,16 +581,16 @@ var handleSystemOrder = function handleSystemOrder(_ref41) {
597
581
  }));
598
582
  };
599
583
  };
600
- var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref42) {
601
- var addContent = _ref42.addContent,
602
- getNowData = _ref42.getNowData;
584
+ var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref41) {
585
+ var addContent = _ref41.addContent,
586
+ getNowData = _ref41.getNowData;
603
587
  return function (item) {
604
588
  addContent('buyerMessageNotice', getNowData(item.uniqueKey, '未通知'));
605
589
  };
606
590
  };
607
- var handleBsDeliveryNo = function handleBsDeliveryNo(_ref43) {
608
- var addContent = _ref43.addContent,
609
- getNowData = _ref43.getNowData;
591
+ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref42) {
592
+ var addContent = _ref42.addContent,
593
+ getNowData = _ref42.getNowData;
610
594
  return function (item) {
611
595
  var deliveryNoList = getNowData(item.uniqueKey, []);
612
596
  addContent('deliveryNoList', deliveryNoList);
@@ -615,9 +599,9 @@ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref43) {
615
599
  }));
616
600
  };
617
601
  };
618
- var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref44) {
619
- var addContent = _ref44.addContent,
620
- getNowData = _ref44.getNowData;
602
+ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref43) {
603
+ var addContent = _ref43.addContent,
604
+ getNowData = _ref43.getNowData;
621
605
  return function (item) {
622
606
  var returnGoodsTradeItemList = getNowData(item.uniqueKey, []);
623
607
  addContent('returnGoodsTradeItemList', returnGoodsTradeItemList);
@@ -626,9 +610,9 @@ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref44) {
626
610
  }));
627
611
  };
628
612
  };
629
- var handleErpTradeId = function handleErpTradeId(_ref45) {
630
- var addContent = _ref45.addContent,
631
- getNowData = _ref45.getNowData;
613
+ var handleErpTradeId = function handleErpTradeId(_ref44) {
614
+ var addContent = _ref44.addContent,
615
+ getNowData = _ref44.getNowData;
632
616
  return function (item) {
633
617
  var tradeItemList = getNowData(item.uniqueKey, []);
634
618
  addContent('tradeItemList', tradeItemList);
@@ -637,18 +621,18 @@ var handleErpTradeId = function handleErpTradeId(_ref45) {
637
621
  }));
638
622
  };
639
623
  };
640
- var handleWlnGoods = function handleWlnGoods(_ref46) {
641
- var addContent = _ref46.addContent,
642
- getNowData = _ref46.getNowData;
624
+ var handleWlnGoods = function handleWlnGoods(_ref45) {
625
+ var addContent = _ref45.addContent,
626
+ getNowData = _ref45.getNowData;
643
627
  return function (item) {
644
628
  var wlnGoods = getNowData(item.uniqueKey, {});
645
629
  addContent('wlnGoods', wlnGoods.wlnGoods);
646
630
  addContent('shopCode', (wlnGoods === null || wlnGoods === void 0 ? void 0 : wlnGoods.shopCode) || '');
647
631
  };
648
632
  };
649
- var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref47) {
650
- var addContent = _ref47.addContent,
651
- getNowData = _ref47.getNowData;
633
+ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref46) {
634
+ var addContent = _ref46.addContent,
635
+ getNowData = _ref46.getNowData;
652
636
  return function (item) {
653
637
  ['bsE3SystemOrderNo', 'bsE3ReissueType', 'bsE3ReissueMemo', 'bsE3ReissueGoods'].map(function (key) {
654
638
  if (key === 'bsE3ReissueGoods') {
@@ -659,24 +643,24 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref47) {
659
643
  });
660
644
  };
661
645
  };
662
- var handleDefault = function handleDefault(_ref48) {
663
- var addContent = _ref48.addContent,
664
- getNowData = _ref48.getNowData;
646
+ var handleDefault = function handleDefault(_ref47) {
647
+ var addContent = _ref47.addContent,
648
+ getNowData = _ref47.getNowData;
665
649
  return function (item) {
666
650
  addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
667
651
  };
668
652
  };
669
- var handleStatusField = function handleStatusField(_ref49) {
670
- var addContent = _ref49.addContent,
671
- getNowData = _ref49.getNowData;
653
+ var handleStatusField = function handleStatusField(_ref48) {
654
+ var addContent = _ref48.addContent,
655
+ getNowData = _ref48.getNowData;
672
656
  return function (item) {
673
657
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
674
658
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
675
659
  };
676
660
  };
677
- var handleGoodStatus = function handleGoodStatus(_ref50) {
678
- var addContent = _ref50.addContent,
679
- getNowData = _ref50.getNowData;
661
+ var handleGoodStatus = function handleGoodStatus(_ref49) {
662
+ var addContent = _ref49.addContent,
663
+ getNowData = _ref49.getNowData;
680
664
  return function (item) {
681
665
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
682
666
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
@@ -684,13 +668,13 @@ var handleGoodStatus = function handleGoodStatus(_ref50) {
684
668
  }));
685
669
  };
686
670
  };
687
- var processComponent = function processComponent(_ref51) {
688
- var params = _ref51.params,
689
- nowData = _ref51.nowData,
690
- updateFlag = _ref51.updateFlag,
691
- detail = _ref51.detail,
692
- accountName = _ref51.accountName,
693
- getValueByField = _ref51.getValueByField;
671
+ var processComponent = function processComponent(_ref50) {
672
+ var params = _ref50.params,
673
+ nowData = _ref50.nowData,
674
+ updateFlag = _ref50.updateFlag,
675
+ detail = _ref50.detail,
676
+ accountName = _ref50.accountName,
677
+ getValueByField = _ref50.getValueByField;
694
678
  return function (item) {
695
679
  var contentVoList = [];
696
680
  var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
@@ -737,7 +721,6 @@ var processComponent = function processComponent(_ref51) {
737
721
  case 'BUSINESS_ORDER_NO':
738
722
  case 'PAYMENT_VOUCHER_CODE':
739
723
  case 'BASIC_MULT_SELECT':
740
- case 'ORDER_TYPE':
741
724
  wrapFn(handleOnlyAddContent);
742
725
  break;
743
726
  case 'RATE':
@@ -885,9 +868,6 @@ var processComponent = function processComponent(_ref51) {
885
868
  case 'WDT_RETURN_GOODS':
886
869
  wrapFn(handleBsOrWdtReturnGoods);
887
870
  break;
888
- case 'GY_RETURN_GOODS':
889
- wrapFn(handleGYReturnGoods);
890
- break;
891
871
  case 'BS_POSTING':
892
872
  wrapFn(handleBsPosting);
893
873
  break;
@@ -51,7 +51,6 @@ var workTypeKeys = {
51
51
  DATETIME: 'dateTime',
52
52
  TEXTAREA: 'textarea',
53
53
  SELECT: 'select',
54
- ORDER_TYPE: 'erpOrderType',
55
54
  SYSTEM_ORDER_NO: 'systemOrderNo',
56
55
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
57
56
  BUSINESS_ORDER_NO: 'businessOrderNo',
@@ -373,15 +372,15 @@ export var orderBack = /*#__PURE__*/function () {
373
372
  orders: []
374
373
  });
375
374
  jstInfo.jstLogistics = [{
376
- logisticsCode: ''
375
+ logisticsCode: ""
377
376
  }];
378
377
  jstInfo.jstSendGood = [{
379
378
  sendId: '',
380
379
  sendName: ''
381
380
  }];
382
381
  jstInfo.jstSupply = [{
383
- supplyName: '',
384
- supplyId: ''
382
+ supplyName: "",
383
+ supplyId: ""
385
384
  }];
386
385
  jstInfo.jstItemSelectThird = [];
387
386
  }
@@ -481,6 +480,7 @@ export var orderBack = /*#__PURE__*/function () {
481
480
  }
482
481
  }
483
482
  // console.log('orderback', values);
483
+
484
484
  form.setFieldsValue(_objectSpread(_objectSpread(_objectSpread({}, formValue), values), {}, {
485
485
  fixed_field_buyerOpenUid: orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.buyerOpenUid,
486
486
  shopId: shopId
@@ -819,7 +819,6 @@ export var reversalFormValues = function reversalFormValues() {
819
819
  case 'WDT_RETURN_GOODS':
820
820
  case 'WDT_EXCHANGE_GOODS':
821
821
  case 'GY_REISSUE_GOODS':
822
- case 'GY_RETURN_GOODS':
823
822
  case 'JST_REISSUE_GOODS':
824
823
  case 'JST_RETURN_GOODS':
825
824
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
@@ -33,13 +33,14 @@ var processRadio = function processRadio(getValue) {
33
33
  };
34
34
  var processInput = function processInput(getValue) {
35
35
  return function (nex, config) {
36
- return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_input")) || (config === null || config === void 0 ? void 0 : config.input));
36
+ var _getValue;
37
+ return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_input"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.input);
37
38
  };
38
39
  };
39
40
  var processNumericalCalculation = function processNumericalCalculation(getValue) {
40
41
  return function (nex, config) {
41
- var _getValue;
42
- return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.numericalCalculation);
42
+ var _getValue2;
43
+ return _defineProperty({}, nex.uniqueKey, (_getValue2 = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue2 !== void 0 ? _getValue2 : config === null || config === void 0 ? void 0 : config.numericalCalculation);
43
44
  };
44
45
  };
45
46
  var processTextarea = function processTextarea(getValue) {
@@ -245,7 +246,7 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
245
246
  address = every(address, function (item) {
246
247
  return !item;
247
248
  }) ? [] : address;
248
- var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
249
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus'];
249
250
  var map = subFields.reduce(function (cur, nxt) {
250
251
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
251
252
  }, {});
@@ -681,12 +682,6 @@ var processBsOrWdtReturnGoods = function processBsOrWdtReturnGoods(getValue) {
681
682
  returnGoodsKey: 'wdtReturnGoods',
682
683
  shopCodeKey: 'shopCode'
683
684
  },
684
- GY_RETURN_GOODS: {
685
- returnTypeKey: 'gyReturnType',
686
- returnGoodsKey: 'gyReturnGoods',
687
- gySystemOrderNo: 'gySystemOrderNo',
688
- shopCodeKey: 'shopCode'
689
- },
690
685
  JST_RETURN_GOODS: {
691
686
  returnTypeKey: 'jstReturnType',
692
687
  returnGoodsKey: 'jstReturnGoods',
@@ -748,11 +743,6 @@ var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
748
743
  return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
749
744
  };
750
745
  };
751
- var processOrderType = function processOrderType(getValue) {
752
- return function (nex, config) {
753
- return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
754
- };
755
- };
756
746
  var processErpTradeId = function processErpTradeId(getValue) {
757
747
  return function (nex, config) {
758
748
  var SYSTEM_ORDER_MAP = {
@@ -836,16 +826,6 @@ var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
836
826
  };
837
827
  };
838
828
  };
839
- var processGyReturnGoods = function processGyReturnGoods(getValue) {
840
- return function (nex, config) {
841
- return _defineProperty({}, nex.uniqueKey, {
842
- gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), ['1']),
843
- gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
844
- shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
845
- gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
846
- });
847
- };
848
- };
849
829
  var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
850
830
  return function (getValue) {
851
831
  return function (nex, config) {
@@ -894,14 +874,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
894
874
  };
895
875
  var processLabel = function processLabel(getValue) {
896
876
  return function (nex, config) {
897
- var _ref62;
898
- return _ref62 = {}, _defineProperty(_ref62, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref62, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref62;
877
+ var _ref60;
878
+ return _ref60 = {}, _defineProperty(_ref60, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref60, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref60;
899
879
  };
900
880
  };
901
881
  var processMemberLevel = function processMemberLevel(getValue) {
902
882
  return function (nex, config) {
903
- var _ref63;
904
- return _ref63 = {}, _defineProperty(_ref63, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref63, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref63;
883
+ var _ref61;
884
+ return _ref61 = {}, _defineProperty(_ref61, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref61, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref61;
905
885
  };
906
886
  };
907
887
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -1025,7 +1005,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1025
1005
  JST_SYSTEM_ORDER: processErpSystemOrder,
1026
1006
  GY_SYSTEM_ORDER: processErpSystemOrder,
1027
1007
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
1028
- ORDER_TYPE: processOrderType,
1029
1008
  RETURN_GOODS_TRADE_ID: processErpTradeId,
1030
1009
  BS_DELIVERY_NO: processErpTradeId,
1031
1010
  REISSUE_TRADE_ID: processErpTradeId,
@@ -1034,7 +1013,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1034
1013
  WLN_GOODS: processWlnGoods,
1035
1014
  WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
1036
1015
  GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
1037
- GY_RETURN_GOODS: processGyReturnGoods,
1038
1016
  JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
1039
1017
  LABEL: processLabel,
1040
1018
  MEMBER_LEVEL: processMemberLevel,
@@ -1,6 +1,5 @@
1
1
  export { default as WorkOrder } from './WorkOrder';
2
2
  export { default as Login } from './Login';
3
- export { default as LoginNew } from './LoginNew';
4
3
  export { default as SingleShopWorkOrder } from './SingleShopWorkOrder';
5
4
  export { default as FormRender } from './FormRender';
6
5
  export { default as FormRenderTemplateId } from './FormRenderTemplateId';
package/dist/esm/index.js CHANGED
@@ -10,7 +10,6 @@
10
10
  */
11
11
  export { default as WorkOrder } from "./WorkOrder";
12
12
  export { default as Login } from "./Login";
13
- export { default as LoginNew } from "./LoginNew";
14
13
  export { default as SingleShopWorkOrder } from "./SingleShopWorkOrder";
15
14
  export { default as FormRender } from "./FormRender";
16
15
  export { default as FormRenderTemplateId } from "./FormRenderTemplateId";
@@ -27,16 +27,6 @@ export declare const fetchLogin: import("@reduxjs/toolkit").AsyncThunk<any, Logi
27
27
  fulfilledMeta?: unknown;
28
28
  rejectedMeta?: unknown;
29
29
  }>;
30
- export declare const fetchLoginNew: import("@reduxjs/toolkit").AsyncThunk<any, LoginParams, {
31
- state?: unknown;
32
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
33
- extra?: unknown;
34
- rejectValue?: unknown;
35
- serializedErrorType?: unknown;
36
- pendingMeta?: unknown;
37
- fulfilledMeta?: unknown;
38
- rejectedMeta?: unknown;
39
- }>;
40
30
  export declare const fetchShopList: import("@reduxjs/toolkit").AsyncThunk<any, void, {
41
31
  state?: unknown;
42
32
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;