@kmkf-fe-packages/kmkf-work-order-service-component 2.2.13-beta.31 → 2.2.13-beta.32

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.
@@ -456,6 +456,7 @@ var FormRender = function FormRender(props, ref) {
456
456
  queryMemberLevels(_currentNodeTid, shopId);
457
457
  _context2.next = 27;
458
458
  return orderBack({
459
+ companyKey: companyKey,
459
460
  order_no: _currentNodeTid,
460
461
  form: form,
461
462
  shopId: shopId,
@@ -491,6 +492,7 @@ var FormRender = function FormRender(props, ref) {
491
492
  queryMemberLevels(record === null || record === void 0 ? void 0 : (_record$jsonMap5 = record.jsonMap) === null || _record$jsonMap5 === void 0 ? void 0 : _record$jsonMap5["".concat(tradeIdUniqueKey, "_tradeId")], shopId);
492
493
  _context2.next = 38;
493
494
  return orderBack({
495
+ companyKey: companyKey,
494
496
  order_no: record === null || record === void 0 ? void 0 : (_record$jsonMap6 = record.jsonMap) === null || _record$jsonMap6 === void 0 ? void 0 : _record$jsonMap6["".concat(tradeIdUniqueKey, "_tradeId")],
495
497
  form: form,
496
498
  shopId: shopId,
@@ -568,6 +570,7 @@ var FormRender = function FormRender(props, ref) {
568
570
  queryMemberLevels(orderNo, shopId);
569
571
  _context2.next = 63;
570
572
  return orderBack({
573
+ companyKey: companyKey,
571
574
  order_no: orderNo,
572
575
  form: form,
573
576
  shopId: shopId,
@@ -830,6 +833,7 @@ var FormRender = function FormRender(props, ref) {
830
833
  sessionStorage.setItem('order_no_test', order_no);
831
834
  _context5.next = 5;
832
835
  return orderBack({
836
+ companyKey: companyKey,
833
837
  order_no: order_no,
834
838
  form: form,
835
839
  shopId: shopId,
@@ -984,7 +988,12 @@ var FormRender = function FormRender(props, ref) {
984
988
  componentOnBlur: componentOnBlur
985
989
  });
986
990
  case 8:
987
- if (!['TR3E2FYXFZCFANVG6O6AALSM', 'SZF4ZGWZSNW6PYXMCIFEWBXT'].includes(companyKey)) {
991
+ if (!['SZF4ZGWZSNW6PYXMCIFEWBXT',
992
+ //test 测马奔腾
993
+ '6O47IBXFR26FJF4HUQ7WGO4H',
994
+ //prod 陈健企业工单
995
+ 'TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
996
+ ].includes(companyKey)) {
988
997
  _context6.next = 11;
989
998
  break;
990
999
  }
@@ -1190,6 +1199,7 @@ var FormRender = function FormRender(props, ref) {
1190
1199
  var paymentValue = (_allValue = allValue[paymentUniqueKey]) === null || _allValue === void 0 ? void 0 : _allValue.enterprisePaymentTid;
1191
1200
  if (_tradeValue || paymentValue) {
1192
1201
  orderBack({
1202
+ companyKey: companyKey,
1193
1203
  order_no: _tradeValue || paymentValue,
1194
1204
  form: form,
1195
1205
  shopId: val,
@@ -39,7 +39,7 @@ export declare const calcWorkOrderList: (source: Partial<WorkOrderDetail>[], tem
39
39
  workOrderComponentType: string;
40
40
  uniqueKey: string;
41
41
  }[], type?: string) => any[];
42
- export declare const orderBack: ({ order_no, form, shopId: propsShopid, shopList, templateDetail, type, callback, fromQNCreateWorkOrderByOrderNo, plat, callbackShopId, setLoading, callKey, }: any) => Promise<void>;
42
+ export declare const orderBack: ({ companyKey, order_no, form, shopId: propsShopid, shopList, templateDetail, type, callback, fromQNCreateWorkOrderByOrderNo, plat, callbackShopId, setLoading, callKey, }: any) => Promise<void>;
43
43
  export declare const imgResize: (url: string, w?: number, h?: number) => string;
44
44
  export declare const COMPONENT_MAP: {
45
45
  [key: string]: string;
@@ -140,54 +140,72 @@ var getBasicsOrderInfo = function getBasicsOrderInfo(orderInfo, xiaozhiOrder) {
140
140
  //订单返填
141
141
  export var orderBack = /*#__PURE__*/function () {
142
142
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
143
- var 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, _ref3, shopSourceStr, _ref3$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, _jyOrder$value$data, _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;
143
+ 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, _jyOrder$value$data, _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
144
  return _regeneratorRuntime().wrap(function _callee$(_context) {
145
145
  while (1) switch (_context.prev = _context.next) {
146
146
  case 0:
147
- order_no = _ref.order_no, form = _ref.form, propsShopid = _ref.shopId, shopList = _ref.shopList, templateDetail = _ref.templateDetail, _ref$type = _ref.type, type = _ref$type === void 0 ? 'add' : _ref$type, callback = _ref.callback, fromQNCreateWorkOrderByOrderNo = _ref.fromQNCreateWorkOrderByOrderNo, _ref$plat = _ref.plat, plat = _ref$plat === void 0 ? {} : _ref$plat, callbackShopId = _ref.callbackShopId, setLoading = _ref.setLoading, callKey = _ref.callKey;
148
- console.log('orderBack-run--', callKey);
147
+ companyKey = _ref.companyKey, order_no = _ref.order_no, form = _ref.form, propsShopid = _ref.shopId, shopList = _ref.shopList, templateDetail = _ref.templateDetail, _ref$type = _ref.type, type = _ref$type === void 0 ? 'add' : _ref$type, callback = _ref.callback, fromQNCreateWorkOrderByOrderNo = _ref.fromQNCreateWorkOrderByOrderNo, _ref$plat = _ref.plat, plat = _ref$plat === void 0 ? {} : _ref$plat, callbackShopId = _ref.callbackShopId, setLoading = _ref.setLoading, callKey = _ref.callKey;
148
+ console.log('orderBack-run--', callKey, templateDetail);
149
149
  shopId = propsShopid; //如果是pc平台且没有shopId的情况下 获取shopId
150
- trySetShopId = function trySetShopId(theShopId, theShopName) {
150
+ trySetShopId = function trySetShopId(_ref3) {
151
+ var theShopId = _ref3.theShopId,
152
+ theShopUniqueKey = _ref3.theShopUniqueKey,
153
+ theShopName = _ref3.theShopName,
154
+ erpShopName = _ref3.erpShopName;
151
155
  var shopInfo = shopList.find(function (item) {
152
- return item.shopId === theShopId;
156
+ return theShopId && item.shopId === theShopId || theShopUniqueKey && item.uniqueKey === theShopUniqueKey;
153
157
  });
154
158
  if (!shopInfo) {
155
- message.error("\u5339\u914D\u5E97\u94FA\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u6709".concat(theShopName, "\u5E97\u94FA\u6743\u9650"));
159
+ message.error(erpShopName ? "\u5339\u914D\u5E97\u94FA\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u914D\u7F6E".concat(erpShopName, "\u6620\u5C04\uFF0C\u6216\u5BF9\u5E94\u5E97\u94FA\u662F\u5426\u6709\u6743\u9650") : "\u5339\u914D\u5E97\u94FA\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u6709".concat(theShopName, "\u5E97\u94FA\u6743\u9650"));
156
160
  } else {
157
161
  if (!shopInfo.auditStatus) {
158
162
  message.error("\u5339\u914D\u5E97\u94FA\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5".concat(theShopName, "\u6388\u6743\u662F\u5426\u6B63\u5E38"));
159
163
  } else {
160
- shopId = theShopId;
164
+ shopId = shopInfo.shopId;
161
165
  callbackShopId === null || callbackShopId === void 0 ? void 0 : callbackShopId(shopId);
162
166
  }
163
167
  }
164
168
  };
165
- if (!(order_no && [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && !!(plat !== null && plat !== void 0 && plat.bindERP) && type === 'add')) {
166
- _context.next = 19;
169
+ console.log('*** ', companyKey, ['SZF4ZGWZSNW6PYXMCIFEWBXT',
170
+ //test 测马奔腾
171
+ '6O47IBXFR26FJF4HUQ7WGO4H',
172
+ //prod 陈健企业工单
173
+ 'TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
174
+ ].includes(companyKey));
175
+ if (!(order_no && [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && (!!(plat !== null && plat !== void 0 && plat.bindERP) || ['SZF4ZGWZSNW6PYXMCIFEWBXT',
176
+ //test 测马奔腾
177
+ '6O47IBXFR26FJF4HUQ7WGO4H',
178
+ //prod 陈健企业工单
179
+ 'TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
180
+ ].includes(companyKey)) && type === 'add')) {
181
+ _context.next = 20;
167
182
  break;
168
183
  }
169
184
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
170
- _context.prev = 6;
171
- _context.next = 9;
185
+ _context.prev = 7;
186
+ _context.next = 10;
172
187
  return queryShopByTid({
173
188
  tid: order_no
174
189
  });
175
- case 9:
190
+ case 10:
176
191
  res = _context.sent;
177
192
  if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.shopId) {
178
- trySetShopId(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shopId, res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.shopName);
193
+ trySetShopId({
194
+ theShopName: res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shopName,
195
+ theShopId: res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.shopId
196
+ });
179
197
  }
180
- _context.next = 16;
198
+ _context.next = 17;
181
199
  break;
182
- case 13:
183
- _context.prev = 13;
184
- _context.t0 = _context["catch"](6);
200
+ case 14:
201
+ _context.prev = 14;
202
+ _context.t0 = _context["catch"](7);
185
203
  console.error(_context.t0);
186
- case 16:
187
- _context.prev = 16;
204
+ case 17:
205
+ _context.prev = 17;
188
206
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
189
- return _context.finish(16);
190
- case 19:
207
+ return _context.finish(17);
208
+ case 20:
191
209
  //是否是对接平台,只有对接平台才能返填订单号
192
210
  JOIN_SHOP = shopList.find(function (item) {
193
211
  return !item.notJoin && item.shopId == shopId;
@@ -203,7 +221,7 @@ export var orderBack = /*#__PURE__*/function () {
203
221
  }).every(function (item) {
204
222
  return item === false;
205
223
  }))) {
206
- _context.next = 24;
224
+ _context.next = 25;
207
225
  break;
208
226
  }
209
227
  //处理店铺映射存在店铺信息却没有返填的问题
@@ -213,12 +231,12 @@ export var orderBack = /*#__PURE__*/function () {
213
231
  });
214
232
  }
215
233
  return _context.abrupt("return");
216
- case 24:
217
- _ref3 = shopList.find(function (item) {
234
+ case 25:
235
+ _ref4 = shopList.find(function (item) {
218
236
  return item.shopId == shopId;
219
- }) || {}, shopSourceStr = _ref3.shopSourceStr, _ref3$thirdUserNick = _ref3.thirdUserNick, thirdUserNick = _ref3$thirdUserNick === void 0 ? '' : _ref3$thirdUserNick, thirdShopMainType = _ref3.thirdShopMainType;
237
+ }) || {}, shopSourceStr = _ref4.shopSourceStr, _ref4$thirdUserNick = _ref4.thirdUserNick, thirdUserNick = _ref4$thirdUserNick === void 0 ? '' : _ref4$thirdUserNick, thirdShopMainType = _ref4.thirdShopMainType;
220
238
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
221
- _context.prev = 26;
239
+ _context.prev = 27;
222
240
  promise = [];
223
241
  if (!JOIN_SHOP || thirdShopMainType === '1' && shopSourceStr === 'JD') {
224
242
  promise.push(Promise.resolve([]));
@@ -275,9 +293,9 @@ export var orderBack = /*#__PURE__*/function () {
275
293
  }
276
294
 
277
295
  //需按照orderBackMap中的顺序结构
278
- _context.next = 37;
296
+ _context.next = 38;
279
297
  return Promise.allSettled(promise);
280
- case 37:
298
+ case 38:
281
299
  _yield$Promise$allSet = _context.sent;
282
300
  _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 14);
283
301
  data = _yield$Promise$allSet2[0];
@@ -555,7 +573,7 @@ export var orderBack = /*#__PURE__*/function () {
555
573
  pushGyLog('detail', detail);
556
574
  //抖音数据特殊处理
557
575
  if (!orderInfo) {
558
- _context.next = 138;
576
+ _context.next = 139;
559
577
  break;
560
578
  }
561
579
  if (shopSourceStr === 'FXG') {
@@ -567,7 +585,7 @@ export var orderBack = /*#__PURE__*/function () {
567
585
  hasSelectItem = HasErpItemSelectHandle(templateDetail);
568
586
  erpPromiseList = [];
569
587
  if (!(shopSourceStr === 'TAOBAO' && hasSelectItem)) {
570
- _context.next = 122;
588
+ _context.next = 123;
571
589
  break;
572
590
  }
573
591
  list = detail['itemList'];
@@ -585,10 +603,10 @@ export var orderBack = /*#__PURE__*/function () {
585
603
  resolve({});
586
604
  });
587
605
  });
588
- _context.prev = 112;
589
- _context.next = 115;
606
+ _context.prev = 113;
607
+ _context.next = 116;
590
608
  return Promise.all(promises);
591
- case 115:
609
+ case 116:
592
610
  erpPromiseList = _context.sent;
593
611
  detail['itemList'] = (_detail$itemList = detail['itemList']) === null || _detail$itemList === void 0 ? void 0 : _detail$itemList.map(function (item, index) {
594
612
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -598,25 +616,25 @@ export var orderBack = /*#__PURE__*/function () {
598
616
  })
599
617
  });
600
618
  });
601
- _context.next = 122;
619
+ _context.next = 123;
602
620
  break;
603
- case 119:
604
- _context.prev = 119;
605
- _context.t1 = _context["catch"](112);
621
+ case 120:
622
+ _context.prev = 120;
623
+ _context.t1 = _context["catch"](113);
606
624
  console.error('调用erp获取宝贝编码错误', _context.t1);
607
- case 122:
625
+ case 123:
608
626
  // 判断是否存在签收时间组件
609
627
  hasSigningDatetime = HasTradeSigningDatetime(templateDetail); // 如存在签收时间组件且订单也有返回相应物流单号跟物流公司编码,则调用接口获取签收时间
610
628
  if (!hasSigningDatetime) {
611
- _context.next = 138;
629
+ _context.next = 139;
612
630
  break;
613
631
  }
614
632
  if (!(orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCompany && orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCode)) {
615
- _context.next = 137;
633
+ _context.next = 138;
616
634
  break;
617
635
  }
618
- _context.prev = 125;
619
- _context.next = 128;
636
+ _context.prev = 126;
637
+ _context.next = 129;
620
638
  return request({
621
639
  url: '/qy/logistics/logisticsSignTime',
622
640
  method: 'post',
@@ -626,21 +644,21 @@ export var orderBack = /*#__PURE__*/function () {
626
644
  mailNo: orderInfo.expressLogisticsCode
627
645
  }
628
646
  });
629
- case 128:
647
+ case 129:
630
648
  signDatetime = _context.sent;
631
649
  detail['tradeSigningDateTime'] = signDatetime === null || signDatetime === void 0 ? void 0 : (_signDatetime$data = signDatetime.data) === null || _signDatetime$data === void 0 ? void 0 : _signDatetime$data.signTime;
632
- _context.next = 135;
650
+ _context.next = 136;
633
651
  break;
634
- case 132:
635
- _context.prev = 132;
636
- _context.t2 = _context["catch"](125);
652
+ case 133:
653
+ _context.prev = 133;
654
+ _context.t2 = _context["catch"](126);
637
655
  console.error('调用签收时间错误', _context.t2);
638
- case 135:
639
- _context.next = 138;
656
+ case 136:
657
+ _context.next = 139;
640
658
  break;
641
- case 137:
642
- detail['tradeSigningDateTime'] = '';
643
659
  case 138:
660
+ detail['tradeSigningDateTime'] = '';
661
+ case 139:
644
662
  values = orderBackFormValues({
645
663
  detail: detail,
646
664
  _get_order_fail_: !orderInfo,
@@ -676,10 +694,13 @@ export var orderBack = /*#__PURE__*/function () {
676
694
  }
677
695
  }
678
696
  // console.log('orderback', values);
679
- if (values.shopId) {
680
- trySetShopId(values.shopId, values.shopName);
681
- delete values.shopId;
682
- delete values.shopName;
697
+ if (values.shopUniqueKey) {
698
+ trySetShopId({
699
+ theShopUniqueKey: values.shopUniqueKey,
700
+ erpShopName: values.erpShopName
701
+ });
702
+ delete values.shopUniqueKey;
703
+ delete values.erpShopName;
683
704
  }
684
705
  form.setFieldsValue(_objectSpread(_objectSpread(_objectSpread({}, formValue), values), {}, {
685
706
  fixed_field_buyerOpenUid: orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.buyerOpenUid,
@@ -690,21 +711,21 @@ export var orderBack = /*#__PURE__*/function () {
690
711
  shopId: shopId
691
712
  }));
692
713
  callback === null || callback === void 0 ? void 0 : callback(detail, templateDetail);
693
- _context.next = 150;
714
+ _context.next = 151;
694
715
  break;
695
- case 147:
696
- _context.prev = 147;
697
- _context.t3 = _context["catch"](26);
716
+ case 148:
717
+ _context.prev = 148;
718
+ _context.t3 = _context["catch"](27);
698
719
  console.error(_context.t3);
699
- case 150:
700
- _context.prev = 150;
720
+ case 151:
721
+ _context.prev = 151;
701
722
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
702
- return _context.finish(150);
703
- case 153:
723
+ return _context.finish(151);
724
+ case 154:
704
725
  case "end":
705
726
  return _context.stop();
706
727
  }
707
- }, _callee, null, [[6, 13, 16, 19], [26, 147, 150, 153], [112, 119], [125, 132]]);
728
+ }, _callee, null, [[7, 14, 17, 20], [27, 148, 151, 154], [113, 120], [126, 133]]);
708
729
  }));
709
730
  return function orderBack(_x) {
710
731
  return _ref2.apply(this, arguments);
@@ -840,14 +861,14 @@ export var HasTradeSigningDatetime = function HasTradeSigningDatetime() {
840
861
  return ['TRADE_SIGNING_DATETIME'].includes(item.workOrderComponentType);
841
862
  });
842
863
  };
843
- export var submitParams = function submitParams(_ref4) {
864
+ export var submitParams = function submitParams(_ref5) {
844
865
  var _currentNodeDetail$no;
845
- var update = _ref4.update,
846
- formData = _ref4.formData,
847
- currentNodeDetail = _ref4.currentNodeDetail,
848
- plat = _ref4.plat,
849
- operateParams = _ref4.operateParams,
850
- shopUniqueKey = _ref4.shopUniqueKey;
866
+ var update = _ref5.update,
867
+ formData = _ref5.formData,
868
+ currentNodeDetail = _ref5.currentNodeDetail,
869
+ plat = _ref5.plat,
870
+ operateParams = _ref5.operateParams,
871
+ shopUniqueKey = _ref5.shopUniqueKey;
851
872
  var newTemplateDetail = cloneDeep(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrderTemplateInfo) || {};
852
873
  var params = {
853
874
  isAdd: !update,
@@ -1093,14 +1114,14 @@ export var reversalFormValues = function reversalFormValues() {
1093
1114
  };
1094
1115
 
1095
1116
  //删除缓存数据
1096
- export var deleteCacheOrder = function deleteCacheOrder(_ref5) {
1097
- var _ref5$templateList = _ref5.templateList,
1098
- templateList = _ref5$templateList === void 0 ? [] : _ref5$templateList,
1099
- values = _ref5.values,
1100
- nodeId = _ref5.nodeId,
1101
- flowTemplateId = _ref5.flowTemplateId,
1102
- plat = _ref5.plat,
1103
- unDeleteOrderInfo = _ref5.unDeleteOrderInfo;
1117
+ export var deleteCacheOrder = function deleteCacheOrder(_ref6) {
1118
+ var _ref6$templateList = _ref6.templateList,
1119
+ templateList = _ref6$templateList === void 0 ? [] : _ref6$templateList,
1120
+ values = _ref6.values,
1121
+ nodeId = _ref6.nodeId,
1122
+ flowTemplateId = _ref6.flowTemplateId,
1123
+ plat = _ref6.plat,
1124
+ unDeleteOrderInfo = _ref6.unDeleteOrderInfo;
1104
1125
  if (plat !== null && plat !== void 0 && plat.subOrderNo) {
1105
1126
  var getCacheInfo = JSON.parse(sessionStorage.getItem('cacheOmsOrderInfo') || '{}');
1106
1127
  // !unDeleteOrderInfo && delete getCacheInfo[plat?.subOrderNo];
@@ -1121,11 +1142,11 @@ export var deleteCacheOrder = function deleteCacheOrder(_ref5) {
1121
1142
  }
1122
1143
  };
1123
1144
  //bs商品信息返填
1124
- export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref6) {
1145
+ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref7) {
1125
1146
  var _templateList$compone;
1126
- var templateList = _ref6.templateList,
1127
- value = _ref6.value,
1128
- form = _ref6.form;
1147
+ var templateList = _ref7.templateList,
1148
+ value = _ref7.value,
1149
+ form = _ref7.form;
1129
1150
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1130
1151
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1131
1152
  var bsGoodsComponent = (_templateList$compone = templateList.componentDtoList) === null || _templateList$compone === void 0 ? void 0 : _templateList$compone.filter(function (item) {
@@ -1145,11 +1166,11 @@ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref6) {
1145
1166
  form.setFieldsValue(values);
1146
1167
  };
1147
1168
  // bs e3商品信息返填
1148
- export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref7) {
1169
+ export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref8) {
1149
1170
  var _templateList$compone2, _templateList$compone3;
1150
- var templateList = _ref7.templateList,
1151
- value = _ref7.value,
1152
- form = _ref7.form;
1171
+ var templateList = _ref8.templateList,
1172
+ value = _ref8.value,
1173
+ form = _ref8.form;
1153
1174
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1154
1175
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1155
1176
  var bsE3GoodsComponent = (_templateList$compone2 = templateList.componentDtoList) === null || _templateList$compone2 === void 0 ? void 0 : _templateList$compone2.filter(function (item) {
@@ -1173,11 +1194,11 @@ export var bsE3SystemOrderBackValues = function bsE3SystemOrderBackValues(_ref7)
1173
1194
  };
1174
1195
 
1175
1196
  //wln商品信息返填
1176
- export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref8) {
1197
+ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref9) {
1177
1198
  var _templateList$compone4;
1178
- var templateList = _ref8.templateList,
1179
- value = _ref8.value,
1180
- form = _ref8.form;
1199
+ var templateList = _ref9.templateList,
1200
+ value = _ref9.value,
1201
+ form = _ref9.form;
1181
1202
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1182
1203
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1183
1204
  var bsGoodsComponent = (_templateList$compone4 = templateList.componentDtoList) === null || _templateList$compone4 === void 0 ? void 0 : _templateList$compone4.filter(function (item) {
@@ -1197,11 +1218,11 @@ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref8) {
1197
1218
  };
1198
1219
 
1199
1220
  // km 商品信息返填
1200
- export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref9) {
1221
+ export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref10) {
1201
1222
  var _templateList$compone5, _templateList$compone6;
1202
- var templateList = _ref9.templateList,
1203
- value = _ref9.value,
1204
- form = _ref9.form;
1223
+ var templateList = _ref10.templateList,
1224
+ value = _ref10.value,
1225
+ form = _ref10.form;
1205
1226
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1206
1227
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1207
1228
  var kmGoodsComponent = (_templateList$compone5 = templateList.componentDtoList) === null || _templateList$compone5 === void 0 ? void 0 : _templateList$compone5.filter(function (item) {
@@ -1225,11 +1246,11 @@ export var kmSystemOrderBackValues = function kmSystemOrderBackValues(_ref9) {
1225
1246
  };
1226
1247
 
1227
1248
  // wdt商品信息返填
1228
- export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref10) {
1249
+ export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref11) {
1229
1250
  var _templateList$compone7, _templateList$compone8;
1230
- var templateList = _ref10.templateList,
1231
- value = _ref10.value,
1232
- form = _ref10.form;
1251
+ var templateList = _ref11.templateList,
1252
+ value = _ref11.value,
1253
+ form = _ref11.form;
1233
1254
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1234
1255
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1235
1256
  var wdtGoodsComponent = (_templateList$compone7 = templateList.componentDtoList) === null || _templateList$compone7 === void 0 ? void 0 : _templateList$compone7.filter(function (item) {
@@ -1258,11 +1279,11 @@ export var wdtSystemOrderBackValues = function wdtSystemOrderBackValues(_ref10)
1258
1279
  };
1259
1280
 
1260
1281
  //gy商品信息返填
1261
- export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref11) {
1282
+ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref12) {
1262
1283
  var _templateList$compone9, _templateList$compone10;
1263
- var templateList = _ref11.templateList,
1264
- value = _ref11.value,
1265
- form = _ref11.form;
1284
+ var templateList = _ref12.templateList,
1285
+ value = _ref12.value,
1286
+ form = _ref12.form;
1266
1287
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1267
1288
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1268
1289
  var gyGoodsComponent = (_templateList$compone9 = templateList.componentDtoList) === null || _templateList$compone9 === void 0 ? void 0 : _templateList$compone9.filter(function (item) {
@@ -1286,11 +1307,11 @@ export var gySystemOrderBackValues = function gySystemOrderBackValues(_ref11) {
1286
1307
  };
1287
1308
 
1288
1309
  //聚水潭商品信息返填
1289
- export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref12) {
1310
+ export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref13) {
1290
1311
  var _templateList$compone11, _templateList$compone12;
1291
- var templateList = _ref12.templateList,
1292
- value = _ref12.value,
1293
- form = _ref12.form;
1312
+ var templateList = _ref13.templateList,
1313
+ value = _ref13.value,
1314
+ form = _ref13.form;
1294
1315
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1295
1316
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1296
1317
  var jstGoodsComponent = (_templateList$compone11 = templateList.componentDtoList) === null || _templateList$compone11 === void 0 ? void 0 : _templateList$compone11.filter(function (item) {
@@ -1313,11 +1334,11 @@ export var jstSystemOrderBackValues = function jstSystemOrderBackValues(_ref12)
1313
1334
  form.setFieldsValue(values);
1314
1335
  };
1315
1336
  // 巨益商品信息反填
1316
- export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref13) {
1337
+ export var jySystemOrderBackValues = function jySystemOrderBackValues(_ref14) {
1317
1338
  var _templateList$compone13, _templateList$compone14;
1318
- var templateList = _ref13.templateList,
1319
- value = _ref13.value,
1320
- form = _ref13.form;
1339
+ var templateList = _ref14.templateList,
1340
+ value = _ref14.value,
1341
+ form = _ref14.form;
1321
1342
  //如果没有选择的值不返填,会有两种情况 1.有值为空 2.没有值 为空的时候需要返填
1322
1343
  if (!(value !== null && value !== void 0 && value.selectedRows)) return;
1323
1344
  var jyGoodsComponent = (_templateList$compone13 = templateList.componentDtoList) === null || _templateList$compone13 === void 0 ? void 0 : _templateList$compone13.filter(function (item) {
@@ -1499,12 +1520,12 @@ export var transformWorkOrderDetail = function transformWorkOrderDetail(detail)
1499
1520
  };
1500
1521
 
1501
1522
  // 返填物流轨迹信息
1502
- export var setLogisticsInfo = function setLogisticsInfo(_ref14) {
1503
- var logisticsMappingConfig = _ref14.logisticsMappingConfig,
1504
- uniqueKey = _ref14.uniqueKey,
1505
- workOrderComponentType = _ref14.workOrderComponentType,
1506
- value = _ref14.value,
1507
- form = _ref14.form;
1523
+ export var setLogisticsInfo = function setLogisticsInfo(_ref15) {
1524
+ var logisticsMappingConfig = _ref15.logisticsMappingConfig,
1525
+ uniqueKey = _ref15.uniqueKey,
1526
+ workOrderComponentType = _ref15.workOrderComponentType,
1527
+ value = _ref15.value,
1528
+ form = _ref15.form;
1508
1529
  var values = logisticsMappingConfig.reduce(function (prv, next) {
1509
1530
  var logisticsValues = form.getFieldValue(next.uniqueKey);
1510
1531
  var componentConfig = next.componentConfig;
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.13-beta.31",
3
+ "version": "2.2.13-beta.32",
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.13-beta.31",
36
- "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.31",
37
- "@kmkf-fe-packages/services-components": "2.2.13-beta.31",
35
+ "@kmkf-fe-packages/basic-components": "2.2.13-beta.32",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.32",
37
+ "@kmkf-fe-packages/services-components": "2.2.13-beta.32",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -74,7 +74,7 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "95ce877aed30ef604316f40df926437dfc42d7a9",
77
+ "gitHead": "d0ec0985f307bffc3735962998d286b3dfec3054",
78
78
  "gitHooks": {
79
79
  "pre-commit": "lint-staged"
80
80
  }