@kmkf-fe-packages/basic-components 2.0.12-beta.2 → 2.0.14

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.
package/dist/index.js CHANGED
@@ -11020,7 +11020,7 @@ var typeInitValueMap = {
11020
11020
  }]
11021
11021
  };
11022
11022
  var jstGoods = function jstGoods(props) {
11023
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
11023
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8;
11024
11024
  var _props$value = props.value,
11025
11025
  value = _props$value === void 0 ? [] : _props$value,
11026
11026
  onChange = props.onChange,
@@ -11037,8 +11037,7 @@ var jstGoods = function jstGoods(props) {
11037
11037
  changeIndex = _useState2[0],
11038
11038
  setChangeIndex = _useState2[1]; //选中的包裹
11039
11039
  var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
11040
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
11041
- var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
11040
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy'].includes(platformType);
11042
11041
  var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
11043
11042
  React.useEffect(function () {
11044
11043
  //没有值塞个默认值
@@ -11050,7 +11049,7 @@ var jstGoods = function jstGoods(props) {
11050
11049
  if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
11051
11050
  setChangeIndex(0);
11052
11051
  }
11053
- }, [value]);
11052
+ }, value);
11054
11053
  var content = function content(item, index) {
11055
11054
  return /*#__PURE__*/React__default['default'].createElement("div", {
11056
11055
  style: {
@@ -11078,14 +11077,7 @@ var jstGoods = function jstGoods(props) {
11078
11077
  changeOrderInfo['sendId'] = option.value;
11079
11078
  }
11080
11079
  if (isSelectName && type === 'sendName') {
11081
- if (isSendGoodSavedId) {
11082
- // 如果发货仓名称存的是id,将名称存入快照
11083
- changeOrderInfo['sendSnapshotName'] = option.label;
11084
- } else {
11085
- // 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
11086
- changeOrderInfo['sendSnapshotId'] = option.value;
11087
- changeOrderInfo['sendName'] = option.label;
11088
- }
11080
+ changeOrderInfo['sendSnapshotName'] = option.label;
11089
11081
  }
11090
11082
  var newList = _toConsumableArray(value);
11091
11083
  newList[changeIndex] = changeOrderInfo;
@@ -11185,7 +11177,7 @@ var jstGoods = function jstGoods(props) {
11185
11177
  showSearch: true,
11186
11178
  options: sendOptions,
11187
11179
  filterOption: filterOption,
11188
- value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendSnapshotId) || ((_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName) || null,
11180
+ value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
11189
11181
  onChange: function onChange(value, option) {
11190
11182
  return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
11191
11183
  }
@@ -11195,14 +11187,14 @@ var jstGoods = function jstGoods(props) {
11195
11187
  onChange: function onChange(e) {
11196
11188
  return changeInputHandle(e.target.value, 'sendName');
11197
11189
  },
11198
- value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
11190
+ value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName
11199
11191
  }))) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11200
11192
  disabled: disabled,
11201
11193
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
11202
11194
  onChange: function onChange(e) {
11203
11195
  return changeInputHandle(e.target.value, 'deliveryNo');
11204
11196
  },
11205
- value: (_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName
11197
+ value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
11206
11198
  })) : null) : null);
11207
11199
  };
11208
11200
 
@@ -12174,13 +12166,19 @@ var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
12174
12166
  var getTableData$1 = function getTableData(_ref, formData) {
12175
12167
  var current = _ref.current,
12176
12168
  pageSize = _ref.pageSize;
12169
+ var data = {
12170
+ goodNo: formData.goodNo || null,
12171
+ goodName: formData.goodName || null,
12172
+ skuCode: formData.skuCode || null,
12173
+ skuId: formData.skuId || null
12174
+ };
12177
12175
  return extendRequest('/qy/gdfw/product/product/page', {
12178
12176
  method: 'post',
12179
12177
  data: _objectSpread2({
12180
12178
  pageSize: pageSize,
12181
12179
  pageNo: current,
12182
- platform: 'JST_ERP'
12183
- }, formData)
12180
+ platform: 'BS_E3_ERP'
12181
+ }, data)
12184
12182
  }).then(function (res) {
12185
12183
  var _res$data = res.data,
12186
12184
  _res$data$productSkuL = _res$data.productSkuList,
@@ -12188,7 +12186,9 @@ var getTableData$1 = function getTableData(_ref, formData) {
12188
12186
  _res$data$total = _res$data.total,
12189
12187
  total = _res$data$total === void 0 ? 0 : _res$data$total;
12190
12188
  var newProducts = productSkuList.map(function (item, index) {
12191
- return _objectSpread2({}, item);
12189
+ return _objectSpread2(_objectSpread2({}, item), {}, {
12190
+ index: index + 1
12191
+ });
12192
12192
  });
12193
12193
  return {
12194
12194
  total: total,
@@ -12207,86 +12207,90 @@ var columns$2 = [{
12207
12207
  }, index + 1);
12208
12208
  },
12209
12209
  width: 80
12210
+ }, {
12211
+ dataIndex: 'specNo',
12212
+ title: "SKU",
12213
+ ellipsis: true,
12214
+ width: 200
12215
+ }, {
12216
+ dataIndex: 'specId',
12217
+ title: "SKU ID",
12218
+ ellipsis: true,
12219
+ width: 80
12210
12220
  }, {
12211
12221
  dataIndex: 'goodName',
12212
- title: '商品名称',
12213
- width: 250,
12214
- ellipsis: true
12222
+ title: "\u5546\u54C1\u540D\u79F0",
12223
+ ellipsis: true,
12224
+ width: 250
12215
12225
  }, {
12226
+ dataIndex: 'goodShortName',
12227
+ title: "\u5546\u54C1\u7B80\u79F0",
12228
+ ellipsis: true,
12229
+ width: 250
12230
+ },
12231
+ // {
12232
+ // dataIndex: 'goodPicUrl',
12233
+ // title: `商品图片`,
12234
+ // ellipsis: true,
12235
+ // width: 100,
12236
+ // render: (picUrl: string) => {
12237
+ // return (
12238
+ // <img
12239
+ // style={{
12240
+ // width: '40px',
12241
+ // height: '40px',
12242
+ // objectFit: 'contain',
12243
+ // }}
12244
+ // src={picUrl}
12245
+ // ></img>
12246
+ // );
12247
+ // },
12248
+ // },
12249
+ {
12216
12250
  dataIndex: 'goodNo',
12217
- title: '商品编码',
12218
- width: 200,
12219
- ellipsis: true
12251
+ title: "\u8D27\u53F7",
12252
+ ellipsis: true,
12253
+ width: 150
12220
12254
  }, {
12221
- dataIndex: 'styleCode',
12222
- title: '款式编码',
12223
- width: 200,
12224
- ellipsis: true
12255
+ dataIndex: 'goodId',
12256
+ title: "\u8D27\u53F7ID",
12257
+ ellipsis: true,
12258
+ width: 100
12225
12259
  }, {
12226
- dataIndex: 'propertiesValue',
12227
- title: '规格值',
12228
- width: 200,
12229
- ellipsis: true
12260
+ dataIndex: 'colorName',
12261
+ title: "\u989C\u8272\u540D\u79F0",
12262
+ ellipsis: true,
12263
+ width: 100
12230
12264
  }, {
12231
- dataIndex: 'goodPicUrl',
12232
- title: '商品图片',
12233
- width: 100,
12234
- render: function render(picUrl) {
12235
- return /*#__PURE__*/React__default['default'].createElement("img", {
12236
- style: {
12237
- width: '40px',
12238
- height: '40px',
12239
- objectFit: 'contain'
12240
- },
12241
- src: picUrl
12242
- });
12243
- }
12265
+ dataIndex: 'colorCode',
12266
+ title: "\u989C\u8272\u4EE3\u7801",
12267
+ ellipsis: true,
12268
+ width: 100
12244
12269
  }, {
12245
- dataIndex: 'goodShortName',
12246
- title: "\u5546\u54C1\u7B80\u79F0",
12270
+ dataIndex: 'sizeName',
12271
+ title: "\u5C3A\u7801\u540D\u79F0",
12247
12272
  ellipsis: true,
12248
- width: 250
12273
+ width: 100
12249
12274
  }, {
12250
- dataIndex: 'brandName',
12251
- title: '品牌名称',
12252
- width: 200,
12253
- ellipsis: true
12275
+ dataIndex: 'sizeCode',
12276
+ title: "\u5C3A\u7801\u4EE3\u7801",
12277
+ ellipsis: true,
12278
+ width: 100
12254
12279
  }, {
12255
- dataIndex: 'retailPrice',
12256
- title: "\u9500\u552E\u4EF7\u683C",
12280
+ dataIndex: 'brandName',
12281
+ title: "\u54C1\u724C\u540D\u79F0",
12257
12282
  ellipsis: true,
12258
- width: 100,
12259
- render: function render(price) {
12260
- return price || price === 0 ? Number(price).toFixed(2) : '';
12261
- }
12283
+ width: 100
12262
12284
  }, {
12263
12285
  dataIndex: 'marketPrice',
12264
12286
  title: "\u5E02\u573A\u4EF7",
12265
12287
  ellipsis: true,
12266
- width: 100,
12267
- render: function render(price) {
12268
- return price || price === 0 ? Number(price).toFixed(2) : '';
12269
- }
12270
- }, {
12271
- dataIndex: 'costPrice',
12272
- title: "\u6210\u672C\u4EF7",
12273
- ellipsis: true,
12274
- width: 100,
12275
- render: function render(price) {
12276
- return price || price === 0 ? Number(price).toFixed(2) : '';
12277
- }
12288
+ width: 100
12278
12289
  }, {
12279
- dataIndex: 'skuType',
12280
- title: "\u5546\u54C1\u7C7B\u578B",
12290
+ dataIndex: 'retailPrice',
12291
+ title: "\u552E\u4EF7",
12281
12292
  ellipsis: true,
12282
- width: 100,
12283
- render: function render() {
12284
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12285
- return {
12286
- 'combine': '组合装商品',
12287
- 'normal': '普通商品'
12288
- }[type] || type;
12289
- }
12293
+ width: 100
12290
12294
  }];
12291
12295
  var GoodList$1 = function GoodList(props, ref) {
12292
12296
  var _useState = React.useState([]),
@@ -12320,6 +12324,17 @@ var GoodList$1 = function GoodList(props, ref) {
12320
12324
  layout: "inline",
12321
12325
  form: form
12322
12326
  }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12327
+ name: "goodNo",
12328
+ style: {
12329
+ marginBottom: '12px'
12330
+ }
12331
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12332
+ placeholder: "\u5546\u54C1\u8D27\u53F7",
12333
+ allowClear: true,
12334
+ style: {
12335
+ width: 150
12336
+ }
12337
+ })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12323
12338
  name: "goodName",
12324
12339
  style: {
12325
12340
  marginBottom: '12px'
@@ -12331,23 +12346,23 @@ var GoodList$1 = function GoodList(props, ref) {
12331
12346
  width: 150
12332
12347
  }
12333
12348
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12334
- name: "goodNo",
12349
+ name: "skuCode",
12335
12350
  style: {
12336
12351
  marginBottom: '12px'
12337
12352
  }
12338
12353
  }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12339
- placeholder: "\u5546\u54C1\u7F16\u7801",
12354
+ placeholder: "SKU",
12340
12355
  allowClear: true,
12341
12356
  style: {
12342
12357
  width: 150
12343
12358
  }
12344
12359
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12345
- name: "styleCode",
12360
+ name: "skuId",
12346
12361
  style: {
12347
12362
  marginBottom: '12px'
12348
12363
  }
12349
12364
  }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12350
- placeholder: "\u6B3E\u5F0F\u7F16\u7801",
12365
+ placeholder: "SKU ID",
12351
12366
  allowClear: true,
12352
12367
  style: {
12353
12368
  width: 150
@@ -12370,50 +12385,41 @@ var GoodList$1 = function GoodList(props, ref) {
12370
12385
  fixed: true,
12371
12386
  onSelect: function onSelect(record, selected) {
12372
12387
  if (selected) {
12373
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.goodNo]));
12388
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
12374
12389
  setSelect([].concat(_toConsumableArray(selectList), [record]));
12375
12390
  } else {
12376
12391
  setSelectIds(selectIds.filter(function (t) {
12377
- return t !== record.goodNo;
12392
+ return t !== record.specNo;
12378
12393
  }));
12379
12394
  setSelect(selectList.filter(function (t) {
12380
- return t.goodNo !== record.goodNo;
12395
+ return t.specNo !== record.specNo;
12381
12396
  }));
12382
12397
  }
12383
12398
  },
12384
12399
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
12385
12400
  if (selected) {
12386
12401
  setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
12387
- return t.goodNo;
12402
+ return t.specNo;
12388
12403
  }))));
12389
12404
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
12390
12405
  } else {
12391
12406
  setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
12392
- return t.goodNo;
12407
+ return t.specNo;
12393
12408
  })));
12394
12409
  var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
12395
- return arrVal.goodNo !== othVal.goodNo;
12410
+ return arrVal.specNo !== othVal.specNo;
12396
12411
  });
12397
12412
  setSelect(list);
12398
12413
  }
12399
- },
12400
- getCheckboxProps: function getCheckboxProps(record) {
12401
- var options = {
12402
- disabled: (props.selectedRows || []).map(function (row) {
12403
- return row.goodNo || row.skuId;
12404
- }).includes(record.goodNo || record.skuId),
12405
- name: record.goodNo
12406
- };
12407
- return options;
12408
12414
  }
12409
12415
  };
12410
12416
  var showTable = function showTable() {
12411
12417
  var handleDelete = function handleDelete(record) {
12412
12418
  setSelectIds(selectIds.filter(function (t) {
12413
- return t !== record.goodNo;
12419
+ return t !== record.specNo;
12414
12420
  }));
12415
12421
  setSelect(selectList.filter(function (t) {
12416
- return t.goodNo !== record.goodNo;
12422
+ return t.specNo !== record.specNo;
12417
12423
  }));
12418
12424
  };
12419
12425
  var showColumns = [{
@@ -12437,7 +12443,7 @@ var GoodList$1 = function GoodList(props, ref) {
12437
12443
  }
12438
12444
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
12439
12445
  columns: showColumns,
12440
- rowKey: 'goodNo',
12446
+ rowKey: 'specNo',
12441
12447
  dataSource: selectList,
12442
12448
  scroll: {
12443
12449
  x: '100%',
@@ -12457,7 +12463,7 @@ var GoodList$1 = function GoodList(props, ref) {
12457
12463
  }
12458
12464
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12459
12465
  rowSelection: rowSelection,
12460
- rowKey: "goodNo",
12466
+ rowKey: "specNo",
12461
12467
  columns: columns$2,
12462
12468
  scroll: {
12463
12469
  x: '100%',
@@ -12474,15 +12480,13 @@ var GoodList$1 = function GoodList(props, ref) {
12474
12480
  type: "text"
12475
12481
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
12476
12482
  };
12477
- var GyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$1);
12483
+ var BsE3GoodList = /*#__PURE__*/React.forwardRef(GoodList$1);
12478
12484
 
12479
- var GyGoodsModal = function GyGoodsModal(props, ref) {
12485
+ var GoodsModal$4 = function GoodsModal(props, ref) {
12480
12486
  React.useImperativeHandle(ref, function () {
12481
12487
  return {
12482
- open: function open(shopCode) {
12483
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12488
+ open: function open() {
12484
12489
  setVisible(true);
12485
- setSelectedRows(options.value || []);
12486
12490
  }
12487
12491
  };
12488
12492
  });
@@ -12492,17 +12496,13 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
12492
12496
  _useState2 = _slicedToArray(_useState, 2),
12493
12497
  visible = _useState2[0],
12494
12498
  setVisible = _useState2[1];
12495
- var _useState3 = React.useState([]),
12496
- _useState4 = _slicedToArray(_useState3, 2),
12497
- selectedRows = _useState4[0],
12498
- setSelectedRows = _useState4[1];
12499
- var gyGoodsListRef = React.useRef(null);
12499
+ var bsE3GoodListRef = React.useRef(null);
12500
12500
  var _onCancel = function onCancel() {
12501
12501
  setVisible(false);
12502
12502
  };
12503
12503
  var onOk = function onOk() {
12504
- var _gyGoodsListRef$curre;
12505
- var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
12504
+ var _bsE3GoodListRef$curr;
12505
+ var selectedList = ((_bsE3GoodListRef$curr = bsE3GoodListRef.current) === null || _bsE3GoodListRef$curr === void 0 ? void 0 : _bsE3GoodListRef$curr.getSelectGoodList()) || [];
12506
12506
  onSubmit(selectedList);
12507
12507
  _onCancel();
12508
12508
  };
@@ -12517,29 +12517,28 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
12517
12517
  },
12518
12518
  onOk: onOk,
12519
12519
  wrapClassName: "goodModal"
12520
- }, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
12521
- ref: gyGoodsListRef,
12522
- selectedRows: selectedRows
12520
+ }, /*#__PURE__*/React__default['default'].createElement(BsE3GoodList, {
12521
+ ref: bsE3GoodListRef
12523
12522
  })));
12524
12523
  };
12525
- var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
12524
+ var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
12526
12525
 
12527
12526
  var getTableData$2 = function getTableData(_ref, formData) {
12528
12527
  var current = _ref.current,
12529
12528
  pageSize = _ref.pageSize;
12530
12529
  var data = {
12531
12530
  goodShortName: formData.goodShortName || null,
12532
- goodNo: formData.goodNo || null,
12533
- goodName: formData.goodName || null,
12531
+ skuName: formData.skuName || null,
12534
12532
  skuCode: formData.skuCode || null,
12535
- skuId: formData.skuId || null
12533
+ goodName: formData.goodName || null,
12534
+ goodNo: formData.goodNo || null
12536
12535
  };
12537
12536
  return extendRequest('/qy/gdfw/product/product/page', {
12538
12537
  method: 'post',
12539
12538
  data: _objectSpread2({
12540
12539
  pageSize: pageSize,
12541
12540
  pageNo: current,
12542
- platform: 'BS_E3_ERP'
12541
+ platform: 'GY_ERP'
12543
12542
  }, data)
12544
12543
  }).then(function (res) {
12545
12544
  var _res$data = res.data,
@@ -12548,9 +12547,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
12548
12547
  _res$data$total = _res$data.total,
12549
12548
  total = _res$data$total === void 0 ? 0 : _res$data$total;
12550
12549
  var newProducts = productSkuList.map(function (item, index) {
12551
- return _objectSpread2(_objectSpread2({}, item), {}, {
12552
- index: index + 1
12553
- });
12550
+ return _objectSpread2({}, item);
12554
12551
  });
12555
12552
  return {
12556
12553
  total: total,
@@ -12570,414 +12567,44 @@ var columns$3 = [{
12570
12567
  },
12571
12568
  width: 80
12572
12569
  }, {
12573
- dataIndex: 'specNo',
12574
- title: "SKU",
12575
- ellipsis: true,
12576
- width: 200
12570
+ dataIndex: 'specName',
12571
+ title: 'SKU名称',
12572
+ width: 250,
12573
+ ellipsis: true
12577
12574
  }, {
12578
- dataIndex: 'specId',
12579
- title: "SKU ID",
12580
- ellipsis: true,
12581
- width: 80
12575
+ dataIndex: 'specNo',
12576
+ title: 'SKU编码',
12577
+ width: 200,
12578
+ ellipsis: true
12582
12579
  }, {
12583
12580
  dataIndex: 'goodName',
12584
- title: "\u5546\u54C1\u540D\u79F0",
12585
- ellipsis: true,
12586
- width: 250
12581
+ title: '商品名称',
12582
+ width: 250,
12583
+ ellipsis: true
12587
12584
  }, {
12588
12585
  dataIndex: 'goodShortName',
12589
12586
  title: "\u5546\u54C1\u7B80\u79F0",
12590
12587
  ellipsis: true,
12591
12588
  width: 250
12592
- },
12593
- // {
12594
- // dataIndex: 'goodPicUrl',
12595
- // title: `商品图片`,
12596
- // ellipsis: true,
12597
- // width: 100,
12598
- // render: (picUrl: string) => {
12599
- // return (
12600
- // <img
12601
- // style={{
12602
- // width: '40px',
12603
- // height: '40px',
12604
- // objectFit: 'contain',
12605
- // }}
12606
- // src={picUrl}
12607
- // ></img>
12608
- // );
12609
- // },
12610
- // },
12611
- {
12589
+ }, {
12612
12590
  dataIndex: 'goodNo',
12613
- title: "\u8D27\u53F7",
12614
- ellipsis: true,
12615
- width: 150
12591
+ title: '商品编码',
12592
+ width: 200,
12593
+ ellipsis: true
12616
12594
  }, {
12617
- dataIndex: 'goodId',
12618
- title: "\u8D27\u53F7ID",
12619
- ellipsis: true,
12620
- width: 100
12621
- }, {
12622
- dataIndex: 'colorName',
12623
- title: "\u989C\u8272\u540D\u79F0",
12624
- ellipsis: true,
12625
- width: 100
12626
- }, {
12627
- dataIndex: 'colorCode',
12628
- title: "\u989C\u8272\u4EE3\u7801",
12629
- ellipsis: true,
12630
- width: 100
12631
- }, {
12632
- dataIndex: 'sizeName',
12633
- title: "\u5C3A\u7801\u540D\u79F0",
12634
- ellipsis: true,
12635
- width: 100
12636
- }, {
12637
- dataIndex: 'sizeCode',
12638
- title: "\u5C3A\u7801\u4EE3\u7801",
12639
- ellipsis: true,
12640
- width: 100
12641
- }, {
12642
- dataIndex: 'brandName',
12643
- title: "\u54C1\u724C\u540D\u79F0",
12644
- ellipsis: true,
12645
- width: 100
12646
- }, {
12647
- dataIndex: 'marketPrice',
12648
- title: "\u5E02\u573A\u4EF7",
12649
- ellipsis: true,
12650
- width: 100
12651
- }, {
12652
- dataIndex: 'retailPrice',
12653
- title: "\u552E\u4EF7",
12654
- ellipsis: true,
12655
- width: 100
12656
- }];
12657
- var GoodList$2 = function GoodList(props, ref) {
12658
- var _useState = React.useState([]),
12659
- _useState2 = _slicedToArray(_useState, 2),
12660
- selectList = _useState2[0],
12661
- setSelect = _useState2[1];
12662
- var _useState3 = React.useState([]),
12663
- _useState4 = _slicedToArray(_useState3, 2),
12664
- selectIds = _useState4[0],
12665
- setSelectIds = _useState4[1];
12666
- React.useImperativeHandle(ref, function () {
12667
- return {
12668
- getSelectGoodList: function getSelectGoodList() {
12669
- return selectList;
12670
- }
12671
- };
12672
- });
12673
- var _Form$useForm = antd.Form.useForm(),
12674
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12675
- form = _Form$useForm2[0];
12676
- var _useAntdTable = ahooks.useAntdTable(getTableData$2, {
12677
- defaultPageSize: 10,
12678
- form: form
12679
- }),
12680
- tableProps = _useAntdTable.tableProps,
12681
- search = _useAntdTable.search,
12682
- params = _useAntdTable.params;
12683
- var submit = search.submit,
12684
- reset = search.reset;
12685
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
12686
- layout: "inline",
12687
- form: form
12688
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12689
- name: "goodShortName",
12690
- style: {
12691
- marginBottom: '12px'
12692
- }
12693
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12694
- placeholder: "\u5546\u54C1\u7B80\u79F0",
12695
- allowClear: true,
12696
- style: {
12697
- width: 150
12698
- }
12699
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12700
- name: "goodNo",
12701
- style: {
12702
- marginBottom: '12px'
12703
- }
12704
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12705
- placeholder: "\u5546\u54C1\u8D27\u53F7",
12706
- allowClear: true,
12707
- style: {
12708
- width: 150
12709
- }
12710
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12711
- name: "goodName",
12712
- style: {
12713
- marginBottom: '12px'
12714
- }
12715
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12716
- placeholder: "\u5546\u54C1\u540D\u79F0",
12717
- allowClear: true,
12718
- style: {
12719
- width: 150
12720
- }
12721
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12722
- name: "skuCode",
12723
- style: {
12724
- marginBottom: '12px'
12725
- }
12726
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12727
- placeholder: "SKU",
12728
- allowClear: true,
12729
- style: {
12730
- width: 150
12731
- }
12732
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12733
- name: "skuId",
12734
- style: {
12735
- marginBottom: '12px'
12736
- }
12737
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12738
- placeholder: "SKU ID",
12739
- allowClear: true,
12740
- style: {
12741
- width: 150
12742
- }
12743
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12744
- style: {
12745
- marginBottom: '12px'
12746
- }
12747
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12748
- type: "primary",
12749
- style: {
12750
- marginRight: '8px'
12751
- },
12752
- onClick: submit
12753
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12754
- onClick: reset
12755
- }, "\u91CD\u7F6E")));
12756
- var rowSelection = {
12757
- selectedRowKeys: selectIds,
12758
- fixed: true,
12759
- onSelect: function onSelect(record, selected) {
12760
- if (selected) {
12761
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
12762
- setSelect([].concat(_toConsumableArray(selectList), [record]));
12763
- } else {
12764
- setSelectIds(selectIds.filter(function (t) {
12765
- return t !== record.specNo;
12766
- }));
12767
- setSelect(selectList.filter(function (t) {
12768
- return t.specNo !== record.specNo;
12769
- }));
12770
- }
12771
- },
12772
- onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
12773
- if (selected) {
12774
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
12775
- return t.specNo;
12776
- }))));
12777
- setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
12778
- } else {
12779
- setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
12780
- return t.specNo;
12781
- })));
12782
- var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
12783
- return arrVal.specNo !== othVal.specNo;
12784
- });
12785
- setSelect(list);
12786
- }
12787
- }
12788
- };
12789
- var showTable = function showTable() {
12790
- var handleDelete = function handleDelete(record) {
12791
- setSelectIds(selectIds.filter(function (t) {
12792
- return t !== record.specNo;
12793
- }));
12794
- setSelect(selectList.filter(function (t) {
12795
- return t.specNo !== record.specNo;
12796
- }));
12797
- };
12798
- var showColumns = [{
12799
- dataIndex: '',
12800
- title: "\u64CD\u4F5C",
12801
- ellipsis: true,
12802
- width: 100,
12803
- render: function render(val, record) {
12804
- return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12805
- type: "link",
12806
- onClick: function onClick() {
12807
- return handleDelete(record);
12808
- }
12809
- }, "\u5220\u9664");
12810
- }
12811
- }].concat(lodash.takeRight(columns$3, columns$3.length - 1));
12812
- return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
12813
- style: {
12814
- width: '100%',
12815
- maxWidth: '387px'
12816
- }
12817
- }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
12818
- columns: showColumns,
12819
- rowKey: 'specNo',
12820
- dataSource: selectList,
12821
- scroll: {
12822
- x: '100%',
12823
- y: 250
12824
- },
12825
- pagination: {
12826
- size: 'small',
12827
- total: selectIds.length,
12828
- pageSize: 10,
12829
- showSizeChanger: false
12830
- }
12831
- })) : null;
12832
- };
12833
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
12834
- style: {
12835
- marginTop: '4px'
12836
- }
12837
- }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12838
- rowSelection: rowSelection,
12839
- rowKey: "specNo",
12840
- columns: columns$3,
12841
- scroll: {
12842
- x: '100%',
12843
- y: 250
12844
- }
12845
- }, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
12846
- getPopupContainer: function getPopupContainer(triggerNode) {
12847
- return triggerNode.parentElement;
12848
- },
12849
- content: showTable(),
12850
- title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
12851
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12852
- danger: true,
12853
- type: "text"
12854
- }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
12855
- };
12856
- var BsE3GoodList = /*#__PURE__*/React.forwardRef(GoodList$2);
12857
-
12858
- var GoodsModal$4 = function GoodsModal(props, ref) {
12859
- React.useImperativeHandle(ref, function () {
12860
- return {
12861
- open: function open() {
12862
- setVisible(true);
12863
- }
12864
- };
12865
- });
12866
- var onSubmit = props.onSubmit,
12867
- width = props.width;
12868
- var _useState = React.useState(false),
12869
- _useState2 = _slicedToArray(_useState, 2),
12870
- visible = _useState2[0],
12871
- setVisible = _useState2[1];
12872
- var bsE3GoodListRef = React.useRef(null);
12873
- var _onCancel = function onCancel() {
12874
- setVisible(false);
12875
- };
12876
- var onOk = function onOk() {
12877
- var _bsE3GoodListRef$curr;
12878
- var selectedList = ((_bsE3GoodListRef$curr = bsE3GoodListRef.current) === null || _bsE3GoodListRef$curr === void 0 ? void 0 : _bsE3GoodListRef$curr.getSelectGoodList()) || [];
12879
- onSubmit(selectedList);
12880
- _onCancel();
12881
- };
12882
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
12883
- title: '选择商品',
12884
- okText: '确认',
12885
- cancelText: '取消',
12886
- visible: visible,
12887
- width: width || 850,
12888
- onCancel: function onCancel() {
12889
- _onCancel();
12890
- },
12891
- onOk: onOk,
12892
- wrapClassName: "goodModal"
12893
- }, /*#__PURE__*/React__default['default'].createElement(BsE3GoodList, {
12894
- ref: bsE3GoodListRef
12895
- })));
12896
- };
12897
- var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
12898
-
12899
- var getTableData$3 = function getTableData(_ref, formData) {
12900
- var current = _ref.current,
12901
- pageSize = _ref.pageSize;
12902
- var data = {
12903
- goodShortName: formData.goodShortName || null,
12904
- skuName: formData.skuName || null,
12905
- skuCode: formData.skuCode || null,
12906
- goodName: formData.goodName || null,
12907
- goodNo: formData.goodNo || null
12908
- };
12909
- return extendRequest('/qy/gdfw/product/product/page', {
12910
- method: 'post',
12911
- data: _objectSpread2({
12912
- pageSize: pageSize,
12913
- pageNo: current,
12914
- platform: 'GY_ERP'
12915
- }, data)
12916
- }).then(function (res) {
12917
- var _res$data = res.data,
12918
- _res$data$productSkuL = _res$data.productSkuList,
12919
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12920
- _res$data$total = _res$data.total,
12921
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12922
- var newProducts = productSkuList.map(function (item, index) {
12923
- return _objectSpread2({}, item);
12924
- });
12925
- return {
12926
- total: total,
12927
- list: newProducts
12928
- };
12929
- });
12930
- };
12931
- var columns$4 = [{
12932
- dataIndex: 'index',
12933
- title: 'NO',
12934
- render: function render(val, record, index) {
12935
- return /*#__PURE__*/React__default['default'].createElement("div", {
12936
- style: {
12937
- width: 25
12938
- }
12939
- }, index + 1);
12940
- },
12941
- width: 80
12942
- }, {
12943
- dataIndex: 'specName',
12944
- title: 'SKU名称',
12945
- width: 250,
12946
- ellipsis: true
12947
- }, {
12948
- dataIndex: 'specNo',
12949
- title: 'SKU编码',
12950
- width: 200,
12951
- ellipsis: true
12952
- }, {
12953
- dataIndex: 'goodName',
12954
- title: '商品名称',
12955
- width: 250,
12956
- ellipsis: true
12957
- }, {
12958
- dataIndex: 'goodShortName',
12959
- title: "\u5546\u54C1\u7B80\u79F0",
12960
- ellipsis: true,
12961
- width: 250
12962
- }, {
12963
- dataIndex: 'goodNo',
12964
- title: '商品编码',
12965
- width: 200,
12966
- ellipsis: true
12967
- }, {
12968
- dataIndex: 'goodPicUrl',
12969
- title: '商品图片',
12970
- width: 100,
12971
- render: function render(picUrl) {
12972
- return /*#__PURE__*/React__default['default'].createElement("img", {
12973
- style: {
12974
- width: '40px',
12975
- height: '40px',
12976
- objectFit: 'contain'
12977
- },
12978
- src: picUrl
12979
- });
12980
- }
12595
+ dataIndex: 'goodPicUrl',
12596
+ title: '商品图片',
12597
+ width: 100,
12598
+ render: function render(picUrl) {
12599
+ return /*#__PURE__*/React__default['default'].createElement("img", {
12600
+ style: {
12601
+ width: '40px',
12602
+ height: '40px',
12603
+ objectFit: 'contain'
12604
+ },
12605
+ src: picUrl
12606
+ });
12607
+ }
12981
12608
  }, {
12982
12609
  dataIndex: 'brandName',
12983
12610
  title: '品牌名称',
@@ -12994,7 +12621,7 @@ var columns$4 = [{
12994
12621
  ellipsis: true,
12995
12622
  width: 100
12996
12623
  }];
12997
- var GoodList$3 = function GoodList(props, ref) {
12624
+ var GoodList$2 = function GoodList(props, ref) {
12998
12625
  var _useState = React.useState([]),
12999
12626
  _useState2 = _slicedToArray(_useState, 2),
13000
12627
  selectList = _useState2[0],
@@ -13013,7 +12640,7 @@ var GoodList$3 = function GoodList(props, ref) {
13013
12640
  var _Form$useForm = antd.Form.useForm(),
13014
12641
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
13015
12642
  form = _Form$useForm2[0];
13016
- var _useAntdTable = ahooks.useAntdTable(getTableData$3, {
12643
+ var _useAntdTable = ahooks.useAntdTable(getTableData$2, {
13017
12644
  defaultPageSize: 10,
13018
12645
  form: form
13019
12646
  }),
@@ -13148,7 +12775,7 @@ var GoodList$3 = function GoodList(props, ref) {
13148
12775
  }
13149
12776
  }, "\u5220\u9664");
13150
12777
  }
13151
- }].concat(lodash.takeRight(columns$4, columns$4.length - 1));
12778
+ }].concat(lodash.takeRight(columns$3, columns$3.length - 1));
13152
12779
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
13153
12780
  style: {
13154
12781
  width: '100%',
@@ -13177,7 +12804,7 @@ var GoodList$3 = function GoodList(props, ref) {
13177
12804
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
13178
12805
  rowSelection: rowSelection,
13179
12806
  rowKey: "specNo",
13180
- columns: columns$4,
12807
+ columns: columns$3,
13181
12808
  scroll: {
13182
12809
  x: '100%',
13183
12810
  y: 250
@@ -13193,9 +12820,9 @@ var GoodList$3 = function GoodList(props, ref) {
13193
12820
  type: "text"
13194
12821
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
13195
12822
  };
13196
- var GyGoodsList$1 = /*#__PURE__*/React.forwardRef(GoodList$3);
12823
+ var GyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$2);
13197
12824
 
13198
- var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
12825
+ var GyGoodsModal = function GyGoodsModal(props, ref) {
13199
12826
  React.useImperativeHandle(ref, function () {
13200
12827
  return {
13201
12828
  open: function open() {
@@ -13230,11 +12857,11 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
13230
12857
  },
13231
12858
  onOk: onOk,
13232
12859
  wrapClassName: "goodModal"
13233
- }, /*#__PURE__*/React__default['default'].createElement(GyGoodsList$1, {
12860
+ }, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
13234
12861
  ref: gyGoodsListRef
13235
12862
  })));
13236
12863
  };
13237
- var GyGoodsModal$2 = /*#__PURE__*/React.forwardRef(GyGoodsModal$1);
12864
+ var GyGoodsModal$1 = /*#__PURE__*/React.forwardRef(GyGoodsModal);
13238
12865
 
13239
12866
  var getColumns = function getColumns(_ref) {
13240
12867
  var _ref$text = _ref.text,
@@ -14184,284 +13811,10 @@ var getColumns$4 = function getColumns(_ref) {
14184
13811
  title: "SKU\u7F16\u7801",
14185
13812
  align: 'center',
14186
13813
  ellipsis: true,
14187
- width: 150
14188
- }, {
14189
- dataIndex: 'qty',
14190
- title: "\u6570\u91CF",
14191
- width: 100,
14192
- render: function render(val, record, index) {
14193
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14194
- style: {
14195
- width: 70
14196
- },
14197
- value: val,
14198
- min: 1,
14199
- precision: 0,
14200
- onChange: function onChange(num) {
14201
- updateDataHandle({
14202
- qty: num,
14203
- amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
14204
- originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
14205
- }, index);
14206
- }
14207
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14208
- }
14209
- }, {
14210
- dataIndex: 'price',
14211
- title: "\u5B9E\u9645\u5355\u4EF7",
14212
- width: 150,
14213
- render: function render(val, record, index) {
14214
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14215
- style: {
14216
- width: 130
14217
- },
14218
- value: val,
14219
- min: 0,
14220
- precision: 2,
14221
- onChange: function onChange(num) {
14222
- updateDataHandle({
14223
- price: num,
14224
- amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
14225
- }, index);
14226
- }
14227
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14228
- }
14229
- }, {
14230
- dataIndex: 'amount',
14231
- title: "\u5B9E\u9645\u91D1\u989D",
14232
- width: 150
14233
- }, {
14234
- dataIndex: 'originPrice',
14235
- title: "\u6807\u51C6\u5355\u4EF7",
14236
- width: 150
14237
- }, {
14238
- dataIndex: 'originAmount',
14239
- title: "\u6807\u51C6\u91D1\u989D",
14240
- width: 150
14241
- }, {
14242
- dataIndex: 'discountFee',
14243
- title: "\u8BA9\u5229\u91D1\u989D",
14244
- width: 150
14245
- }, {
14246
- dataIndex: 'amountAfter',
14247
- title: "\u8BA9\u5229\u540E\u91D1\u989D",
14248
- width: 150
14249
- }, {
14250
- dataIndex: 'cancel',
14251
- title: "\u662F\u5426\u53D6\u6D88",
14252
- width: 150,
14253
- render: function render(val) {
14254
- return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
14255
- }
14256
- }, {
14257
- dataIndex: 'isGift',
14258
- title: "\u662F\u5426\u8D60\u54C1",
14259
- width: 150,
14260
- render: function render(val, record, index) {
14261
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14262
- value: val,
14263
- onChange: function onChange(value) {
14264
- updateHandle(value, index, 'isGift');
14265
- },
14266
- options: [{
14267
- label: '是',
14268
- value: 1
14269
- }, {
14270
- label: '否',
14271
- value: 0
14272
- }]
14273
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
14274
- }
14275
- }, {
14276
- dataIndex: 'skuNote',
14277
- title: "\u5546\u54C1\u5907\u6CE8",
14278
- width: 150
14279
- }].map(function (item) {
14280
- return _objectSpread2(_objectSpread2({}, item), {}, {
14281
- align: 'center',
14282
- ellipsis: true
14283
- });
14284
- }),
14285
- //管易补发商品信息
14286
- GY_REISSUE_GOODS: [{
14287
- dataIndex: 'goodName',
14288
- title: "\u5546\u54C1\u540D\u79F0",
14289
- width: 150
14290
- }, {
14291
- dataIndex: 'goodShortName',
14292
- title: "\u5546\u54C1\u7B80\u79F0",
14293
- width: 150
14294
- }, {
14295
- dataIndex: 'goodNo',
14296
- title: "\u5546\u54C1\u7F16\u7801",
14297
- width: 200
14298
- }, {
14299
- dataIndex: 'specName',
14300
- title: "SKU\u540D\u79F0",
14301
- align: 'center',
14302
- ellipsis: true,
14303
- width: 250
14304
- }, {
14305
- dataIndex: 'specNo',
14306
- title: "SKU\u7F16\u7801",
14307
- align: 'center',
14308
- ellipsis: true,
14309
- width: 150
14310
- }, {
14311
- dataIndex: 'qty',
14312
- title: "\u6570\u91CF",
14313
- width: 100,
14314
- render: function render(val, record, index) {
14315
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14316
- style: {
14317
- width: 70
14318
- },
14319
- value: val,
14320
- min: 1,
14321
- precision: 0,
14322
- onChange: function onChange(num) {
14323
- updateDataHandle({
14324
- qty: num,
14325
- amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
14326
- originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
14327
- }, index);
14328
- }
14329
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14330
- }
14331
- }, {
14332
- dataIndex: 'price',
14333
- title: "\u5B9E\u9645\u5355\u4EF7",
14334
- width: 150,
14335
- render: function render(val, record, index) {
14336
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14337
- style: {
14338
- width: 130
14339
- },
14340
- value: val,
14341
- min: 0,
14342
- precision: 2,
14343
- onChange: function onChange(num) {
14344
- updateDataHandle({
14345
- price: num,
14346
- amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
14347
- }, index);
14348
- }
14349
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14350
- }
14351
- }, {
14352
- dataIndex: 'amount',
14353
- title: "\u5B9E\u9645\u91D1\u989D",
14354
- width: 150
14355
- }, {
14356
- dataIndex: 'originPrice',
14357
- title: "\u6807\u51C6\u5355\u4EF7",
14358
- width: 150
14359
- }, {
14360
- dataIndex: 'originAmount',
14361
- title: "\u6807\u51C6\u91D1\u989D",
14362
- width: 150
14363
- }, {
14364
- dataIndex: 'isGift',
14365
- title: "\u662F\u5426\u8D60\u54C1",
14366
- width: 150,
14367
- render: function render(val, record, index) {
14368
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14369
- value: val,
14370
- onChange: function onChange(value) {
14371
- updateHandle(value, index, 'isGift');
14372
- },
14373
- options: [{
14374
- label: '是',
14375
- value: 1
14376
- }, {
14377
- label: '否',
14378
- value: 0
14379
- }]
14380
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
14381
- }
14382
- }].map(function (item) {
14383
- return _objectSpread2(_objectSpread2({}, item), {}, {
14384
- align: 'center',
14385
- ellipsis: true
14386
- });
14387
- })
14388
- };
14389
- };
14390
-
14391
- var getColumns$5 = function getColumns(_ref) {
14392
- var _ref$text = _ref.text,
14393
- disabled = _ref.disabled,
14394
- updateHandle = _ref.updateHandle;
14395
- return {
14396
- JST_GOODS: [{
14397
- dataIndex: 'name',
14398
- title: '商品名称',
14399
- width: 150,
14400
- ellipsis: true,
14401
- align: 'center'
14402
- }, {
14403
- dataIndex: 'skuId',
14404
- title: '商品编码',
14405
- width: 150,
14406
- ellipsis: true,
14407
- align: 'center'
14408
- }, {
14409
- dataIndex: 'iId',
14410
- title: '款式编码',
14411
- width: 150,
14412
- ellipsis: true,
14413
- align: 'center'
14414
- }, {
14415
- dataIndex: 'pic',
14416
- title: '商品图片',
14417
- ellipsis: true,
14418
- align: 'center',
14419
- width: 100,
14420
- render: function render(val) {
14421
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
14422
- width: 60,
14423
- src: val
14424
- });
14425
- }
14426
- }, {
14427
- dataIndex: 'propertiesValue',
14428
- title: '规格值',
14429
- width: 150,
14430
- ellipsis: true,
14431
- align: 'center'
14432
- }, {
14433
- dataIndex: 'saleBasePrice',
14434
- title: '原价',
14435
- width: 150,
14436
- ellipsis: true,
14437
- align: 'center',
14438
- render: function render(price) {
14439
- return price || price === 0 ? Number(price).toFixed(2) : '';
14440
- }
14441
- }, {
14442
- dataIndex: 'salePrice',
14443
- title: '单价',
14444
- ellipsis: true,
14445
- align: 'center',
14446
- width: 120,
14447
- render: function render(val, record, index) {
14448
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14449
- style: {
14450
- width: 70
14451
- },
14452
- value: val,
14453
- min: 0,
14454
- precision: 2,
14455
- onChange: function onChange(num) {
14456
- return updateHandle(num, index, 'salePrice');
14457
- }
14458
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14459
- }
13814
+ width: 150
14460
13815
  }, {
14461
13816
  dataIndex: 'qty',
14462
- title: '数量',
14463
- ellipsis: true,
14464
- align: 'center',
13817
+ title: "\u6570\u91CF",
14465
13818
  width: 100,
14466
13819
  render: function render(val, record, index) {
14467
13820
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
@@ -14472,31 +13825,65 @@ var getColumns$5 = function getColumns(_ref) {
14472
13825
  min: 1,
14473
13826
  precision: 0,
14474
13827
  onChange: function onChange(num) {
14475
- return updateHandle(num, index, 'qty');
13828
+ updateDataHandle({
13829
+ qty: num,
13830
+ amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
13831
+ originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
13832
+ }, index);
14476
13833
  }
14477
13834
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14478
13835
  }
14479
13836
  }, {
14480
- dataIndex: 'saleAmount',
14481
- title: '总金额',
13837
+ dataIndex: 'price',
13838
+ title: "\u5B9E\u9645\u5355\u4EF7",
14482
13839
  width: 150,
14483
- ellipsis: true,
14484
- align: 'center',
14485
13840
  render: function render(val, record, index) {
14486
- return (record.qty || 0) * (+record.salePrice || 0);
13841
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
13842
+ style: {
13843
+ width: 130
13844
+ },
13845
+ value: val,
13846
+ min: 0,
13847
+ precision: 2,
13848
+ onChange: function onChange(num) {
13849
+ updateDataHandle({
13850
+ price: num,
13851
+ amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
13852
+ }, index);
13853
+ }
13854
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14487
13855
  }
14488
13856
  }, {
14489
- dataIndex: 'batchId',
14490
- title: '批次号',
13857
+ dataIndex: 'amount',
13858
+ title: "\u5B9E\u9645\u91D1\u989D",
13859
+ width: 150
13860
+ }, {
13861
+ dataIndex: 'originPrice',
13862
+ title: "\u6807\u51C6\u5355\u4EF7",
13863
+ width: 150
13864
+ }, {
13865
+ dataIndex: 'originAmount',
13866
+ title: "\u6807\u51C6\u91D1\u989D",
13867
+ width: 150
13868
+ }, {
13869
+ dataIndex: 'discountFee',
13870
+ title: "\u8BA9\u5229\u91D1\u989D",
13871
+ width: 150
13872
+ }, {
13873
+ dataIndex: 'amountAfter',
13874
+ title: "\u8BA9\u5229\u540E\u91D1\u989D",
13875
+ width: 150
13876
+ }, {
13877
+ dataIndex: 'cancel',
13878
+ title: "\u662F\u5426\u53D6\u6D88",
14491
13879
  width: 150,
14492
- ellipsis: true,
14493
- align: 'center'
13880
+ render: function render(val) {
13881
+ return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
13882
+ }
14494
13883
  }, {
14495
13884
  dataIndex: 'isGift',
14496
- title: '是否赠品',
14497
- ellipsis: true,
14498
- align: 'center',
14499
- width: 100,
13885
+ title: "\u662F\u5426\u8D60\u54C1",
13886
+ width: 150,
14500
13887
  render: function render(val, record, index) {
14501
13888
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14502
13889
  value: val,
@@ -14505,109 +13892,105 @@ var getColumns$5 = function getColumns(_ref) {
14505
13892
  },
14506
13893
  options: [{
14507
13894
  label: '是',
14508
- value: true
13895
+ value: 1
14509
13896
  }, {
14510
13897
  label: '否',
14511
- value: false
13898
+ value: 0
14512
13899
  }]
14513
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
13900
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
14514
13901
  }
14515
13902
  }, {
14516
- dataIndex: 'outerOiId',
14517
- title: '子订单号',
14518
- width: 240,
14519
- ellipsis: true,
14520
- align: 'center'
14521
- }],
14522
- JST_REISSUE_GOODS: [{
14523
- dataIndex: 'name',
14524
- title: '商品名称',
14525
- width: 150,
14526
- ellipsis: true,
14527
- align: 'center'
13903
+ dataIndex: 'skuNote',
13904
+ title: "\u5546\u54C1\u5907\u6CE8",
13905
+ width: 150
13906
+ }].map(function (item) {
13907
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13908
+ align: 'center',
13909
+ ellipsis: true
13910
+ });
13911
+ }),
13912
+ //管易补发商品信息
13913
+ GY_REISSUE_GOODS: [{
13914
+ dataIndex: 'goodName',
13915
+ title: "\u5546\u54C1\u540D\u79F0",
13916
+ width: 150
14528
13917
  }, {
14529
- dataIndex: 'skuId',
14530
- title: '商品编码',
14531
- width: 150,
14532
- ellipsis: true,
14533
- align: 'center'
13918
+ dataIndex: 'goodShortName',
13919
+ title: "\u5546\u54C1\u7B80\u79F0",
13920
+ width: 150
14534
13921
  }, {
14535
- dataIndex: 'iId',
14536
- title: '款式编码',
14537
- width: 150,
14538
- ellipsis: true,
14539
- align: 'center'
13922
+ dataIndex: 'goodNo',
13923
+ title: "\u5546\u54C1\u7F16\u7801",
13924
+ width: 200
14540
13925
  }, {
14541
- dataIndex: 'pic',
14542
- title: '商品图片',
14543
- ellipsis: true,
13926
+ dataIndex: 'specName',
13927
+ title: "SKU\u540D\u79F0",
14544
13928
  align: 'center',
14545
- width: 100,
14546
- render: function render(val) {
14547
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
14548
- width: 60,
14549
- src: val
14550
- });
14551
- }
14552
- }, {
14553
- dataIndex: 'propertiesValue',
14554
- title: '规格值',
14555
- width: 150,
14556
13929
  ellipsis: true,
14557
- align: 'center'
13930
+ width: 250
14558
13931
  }, {
14559
- dataIndex: 'saleBasePrice',
14560
- title: '原价',
14561
- width: 150,
14562
- ellipsis: true,
13932
+ dataIndex: 'specNo',
13933
+ title: "SKU\u7F16\u7801",
14563
13934
  align: 'center',
14564
- render: function render(price) {
14565
- return price || price === 0 ? Number(price).toFixed(2) : '';
14566
- }
14567
- }, {
14568
- dataIndex: 'salePrice',
14569
- title: '单价',
14570
13935
  ellipsis: true,
14571
- align: 'center',
14572
- width: 120,
13936
+ width: 150
13937
+ }, {
13938
+ dataIndex: 'qty',
13939
+ title: "\u6570\u91CF",
13940
+ width: 100,
14573
13941
  render: function render(val, record, index) {
14574
13942
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14575
13943
  style: {
14576
13944
  width: 70
14577
13945
  },
14578
13946
  value: val,
14579
- min: 0,
14580
- precision: 2,
13947
+ min: 1,
13948
+ precision: 0,
14581
13949
  onChange: function onChange(num) {
14582
- return updateHandle(num, index, 'salePrice');
13950
+ updateDataHandle({
13951
+ qty: num,
13952
+ amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
13953
+ originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
13954
+ }, index);
14583
13955
  }
14584
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
13956
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14585
13957
  }
14586
13958
  }, {
14587
- dataIndex: 'qty',
14588
- title: '数量',
14589
- ellipsis: true,
14590
- align: 'center',
14591
- width: 100,
13959
+ dataIndex: 'price',
13960
+ title: "\u5B9E\u9645\u5355\u4EF7",
13961
+ width: 150,
14592
13962
  render: function render(val, record, index) {
14593
13963
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14594
13964
  style: {
14595
- width: 70
13965
+ width: 130
14596
13966
  },
14597
13967
  value: val,
14598
- min: 1,
14599
- precision: 0,
13968
+ min: 0,
13969
+ precision: 2,
14600
13970
  onChange: function onChange(num) {
14601
- return updateHandle(num, index, 'qty');
13971
+ updateDataHandle({
13972
+ price: num,
13973
+ amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
13974
+ }, index);
14602
13975
  }
14603
13976
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14604
13977
  }
13978
+ }, {
13979
+ dataIndex: 'amount',
13980
+ title: "\u5B9E\u9645\u91D1\u989D",
13981
+ width: 150
13982
+ }, {
13983
+ dataIndex: 'originPrice',
13984
+ title: "\u6807\u51C6\u5355\u4EF7",
13985
+ width: 150
13986
+ }, {
13987
+ dataIndex: 'originAmount',
13988
+ title: "\u6807\u51C6\u91D1\u989D",
13989
+ width: 150
14605
13990
  }, {
14606
13991
  dataIndex: 'isGift',
14607
- title: '是否赠品',
14608
- ellipsis: true,
14609
- align: 'center',
14610
- width: 100,
13992
+ title: "\u662F\u5426\u8D60\u54C1",
13993
+ width: 150,
14611
13994
  render: function render(val, record, index) {
14612
13995
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14613
13996
  value: val,
@@ -14616,35 +13999,23 @@ var getColumns$5 = function getColumns(_ref) {
14616
13999
  },
14617
14000
  options: [{
14618
14001
  label: '是',
14619
- value: true
14002
+ value: 1
14620
14003
  }, {
14621
14004
  label: '否',
14622
- value: false
14005
+ value: 0
14623
14006
  }]
14624
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
14625
- }
14626
- }, {
14627
- dataIndex: 'remark',
14628
- title: '备注',
14629
- width: 150,
14630
- ellipsis: true,
14631
- align: 'center',
14632
- render: function render(val, record, index) {
14633
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
14634
- style: {
14635
- width: 70
14636
- },
14637
- value: val,
14638
- onChange: function onChange(e) {
14639
- return updateHandle(e.target.value, index, 'remark');
14640
- }
14641
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14007
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
14642
14008
  }
14643
- }]
14009
+ }].map(function (item) {
14010
+ return _objectSpread2(_objectSpread2({}, item), {}, {
14011
+ align: 'center',
14012
+ ellipsis: true
14013
+ });
14014
+ })
14644
14015
  };
14645
14016
  };
14646
14017
 
14647
- var getColumns$6 = function getColumns(_ref) {
14018
+ var getColumns$5 = function getColumns(_ref) {
14648
14019
  var _ref$text = _ref.text,
14649
14020
  text = _ref$text === void 0 ? '' : _ref$text,
14650
14021
  disabled = _ref.disabled,
@@ -14757,7 +14128,7 @@ var getColumnsMap = function getColumnsMap(args) {
14757
14128
  disabled = _ref.disabled,
14758
14129
  updateHandle = _ref.updateHandle,
14759
14130
  updateDataHandle = _ref.updateDataHandle;
14760
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
14131
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
14761
14132
  text: text,
14762
14133
  disabled: disabled,
14763
14134
  updateHandle: updateHandle
@@ -14778,12 +14149,8 @@ var getColumnsMap = function getColumnsMap(args) {
14778
14149
  disabled: disabled,
14779
14150
  updateHandle: updateHandle,
14780
14151
  updateDataHandle: updateDataHandle
14781
- })), getColumns$5({
14782
- text: text,
14783
- disabled: disabled,
14784
- updateHandle: updateHandle
14785
14152
  })), {}, {
14786
- default: getColumns$6({
14153
+ default: getColumns$5({
14787
14154
  text: text,
14788
14155
  disabled: disabled,
14789
14156
  updateHandle: updateHandle
@@ -14887,19 +14254,6 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
14887
14254
  });
14888
14255
  };
14889
14256
 
14890
- var GoodsModalMap = {
14891
- 'WDT_REISSUE_GOODS': WdtGoodsModal,
14892
- 'WDT_GOODS': WdtGoodsModal,
14893
- 'WDT_EXCHANGE_GOODS': WdtGoodsModal,
14894
- 'BS_E3_REISSUE_GOODS': BsE3GoodsModal,
14895
- 'BS_E3_GOODS': BsE3GoodsModal,
14896
- 'BS_E3_EXCHANGE_GOODS': BsE3GoodsModal,
14897
- 'GY_GOODS': GyGoodsModal$2,
14898
- 'GY_REISSUE_GOODS': GyGoodsModal$2,
14899
- 'JST_GOODS': JstGoodsModal,
14900
- 'JST_REISSUE_GOODS': JstGoodsModal,
14901
- 'OTHER_GOODS': GoodsModal$2
14902
- };
14903
14257
  var MAIN_FIELD = 'uuid';
14904
14258
  var SelectTradeGoods = function SelectTradeGoods(_ref) {
14905
14259
  var columns = _ref.columns,
@@ -14961,9 +14315,6 @@ var getButtonText = function getButtonText() {
14961
14315
  if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
14962
14316
  return '选择管易ERP商品';
14963
14317
  }
14964
- if (['JST_GOODS', 'JST_REISSUE_GOODS'].includes(type)) {
14965
- return '选择聚水潭ERP商品';
14966
- }
14967
14318
  return '选择商品';
14968
14319
  };
14969
14320
  var GoodItem$1 = function GoodItem(props) {
@@ -15063,7 +14414,7 @@ var GoodItem$1 = function GoodItem(props) {
15063
14414
  };
15064
14415
  var COLUMNS_MAP = function COLUMNS_MAP() {
15065
14416
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
15066
- var columnsOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14417
+ var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
15067
14418
  return function (type) {
15068
14419
  var columns = [];
15069
14420
  switch (type) {
@@ -15074,13 +14425,11 @@ var GoodItem$1 = function GoodItem(props) {
15074
14425
  case 'BS_GOODS':
15075
14426
  case 'WLN_GOODS':
15076
14427
  case 'GY_GOODS':
15077
- case 'JST_GOODS':
15078
- case 'JST_REISSUE_GOODS':
15079
14428
  case 'GY_REISSUE_GOODS':
15080
14429
  {
15081
14430
  columns = getColumnsMap({
15082
14431
  text: text,
15083
- disabled: disabled || columnsOptions.disabled,
14432
+ disabled: disabled,
15084
14433
  updateHandle: updateHandle,
15085
14434
  updateDataHandle: updateDataHandle
15086
14435
  })[type];
@@ -15089,25 +14438,25 @@ var GoodItem$1 = function GoodItem(props) {
15089
14438
  case 'WDT_REISSUE_GOODS':
15090
14439
  {
15091
14440
  columns = getWdtReissueGoodColumns({
15092
- disabled: disabled || columnsOptions.disabled,
14441
+ disabled: disabled,
15093
14442
  updateHandle: updateHandle,
15094
- operate: columnsOptions.operate
14443
+ operate: operate
15095
14444
  });
15096
14445
  }
15097
14446
  break;
15098
14447
  case 'BS_E3_REISSUE_GOODS':
15099
14448
  {
15100
14449
  columns = getBsE3ReissueGoodColumns({
15101
- disabled: disabled || columnsOptions.disabled,
14450
+ disabled: disabled,
15102
14451
  updateHandle: updateHandle,
15103
- operate: columnsOptions.operate
14452
+ operate: operate
15104
14453
  });
15105
14454
  }
15106
14455
  break;
15107
14456
  default:
15108
14457
  columns = getColumnsMap({
15109
14458
  text: text,
15110
- disabled: disabled || columnsOptions.disabled,
14459
+ disabled: disabled,
15111
14460
  updateHandle: updateHandle,
15112
14461
  updateDataHandle: updateDataHandle
15113
14462
  })['default'];
@@ -15170,10 +14519,7 @@ var GoodItem$1 = function GoodItem(props) {
15170
14519
  return columnList;
15171
14520
  }, [showHeader, value, disabled]);
15172
14521
  var orderColumns = React.useMemo(function () {
15173
- var columns = COLUMNS_MAP('', {
15174
- operate: false,
15175
- disabled: true
15176
- })(type);
14522
+ var columns = COLUMNS_MAP('', false)(type);
15177
14523
  return [{
15178
14524
  dataIndex: '',
15179
14525
  title: '序号',
@@ -15257,23 +14603,6 @@ var GoodItem$1 = function GoodItem(props) {
15257
14603
  originAmount: !kmkfUtils.isNull(retailPrice) ? Number(retailPrice) : null
15258
14604
  });
15259
14605
  });
15260
- } else if (['JST_GOODS', 'JST_REISSUE_GOODS'].includes(type)) {
15261
- newList = list.map(function (item) {
15262
- return {
15263
- name: item.goodName,
15264
- skuId: item.goodNo,
15265
- iId: item.styleCode,
15266
- pic: item.goodPicUrl,
15267
- propertiesValue: item.propertiesValue,
15268
- saleBasePrice: item.retailPrice,
15269
- salePrice: item.retailPrice,
15270
- remark: '',
15271
- uuid: kmkfUtils.uuid(),
15272
- canDelete: true,
15273
- canEdit: true,
15274
- qty: 1
15275
- };
15276
- });
15277
14606
  } else {
15278
14607
  newList = list.map(function (item) {
15279
14608
  var goodsId = item.goodsId,
@@ -15309,9 +14638,7 @@ var GoodItem$1 = function GoodItem(props) {
15309
14638
  }));
15310
14639
  };
15311
14640
  var handleChangeGoods = function handleChangeGoods() {
15312
- refModal.current.open(shopCode, {
15313
- value: value
15314
- });
14641
+ refModal.current.open(shopCode);
15315
14642
  };
15316
14643
  var rowSelection = {
15317
14644
  selectedRowKeys: selectedRowKeys,
@@ -15328,7 +14655,6 @@ var GoodItem$1 = function GoodItem(props) {
15328
14655
  }
15329
14656
  return params;
15330
14657
  }, [tableSelect, selectedRowKeys]);
15331
- var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
15332
14658
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React__default['default'].createElement("div", {
15333
14659
  style: {
15334
14660
  float: 'right'
@@ -15356,7 +14682,31 @@ var GoodItem$1 = function GoodItem(props) {
15356
14682
  locale: {
15357
14683
  emptyText: '暂无数据'
15358
14684
  }
15359
- })), /*#__PURE__*/React__default['default'].createElement(TheGoodsModal, {
14685
+ })), ['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
14686
+ ref: refModal,
14687
+ onSubmit: onSubmit,
14688
+ width: width,
14689
+ shopList: shopList,
14690
+ shopId: shopId,
14691
+ maxLength: maxLength,
14692
+ companyKey: companyKey
14693
+ }) : ['BS_E3_REISSUE_GOODS', 'BS_E3_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(BsE3GoodsModal, {
14694
+ ref: refModal,
14695
+ onSubmit: onSubmit,
14696
+ width: width,
14697
+ shopList: shopList,
14698
+ shopId: shopId,
14699
+ maxLength: maxLength,
14700
+ companyKey: companyKey
14701
+ }) : ['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(GyGoodsModal$1, {
14702
+ ref: refModal,
14703
+ onSubmit: onSubmit,
14704
+ width: width,
14705
+ shopList: shopList,
14706
+ shopId: shopId,
14707
+ maxLength: maxLength,
14708
+ companyKey: companyKey
14709
+ }) : /*#__PURE__*/React__default['default'].createElement(GoodsModal$2, {
15360
14710
  ref: refModal,
15361
14711
  onSubmit: onSubmit,
15362
14712
  width: width,
@@ -16078,68 +15428,37 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
16078
15428
  billTag: item.tagName,
16079
15429
  tradeTagName: item.tradeTagName,
16080
15430
  deliveryState: item.deliveryState,
15431
+ vipCode: item.vipCode,
15432
+ shopCode: item.shopCode,
16081
15433
  deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[item.deliveryState]
16082
15434
  });
16083
15435
  });
16084
- }
16085
- resolve(res.data);
16086
- // 延迟10秒清除,保证订单的时效性
16087
- setTimeout(function () {
16088
- singletonMap$2.delete(orderNo);
16089
- }, 1000 * 10);
16090
- } else {
16091
- doReject(res);
16092
- }
16093
- }).catch(doReject);
16094
- });
16095
- singletonMap$2.set(orderNo, p);
16096
- }
16097
- return singletonMap$2.get(orderNo);
16098
- };
16099
- var gyUtils = {
16100
- getGyOrderListSingleton: getGyOrderListSingleton
16101
- };
16102
-
16103
- var singletonMap$3 = new Map();
16104
- var getJstOrderListSingleton = function getJstOrderListSingleton(orderNo) {
16105
- if (!singletonMap$3.has(orderNo)) {
16106
- var p = new Promise(function (resolve, reject) {
16107
- var doReject = function doReject(err) {
16108
- // 清空掉错误的请求记录
16109
- // singletonMap.delete(orderNo);
16110
- reject(err);
16111
- };
16112
- extendRequest('/qy/gdfw/jst/erp/orderOut/list', {
16113
- method: 'post',
16114
- data: {
16115
- soId: orderNo
16116
- }
16117
- }).then(function (data) {
16118
- if (data === null || data === void 0 ? void 0 : data.success) {
16119
- data.data = kmkfUtils.filterJstOrders({
16120
- orderList: (data === null || data === void 0 ? void 0 : data.data) || []
16121
- }, orderNo);
16122
- resolve(data.data);
15436
+ }
15437
+ resolve(res.data);
15438
+ // 延迟10秒清除,保证订单的时效性
15439
+ setTimeout(function () {
15440
+ singletonMap$2.delete(orderNo);
15441
+ }, 1000 * 10);
16123
15442
  } else {
16124
- doReject(data);
15443
+ doReject(res);
16125
15444
  }
16126
15445
  }).catch(doReject);
16127
15446
  });
16128
- singletonMap$3.set(orderNo, p);
15447
+ singletonMap$2.set(orderNo, p);
16129
15448
  }
16130
- return singletonMap$3.get(orderNo);
15449
+ return singletonMap$2.get(orderNo);
16131
15450
  };
16132
- var jstUtils = {
16133
- getJstOrderListSingleton: getJstOrderListSingleton
15451
+ var gyUtils = {
15452
+ getGyOrderListSingleton: getGyOrderListSingleton
16134
15453
  };
16135
15454
 
16136
- var singletonMap$4 = new Map();
15455
+ var singletonMap$3 = new Map();
16137
15456
  var getOrderListSingleton = function getOrderListSingleton(orderNo) {
16138
- if (!singletonMap$4.has(orderNo)) {
15457
+ if (!singletonMap$3.has(orderNo)) {
16139
15458
  var p = new Promise(function (resolve, reject) {
16140
15459
  var doReject = function doReject(err) {
16141
15460
  // 清空掉错误的请求记录
16142
- singletonMap$4.delete(orderNo);
15461
+ singletonMap$3.delete(orderNo);
16143
15462
  reject(err);
16144
15463
  };
16145
15464
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
@@ -16165,29 +15484,29 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
16165
15484
  }
16166
15485
  // 延迟10秒清除,保证订单的时效性
16167
15486
  setTimeout(function () {
16168
- singletonMap$4.delete(orderNo);
15487
+ singletonMap$3.delete(orderNo);
16169
15488
  }, 1000 * 10);
16170
15489
  } else {
16171
15490
  doReject(data);
16172
15491
  }
16173
15492
  }).catch(doReject);
16174
15493
  });
16175
- singletonMap$4.set(orderNo, p);
15494
+ singletonMap$3.set(orderNo, p);
16176
15495
  }
16177
- return singletonMap$4.get(orderNo);
15496
+ return singletonMap$3.get(orderNo);
16178
15497
  };
16179
15498
  var kmUtils = {
16180
15499
  getOrderListSingleton: getOrderListSingleton
16181
15500
  };
16182
15501
 
15502
+ var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
16183
15503
  var columnsMap = {
16184
15504
  BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
16185
15505
  KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
16186
15506
  WLN_SYSTEM_ORDER: kmkfUtils.WLN_SYSTEM_ORDER_CONFIG.columns,
16187
15507
  WDT_SYSTEM_ORDER: kmkfUtils.WDT_SYSTEM_ORDER_CONFIG.columns,
16188
15508
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
16189
- GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
16190
- JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns
15509
+ GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns
16191
15510
  };
16192
15511
  var rowKeyMap = {
16193
15512
  BS_SYSTEM_ORDER: 'billNo',
@@ -16195,8 +15514,7 @@ var rowKeyMap = {
16195
15514
  WLN_SYSTEM_ORDER: 'billNo',
16196
15515
  WDT_SYSTEM_ORDER: 'billNo',
16197
15516
  BS_E3_SYSTEM_ORDER: 'orderSn',
16198
- GY_SYSTEM_ORDER: 'billNo',
16199
- JST_SYSTEM_ORDER: 'oId'
15517
+ GY_SYSTEM_ORDER: 'billNo'
16200
15518
  };
16201
15519
  var index$1 = (function (props) {
16202
15520
  var value = props.value,
@@ -16221,8 +15539,6 @@ var index$1 = (function (props) {
16221
15539
  } else if (type === 'GY_SYSTEM_ORDER') {
16222
15540
  console.log('触发gy--getGyOrderList--1');
16223
15541
  getGyOrderList(value.orderNo);
16224
- } else if (type === 'JST_SYSTEM_ORDER') {
16225
- getJstOrderList(value.orderNo);
16226
15542
  }
16227
15543
  }
16228
15544
  }, [value, type]);
@@ -16378,41 +15694,18 @@ var index$1 = (function (props) {
16378
15694
  return _ref5.apply(this, arguments);
16379
15695
  };
16380
15696
  }();
16381
- var getJstOrderList = /*#__PURE__*/function () {
15697
+ var getKmOrderList = /*#__PURE__*/function () {
16382
15698
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderNo) {
16383
15699
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
16384
15700
  while (1) switch (_context5.prev = _context5.next) {
16385
- case 0:
16386
- jstUtils.getJstOrderListSingleton(orderNo).then(function (data) {
16387
- var trades = data || [];
16388
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
16389
- orders: trades,
16390
- showOrderInfo: trades
16391
- }));
16392
- });
16393
- onceRef.current = false;
16394
- case 2:
16395
- case "end":
16396
- return _context5.stop();
16397
- }
16398
- }, _callee5);
16399
- }));
16400
- return function getJstOrderList(_x5) {
16401
- return _ref6.apply(this, arguments);
16402
- };
16403
- }();
16404
- var getKmOrderList = /*#__PURE__*/function () {
16405
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
16406
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
16407
- while (1) switch (_context6.prev = _context6.next) {
16408
15701
  case 0:
16409
15702
  kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
16410
15703
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
16411
15704
  orders: trades,
16412
- showOrderInfo: trades.map(function (_ref8) {
16413
- var billNo = _ref8.billNo,
16414
- billType = _ref8.billType,
16415
- billTag = _ref8.billTag;
15705
+ showOrderInfo: trades.map(function (_ref7) {
15706
+ var billNo = _ref7.billNo,
15707
+ billType = _ref7.billType,
15708
+ billTag = _ref7.billTag;
16416
15709
  return {
16417
15710
  billNo: billNo,
16418
15711
  billType: billType,
@@ -16424,18 +15717,18 @@ var index$1 = (function (props) {
16424
15717
  onceRef.current = false;
16425
15718
  case 2:
16426
15719
  case "end":
16427
- return _context6.stop();
15720
+ return _context5.stop();
16428
15721
  }
16429
- }, _callee6);
15722
+ }, _callee5);
16430
15723
  }));
16431
- return function getKmOrderList(_x6) {
16432
- return _ref7.apply(this, arguments);
15724
+ return function getKmOrderList(_x5) {
15725
+ return _ref6.apply(this, arguments);
16433
15726
  };
16434
15727
  }();
16435
15728
  var getGyOrderList = /*#__PURE__*/function () {
16436
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(orderNo) {
16437
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
16438
- while (1) switch (_context7.prev = _context7.next) {
15729
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
15730
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
15731
+ while (1) switch (_context6.prev = _context6.next) {
16439
15732
  case 0:
16440
15733
  gyUtils.getGyOrderListSingleton(orderNo).then(function (data) {
16441
15734
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
@@ -16443,32 +15736,37 @@ var index$1 = (function (props) {
16443
15736
  });
16444
15737
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
16445
15738
  orders: trades,
16446
- showOrderInfo: trades.map(function (_ref10) {
16447
- var billNo = _ref10.billNo,
16448
- billType = _ref10.billType,
16449
- billTag = _ref10.billTag,
16450
- tradeTagName = _ref10.tradeTagName,
16451
- deliveryState = _ref10.deliveryState;
16452
- return {
15739
+ showOrderInfo: trades.map(function (_ref9) {
15740
+ var billNo = _ref9.billNo,
15741
+ billType = _ref9.billType,
15742
+ billTag = _ref9.billTag,
15743
+ tradeTagName = _ref9.tradeTagName,
15744
+ deliveryState = _ref9.deliveryState,
15745
+ vipCode = _ref9.vipCode,
15746
+ shopCode = _ref9.shopCode,
15747
+ rest = _objectWithoutProperties(_ref9, _excluded$g);
15748
+ return _objectSpread2(_objectSpread2({}, rest), {}, {
16453
15749
  billNo: billNo,
16454
15750
  billType: billType,
16455
15751
  billTag: billTag,
16456
15752
  tradeTagName: tradeTagName,
16457
15753
  deliveryState: deliveryState,
16458
- deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
16459
- };
15754
+ deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
15755
+ vipCode: vipCode,
15756
+ shopCode: shopCode
15757
+ });
16460
15758
  })
16461
15759
  }));
16462
15760
  });
16463
15761
  onceRef.current = false;
16464
15762
  case 2:
16465
15763
  case "end":
16466
- return _context7.stop();
15764
+ return _context6.stop();
16467
15765
  }
16468
- }, _callee7);
15766
+ }, _callee6);
16469
15767
  }));
16470
- return function getGyOrderList(_x7) {
16471
- return _ref9.apply(this, arguments);
15768
+ return function getGyOrderList(_x6) {
15769
+ return _ref8.apply(this, arguments);
16472
15770
  };
16473
15771
  }();
16474
15772
  var rowSelection = {
@@ -16617,31 +15915,6 @@ var componentMap$1 = {
16617
15915
  returnDeleteGood: 'gyReturnDeleteGood',
16618
15916
  exchangeDeleteGood: 'gyExchangeDeleteGood'
16619
15917
  }
16620
- },
16621
- JST_GOODS: {
16622
- type: 'jst',
16623
- key: 'jstGoods',
16624
- name: '聚水潭',
16625
- orderNo: 'dealCode',
16626
- goodDetailOrderNo: 'originalDealCode',
16627
- eventNameMap: {
16628
- // pubsub 事件
16629
- type: 'jstType',
16630
- updateGoodsHandle: kmkfUtils.updateJstGoodsHandle,
16631
- selectListReturn: 'jstSelectListReturn',
16632
- selectList: 'jstSelectList',
16633
- reissueSelectList: 'jstReissueSelectList',
16634
- reissueSelectListReturn: 'jstReissueSelectListReturn',
16635
- reissueDeleteGood: 'jstReissueDeleteGood',
16636
- changeShopCode: 'jstChangeShopCode',
16637
- reissueType: 'jstReissueType',
16638
- returnType: 'jstReturnType',
16639
- returnSelectListReturn: 'jstReturnSelectListReturn',
16640
- returnSelectList: 'jstReturnSelectList',
16641
- deleteGood: 'jstDeleteGood',
16642
- returnDeleteGood: 'jstReturnDeleteGood',
16643
- exchangeDeleteGood: 'jstExchangeDeleteGood'
16644
- }
16645
15918
  }
16646
15919
  };
16647
15920
  var CommonGoods = function CommonGoods(props) {
@@ -17089,7 +16362,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17089
16362
  })));
17090
16363
  };
17091
16364
 
17092
- var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
16365
+ var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17093
16366
  var typeMap$1 = {
17094
16367
  WDT_REISSUE_GOODS: {
17095
16368
  key: 'wdtReissueGoods',
@@ -17117,7 +16390,7 @@ var wdtReissue = function wdtReissue(props) {
17117
16390
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17118
16391
  disabled = props.disabled,
17119
16392
  type = props.type,
17120
- other = _objectWithoutProperties(props, _excluded$g);
16393
+ other = _objectWithoutProperties(props, _excluded$h);
17121
16394
  var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
17122
16395
  var _order$srcTid;
17123
16396
  return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
@@ -17361,260 +16634,6 @@ var wdtReissue = function wdtReissue(props) {
17361
16634
  })));
17362
16635
  };
17363
16636
 
17364
- var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17365
- var typeMap$2 = {
17366
- JST_REISSUE_GOODS: {
17367
- key: 'jstReissueGoods',
17368
- typeName: 'jstReissueType',
17369
- systemOrder: 'jstSystemOrder',
17370
- systemOrderNo: 'jstSystemOrderNo',
17371
- systemOrderBillType: 'jstSystemOrderBillType',
17372
- getOrderList: jstUtils.getJstOrderListSingleton,
17373
- updateGoodsHandle: kmkfUtils.updateJstGoodsHandle,
17374
- orderTypeKey: 'orderType',
17375
- oIdKey: 'oId',
17376
- outerOiIdKey: 'outerOiId',
17377
- goodDetailsKey: 'items'
17378
- }
17379
- };
17380
- var PublicReissue = function PublicReissue(props) {
17381
- var _typeMap$type32, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42;
17382
- var value = props.value,
17383
- onChange = props.onChange,
17384
- _props$reasonList = props.reasonList,
17385
- reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17386
- disabled = props.disabled,
17387
- type = props.type,
17388
- other = _objectWithoutProperties(props, _excluded$h);
17389
- var getOrderFlag = React.useRef(false);
17390
- var _useState = React.useState(false),
17391
- _useState2 = _slicedToArray(_useState, 2),
17392
- isStrict = _useState2[0],
17393
- setIsStrict = _useState2[1];
17394
- // TODO: 在修改场景下手动获取一次订单详情中数据
17395
- React.useEffect(function () {
17396
- var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
17397
- if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
17398
- var _value$typeMap$type$s4, _typeMap$type3;
17399
- getOrderFlag.current = true;
17400
- getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
17401
- }
17402
- return;
17403
- }, [value]);
17404
- var getOrderList = /*#__PURE__*/function () {
17405
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
17406
- var _typeMap$type4;
17407
- return _regeneratorRuntime().wrap(function _callee$(_context) {
17408
- while (1) switch (_context.prev = _context.next) {
17409
- case 0:
17410
- (_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
17411
- var _typeMap$type5, _typeMap$type6, _typeMap$type10, _typeMap$type11;
17412
- var orders = data || [];
17413
- var showOrderInfo = orders.map(function (orderItem) {
17414
- return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
17415
- });
17416
- var typeObj = {};
17417
- var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrderNo];
17418
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrderBillType) {
17419
- var _typeMap$type8, _typeMap$type9;
17420
- var targetOrder = orders.find(function (oItem) {
17421
- var _typeMap$type7;
17422
- return oItem[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.oIdKey] === systemOrderNo;
17423
- });
17424
- typeObj[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.orderTypeKey];
17425
- }
17426
- onChange(_objectSpread2(_objectSpread2(_objectSpread2({}, value), typeObj), {}, _defineProperty({}, (_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrder]), {}, {
17427
- showOrderInfo: showOrderInfo,
17428
- orders: orders
17429
- }))));
17430
- });
17431
- case 1:
17432
- case "end":
17433
- return _context.stop();
17434
- }
17435
- }, _callee);
17436
- }));
17437
- return function getOrderList(_x) {
17438
- return _ref.apply(this, arguments);
17439
- };
17440
- }();
17441
- var changeTypeHandle = function changeTypeHandle(val) {
17442
- var _typeMap$type12;
17443
- var typeName = val === null || val === void 0 ? void 0 : val[0];
17444
- // if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
17445
- // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
17446
- var newValue = _objectSpread2({}, value);
17447
- newValue[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
17448
- if (typeName === '1') {
17449
- var _typeMap$type13;
17450
- newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
17451
- mode: isStrict
17452
- });
17453
- } else if (typeName === '2') {
17454
- var _typeMap$type14;
17455
- // 切换到非原单,清空列表
17456
- newValue[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
17457
- }
17458
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17459
- };
17460
- var handleModeChange = function handleModeChange(mode) {
17461
- var _value$typeMap$type$t, _typeMap$type15, _typeMap$type16;
17462
- var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
17463
- setIsStrict(mode);
17464
- if (!isOriginalOrder) return;
17465
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key, getGoodDetails({
17466
- mode: mode
17467
- }))));
17468
- };
17469
- var getGoodDetails = function getGoodDetails(_ref3) {
17470
- var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
17471
- var mode = _ref3.mode,
17472
- sysOrderNo = _ref3.sysOrderNo;
17473
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
17474
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo];
17475
- var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
17476
- return order[typeMap$2[type].oIdKey] === systemOrderNo;
17477
- });
17478
- var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], true) : [];
17479
- var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
17480
- return mode ? goodDetails.filter(function (goodItem) {
17481
- return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
17482
- }) : goodDetails;
17483
- };
17484
- var changeGoodHandle = function changeGoodHandle(val) {
17485
- var _typeMap$type20;
17486
- var newValue = _objectSpread2({}, value);
17487
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = val || [];
17488
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17489
- };
17490
- var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
17491
- var _typeMap$type21, _typeMap$type22, _value$typeMap$type$t2, _typeMap$type27, _value$typeMap$type$t3, _typeMap$type29;
17492
- var newValue = _objectSpread2({}, value);
17493
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo)] = val;
17494
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderBillType) {
17495
- var _value$typeMap$type$s5, _typeMap$type23, _typeMap$type25, _typeMap$type26;
17496
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orders) || [];
17497
- var targetOrder = val && orders.find(function (oItem) {
17498
- var _typeMap$type24;
17499
- return oItem[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.oIdKey] === val;
17500
- });
17501
- newValue[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.orderTypeKey];
17502
- }
17503
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
17504
- var _typeMap$type28;
17505
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)] = [];
17506
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
17507
- var _typeMap$type30;
17508
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)] = getGoodDetails({
17509
- mode: isStrict,
17510
- sysOrderNo: val
17511
- });
17512
- }
17513
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17514
- };
17515
- //显示选择商品按钮 原单换不显示选择商品
17516
- var showChangeBtn = React.useMemo(function () {
17517
- var _typeMap$type31;
17518
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo]);
17519
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo]]);
17520
- var selectedGoodsChange = React.useCallback(function (skuList) {
17521
- var _typeMap$type33, _typeMap$type34, _uniqBy;
17522
- var newValue = _objectSpread2({}, value);
17523
- // 原订单商品
17524
- var originTradeGoodList = getGoodDetails({
17525
- mode: isStrict
17526
- }) || [];
17527
- // 当前选中的所有商品【包含了原订单+商品库】
17528
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)]) || [];
17529
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17530
- return skuList.includes(item.uuid);
17531
- });
17532
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17533
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)], isStrict]);
17534
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
17535
- gutter: 8,
17536
- wrap: true,
17537
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key) || "".concat(Date.now())
17538
- }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
17539
- className: "gutter-row",
17540
- xs: {
17541
- span: 11
17542
- },
17543
- sm: {
17544
- span: 6
17545
- }
17546
- }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
17547
- style: {
17548
- marginBottom: '8px'
17549
- },
17550
- disabled: disabled,
17551
- allowClear: false,
17552
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.systemOrderNo)],
17553
- onChange: function onChange(val) {
17554
- return changeSystemOrderHandle(val);
17555
- },
17556
- placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
17557
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
17558
- return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
17559
- key: item[typeMap$2[type].oIdKey],
17560
- value: item[typeMap$2[type].oIdKey],
17561
- label: item[typeMap$2[type].oIdKey]
17562
- }, item[typeMap$2[type].oIdKey]);
17563
- }))), /*#__PURE__*/React__default['default'].createElement(antd.Col, {
17564
- className: "gutter-row",
17565
- xs: {
17566
- span: 11
17567
- },
17568
- sm: {
17569
- span: 6
17570
- }
17571
- }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
17572
- style: {
17573
- marginBottom: '8px'
17574
- },
17575
- disabled: disabled,
17576
- allowClear: false,
17577
- options: reasonList,
17578
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.typeName)],
17579
- onChange: function onChange(val) {
17580
- return changeTypeHandle(val);
17581
- }
17582
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
17583
- className: "gutter-row",
17584
- xs: {
17585
- span: 11
17586
- },
17587
- sm: {
17588
- span: 6
17589
- }
17590
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
17591
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrderBillType)],
17592
- disabled: disabled,
17593
- readOnly: true
17594
- }))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
17595
- key: 'reissueGoods'
17596
- }, other), {}, {
17597
- type: type,
17598
- disabled: disabled,
17599
- canUpdateNumber: showChangeBtn,
17600
- showChangeBtn: showChangeBtn,
17601
- shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
17602
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)],
17603
- onChange: function onChange(val) {
17604
- return changeGoodHandle(val);
17605
- },
17606
- onModeChange: handleModeChange,
17607
- showModeBtn: false,
17608
- isStrict: isStrict,
17609
- tradeGoods: {
17610
- originDataSource: getGoodDetails({
17611
- mode: isStrict
17612
- }),
17613
- selectedGoodsChange: selectedGoodsChange
17614
- }
17615
- })));
17616
- };
17617
-
17618
16637
  var css_248z$a = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
17619
16638
  styleInject(css_248z$a);
17620
16639
 
@@ -18136,15 +17155,10 @@ var typeInitValueMap$1 = {
18136
17155
  initValue: [{
18137
17156
  billNo: ''
18138
17157
  }]
18139
- },
18140
- 5: {
18141
- initValue: [{
18142
- billNo: ''
18143
- }]
18144
17158
  }
18145
17159
  };
18146
17160
  var CommonSystemOrder = function CommonSystemOrder(props) {
18147
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5;
17161
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4;
18148
17162
  var _props$value = props.value,
18149
17163
  value = _props$value === void 0 ? [] : _props$value,
18150
17164
  onChange = props.onChange,
@@ -18166,7 +17180,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
18166
17180
  maxHeight: '300px',
18167
17181
  overflowY: 'auto'
18168
17182
  }
18169
- }, [1, 2, 3, 4, 5].includes(type) ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
17183
+ }, [1, 2, 3, 4].includes(type) ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
18170
17184
  };
18171
17185
  var changeInputHandle = function changeInputHandle(val, type) {
18172
17186
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
@@ -18223,13 +17237,6 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
18223
17237
  return changeInputHandle(e.target.value, 'billNo');
18224
17238
  },
18225
17239
  value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
18226
- })) : null, type === 5 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
18227
- disabled: disabled,
18228
- placeholder: "\u8BF7\u8F93\u5165\u552E\u540E\u5355id",
18229
- onChange: function onChange(e) {
18230
- return changeInputHandle(e.target.value, 'billNo');
18231
- },
18232
- value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.billNo
18233
17240
  })) : null) : null);
18234
17241
  };
18235
17242
 
@@ -18350,7 +17357,7 @@ var MsgStatus = function MsgStatus(props) {
18350
17357
  onClick: function onClick() {
18351
17358
  return setChangeIndex(index);
18352
17359
  }
18353
- }, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
17360
+ }, kmkfUtils.msgTypeCh[key], item.ruleName);
18354
17361
  }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
18355
17362
  showSearch: true,
18356
17363
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -18389,7 +17396,7 @@ var CalculationInput = function CalculationInput(props) {
18389
17396
  };
18390
17397
 
18391
17398
  var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type"];
18392
- var typeMap$3 = {
17399
+ var typeMap$2 = {
18393
17400
  BS_E3_REISSUE_GOODS: {
18394
17401
  key: 'bsE3ReissueGoods',
18395
17402
  typeName: 'bsE3ReissueType',
@@ -18415,10 +17422,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
18415
17422
  // TODO: 在修改场景下手动获取一次订单详情中数据
18416
17423
  React.useEffect(function () {
18417
17424
  var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
18418
- if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$3[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$3[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
17425
+ if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
18419
17426
  var _value$typeMap$type$s4, _typeMap$type3;
18420
17427
  getOrderFlag.current = true;
18421
- getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$3[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
17428
+ getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
18422
17429
  }
18423
17430
  return;
18424
17431
  }, [value]);
@@ -18442,7 +17449,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18442
17449
  return _regeneratorRuntime().wrap(function _callee$(_context) {
18443
17450
  while (1) switch (_context.prev = _context.next) {
18444
17451
  case 0:
18445
- (_typeMap$type4 = typeMap$3[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
17452
+ (_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
18446
17453
  var _typeMap$type5, _typeMap$type6;
18447
17454
  var orders = (data === null || data === void 0 ? void 0 : data.orderList) || [];
18448
17455
  var showOrderInfo = orders.map(function (_ref2) {
@@ -18451,7 +17458,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18451
17458
  billNo: orderSn
18452
17459
  };
18453
17460
  });
18454
- onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$3[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$3[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
17461
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
18455
17462
  showOrderInfo: showOrderInfo,
18456
17463
  orders: orders
18457
17464
  }))));
@@ -18472,25 +17479,25 @@ var bsE3Reissue = function bsE3Reissue(props) {
18472
17479
  // if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
18473
17480
  // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
18474
17481
  var newValue = _objectSpread2({}, value);
18475
- newValue[(_typeMap$type7 = typeMap$3[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.typeName] = val;
17482
+ newValue[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.typeName] = val;
18476
17483
  if (typeName === '1') {
18477
17484
  var _typeMap$type8;
18478
- newValue[(_typeMap$type8 = typeMap$3[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.key] = getGoodDetails({
17485
+ newValue[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.key] = getGoodDetails({
18479
17486
  mode: isStrict
18480
17487
  });
18481
17488
  } else if (typeName === '2') {
18482
17489
  var _typeMap$type9;
18483
17490
  // 切换到非原单,清空列表
18484
- newValue[(_typeMap$type9 = typeMap$3[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key] = [];
17491
+ newValue[(_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key] = [];
18485
17492
  }
18486
17493
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18487
17494
  };
18488
17495
  var handleModeChange = function handleModeChange(mode) {
18489
17496
  var _value$typeMap$type$t, _typeMap$type10, _typeMap$type11;
18490
- var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type10 = typeMap$3[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
17497
+ var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
18491
17498
  setIsStrict(mode);
18492
17499
  if (!isOriginalOrder) return;
18493
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type11 = typeMap$3[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.key, getGoodDetails({
17500
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.key, getGoodDetails({
18494
17501
  mode: mode
18495
17502
  }))));
18496
17503
  };
@@ -18498,8 +17505,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
18498
17505
  var _typeMap$type12, _typeMap$type13, _order$orderDetailGet;
18499
17506
  var mode = _ref3.mode,
18500
17507
  sysOrderNo = _ref3.sysOrderNo;
18501
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type12 = typeMap$3[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.systemOrder];
18502
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$3[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrderNo];
17508
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.systemOrder];
17509
+ var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrderNo];
18503
17510
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
18504
17511
  return order.orderSn === systemOrderNo;
18505
17512
  });
@@ -18512,19 +17519,19 @@ var bsE3Reissue = function bsE3Reissue(props) {
18512
17519
  var changeGoodHandle = function changeGoodHandle(val) {
18513
17520
  var _typeMap$type14;
18514
17521
  var newValue = _objectSpread2({}, value);
18515
- newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type14 = typeMap$3[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key)] = val || [];
17522
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key)] = val || [];
18516
17523
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18517
17524
  };
18518
17525
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
18519
17526
  var _typeMap$type15, _value$typeMap$type$t2, _typeMap$type16, _value$typeMap$type$t3, _typeMap$type18;
18520
17527
  var newValue = _objectSpread2({}, value);
18521
- newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type15 = typeMap$3[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo)] = val;
18522
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type16 = typeMap$3[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
17528
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo)] = val;
17529
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
18523
17530
  var _typeMap$type17;
18524
- newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type17 = typeMap$3[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key)] = [];
18525
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type18 = typeMap$3[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
17531
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key)] = [];
17532
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
18526
17533
  var _typeMap$type19;
18527
- newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type19 = typeMap$3[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = getGoodDetails({
17534
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = getGoodDetails({
18528
17535
  mode: isStrict,
18529
17536
  sysOrderNo: val
18530
17537
  });
@@ -18534,8 +17541,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
18534
17541
  //显示选择商品按钮 原单换不显示选择商品
18535
17542
  var showChangeBtn = React.useMemo(function () {
18536
17543
  var _typeMap$type20;
18537
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$3[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo]);
18538
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$3[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo]]);
17544
+ return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo]);
17545
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo]]);
18539
17546
  var selectedGoodsChange = React.useCallback(function (skuList) {
18540
17547
  var _typeMap$type22, _typeMap$type23, _uniqBy;
18541
17548
  var newValue = _objectSpread2({}, value);
@@ -18544,12 +17551,12 @@ var bsE3Reissue = function bsE3Reissue(props) {
18544
17551
  mode: isStrict
18545
17552
  }) || [];
18546
17553
  // 当前选中的所有商品【包含了原订单+商品库】
18547
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type22 = typeMap$3[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
18548
- newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type23 = typeMap$3[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17554
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
17555
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
18549
17556
  return skuList.includes(item.uuid);
18550
17557
  });
18551
17558
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18552
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type24 = typeMap$3[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
17559
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
18553
17560
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
18554
17561
  gutter: 8,
18555
17562
  wrap: true,
@@ -18568,12 +17575,12 @@ var bsE3Reissue = function bsE3Reissue(props) {
18568
17575
  },
18569
17576
  disabled: disabled,
18570
17577
  allowClear: false,
18571
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type25 = typeMap$3[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)],
17578
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)],
18572
17579
  onChange: function onChange(val) {
18573
17580
  return changeSystemOrderHandle(val);
18574
17581
  },
18575
17582
  placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
18576
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type26 = typeMap$3[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
17583
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
18577
17584
  return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
18578
17585
  key: item.billNo,
18579
17586
  value: item.billNo,
@@ -18594,7 +17601,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18594
17601
  disabled: disabled,
18595
17602
  allowClear: false,
18596
17603
  options: reasonList,
18597
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type27 = typeMap$3[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
17604
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
18598
17605
  onChange: function onChange(val) {
18599
17606
  return changeTypeHandle(val);
18600
17607
  }
@@ -18606,7 +17613,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18606
17613
  canUpdateNumber: showChangeBtn,
18607
17614
  showChangeBtn: showChangeBtn,
18608
17615
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
18609
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type28 = typeMap$3[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)],
17616
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)],
18610
17617
  onChange: function onChange(val) {
18611
17618
  return changeGoodHandle(val);
18612
17619
  },
@@ -18623,8 +17630,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
18623
17630
  };
18624
17631
 
18625
17632
  var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"],
18626
- _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
18627
- var typeMap$4 = {
17633
+ _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
17634
+ var typeMap$3 = {
18628
17635
  GY_REISSUE_GOODS: {
18629
17636
  key: 'gyReissueGoods',
18630
17637
  name: '管易',
@@ -18663,10 +17670,10 @@ var GyReissue = function GyReissue(props) {
18663
17670
  setIsStrict = _useState2[1];
18664
17671
  React.useEffect(function () {
18665
17672
  var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
18666
- if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$4[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$4[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
17673
+ if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$3[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$3[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
18667
17674
  var _value$typeMap$type$s4, _typeMap$type3;
18668
17675
  getOrderFlag.current = true;
18669
- getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$4[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
17676
+ getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$3[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
18670
17677
  }
18671
17678
  return;
18672
17679
  }, [value]);
@@ -18676,7 +17683,7 @@ var GyReissue = function GyReissue(props) {
18676
17683
  return _regeneratorRuntime().wrap(function _callee$(_context) {
18677
17684
  while (1) switch (_context.prev = _context.next) {
18678
17685
  case 0:
18679
- (_typeMap$type4 = typeMap$4[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
17686
+ (_typeMap$type4 = typeMap$3[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
18680
17687
  var _typeMap$type5, _typeMap$type6;
18681
17688
  var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
18682
17689
  var showOrderInfo = orders.map(function (_ref2) {
@@ -18685,6 +17692,8 @@ var GyReissue = function GyReissue(props) {
18685
17692
  billTag = _ref2.billTag,
18686
17693
  tradeTagName = _ref2.tradeTagName,
18687
17694
  deliveryState = _ref2.deliveryState,
17695
+ vipCode = _ref2.vipCode,
17696
+ shopCode = _ref2.shopCode,
18688
17697
  rest = _objectWithoutProperties(_ref2, _excluded2);
18689
17698
  return _objectSpread2(_objectSpread2({}, rest), {}, {
18690
17699
  billNo: billNo,
@@ -18692,10 +17701,12 @@ var GyReissue = function GyReissue(props) {
18692
17701
  billTag: billTag,
18693
17702
  tradeTagName: tradeTagName,
18694
17703
  deliveryState: deliveryState,
18695
- deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
17704
+ deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
17705
+ vipCode: vipCode,
17706
+ shopCode: shopCode
18696
17707
  });
18697
17708
  });
18698
- onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
17709
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$3[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$3[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
18699
17710
  showOrderInfo: showOrderInfo,
18700
17711
  orders: orders
18701
17712
  }))));
@@ -18713,28 +17724,28 @@ var GyReissue = function GyReissue(props) {
18713
17724
  var changeTypeHandle = function changeTypeHandle(val) {
18714
17725
  var _value$typeMap$type$t, _typeMap$type7, _typeMap$type8;
18715
17726
  var typeName = val === null || val === void 0 ? void 0 : val[0];
18716
- if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type7 = typeMap$4[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) return;
17727
+ if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type7 = typeMap$3[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) return;
18717
17728
  // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
18718
17729
  var newValue = _objectSpread2({}, value);
18719
- newValue[(_typeMap$type8 = typeMap$4[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.typeName] = val;
17730
+ newValue[(_typeMap$type8 = typeMap$3[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.typeName] = val;
18720
17731
  if (typeName === '1') {
18721
17732
  var _typeMap$type9;
18722
- newValue[(_typeMap$type9 = typeMap$4[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key] = getGoodDetails({
17733
+ newValue[(_typeMap$type9 = typeMap$3[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.key] = getGoodDetails({
18723
17734
  mode: isStrict
18724
17735
  });
18725
17736
  } else if (typeName === '2') {
18726
17737
  var _typeMap$type10;
18727
17738
  // 切换到非原单,清空列表
18728
- newValue[(_typeMap$type10 = typeMap$4[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.key] = [];
17739
+ newValue[(_typeMap$type10 = typeMap$3[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.key] = [];
18729
17740
  }
18730
17741
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18731
17742
  };
18732
17743
  var handleModeChange = function handleModeChange(mode) {
18733
17744
  var _value$typeMap$type$t2, _typeMap$type11, _typeMap$type12;
18734
- var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type11 = typeMap$4[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0]) === '1';
17745
+ var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type11 = typeMap$3[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0]) === '1';
18735
17746
  setIsStrict(mode);
18736
17747
  if (!isOriginalOrder) return;
18737
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type12 = typeMap$4[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key, getGoodDetails({
17748
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type12 = typeMap$3[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key, getGoodDetails({
18738
17749
  mode: mode
18739
17750
  }))));
18740
17751
  };
@@ -18742,8 +17753,8 @@ var GyReissue = function GyReissue(props) {
18742
17753
  var _typeMap$type13, _typeMap$type14, _order$details;
18743
17754
  var mode = _ref3.mode,
18744
17755
  sysOrderNo = _ref3.sysOrderNo;
18745
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$4[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder];
18746
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$4[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrderNo];
17756
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$3[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder];
17757
+ var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$3[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrderNo];
18747
17758
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
18748
17759
  return order.code === systemOrderNo;
18749
17760
  });
@@ -18756,10 +17767,10 @@ var GyReissue = function GyReissue(props) {
18756
17767
  var changeGoodHandle = function changeGoodHandle(val) {
18757
17768
  var _typeMap$type15;
18758
17769
  var newValue = _objectSpread2({}, value);
18759
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type15 = typeMap$4[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
17770
+ newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type15 = typeMap$3[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
18760
17771
  var _typeMap$type16, _typeMap$type17;
18761
- item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type16 = typeMap$4[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
18762
- item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type17 = typeMap$4[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
17772
+ item["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type16 = typeMap$3[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
17773
+ item["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type17 = typeMap$3[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
18763
17774
  return item;
18764
17775
  });
18765
17776
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -18767,13 +17778,13 @@ var GyReissue = function GyReissue(props) {
18767
17778
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
18768
17779
  var _typeMap$type18, _value$typeMap$type$t3, _typeMap$type19, _value$typeMap$type$t4, _typeMap$type21;
18769
17780
  var newValue = _objectSpread2({}, value);
18770
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type18 = typeMap$4[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo)] = val;
18771
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type19 = typeMap$4[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
17781
+ newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type18 = typeMap$3[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo)] = val;
17782
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type19 = typeMap$3[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
18772
17783
  var _typeMap$type20;
18773
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = [];
18774
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$4[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
17784
+ newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type20 = typeMap$3[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = [];
17785
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$3[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
18775
17786
  var _typeMap$type22;
18776
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type22 = typeMap$4[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
17787
+ newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type22 = typeMap$3[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
18777
17788
  mode: isStrict,
18778
17789
  sysOrderNo: val
18779
17790
  });
@@ -18788,18 +17799,18 @@ var GyReissue = function GyReissue(props) {
18788
17799
  mode: isStrict
18789
17800
  }) || [];
18790
17801
  // 当前选中的所有商品【包含了原订单+商品库】
18791
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type23 = typeMap$4[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
18792
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type24 = typeMap$4[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17802
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type23 = typeMap$3[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
17803
+ newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type24 = typeMap$3[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
18793
17804
  return skuList.includes(item.uuid);
18794
17805
  });
18795
- console.log('商品发生变化', newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type25 = typeMap$4[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
17806
+ console.log('商品发生变化', newValue["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type25 = typeMap$3[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
18796
17807
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18797
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
17808
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type26 = typeMap$3[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
18798
17809
  //显示选择商品按钮 原单换不显示选择商品
18799
17810
  var showChangeBtn = React.useMemo(function () {
18800
17811
  var _typeMap$type27;
18801
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
18802
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
17812
+ return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$3[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
17813
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$3[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
18803
17814
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
18804
17815
  gutter: 8,
18805
17816
  wrap: true
@@ -18817,12 +17828,12 @@ var GyReissue = function GyReissue(props) {
18817
17828
  },
18818
17829
  disabled: disabled,
18819
17830
  allowClear: false,
18820
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
17831
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type29 = typeMap$3[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
18821
17832
  onChange: function onChange(val) {
18822
17833
  return changeSystemOrderHandle(val);
18823
17834
  },
18824
17835
  placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
18825
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
17836
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$3[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
18826
17837
  return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
18827
17838
  key: item.billNo,
18828
17839
  value: item.billNo,
@@ -18843,7 +17854,7 @@ var GyReissue = function GyReissue(props) {
18843
17854
  disabled: disabled,
18844
17855
  allowClear: false,
18845
17856
  options: reasonList,
18846
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
17857
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type31 = typeMap$3[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
18847
17858
  onChange: function onChange(val) {
18848
17859
  return changeTypeHandle(val);
18849
17860
  }
@@ -18855,7 +17866,7 @@ var GyReissue = function GyReissue(props) {
18855
17866
  canUpdateNumber: showChangeBtn,
18856
17867
  showChangeBtn: showChangeBtn,
18857
17868
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
18858
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
17869
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type32 = typeMap$3[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
18859
17870
  onChange: function onChange(val) {
18860
17871
  return changeGoodHandle(val);
18861
17872
  },
@@ -18921,7 +17932,6 @@ exports.LogisticsTrajectory = LogisticsTrajectory;
18921
17932
  exports.MsgStatus = MsgStatus;
18922
17933
  exports.ParseLogistics = ParseLogistics;
18923
17934
  exports.Payment = Payment;
18924
- exports.PublicReissue = PublicReissue;
18925
17935
  exports.Remark = RemarkInput;
18926
17936
  exports.ReturnLogistics = ExpressLogistics;
18927
17937
  exports.ShopName = ShopNameSelect;