@kmkf-fe-packages/basic-components 0.27.1-test.3 → 0.27.1-test.4

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,7 +3,7 @@ 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, WDT, 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';
@@ -10417,12 +10417,23 @@ var jstGoods = function jstGoods(props) {
10417
10417
  _useState2 = _slicedToArray(_useState, 2),
10418
10418
  changeIndex = _useState2[0],
10419
10419
  setChangeIndex = _useState2[1]; //选中的包裹
10420
+ var _useState3 = useState([]),
10421
+ _useState4 = _slicedToArray(_useState3, 2),
10422
+ wdtSendOptions = _useState4[0],
10423
+ setSendOptions = _useState4[1];
10420
10424
  useEffect(function () {
10421
10425
  //没有值塞个默认值
10422
10426
  if (!(value === null || value === void 0 ? void 0 : value.length)) {
10423
10427
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
10424
10428
  }
10425
10429
  }, [value, type]);
10430
+ useEffect(function () {
10431
+ if (type === 3 && componentType === 'WDT_SEND_GOOD' && ['sendName', 'all'].includes(showField)) {
10432
+ WDT.getWarehouseDataAsync().then(setSendOptions).catch(function (e) {
10433
+ message.error((e === null || e === void 0 ? void 0 : e.message) || '获取发货仓数据失败,请刷新重试');
10434
+ });
10435
+ }
10436
+ }, []);
10426
10437
  var content = function content(item, index) {
10427
10438
  return /*#__PURE__*/React.createElement("div", {
10428
10439
  style: {
@@ -10444,14 +10455,11 @@ var jstGoods = function jstGoods(props) {
10444
10455
  }));
10445
10456
  };
10446
10457
  var handleSelected = function handleSelected(val, type, option) {
10447
- console.log('[ val ] >', val);
10448
- console.log('[ option ] >', option);
10449
10458
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10450
10459
  changeOrderInfo[type] = val;
10451
10460
  changeOrderInfo['sendId'] = option.warehouseNo;
10452
10461
  var newList = _toConsumableArray(value);
10453
10462
  newList[changeIndex] = changeOrderInfo;
10454
- console.log('[ newList ] >', newList);
10455
10463
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
10456
10464
  };
10457
10465
  var filterOption = function filterOption(input, option) {
@@ -10461,7 +10469,6 @@ var jstGoods = function jstGoods(props) {
10461
10469
  var changeInputHandle = function changeInputHandle(val, type) {
10462
10470
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10463
10471
  changeOrderInfo[type] = val;
10464
- changeOrderInfo['sendId'] = val;
10465
10472
  var newList = _toConsumableArray(value);
10466
10473
  newList[changeIndex] = changeOrderInfo;
10467
10474
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
@@ -10471,19 +10478,6 @@ var jstGoods = function jstGoods(props) {
10471
10478
  var _value$, _value$$items;
10472
10479
  return value && value.length === 1 && !((_value$ = value[0]) === null || _value$ === void 0 ? void 0 : (_value$$items = _value$.items) === null || _value$$items === void 0 ? void 0 : _value$$items.length);
10473
10480
  }, [value]);
10474
- var wdtOptions = [{
10475
- label: '测测你',
10476
- value: '1',
10477
- warehouseNo: 111111
10478
- }, {
10479
- label: 'ceshi',
10480
- value: '2222',
10481
- warehouseNo: 1111112222
10482
- }, {
10483
- label: 'hhhhhh',
10484
- value: '13333',
10485
- warehouseNo: 1111113333
10486
- }];
10487
10481
  return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, {
10488
10482
  wrap: true
10489
10483
  }, (value || []).map(function (item, index) {
@@ -10550,7 +10544,7 @@ var jstGoods = function jstGoods(props) {
10550
10544
  disabled: disabled,
10551
10545
  placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
10552
10546
  showSearch: true,
10553
- options: wdtOptions,
10547
+ options: wdtSendOptions,
10554
10548
  filterOption: filterOption,
10555
10549
  value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName,
10556
10550
  onChange: function onChange(value, option) {
@@ -11136,6 +11130,12 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
11136
11130
  var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
11137
11131
 
11138
11132
  var RangePicker = DatePicker.RangePicker;
11133
+ var getWdtListProduct = function getWdtListProduct(data) {
11134
+ return extendRequest('/qy/gdfw/product/wdtListProduct', {
11135
+ method: 'post',
11136
+ data: data
11137
+ });
11138
+ };
11139
11139
  var columns$1 = [{
11140
11140
  dataIndex: 'index',
11141
11141
  title: 'NO',
@@ -11210,226 +11210,174 @@ var expandedColumns = [{
11210
11210
  title: '会员价',
11211
11211
  width: 140
11212
11212
  }];
11213
- var dateFormat = 'YYYY-MM-DD HH:mm:ss';
11214
- var GoodsModal$3 = function GoodsModal(props, ref) {
11215
- var initStartTime = hooks().subtract(30, 'd');
11216
- var initEndTime = hooks();
11217
- useImperativeHandle(ref, function () {
11218
- return {
11219
- open: function open(shopCode) {
11220
- setVisible(true);
11221
- setPageNo(1);
11222
- setSelect([]);
11223
- setSelectIds([]);
11224
- form.setFieldsValue({
11225
- dateTimePicker: [initStartTime, initEndTime],
11226
- code: ''
11227
- });
11228
- // getShopList();
11229
- }
11230
- };
11231
- });
11232
-
11233
- var onSubmit = props.onSubmit,
11234
- shopId = props.shopId,
11235
- shopList = props.shopList,
11236
- width = props.width,
11237
- companyKey = props.companyKey;
11238
- var _useState = useState(false),
11213
+ var getInitTime = function getInitTime() {
11214
+ var initStartTime = hooks().subtract(30, 'd').hours(0).minutes(0).seconds(0);
11215
+ var initEndTime = hooks().hours(23).minutes(59).seconds(59);
11216
+ return [initStartTime, initEndTime];
11217
+ };
11218
+ var GoodList = function GoodList(props, ref) {
11219
+ var _useState = useState([]),
11239
11220
  _useState2 = _slicedToArray(_useState, 2),
11240
- visible = _useState2[0],
11241
- setVisible = _useState2[1];
11242
- var _useState3 = useState([]),
11221
+ selectList = _useState2[0],
11222
+ setSelect = _useState2[1];
11223
+ var _useState3 = useState(1),
11243
11224
  _useState4 = _slicedToArray(_useState3, 2),
11244
- selectList = _useState4[0],
11245
- setSelect = _useState4[1];
11246
- var _useState5 = useState([]),
11247
- _useState6 = _slicedToArray(_useState5, 2),
11248
- selectIds = _useState6[0],
11249
- setSelectIds = _useState6[1];
11250
- var _useState7 = useState(1),
11225
+ pageNo = _useState4[0],
11226
+ setPageNo = _useState4[1];
11227
+ var _useState5 = useState(10),
11228
+ _useState6 = _slicedToArray(_useState5, 1),
11229
+ pageSize = _useState6[0];
11230
+ var _useState7 = useState([]),
11251
11231
  _useState8 = _slicedToArray(_useState7, 2),
11252
- pageNo = _useState8[0],
11253
- setPageNo = _useState8[1];
11254
- var _useState9 = useState(20),
11255
- _useState10 = _slicedToArray(_useState9, 1),
11256
- pageSize = _useState10[0];
11257
- var _useState11 = useState([]),
11232
+ goodList = _useState8[0],
11233
+ setGoodList = _useState8[1];
11234
+ var _useState9 = useState(false),
11235
+ _useState10 = _slicedToArray(_useState9, 2),
11236
+ loading = _useState10[0],
11237
+ setLoading = _useState10[1];
11238
+ var _useState11 = useState(0),
11258
11239
  _useState12 = _slicedToArray(_useState11, 2),
11259
- goodList = _useState12[0],
11260
- setGoodList = _useState12[1];
11261
- var _useState13 = useState(false),
11240
+ total = _useState12[0],
11241
+ setTotal = _useState12[1];
11242
+ var _useState13 = useState(null),
11262
11243
  _useState14 = _slicedToArray(_useState13, 2),
11263
- loading = _useState14[0],
11264
- setLoading = _useState14[1];
11265
- var _useState15 = useState(0),
11266
- _useState16 = _slicedToArray(_useState15, 2),
11267
- total = _useState16[0],
11268
- setTotal = _useState16[1];
11244
+ dates = _useState14[0],
11245
+ setDates = _useState14[1];
11246
+ useImperativeHandle(ref, function () {
11247
+ return {
11248
+ getSelectGoodList: function getSelectGoodList() {
11249
+ return selectList;
11250
+ }
11251
+ };
11252
+ });
11269
11253
  var displaySelectList = useMemo(function () {
11270
11254
  return selectList.map(function (item, i) {
11271
11255
  item.index = i + 1;
11272
11256
  return item;
11273
11257
  });
11274
11258
  }, [selectList]);
11275
- useEffect(function () {
11276
- if (visible) {
11277
- queryItems();
11278
- }
11279
- }, [pageNo, visible]);
11280
11259
  var _Form$useForm = Form.useForm(),
11281
11260
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
11282
11261
  form = _Form$useForm2[0];
11283
- //选择页码
11284
- var pageChange = function pageChange(page) {
11285
- setPageNo(page);
11286
- };
11287
11262
  /**
11288
11263
  * 查询商品
11289
11264
  */
11290
11265
  var queryItems = /*#__PURE__*/function () {
11291
11266
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11292
- var search,
11293
- _formData$dateTimePic,
11294
- _formData$dateTimePic2,
11295
- _formData$dateTimePic3,
11296
- _formData$dateTimePic4,
11297
- _formData$dateTimePic5,
11298
- _formData$dateTimePic6,
11299
- formData,
11300
- startTime,
11301
- endTime,
11302
- params,
11303
- res,
11304
- _res$data,
11305
- _res$data$productList,
11306
- productList,
11307
- _res$data$total,
11308
- _total,
11309
- errorMsg,
11310
- newProducts,
11311
- _args = arguments;
11267
+ var _formData$dateTimePic, _formData$dateTimePic2, _formData$dateTimePic3, _formData$dateTimePic4, _formData$dateTimePic5, _formData$dateTimePic6, formData, _getInitTime, _getInitTime2, start, end, startTime, endTime, newTime, earliest, params;
11312
11268
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11313
11269
  while (1) switch (_context.prev = _context.next) {
11314
11270
  case 0:
11315
- search = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
11316
- _context.prev = 1;
11271
+ _context.prev = 0;
11317
11272
  setLoading(true);
11318
11273
  formData = form.getFieldsValue();
11319
- 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);
11320
- 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);
11274
+ _getInitTime = getInitTime(), _getInitTime2 = _slicedToArray(_getInitTime, 2), start = _getInitTime2[0], end = _getInitTime2[1];
11275
+ 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');
11276
+ 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');
11277
+ endTime = hooks(endTime).hours(23).minutes(59).seconds(59).format('YYYY-MM-DD HH:mm:ss');
11278
+ // PS: 故意推前3分钟,不然极端情况下,接口会报错
11279
+ newTime = hooks().subtract(3, 'm'); // 只能选比现在早的时间
11280
+ if (hooks(endTime).diff(newTime, 'seconds') > 0) {
11281
+ endTime = newTime.format('YYYY-MM-DD HH:mm:ss');
11282
+ }
11283
+ // 30天内
11284
+ earliest = hooks(endTime).subtract(30, 'd');
11285
+ if (earliest.diff(hooks(startTime), 'seconds') > 0) {
11286
+ startTime = earliest.format('YYYY-MM-DD HH:mm:ss');
11287
+ }
11321
11288
  params = {
11322
- // shopCode: shopCode,
11323
11289
  pageSize: pageSize,
11324
11290
  pageNo: pageNo - 1,
11325
- goodNo: search.code,
11291
+ goodNo: formData.goodNo || null,
11292
+ specNo: formData.specNo || null,
11326
11293
  startTime: startTime,
11327
11294
  endTime: endTime
11328
11295
  };
11329
- _context.next = 9;
11330
- return extendRequest('/qy/gdfw/product/wdtListProduct', {
11331
- method: 'post',
11332
- data: params
11333
- });
11334
- case 9:
11335
- res = _context.sent;
11336
- _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;
11337
- if (res.success) {
11338
- newProducts = productList.map(function (item, index) {
11339
- return _objectSpread2(_objectSpread2({}, item), {}, {
11340
- index: index + 1
11296
+ _context.next = 14;
11297
+ return getWdtListProduct(params).then(function (res) {
11298
+ if (res.success) {
11299
+ var _res$data = res.data,
11300
+ _res$data$productList = _res$data.productList,
11301
+ productList = _res$data$productList === void 0 ? [] : _res$data$productList,
11302
+ _res$data$total = _res$data.total,
11303
+ _total = _res$data$total === void 0 ? 0 : _res$data$total;
11304
+ var newProducts = productList.map(function (item, index) {
11305
+ return _objectSpread2(_objectSpread2({}, item), {}, {
11306
+ index: index + 1
11307
+ });
11341
11308
  });
11342
- });
11343
- setGoodList(_toConsumableArray(newProducts));
11344
- if (pageNo === 1) {
11345
- setTotal(_total);
11309
+ setGoodList(newProducts);
11310
+ if (pageNo === 1) {
11311
+ setTotal(_total);
11312
+ }
11313
+ } else {
11314
+ var _res$data2;
11315
+ setGoodList([]);
11316
+ setTotal(0);
11317
+ message.error(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.errorMsg) || res.message);
11346
11318
  }
11347
- } else {
11348
- setGoodList([]);
11349
- setTotal(0);
11350
- message.error(errorMsg || res.message);
11351
- }
11352
- case 12:
11353
- _context.prev = 12;
11319
+ }).catch(function (e) {
11320
+ console.log(e);
11321
+ });
11322
+ case 14:
11323
+ _context.prev = 14;
11354
11324
  setLoading(false);
11355
- return _context.finish(12);
11356
- case 15:
11325
+ return _context.finish(14);
11326
+ case 17:
11357
11327
  case "end":
11358
11328
  return _context.stop();
11359
11329
  }
11360
- }, _callee, null, [[1,, 12, 15]]);
11330
+ }, _callee, null, [[0,, 14, 17]]);
11361
11331
  }));
11362
11332
  return function queryItems() {
11363
11333
  return _ref.apply(this, arguments);
11364
11334
  };
11365
11335
  }();
11366
- var _onCancel = function onCancel() {
11367
- setVisible(false);
11368
- };
11369
- var onOk = function onOk() {
11370
- onSubmit(selectList);
11371
- _onCancel();
11372
- };
11373
- var onFinish = function onFinish(fieldsValue) {
11374
- var searchValue = {
11375
- code: fieldsValue.code
11376
- };
11377
- queryItems(searchValue);
11336
+ var disabledDate = function disabledDate(current) {
11337
+ var today = hooks(hooks().format('YYYY-MM-DD'));
11338
+ var currentDay = hooks(current.format('YYYY-MM-DD'));
11339
+ if (currentDay.diff(today, 'days') > 0) {
11340
+ return true;
11341
+ }
11342
+ if (!dates) {
11343
+ return false;
11344
+ }
11345
+ var tooLate = dates[0] && current.diff(dates[0], 'days') > 30;
11346
+ var tooEarly = dates[1] && dates[1].diff(current, 'days') > 30;
11347
+ return !!tooEarly || !!tooLate;
11348
+ };
11349
+ var onOpenChange = function onOpenChange(open) {
11350
+ if (open) {
11351
+ setDates([null, null]);
11352
+ } else {
11353
+ setDates(null);
11354
+ }
11378
11355
  };
11379
11356
  var onReset = function onReset() {
11380
- form.resetFields();
11381
11357
  form.setFieldsValue({
11382
- dateTimePicker: [hooks().subtract(30, 'd'), hooks()],
11383
- code: ''
11358
+ dateTimePicker: getInitTime(),
11359
+ goodNo: '',
11360
+ specNo: ''
11384
11361
  });
11385
11362
  setPageNo(function (prev) {
11386
- if (prev === 1 && visible) {
11363
+ if (prev === 1) {
11387
11364
  queryItems();
11388
11365
  }
11389
11366
  return 1;
11390
11367
  });
11391
11368
  };
11392
- // const getShopList = async () => {
11393
- // const { success, data } = await request('/qy/diamond/getConfigInfo', {
11394
- // method: 'get',
11395
- // params: {
11396
- // key: 'company-third-shop-info',
11397
- // },
11398
- // });
11399
- // const obj: any = JSON.parse(data || '{}');
11400
- // if (success) {
11401
- // const list = (obj?.[companyKey] || []).map((item: any) => {
11402
- // return {
11403
- // label: item.shopName,
11404
- // value: item.shopCode,
11405
- // };
11406
- // });
11407
- // setShopList(list);
11408
- // }
11409
- // };
11410
- var onValuesChange = function onValuesChange(changedValues) {
11411
- if (changedValues === null || changedValues === void 0 ? void 0 : changedValues['shopId']) {
11412
- queryItems(changedValues === null || changedValues === void 0 ? void 0 : changedValues.shopId);
11413
- pubsub.publish('changeShopCode', {
11414
- shopCode: changedValues.shopId
11415
- });
11416
- }
11417
- };
11418
- var handleDelete = function handleDelete(record, index) {
11369
+ var handleDelete = function handleDelete(record) {
11419
11370
  var newSelectList = selectList.filter(function (item) {
11420
11371
  return item.specId !== record.specId;
11421
11372
  });
11422
11373
  setSelect(_toConsumableArray(newSelectList));
11423
- setSelectIds(_toConsumableArray(newSelectList.map(function (item) {
11424
- return item.specId;
11425
- })));
11426
11374
  };
11427
11375
  var displaySelectedColumns = [{
11428
11376
  dataIndex: 'operation',
11429
11377
  title: '',
11430
11378
  ellipsis: true,
11431
11379
  width: 50,
11432
- render: function render(_, record, index) {
11380
+ render: function render(_, record) {
11433
11381
  return /*#__PURE__*/React.createElement(DeleteOutlined, {
11434
11382
  onClick: function onClick() {
11435
11383
  return handleDelete(record);
@@ -11460,8 +11408,10 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11460
11408
  }];
11461
11409
  var expandedRowSelection = {
11462
11410
  fixed: true,
11463
- selectedRowKeys: selectIds,
11464
- onSelect: function onSelect(record, selected, selectedRows, nativeEvent) {
11411
+ selectedRowKeys: selectList.map(function (item) {
11412
+ return item.specId;
11413
+ }),
11414
+ onSelect: function onSelect(record, selected) {
11465
11415
  var tempList = [];
11466
11416
  if (selected) {
11467
11417
  tempList = [].concat(_toConsumableArray(selectList), [record]);
@@ -11471,9 +11421,6 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11471
11421
  });
11472
11422
  }
11473
11423
  setSelect(_toConsumableArray(tempList));
11474
- setSelectIds(_toConsumableArray(tempList.map(function (item) {
11475
- return item.specId;
11476
- })));
11477
11424
  },
11478
11425
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
11479
11426
  var tempAllList = [];
@@ -11487,15 +11434,12 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11487
11434
  });
11488
11435
  }
11489
11436
  setSelect(_toConsumableArray(tempAllList));
11490
- setSelectIds(_toConsumableArray(tempAllList.map(function (item) {
11491
- return item.specId;
11492
- })));
11493
11437
  }
11494
11438
  };
11495
- var expandedRowRender = function expandedRowRender(record, index, indent, expanded) {
11439
+ var expandedRowRender = function expandedRowRender(record) {
11496
11440
  return /*#__PURE__*/React.createElement(Table, {
11497
- rowKey: 'specId',
11498
- size: 'small',
11441
+ rowKey: "specId",
11442
+ size: "small",
11499
11443
  columns: expandedColumns,
11500
11444
  dataSource: record.itemDetailList || [],
11501
11445
  pagination: false,
@@ -11505,43 +11449,61 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11505
11449
  }
11506
11450
  });
11507
11451
  };
11508
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
11509
- title: '选择商品',
11510
- okText: '确认',
11511
- cancelText: '取消',
11512
- visible: visible,
11513
- width: width || 850,
11514
- onCancel: function onCancel() {
11515
- _onCancel();
11516
- },
11517
- onOk: onOk,
11518
- wrapClassName: "goodModal"
11519
- }, /*#__PURE__*/React.createElement(Form, {
11452
+ React.useEffect(function () {
11453
+ queryItems();
11454
+ }, []);
11455
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form, {
11520
11456
  layout: "inline",
11521
11457
  form: form,
11522
- onFinish: onFinish,
11523
- onValuesChange: onValuesChange,
11458
+ onFinish: queryItems,
11524
11459
  initialValues: {
11525
- code: ''
11460
+ goodNo: '',
11461
+ specNo: '',
11462
+ dateTimePicker: getInitTime()
11526
11463
  }
11527
11464
  }, /*#__PURE__*/React.createElement(Form.Item, {
11528
- name: "dateTimePicker"
11465
+ name: "dateTimePicker",
11466
+ style: {
11467
+ marginBottom: '12px'
11468
+ }
11529
11469
  }, /*#__PURE__*/React.createElement(RangePicker, {
11530
11470
  style: {
11531
- width: '350px'
11471
+ width: '240px'
11532
11472
  },
11533
11473
  placeholder: ['开始日期', '结束日期'],
11534
- showTime: true,
11535
- defaultValue: [hooks(initStartTime.format(dateFormat), dateFormat), hooks(initEndTime.format(dateFormat), dateFormat)]
11474
+ showTime: false,
11475
+ disabledDate: disabledDate,
11476
+ onCalendarChange: function onCalendarChange(val) {
11477
+ return setDates(val);
11478
+ },
11479
+ onOpenChange: onOpenChange
11536
11480
  })), /*#__PURE__*/React.createElement(Form.Item, {
11537
- name: "code"
11481
+ name: "goodNo",
11482
+ style: {
11483
+ marginBottom: '12px'
11484
+ }
11538
11485
  }, /*#__PURE__*/React.createElement(Input, {
11539
11486
  placeholder: "\u5546\u54C1SPU\u7F16\u7801",
11540
11487
  allowClear: true,
11541
11488
  style: {
11542
11489
  width: 150
11543
11490
  }
11544
- })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
11491
+ })), /*#__PURE__*/React.createElement(Form.Item, {
11492
+ name: "specNo",
11493
+ style: {
11494
+ marginBottom: '12px'
11495
+ }
11496
+ }, /*#__PURE__*/React.createElement(Input, {
11497
+ placeholder: "\u5546\u54C1SKU\u7F16\u7801",
11498
+ allowClear: true,
11499
+ style: {
11500
+ width: 150
11501
+ }
11502
+ })), /*#__PURE__*/React.createElement(Form.Item, {
11503
+ style: {
11504
+ marginBottom: '12px'
11505
+ }
11506
+ }, /*#__PURE__*/React.createElement(Button, {
11545
11507
  type: "primary",
11546
11508
  htmlType: "submit",
11547
11509
  style: {
@@ -11551,10 +11513,10 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11551
11513
  onClick: onReset
11552
11514
  }, "\u91CD\u7F6E"))), /*#__PURE__*/React.createElement("div", {
11553
11515
  style: {
11554
- marginTop: '16px'
11516
+ marginTop: '4px'
11555
11517
  }
11556
11518
  }, /*#__PURE__*/React.createElement(Table, {
11557
- rowKey: 'goodNo',
11519
+ rowKey: "goodNo",
11558
11520
  columns: columns$1,
11559
11521
  dataSource: goodList,
11560
11522
  loading: loading,
@@ -11571,14 +11533,14 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11571
11533
  current: pageNo,
11572
11534
  pageSize: pageSize,
11573
11535
  pageSizeOptions: [],
11574
- onChange: pageChange
11536
+ onChange: setPageNo
11575
11537
  }
11576
11538
  })), !!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", {
11577
11539
  style: {
11578
11540
  marginTop: '16px'
11579
11541
  }
11580
11542
  }, /*#__PURE__*/React.createElement(Table, {
11581
- rowKey: 'specId',
11543
+ rowKey: "specId",
11582
11544
  columns: [].concat(displaySelectedColumns, expandedColumns),
11583
11545
  dataSource: displaySelectList,
11584
11546
  pagination: false,
@@ -11589,7 +11551,48 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
11589
11551
  style: {
11590
11552
  width: '100%'
11591
11553
  }
11592
- })))));
11554
+ }))));
11555
+ };
11556
+ var WdtGoodList = /*#__PURE__*/forwardRef(GoodList);
11557
+
11558
+ var GoodsModal$3 = function GoodsModal(props, ref) {
11559
+ useImperativeHandle(ref, function () {
11560
+ return {
11561
+ open: function open() {
11562
+ setVisible(true);
11563
+ }
11564
+ };
11565
+ });
11566
+ var onSubmit = props.onSubmit,
11567
+ width = props.width;
11568
+ var _useState = useState(false),
11569
+ _useState2 = _slicedToArray(_useState, 2),
11570
+ visible = _useState2[0],
11571
+ setVisible = _useState2[1];
11572
+ var wdtGoodListRef = useRef(null);
11573
+ var _onCancel = function onCancel() {
11574
+ setVisible(false);
11575
+ };
11576
+ var onOk = function onOk() {
11577
+ var _wdtGoodListRef$curre;
11578
+ var selectedList = ((_wdtGoodListRef$curre = wdtGoodListRef.current) === null || _wdtGoodListRef$curre === void 0 ? void 0 : _wdtGoodListRef$curre.getSelectGoodList()) || [];
11579
+ onSubmit(selectedList);
11580
+ _onCancel();
11581
+ };
11582
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
11583
+ title: '选择商品',
11584
+ okText: '确认',
11585
+ cancelText: '取消',
11586
+ visible: visible,
11587
+ width: width || 850,
11588
+ onCancel: function onCancel() {
11589
+ _onCancel();
11590
+ },
11591
+ onOk: onOk,
11592
+ wrapClassName: "goodModal"
11593
+ }, /*#__PURE__*/React.createElement(WdtGoodList, {
11594
+ ref: wdtGoodListRef
11595
+ })));
11593
11596
  };
11594
11597
  var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
11595
11598
 
@@ -12376,20 +12379,6 @@ var typeMap = {
12376
12379
  money: 'money',
12377
12380
  share: 'share'
12378
12381
  }
12379
- },
12380
- WDT_REISSUE_GOODS: {
12381
- key: 'wdtReissueGoods',
12382
- name: '旺店通',
12383
- typeName: 'wdtReissueType',
12384
- reissueSelectList: 'wdtReissueSelectList',
12385
- reissueSelectListReturn: 'wdtReissueSelectListReturn',
12386
- reissueDeleteGood: 'wdtReissueDeleteGood',
12387
- changeShopCode: 'wdtChangeShopCode',
12388
- reissueType: 'wdtReissueType',
12389
- formatDefaultField: {
12390
- money: 'orderPrice',
12391
- share: 'sharePrice'
12392
- }
12393
12382
  }
12394
12383
  };
12395
12384
  var BsReissue = function BsReissue(props) {
@@ -12992,6 +12981,245 @@ var CommonGoods = function CommonGoods(props) {
12992
12981
  }));
12993
12982
  };
12994
12983
 
12984
+ var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
12985
+ var typeMap$1 = {
12986
+ WDT_REISSUE_GOODS: {
12987
+ key: 'wdtReissueGoods',
12988
+ name: '旺店通',
12989
+ typeName: 'wdtReissueType',
12990
+ wdtSystemOrder: 'wdtSystemOrder',
12991
+ wdtSystemOrderNo: 'wdtSystemOrderNo',
12992
+ reissueSelectList: 'wdtReissueSelectList',
12993
+ reissueSelectListReturn: 'wdtReissueSelectListReturn',
12994
+ reissueDeleteGood: 'wdtReissueDeleteGood',
12995
+ changeShopCode: 'wdtChangeShopCode',
12996
+ reissueType: 'wdtReissueType',
12997
+ formatDefaultField: {
12998
+ money: 'orderPrice',
12999
+ share: 'sharePrice'
13000
+ }
13001
+ }
13002
+ };
13003
+ var wdtReissue = function wdtReissue(props) {
13004
+ var _typeMap$type7, _value$typeMap$type$t3, _typeMap$type11, _typeMap$type25, _typeMap$type26, _value$typeMap$type$w2, _typeMap$type27, _typeMap$type28, _typeMap$type29;
13005
+ var value = props.value,
13006
+ onChange = props.onChange,
13007
+ _props$reasonList = props.reasonList,
13008
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
13009
+ disabled = props.disabled,
13010
+ type = props.type,
13011
+ other = _objectWithoutProperties(props, _excluded$g);
13012
+ var valueRef = useRef({});
13013
+ useEffect(function () {
13014
+ var _typeMap$type, _typeMap$type4;
13015
+ valueRef.current = value;
13016
+ 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) {
13017
+ if (disabled) return;
13018
+ if (value) {
13019
+ var _typeMap$type2, _typeMap$type3;
13020
+ var newValue = _objectSpread2({}, value);
13021
+ 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) {
13022
+ return item.sku !== data;
13023
+ });
13024
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13025
+ }
13026
+ });
13027
+ 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) {
13028
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13029
+ shopCode: data.shopCode
13030
+ }));
13031
+ });
13032
+ }, [value, disabled]);
13033
+ useEffect(function () {
13034
+ var _value$orders, _value$showOrderInfo;
13035
+ 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)) {
13036
+ if (type === 'WDT_SYSTEM_ORDER') {
13037
+ getWdtOrderList(value.orderNo);
13038
+ }
13039
+ }
13040
+ return;
13041
+ }, [value]);
13042
+ useEffect(function () {
13043
+ var _typeMap$type5;
13044
+ 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];
13045
+ if (wdtSystemOrderNo) {
13046
+ var _value$typeMap$type$t, _typeMap$type6;
13047
+ 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])) {
13048
+ getGoodItems(wdtSystemOrderNo);
13049
+ }
13050
+ }
13051
+ return;
13052
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.wdtSystemOrderNo]]);
13053
+ useEffect(function () {
13054
+ var _value$typeMap$type$t2, _typeMap$type8, _typeMap$type9;
13055
+ 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];
13056
+ 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];
13057
+ if (['1'].includes(typeName)) {
13058
+ wdtSystemOrderNo && getGoodItems(wdtSystemOrderNo);
13059
+ } else if (['2'].includes(typeName)) {
13060
+ var _typeMap$type10;
13061
+ var newValue = _objectSpread2({}, value);
13062
+ 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)] = [];
13063
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13064
+ }
13065
+ return;
13066
+ }, [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]]);
13067
+ var getGoodItems = function getGoodItems(wdtSystemOrderNo) {
13068
+ var _value$typeMap$type$w, _typeMap$type12, _ref;
13069
+ 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;
13070
+ var order = (_ref = orders || []) === null || _ref === void 0 ? void 0 : _ref.find(function (orderItem) {
13071
+ return orderItem.billNo === wdtSystemOrderNo;
13072
+ });
13073
+ if (order) {
13074
+ var _typeMap$type13, _order$goodDetails;
13075
+ var newValue = _objectSpread2({}, value);
13076
+ 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) {
13077
+ var _typeMap$type14, _typeMap$type15;
13078
+ 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;
13079
+ 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;
13080
+ item.canUpdateNumber = true;
13081
+ return item;
13082
+ });
13083
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13084
+ }
13085
+ };
13086
+ var getWdtOrderList = /*#__PURE__*/function () {
13087
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
13088
+ var _yield$request, success, data, _typeMap$type16, _typeMap$type17, orders, showOrderInfo;
13089
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13090
+ while (1) switch (_context.prev = _context.next) {
13091
+ case 0:
13092
+ _context.next = 2;
13093
+ return extendRequest('/qy/gdfw/order/wdtOrderDetail', {
13094
+ method: 'post',
13095
+ data: {
13096
+ billNo: orderNo
13097
+ }
13098
+ });
13099
+ case 2:
13100
+ _yield$request = _context.sent;
13101
+ success = _yield$request.success;
13102
+ data = _yield$request.data;
13103
+ if (success) {
13104
+ orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
13105
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13106
+ billNo: item.tradeNo,
13107
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13108
+ billTag: item.tagName
13109
+ });
13110
+ });
13111
+ showOrderInfo = data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
13112
+ return {
13113
+ billNo: item.tradeNo,
13114
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13115
+ billTag: item.tagName
13116
+ };
13117
+ });
13118
+ 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]), {}, {
13119
+ showOrderInfo: showOrderInfo,
13120
+ orders: orders
13121
+ }))));
13122
+ }
13123
+ case 6:
13124
+ case "end":
13125
+ return _context.stop();
13126
+ }
13127
+ }, _callee);
13128
+ }));
13129
+ return function getWdtOrderList(_x) {
13130
+ return _ref2.apply(this, arguments);
13131
+ };
13132
+ }();
13133
+ var changeTypeHandle = function changeTypeHandle(val) {
13134
+ var _typeMap$type18, _typeMap$type19;
13135
+ var newValue = _objectSpread2({}, value);
13136
+ 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;
13137
+ 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)] = [];
13138
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13139
+ valueRef.current = newValue;
13140
+ // if (['2'].includes(val[0])) {
13141
+ // onChange?.(newValue);
13142
+ // valueRef.current = newValue;
13143
+ // }
13144
+ // pubsub.publish(`${typeMap?.[type]?.reissueType}`, {
13145
+ // val: val[0],
13146
+ // goodValue: newValue,
13147
+ // });
13148
+ };
13149
+
13150
+ var changeGoodHandle = function changeGoodHandle(val) {
13151
+ var _typeMap$type20;
13152
+ var newValue = _objectSpread2({}, value);
13153
+ 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) {
13154
+ var _typeMap$type21, _typeMap$type22;
13155
+ 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;
13156
+ 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;
13157
+ return item;
13158
+ });
13159
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13160
+ };
13161
+ var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
13162
+ var _typeMap$type23;
13163
+ var newValue = _objectSpread2({}, value);
13164
+ 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;
13165
+ console.log('changeSystemOrderHandle', val, newValue);
13166
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13167
+ };
13168
+ //显示选择商品按钮 原单换不显示选择商品
13169
+ var showChangeBtn = useMemo(function () {
13170
+ var _typeMap$type24;
13171
+ return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.wdtSystemOrderNo]);
13172
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]]);
13173
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
13174
+ gutter: 8
13175
+ }, /*#__PURE__*/React.createElement(Col, {
13176
+ className: "gutter-row",
13177
+ span: 6
13178
+ }, /*#__PURE__*/React.createElement(Select, {
13179
+ style: {
13180
+ marginBottom: '8px'
13181
+ },
13182
+ disabled: disabled,
13183
+ allowClear: false,
13184
+ 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)],
13185
+ onChange: function onChange(val) {
13186
+ return changeSystemOrderHandle(val);
13187
+ }
13188
+ }, ((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) {
13189
+ return /*#__PURE__*/React.createElement(Select.Option, {
13190
+ key: item.billNo,
13191
+ value: item.billNo,
13192
+ label: item.billNo
13193
+ }, item.billNo);
13194
+ }))), /*#__PURE__*/React.createElement(Col, {
13195
+ className: "gutter-row",
13196
+ span: 6
13197
+ }, /*#__PURE__*/React.createElement(Cascader, {
13198
+ style: {
13199
+ marginBottom: '8px'
13200
+ },
13201
+ disabled: disabled,
13202
+ allowClear: false,
13203
+ options: reasonList,
13204
+ 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)],
13205
+ onChange: function onChange(val) {
13206
+ return changeTypeHandle(val);
13207
+ }
13208
+ }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13209
+ key: 'reissueGoods'
13210
+ }, other), {}, {
13211
+ type: type,
13212
+ disabled: disabled,
13213
+ canUpdateNumber: showChangeBtn,
13214
+ showChangeBtn: showChangeBtn,
13215
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13216
+ 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)],
13217
+ onChange: function onChange(val) {
13218
+ return changeGoodHandle(val);
13219
+ }
13220
+ })));
13221
+ };
13222
+
12995
13223
  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";
12996
13224
  styleInject(css_248z$a);
12997
13225
 
@@ -13468,12 +13696,12 @@ var Goods$1 = function Goods(props, ref) {
13468
13696
  };
13469
13697
  var index$2 = /*#__PURE__*/forwardRef(Goods$1);
13470
13698
 
13471
- var _excluded$g = ["onChange", "value", "failValue"];
13699
+ var _excluded$h = ["onChange", "value", "failValue"];
13472
13700
  function CommonStatus(props) {
13473
13701
  var onChange = props.onChange,
13474
13702
  value = props.value,
13475
13703
  failValue = props.failValue,
13476
- other = _objectWithoutProperties(props, _excluded$g);
13704
+ other = _objectWithoutProperties(props, _excluded$h);
13477
13705
  var changeHandle = function changeHandle(val) {
13478
13706
  onChange === null || onChange === void 0 ? void 0 : onChange({
13479
13707
  status: val,
@@ -13592,7 +13820,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13592
13820
  })) : null) : null);
13593
13821
  };
13594
13822
 
13595
- var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
13823
+ var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
13596
13824
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13597
13825
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
13598
13826
  var _props$value = props.value,
@@ -13602,7 +13830,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13602
13830
  failValue = props.failValue,
13603
13831
  _props$type = props.type,
13604
13832
  type = _props$type === void 0 ? 1 : _props$type,
13605
- other = _objectWithoutProperties(props, _excluded$h);
13833
+ other = _objectWithoutProperties(props, _excluded$i);
13606
13834
  var _useState = useState(0),
13607
13835
  _useState2 = _slicedToArray(_useState, 2),
13608
13836
  changeIndex = _useState2[0],
@@ -13668,7 +13896,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13668
13896
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
13669
13897
  };
13670
13898
 
13671
- var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
13899
+ var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
13672
13900
  var msgTypeCh = {
13673
13901
  ding: '钉钉',
13674
13902
  wechat: '微信',
@@ -13684,7 +13912,7 @@ var MsgStatus = function MsgStatus(props) {
13684
13912
  failValue = props.failValue,
13685
13913
  _props$type = props.type,
13686
13914
  type = _props$type === void 0 ? 1 : _props$type,
13687
- other = _objectWithoutProperties(props, _excluded$i);
13915
+ other = _objectWithoutProperties(props, _excluded$j);
13688
13916
  var _useState = useState(0),
13689
13917
  _useState2 = _slicedToArray(_useState, 2),
13690
13918
  changeIndex = _useState2[0],
@@ -13753,4 +13981,4 @@ var CalculationInput = function CalculationInput(props) {
13753
13981
  }, config === null || config === void 0 ? void 0 : config.unit));
13754
13982
  };
13755
13983
 
13756
- 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 };
13984
+ 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, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };