@kmkf-fe-packages/kmkf-work-order-service-component 2.2.14 → 2.2.16

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.
@@ -29,7 +29,7 @@ import { get, some, set, every, cloneDeep, isEmpty, intersection, throttle, grou
29
29
  import 'moment/locale/zh-cn';
30
30
  import { calcWorkOrderList, orderBack, getReplaceWarnValues, COMPONENT_MAP_NAME, EXCLUDE_REPLACE_TOP_COMPONENT,
31
31
  // 重复检验不需要展示在顶部的
32
- INNER_REPLACE_COMPONENT, reversalFormValues, bsSystemOrderBackValues, kmSystemOrderBackValues, bsE3SystemOrderBackValues, wlnSystemOrderBackValues, gySystemOrderBackValues, jstSystemOrderBackValues, getMappingConfigByTemplateDetail, wdtSystemOrderBackValues, setLogisticsInfo, getMappingTargetValue } from "../../../common/utils/tools";
32
+ INNER_REPLACE_COMPONENT, reversalFormValues, bsSystemOrderBackValues, kmSystemOrderBackValues, bsE3SystemOrderBackValues, wlnSystemOrderBackValues, gySystemOrderBackValues, jstSystemOrderBackValues, jySystemOrderBackValues, getMappingConfigByTemplateDetail, wdtSystemOrderBackValues, setLogisticsInfo, getMappingTargetValue } from "../../../common/utils/tools";
33
33
  import { replaceCheck, orderDetail, queryLabelByTradeId, queryMemberLevel } from "../../../model/servers/api";
34
34
  import { factory } from '@kmkf-fe-packages/services-components';
35
35
  import { getExpression, formatDisplayConfig, isNull, LabelData, setSessionStorage } from '@kmkf-fe-packages/kmkf-utils';
@@ -924,6 +924,13 @@ var FormRender = function FormRender(props, ref) {
924
924
  form: form
925
925
  });
926
926
  }
927
+ if (workOrderComponentType === 'JY_SYSTEM_ORDER') {
928
+ jySystemOrderBackValues({
929
+ templateList: templateDetail,
930
+ value: value,
931
+ form: form
932
+ });
933
+ }
927
934
  if (activeLogisticsComponents && ['INPUT', 'EXPRESS_LOGISTICS_SELECT', 'BS_LOGISTICS'].includes(workOrderComponentType)) {
928
935
  setLogisticsInfo({
929
936
  logisticsMappingConfig: activeLogisticsComponents,
@@ -1120,7 +1127,7 @@ var FormRender = function FormRender(props, ref) {
1120
1127
  }
1121
1128
  //如果有bs组件 设置成初始值
1122
1129
  var hasBs = get(templateDetail, 'componentDtoList', []).some(function (item) {
1123
- return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_LOGISTICS', 'KM_SEND_GOOD', 'GY_SEND_GOOD', 'GY_LOGISTICS', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS'].includes(item.workOrderComponentType);
1130
+ return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_LOGISTICS', 'KM_SEND_GOOD', 'GY_SEND_GOOD', 'GY_LOGISTICS', 'JY_SEND_GOOD', 'JY_LOGISTICS', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS'].includes(item.workOrderComponentType);
1124
1131
  });
1125
1132
  if (hasBs) {
1126
1133
  var bsValue = get(templateDetail, 'componentDtoList', []).reduce(function (prv, next) {
@@ -1131,6 +1138,7 @@ var FormRender = function FormRender(props, ref) {
1131
1138
  case 'KM_LOGISTICS':
1132
1139
  case 'BS_E3_LOGISTICS':
1133
1140
  case 'GY_LOGISTICS':
1141
+ case 'JY_LOGISTICS':
1134
1142
  case 'SKX_LOGISTICS':
1135
1143
  prv[next.uniqueKey] = [{
1136
1144
  logisticsCompany: null,
@@ -1149,6 +1157,7 @@ var FormRender = function FormRender(props, ref) {
1149
1157
  case 'WDT_SEND_GOOD':
1150
1158
  case 'KM_SEND_GOOD':
1151
1159
  case 'GY_SEND_GOOD':
1160
+ case 'JY_SEND_GOOD':
1152
1161
  prv[next.uniqueKey] = [{
1153
1162
  sendName: '',
1154
1163
  sendId: ''
@@ -56,12 +56,13 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
56
56
  flowWorkOrderId: info.flowWorkOrderId,
57
57
  flowNodeId: info.flowNodeId
58
58
  }).then(function (res) {
59
- var _res$data, _res$data2;
59
+ var _res$data, _res$data2, _res$data3;
60
60
  if (res.data) {
61
61
  setVisible(true);
62
62
  }
63
63
  setUrl((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.link);
64
- setShortUrl((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shortShareLink);
64
+ var shortLink = (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.shortShareLink) : '';
65
+ setShortUrl(shortLink);
65
66
  });
66
67
  return;
67
68
  }
@@ -70,30 +71,33 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
70
71
  companyKey: info.companyKey,
71
72
  flowTemplateKey: info.flowTemplateKey
72
73
  }).then(function (res) {
73
- var _res$data3, _res$data4;
74
+ var _res$data4, _res$data5, _res$data6;
74
75
  if (res.data) {
75
76
  setVisible(true);
76
77
  }
77
- setUrl((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.link);
78
- setShortUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.shortShareLink);
78
+ setUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.link);
79
+ var shortLink = (_res$data5 = res.data) !== null && _res$data5 !== void 0 && _res$data5.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.shortShareLink) : '';
80
+ setShortUrl(shortLink);
79
81
  });
80
82
  return;
81
83
  }
82
84
  setVisible(true);
85
+ var regex = /^(https?:\/\/)/;
83
86
  if (info.url) {
84
- var regex = /^(https?:\/\/)/;
85
87
  var formatUrl = info.url.match(regex) ? info.url : "".concat(window.location.protocol, "//").concat(info.url);
86
88
  setUrl(formatUrl);
87
89
  }
88
90
  if ((info === null || info === void 0 ? void 0 : info.showType) !== 'shortUrl') return;
89
91
  if (info.shortUrl) {
90
- setShortUrl(info.shortUrl);
92
+ var formaShortUrl = info.shortUrl.match(regex) ? info.shortUrl : "".concat(window.location.protocol, "//").concat(info.shortUrl);
93
+ setShortUrl(formaShortUrl);
91
94
  } else if (info.mongoId && info.url) {
92
95
  shortLink({
93
96
  mongoId: info.mongoId,
94
97
  longUrl: info.url
95
98
  }).then(function (res) {
96
- setShortUrl(res.data);
99
+ var shortUrl = res.data ? "".concat(window.location.protocol, "//").concat(res.data) : '';
100
+ setShortUrl(shortUrl);
97
101
  });
98
102
  }
99
103
  };
@@ -149,7 +153,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
149
153
  }, "\u590D\u5236")), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
150
154
  type: "primary",
151
155
  onClick: function onClick() {
152
- window.open("https://".concat(shortUrl));
156
+ window.open(shortUrl);
153
157
  }
154
158
  }, "\u6253\u5F00"))), /*#__PURE__*/React.createElement(Text, null, shortUrl))), /*#__PURE__*/React.createElement("li", {
155
159
  className: styles.shareLi
@@ -7,4 +7,4 @@
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
9
9
  // 切换当前店铺时,以下组件字段需要清空
10
- export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_SHOP', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS', 'SKX_OUTBOUND_NOTICE_NO', 'SKX_RETURN_BILL_NO', 'SKX_REFUND_BILL_NO', 'SKX_SHOP_NAME', 'SKX_WAREHOUSE', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS', 'SKX_GOODS', 'SKX_RETURN_GOODS', 'SKX_ORDER_TYPE', 'SKX_RETURN_ORDER_STATUS', 'SKX_ORDER_STATUS', 'SKX_CREATE_TIME'];
10
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_SHOP', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS', 'JY_SYSTEM_ORDER', 'JY_SEND_GOOD', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JY_RETURN_GOODS', 'JY_LOGISTICS', 'SKX_OUTBOUND_NOTICE_NO', 'SKX_RETURN_BILL_NO', 'SKX_REFUND_BILL_NO', 'SKX_SHOP_NAME', 'SKX_WAREHOUSE', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS', 'SKX_GOODS', 'SKX_RETURN_GOODS', 'SKX_ORDER_TYPE', 'SKX_RETURN_ORDER_STATUS', 'SKX_ORDER_STATUS', 'SKX_CREATE_TIME'];
@@ -51,7 +51,6 @@ import RenderDetail from "./components/RenderDetail";
51
51
  import { orderDetail } from "../model/servers/api";
52
52
  import cache from "../common/cache";
53
53
  import "./index.less";
54
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
55
54
  import { PlatformAvatar } from '@kmkf-fe-packages/services-components';
56
55
  import { Provide, Context } from "./context";
57
56
  import { WORK_ORDER_STATUS_AI_BUILD } from "../common/constant";
@@ -1147,7 +1146,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1147
1146
  }
1148
1147
  };
1149
1148
  useEffect(function () {
1150
- if (autoSubmit && !isNull(currentNodeDetail)) {
1149
+ if (autoSubmit && !isEmpty(currentNodeDetail)) {
1151
1150
  var _currentNodeDetail$wo25, _currentNodeDetail$wo26;
1152
1151
  // SKX首节点满足下列条件、此时批量提交会等订单数据反填再提交, 其余企业批量提交还是原先逻辑,不涉及订单数据反填
1153
1152
  if (currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo25 !== void 0 && _currentNodeDetail$wo25.notAutoFillWithFirstSubmit && autoSubmitFlag) {
@@ -73,7 +73,7 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
73
73
  case 4:
74
74
  res = _context.sent;
75
75
  if (!res.success) {
76
- _context.next = 17;
76
+ _context.next = 19;
77
77
  break;
78
78
  }
79
79
  recordList = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$flowRecordL = _res$data.flowRecordList) === null || _res$data$flowRecordL === void 0 ? void 0 : (_res$data$flowRecordL2 = _res$data$flowRecordL.filter(function (t) {
@@ -178,24 +178,44 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
178
178
  });
179
179
  }
180
180
  case 17:
181
- _context.next = 22;
181
+ _context.next = 20;
182
182
  break;
183
183
  case 19:
184
- _context.prev = 19;
185
- _context.t0 = _context["catch"](0);
186
- console.error(_context.t0);
184
+ dispatch({
185
+ type: 'setCurrentNode',
186
+ payload: {
187
+ currentNodeDetail: {
188
+ workOrder: {}
189
+ }
190
+ }
191
+ });
192
+ case 20:
193
+ _context.next = 26;
194
+ break;
187
195
  case 22:
188
196
  _context.prev = 22;
197
+ _context.t0 = _context["catch"](0);
198
+ console.error(_context.t0);
199
+ dispatch({
200
+ type: 'setCurrentNode',
201
+ payload: {
202
+ currentNodeDetail: {
203
+ workOrder: {}
204
+ }
205
+ }
206
+ });
207
+ case 26:
208
+ _context.prev = 26;
189
209
  dispatch({
190
210
  type: 'setLoading',
191
211
  payload: false
192
212
  });
193
- return _context.finish(22);
194
- case 25:
213
+ return _context.finish(26);
214
+ case 29:
195
215
  case "end":
196
216
  return _context.stop();
197
217
  }
198
- }, _callee, null, [[0, 19, 22, 25]]);
218
+ }, _callee, null, [[0, 22, 26, 29]]);
199
219
  }));
200
220
  return function (_x) {
201
221
  return _ref.apply(this, arguments);
@@ -78,6 +78,11 @@ export var systemOrderMap = {
78
78
  no: 'jstSystemOrderNo',
79
79
  ids: 'jstSystemSelectIds',
80
80
  order: 'jstSystemShowOrder'
81
+ },
82
+ JY_SYSTEM_ORDER: {
83
+ no: 'jySystemOrderNo',
84
+ ids: 'jySystemSelectIds',
85
+ order: 'jySystemShowOrder'
81
86
  }
82
87
  };
83
88
  export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
@@ -227,6 +232,11 @@ export var SUBMIT_COMPONENT_ERP_LOGISTICS_MAP = {
227
232
  company: 'gyLogisticsCompany',
228
233
  code: 'gyLogisticsCode'
229
234
  },
235
+ JY_LOGISTICS: {
236
+ list: 'jyLogisticsList',
237
+ company: 'jyLogisticsCompany',
238
+ code: 'jyLogisticsCode'
239
+ },
230
240
  SKX_LOGISTICS: {
231
241
  list: 'skxLogisticsList',
232
242
  company: 'skxLogisticsCompany',
@@ -279,6 +289,10 @@ export var SUBMIT_COMPONENT_GOODS_MAP = {
279
289
  KM_GOODS: {
280
290
  type: 'kmGoods',
281
291
  shopCode: 'shopCode'
292
+ },
293
+ JY_GOODS: {
294
+ type: 'jyGoods',
295
+ shopCode: 'shopCode'
282
296
  }
283
297
  };
284
298
  export var SUBMIT_COMPONENT_REISSUE_MAP = {
@@ -319,6 +333,12 @@ export var SUBMIT_COMPONENT_REISSUE_MAP = {
319
333
  goods: 'kmReissueGoods',
320
334
  shopCode: 'shopCode',
321
335
  systemOrderNo: 'kmSystemOrderNo'
336
+ },
337
+ JY_REISSUE_GOODS: {
338
+ type: 'jyReissueType',
339
+ goods: 'jyReissueGoods',
340
+ shopCode: 'shopCode',
341
+ systemOrderNo: 'jySystemOrderNo'
322
342
  }
323
343
  };
324
344
  export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
@@ -381,6 +401,12 @@ export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
381
401
  ids: 'jstSystemSelectIds',
382
402
  order: 'jstSystemShowOrder',
383
403
  select: 'oId'
404
+ },
405
+ JY_SYSTEM_ORDER: {
406
+ no: 'jySystemOrderNo',
407
+ ids: 'jySystemSelectIds',
408
+ order: 'jySystemShowOrder',
409
+ select: 'tradeNo'
384
410
  }
385
411
  };
386
412
  export var platformMap = {
@@ -423,18 +423,36 @@ var handleGySendGood = function handleGySendGood(_ref32) {
423
423
  }));
424
424
  };
425
425
  };
426
- var handleLogisticsTrajectory = function handleLogisticsTrajectory(_ref33) {
426
+ var handleJySendGood = function handleJySendGood(_ref33) {
427
427
  var addContent = _ref33.addContent,
428
428
  getNowData = _ref33.getNowData;
429
+ return function (item) {
430
+ var sendList = getNowData(item.uniqueKey, []);
431
+ addContent('jySendGood', sendList);
432
+ addContent('jySendId', sendList.filter(function (t) {
433
+ return t.sendId;
434
+ }).map(function (item) {
435
+ return item.sendId + '';
436
+ }));
437
+ addContent('jySendName', sendList.filter(function (t) {
438
+ return t.sendName;
439
+ }).map(function (item) {
440
+ return item.sendName + '';
441
+ }));
442
+ };
443
+ };
444
+ var handleLogisticsTrajectory = function handleLogisticsTrajectory(_ref34) {
445
+ var addContent = _ref34.addContent,
446
+ getNowData = _ref34.getNowData;
429
447
  return function (item) {
430
448
  ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryApiStatus', 'trajectoryPhone'].map(function (key) {
431
449
  addContent(key, getNowData("".concat(item.uniqueKey, ".").concat(key), ''));
432
450
  });
433
451
  };
434
452
  };
435
- var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref34) {
436
- var addContent = _ref34.addContent,
437
- getNowData = _ref34.getNowData;
453
+ var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref35) {
454
+ var addContent = _ref35.addContent,
455
+ getNowData = _ref35.getNowData;
438
456
  return function (item) {
439
457
  var trajectoryList = getNowData(item.uniqueKey, []);
440
458
  addContent('trajectoryList', trajectoryList);
@@ -449,26 +467,26 @@ var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref3
449
467
  }));
450
468
  };
451
469
  };
452
- var handleErpGoods = function handleErpGoods(_ref35) {
453
- var addContent = _ref35.addContent,
454
- getNowData = _ref35.getNowData;
470
+ var handleErpGoods = function handleErpGoods(_ref36) {
471
+ var addContent = _ref36.addContent,
472
+ getNowData = _ref36.getNowData;
455
473
  return function (item) {
456
474
  var goods = getNowData(item.uniqueKey, {});
457
475
  addContent(SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].type, goods === null || goods === void 0 ? void 0 : goods[SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].type]);
458
476
  addContent(SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].shopCode, (goods === null || goods === void 0 ? void 0 : goods[SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].shopCode]) || '');
459
477
  };
460
478
  };
461
- var handleSkxGoods = function handleSkxGoods(_ref36) {
462
- var addContent = _ref36.addContent,
463
- getNowData = _ref36.getNowData;
479
+ var handleSkxGoods = function handleSkxGoods(_ref37) {
480
+ var addContent = _ref37.addContent,
481
+ getNowData = _ref37.getNowData;
464
482
  return function (item) {
465
483
  var goods = getNowData(item.uniqueKey, {});
466
484
  addContent('skxGoods', goods === null || goods === void 0 ? void 0 : goods.skxGoods);
467
485
  };
468
486
  };
469
- var handleOrderSubForm = function handleOrderSubForm(_ref37) {
470
- var addContent = _ref37.addContent,
471
- getNowData = _ref37.getNowData;
487
+ var handleOrderSubForm = function handleOrderSubForm(_ref38) {
488
+ var addContent = _ref38.addContent,
489
+ getNowData = _ref38.getNowData;
472
490
  return function (item) {
473
491
  var _orderSubForm$subOrde;
474
492
  var orderSubForm = getNowData(item.uniqueKey, {});
@@ -489,17 +507,17 @@ var handleOrderSubForm = function handleOrderSubForm(_ref37) {
489
507
  addContent('subOrderList', subOrderList);
490
508
  };
491
509
  };
492
- var handleSkxReturnGoods = function handleSkxReturnGoods(_ref38) {
493
- var addContent = _ref38.addContent,
494
- getNowData = _ref38.getNowData;
510
+ var handleSkxReturnGoods = function handleSkxReturnGoods(_ref39) {
511
+ var addContent = _ref39.addContent,
512
+ getNowData = _ref39.getNowData;
495
513
  return function (item) {
496
514
  var goods = getNowData(item.uniqueKey, {});
497
515
  addContent('skxReturnGoods', goods === null || goods === void 0 ? void 0 : goods.skxReturnGoods);
498
516
  };
499
517
  };
500
- var handleBsExchangeGoods = function handleBsExchangeGoods(_ref39) {
501
- var addContent = _ref39.addContent,
502
- getNowData = _ref39.getNowData;
518
+ var handleBsExchangeGoods = function handleBsExchangeGoods(_ref40) {
519
+ var addContent = _ref40.addContent,
520
+ getNowData = _ref40.getNowData;
503
521
  return function (item) {
504
522
  var _bsExchange$bsExchang;
505
523
  var bsExchange = getNowData(item.uniqueKey, {});
@@ -524,27 +542,27 @@ var handleBsExchangeGoods = function handleBsExchangeGoods(_ref39) {
524
542
  }
525
543
  };
526
544
  };
527
- var handleWdtExchangeGoods = function handleWdtExchangeGoods(_ref40) {
528
- var addContent = _ref40.addContent,
529
- getNowData = _ref40.getNowData;
545
+ var handleWdtExchangeGoods = function handleWdtExchangeGoods(_ref41) {
546
+ var addContent = _ref41.addContent,
547
+ getNowData = _ref41.getNowData;
530
548
  return function (item) {
531
549
  var wdtExchange = getNowData(item.uniqueKey, {});
532
550
  addContent('wdtExchangeGoods', wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.wdtExchangeGoods);
533
551
  addContent('shopCode', (wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.shopCode) || '');
534
552
  };
535
553
  };
536
- var handleJstExchangeGoods = function handleJstExchangeGoods(_ref41) {
537
- var addContent = _ref41.addContent,
538
- getNowData = _ref41.getNowData;
554
+ var handleJstExchangeGoods = function handleJstExchangeGoods(_ref42) {
555
+ var addContent = _ref42.addContent,
556
+ getNowData = _ref42.getNowData;
539
557
  return function (item) {
540
558
  var jstExchange = getNowData(item.uniqueKey, {});
541
559
  addContent('jstExchangeGoods', jstExchange === null || jstExchange === void 0 ? void 0 : jstExchange.jstExchangeGoods);
542
560
  addContent('shopCode', (jstExchange === null || jstExchange === void 0 ? void 0 : jstExchange.shopCode) || '');
543
561
  };
544
562
  };
545
- var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref42) {
546
- var addContent = _ref42.addContent,
547
- getNowData = _ref42.getNowData;
563
+ var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref43) {
564
+ var addContent = _ref43.addContent,
565
+ getNowData = _ref43.getNowData;
548
566
  return function (item) {
549
567
  var reissue = getNowData(item.uniqueKey, {});
550
568
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].type, reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].type]);
@@ -552,7 +570,7 @@ var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref42) {
552
570
  if (item.workOrderComponentType !== 'GY_REISSUE_GOODS') {
553
571
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].shopCode, (reissue === null || reissue === void 0 ? void 0 : reissue.shopCode) || '');
554
572
  }
555
- if (item.workOrderComponentType === 'WDT_REISSUE_GOODS' || item.workOrderComponentType === 'JST_REISSUE_GOODS' || item.workOrderComponentType === 'JST_RETURN_GOODS' || item.workOrderComponentType === 'GY_REISSUE_GOODS' || item.workOrderComponentType === 'KM_REISSUE_GOODS') {
573
+ if (item.workOrderComponentType === 'WDT_REISSUE_GOODS' || item.workOrderComponentType === 'JST_REISSUE_GOODS' || item.workOrderComponentType === 'JST_RETURN_GOODS' || item.workOrderComponentType === 'GY_REISSUE_GOODS' || item.workOrderComponentType === 'KM_REISSUE_GOODS' || item.workOrderComponentType === 'JY_REISSUE_GOODS') {
556
574
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo, (reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo]) || '');
557
575
  }
558
576
  // 管易补发商品信息vipCode/shopCode未复现出丢失情况,兜底措施
@@ -598,9 +616,9 @@ var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref42) {
598
616
  }
599
617
  };
600
618
  };
601
- var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref43) {
602
- var addContent = _ref43.addContent,
603
- getNowData = _ref43.getNowData;
619
+ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref44) {
620
+ var addContent = _ref44.addContent,
621
+ getNowData = _ref44.getNowData;
604
622
  return function (item) {
605
623
  var currentReturn = getNowData(item.uniqueKey, {});
606
624
  var compType = item.workOrderComponentType;
@@ -609,9 +627,9 @@ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref43) {
609
627
  addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey]) || '');
610
628
  };
611
629
  };
612
- var handleGYReturnGoods = function handleGYReturnGoods(_ref44) {
613
- var addContent = _ref44.addContent,
614
- getNowData = _ref44.getNowData;
630
+ var handleGYReturnGoods = function handleGYReturnGoods(_ref45) {
631
+ var addContent = _ref45.addContent,
632
+ getNowData = _ref45.getNowData;
615
633
  return function (item) {
616
634
  var currentReturn = getNowData(item.uniqueKey, {});
617
635
  var compType = item.workOrderComponentType;
@@ -621,9 +639,9 @@ var handleGYReturnGoods = function handleGYReturnGoods(_ref44) {
621
639
  addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey]) || '');
622
640
  };
623
641
  };
624
- var handleBsPosting = function handleBsPosting(_ref45) {
625
- var addContent = _ref45.addContent,
626
- getNowData = _ref45.getNowData;
642
+ var handleBsPosting = function handleBsPosting(_ref46) {
643
+ var addContent = _ref46.addContent,
644
+ getNowData = _ref46.getNowData;
627
645
  return function (item) {
628
646
  ['bsPostingProvince', 'bsPostingCity', 'bsPostingDistrict'].map(function (key, index) {
629
647
  addContent(key, getNowData("".concat(item.uniqueKey, ".postingAddress[").concat(index, "]"), ''));
@@ -633,9 +651,9 @@ var handleBsPosting = function handleBsPosting(_ref45) {
633
651
  addContent('bsPostingReceiverMobile', getNowData("".concat(item.uniqueKey, ".postingReceiverMobile"), ''));
634
652
  };
635
653
  };
636
- var handleSystemOrder = function handleSystemOrder(_ref46) {
637
- var addContent = _ref46.addContent,
638
- getNowData = _ref46.getNowData;
654
+ var handleSystemOrder = function handleSystemOrder(_ref47) {
655
+ var addContent = _ref47.addContent,
656
+ getNowData = _ref47.getNowData;
639
657
  return function (item) {
640
658
  var selectIds = getNowData("".concat(item.uniqueKey, ".selectIds"), '');
641
659
  var showOrderInfo = getNowData("".concat(item.uniqueKey, ".showOrderInfo"), []);
@@ -649,16 +667,16 @@ var handleSystemOrder = function handleSystemOrder(_ref46) {
649
667
  }));
650
668
  };
651
669
  };
652
- var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref47) {
653
- var addContent = _ref47.addContent,
654
- getNowData = _ref47.getNowData;
670
+ var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref48) {
671
+ var addContent = _ref48.addContent,
672
+ getNowData = _ref48.getNowData;
655
673
  return function (item) {
656
674
  addContent('buyerMessageNotice', getNowData(item.uniqueKey, '未通知'));
657
675
  };
658
676
  };
659
- var handleBsDeliveryNo = function handleBsDeliveryNo(_ref48) {
660
- var addContent = _ref48.addContent,
661
- getNowData = _ref48.getNowData;
677
+ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref49) {
678
+ var addContent = _ref49.addContent,
679
+ getNowData = _ref49.getNowData;
662
680
  return function (item) {
663
681
  var deliveryNoList = getNowData(item.uniqueKey, []);
664
682
  addContent('deliveryNoList', deliveryNoList);
@@ -667,9 +685,9 @@ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref48) {
667
685
  }));
668
686
  };
669
687
  };
670
- var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref49) {
671
- var addContent = _ref49.addContent,
672
- getNowData = _ref49.getNowData;
688
+ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref50) {
689
+ var addContent = _ref50.addContent,
690
+ getNowData = _ref50.getNowData;
673
691
  return function (item) {
674
692
  var returnGoodsTradeItemList = getNowData(item.uniqueKey, []);
675
693
  addContent('returnGoodsTradeItemList', returnGoodsTradeItemList);
@@ -678,9 +696,9 @@ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref49) {
678
696
  }));
679
697
  };
680
698
  };
681
- var handleErpTradeId = function handleErpTradeId(_ref50) {
682
- var addContent = _ref50.addContent,
683
- getNowData = _ref50.getNowData;
699
+ var handleErpTradeId = function handleErpTradeId(_ref51) {
700
+ var addContent = _ref51.addContent,
701
+ getNowData = _ref51.getNowData;
684
702
  return function (item) {
685
703
  var tradeItemList = getNowData(item.uniqueKey, []);
686
704
  addContent('tradeItemList', tradeItemList);
@@ -689,9 +707,9 @@ var handleErpTradeId = function handleErpTradeId(_ref50) {
689
707
  }));
690
708
  };
691
709
  };
692
- var handleErpAfterSelfTradeId = function handleErpAfterSelfTradeId(_ref51) {
693
- var addContent = _ref51.addContent,
694
- getNowData = _ref51.getNowData;
710
+ var handleErpAfterSelfTradeId = function handleErpAfterSelfTradeId(_ref52) {
711
+ var addContent = _ref52.addContent,
712
+ getNowData = _ref52.getNowData;
695
713
  return function (item) {
696
714
  var tradeItemList = getNowData(item.uniqueKey, []);
697
715
  addContent('erpAfterSaleTradeItemList', tradeItemList);
@@ -700,18 +718,18 @@ var handleErpAfterSelfTradeId = function handleErpAfterSelfTradeId(_ref51) {
700
718
  }));
701
719
  };
702
720
  };
703
- var handleWlnGoods = function handleWlnGoods(_ref52) {
704
- var addContent = _ref52.addContent,
705
- getNowData = _ref52.getNowData;
721
+ var handleWlnGoods = function handleWlnGoods(_ref53) {
722
+ var addContent = _ref53.addContent,
723
+ getNowData = _ref53.getNowData;
706
724
  return function (item) {
707
725
  var wlnGoods = getNowData(item.uniqueKey, {});
708
726
  addContent('wlnGoods', wlnGoods.wlnGoods);
709
727
  addContent('shopCode', (wlnGoods === null || wlnGoods === void 0 ? void 0 : wlnGoods.shopCode) || '');
710
728
  };
711
729
  };
712
- var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref53) {
713
- var addContent = _ref53.addContent,
714
- getNowData = _ref53.getNowData;
730
+ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref54) {
731
+ var addContent = _ref54.addContent,
732
+ getNowData = _ref54.getNowData;
715
733
  return function (item) {
716
734
  ['bsE3SystemOrderNo', 'bsE3ReissueType', 'bsE3ReissueMemo', 'bsE3ReissueGoods'].map(function (key) {
717
735
  if (key === 'bsE3ReissueGoods') {
@@ -722,33 +740,33 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref53) {
722
740
  });
723
741
  };
724
742
  };
725
- var handleWdtShopSelect = function handleWdtShopSelect(_ref54) {
726
- var addContent = _ref54.addContent,
727
- getNowData = _ref54.getNowData;
743
+ var handleWdtShopSelect = function handleWdtShopSelect(_ref55) {
744
+ var addContent = _ref55.addContent,
745
+ getNowData = _ref55.getNowData;
728
746
  return function (item) {
729
747
  ['shopCode'].map(function (key) {
730
748
  addContent(key, getNowData("".concat(item.uniqueKey), ''));
731
749
  });
732
750
  };
733
751
  };
734
- var handleDefault = function handleDefault(_ref55) {
735
- var addContent = _ref55.addContent,
736
- getNowData = _ref55.getNowData;
752
+ var handleDefault = function handleDefault(_ref56) {
753
+ var addContent = _ref56.addContent,
754
+ getNowData = _ref56.getNowData;
737
755
  return function (item) {
738
756
  addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
739
757
  };
740
758
  };
741
- var handleStatusField = function handleStatusField(_ref56) {
742
- var addContent = _ref56.addContent,
743
- getNowData = _ref56.getNowData;
759
+ var handleStatusField = function handleStatusField(_ref57) {
760
+ var addContent = _ref57.addContent,
761
+ getNowData = _ref57.getNowData;
744
762
  return function (item) {
745
763
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
746
764
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
747
765
  };
748
766
  };
749
- var handleGoodStatus = function handleGoodStatus(_ref57) {
750
- var addContent = _ref57.addContent,
751
- getNowData = _ref57.getNowData;
767
+ var handleGoodStatus = function handleGoodStatus(_ref58) {
768
+ var addContent = _ref58.addContent,
769
+ getNowData = _ref58.getNowData;
752
770
  return function (item) {
753
771
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
754
772
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
@@ -756,13 +774,13 @@ var handleGoodStatus = function handleGoodStatus(_ref57) {
756
774
  }));
757
775
  };
758
776
  };
759
- var processComponent = function processComponent(_ref58) {
760
- var params = _ref58.params,
761
- nowData = _ref58.nowData,
762
- updateFlag = _ref58.updateFlag,
763
- detail = _ref58.detail,
764
- accountName = _ref58.accountName,
765
- getValueByField = _ref58.getValueByField;
777
+ var processComponent = function processComponent(_ref59) {
778
+ var params = _ref59.params,
779
+ nowData = _ref59.nowData,
780
+ updateFlag = _ref59.updateFlag,
781
+ detail = _ref59.detail,
782
+ accountName = _ref59.accountName,
783
+ getValueByField = _ref59.getValueByField;
766
784
  return function (item) {
767
785
  var contentVoList = [];
768
786
  var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
@@ -924,6 +942,7 @@ var processComponent = function processComponent(_ref58) {
924
942
  case 'WDT_LOGISTICS':
925
943
  case 'KM_LOGISTICS':
926
944
  case 'GY_LOGISTICS':
945
+ case 'JY_LOGISTICS':
927
946
  case 'SKX_LOGISTICS':
928
947
  case 'SKX_RETURN_LOGISTICS':
929
948
  wrapFn(handleErpLogistics);
@@ -939,6 +958,9 @@ var processComponent = function processComponent(_ref58) {
939
958
  case 'GY_SEND_GOOD':
940
959
  wrapFn(handleGySendGood);
941
960
  break;
961
+ case 'JY_SEND_GOOD':
962
+ wrapFn(handleJySendGood);
963
+ break;
942
964
  case 'LOGISTICS_TRAJECTORY':
943
965
  wrapFn(handleLogisticsTrajectory);
944
966
  break;
@@ -951,6 +973,7 @@ var processComponent = function processComponent(_ref58) {
951
973
  case 'GY_GOODS':
952
974
  case 'JST_GOODS':
953
975
  case 'KM_GOODS':
976
+ case 'JY_GOODS':
954
977
  wrapFn(handleErpGoods);
955
978
  break;
956
979
  case 'SKX_GOODS':
@@ -977,6 +1000,7 @@ var processComponent = function processComponent(_ref58) {
977
1000
  case 'JST_REISSUE_GOODS':
978
1001
  case 'JST_RETURN_GOODS':
979
1002
  case 'KM_REISSUE_GOODS':
1003
+ case 'JY_REISSUE_GOODS':
980
1004
  wrapFn(handleBsOrWdtReissueGoods);
981
1005
  break;
982
1006
  case 'BS_RETURN_GOODS':
@@ -996,6 +1020,7 @@ var processComponent = function processComponent(_ref58) {
996
1020
  case 'BS_E3_SYSTEM_ORDER':
997
1021
  case 'GY_SYSTEM_ORDER':
998
1022
  case 'JST_SYSTEM_ORDER':
1023
+ case 'JY_SYSTEM_ORDER':
999
1024
  wrapFn(handleSystemOrder);
1000
1025
  break;
1001
1026
  case 'BUYER_MESSAGE_NOTICE':