@kmkf-fe-packages/kmkf-work-order-service-component 1.26.1 → 1.28.1

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,10 +29,10 @@ 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, getMappingConfigByTemplateDetail, wdtSystemOrderBackValues, setLogisticsInfo, getMappingTargetValue } from "../../../common/utils/tools";
32
+ INNER_REPLACE_COMPONENT, reversalFormValues, bsSystemOrderBackValues, kmSystemOrderBackValues, bsE3SystemOrderBackValues, wlnSystemOrderBackValues, gySystemOrderBackValues, 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
- import { getExpression, formatDisplayConfig, isNull, LabelData } from '@kmkf-fe-packages/kmkf-utils';
35
+ import { getExpression, formatDisplayConfig, isNull, LabelData, setSessionStorage } from '@kmkf-fe-packages/kmkf-utils';
36
36
  import ShopName from "../ShopName";
37
37
  import { PlatForm } from "../../../model/flowTemplateDetail/types";
38
38
  import { groupByPreNode, getCurrentNodeModifiedShowHideRule } from "./common";
@@ -105,14 +105,18 @@ var FormRender = function FormRender(props, ref) {
105
105
  _useState4 = _slicedToArray(_useState3, 2),
106
106
  replaceValue = _useState4[0],
107
107
  setReplaceValue = _useState4[1]; //字段重复校验
108
- var _useState5 = useState([]),
108
+ var _useState5 = useState({}),
109
109
  _useState6 = _slicedToArray(_useState5, 2),
110
- labelList = _useState6[0],
111
- setLabelList = _useState6[1];
112
- var _useState7 = useState(currentShopId),
110
+ replaceConfig = _useState6[0],
111
+ setReplaceConfig = _useState6[1];
112
+ var _useState7 = useState([]),
113
113
  _useState8 = _slicedToArray(_useState7, 2),
114
- shopId = _useState8[0],
115
- setShopId = _useState8[1];
114
+ labelList = _useState8[0],
115
+ setLabelList = _useState8[1];
116
+ var _useState9 = useState(currentShopId),
117
+ _useState10 = _slicedToArray(_useState9, 2),
118
+ shopId = _useState10[0],
119
+ setShopId = _useState10[1];
116
120
  var _Form$useForm = Form.useForm(),
117
121
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
118
122
  preNodeForm = _Form$useForm2[0];
@@ -201,7 +205,7 @@ var FormRender = function FormRender(props, ref) {
201
205
  //查询重复数量
202
206
  var queryReplaceCount = /*#__PURE__*/function () {
203
207
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(componentValue, templateDetail) {
204
- var needCheckComponentList, _templateDetail$flowT, params, _yield$replaceCheck, resultList, resultParams;
208
+ var needCheckComponentList, _templateDetail$flowT, params, _yield$replaceCheck, resultList, resultParams, resultConfigText;
205
209
  return _regeneratorRuntime().wrap(function _callee$(_context) {
206
210
  while (1) switch (_context.prev = _context.next) {
207
211
  case 0:
@@ -210,13 +214,13 @@ var FormRender = function FormRender(props, ref) {
210
214
  case 2:
211
215
  needCheckComponentList = getReplaceWarnValues(templateDetail, componentValue);
212
216
  if (!needCheckComponentList.length) {
213
- _context.next = 12;
217
+ _context.next = 14;
214
218
  break;
215
219
  }
216
220
  params = {
217
221
  flowTemplateKey: (_templateDetail$flowT = templateDetail.flowTemplateConfig) === null || _templateDetail$flowT === void 0 ? void 0 : _templateDetail$flowT.flowTemplateKey,
218
222
  templateId: templateDetail.uniqueKey,
219
- workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.uniqueKey,
223
+ workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
220
224
  needCheckComponentList: needCheckComponentList
221
225
  };
222
226
  _context.next = 7;
@@ -231,11 +235,34 @@ var FormRender = function FormRender(props, ref) {
231
235
  prv[name] = next.repeatCount;
232
236
  return prv;
233
237
  }, {});
238
+ resultConfigText = (resultList || []).reduce(function (prv, next) {
239
+ var _next$componentKey$sp3 = next.componentKey.split('_'),
240
+ _next$componentKey$sp4 = _slicedToArray(_next$componentKey$sp3, 2),
241
+ key = _next$componentKey$sp4[0],
242
+ name = _next$componentKey$sp4[1];
243
+ var component = (templateDetail.componentDtoList || []).find(function (t) {
244
+ return t.uniqueKey === key;
245
+ });
246
+ if (component) {
247
+ var _component$componentC, _component$componentC2;
248
+ var repeatRange = component === null || component === void 0 ? void 0 : (_component$componentC = component.componentConfig) === null || _component$componentC === void 0 ? void 0 : (_component$componentC2 = _component$componentC.repeatConfig) === null || _component$componentC2 === void 0 ? void 0 : _component$componentC2.repeatRange;
249
+ if (name === 'tradeId') {
250
+ prv[name] = repeatRange === 'allWorkOrder' ? '在所有流程' : '在当前流程';
251
+ } else {
252
+ prv[name] = '针对此模版';
253
+ }
254
+ return prv;
255
+ }
256
+ return prv;
257
+ }, {});
234
258
  setReplaceValue(function (prev) {
235
259
  return _objectSpread(_objectSpread({}, prev), resultParams);
236
260
  });
261
+ setReplaceConfig(function (prev) {
262
+ return _objectSpread(_objectSpread({}, prev), resultConfigText);
263
+ });
237
264
  replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), resultParams);
238
- case 12:
265
+ case 14:
239
266
  case "end":
240
267
  return _context.stop();
241
268
  }
@@ -705,6 +732,13 @@ var FormRender = function FormRender(props, ref) {
705
732
  form: form
706
733
  });
707
734
  }
735
+ if (workOrderComponentType === 'GY_SYSTEM_ORDER') {
736
+ gySystemOrderBackValues({
737
+ templateList: templateDetail,
738
+ value: value,
739
+ form: form
740
+ });
741
+ }
708
742
  if (activeLogisticsComponents && ['INPUT', 'EXPRESS_LOGISTICS_SELECT', 'BS_LOGISTICS'].includes(workOrderComponentType)) {
709
743
  setLogisticsInfo({
710
744
  logisticsMappingConfig: activeLogisticsComponents,
@@ -798,7 +832,7 @@ var FormRender = function FormRender(props, ref) {
798
832
  }
799
833
  //如果有bs组件 设置成初始值
800
834
  var hasBs = get(templateDetail, 'componentDtoList', []).some(function (item) {
801
- return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_SEND_GOOD'].includes(item.workOrderComponentType);
835
+ return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_SEND_GOOD', 'GY_SEND_GOOD'].includes(item.workOrderComponentType);
802
836
  });
803
837
  if (hasBs) {
804
838
  var bsValue = get(templateDetail, 'componentDtoList', []).reduce(function (prv, next) {
@@ -817,6 +851,7 @@ var FormRender = function FormRender(props, ref) {
817
851
  case 'WLN_SEND_GOOD':
818
852
  case 'WDT_SEND_GOOD':
819
853
  case 'KM_SEND_GOOD':
854
+ case 'GY_SEND_GOOD':
820
855
  prv[next.uniqueKey] = [{
821
856
  sendName: '',
822
857
  sendId: ''
@@ -1114,11 +1149,15 @@ var FormRender = function FormRender(props, ref) {
1114
1149
  var tradeIdUniqueKey = (_findComponentUniqueK = findComponentUniqueKeyByType(tempLateList, 'TRADE_ID_INPUT')) !== null && _findComponentUniqueK !== void 0 ? _findComponentUniqueK : '';
1115
1150
  var tradeId = value[tradeIdUniqueKey];
1116
1151
  if (plat !== null && plat !== void 0 && plat.subOrderNo) {
1117
- var cacheOmsOrderInfo = JSON.parse(sessionStorage.getItem('cacheOmsOrderInfo') || '{}');
1118
- sessionStorage.setItem('cacheOmsOrderInfo', JSON.stringify(_objectSpread(_objectSpread({}, cacheOmsOrderInfo), {}, _defineProperty({}, "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId), _defineProperty({}, plat === null || plat === void 0 ? void 0 : plat.subOrderNo, value)))));
1152
+ setSessionStorage.setCacheOmsOrderInfo({
1153
+ itemKey: "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId),
1154
+ itemValue: _defineProperty({}, plat === null || plat === void 0 ? void 0 : plat.subOrderNo, value)
1155
+ });
1119
1156
  } else if (tradeId) {
1120
- var cacheOrderInfo = JSON.parse(sessionStorage.getItem('cacheOrderInfo') || '{}');
1121
- sessionStorage.setItem('cacheOrderInfo', JSON.stringify(_objectSpread(_objectSpread({}, cacheOrderInfo), {}, _defineProperty({}, "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId), _defineProperty({}, tradeId, value)))));
1157
+ setSessionStorage.setCacheOrderInfo({
1158
+ itemKey: "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId),
1159
+ itemValue: _defineProperty({}, tradeId, value)
1160
+ });
1122
1161
  }
1123
1162
  }
1124
1163
  }, 1000);
@@ -1191,7 +1230,7 @@ var FormRender = function FormRender(props, ref) {
1191
1230
  }, /*#__PURE__*/React.createElement("div", {
1192
1231
  className: "tipBox"
1193
1232
  }, Object.keys(filterReplaceValue).map(function (key) {
1194
- return filterReplaceValue[key] > 0 && /*#__PURE__*/React.createElement("div", null, "\u63D0\u793A\uFF1A\u8BE5", COMPONENT_MAP_NAME[key], "\u9488\u5BF9\u6B64\u6A21\u677F\u5DF2\u521B\u5EFA\u8FC7", replaceValue[key], "\u6761\u5DE5\u5355\uFF01");
1233
+ return filterReplaceValue[key] > 0 && /*#__PURE__*/React.createElement("div", null, "\u63D0\u793A\uFF1A\u8BE5", COMPONENT_MAP_NAME[key], replaceConfig[key], "\u5DF2\u521B\u5EFA\u8FC7", replaceValue[key], "\u6761\u5DE5\u5355\uFF01");
1195
1234
  })), (labelList === null || labelList === void 0 ? void 0 : labelList.length) > 0 && /*#__PURE__*/React.createElement(Space, {
1196
1235
  wrap: true,
1197
1236
  style: {
@@ -1,2 +1,2 @@
1
1
  // 切换当前店铺时,以下组件字段需要清空
2
- export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'BS_E3_SYSTEM_ORDER', 'BS_E3_REISSUE_GOODS'];
2
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'BS_E3_SYSTEM_ORDER', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS'];
@@ -273,7 +273,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
273
273
  shopUniqueKey: get(find(shopList, function (s) {
274
274
  return s.shopId === formData.shopId;
275
275
  }), 'accessToken', '')
276
- });
276
+ }); // console.log(params);
277
+ // return;
277
278
  _context.next = 13;
278
279
  return saveWorkOrder(params);
279
280
  case 13:
@@ -227,12 +227,6 @@ export declare const selectOperateParams: (state: FlowTemplateDetailState) => {
227
227
  flowVersion: number;
228
228
  flowWorkOrderUpdateTime: string;
229
229
  workOrderUpdateTime: number;
230
- maxPublishVersionTemplate: {
231
- id: string;
232
- name: string;
233
- publishTime: number;
234
- version: number;
235
- };
236
230
  } | undefined;
237
231
  export declare const selectAddRemarkVisible: (state: FlowTemplateDetailState) => boolean;
238
232
  export declare const selectFlowStatus: (state: FlowTemplateDetailState) => import("../../model/flowTemplateDetail/types").FlowStatus | undefined;
@@ -9,6 +9,7 @@ interface WorkOrderProps {
9
9
  buyerId?: string;
10
10
  orderNo?: string;
11
11
  userKey?: string;
12
+ otherInfo?: any;
12
13
  onEmpowerCallback?: () => void;
13
14
  onOpenWangWang?: (nick: string, id: string) => void;
14
15
  }
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  * Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
16
16
  */
17
17
  import React, { useState, useEffect, useLayoutEffect, useMemo } from 'react';
18
- import { Spin, ConfigProvider, Radio, message } from 'antd';
18
+ import { Spin, ConfigProvider, Radio, message, Alert } from 'antd';
19
19
  import { Provider } from 'react-redux';
20
20
  import { useAppSelector, useAppDispatch } from "../model/hooks";
21
21
  import { fetchQueryCurrentCompanyUser } from "../model/workOrder";
@@ -45,6 +45,8 @@ var WorkOrder = function WorkOrder(props) {
45
45
  buyerId = props.buyerId,
46
46
  orderNo = props.orderNo,
47
47
  userKey = props.userKey,
48
+ _props$otherInfo = props.otherInfo,
49
+ otherInfo = _props$otherInfo === void 0 ? {} : _props$otherInfo,
48
50
  onEmpowerCallback = props.onEmpowerCallback,
49
51
  onOpenWangWang = props.onOpenWangWang;
50
52
  var dispatch = useAppDispatch();
@@ -164,7 +166,10 @@ var WorkOrder = function WorkOrder(props) {
164
166
  }, [isShowPayment, isShowWdt]);
165
167
  return /*#__PURE__*/React.createElement(Global, null, /*#__PURE__*/React.createElement(Spin, {
166
168
  spinning: loading
167
- }, /*#__PURE__*/React.createElement("div", {
169
+ }, (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.platform) == 6 && (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.shopType) == 1 && /*#__PURE__*/React.createElement(Alert, {
170
+ message: "\u5F53\u524D\u5E97\u94FA\uFF1A".concat(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.shopName),
171
+ type: "info"
172
+ }), /*#__PURE__*/React.createElement("div", {
168
173
  id: "customize-work-order-component",
169
174
  className: "order_container ".concat(platform === PlatForm.FXG ? '' : 'order_container_padding_bottom')
170
175
  }, /*#__PURE__*/React.createElement(Radio.Group, {
@@ -52,6 +52,11 @@ export var systemOrderMap = {
52
52
  no: 'bsE3SystemOrderNo',
53
53
  ids: 'bsE3SystemSelectIds',
54
54
  order: 'bsE3SystemShowOrder'
55
+ },
56
+ GY_SYSTEM_ORDER: {
57
+ no: 'gySystemOrderNo',
58
+ ids: 'gySystemSelectIds',
59
+ order: 'gySystemShowOrder'
55
60
  }
56
61
  };
57
62
  export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
@@ -186,6 +191,10 @@ export var SUBMIT_COMPONENT_GOODS_MAP = {
186
191
  BS_E3_GOODS: {
187
192
  type: 'bsE3Goods',
188
193
  shopCode: 'shopCode'
194
+ },
195
+ GY_GOODS: {
196
+ type: 'gyGoods',
197
+ shopCode: 'shopCode'
189
198
  }
190
199
  };
191
200
  export var SUBMIT_COMPONENT_REISSUE_MAP = {
@@ -199,6 +208,13 @@ export var SUBMIT_COMPONENT_REISSUE_MAP = {
199
208
  goods: 'wdtReissueGoods',
200
209
  shopCode: 'shopCode',
201
210
  systemOrderNo: 'wdtSystemOrderNo'
211
+ },
212
+ GY_REISSUE_GOODS: {
213
+ type: 'gyReissueType',
214
+ goods: 'gyReissueGoods',
215
+ shopCode: 'shopCode',
216
+ vipCode: 'vipCode',
217
+ systemOrderNo: 'gySystemOrderNo'
202
218
  }
203
219
  };
204
220
  export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
@@ -243,5 +259,11 @@ export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
243
259
  ids: 'bsE3SystemSelectIds',
244
260
  order: 'bsE3SystemShowOrder',
245
261
  select: 'orderSn'
262
+ },
263
+ GY_SYSTEM_ORDER: {
264
+ no: 'gySystemOrderNo',
265
+ ids: 'gySystemSelectIds',
266
+ order: 'gySystemShowOrder',
267
+ select: 'billNo'
246
268
  }
247
269
  };
@@ -401,18 +401,36 @@ var handleWdtSendGood = function handleWdtSendGood(_ref30) {
401
401
  }));
402
402
  };
403
403
  };
404
- var handleLogisticsTrajectory = function handleLogisticsTrajectory(_ref31) {
404
+ var handleGySendGood = function handleGySendGood(_ref31) {
405
405
  var addContent = _ref31.addContent,
406
406
  getNowData = _ref31.getNowData;
407
+ return function (item) {
408
+ var sendList = getNowData(item.uniqueKey, []);
409
+ addContent('gySendGood', sendList);
410
+ addContent('gySendId', sendList.filter(function (t) {
411
+ return t.sendId;
412
+ }).map(function (item) {
413
+ return item.sendId + '';
414
+ }));
415
+ addContent('gySendName', sendList.filter(function (t) {
416
+ return t.sendName;
417
+ }).map(function (item) {
418
+ return item.sendName + '';
419
+ }));
420
+ };
421
+ };
422
+ var handleLogisticsTrajectory = function handleLogisticsTrajectory(_ref32) {
423
+ var addContent = _ref32.addContent,
424
+ getNowData = _ref32.getNowData;
407
425
  return function (item) {
408
426
  ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryPhone'].map(function (key) {
409
427
  addContent(key, getNowData("".concat(item.uniqueKey, ".").concat(key), ''));
410
428
  });
411
429
  };
412
430
  };
413
- var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref32) {
414
- var addContent = _ref32.addContent,
415
- getNowData = _ref32.getNowData;
431
+ var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref33) {
432
+ var addContent = _ref33.addContent,
433
+ getNowData = _ref33.getNowData;
416
434
  return function (item) {
417
435
  var trajectoryList = getNowData(item.uniqueKey, []);
418
436
  addContent('trajectoryList', trajectoryList);
@@ -427,18 +445,18 @@ var handleLogisticsTrajectoryMore = function handleLogisticsTrajectoryMore(_ref3
427
445
  }));
428
446
  };
429
447
  };
430
- var handleErpGoods = function handleErpGoods(_ref33) {
431
- var addContent = _ref33.addContent,
432
- getNowData = _ref33.getNowData;
448
+ var handleErpGoods = function handleErpGoods(_ref34) {
449
+ var addContent = _ref34.addContent,
450
+ getNowData = _ref34.getNowData;
433
451
  return function (item) {
434
452
  var goods = getNowData(item.uniqueKey, {});
435
453
  addContent(SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].type, goods === null || goods === void 0 ? void 0 : goods[SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].type]);
436
454
  addContent(SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].shopCode, (goods === null || goods === void 0 ? void 0 : goods[SUBMIT_COMPONENT_GOODS_MAP[item.workOrderComponentType].shopCode]) || '');
437
455
  };
438
456
  };
439
- var handleBsExchangeGoods = function handleBsExchangeGoods(_ref34) {
440
- var addContent = _ref34.addContent,
441
- getNowData = _ref34.getNowData;
457
+ var handleBsExchangeGoods = function handleBsExchangeGoods(_ref35) {
458
+ var addContent = _ref35.addContent,
459
+ getNowData = _ref35.getNowData;
442
460
  return function (item) {
443
461
  var _bsExchange$bsExchang;
444
462
  var bsExchange = getNowData(item.uniqueKey, {});
@@ -463,31 +481,34 @@ var handleBsExchangeGoods = function handleBsExchangeGoods(_ref34) {
463
481
  }
464
482
  };
465
483
  };
466
- var handleWdtExchangeGoods = function handleWdtExchangeGoods(_ref35) {
467
- var addContent = _ref35.addContent,
468
- getNowData = _ref35.getNowData;
484
+ var handleWdtExchangeGoods = function handleWdtExchangeGoods(_ref36) {
485
+ var addContent = _ref36.addContent,
486
+ getNowData = _ref36.getNowData;
469
487
  return function (item) {
470
488
  var wdtExchange = getNowData(item.uniqueKey, {});
471
489
  addContent('wdtExchangeGoods', wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.wdtExchangeGoods);
472
490
  addContent('shopCode', (wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.shopCode) || '');
473
491
  };
474
492
  };
475
- var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref36) {
476
- var addContent = _ref36.addContent,
477
- getNowData = _ref36.getNowData;
493
+ var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref37) {
494
+ var addContent = _ref37.addContent,
495
+ getNowData = _ref37.getNowData;
478
496
  return function (item) {
479
497
  var reissue = getNowData(item.uniqueKey, {});
480
498
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].type, reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].type]);
481
499
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].goods, reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].goods]);
482
500
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].shopCode, (reissue === null || reissue === void 0 ? void 0 : reissue.shopCode) || '');
483
- if (item.workOrderComponentType === 'WDT_REISSUE_GOODS') {
501
+ if (item.workOrderComponentType === 'WDT_REISSUE_GOODS' || item.workOrderComponentType === 'GY_REISSUE_GOODS') {
484
502
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo, (reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo]) || '');
485
503
  }
504
+ if (item.workOrderComponentType === 'GY_REISSUE_GOODS') {
505
+ addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].vipCode, (reissue === null || reissue === void 0 ? void 0 : reissue.vipCode) || '');
506
+ }
486
507
  };
487
508
  };
488
- var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref37) {
489
- var addContent = _ref37.addContent,
490
- getNowData = _ref37.getNowData;
509
+ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref38) {
510
+ var addContent = _ref38.addContent,
511
+ getNowData = _ref38.getNowData;
491
512
  return function (item) {
492
513
  var currentReturn = getNowData(item.uniqueKey, {});
493
514
  var compType = item.workOrderComponentType;
@@ -496,9 +517,9 @@ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref37) {
496
517
  addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey]) || '');
497
518
  };
498
519
  };
499
- var handleBsPosting = function handleBsPosting(_ref38) {
500
- var addContent = _ref38.addContent,
501
- getNowData = _ref38.getNowData;
520
+ var handleBsPosting = function handleBsPosting(_ref39) {
521
+ var addContent = _ref39.addContent,
522
+ getNowData = _ref39.getNowData;
502
523
  return function (item) {
503
524
  ['bsPostingProvince', 'bsPostingCity', 'bsPostingDistrict'].map(function (key, index) {
504
525
  addContent(key, getNowData("".concat(item.uniqueKey, ".postingAddress[").concat(index, "]"), ''));
@@ -508,9 +529,9 @@ var handleBsPosting = function handleBsPosting(_ref38) {
508
529
  addContent('bsPostingReceiverMobile', getNowData("".concat(item.uniqueKey, ".postingReceiverMobile"), ''));
509
530
  };
510
531
  };
511
- var handleSystemOrder = function handleSystemOrder(_ref39) {
512
- var addContent = _ref39.addContent,
513
- getNowData = _ref39.getNowData;
532
+ var handleSystemOrder = function handleSystemOrder(_ref40) {
533
+ var addContent = _ref40.addContent,
534
+ getNowData = _ref40.getNowData;
514
535
  return function (item) {
515
536
  var selectIds = getNowData("".concat(item.uniqueKey, ".selectIds"), '');
516
537
  var showOrderInfo = getNowData("".concat(item.uniqueKey, ".showOrderInfo"), []);
@@ -524,16 +545,16 @@ var handleSystemOrder = function handleSystemOrder(_ref39) {
524
545
  }));
525
546
  };
526
547
  };
527
- var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref40) {
528
- var addContent = _ref40.addContent,
529
- getNowData = _ref40.getNowData;
548
+ var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref41) {
549
+ var addContent = _ref41.addContent,
550
+ getNowData = _ref41.getNowData;
530
551
  return function (item) {
531
552
  addContent('buyerMessageNotice', getNowData(item.uniqueKey, '未通知'));
532
553
  };
533
554
  };
534
- var handleBsDeliveryNo = function handleBsDeliveryNo(_ref41) {
535
- var addContent = _ref41.addContent,
536
- getNowData = _ref41.getNowData;
555
+ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref42) {
556
+ var addContent = _ref42.addContent,
557
+ getNowData = _ref42.getNowData;
537
558
  return function (item) {
538
559
  var deliveryNoList = getNowData(item.uniqueKey, []);
539
560
  addContent('deliveryNoList', deliveryNoList);
@@ -542,9 +563,9 @@ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref41) {
542
563
  }));
543
564
  };
544
565
  };
545
- var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref42) {
546
- var addContent = _ref42.addContent,
547
- getNowData = _ref42.getNowData;
566
+ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref43) {
567
+ var addContent = _ref43.addContent,
568
+ getNowData = _ref43.getNowData;
548
569
  return function (item) {
549
570
  var returnGoodsTradeItemList = getNowData(item.uniqueKey, []);
550
571
  addContent('returnGoodsTradeItemList', returnGoodsTradeItemList);
@@ -553,9 +574,9 @@ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref42) {
553
574
  }));
554
575
  };
555
576
  };
556
- var handleErpTradeId = function handleErpTradeId(_ref43) {
557
- var addContent = _ref43.addContent,
558
- getNowData = _ref43.getNowData;
577
+ var handleErpTradeId = function handleErpTradeId(_ref44) {
578
+ var addContent = _ref44.addContent,
579
+ getNowData = _ref44.getNowData;
559
580
  return function (item) {
560
581
  var tradeItemList = getNowData(item.uniqueKey, []);
561
582
  addContent('tradeItemList', tradeItemList);
@@ -564,18 +585,18 @@ var handleErpTradeId = function handleErpTradeId(_ref43) {
564
585
  }));
565
586
  };
566
587
  };
567
- var handleWlnGoods = function handleWlnGoods(_ref44) {
568
- var addContent = _ref44.addContent,
569
- getNowData = _ref44.getNowData;
588
+ var handleWlnGoods = function handleWlnGoods(_ref45) {
589
+ var addContent = _ref45.addContent,
590
+ getNowData = _ref45.getNowData;
570
591
  return function (item) {
571
592
  var wlnGoods = getNowData(item.uniqueKey, {});
572
593
  addContent('wlnGoods', wlnGoods.wlnGoods);
573
594
  addContent('shopCode', (wlnGoods === null || wlnGoods === void 0 ? void 0 : wlnGoods.shopCode) || '');
574
595
  };
575
596
  };
576
- var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref45) {
577
- var addContent = _ref45.addContent,
578
- getNowData = _ref45.getNowData;
597
+ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref46) {
598
+ var addContent = _ref46.addContent,
599
+ getNowData = _ref46.getNowData;
579
600
  return function (item) {
580
601
  ['bsE3SystemOrderNo', 'bsE3ReissueType', 'bsE3ReissueMemo', 'bsE3ReissueGoods'].map(function (key) {
581
602
  if (key === 'bsE3ReissueGoods') {
@@ -586,24 +607,24 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref45) {
586
607
  });
587
608
  };
588
609
  };
589
- var handleDefault = function handleDefault(_ref46) {
590
- var addContent = _ref46.addContent,
591
- getNowData = _ref46.getNowData;
610
+ var handleDefault = function handleDefault(_ref47) {
611
+ var addContent = _ref47.addContent,
612
+ getNowData = _ref47.getNowData;
592
613
  return function (item) {
593
614
  addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
594
615
  };
595
616
  };
596
- var handleStatusField = function handleStatusField(_ref47) {
597
- var addContent = _ref47.addContent,
598
- getNowData = _ref47.getNowData;
617
+ var handleStatusField = function handleStatusField(_ref48) {
618
+ var addContent = _ref48.addContent,
619
+ getNowData = _ref48.getNowData;
599
620
  return function (item) {
600
621
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
601
622
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
602
623
  };
603
624
  };
604
- var handleGoodStatus = function handleGoodStatus(_ref48) {
605
- var addContent = _ref48.addContent,
606
- getNowData = _ref48.getNowData;
625
+ var handleGoodStatus = function handleGoodStatus(_ref49) {
626
+ var addContent = _ref49.addContent,
627
+ getNowData = _ref49.getNowData;
607
628
  return function (item) {
608
629
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
609
630
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
@@ -611,13 +632,13 @@ var handleGoodStatus = function handleGoodStatus(_ref48) {
611
632
  }));
612
633
  };
613
634
  };
614
- var processComponent = function processComponent(_ref49) {
615
- var params = _ref49.params,
616
- nowData = _ref49.nowData,
617
- updateFlag = _ref49.updateFlag,
618
- detail = _ref49.detail,
619
- accountName = _ref49.accountName,
620
- getValueByField = _ref49.getValueByField;
635
+ var processComponent = function processComponent(_ref50) {
636
+ var params = _ref50.params,
637
+ nowData = _ref50.nowData,
638
+ updateFlag = _ref50.updateFlag,
639
+ detail = _ref50.detail,
640
+ accountName = _ref50.accountName,
641
+ getValueByField = _ref50.getValueByField;
621
642
  return function (item) {
622
643
  var contentVoList = [];
623
644
  var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
@@ -773,6 +794,9 @@ var processComponent = function processComponent(_ref49) {
773
794
  case 'WDT_SEND_GOOD':
774
795
  wrapFn(handleWdtSendGood);
775
796
  break;
797
+ case 'GY_SEND_GOOD':
798
+ wrapFn(handleGySendGood);
799
+ break;
776
800
  case 'LOGISTICS_TRAJECTORY':
777
801
  wrapFn(handleLogisticsTrajectory);
778
802
  break;
@@ -782,6 +806,7 @@ var processComponent = function processComponent(_ref49) {
782
806
  case 'BS_GOODS':
783
807
  case 'WDT_GOODS':
784
808
  case 'BS_E3_GOODS':
809
+ case 'GY_GOODS':
785
810
  wrapFn(handleErpGoods);
786
811
  break;
787
812
  case 'BS_EXCHANGE_GOODS':
@@ -792,6 +817,7 @@ var processComponent = function processComponent(_ref49) {
792
817
  break;
793
818
  case 'BS_REISSUE_GOODS':
794
819
  case 'WDT_REISSUE_GOODS':
820
+ case 'GY_REISSUE_GOODS':
795
821
  wrapFn(handleBsOrWdtReissueGoods);
796
822
  break;
797
823
  case 'BS_RETURN_GOODS':
@@ -806,6 +832,7 @@ var processComponent = function processComponent(_ref49) {
806
832
  case 'WLN_SYSTEM_ORDER':
807
833
  case 'WDT_SYSTEM_ORDER':
808
834
  case 'BS_E3_SYSTEM_ORDER':
835
+ case 'GY_SYSTEM_ORDER':
809
836
  wrapFn(handleSystemOrder);
810
837
  break;
811
838
  case 'BUYER_MESSAGE_NOTICE':
@@ -49,6 +49,9 @@ export declare const COMPONENT_MAP_NAME: {
49
49
  };
50
50
  export declare const EXCLUDE_REPLACE_TOP_COMPONENT: string[];
51
51
  export declare const INNER_REPLACE_COMPONENT: string[];
52
+ export declare const COMPONENT_MAP_REPEATRANGE: {
53
+ [key: string]: string;
54
+ };
52
55
  export declare const getReplaceWarnValues: (templateDetail: {
53
56
  componentDtoList: any[];
54
57
  }, keyValues: {
@@ -88,6 +91,7 @@ export declare const bsE3SystemOrderBackValues: ({ templateList, value, form }:
88
91
  export declare const wlnSystemOrderBackValues: ({ templateList, value, form }: any) => void;
89
92
  export declare const kmSystemOrderBackValues: ({ templateList, value, form }: any) => void;
90
93
  export declare const wdtSystemOrderBackValues: ({ templateList, value, form }: any) => void;
94
+ export declare const gySystemOrderBackValues: ({ templateList, value, form }: any) => void;
91
95
  export declare const getMappingConfigByTemplateDetail: (templateDetail: {
92
96
  componentDtoList: any;
93
97
  uniqueKey: string;