@kmkf-fe-packages/basic-components 0.28.2-rc.9 → 0.29.0-beta.0

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.esm.js CHANGED
@@ -3,11 +3,12 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import zhCN from 'antd/lib/locale/zh_CN';
8
8
  import { cloneDeep, difference, differenceWith } from 'lodash';
9
9
  import { useDebounceEffect } from 'ahooks';
10
10
  import pubsub from 'pubsub-js';
11
+ import BigNumber from 'bignumber.js';
11
12
 
12
13
  function _iterableToArrayLimit(arr, i) {
13
14
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
@@ -7563,10 +7564,11 @@ function ApaasPosting(props) {
7563
7564
  });
7564
7565
  }
7565
7566
 
7566
- var _excluded$a = ["value", "onChange"];
7567
+ var _excluded$a = ["value", "onChange", "platformType"];
7567
7568
  function ApaasLogistics(props) {
7568
7569
  var value = props.value,
7569
7570
  onChange = props.onChange,
7571
+ platformType = props.platformType,
7570
7572
  other = _objectWithoutProperties(props, _excluded$a);
7571
7573
  var _useState = useState([]),
7572
7574
  _useState2 = _slicedToArray(_useState, 2),
@@ -7579,7 +7581,7 @@ function ApaasLogistics(props) {
7579
7581
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7580
7582
  while (1) switch (_context.prev = _context.next) {
7581
7583
  case 0:
7582
- express = ExpressData.getInstance();
7584
+ express = ExpressData.getInstance(platformType);
7583
7585
  setOptions(express.expressData || []);
7584
7586
  case 2:
7585
7587
  case "end":
@@ -9698,9 +9700,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9698
9700
  _props$disabled = props.disabled,
9699
9701
  disabled = _props$disabled === void 0 ? false : _props$disabled,
9700
9702
  _props$isEditing = props.isEditing,
9701
- isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
9702
- _props$showState = props.showState,
9703
- showState = _props$showState === void 0 ? false : _props$showState;
9703
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
9704
9704
  var _useState = useState(''),
9705
9705
  _useState2 = _slicedToArray(_useState, 2),
9706
9706
  initCompany = _useState2[0],
@@ -9835,8 +9835,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9835
9835
  interceptReceiverMobile: undefined,
9836
9836
  interceptLogisticsStatus: undefined,
9837
9837
  interceptLogisticsStatusOther: undefined,
9838
- interceptLogisticsSnapshot: undefined,
9839
- qySelfInterceptStatus: undefined
9838
+ interceptLogisticsSnapshot: undefined
9840
9839
  });
9841
9840
  }
9842
9841
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -9981,24 +9980,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
9981
9980
  onChange: function onChange(e) {
9982
9981
  return changeHandle(e.target.value, 'interceptLogisticsStatusOther');
9983
9982
  }
9984
- })), /*#__PURE__*/React.createElement(Item, {
9985
- label: '拦截状态',
9986
- key: 'qySelfInterceptStatus',
9987
- hidden: showState
9988
- }, /*#__PURE__*/React.createElement(Select, {
9989
- value: value === null || value === void 0 ? void 0 : value.qySelfInterceptStatus,
9990
- disabled: disabled || isEdit,
9991
- placeholder: "\u62E6\u622A\u72B6\u6001",
9992
- onChange: function onChange(val) {
9993
- return changeHandle(val, 'qySelfInterceptStatus');
9994
- },
9995
- options: [{
9996
- label: '拦截成功',
9997
- value: '拦截成功'
9998
- }, {
9999
- label: '拦截失败',
10000
- value: '拦截失败'
10001
- }]
10002
9983
  })));
10003
9984
  };
10004
9985
 
@@ -10423,7 +10404,7 @@ var typeInitValueMap = {
10423
10404
  }]
10424
10405
  };
10425
10406
  var jstGoods = function jstGoods(props) {
10426
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7;
10407
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8;
10427
10408
  var _props$value = props.value,
10428
10409
  value = _props$value === void 0 ? [] : _props$value,
10429
10410
  onChange = props.onChange,
@@ -10431,11 +10412,14 @@ var jstGoods = function jstGoods(props) {
10431
10412
  _props$type = props.type,
10432
10413
  type = _props$type === void 0 ? 1 : _props$type,
10433
10414
  _props$showField = props.showField,
10434
- showField = _props$showField === void 0 ? '' : _props$showField;
10415
+ showField = _props$showField === void 0 ? '' : _props$showField,
10416
+ _props$platformType = props.platformType,
10417
+ platformType = _props$platformType === void 0 ? 'default' : _props$platformType;
10435
10418
  var _useState = useState(0),
10436
10419
  _useState2 = _slicedToArray(_useState, 2),
10437
10420
  changeIndex = _useState2[0],
10438
10421
  setChangeIndex = _useState2[1]; //选中的包裹
10422
+ var wdtSendOptions = WdtSendData.getInstance().wdtSendData || [];
10439
10423
  useEffect(function () {
10440
10424
  //没有值塞个默认值
10441
10425
  if (!(value === null || value === void 0 ? void 0 : value.length)) {
@@ -10462,6 +10446,18 @@ var jstGoods = function jstGoods(props) {
10462
10446
  }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, t.title), /*#__PURE__*/React.createElement("div", null, "\u7F16\u7801\uFF1A", t.skuId))));
10463
10447
  }));
10464
10448
  };
10449
+ var handleSelected = function handleSelected(val, type, option) {
10450
+ var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10451
+ changeOrderInfo[type] = val;
10452
+ changeOrderInfo['sendId'] = option.value;
10453
+ var newList = _toConsumableArray(value);
10454
+ newList[changeIndex] = changeOrderInfo;
10455
+ onChange === null || onChange === void 0 ? void 0 : onChange(newList);
10456
+ };
10457
+ var filterOption = function filterOption(input, option) {
10458
+ var _option$label;
10459
+ return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
10460
+ };
10465
10461
  var changeInputHandle = function changeInputHandle(val, type) {
10466
10462
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10467
10463
  changeOrderInfo[type] = val;
@@ -10500,10 +10496,12 @@ var jstGoods = function jstGoods(props) {
10500
10496
  filterOption: function filterOption(input, option) {
10501
10497
  return option.label.includes(input);
10502
10498
  },
10499
+ dropdownMatchSelectWidth: false,
10503
10500
  style: {
10504
10501
  minWidth: '100px',
10505
10502
  maxWidth: '180px'
10506
- }
10503
+ },
10504
+ platformType: platformType
10507
10505
  }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
10508
10506
  disabled: disabled,
10509
10507
  placeholder: "\u7269\u6D41\u5355\u53F7",
@@ -10532,20 +10530,34 @@ var jstGoods = function jstGoods(props) {
10532
10530
  return changeInputHandle(e.target.value, 'sendId');
10533
10531
  },
10534
10532
  value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
10535
- }), ['sendName', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
10533
+ }), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React.createElement(Select, {
10534
+ style: {
10535
+ minWidth: '100px',
10536
+ maxWidth: '180px'
10537
+ },
10538
+ disabled: disabled,
10539
+ placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
10540
+ showSearch: true,
10541
+ options: wdtSendOptions,
10542
+ filterOption: filterOption,
10543
+ value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName,
10544
+ onChange: function onChange(value, option) {
10545
+ return handleSelected(value, 'sendName', option);
10546
+ }
10547
+ }) : /*#__PURE__*/React.createElement(Input, {
10536
10548
  disabled: disabled,
10537
10549
  placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u540D\u79F0",
10538
10550
  onChange: function onChange(e) {
10539
10551
  return changeInputHandle(e.target.value, 'sendName');
10540
10552
  },
10541
- value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName
10542
- })) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
10553
+ value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName
10554
+ }))) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
10543
10555
  disabled: disabled,
10544
10556
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
10545
10557
  onChange: function onChange(e) {
10546
10558
  return changeInputHandle(e.target.value, 'deliveryNo');
10547
10559
  },
10548
- value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName
10560
+ value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
10549
10561
  })) : null) : null);
10550
10562
  };
10551
10563
 
@@ -11112,6 +11124,12 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
11112
11124
  var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
11113
11125
 
11114
11126
  var RangePicker = DatePicker.RangePicker;
11127
+ var getWdtListProduct = function getWdtListProduct(data) {
11128
+ return extendRequest('/qy/gdfw/product/wdtListProduct', {
11129
+ method: 'post',
11130
+ data: data
11131
+ });
11132
+ };
11115
11133
  var columns$1 = [{
11116
11134
  dataIndex: 'index',
11117
11135
  title: 'NO',
@@ -11186,226 +11204,174 @@ var expandedColumns = [{
11186
11204
  title: '会员价',
11187
11205
  width: 140
11188
11206
  }];
11189
- var dateFormat = 'YYYY-MM-DD HH:mm:ss';
11190
- var GoodsModal$3 = function GoodsModal(props, ref) {
11191
- var initStartTime = hooks().subtract(30, 'd');
11192
- var initEndTime = hooks();
11193
- useImperativeHandle(ref, function () {
11194
- return {
11195
- open: function open(shopCode) {
11196
- setVisible(true);
11197
- setPageNo(1);
11198
- setSelect([]);
11199
- setSelectIds([]);
11200
- form.setFieldsValue({
11201
- dateTimePicker: [initStartTime, initEndTime],
11202
- code: ''
11203
- });
11204
- // getShopList();
11205
- }
11206
- };
11207
- });
11208
-
11209
- var onSubmit = props.onSubmit,
11210
- shopId = props.shopId,
11211
- shopList = props.shopList,
11212
- width = props.width,
11213
- companyKey = props.companyKey;
11214
- var _useState = useState(false),
11207
+ var getInitTime = function getInitTime() {
11208
+ var initStartTime = hooks().subtract(30, 'd').hours(0).minutes(0).seconds(0);
11209
+ var initEndTime = hooks().hours(23).minutes(59).seconds(59);
11210
+ return [initStartTime, initEndTime];
11211
+ };
11212
+ var GoodList = function GoodList(props, ref) {
11213
+ var _useState = useState([]),
11215
11214
  _useState2 = _slicedToArray(_useState, 2),
11216
- visible = _useState2[0],
11217
- setVisible = _useState2[1];
11218
- var _useState3 = useState([]),
11215
+ selectList = _useState2[0],
11216
+ setSelect = _useState2[1];
11217
+ var _useState3 = useState(1),
11219
11218
  _useState4 = _slicedToArray(_useState3, 2),
11220
- selectList = _useState4[0],
11221
- setSelect = _useState4[1];
11222
- var _useState5 = useState([]),
11223
- _useState6 = _slicedToArray(_useState5, 2),
11224
- selectIds = _useState6[0],
11225
- setSelectIds = _useState6[1];
11226
- var _useState7 = useState(1),
11219
+ pageNo = _useState4[0],
11220
+ setPageNo = _useState4[1];
11221
+ var _useState5 = useState(10),
11222
+ _useState6 = _slicedToArray(_useState5, 1),
11223
+ pageSize = _useState6[0];
11224
+ var _useState7 = useState([]),
11227
11225
  _useState8 = _slicedToArray(_useState7, 2),
11228
- pageNo = _useState8[0],
11229
- setPageNo = _useState8[1];
11230
- var _useState9 = useState(20),
11231
- _useState10 = _slicedToArray(_useState9, 1),
11232
- pageSize = _useState10[0];
11233
- var _useState11 = useState([]),
11226
+ goodList = _useState8[0],
11227
+ setGoodList = _useState8[1];
11228
+ var _useState9 = useState(false),
11229
+ _useState10 = _slicedToArray(_useState9, 2),
11230
+ loading = _useState10[0],
11231
+ setLoading = _useState10[1];
11232
+ var _useState11 = useState(0),
11234
11233
  _useState12 = _slicedToArray(_useState11, 2),
11235
- goodList = _useState12[0],
11236
- setGoodList = _useState12[1];
11237
- var _useState13 = useState(false),
11234
+ total = _useState12[0],
11235
+ setTotal = _useState12[1];
11236
+ var _useState13 = useState(null),
11238
11237
  _useState14 = _slicedToArray(_useState13, 2),
11239
- loading = _useState14[0],
11240
- setLoading = _useState14[1];
11241
- var _useState15 = useState(0),
11242
- _useState16 = _slicedToArray(_useState15, 2),
11243
- total = _useState16[0],
11244
- setTotal = _useState16[1];
11238
+ dates = _useState14[0],
11239
+ setDates = _useState14[1];
11240
+ useImperativeHandle(ref, function () {
11241
+ return {
11242
+ getSelectGoodList: function getSelectGoodList() {
11243
+ return selectList;
11244
+ }
11245
+ };
11246
+ });
11245
11247
  var displaySelectList = useMemo(function () {
11246
11248
  return selectList.map(function (item, i) {
11247
11249
  item.index = i + 1;
11248
11250
  return item;
11249
11251
  });
11250
11252
  }, [selectList]);
11251
- useEffect(function () {
11252
- if (visible) {
11253
- queryItems();
11254
- }
11255
- }, [pageNo, visible]);
11256
11253
  var _Form$useForm = Form.useForm(),
11257
11254
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
11258
11255
  form = _Form$useForm2[0];
11259
- //选择页码
11260
- var pageChange = function pageChange(page) {
11261
- setPageNo(page);
11262
- };
11263
11256
  /**
11264
11257
  * 查询商品
11265
11258
  */
11266
11259
  var queryItems = /*#__PURE__*/function () {
11267
11260
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11268
- var search,
11269
- _formData$dateTimePic,
11270
- _formData$dateTimePic2,
11271
- _formData$dateTimePic3,
11272
- _formData$dateTimePic4,
11273
- _formData$dateTimePic5,
11274
- _formData$dateTimePic6,
11275
- formData,
11276
- startTime,
11277
- endTime,
11278
- params,
11279
- res,
11280
- _res$data,
11281
- _res$data$productList,
11282
- productList,
11283
- _res$data$total,
11284
- _total,
11285
- errorMsg,
11286
- newProducts,
11287
- _args = arguments;
11261
+ var _formData$dateTimePic, _formData$dateTimePic2, _formData$dateTimePic3, _formData$dateTimePic4, _formData$dateTimePic5, _formData$dateTimePic6, formData, _getInitTime, _getInitTime2, start, end, startTime, endTime, newTime, earliest, params;
11288
11262
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11289
11263
  while (1) switch (_context.prev = _context.next) {
11290
11264
  case 0:
11291
- search = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
11292
- _context.prev = 1;
11265
+ _context.prev = 0;
11293
11266
  setLoading(true);
11294
11267
  formData = form.getFieldsValue();
11295
- startTime = ((_formData$dateTimePic = formData.dateTimePicker) === null || _formData$dateTimePic === void 0 ? void 0 : (_formData$dateTimePic2 = _formData$dateTimePic[0]) === null || _formData$dateTimePic2 === void 0 ? void 0 : (_formData$dateTimePic3 = _formData$dateTimePic2.format) === null || _formData$dateTimePic3 === void 0 ? void 0 : _formData$dateTimePic3.call(_formData$dateTimePic2, dateFormat)) || hooks().subtract(30, 'd').format(dateFormat);
11296
- endTime = ((_formData$dateTimePic4 = formData.dateTimePicker) === null || _formData$dateTimePic4 === void 0 ? void 0 : (_formData$dateTimePic5 = _formData$dateTimePic4[1]) === null || _formData$dateTimePic5 === void 0 ? void 0 : (_formData$dateTimePic6 = _formData$dateTimePic5.format) === null || _formData$dateTimePic6 === void 0 ? void 0 : _formData$dateTimePic6.call(_formData$dateTimePic5, dateFormat)) || hooks().format(dateFormat);
11268
+ _getInitTime = getInitTime(), _getInitTime2 = _slicedToArray(_getInitTime, 2), start = _getInitTime2[0], end = _getInitTime2[1];
11269
+ startTime = ((_formData$dateTimePic = formData.dateTimePicker) === null || _formData$dateTimePic === void 0 ? void 0 : (_formData$dateTimePic2 = _formData$dateTimePic[0]) === null || _formData$dateTimePic2 === void 0 ? void 0 : (_formData$dateTimePic3 = _formData$dateTimePic2.format) === null || _formData$dateTimePic3 === void 0 ? void 0 : _formData$dateTimePic3.call(_formData$dateTimePic2, 'YYYY-MM-DD HH:mm:ss')) || start.format('YYYY-MM-DD HH:mm:ss');
11270
+ endTime = ((_formData$dateTimePic4 = formData.dateTimePicker) === null || _formData$dateTimePic4 === void 0 ? void 0 : (_formData$dateTimePic5 = _formData$dateTimePic4[1]) === null || _formData$dateTimePic5 === void 0 ? void 0 : (_formData$dateTimePic6 = _formData$dateTimePic5.format) === null || _formData$dateTimePic6 === void 0 ? void 0 : _formData$dateTimePic6.call(_formData$dateTimePic5, 'YYYY-MM-DD HH:mm:ss')) || end.format('YYYY-MM-DD HH:mm:ss');
11271
+ endTime = hooks(endTime).hours(23).minutes(59).seconds(59).format('YYYY-MM-DD HH:mm:ss');
11272
+ // PS: 故意推前3分钟,不然极端情况下,接口会报错
11273
+ newTime = hooks().subtract(3, 'm'); // 只能选比现在早的时间
11274
+ if (hooks(endTime).diff(newTime, 'seconds') > 0) {
11275
+ endTime = newTime.format('YYYY-MM-DD HH:mm:ss');
11276
+ }
11277
+ // 30天内
11278
+ earliest = hooks(endTime).subtract(30, 'd');
11279
+ if (earliest.diff(hooks(startTime), 'seconds') > 0) {
11280
+ startTime = earliest.format('YYYY-MM-DD HH:mm:ss');
11281
+ }
11297
11282
  params = {
11298
- // shopCode: shopCode,
11299
11283
  pageSize: pageSize,
11300
11284
  pageNo: pageNo - 1,
11301
- goodNo: search.code,
11285
+ goodNo: formData.goodNo || null,
11286
+ specNo: formData.specNo || null,
11302
11287
  startTime: startTime,
11303
11288
  endTime: endTime
11304
11289
  };
11305
- _context.next = 9;
11306
- return extendRequest('/qy/gdfw/product/wdtListProduct', {
11307
- method: 'post',
11308
- data: params
11309
- });
11310
- case 9:
11311
- res = _context.sent;
11312
- _res$data = res.data, _res$data$productList = _res$data.productList, productList = _res$data$productList === void 0 ? [] : _res$data$productList, _res$data$total = _res$data.total, _total = _res$data$total === void 0 ? 0 : _res$data$total, errorMsg = _res$data.errorMsg;
11313
- if (res.success) {
11314
- newProducts = productList.map(function (item, index) {
11315
- return _objectSpread2(_objectSpread2({}, item), {}, {
11316
- index: index + 1
11290
+ _context.next = 14;
11291
+ return getWdtListProduct(params).then(function (res) {
11292
+ if (res.success) {
11293
+ var _res$data = res.data,
11294
+ _res$data$productList = _res$data.productList,
11295
+ productList = _res$data$productList === void 0 ? [] : _res$data$productList,
11296
+ _res$data$total = _res$data.total,
11297
+ _total = _res$data$total === void 0 ? 0 : _res$data$total;
11298
+ var newProducts = productList.map(function (item, index) {
11299
+ return _objectSpread2(_objectSpread2({}, item), {}, {
11300
+ index: index + 1
11301
+ });
11317
11302
  });
11318
- });
11319
- setGoodList(_toConsumableArray(newProducts));
11320
- if (pageNo === 1) {
11321
- setTotal(_total);
11303
+ setGoodList(newProducts);
11304
+ if (pageNo === 1) {
11305
+ setTotal(_total);
11306
+ }
11307
+ } else {
11308
+ var _res$data2;
11309
+ setGoodList([]);
11310
+ setTotal(0);
11311
+ message.error(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.errorMsg) || res.message);
11322
11312
  }
11323
- } else {
11324
- setGoodList([]);
11325
- setTotal(0);
11326
- message.error(errorMsg || res.message);
11327
- }
11328
- case 12:
11329
- _context.prev = 12;
11313
+ }).catch(function (e) {
11314
+ console.log(e);
11315
+ });
11316
+ case 14:
11317
+ _context.prev = 14;
11330
11318
  setLoading(false);
11331
- return _context.finish(12);
11332
- case 15:
11319
+ return _context.finish(14);
11320
+ case 17:
11333
11321
  case "end":
11334
11322
  return _context.stop();
11335
11323
  }
11336
- }, _callee, null, [[1,, 12, 15]]);
11324
+ }, _callee, null, [[0,, 14, 17]]);
11337
11325
  }));
11338
11326
  return function queryItems() {
11339
11327
  return _ref.apply(this, arguments);
11340
11328
  };
11341
11329
  }();
11342
- var _onCancel = function onCancel() {
11343
- setVisible(false);
11344
- };
11345
- var onOk = function onOk() {
11346
- onSubmit(selectList);
11347
- _onCancel();
11348
- };
11349
- var onFinish = function onFinish(fieldsValue) {
11350
- var searchValue = {
11351
- code: fieldsValue.code
11352
- };
11353
- queryItems(searchValue);
11330
+ var disabledDate = function disabledDate(current) {
11331
+ var today = hooks(hooks().format('YYYY-MM-DD'));
11332
+ var currentDay = hooks(current.format('YYYY-MM-DD'));
11333
+ if (currentDay.diff(today, 'days') > 0) {
11334
+ return true;
11335
+ }
11336
+ if (!dates) {
11337
+ return false;
11338
+ }
11339
+ var tooLate = dates[0] && current.diff(dates[0], 'days') > 30;
11340
+ var tooEarly = dates[1] && dates[1].diff(current, 'days') > 30;
11341
+ return !!tooEarly || !!tooLate;
11342
+ };
11343
+ var onOpenChange = function onOpenChange(open) {
11344
+ if (open) {
11345
+ setDates([null, null]);
11346
+ } else {
11347
+ setDates(null);
11348
+ }
11354
11349
  };
11355
11350
  var onReset = function onReset() {
11356
- form.resetFields();
11357
11351
  form.setFieldsValue({
11358
- dateTimePicker: [hooks().subtract(30, 'd'), hooks()],
11359
- code: ''
11352
+ dateTimePicker: getInitTime(),
11353
+ goodNo: '',
11354
+ specNo: ''
11360
11355
  });
11361
11356
  setPageNo(function (prev) {
11362
- if (prev === 1 && visible) {
11357
+ if (prev === 1) {
11363
11358
  queryItems();
11364
11359
  }
11365
11360
  return 1;
11366
11361
  });
11367
11362
  };
11368
- // const getShopList = async () => {
11369
- // const { success, data } = await request('/qy/diamond/getConfigInfo', {
11370
- // method: 'get',
11371
- // params: {
11372
- // key: 'company-third-shop-info',
11373
- // },
11374
- // });
11375
- // const obj: any = JSON.parse(data || '{}');
11376
- // if (success) {
11377
- // const list = (obj?.[companyKey] || []).map((item: any) => {
11378
- // return {
11379
- // label: item.shopName,
11380
- // value: item.shopCode,
11381
- // };
11382
- // });
11383
- // setShopList(list);
11384
- // }
11385
- // };
11386
- var onValuesChange = function onValuesChange(changedValues) {
11387
- if (changedValues === null || changedValues === void 0 ? void 0 : changedValues['shopId']) {
11388
- queryItems(changedValues === null || changedValues === void 0 ? void 0 : changedValues.shopId);
11389
- pubsub.publish('changeShopCode', {
11390
- shopCode: changedValues.shopId
11391
- });
11392
- }
11393
- };
11394
- var handleDelete = function handleDelete(record, index) {
11363
+ var handleDelete = function handleDelete(record) {
11395
11364
  var newSelectList = selectList.filter(function (item) {
11396
11365
  return item.specId !== record.specId;
11397
11366
  });
11398
11367
  setSelect(_toConsumableArray(newSelectList));
11399
- setSelectIds(_toConsumableArray(newSelectList.map(function (item) {
11400
- return item.specId;
11401
- })));
11402
11368
  };
11403
11369
  var displaySelectedColumns = [{
11404
11370
  dataIndex: 'operation',
11405
11371
  title: '',
11406
11372
  ellipsis: true,
11407
11373
  width: 50,
11408
- render: function render(_, record, index) {
11374
+ render: function render(_, record) {
11409
11375
  return /*#__PURE__*/React.createElement(DeleteOutlined, {
11410
11376
  onClick: function onClick() {
11411
11377
  return handleDelete(record);
@@ -11436,8 +11402,10 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11436
11402
  }];
11437
11403
  var expandedRowSelection = {
11438
11404
  fixed: true,
11439
- selectedRowKeys: selectIds,
11440
- onSelect: function onSelect(record, selected, selectedRows, nativeEvent) {
11405
+ selectedRowKeys: selectList.map(function (item) {
11406
+ return item.specId;
11407
+ }),
11408
+ onSelect: function onSelect(record, selected) {
11441
11409
  var tempList = [];
11442
11410
  if (selected) {
11443
11411
  tempList = [].concat(_toConsumableArray(selectList), [record]);
@@ -11447,9 +11415,6 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11447
11415
  });
11448
11416
  }
11449
11417
  setSelect(_toConsumableArray(tempList));
11450
- setSelectIds(_toConsumableArray(tempList.map(function (item) {
11451
- return item.specId;
11452
- })));
11453
11418
  },
11454
11419
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
11455
11420
  var tempAllList = [];
@@ -11463,15 +11428,12 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11463
11428
  });
11464
11429
  }
11465
11430
  setSelect(_toConsumableArray(tempAllList));
11466
- setSelectIds(_toConsumableArray(tempAllList.map(function (item) {
11467
- return item.specId;
11468
- })));
11469
11431
  }
11470
11432
  };
11471
- var expandedRowRender = function expandedRowRender(record, index, indent, expanded) {
11433
+ var expandedRowRender = function expandedRowRender(record) {
11472
11434
  return /*#__PURE__*/React.createElement(Table, {
11473
- rowKey: 'specId',
11474
- size: 'small',
11435
+ rowKey: "specId",
11436
+ size: "small",
11475
11437
  columns: expandedColumns,
11476
11438
  dataSource: record.itemDetailList || [],
11477
11439
  pagination: false,
@@ -11481,43 +11443,61 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11481
11443
  }
11482
11444
  });
11483
11445
  };
11484
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
11485
- title: '选择商品',
11486
- okText: '确认',
11487
- cancelText: '取消',
11488
- visible: visible,
11489
- width: width || 850,
11490
- onCancel: function onCancel() {
11491
- _onCancel();
11492
- },
11493
- onOk: onOk,
11494
- wrapClassName: "goodModal"
11495
- }, /*#__PURE__*/React.createElement(Form, {
11446
+ React.useEffect(function () {
11447
+ queryItems();
11448
+ }, []);
11449
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, {
11496
11450
  layout: "inline",
11497
11451
  form: form,
11498
- onFinish: onFinish,
11499
- onValuesChange: onValuesChange,
11452
+ onFinish: queryItems,
11500
11453
  initialValues: {
11501
- code: ''
11454
+ goodNo: '',
11455
+ specNo: '',
11456
+ dateTimePicker: getInitTime()
11502
11457
  }
11503
11458
  }, /*#__PURE__*/React.createElement(Form.Item, {
11504
- name: "dateTimePicker"
11459
+ name: "dateTimePicker",
11460
+ style: {
11461
+ marginBottom: '12px'
11462
+ }
11505
11463
  }, /*#__PURE__*/React.createElement(RangePicker, {
11506
11464
  style: {
11507
- width: '350px'
11465
+ width: '240px'
11508
11466
  },
11509
11467
  placeholder: ['开始日期', '结束日期'],
11510
- showTime: true,
11511
- defaultValue: [hooks(initStartTime.format(dateFormat), dateFormat), hooks(initEndTime.format(dateFormat), dateFormat)]
11468
+ showTime: false,
11469
+ disabledDate: disabledDate,
11470
+ onCalendarChange: function onCalendarChange(val) {
11471
+ return setDates(val);
11472
+ },
11473
+ onOpenChange: onOpenChange
11512
11474
  })), /*#__PURE__*/React.createElement(Form.Item, {
11513
- name: "code"
11475
+ name: "goodNo",
11476
+ style: {
11477
+ marginBottom: '12px'
11478
+ }
11514
11479
  }, /*#__PURE__*/React.createElement(Input, {
11515
11480
  placeholder: "\u5546\u54C1SPU\u7F16\u7801",
11516
11481
  allowClear: true,
11517
11482
  style: {
11518
11483
  width: 150
11519
11484
  }
11520
- })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
11485
+ })), /*#__PURE__*/React.createElement(Form.Item, {
11486
+ name: "specNo",
11487
+ style: {
11488
+ marginBottom: '12px'
11489
+ }
11490
+ }, /*#__PURE__*/React.createElement(Input, {
11491
+ placeholder: "\u5546\u54C1SKU\u7F16\u7801",
11492
+ allowClear: true,
11493
+ style: {
11494
+ width: 150
11495
+ }
11496
+ })), /*#__PURE__*/React.createElement(Form.Item, {
11497
+ style: {
11498
+ marginBottom: '12px'
11499
+ }
11500
+ }, /*#__PURE__*/React.createElement(Button, {
11521
11501
  type: "primary",
11522
11502
  htmlType: "submit",
11523
11503
  style: {
@@ -11527,10 +11507,10 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11527
11507
  onClick: onReset
11528
11508
  }, "\u91CD\u7F6E"))), /*#__PURE__*/React.createElement("div", {
11529
11509
  style: {
11530
- marginTop: '16px'
11510
+ marginTop: '4px'
11531
11511
  }
11532
11512
  }, /*#__PURE__*/React.createElement(Table, {
11533
- rowKey: 'goodNo',
11513
+ rowKey: "goodNo",
11534
11514
  columns: columns$1,
11535
11515
  dataSource: goodList,
11536
11516
  loading: loading,
@@ -11547,14 +11527,14 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11547
11527
  current: pageNo,
11548
11528
  pageSize: pageSize,
11549
11529
  pageSizeOptions: [],
11550
- onChange: pageChange
11530
+ onChange: setPageNo
11551
11531
  }
11552
11532
  })), !!selectList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, "\u5DF2\u7ECF\u9009\u62E9\u5546\u54C1\uFF08", selectList.length, "\uFF09"), /*#__PURE__*/React.createElement("div", {
11553
11533
  style: {
11554
11534
  marginTop: '16px'
11555
11535
  }
11556
11536
  }, /*#__PURE__*/React.createElement(Table, {
11557
- rowKey: 'specId',
11537
+ rowKey: "specId",
11558
11538
  columns: [].concat(displaySelectedColumns, expandedColumns),
11559
11539
  dataSource: displaySelectList,
11560
11540
  pagination: false,
@@ -11565,7 +11545,48 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11565
11545
  style: {
11566
11546
  width: '100%'
11567
11547
  }
11568
- })))));
11548
+ }))));
11549
+ };
11550
+ var WdtGoodList = /*#__PURE__*/forwardRef(GoodList);
11551
+
11552
+ var GoodsModal$3 = function GoodsModal(props, ref) {
11553
+ useImperativeHandle(ref, function () {
11554
+ return {
11555
+ open: function open() {
11556
+ setVisible(true);
11557
+ }
11558
+ };
11559
+ });
11560
+ var onSubmit = props.onSubmit,
11561
+ width = props.width;
11562
+ var _useState = useState(false),
11563
+ _useState2 = _slicedToArray(_useState, 2),
11564
+ visible = _useState2[0],
11565
+ setVisible = _useState2[1];
11566
+ var wdtGoodListRef = useRef(null);
11567
+ var _onCancel = function onCancel() {
11568
+ setVisible(false);
11569
+ };
11570
+ var onOk = function onOk() {
11571
+ var _wdtGoodListRef$curre;
11572
+ var selectedList = ((_wdtGoodListRef$curre = wdtGoodListRef.current) === null || _wdtGoodListRef$curre === void 0 ? void 0 : _wdtGoodListRef$curre.getSelectGoodList()) || [];
11573
+ onSubmit(selectedList);
11574
+ _onCancel();
11575
+ };
11576
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
11577
+ title: '选择商品',
11578
+ okText: '确认',
11579
+ cancelText: '取消',
11580
+ visible: visible,
11581
+ width: width || 850,
11582
+ onCancel: function onCancel() {
11583
+ _onCancel();
11584
+ },
11585
+ onOk: onOk,
11586
+ wrapClassName: "goodModal"
11587
+ }, /*#__PURE__*/React.createElement(WdtGoodList, {
11588
+ ref: wdtGoodListRef
11589
+ })));
11569
11590
  };
11570
11591
  var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
11571
11592
 
@@ -11621,9 +11642,34 @@ var GoodItem$1 = function GoodItem(props) {
11621
11642
  useEffect(function () {
11622
11643
  setSelectedRowKeys([]);
11623
11644
  }, [tableSelect, selectType]);
11624
- var updateHandle = function updateHandle(val, index, type) {
11645
+ var updateHandle = function updateHandle(val, index, columnType) {
11625
11646
  if (value === null || value === void 0 ? void 0 : value.length) {
11626
- value[index][type] = val;
11647
+ value[index][columnType] = val;
11648
+ if (type === 'WDT_RETURN_GOODS') {
11649
+ if (['sharePrice', 'num'].includes(columnType)) {
11650
+ var totalMoney = null;
11651
+ if (columnType === 'num') {
11652
+ totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].sharePrice));
11653
+ } else {
11654
+ totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
11655
+ }
11656
+ if (totalMoney !== null) {
11657
+ value[index]['returnPrice'] = totalMoney.toString();
11658
+ }
11659
+ }
11660
+ } else if (type === 'WDT_EXCHANGE_GOODS') {
11661
+ if (['price', 'num'].includes(columnType)) {
11662
+ var _totalMoney = null;
11663
+ if (columnType === 'num') {
11664
+ _totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].price));
11665
+ } else {
11666
+ _totalMoney = new BigNumber(value[index][columnType]).multipliedBy(new BigNumber(value[index].num));
11667
+ }
11668
+ if (_totalMoney !== null) {
11669
+ value[index]['exchangePrice'] = _totalMoney.toString();
11670
+ }
11671
+ }
11672
+ }
11627
11673
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
11628
11674
  }
11629
11675
  };
@@ -11729,6 +11775,260 @@ var GoodItem$1 = function GoodItem(props) {
11729
11775
  }
11730
11776
  }];
11731
11777
  break;
11778
+ case 'WDT_RETURN_GOODS':
11779
+ {
11780
+ columns = [{
11781
+ dataIndex: 'goodId',
11782
+ title: "SPUID",
11783
+ align: 'center',
11784
+ ellipsis: true,
11785
+ width: 70
11786
+ }, {
11787
+ dataIndex: 'goodNo',
11788
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11789
+ align: 'center',
11790
+ ellipsis: true,
11791
+ width: 180
11792
+ }, {
11793
+ dataIndex: 'goodName',
11794
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11795
+ align: 'center',
11796
+ ellipsis: true,
11797
+ width: 250
11798
+ }, {
11799
+ dataIndex: 'specId',
11800
+ title: "".concat(text, "SKUID"),
11801
+ align: 'center',
11802
+ ellipsis: true,
11803
+ width: 100
11804
+ }, {
11805
+ dataIndex: 'specNo',
11806
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11807
+ align: 'center',
11808
+ ellipsis: true,
11809
+ width: 180
11810
+ }, {
11811
+ dataIndex: 'specName',
11812
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11813
+ align: 'center',
11814
+ ellipsis: true,
11815
+ width: 250
11816
+ }, {
11817
+ dataIndex: 'num',
11818
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
11819
+ align: 'center',
11820
+ ellipsis: true,
11821
+ width: 100,
11822
+ render: function render(val, record, index) {
11823
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
11824
+ style: {
11825
+ width: 70
11826
+ },
11827
+ value: val,
11828
+ min: 0,
11829
+ precision: 0,
11830
+ onChange: function onChange(num) {
11831
+ return updateHandle(num, index, 'num');
11832
+ }
11833
+ }) : /*#__PURE__*/React.createElement("span", null, val);
11834
+ }
11835
+ }, {
11836
+ dataIndex: 'sharePrice',
11837
+ title: "\u5206\u644A\u4EF7",
11838
+ align: 'center',
11839
+ ellipsis: true,
11840
+ width: 80,
11841
+ render: function render(val, record, index) {
11842
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
11843
+ style: {
11844
+ width: 70
11845
+ },
11846
+ value: val,
11847
+ min: 0,
11848
+ onChange: function onChange(value) {
11849
+ return updateHandle(value, index, 'sharePrice');
11850
+ }
11851
+ }) : /*#__PURE__*/React.createElement("span", null, val);
11852
+ }
11853
+ }, {
11854
+ dataIndex: 'returnPrice',
11855
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
11856
+ align: 'center',
11857
+ ellipsis: true,
11858
+ width: 100
11859
+ }, {
11860
+ dataIndex: 'giftType',
11861
+ title: "\u8D60\u54C1\u65B9\u5F0F",
11862
+ align: 'center',
11863
+ ellipsis: true,
11864
+ width: 100,
11865
+ render: function render(val) {
11866
+ var giftTypeMap = {
11867
+ 0: '非赠品',
11868
+ 1: '自动赠送',
11869
+ 2: '手工赠送',
11870
+ 3: '回购自动送赠品',
11871
+ 4: '前N有礼送赠品',
11872
+ 6: '天猫优仓赠品',
11873
+ 7: '淘宝CRM会员送赠'
11874
+ };
11875
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
11876
+ }
11877
+ }, {
11878
+ dataIndex: 'productType',
11879
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
11880
+ align: 'center',
11881
+ ellipsis: true,
11882
+ width: 100,
11883
+ render: function render(val, record, index) {
11884
+ var options = [{
11885
+ label: '单品',
11886
+ value: '1'
11887
+ }, {
11888
+ label: '组合装',
11889
+ value: '2'
11890
+ }];
11891
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
11892
+ style: {
11893
+ width: 70
11894
+ },
11895
+ options: options,
11896
+ value: val,
11897
+ onChange: function onChange(value) {
11898
+ return updateHandle(value, index, 'productType');
11899
+ }
11900
+ }) : /*#__PURE__*/React.createElement("span", null, val);
11901
+ }
11902
+ }];
11903
+ }
11904
+ break;
11905
+ case 'WDT_EXCHANGE_GOODS':
11906
+ {
11907
+ columns = [{
11908
+ dataIndex: 'goodId',
11909
+ title: "SPUID",
11910
+ align: 'center',
11911
+ ellipsis: true,
11912
+ width: 70
11913
+ }, {
11914
+ dataIndex: 'goodNo',
11915
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11916
+ align: 'center',
11917
+ ellipsis: true,
11918
+ width: 180
11919
+ }, {
11920
+ dataIndex: 'goodName',
11921
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11922
+ align: 'center',
11923
+ ellipsis: true,
11924
+ width: 250
11925
+ }, {
11926
+ dataIndex: 'specId',
11927
+ title: "".concat(text, "SKUID"),
11928
+ align: 'center',
11929
+ ellipsis: true,
11930
+ width: 100
11931
+ }, {
11932
+ dataIndex: 'specNo',
11933
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11934
+ align: 'center',
11935
+ ellipsis: true,
11936
+ width: 180
11937
+ }, {
11938
+ dataIndex: 'specName',
11939
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11940
+ align: 'center',
11941
+ ellipsis: true,
11942
+ width: 250
11943
+ }, {
11944
+ dataIndex: 'num',
11945
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
11946
+ align: 'center',
11947
+ ellipsis: true,
11948
+ width: 100,
11949
+ render: function render(val, record, index) {
11950
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
11951
+ style: {
11952
+ width: 70
11953
+ },
11954
+ value: val,
11955
+ min: 0,
11956
+ precision: 0,
11957
+ onChange: function onChange(num) {
11958
+ return updateHandle(num, index, 'num');
11959
+ }
11960
+ }) : /*#__PURE__*/React.createElement("span", null, val);
11961
+ }
11962
+ }, {
11963
+ dataIndex: 'price',
11964
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
11965
+ align: 'center',
11966
+ ellipsis: true,
11967
+ width: 100,
11968
+ render: function render(val, record, index) {
11969
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
11970
+ style: {
11971
+ width: 70
11972
+ },
11973
+ value: val,
11974
+ min: 0,
11975
+ onChange: function onChange(value) {
11976
+ return updateHandle(value, index, 'price');
11977
+ }
11978
+ }) : /*#__PURE__*/React.createElement("span", null, val);
11979
+ }
11980
+ }, {
11981
+ dataIndex: 'exchangePrice',
11982
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
11983
+ align: 'center',
11984
+ ellipsis: true,
11985
+ width: 100
11986
+ }, {
11987
+ dataIndex: 'giftType',
11988
+ title: "\u8D60\u54C1\u65B9\u5F0F",
11989
+ align: 'center',
11990
+ ellipsis: true,
11991
+ width: 100,
11992
+ render: function render(val) {
11993
+ var giftTypeMap = {
11994
+ 0: '非赠品',
11995
+ 1: '自动赠送',
11996
+ 2: '手工赠送',
11997
+ 3: '回购自动送赠品',
11998
+ 4: '前N有礼送赠品',
11999
+ 6: '天猫优仓赠品',
12000
+ 7: '淘宝CRM会员送赠'
12001
+ };
12002
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12003
+ }
12004
+ }, {
12005
+ dataIndex: 'productType',
12006
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
12007
+ align: 'center',
12008
+ ellipsis: true,
12009
+ width: 100,
12010
+ render: function render(val, record, index) {
12011
+ var options = [{
12012
+ label: '单品',
12013
+ value: '1'
12014
+ }, {
12015
+ label: '组合装',
12016
+ value: '2'
12017
+ }];
12018
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
12019
+ style: {
12020
+ width: 70
12021
+ },
12022
+ options: options,
12023
+ value: val,
12024
+ onChange: function onChange(value) {
12025
+ return updateHandle(value, index, 'productType');
12026
+ }
12027
+ }) : /*#__PURE__*/React.createElement("span", null, val);
12028
+ }
12029
+ }];
12030
+ }
12031
+ break;
11732
12032
  default:
11733
12033
  columns = [{
11734
12034
  dataIndex: 'mark',
@@ -11870,7 +12170,7 @@ var GoodItem$1 = function GoodItem(props) {
11870
12170
  }, [showHeader, value, disabled]);
11871
12171
  var onSubmit = function onSubmit(list) {
11872
12172
  var newList = [];
11873
- if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
12173
+ if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
11874
12174
  newList = list.map(function (item) {
11875
12175
  item.uuid = uuid();
11876
12176
  item.canDelete = true;
@@ -11878,6 +12178,10 @@ var GoodItem$1 = function GoodItem(props) {
11878
12178
  item.orderPrice = 0;
11879
12179
  item.sharePrice = 0;
11880
12180
  item.canUpdateNumber = canUpdateNumber;
12181
+ if (type === 'WDT_EXCHANGE_GOODS') {
12182
+ item.price = item.retailPrice;
12183
+ item.productType = '1';
12184
+ }
11881
12185
  return item;
11882
12186
  });
11883
12187
  } else {
@@ -11948,7 +12252,7 @@ var GoodItem$1 = function GoodItem(props) {
11948
12252
  locale: {
11949
12253
  emptyText: '暂无数据'
11950
12254
  }
11951
- })), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(WdtGoodsModal, {
12255
+ })), ['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(WdtGoodsModal, {
11952
12256
  ref: refModal,
11953
12257
  onSubmit: onSubmit,
11954
12258
  width: width,
@@ -12352,20 +12656,6 @@ var typeMap = {
12352
12656
  money: 'money',
12353
12657
  share: 'share'
12354
12658
  }
12355
- },
12356
- WDT_REISSUE_GOODS: {
12357
- key: 'wdtReissueGoods',
12358
- name: '旺店通',
12359
- typeName: 'wdtReissueType',
12360
- reissueSelectList: 'wdtReissueSelectList',
12361
- reissueSelectListReturn: 'wdtReissueSelectListReturn',
12362
- reissueDeleteGood: 'wdtReissueDeleteGood',
12363
- changeShopCode: 'wdtChangeShopCode',
12364
- reissueType: 'wdtReissueType',
12365
- formatDefaultField: {
12366
- money: 'orderPrice',
12367
- share: 'sharePrice'
12368
- }
12369
12659
  }
12370
12660
  };
12371
12661
  var BsReissue = function BsReissue(props) {
@@ -12619,7 +12909,7 @@ var index$1 = (function (props) {
12619
12909
  getWdtOrderList(value.orderNo);
12620
12910
  }
12621
12911
  }
12622
- }, [value, type]);
12912
+ }, [value === null || value === void 0 ? void 0 : value.orderNo, type]);
12623
12913
  var columns = useMemo(function () {
12624
12914
  var _columnsNameMap$type, _columnsNameMap$type2;
12625
12915
  return [{
@@ -12832,8 +13122,10 @@ var componentMap$1 = {
12832
13122
  reissueType: 'wdtReissueType',
12833
13123
  returnType: 'wdtReturnType',
12834
13124
  returnSelectListReturn: 'wdtReturnSelectListReturn',
13125
+ returnSelectList: 'wdtReturnSelectList',
12835
13126
  deleteGood: 'wdtDeleteGood',
12836
- returnDeleteGood: 'wdtReturnDeleteGood'
13127
+ returnDeleteGood: 'wdtReturnDeleteGood',
13128
+ exchangeDeleteGood: 'wdtExchangeDeleteGood'
12837
13129
  }
12838
13130
  }
12839
13131
  };
@@ -12900,7 +13192,7 @@ var CommonGoods = function CommonGoods(props) {
12900
13192
  setTableSelect(['2', '4'].includes(data.val));
12901
13193
  if (['1', '3'].includes(data.val)) {
12902
13194
  var _valueRef$current5, _valueRef$current6;
12903
- pubsub.publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
13195
+ pubsub.publish(componentMap$1[compType].eventNameMap.returnSelectListReturn, {
12904
13196
  list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5[componentMap$1[compType].key]) || []),
12905
13197
  shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
12906
13198
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
@@ -12918,15 +13210,15 @@ var CommonGoods = function CommonGoods(props) {
12918
13210
  };
12919
13211
  }, [disabled]);
12920
13212
  var _onSelect = function onSelect(list) {
12921
- var _withInfo$current, _withInfo$current2, _valueRef$current7;
13213
+ var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$current7;
12922
13214
  if (disabled) return;
12923
13215
  var newList = cloneDeep(list);
12924
- var typeMap = _defineProperty({
13216
+ var typeMap = (_typeMap = {
12925
13217
  // type: componentMap[compType].eventNameMap.selectList,
12926
13218
  // returnType: componentMap[compType].eventNameMap.returnSelectList,
12927
13219
  // reissueType: componentMap[compType].eventNameMap.reissueSelectList,
12928
13220
  type: componentMap$1[compType].eventNameMap.selectList
12929
- }, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
13221
+ }, _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList), _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReturnType"), componentMap$1[compType].eventNameMap.returnSelectList), _typeMap);
12930
13222
  var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
12931
13223
  // console.log('onSelect', type, withInfo.current, newList);
12932
13224
  pubsub.publish(type, {
@@ -12944,6 +13236,7 @@ var CommonGoods = function CommonGoods(props) {
12944
13236
  pubsub.publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
12945
13237
  pubsub.publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
12946
13238
  pubsub.publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
13239
+ pubsub.publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
12947
13240
  };
12948
13241
  var changeHandle = function changeHandle(list) {
12949
13242
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
@@ -12968,12 +13261,502 @@ var CommonGoods = function CommonGoods(props) {
12968
13261
  }));
12969
13262
  };
12970
13263
 
12971
- 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";
12972
- styleInject(css_248z$a);
12973
-
12974
- var TabPane$1 = Tabs.TabPane;
12975
- var Option$2 = Select.Option;
12976
- var Search$1 = Input.Search;
13264
+ var componentMap$2 = {
13265
+ 'WDT_RETURN_GOODS': {
13266
+ type: 'wdt',
13267
+ valueKey: 'wdtReturnGoods',
13268
+ returnTypeKey: 'wdtReturnType',
13269
+ name: '旺店通',
13270
+ eventNameMap: {
13271
+ changeShopCode: 'wdtChangeShopCode',
13272
+ returnType: 'wdtReturnType',
13273
+ returnSelectListReturn: 'wdtReturnSelectListReturn',
13274
+ returnDeleteGood: 'wdtReturnDeleteGood',
13275
+ returnSelectList: 'wdtReturnSelectList',
13276
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13277
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13278
+ }
13279
+ }
13280
+ };
13281
+ var CommonReturnGoods = function CommonReturnGoods(props) {
13282
+ var value = props.value,
13283
+ onChange = props.onChange,
13284
+ _props$reasonList = props.reasonList,
13285
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
13286
+ disabled = props.disabled,
13287
+ compType = props.type;
13288
+ var valueRef = useRef({});
13289
+ useEffect(function () {
13290
+ var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
13291
+ var _valueRef$current, _valueRef$current2;
13292
+ pubsub.publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
13293
+ list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[componentMap$2[compType].valueKey]) || []),
13294
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
13295
+ });
13296
+ });
13297
+ return function () {
13298
+ pubsub.unsubscribe(subscription);
13299
+ };
13300
+ }, []);
13301
+ useEffect(function () {
13302
+ var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
13303
+ if (disabled) return;
13304
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13305
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13306
+ });
13307
+ if (compType === 'WDT_RETURN_GOODS') {
13308
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13309
+ if (typeof item.productType === 'undefined') {
13310
+ item.productType = '1';
13311
+ }
13312
+ if (typeof item.returnPrice === 'undefined') {
13313
+ item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
13314
+ }
13315
+ return item;
13316
+ });
13317
+ } else {
13318
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13319
+ }
13320
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13321
+ });
13322
+ return function () {
13323
+ pubsub.unsubscribe(subscription);
13324
+ };
13325
+ }, []);
13326
+ useEffect(function () {
13327
+ var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
13328
+ if (disabled) return;
13329
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13330
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13331
+ });
13332
+ if (compType === 'WDT_RETURN_GOODS') {
13333
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13334
+ if (typeof item.productType === 'undefined') {
13335
+ item.productType = '1';
13336
+ }
13337
+ if (typeof item.returnPrice === 'undefined') {
13338
+ item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
13339
+ }
13340
+ return item;
13341
+ });
13342
+ } else {
13343
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13344
+ }
13345
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13346
+ });
13347
+ return function () {
13348
+ pubsub.unsubscribe(subscription);
13349
+ };
13350
+ }, []);
13351
+ useEffect(function () {
13352
+ valueRef.current = value;
13353
+ pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
13354
+ if (disabled) return;
13355
+ if (value) {
13356
+ var newValue = _objectSpread2({}, value);
13357
+ newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
13358
+ return item.sku !== data;
13359
+ });
13360
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13361
+ }
13362
+ });
13363
+ pubsub.subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
13364
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13365
+ shopCode: data.shopCode
13366
+ }));
13367
+ });
13368
+ }, [value, disabled]);
13369
+ var changeTypeHandle = function changeTypeHandle(val) {
13370
+ var newValue = _objectSpread2({}, value);
13371
+ newValue[componentMap$2[compType].returnTypeKey] = val;
13372
+ newValue[componentMap$2[compType].valueKey] = [];
13373
+ if (['2'].includes(val[0])) {
13374
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13375
+ valueRef.current = newValue;
13376
+ }
13377
+ pubsub.publish(componentMap$2[compType].eventNameMap.returnType, {
13378
+ val: val[0],
13379
+ goodValue: newValue
13380
+ });
13381
+ };
13382
+ var changeGoodHandle = function changeGoodHandle(val) {
13383
+ var newValue = _objectSpread2({}, value);
13384
+ newValue[componentMap$2[compType].valueKey] = val;
13385
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13386
+ };
13387
+ //显示选择商品按钮 原单换不显示选择商品
13388
+ // const showChangeBtn = useMemo(() => {
13389
+ // return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
13390
+ // }, [value?.[componentMap[compType].returnTypeKey]]);
13391
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, {
13392
+ style: {
13393
+ marginBottom: '8px'
13394
+ },
13395
+ disabled: disabled,
13396
+ allowClear: false,
13397
+ options: reasonList,
13398
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
13399
+ onChange: function onChange(val) {
13400
+ return changeTypeHandle(val);
13401
+ }
13402
+ }), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13403
+ key: componentMap$2[compType].type
13404
+ }, props), {}, {
13405
+ disabled: disabled,
13406
+ canUpdateNumber: true,
13407
+ showChangeBtn: false,
13408
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13409
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
13410
+ onChange: function onChange(val) {
13411
+ return changeGoodHandle(val);
13412
+ }
13413
+ })));
13414
+ };
13415
+
13416
+ var componentMap$3 = {
13417
+ 'WDT_EXCHANGE_GOODS': {
13418
+ type: 'wdt',
13419
+ valueKey: 'wdtExchangeGoods',
13420
+ returnTypeKey: 'wdtExchangeType',
13421
+ name: '旺店通',
13422
+ eventNameMap: {
13423
+ changeShopCode: 'wdtChangeShopCode',
13424
+ exchangeDeleteGood: 'wdtExchangeDeleteGood',
13425
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13426
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13427
+ }
13428
+ }
13429
+ };
13430
+ var CommonExchangeGoods = function CommonExchangeGoods(props) {
13431
+ var value = props.value,
13432
+ onChange = props.onChange,
13433
+ disabled = props.disabled,
13434
+ compType = props.type;
13435
+ var valueRef = useRef({});
13436
+ useEffect(function () {
13437
+ var subscription = pubsub.subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
13438
+ if (disabled) return;
13439
+ var newValue = {
13440
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13441
+ };
13442
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13443
+ newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13444
+ if (typeof item.productType === 'undefined') {
13445
+ item.productType = '1';
13446
+ }
13447
+ item.price = item.sharePrice;
13448
+ if (typeof item.exchangePrice === 'undefined') {
13449
+ item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
13450
+ }
13451
+ return item;
13452
+ });
13453
+ } else {
13454
+ newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13455
+ }
13456
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13457
+ });
13458
+ return function () {
13459
+ pubsub.unsubscribe(subscription);
13460
+ };
13461
+ });
13462
+ useEffect(function () {
13463
+ valueRef.current = value;
13464
+ pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
13465
+ if (disabled) return;
13466
+ if (value) {
13467
+ var newValue = _objectSpread2({}, value);
13468
+ newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
13469
+ return item.sku !== data;
13470
+ });
13471
+ onChange(newValue);
13472
+ }
13473
+ });
13474
+ pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
13475
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13476
+ shopCode: data.shopCode
13477
+ }));
13478
+ });
13479
+ }, [value]);
13480
+ var changeGoodHandle = function changeGoodHandle(val) {
13481
+ var newValue = _objectSpread2({}, value);
13482
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13483
+ val = val.map(function (item) {
13484
+ item.exchangePrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.price)).toString();
13485
+ return item;
13486
+ });
13487
+ }
13488
+ newValue[componentMap$3[compType].valueKey] = val;
13489
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13490
+ };
13491
+ var copyGoods = function copyGoods() {
13492
+ var copyHandle = function copyHandle() {
13493
+ pubsub.publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
13494
+ };
13495
+ return /*#__PURE__*/React.createElement(Button, {
13496
+ type: "link",
13497
+ onClick: copyHandle
13498
+ }, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
13499
+ };
13500
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13501
+ key: componentMap$3[compType].type
13502
+ }, props), {}, {
13503
+ disabled: disabled,
13504
+ canUpdateNumber: true,
13505
+ showChangeBtn: true,
13506
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13507
+ value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
13508
+ otherOperations: copyGoods(),
13509
+ onChange: function onChange(val) {
13510
+ return changeGoodHandle(val);
13511
+ }
13512
+ })));
13513
+ };
13514
+
13515
+ var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
13516
+ var typeMap$1 = {
13517
+ WDT_REISSUE_GOODS: {
13518
+ key: 'wdtReissueGoods',
13519
+ name: '旺店通',
13520
+ typeName: 'wdtReissueType',
13521
+ wdtSystemOrder: 'wdtSystemOrder',
13522
+ wdtSystemOrderNo: 'wdtSystemOrderNo',
13523
+ reissueSelectList: 'wdtReissueSelectList',
13524
+ reissueSelectListReturn: 'wdtReissueSelectListReturn',
13525
+ reissueDeleteGood: 'wdtReissueDeleteGood',
13526
+ changeShopCode: 'wdtChangeShopCode',
13527
+ reissueType: 'wdtReissueType',
13528
+ formatDefaultField: {
13529
+ money: 'orderPrice',
13530
+ share: 'sharePrice'
13531
+ }
13532
+ }
13533
+ };
13534
+ var wdtReissue = function wdtReissue(props) {
13535
+ var _typeMap$type7, _value$typeMap$type$t3, _typeMap$type11, _typeMap$type25, _typeMap$type26, _value$typeMap$type$w2, _typeMap$type27, _typeMap$type28, _typeMap$type29;
13536
+ var value = props.value,
13537
+ onChange = props.onChange,
13538
+ _props$reasonList = props.reasonList,
13539
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
13540
+ disabled = props.disabled,
13541
+ type = props.type,
13542
+ other = _objectWithoutProperties(props, _excluded$g);
13543
+ var valueRef = useRef({});
13544
+ useEffect(function () {
13545
+ var _typeMap$type, _typeMap$type4;
13546
+ valueRef.current = value;
13547
+ pubsub.subscribeOnce("".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type = typeMap$1[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.reissueDeleteGood), function (_, data) {
13548
+ if (disabled) return;
13549
+ if (value) {
13550
+ var _typeMap$type2, _typeMap$type3;
13551
+ var newValue = _objectSpread2({}, value);
13552
+ newValue["".concat((_typeMap$type2 = typeMap$1[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.key)] = newValue === null || newValue === void 0 ? void 0 : newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type3 = typeMap$1[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.key)].filter(function (item) {
13553
+ return item.sku !== data;
13554
+ });
13555
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13556
+ }
13557
+ });
13558
+ pubsub.subscribeOnce("".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type4 = typeMap$1[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.changeShopCode), function (type, data) {
13559
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13560
+ shopCode: data.shopCode
13561
+ }));
13562
+ });
13563
+ }, [value, disabled]);
13564
+ useEffect(function () {
13565
+ var _value$orders, _value$showOrderInfo;
13566
+ if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
13567
+ if (type === 'WDT_SYSTEM_ORDER') {
13568
+ getWdtOrderList(value.orderNo);
13569
+ }
13570
+ }
13571
+ return;
13572
+ }, [value]);
13573
+ useEffect(function () {
13574
+ var _typeMap$type5;
13575
+ var wdtSystemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.wdtSystemOrderNo];
13576
+ if (wdtSystemOrderNo) {
13577
+ var _value$typeMap$type$t, _typeMap$type6;
13578
+ if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) {
13579
+ getGoodItems(wdtSystemOrderNo);
13580
+ }
13581
+ }
13582
+ return;
13583
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.wdtSystemOrderNo]]);
13584
+ useEffect(function () {
13585
+ var _value$typeMap$type$t2, _typeMap$type8, _typeMap$type9;
13586
+ var typeName = value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0];
13587
+ var wdtSystemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.wdtSystemOrderNo];
13588
+ if (['1'].includes(typeName)) {
13589
+ wdtSystemOrderNo && getGoodItems(wdtSystemOrderNo);
13590
+ } else if (['2'].includes(typeName)) {
13591
+ var _typeMap$type10;
13592
+ var newValue = _objectSpread2({}, value);
13593
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type10 = typeMap$1[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.key)] = [];
13594
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13595
+ }
13596
+ return;
13597
+ }, [value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0]]);
13598
+ var getGoodItems = function getGoodItems(wdtSystemOrderNo) {
13599
+ var _value$typeMap$type$w, _typeMap$type12, _ref;
13600
+ var orders = value === null || value === void 0 ? void 0 : (_value$typeMap$type$w = value[(_typeMap$type12 = typeMap$1[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.wdtSystemOrder]) === null || _value$typeMap$type$w === void 0 ? void 0 : _value$typeMap$type$w.orders;
13601
+ var order = (_ref = orders || []) === null || _ref === void 0 ? void 0 : _ref.find(function (orderItem) {
13602
+ return orderItem.billNo === wdtSystemOrderNo;
13603
+ });
13604
+ if (order) {
13605
+ var _typeMap$type13, _order$goodDetails;
13606
+ var newValue = _objectSpread2({}, value);
13607
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key)] = order === null || order === void 0 ? void 0 : (_order$goodDetails = order.goodDetails) === null || _order$goodDetails === void 0 ? void 0 : _order$goodDetails.map(function (item) {
13608
+ var _typeMap$type14, _typeMap$type15;
13609
+ item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.formatDefaultField.money)] = 0;
13610
+ item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.formatDefaultField.share)] = 0;
13611
+ item.canUpdateNumber = true;
13612
+ return item;
13613
+ });
13614
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13615
+ }
13616
+ };
13617
+ var getWdtOrderList = /*#__PURE__*/function () {
13618
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
13619
+ var _yield$request, success, data, _typeMap$type16, _typeMap$type17, orders, showOrderInfo;
13620
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13621
+ while (1) switch (_context.prev = _context.next) {
13622
+ case 0:
13623
+ _context.next = 2;
13624
+ return extendRequest('/qy/gdfw/order/wdtOrderDetail', {
13625
+ method: 'post',
13626
+ data: {
13627
+ billNo: orderNo
13628
+ }
13629
+ });
13630
+ case 2:
13631
+ _yield$request = _context.sent;
13632
+ success = _yield$request.success;
13633
+ data = _yield$request.data;
13634
+ if (success) {
13635
+ orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
13636
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13637
+ billNo: item.tradeNo,
13638
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13639
+ billTag: item.tagName
13640
+ });
13641
+ });
13642
+ showOrderInfo = data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
13643
+ return {
13644
+ billNo: item.tradeNo,
13645
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13646
+ billTag: item.tagName
13647
+ };
13648
+ });
13649
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.wdtSystemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.wdtSystemOrder]), {}, {
13650
+ showOrderInfo: showOrderInfo,
13651
+ orders: orders
13652
+ }))));
13653
+ }
13654
+ case 6:
13655
+ case "end":
13656
+ return _context.stop();
13657
+ }
13658
+ }, _callee);
13659
+ }));
13660
+ return function getWdtOrderList(_x) {
13661
+ return _ref2.apply(this, arguments);
13662
+ };
13663
+ }();
13664
+ var changeTypeHandle = function changeTypeHandle(val) {
13665
+ var _typeMap$type18, _typeMap$type19;
13666
+ var newValue = _objectSpread2({}, value);
13667
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName)] = val;
13668
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = [];
13669
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13670
+ valueRef.current = newValue;
13671
+ // if (['2'].includes(val[0])) {
13672
+ // onChange?.(newValue);
13673
+ // valueRef.current = newValue;
13674
+ // }
13675
+ // pubsub.publish(`${typeMap?.[type]?.reissueType}`, {
13676
+ // val: val[0],
13677
+ // goodValue: newValue,
13678
+ // });
13679
+ };
13680
+
13681
+ var changeGoodHandle = function changeGoodHandle(val) {
13682
+ var _typeMap$type20;
13683
+ var newValue = _objectSpread2({}, value);
13684
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = (val || []).map(function (item) {
13685
+ var _typeMap$type21, _typeMap$type22;
13686
+ item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.formatDefaultField.money)] = 0;
13687
+ item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.formatDefaultField.share)] = 0;
13688
+ return item;
13689
+ });
13690
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13691
+ };
13692
+ var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
13693
+ var _typeMap$type23;
13694
+ var newValue = _objectSpread2({}, value);
13695
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.wdtSystemOrderNo)] = val;
13696
+ console.log('changeSystemOrderHandle', val, newValue);
13697
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13698
+ };
13699
+ //显示选择商品按钮 原单换不显示选择商品
13700
+ var showChangeBtn = useMemo(function () {
13701
+ var _typeMap$type24;
13702
+ return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.wdtSystemOrderNo]);
13703
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]]);
13704
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
13705
+ gutter: 8
13706
+ }, /*#__PURE__*/React.createElement(Col, {
13707
+ className: "gutter-row",
13708
+ span: 6
13709
+ }, /*#__PURE__*/React.createElement(Select, {
13710
+ style: {
13711
+ marginBottom: '8px'
13712
+ },
13713
+ disabled: disabled,
13714
+ allowClear: false,
13715
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo)],
13716
+ onChange: function onChange(val) {
13717
+ return changeSystemOrderHandle(val);
13718
+ }
13719
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$w2 = value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.wdtSystemOrder]) === null || _value$typeMap$type$w2 === void 0 ? void 0 : _value$typeMap$type$w2.showOrderInfo) || []).map(function (item) {
13720
+ return /*#__PURE__*/React.createElement(Select.Option, {
13721
+ key: item.billNo,
13722
+ value: item.billNo,
13723
+ label: item.billNo
13724
+ }, item.billNo);
13725
+ }))), /*#__PURE__*/React.createElement(Col, {
13726
+ className: "gutter-row",
13727
+ span: 6
13728
+ }, /*#__PURE__*/React.createElement(Cascader, {
13729
+ style: {
13730
+ marginBottom: '8px'
13731
+ },
13732
+ disabled: disabled,
13733
+ allowClear: false,
13734
+ options: reasonList,
13735
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
13736
+ onChange: function onChange(val) {
13737
+ return changeTypeHandle(val);
13738
+ }
13739
+ }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13740
+ key: 'reissueGoods'
13741
+ }, other), {}, {
13742
+ type: type,
13743
+ disabled: disabled,
13744
+ canUpdateNumber: showChangeBtn,
13745
+ showChangeBtn: showChangeBtn,
13746
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13747
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
13748
+ onChange: function onChange(val) {
13749
+ return changeGoodHandle(val);
13750
+ }
13751
+ })));
13752
+ };
13753
+
13754
+ 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";
13755
+ styleInject(css_248z$a);
13756
+
13757
+ var TabPane$1 = Tabs.TabPane;
13758
+ var Option$2 = Select.Option;
13759
+ var Search$1 = Input.Search;
12977
13760
  var GoodsModal$4 = function GoodsModal(props) {
12978
13761
  var onSubmit = props.onSubmit,
12979
13762
  _onCancel = props.onCancel,
@@ -13444,12 +14227,12 @@ var Goods$1 = function Goods(props, ref) {
13444
14227
  };
13445
14228
  var index$2 = /*#__PURE__*/forwardRef(Goods$1);
13446
14229
 
13447
- var _excluded$g = ["onChange", "value", "failValue"];
14230
+ var _excluded$h = ["onChange", "value", "failValue"];
13448
14231
  function CommonStatus(props) {
13449
14232
  var onChange = props.onChange,
13450
14233
  value = props.value,
13451
14234
  failValue = props.failValue,
13452
- other = _objectWithoutProperties(props, _excluded$g);
14235
+ other = _objectWithoutProperties(props, _excluded$h);
13453
14236
  var changeHandle = function changeHandle(val) {
13454
14237
  onChange === null || onChange === void 0 ? void 0 : onChange({
13455
14238
  status: val,
@@ -13558,17 +14341,17 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13558
14341
  },
13559
14342
  value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
13560
14343
  })) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
13561
- disabled: true,
14344
+ disabled: disabled,
13562
14345
  placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
13563
14346
  value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
13564
14347
  })) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
13565
- disabled: true,
14348
+ disabled: disabled,
13566
14349
  placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
13567
14350
  value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
13568
14351
  })) : null) : null);
13569
14352
  };
13570
14353
 
13571
- var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
14354
+ var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
13572
14355
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13573
14356
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
13574
14357
  var _props$value = props.value,
@@ -13578,7 +14361,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13578
14361
  failValue = props.failValue,
13579
14362
  _props$type = props.type,
13580
14363
  type = _props$type === void 0 ? 1 : _props$type,
13581
- other = _objectWithoutProperties(props, _excluded$h);
14364
+ other = _objectWithoutProperties(props, _excluded$i);
13582
14365
  var _useState = useState(0),
13583
14366
  _useState2 = _slicedToArray(_useState, 2),
13584
14367
  changeIndex = _useState2[0],
@@ -13644,7 +14427,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13644
14427
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
13645
14428
  };
13646
14429
 
13647
- var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
14430
+ var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
13648
14431
  var msgTypeCh = {
13649
14432
  ding: '钉钉',
13650
14433
  wechat: '微信',
@@ -13660,7 +14443,7 @@ var MsgStatus = function MsgStatus(props) {
13660
14443
  failValue = props.failValue,
13661
14444
  _props$type = props.type,
13662
14445
  type = _props$type === void 0 ? 1 : _props$type,
13663
- other = _objectWithoutProperties(props, _excluded$i);
14446
+ other = _objectWithoutProperties(props, _excluded$j);
13664
14447
  var _useState = useState(0),
13665
14448
  _useState2 = _slicedToArray(_useState, 2),
13666
14449
  changeIndex = _useState2[0],
@@ -13729,4 +14512,4 @@ var CalculationInput = function CalculationInput(props) {
13729
14512
  }, config === null || config === void 0 ? void 0 : config.unit));
13730
14513
  };
13731
14514
 
13732
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
14515
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };