@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31 → 2.2.33

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.
@@ -83,6 +83,11 @@ export var systemOrderMap = {
83
83
  no: 'jySystemOrderNo',
84
84
  ids: 'jySystemSelectIds',
85
85
  order: 'jySystemShowOrder'
86
+ },
87
+ WDT_RETURN_BILL_NO: {
88
+ no: 'wdtReturnBillNo',
89
+ ids: 'wdtReturnBillSelectIds',
90
+ order: 'wdtReturnBillShowOrder'
86
91
  }
87
92
  };
88
93
  export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
@@ -275,6 +280,10 @@ export var SUBMIT_COMPONENT_GOODS_MAP = {
275
280
  type: 'wdtGoods',
276
281
  shopCode: 'shopCode'
277
282
  },
283
+ WDT_AFTERSALE_GOODS: {
284
+ type: 'wdtAftersaleGoods',
285
+ shopCode: 'shopCode'
286
+ },
278
287
  BS_E3_GOODS: {
279
288
  type: 'bsE3Goods',
280
289
  shopCode: 'shopCode'
@@ -294,6 +303,10 @@ export var SUBMIT_COMPONENT_GOODS_MAP = {
294
303
  JY_GOODS: {
295
304
  type: 'jyGoods',
296
305
  shopCode: 'shopCode'
306
+ },
307
+ JST_AFTERSALE_GOODS: {
308
+ type: 'jstAftersaleGoods',
309
+ shopCode: 'shopCode'
297
310
  }
298
311
  };
299
312
  export var SUBMIT_COMPONENT_REISSUE_MAP = {
@@ -385,6 +398,12 @@ export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
385
398
  order: 'wdtSystemShowOrder',
386
399
  select: 'billNo'
387
400
  },
401
+ WDT_RETURN_BILL_NO: {
402
+ no: 'wdtReturnBillNo',
403
+ ids: 'wdtReturnBillSelectIds',
404
+ order: 'wdtReturnBillShowOrder',
405
+ select: 'tid'
406
+ },
388
407
  BS_E3_SYSTEM_ORDER: {
389
408
  no: 'bsE3SystemOrderNo',
390
409
  ids: 'bsE3SystemSelectIds',
@@ -975,6 +975,8 @@ var processComponent = function processComponent(_ref59) {
975
975
  case 'JST_GOODS':
976
976
  case 'KM_GOODS':
977
977
  case 'JY_GOODS':
978
+ case 'WDT_AFTERSALE_GOODS':
979
+ case 'JST_AFTERSALE_GOODS':
978
980
  wrapFn(handleErpGoods);
979
981
  break;
980
982
  case 'SKX_GOODS':
@@ -1022,6 +1024,7 @@ var processComponent = function processComponent(_ref59) {
1022
1024
  case 'GY_SYSTEM_ORDER':
1023
1025
  case 'JST_SYSTEM_ORDER':
1024
1026
  case 'JY_SYSTEM_ORDER':
1027
+ case 'WDT_RETURN_BILL_NO':
1025
1028
  wrapFn(handleSystemOrder);
1026
1029
  break;
1027
1030
  case 'BUYER_MESSAGE_NOTICE':
@@ -86,6 +86,7 @@ export declare const deleteCacheOrder: ({ templateList, values, nodeId, flowTemp
86
86
  plat: any;
87
87
  unDeleteOrderInfo: boolean;
88
88
  }) => void;
89
+ export declare const wdtReturnBillNoBackValues: ({ templateList, value, form }: any) => void;
89
90
  export declare const bsSystemOrderBackValues: ({ templateList, value, form }: any) => void;
90
91
  export declare const bsE3SystemOrderBackValues: ({ templateList, value, form }: any) => void;
91
92
  export declare const wlnSystemOrderBackValues: ({ templateList, value, form }: any) => void;
@@ -141,7 +141,7 @@ var getBasicsOrderInfo = function getBasicsOrderInfo(orderInfo, xiaozhiOrder) {
141
141
  //订单返填
142
142
  export var orderBack = /*#__PURE__*/function () {
143
143
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
144
- var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, shopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _jyOrders$trades, _kmOrders$orderDetail, promise, kmVideoComponent, OrderSubFormComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, kmVideoOrder, orderSubFormOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jstInfo, skxInfo, skxReturnInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
144
+ var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, shopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _wdtReturnBillNoCompo, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _wdtReturnOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _jyOrders$trades, _kmOrders$orderDetail, promise, kmVideoComponent, OrderSubFormComponent, wdtReturnBillNoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, kmVideoOrder, orderSubFormOrder, wdtReturnOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, wdtReturnOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jstInfo, skxInfo, skxReturnInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
145
145
  return _regeneratorRuntime().wrap(function _callee$(_context) {
146
146
  while (1) switch (_context.prev = _context.next) {
147
147
  case 0:
@@ -293,13 +293,24 @@ export var orderBack = /*#__PURE__*/function () {
293
293
  } else {
294
294
  promise.push(Promise.resolve([]));
295
295
  }
296
+ // 旺店通售后订单数据获取
297
+ wdtReturnBillNoComponent = templateDetail.componentDtoList.find(function (item) {
298
+ return item.workOrderComponentType === 'WDT_RETURN_BILL_NO';
299
+ });
300
+ if (wdtReturnBillNoComponent && ((_wdtReturnBillNoCompo = wdtReturnBillNoComponent.componentConfig) === null || _wdtReturnBillNoCompo === void 0 ? void 0 : _wdtReturnBillNoCompo.orderBackRule) === 'platformOrderNumber') {
301
+ promise.push(servers.WDT.queryReturnOrderDetailSingleton({
302
+ billNo: order_no
303
+ }));
304
+ } else {
305
+ promise.push(Promise.resolve([]));
306
+ }
296
307
 
297
308
  //需按照orderBackMap中的顺序结构
298
- _context.next = 38;
309
+ _context.next = 40;
299
310
  return Promise.allSettled(promise);
300
- case 38:
311
+ case 40:
301
312
  _yield$Promise$allSet = _context.sent;
302
- _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 14);
313
+ _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 15);
303
314
  data = _yield$Promise$allSet2[0];
304
315
  xiaozhiOrder = _yield$Promise$allSet2[1];
305
316
  jstOrder = _yield$Promise$allSet2[2];
@@ -314,6 +325,7 @@ export var orderBack = /*#__PURE__*/function () {
314
325
  skxReturnOrder = _yield$Promise$allSet2[11];
315
326
  kmVideoOrder = _yield$Promise$allSet2[12];
316
327
  orderSubFormOrder = _yield$Promise$allSet2[13];
328
+ wdtReturnOrder = _yield$Promise$allSet2[14];
317
329
  // TODO: 针对订单支付方式是微信还是支付宝,后端接口返回一个message用来提示使用
318
330
  console.log('--订单反填数据--', {
319
331
  data: data,
@@ -329,7 +341,8 @@ export var orderBack = /*#__PURE__*/function () {
329
341
  skxOrder: skxOrder,
330
342
  skxReturnOrder: skxReturnOrder,
331
343
  kmVideoOrder: kmVideoOrder,
332
- orderSubFormOrder: orderSubFormOrder
344
+ orderSubFormOrder: orderSubFormOrder,
345
+ wdtReturnOrder: wdtReturnOrder
333
346
  });
334
347
  pushGyLog('gyOrder', gyOrder);
335
348
  if (data !== null && data !== void 0 && (_data$value = data.value) !== null && _data$value !== void 0 && _data$value.message) {
@@ -351,6 +364,7 @@ export var orderBack = /*#__PURE__*/function () {
351
364
  jyOrders = jyOrder === null || jyOrder === void 0 ? void 0 : (_jyOrder$value = jyOrder.value) === null || _jyOrder$value === void 0 ? void 0 : _jyOrder$value.data;
352
365
  skxOrders = skxOrder === null || skxOrder === void 0 ? void 0 : (_skxOrder$value = skxOrder.value) === null || _skxOrder$value === void 0 ? void 0 : _skxOrder$value.data;
353
366
  skxReturnOrders = skxReturnOrder === null || skxReturnOrder === void 0 ? void 0 : (_skxReturnOrder$value = skxReturnOrder.value) === null || _skxReturnOrder$value === void 0 ? void 0 : _skxReturnOrder$value.data;
367
+ wdtReturnOrders = wdtReturnOrder === null || wdtReturnOrder === void 0 ? void 0 : (_wdtReturnOrder$value = wdtReturnOrder.value) === null || _wdtReturnOrder$value === void 0 ? void 0 : _wdtReturnOrder$value.data;
354
368
  console.log('skxOrders', {
355
369
  skxOrders: skxOrders,
356
370
  skxOrder: skxOrder
@@ -383,10 +397,11 @@ export var orderBack = /*#__PURE__*/function () {
383
397
  orderNo: order_no,
384
398
  allOrders: bsE3Orders === null || bsE3Orders === void 0 ? void 0 : bsE3Orders.orderList
385
399
  }), form);
386
- wdtInfo = wdtOrders && wdtOrderTransform(_objectSpread(_objectSpread({}, wdtOrders), {}, {
400
+ wdtInfo = (wdtOrders || wdtReturnOrders) && wdtOrderTransform(_objectSpread(_objectSpread({}, wdtOrders), {}, {
387
401
  componentList: templateDetail.componentDtoList,
388
402
  orderNo: order_no,
389
- allOrders: (wdtOrders === null || wdtOrders === void 0 ? void 0 : wdtOrders.trades) || []
403
+ allOrders: (wdtOrders === null || wdtOrders === void 0 ? void 0 : wdtOrders.trades) || [],
404
+ wdtReturnOrders: (wdtReturnOrders === null || wdtReturnOrders === void 0 ? void 0 : wdtReturnOrders.orderList) || []
390
405
  }), form);
391
406
  kmInfo = kmOrders && kmOrderTransform(_objectSpread(_objectSpread({}, kmOrders), {}, {
392
407
  allOrders: (kmOrders === null || kmOrders === void 0 ? void 0 : kmOrders.orderDetailDtoList) || (kmOrders === null || kmOrders === void 0 ? void 0 : kmOrders.trades),
@@ -575,7 +590,7 @@ export var orderBack = /*#__PURE__*/function () {
575
590
  pushGyLog('detail', detail);
576
591
  //抖音数据特殊处理
577
592
  if (!orderInfo) {
578
- _context.next = 139;
593
+ _context.next = 143;
579
594
  break;
580
595
  }
581
596
  if (shopSourceStr === 'FXG') {
@@ -587,7 +602,7 @@ export var orderBack = /*#__PURE__*/function () {
587
602
  hasSelectItem = HasErpItemSelectHandle(templateDetail);
588
603
  erpPromiseList = [];
589
604
  if (!(shopSourceStr === 'TAOBAO' && hasSelectItem)) {
590
- _context.next = 123;
605
+ _context.next = 127;
591
606
  break;
592
607
  }
593
608
  list = detail['itemList'];
@@ -605,10 +620,10 @@ export var orderBack = /*#__PURE__*/function () {
605
620
  resolve({});
606
621
  });
607
622
  });
608
- _context.prev = 113;
609
- _context.next = 116;
623
+ _context.prev = 117;
624
+ _context.next = 120;
610
625
  return Promise.all(promises);
611
- case 116:
626
+ case 120:
612
627
  erpPromiseList = _context.sent;
613
628
  detail['itemList'] = (_detail$itemList = detail['itemList']) === null || _detail$itemList === void 0 ? void 0 : _detail$itemList.map(function (item, index) {
614
629
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -618,25 +633,25 @@ export var orderBack = /*#__PURE__*/function () {
618
633
  })
619
634
  });
620
635
  });
621
- _context.next = 123;
636
+ _context.next = 127;
622
637
  break;
623
- case 120:
624
- _context.prev = 120;
625
- _context.t1 = _context["catch"](113);
638
+ case 124:
639
+ _context.prev = 124;
640
+ _context.t1 = _context["catch"](117);
626
641
  console.error('调用erp获取宝贝编码错误', _context.t1);
627
- case 123:
642
+ case 127:
628
643
  // 判断是否存在签收时间组件
629
644
  hasSigningDatetime = HasTradeSigningDatetime(templateDetail); // 如存在签收时间组件且订单也有返回相应物流单号跟物流公司编码,则调用接口获取签收时间
630
645
  if (!hasSigningDatetime) {
631
- _context.next = 139;
646
+ _context.next = 143;
632
647
  break;
633
648
  }
634
649
  if (!(orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCompany && orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCode)) {
635
- _context.next = 138;
650
+ _context.next = 142;
636
651
  break;
637
652
  }
638
- _context.prev = 126;
639
- _context.next = 129;
653
+ _context.prev = 130;
654
+ _context.next = 133;
640
655
  return request({
641
656
  url: '/qy/logistics/logisticsSignTime',
642
657
  method: 'post',
@@ -646,21 +661,21 @@ export var orderBack = /*#__PURE__*/function () {
646
661
  mailNo: orderInfo.expressLogisticsCode
647
662
  }
648
663
  });
649
- case 129:
664
+ case 133:
650
665
  signDatetime = _context.sent;
651
666
  detail['tradeSigningDateTime'] = signDatetime === null || signDatetime === void 0 ? void 0 : (_signDatetime$data = signDatetime.data) === null || _signDatetime$data === void 0 ? void 0 : _signDatetime$data.signTime;
652
- _context.next = 136;
667
+ _context.next = 140;
653
668
  break;
654
- case 133:
655
- _context.prev = 133;
656
- _context.t2 = _context["catch"](126);
669
+ case 137:
670
+ _context.prev = 137;
671
+ _context.t2 = _context["catch"](130);
657
672
  console.error('调用签收时间错误', _context.t2);
658
- case 136:
659
- _context.next = 139;
673
+ case 140:
674
+ _context.next = 143;
660
675
  break;
661
- case 138:
676
+ case 142:
662
677
  detail['tradeSigningDateTime'] = '';
663
- case 139:
678
+ case 143:
664
679
  values = orderBackFormValues({
665
680
  detail: detail,
666
681
  _get_order_fail_: !orderInfo,
@@ -713,21 +728,21 @@ export var orderBack = /*#__PURE__*/function () {
713
728
  shopId: shopId
714
729
  }));
715
730
  callback === null || callback === void 0 ? void 0 : callback(detail, templateDetail);
716
- _context.next = 151;
731
+ _context.next = 155;
717
732
  break;
718
- case 148:
719
- _context.prev = 148;
733
+ case 152:
734
+ _context.prev = 152;
720
735
  _context.t3 = _context["catch"](27);
721
736
  console.error(_context.t3);
722
- case 151:
723
- _context.prev = 151;
737
+ case 155:
738
+ _context.prev = 155;
724
739
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
725
- return _context.finish(151);
726
- case 154:
740
+ return _context.finish(155);
741
+ case 158:
727
742
  case "end":
728
743
  return _context.stop();
729
744
  }
730
- }, _callee, null, [[7, 14, 17, 20], [27, 148, 151, 154], [113, 120], [126, 133]]);
745
+ }, _callee, null, [[7, 14, 17, 20], [27, 152, 155, 158], [117, 124], [130, 137]]);
731
746
  }));
732
747
  return function orderBack(_x) {
733
748
  return _ref2.apply(this, arguments);
@@ -1089,6 +1104,14 @@ export var reversalFormValues = function reversalFormValues() {
1089
1104
  prv["".concat(next.uniqueKey, "_wdtGoods")] = JSON.stringify(values[next.uniqueKey]['wdtGoods']);
1090
1105
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
1091
1106
  break;
1107
+ case 'WDT_AFTERSALE_GOODS':
1108
+ prv["".concat(next.uniqueKey, "_wdtAftersaleGoods")] = JSON.stringify(values[next.uniqueKey]['wdtAftersaleGoods']);
1109
+ prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
1110
+ break;
1111
+ case 'JST_AFTERSALE_GOODS':
1112
+ prv["".concat(next.uniqueKey, "_jstAftersaleGoods")] = JSON.stringify(values[next.uniqueKey]['jstAftersaleGoods']);
1113
+ prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
1114
+ break;
1092
1115
  case 'BS_E3_GOODS':
1093
1116
  prv["".concat(next.uniqueKey, "_bsE3Goods")] = JSON.stringify(values[next.uniqueKey]['_bsE3Goods']);
1094
1117
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
@@ -1151,15 +1174,39 @@ export var deleteCacheOrder = function deleteCacheOrder(_ref6) {
1151
1174
  }
1152
1175
  }
1153
1176
  };
1154
- //bs商品信息返填
1155
- export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref7) {
1177
+ //wdt售后商品信息返填
1178
+ export var wdtReturnBillNoBackValues = function wdtReturnBillNoBackValues(_ref7) {
1156
1179
  var _templateList$compone;
1157
1180
  var templateList = _ref7.templateList,
1158
1181
  value = _ref7.value,
1159
1182
  form = _ref7.form;
1160
1183
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1161
1184
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1162
- var bsGoodsComponent = (_templateList$compone = templateList.componentDtoList) === null || _templateList$compone === void 0 ? void 0 : _templateList$compone.filter(function (item) {
1185
+ var wdtAftersaleGoodsComponent = (_templateList$compone = templateList.componentDtoList) === null || _templateList$compone === void 0 ? void 0 : _templateList$compone.filter(function (item) {
1186
+ return ['WDT_AFTERSALE_GOODS'].includes(item.workOrderComponentType);
1187
+ });
1188
+ if (!(wdtAftersaleGoodsComponent !== null && wdtAftersaleGoodsComponent !== void 0 && wdtAftersaleGoodsComponent.length)) return;
1189
+ var wdtAftersaleGoodsValue = form.getFieldValue(wdtAftersaleGoodsComponent[0].uniqueKey);
1190
+ var orderInfo = wdtOrderTransform({
1191
+ wdtReturnOrders: value.selectedRows,
1192
+ shopCode: wdtAftersaleGoodsValue.shopCode,
1193
+ componentList: templateList.componentDtoList
1194
+ }, form);
1195
+ var values = wdtOrderBackFormValues(orderInfo, {
1196
+ componentDtoList: wdtAftersaleGoodsComponent
1197
+ });
1198
+ console.log('wdtReturnBillNoBackValues333', values);
1199
+ form.setFieldsValue(values);
1200
+ };
1201
+ //bs商品信息返填
1202
+ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref8) {
1203
+ var _templateList$compone2;
1204
+ var templateList = _ref8.templateList,
1205
+ value = _ref8.value,
1206
+ form = _ref8.form;
1207
+ //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1208
+ if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1209
+ var bsGoodsComponent = (_templateList$compone2 = templateList.componentDtoList) === null || _templateList$compone2 === void 0 ? void 0 : _templateList$compone2.filter(function (item) {
1163
1210
  return ['BS_GOODS', 'BS_DELIVERY_NO', 'BS_SEND_GOOD', 'BS_LOGISTICS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_EXCHANGE_GOODS', 'LOGISTICS_TRAJECTORY_MORE', 'LOGISTICS_INTERCEPTION_MORE'].includes(item.workOrderComponentType);
1164
1211
  });
1165
1212
  if (!(bsGoodsComponent !== null && bsGoodsComponent !== void 0 && bsGoodsComponent.length)) return;
@@ -1176,18 +1223,18 @@ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref7) {
1176
1223
  form.setFieldsValue(values);
1177
1224
  };
1178
1225
  // bs e3商品信息返填
1179
- export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref8) {
1180
- var _templateList$compone2, _templateList$compone3;
1181
- var templateList = _ref8.templateList,
1182
- value = _ref8.value,
1183
- form = _ref8.form;
1226
+ export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref9) {
1227
+ var _templateList$compone3, _templateList$compone4;
1228
+ var templateList = _ref9.templateList,
1229
+ value = _ref9.value,
1230
+ form = _ref9.form;
1184
1231
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1185
1232
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1186
- var bsE3GoodsComponent = (_templateList$compone2 = templateList.componentDtoList) === null || _templateList$compone2 === void 0 ? void 0 : _templateList$compone2.filter(function (item) {
1233
+ var bsE3GoodsComponent = (_templateList$compone3 = templateList.componentDtoList) === null || _templateList$compone3 === void 0 ? void 0 : _templateList$compone3.filter(function (item) {
1187
1234
  return ['BS_E3_GOODS', 'BS_E3_SEND_GOOD', 'BS_E3_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
1188
1235
  });
1189
1236
  if (!(bsE3GoodsComponent !== null && bsE3GoodsComponent !== void 0 && bsE3GoodsComponent.length)) return;
1190
- var tIdCom = (_templateList$compone3 = templateList.componentDtoList) === null || _templateList$compone3 === void 0 ? void 0 : _templateList$compone3.find(function (item) {
1237
+ var tIdCom = (_templateList$compone4 = templateList.componentDtoList) === null || _templateList$compone4 === void 0 ? void 0 : _templateList$compone4.find(function (item) {
1191
1238
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1192
1239
  });
1193
1240
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1204,14 +1251,14 @@ export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref8)
1204
1251
  };
1205
1252
 
1206
1253
  //wln商品信息返填
1207
- export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref9) {
1208
- var _templateList$compone4;
1209
- var templateList = _ref9.templateList,
1210
- value = _ref9.value,
1211
- form = _ref9.form;
1254
+ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref10) {
1255
+ var _templateList$compone5;
1256
+ var templateList = _ref10.templateList,
1257
+ value = _ref10.value,
1258
+ form = _ref10.form;
1212
1259
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1213
1260
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1214
- var bsGoodsComponent = (_templateList$compone4 = templateList.componentDtoList) === null || _templateList$compone4 === void 0 ? void 0 : _templateList$compone4.filter(function (item) {
1261
+ var bsGoodsComponent = (_templateList$compone5 = templateList.componentDtoList) === null || _templateList$compone5 === void 0 ? void 0 : _templateList$compone5.filter(function (item) {
1215
1262
  return ['WLN_GOODS', 'WLN_SEND_GOOD', 'WLN_LOGISTICS'].includes(item.workOrderComponentType);
1216
1263
  });
1217
1264
  if (!(bsGoodsComponent !== null && bsGoodsComponent !== void 0 && bsGoodsComponent.length)) return;
@@ -1228,18 +1275,18 @@ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref9) {
1228
1275
  };
1229
1276
 
1230
1277
  // km 商品信息返填
1231
- export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref10) {
1232
- var _templateList$compone5, _templateList$compone6;
1233
- var templateList = _ref10.templateList,
1234
- value = _ref10.value,
1235
- form = _ref10.form;
1278
+ export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref11) {
1279
+ var _templateList$compone6, _templateList$compone7;
1280
+ var templateList = _ref11.templateList,
1281
+ value = _ref11.value,
1282
+ form = _ref11.form;
1236
1283
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1237
1284
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1238
- var kmGoodsComponent = (_templateList$compone5 = templateList.componentDtoList) === null || _templateList$compone5 === void 0 ? void 0 : _templateList$compone5.filter(function (item) {
1285
+ var kmGoodsComponent = (_templateList$compone6 = templateList.componentDtoList) === null || _templateList$compone6 === void 0 ? void 0 : _templateList$compone6.filter(function (item) {
1239
1286
  return ['KM_GOODS', 'KM_SEND_GOOD', 'KM_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
1240
1287
  });
1241
1288
  if (!(kmGoodsComponent !== null && kmGoodsComponent !== void 0 && kmGoodsComponent.length)) return;
1242
- var tIdCom = (_templateList$compone6 = templateList.componentDtoList) === null || _templateList$compone6 === void 0 ? void 0 : _templateList$compone6.find(function (item) {
1289
+ var tIdCom = (_templateList$compone7 = templateList.componentDtoList) === null || _templateList$compone7 === void 0 ? void 0 : _templateList$compone7.find(function (item) {
1243
1290
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1244
1291
  });
1245
1292
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1256,18 +1303,18 @@ export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref10) {
1256
1303
  };
1257
1304
 
1258
1305
  // wdt商品信息返填
1259
- export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref11) {
1260
- var _templateList$compone7, _templateList$compone8;
1261
- var templateList = _ref11.templateList,
1262
- value = _ref11.value,
1263
- form = _ref11.form;
1306
+ export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref12) {
1307
+ var _templateList$compone8, _templateList$compone9;
1308
+ var templateList = _ref12.templateList,
1309
+ value = _ref12.value,
1310
+ form = _ref12.form;
1264
1311
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1265
1312
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1266
- var wdtGoodsComponent = (_templateList$compone7 = templateList.componentDtoList) === null || _templateList$compone7 === void 0 ? void 0 : _templateList$compone7.filter(function (item) {
1313
+ var wdtGoodsComponent = (_templateList$compone8 = templateList.componentDtoList) === null || _templateList$compone8 === void 0 ? void 0 : _templateList$compone8.filter(function (item) {
1267
1314
  return ['WDT_GOODS', 'WDT_DELIVERY_NO', 'WDT_SEND_GOOD', 'WDT_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
1268
1315
  });
1269
1316
  if (!(wdtGoodsComponent !== null && wdtGoodsComponent !== void 0 && wdtGoodsComponent.length)) return;
1270
- var tIdCom = (_templateList$compone8 = templateList.componentDtoList) === null || _templateList$compone8 === void 0 ? void 0 : _templateList$compone8.find(function (item) {
1317
+ var tIdCom = (_templateList$compone9 = templateList.componentDtoList) === null || _templateList$compone9 === void 0 ? void 0 : _templateList$compone9.find(function (item) {
1271
1318
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1272
1319
  });
1273
1320
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1289,18 +1336,18 @@ export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref11)
1289
1336
  };
1290
1337
 
1291
1338
  //gy商品信息返填
1292
- export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref12) {
1293
- var _templateList$compone9, _templateList$compone10;
1294
- var templateList = _ref12.templateList,
1295
- value = _ref12.value,
1296
- form = _ref12.form;
1339
+ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref13) {
1340
+ var _templateList$compone10, _templateList$compone11;
1341
+ var templateList = _ref13.templateList,
1342
+ value = _ref13.value,
1343
+ form = _ref13.form;
1297
1344
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1298
1345
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1299
- var gyGoodsComponent = (_templateList$compone9 = templateList.componentDtoList) === null || _templateList$compone9 === void 0 ? void 0 : _templateList$compone9.filter(function (item) {
1346
+ var gyGoodsComponent = (_templateList$compone10 = templateList.componentDtoList) === null || _templateList$compone10 === void 0 ? void 0 : _templateList$compone10.filter(function (item) {
1300
1347
  return ['GY_GOODS', 'GY_SEND_GOOD', 'GY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
1301
1348
  });
1302
1349
  if (!(gyGoodsComponent !== null && gyGoodsComponent !== void 0 && gyGoodsComponent.length)) return;
1303
- var tIdCom = (_templateList$compone10 = templateList.componentDtoList) === null || _templateList$compone10 === void 0 ? void 0 : _templateList$compone10.find(function (item) {
1350
+ var tIdCom = (_templateList$compone11 = templateList.componentDtoList) === null || _templateList$compone11 === void 0 ? void 0 : _templateList$compone11.find(function (item) {
1304
1351
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1305
1352
  });
1306
1353
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1317,18 +1364,18 @@ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref12) {
1317
1364
  };
1318
1365
 
1319
1366
  //聚水潭商品信息返填
1320
- export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref13) {
1321
- var _templateList$compone11, _templateList$compone12;
1322
- var templateList = _ref13.templateList,
1323
- value = _ref13.value,
1324
- form = _ref13.form;
1367
+ export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref14) {
1368
+ var _templateList$compone12, _templateList$compone13;
1369
+ var templateList = _ref14.templateList,
1370
+ value = _ref14.value,
1371
+ form = _ref14.form;
1325
1372
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1326
1373
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1327
- var jstGoodsComponent = (_templateList$compone11 = templateList.componentDtoList) === null || _templateList$compone11 === void 0 ? void 0 : _templateList$compone11.filter(function (item) {
1374
+ var jstGoodsComponent = (_templateList$compone12 = templateList.componentDtoList) === null || _templateList$compone12 === void 0 ? void 0 : _templateList$compone12.filter(function (item) {
1328
1375
  return ['JST_GOODS', 'JST_SEND_GOOD', 'JST_LOGISTICS', 'JST_SUPPLY', 'JST_ITEM_SELECT_THIRD'].includes(item.workOrderComponentType) && !item.notOrderBack;
1329
1376
  });
1330
1377
  if (!(jstGoodsComponent !== null && jstGoodsComponent !== void 0 && jstGoodsComponent.length)) return;
1331
- var tIdCom = (_templateList$compone12 = templateList.componentDtoList) === null || _templateList$compone12 === void 0 ? void 0 : _templateList$compone12.find(function (item) {
1378
+ var tIdCom = (_templateList$compone13 = templateList.componentDtoList) === null || _templateList$compone13 === void 0 ? void 0 : _templateList$compone13.find(function (item) {
1332
1379
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1333
1380
  });
1334
1381
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1344,18 +1391,18 @@ export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref13)
1344
1391
  form.setFieldsValue(values);
1345
1392
  };
1346
1393
  // 巨益商品信息反填
1347
- export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref14) {
1348
- var _templateList$compone13, _templateList$compone14;
1349
- var templateList = _ref14.templateList,
1350
- value = _ref14.value,
1351
- form = _ref14.form;
1394
+ export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref15) {
1395
+ var _templateList$compone14, _templateList$compone15;
1396
+ var templateList = _ref15.templateList,
1397
+ value = _ref15.value,
1398
+ form = _ref15.form;
1352
1399
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1353
1400
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1354
- var jyGoodsComponent = (_templateList$compone13 = templateList.componentDtoList) === null || _templateList$compone13 === void 0 ? void 0 : _templateList$compone13.filter(function (item) {
1401
+ var jyGoodsComponent = (_templateList$compone14 = templateList.componentDtoList) === null || _templateList$compone14 === void 0 ? void 0 : _templateList$compone14.filter(function (item) {
1355
1402
  return ['JY_GOODS', 'JY_SEND_GOOD', 'JY_LOGISTICS'].includes(item.workOrderComponentType) && !item.notOrderBack;
1356
1403
  });
1357
1404
  if (!(jyGoodsComponent !== null && jyGoodsComponent !== void 0 && jyGoodsComponent.length)) return;
1358
- var tIdCom = (_templateList$compone14 = templateList.componentDtoList) === null || _templateList$compone14 === void 0 ? void 0 : _templateList$compone14.find(function (item) {
1405
+ var tIdCom = (_templateList$compone15 = templateList.componentDtoList) === null || _templateList$compone15 === void 0 ? void 0 : _templateList$compone15.find(function (item) {
1359
1406
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
1360
1407
  });
1361
1408
  var orderNo = tIdCom !== null && tIdCom !== void 0 && tIdCom.uniqueKey ? form.getFieldValue(tIdCom.uniqueKey) : null;
@@ -1530,12 +1577,12 @@ export var transformWorkOrderDetail = function transformWorkOrderDetail(detail)
1530
1577
  };
1531
1578
 
1532
1579
  // 返填物流轨迹信息
1533
- export var setLogisticsInfo = function setLogisticsInfo(_ref15) {
1534
- var logisticsMappingConfig = _ref15.logisticsMappingConfig,
1535
- uniqueKey = _ref15.uniqueKey,
1536
- workOrderComponentType = _ref15.workOrderComponentType,
1537
- value = _ref15.value,
1538
- form = _ref15.form;
1580
+ export var setLogisticsInfo = function setLogisticsInfo(_ref16) {
1581
+ var logisticsMappingConfig = _ref16.logisticsMappingConfig,
1582
+ uniqueKey = _ref16.uniqueKey,
1583
+ workOrderComponentType = _ref16.workOrderComponentType,
1584
+ value = _ref16.value,
1585
+ form = _ref16.form;
1539
1586
  var values = logisticsMappingConfig.reduce(function (prv, next) {
1540
1587
  var logisticsValues = form.getFieldValue(next.uniqueKey);
1541
1588
  var componentConfig = next.componentConfig;
@@ -5,7 +5,7 @@ var orderBackKeyListMap = {
5
5
  hasJst: ['JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD'],
6
6
  hasBs: ['BS_SIGNING_TIME', 'BS_SEND_TIME', 'BS_TRADE_PAYMENT_TIME', 'BS_NET_RECEIPTS', 'BS_PACKAGE_WEIGHT', 'BS_GOODS', 'BS_DEPOSIT', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_POSTING', 'BS_SYSTEM_ORDER', 'BS_DELIVERY_NO'],
7
7
  hasKm: ['KM_SYSTEM_ORDER', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS'],
8
- hasWdt: ['WDT_SYSTEM_ORDER', 'WDT_GOODS', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_REISSUE_GOODS', 'WDT_SHOP'],
8
+ hasWdt: ['WDT_SYSTEM_ORDER', 'WDT_GOODS', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_REISSUE_GOODS', 'WDT_SHOP', 'WDT_RETURN_BILL_NO'],
9
9
  hasBsE3: ['BS_E3_SYSTEM_ORDER', 'BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD'],
10
10
  hasWln: ['WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD'],
11
11
  hasGy: ['GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS'],