@kmkf-fe-packages/kmkf-work-order-service-component 2.0.72 → 2.0.73

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 (53) hide show
  1. package/dist/esm/FlowTemplateDetailV2/components/FormRender/constants.d.ts +9 -0
  2. package/dist/esm/FlowTemplateDetailV2/components/FormRender/constants.js +27 -0
  3. package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +52 -69
  4. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +14 -0
  5. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +137 -0
  6. package/dist/esm/FlowTemplateDetailV2/index.js +3 -2
  7. package/dist/esm/FlowTemplateDetailV2/store/reducers.d.ts +2 -0
  8. package/dist/esm/FlowTemplateDetailV2/store/reducers.js +47 -41
  9. package/dist/esm/FlowTemplateDetailV2/store/selector.d.ts +1 -0
  10. package/dist/esm/FlowTemplateDetailV2/store/selector.js +3 -0
  11. package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  12. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  13. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  14. package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +899 -0
  15. package/dist/esm/common/utils/dist/tools.js +1326 -0
  16. package/dist/esm/common/utils/dist/transformWorkOrderData.js +965 -0
  17. package/dist/esm/common/utils/orderBackKm.d.ts +12 -0
  18. package/dist/esm/common/utils/orderBackKm.js +31 -0
  19. package/dist/esm/common/utils/submitDataTransOldFormat.js +166 -156
  20. package/dist/esm/common/utils/tools.js +49 -35
  21. package/dist/esm/common/utils/transformWorkOrderData.js +28 -22
  22. package/dist/esm/model/customizeWorkOrder/dist/api.js +48 -0
  23. package/dist/esm/model/customizeWorkOrder/dist/index.js +370 -0
  24. package/dist/esm/model/customizeWorkOrder/dist/selector.js +63 -0
  25. package/dist/esm/model/customizeWorkOrder/dist/types.js +3 -0
  26. package/dist/esm/model/dist/global.js +44 -0
  27. package/dist/esm/model/dist/hooks.js +15 -0
  28. package/dist/esm/model/dist/login.js +245 -0
  29. package/dist/esm/model/dist/store.js +30 -0
  30. package/dist/esm/model/dist/userData.js +41 -0
  31. package/dist/esm/model/dist/workOrder.js +329 -0
  32. package/dist/esm/model/flowTemplateDetail/dist/api.js +192 -0
  33. package/dist/esm/model/flowTemplateDetail/dist/types.js +48 -0
  34. package/dist/esm/model/flowTemplateDetail/types.d.ts +1 -0
  35. package/dist/esm/model/logicFlow/dist/api.js +14 -0
  36. package/dist/esm/model/logicFlow/dist/index.js +235 -0
  37. package/dist/esm/model/logicFlow/dist/selector.js +18 -0
  38. package/dist/esm/model/logicFlow/dist/types.js +3 -0
  39. package/dist/esm/model/logicFlow/selector.d.ts +0 -3
  40. package/dist/esm/model/paymentWorkOrder/dist/index.js +77 -0
  41. package/dist/esm/model/paymentWorkOrder/dist/selector.js +36 -0
  42. package/dist/esm/model/paymentWorkOrder/dist/types.js +3 -0
  43. package/dist/esm/model/paymentWorkOrder/selector.d.ts +0 -9
  44. package/dist/esm/model/servers/dist/api.js +545 -0
  45. package/dist/esm/model/servers/dist/request.js +63 -0
  46. package/dist/esm/model/singleShopWorkOrder/dist/index.js +216 -0
  47. package/dist/esm/model/singleShopWorkOrder/dist/selector.js +24 -0
  48. package/dist/esm/model/singleShopWorkOrder/dist/types.js +3 -0
  49. package/dist/esm/model/singleShopWorkOrder/selector.d.ts +0 -5
  50. package/dist/esm/model/types/dist/login.js +3 -0
  51. package/dist/esm/model/types/dist/singleWorkOrder.js +3 -0
  52. package/dist/esm/model/types/dist/workOrder.js +3 -0
  53. package/package.json +5 -5
@@ -28,6 +28,7 @@ import transformWorkOrderData from "./transformWorkOrderData";
28
28
  import submitDataTransOldFormat from "./submitDataTransOldFormat";
29
29
  import xzSDK from "./xzSDK";
30
30
  import { pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
31
+ import { servers } from '@kmkf-fe-packages/kmkf-utils';
31
32
  import { orderBackMap } from "./tools_constants";
32
33
 
33
34
  // 淘宝商品组件信息处理
@@ -136,7 +137,7 @@ var getBasicsOrderInfo = function getBasicsOrderInfo(orderInfo, xiaozhiOrder) {
136
137
  //订单返填
137
138
  export var orderBack = /*#__PURE__*/function () {
138
139
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
139
- var order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, shopId, _res$data, res, shopInfo, _res$data3, _res$data4, _res$data5, JOIN_SHOP, hasFlagMap, _ref3, shopSourceStr, _ref3$thirdUserNick, thirdUserNick, thirdShopMainType, _data$value, _data$value3, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _kmOrders$orderDetail, promise, _yield$Promise$allSet, _yield$Promise$allSet2, data, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, gyInfo, jstInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
140
+ var order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, shopId, _res$data, res, shopInfo, _res$data3, _res$data4, _res$data5, JOIN_SHOP, hasFlagMap, _ref3, shopSourceStr, _ref3$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _data$value, _data$value3, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _kmOrders$orderDetail, promise, kmVideoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, kmVideoOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, gyInfo, jstInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
140
141
  return _regeneratorRuntime().wrap(function _callee$(_context) {
141
142
  while (1) switch (_context.prev = _context.next) {
142
143
  case 0:
@@ -245,13 +246,23 @@ export var orderBack = /*#__PURE__*/function () {
245
246
  promise.push(Promise.resolve([]));
246
247
  }
247
248
  });
249
+ kmVideoComponent = templateDetail.componentDtoList.find(function (item) {
250
+ return item.workOrderComponentType === 'KM_VIDEO';
251
+ });
252
+ if (kmVideoComponent && ((_kmVideoComponent$com = kmVideoComponent.componentConfig) === null || _kmVideoComponent$com === void 0 ? void 0 : _kmVideoComponent$com.orderBackRule) === 'platformOrderNumber') {
253
+ promise.push(servers.KM.getVideoDataAsync({
254
+ platformOrderNumber: order_no
255
+ }));
256
+ } else {
257
+ promise.push(Promise.resolve([]));
258
+ }
248
259
 
249
260
  //需按照orderBackMap中的顺序结构
250
- _context.next = 32;
261
+ _context.next = 34;
251
262
  return Promise.allSettled(promise);
252
- case 32:
263
+ case 34:
253
264
  _yield$Promise$allSet = _context.sent;
254
- _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 9);
265
+ _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 10);
255
266
  data = _yield$Promise$allSet2[0];
256
267
  xiaozhiOrder = _yield$Promise$allSet2[1];
257
268
  jstOrder = _yield$Promise$allSet2[2];
@@ -261,6 +272,7 @@ export var orderBack = /*#__PURE__*/function () {
261
272
  bsE3Order = _yield$Promise$allSet2[6];
262
273
  kmOrder = _yield$Promise$allSet2[7];
263
274
  gyOrder = _yield$Promise$allSet2[8];
275
+ kmVideoOrder = _yield$Promise$allSet2[9];
264
276
  // TODO: 针对订单支付方式是微信还是支付宝,后端接口返回一个message用来提示使用
265
277
  console.log('--订单反填数据--', {
266
278
  data: data,
@@ -271,7 +283,8 @@ export var orderBack = /*#__PURE__*/function () {
271
283
  wdtOrder: wdtOrder,
272
284
  bsE3Order: bsE3Order,
273
285
  kmOrder: kmOrder,
274
- gyOrder: gyOrder
286
+ gyOrder: gyOrder,
287
+ kmVideoOrder: kmVideoOrder
275
288
  });
276
289
  pushGyLog('gyOrder', gyOrder);
277
290
  if (data !== null && data !== void 0 && (_data$value = data.value) !== null && _data$value !== void 0 && _data$value.message) {
@@ -322,6 +335,7 @@ export var orderBack = /*#__PURE__*/function () {
322
335
  order_no: order_no,
323
336
  componentList: templateDetail.componentDtoList
324
337
  }), form);
338
+ kmInfo.kmVideo = kmVideoOrder === null || kmVideoOrder === void 0 ? void 0 : kmVideoOrder.value;
325
339
  gyInfo = gyOrderTransform(_objectSpread(_objectSpread({}, gyOrders), {}, {
326
340
  componentList: templateDetail.componentDtoList,
327
341
  orderNo: order_no
@@ -451,7 +465,7 @@ export var orderBack = /*#__PURE__*/function () {
451
465
  hasSelectItem = HasErpItemSelectHandle(templateDetail);
452
466
  erpPromiseList = [];
453
467
  if (!(shopSourceStr === 'TAOBAO' && hasSelectItem)) {
454
- _context.next = 97;
468
+ _context.next = 101;
455
469
  break;
456
470
  }
457
471
  list = detail['itemList'];
@@ -469,10 +483,10 @@ export var orderBack = /*#__PURE__*/function () {
469
483
  resolve({});
470
484
  });
471
485
  });
472
- _context.prev = 87;
473
- _context.next = 90;
486
+ _context.prev = 91;
487
+ _context.next = 94;
474
488
  return Promise.all(promises);
475
- case 90:
489
+ case 94:
476
490
  erpPromiseList = _context.sent;
477
491
  detail['itemList'] = (_detail$itemList = detail['itemList']) === null || _detail$itemList === void 0 ? void 0 : _detail$itemList.map(function (item, index) {
478
492
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -482,25 +496,25 @@ export var orderBack = /*#__PURE__*/function () {
482
496
  })
483
497
  });
484
498
  });
485
- _context.next = 97;
499
+ _context.next = 101;
486
500
  break;
487
- case 94:
488
- _context.prev = 94;
489
- _context.t1 = _context["catch"](87);
501
+ case 98:
502
+ _context.prev = 98;
503
+ _context.t1 = _context["catch"](91);
490
504
  console.error('调用erp获取宝贝编码错误', _context.t1);
491
- case 97:
505
+ case 101:
492
506
  // 判断是否存在签收时间组件
493
507
  hasSigningDatetime = HasTradeSigningDatetime(templateDetail); // 如存在签收时间组件且订单也有返回相应物流单号跟物流公司编码,则调用接口获取签收时间
494
508
  if (!hasSigningDatetime) {
495
- _context.next = 113;
509
+ _context.next = 117;
496
510
  break;
497
511
  }
498
512
  if (!(orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCompany && orderInfo !== null && orderInfo !== void 0 && orderInfo.expressLogisticsCode)) {
499
- _context.next = 112;
513
+ _context.next = 116;
500
514
  break;
501
515
  }
502
- _context.prev = 100;
503
- _context.next = 103;
516
+ _context.prev = 104;
517
+ _context.next = 107;
504
518
  return request({
505
519
  url: '/qy/logistics/logisticsSignTime',
506
520
  method: 'post',
@@ -510,21 +524,21 @@ export var orderBack = /*#__PURE__*/function () {
510
524
  mailNo: orderInfo.expressLogisticsCode
511
525
  }
512
526
  });
513
- case 103:
527
+ case 107:
514
528
  signDatetime = _context.sent;
515
529
  detail['tradeSigningDateTime'] = signDatetime === null || signDatetime === void 0 ? void 0 : (_signDatetime$data = signDatetime.data) === null || _signDatetime$data === void 0 ? void 0 : _signDatetime$data.signTime;
516
- _context.next = 110;
530
+ _context.next = 114;
517
531
  break;
518
- case 107:
519
- _context.prev = 107;
520
- _context.t2 = _context["catch"](100);
532
+ case 111:
533
+ _context.prev = 111;
534
+ _context.t2 = _context["catch"](104);
521
535
  console.error('调用签收时间错误', _context.t2);
522
- case 110:
523
- _context.next = 113;
536
+ case 114:
537
+ _context.next = 117;
524
538
  break;
525
- case 112:
539
+ case 116:
526
540
  detail['tradeSigningDateTime'] = '';
527
- case 113:
541
+ case 117:
528
542
  console.log('detail', detail);
529
543
  values = orderBackFormValues({
530
544
  detail: detail,
@@ -569,21 +583,21 @@ export var orderBack = /*#__PURE__*/function () {
569
583
  shopId: shopId
570
584
  }));
571
585
  callback === null || callback === void 0 ? void 0 : callback(detail, templateDetail);
572
- _context.next = 125;
586
+ _context.next = 129;
573
587
  break;
574
- case 122:
575
- _context.prev = 122;
588
+ case 126:
589
+ _context.prev = 126;
576
590
  _context.t3 = _context["catch"](25);
577
591
  console.error(_context.t3);
578
- case 125:
579
- _context.prev = 125;
592
+ case 129:
593
+ _context.prev = 129;
580
594
  setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
581
- return _context.finish(125);
582
- case 128:
595
+ return _context.finish(129);
596
+ case 132:
583
597
  case "end":
584
598
  return _context.stop();
585
599
  }
586
- }, _callee, null, [[5, 12, 15, 18], [25, 122, 125, 128], [87, 94], [100, 107]]);
600
+ }, _callee, null, [[5, 12, 15, 18], [25, 126, 129, 132], [91, 98], [104, 111]]);
587
601
  }));
588
602
  return function orderBack(_x) {
589
603
  return _ref2.apply(this, arguments);
@@ -72,6 +72,11 @@ var processFile = function processFile(getValue) {
72
72
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_file")), []));
73
73
  };
74
74
  };
75
+ var processKmVideo = function processKmVideo(getValue) {
76
+ return function (nex, config) {
77
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmVideo")), []));
78
+ };
79
+ };
75
80
  var processPosting = function processPosting(getValue) {
76
81
  return function (nex, config) {
77
82
  var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingCity")))];
@@ -98,11 +103,11 @@ var processBuyerNickInput = function processBuyerNickInput(getValue) {
98
103
  };
99
104
  var processAliPayInput = function processAliPayInput(getValue) {
100
105
  return function (nex, config) {
101
- var _ref11;
102
- return _ref11 = {}, _defineProperty(_ref11, nex.uniqueKey, {
106
+ var _ref12;
107
+ return _ref12 = {}, _defineProperty(_ref12, nex.uniqueKey, {
103
108
  name: getValue("".concat(nex.uniqueKey, "_alipayName")),
104
109
  user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
105
- }), _defineProperty(_ref11, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref11, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref11;
110
+ }), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref12;
106
111
  };
107
112
  };
108
113
  var processCheckbox = function processCheckbox(getValue) {
@@ -205,20 +210,20 @@ var processSubForm = function processSubForm(getValue) {
205
210
  };
206
211
  var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
207
212
  return function (nex, config) {
208
- var _ref21;
209
- return _ref21 = {}, _defineProperty(_ref21, nex.uniqueKey, {
213
+ var _ref22;
214
+ return _ref22 = {}, _defineProperty(_ref22, nex.uniqueKey, {
210
215
  company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
211
216
  order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
212
- }), _defineProperty(_ref21, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref21, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref21;
217
+ }), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref22;
213
218
  };
214
219
  };
215
220
  var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
216
221
  return function (nex, config) {
217
- var _ref22;
218
- return _ref22 = {}, _defineProperty(_ref22, nex.uniqueKey, {
222
+ var _ref23;
223
+ return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
219
224
  company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
220
225
  order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
221
- }), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref22, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref22;
226
+ }), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref23;
222
227
  };
223
228
  };
224
229
  var processRemarkInput = function processRemarkInput(getValue) {
@@ -233,25 +238,25 @@ var processRemarkInput = function processRemarkInput(getValue) {
233
238
  };
234
239
  var processStatus = function processStatus(getValue) {
235
240
  return function (nex, config) {
236
- var _ref24;
241
+ var _ref25;
237
242
  var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
238
- return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
243
+ return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
239
244
  status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
240
245
  customerService: jsonParseSecurity(customerService, customerService)
241
- }), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref24;
246
+ }), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref25;
242
247
  };
243
248
  };
244
249
  var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
245
250
  return function (nex, config) {
246
- var _ref25;
251
+ var _ref26;
247
252
  var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
248
253
  var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
249
254
  var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
250
- return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
255
+ return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
251
256
  ordinaryMoney: ordinaryMoney,
252
257
  ordinarySerial: ordinarySerial,
253
258
  ordinaryTaitou: ordinaryTaitou
254
- }), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref25;
259
+ }), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref26;
255
260
  };
256
261
  };
257
262
  var processLogisticsInterception = function processLogisticsInterception(getValue) {
@@ -308,12 +313,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
308
313
  };
309
314
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
310
315
  return function (nex, config) {
311
- var _ref32;
316
+ var _ref33;
312
317
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
313
318
  var map = subFields.reduce(function (cur, nxt) {
314
319
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
315
320
  }, {});
316
- return _ref32 = {}, _defineProperty(_ref32, nex.uniqueKey, map), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref32, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref32;
321
+ return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
317
322
  };
318
323
  };
319
324
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -989,14 +994,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
989
994
  };
990
995
  var processLabel = function processLabel(getValue) {
991
996
  return function (nex, config) {
992
- var _ref68;
993
- return _ref68 = {}, _defineProperty(_ref68, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref68, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref68;
997
+ var _ref69;
998
+ return _ref69 = {}, _defineProperty(_ref69, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref69, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref69;
994
999
  };
995
1000
  };
996
1001
  var processMemberLevel = function processMemberLevel(getValue) {
997
1002
  return function (nex, config) {
998
- var _ref69;
999
- return _ref69 = {}, _defineProperty(_ref69, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref69, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref69;
1003
+ var _ref70;
1004
+ return _ref70 = {}, _defineProperty(_ref70, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref70, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref70;
1000
1005
  };
1001
1006
  };
1002
1007
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -1164,7 +1169,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1164
1169
  PAYMENT_VOUCHER_CODE: processSingleField,
1165
1170
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
1166
1171
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
1167
- WDT_SHOP: processSingleField
1172
+ WDT_SHOP: processSingleField,
1173
+ KM_VIDEO: processKmVideo
1168
1174
  };
1169
1175
  return templateColumns.reduce(function (cur, nex) {
1170
1176
  var _componentProcessors;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var __spreadArrays = this && this.__spreadArrays || function () {
4
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
6
+ return r;
7
+ };
8
+ exports.__esModule = true;
9
+ exports.fetchShowPayment = exports.flatWorkOrder = exports.getPlatList = exports.queryAllComponentList = void 0;
10
+ var request_1 = require("../servers/request");
11
+ // 所有组件信息
12
+ exports.queryAllComponentList = function (data) {
13
+ return request_1["default"]({
14
+ url: '/qy/column/header/queryConfig',
15
+ method: 'get',
16
+ data: data
17
+ });
18
+ };
19
+ // 平台信息
20
+ exports.getPlatList = function (data) {
21
+ return request_1["default"]({
22
+ url: '/qy/platform/listPlatform',
23
+ method: 'get',
24
+ data: data
25
+ }).then(function (res) {
26
+ var platType = res.data || {};
27
+ platType.alreadyJoinedList = platType.alreadyJoinedList || [];
28
+ platType.notJoinList = platType.notJoinList || [];
29
+ var list = __spreadArrays(platType.alreadyJoinedList, platType.notJoinList);
30
+ return list;
31
+ });
32
+ };
33
+ //打标
34
+ exports.flatWorkOrder = function (data) {
35
+ return request_1["default"]({
36
+ url: '/qy/flow/operate/flagWorkOrder',
37
+ method: 'post',
38
+ data: data
39
+ });
40
+ };
41
+ // 是否展示打款工单入口
42
+ exports.fetchShowPayment = function (data) {
43
+ return request_1["default"]({
44
+ url: '/qy/userConfig/getConfig',
45
+ method: 'post',
46
+ data: data
47
+ });
48
+ };