@kmkf-fe-packages/basic-components 2.7.2-rc.0 → 2.7.3-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,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } 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, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -8594,6 +8594,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
8594
8594
  status: 'erpAfterSaleStatusValue',
8595
8595
  reason: 'erpAfterSaleStatusReason'
8596
8596
  },
8597
+ ERP_AFTER_SALES_ORDER_REVIEW_STATUS: {
8598
+ status: 'erpAfterSalesOrderReviewStatusValue',
8599
+ reason: 'erpAfterSalesOrderReviewStatusReason'
8600
+ },
8597
8601
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8598
8602
  status: 'returnExchangeGoodsReviewStatusValue',
8599
8603
  reason: 'returnExchangeGoodsReviewStatusReason'
@@ -8601,6 +8605,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
8601
8605
  REPAIR_ORDER_STATUS: {
8602
8606
  status: 'repairOrderStatusValue',
8603
8607
  reason: 'repairOrderStatusReason'
8608
+ },
8609
+ ERP_REMARK: {
8610
+ status: 'erpRemarkStatusValue',
8611
+ reason: 'erpRemarkStatusReason'
8604
8612
  }
8605
8613
  };
8606
8614
  return _defineProperty({}, nex.uniqueKey, {
@@ -8618,7 +8626,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
8618
8626
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8619
8627
  MSG_STATUS: 'msgStatusValues',
8620
8628
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8621
- JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
8629
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8630
+ WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
8622
8631
  };
8623
8632
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8624
8633
  };
@@ -9033,6 +9042,12 @@ var processBsReturnGoods = function processBsReturnGoods(getValue) {
9033
9042
  var processErpSystemOrder = function processErpSystemOrder(getValue) {
9034
9043
  return function (nex, config) {
9035
9044
  var systemOrderMap = {
9045
+ PLATFORM_AFTER_SALES_ORDER: {
9046
+ no: 'platformAfaterSalesOrderNo',
9047
+ ids: 'platformAfaterSalesSelectIds',
9048
+ order: 'platformAfaterSalesShowOrder',
9049
+ shopId: 'platformAfaterSalesShopId'
9050
+ },
9036
9051
  BS_SYSTEM_ORDER: {
9037
9052
  no: 'bsSystemOrderNo',
9038
9053
  ids: 'bsSystemSelectIds',
@@ -9079,12 +9094,14 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
9079
9094
  order: 'wdtReturnBillShowOrder'
9080
9095
  }
9081
9096
  };
9082
- return _defineProperty({}, nex.uniqueKey, {
9097
+ return _defineProperty({}, nex.uniqueKey, _objectSpread2({
9083
9098
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
9084
9099
  orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
9085
9100
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
9086
9101
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
9087
- });
9102
+ }, systemOrderMap[nex.workOrderComponentType].shopId ? {
9103
+ shopId: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].shopId))
9104
+ } : {}));
9088
9105
  };
9089
9106
  };
9090
9107
  var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
@@ -9438,12 +9455,14 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9438
9455
  REISSUE_LOGISTICS: processReissueLogistics,
9439
9456
  REISSUE_STATUS: processCallBackStatus,
9440
9457
  ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
9458
+ ERP_REMARK: processCallBackStatus,
9441
9459
  CREATE_STATUS: processCallBackStatus,
9442
9460
  INVOICE_STATUS: processCallBackStatus,
9443
9461
  INVOICING_STATUS: processCallBackStatus,
9444
9462
  AGREE_REFUND_STATUS: processCallBackStatus,
9445
9463
  REJECT_REFUND_STATUS: processCallBackStatus,
9446
9464
  ERP_AFTER_SALE_STATUS: processCallBackStatus,
9465
+ ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
9447
9466
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9448
9467
  REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9449
9468
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
@@ -9454,6 +9473,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9454
9473
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9455
9474
  MSG_STATUS: processSceneStatus,
9456
9475
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9476
+ WLN_WAREHOUSING_STATUS: processSceneStatus,
9457
9477
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9458
9478
  BS_LOGISTICS: processErpLogistics,
9459
9479
  WLN_LOGISTICS: processErpLogistics,
@@ -9488,6 +9508,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9488
9508
  BS_RETURN_GOODS: processBsReturnGoods,
9489
9509
  WDT_RETURN_GOODS: processWdtReturnGoods(),
9490
9510
  JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
9511
+ PLATFORM_AFTER_SALES_ORDER: processErpSystemOrder,
9491
9512
  BS_SYSTEM_ORDER: processErpSystemOrder,
9492
9513
  KM_SYSTEM_ORDER: processErpSystemOrder,
9493
9514
  WLN_SYSTEM_ORDER: processErpSystemOrder,
@@ -11634,7 +11655,7 @@ var GoodsModal = function GoodsModal(props) {
11634
11655
  key: item.value
11635
11656
  }, item.label);
11636
11657
  })), /*#__PURE__*/React.createElement(Search, {
11637
- placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
11658
+ placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
11638
11659
  // enterButton="搜索"
11639
11660
  className: "search",
11640
11661
  value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
@@ -13140,6 +13161,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13140
13161
  _props$required = props.required,
13141
13162
  required = _props$required === void 0 ? false : _props$required,
13142
13163
  onChange = props.onChange,
13164
+ _onBlur = props.onBlur,
13143
13165
  _props$disabled = props.disabled,
13144
13166
  disabled = _props$disabled === void 0 ? false : _props$disabled,
13145
13167
  _props$isEditing = props.isEditing,
@@ -13353,7 +13375,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13353
13375
  }
13354
13376
  }
13355
13377
  console.log('newValue', newValue);
13356
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13378
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
13357
13379
  };
13358
13380
  //智能识别回调
13359
13381
  var changeIdentify = function changeIdentify(val) {
@@ -13405,6 +13427,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
13405
13427
  var _e$target$value;
13406
13428
  return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
13407
13429
  },
13430
+ onBlur: function onBlur(e) {
13431
+ var _e$target$value2;
13432
+ return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
13433
+ },
13408
13434
  value: value === null || value === void 0 ? void 0 : value.interceptCode
13409
13435
  }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13410
13436
  label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
@@ -13478,8 +13504,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13478
13504
  disabled: disabled || isEdit,
13479
13505
  placeholder: senderMobileLabel,
13480
13506
  onChange: function onChange(e) {
13481
- var _e$target$value2;
13482
- return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
13507
+ var _e$target$value3;
13508
+ return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptSenderMobile');
13483
13509
  }
13484
13510
  })), /*#__PURE__*/React.createElement(Item, {
13485
13511
  label: '退回地址',
@@ -13538,8 +13564,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13538
13564
  },
13539
13565
  placeholder: "\u5176\u4ED6",
13540
13566
  onChange: function onChange(e) {
13541
- var _e$target$value3;
13542
- return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
13567
+ var _e$target$value4;
13568
+ return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsStatusOther');
13543
13569
  }
13544
13570
  })), /*#__PURE__*/React.createElement(Item, {
13545
13571
  label: '拦截状态',
@@ -13593,8 +13619,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13593
13619
  disabled: true,
13594
13620
  placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13595
13621
  onChange: function onChange(e) {
13596
- var _e$target$value4;
13597
- return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
13622
+ var _e$target$value5;
13623
+ return changeHandle((_e$target$value5 = e.target.value) === null || _e$target$value5 === void 0 ? void 0 : _e$target$value5.trim(), 'interceptLogisticsApiStatusReason');
13598
13624
  }
13599
13625
  })));
13600
13626
  };
@@ -14096,9 +14122,9 @@ var jstGoods = function jstGoods(props) {
14096
14122
  changeIndex = _useState2[0],
14097
14123
  setChangeIndex = _useState2[1]; //选中的包裹
14098
14124
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
14099
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
14125
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
14100
14126
  var expressDateInstance = ExpressData.getInstance(platformType);
14101
- var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
14127
+ var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
14102
14128
  useEffect(function () {
14103
14129
  //没有值塞个默认值
14104
14130
  if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
@@ -16139,30 +16165,33 @@ var GoodList = function GoodList(props, ref) {
16139
16165
  selectedRowKeys: selectIds,
16140
16166
  fixed: true,
16141
16167
  onSelect: function onSelect(record, selected) {
16168
+ var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16142
16169
  if (selected) {
16143
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
16170
+ setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
16144
16171
  setSelect([].concat(_toConsumableArray(selectList), [record]));
16145
16172
  } else {
16146
16173
  setSelectIds(selectIds.filter(function (t) {
16147
- return t !== record.specNo;
16174
+ return t !== uniqueKey;
16148
16175
  }));
16149
16176
  setSelect(selectList.filter(function (t) {
16150
- return t.specNo !== record.specNo;
16177
+ return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16151
16178
  }));
16152
16179
  }
16153
16180
  },
16154
16181
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
16155
16182
  if (selected) {
16156
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
16157
- return t.specNo;
16158
- }))));
16183
+ var changeKeys = changeRows.map(function (t) {
16184
+ return "".concat(t.goodNo, "-").concat(t.specNo);
16185
+ });
16186
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
16159
16187
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
16160
16188
  } else {
16161
- setSelectIds(difference(selectIds, changeRows.map(function (t) {
16162
- return t.specNo;
16163
- })));
16189
+ var _changeKeys = changeRows.map(function (t) {
16190
+ return "".concat(t.goodNo, "-").concat(t.specNo);
16191
+ });
16192
+ setSelectIds(difference(selectIds, _changeKeys));
16164
16193
  var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
16165
- return arrVal.specNo !== othVal.specNo;
16194
+ return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
16166
16195
  });
16167
16196
  setSelect(list);
16168
16197
  }
@@ -16170,11 +16199,12 @@ var GoodList = function GoodList(props, ref) {
16170
16199
  };
16171
16200
  var showTable = function showTable() {
16172
16201
  var handleDelete = function handleDelete(record) {
16202
+ var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16173
16203
  setSelectIds(selectIds.filter(function (t) {
16174
- return t !== record.specNo;
16204
+ return t !== uniqueKey;
16175
16205
  }));
16176
16206
  setSelect(selectList.filter(function (t) {
16177
- return t.specNo !== record.specNo;
16207
+ return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16178
16208
  }));
16179
16209
  };
16180
16210
  var showColumns = [{
@@ -16198,7 +16228,9 @@ var GoodList = function GoodList(props, ref) {
16198
16228
  }
16199
16229
  }, /*#__PURE__*/React.createElement(Table, {
16200
16230
  columns: showColumns,
16201
- rowKey: 'specNo',
16231
+ rowKey: function rowKey(record) {
16232
+ return "".concat(record.goodNo, "-").concat(record.specNo);
16233
+ },
16202
16234
  dataSource: selectList,
16203
16235
  scroll: {
16204
16236
  x: '100%',
@@ -16228,7 +16260,9 @@ var GoodList = function GoodList(props, ref) {
16228
16260
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
16229
16261
  className: "GoodModalColumns",
16230
16262
  rowSelection: rowSelection,
16231
- rowKey: "specNo",
16263
+ rowKey: function rowKey(record) {
16264
+ return "".concat(record.goodNo, "-").concat(record.specNo);
16265
+ },
16232
16266
  columns: columns,
16233
16267
  scroll: {
16234
16268
  x: '100%',
@@ -18720,7 +18754,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
18720
18754
  data: {
18721
18755
  pageSize: pageSize,
18722
18756
  pageNo: current,
18723
- platform: 'JY_ERP',
18757
+ platform: 'WLN_ERP',
18724
18758
  conditionList: conditionList
18725
18759
  }
18726
18760
  }).then(function (res) {
@@ -18747,6 +18781,253 @@ var searchFormData$4 = [{
18747
18781
  name: 'skuCode',
18748
18782
  dataIndex: 'specNo',
18749
18783
  type: 'optionalInput'
18784
+ }, {
18785
+ label: '货品名称',
18786
+ name: 'goodName'
18787
+ }, {
18788
+ label: '货品编码',
18789
+ name: 'goodNo',
18790
+ type: 'optionalInput'
18791
+ }];
18792
+ var GoodList$5 = function GoodList(props, ref) {
18793
+ var _useState = useState([]),
18794
+ _useState2 = _slicedToArray(_useState, 2),
18795
+ selectList = _useState2[0],
18796
+ setSelect = _useState2[1];
18797
+ var _useState3 = useState([]),
18798
+ _useState4 = _slicedToArray(_useState3, 2),
18799
+ selectIds = _useState4[0],
18800
+ setSelectIds = _useState4[1];
18801
+ var _useGetColumns = useGetColumns('wln'),
18802
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
18803
+ columns = _useGetColumns2[0],
18804
+ showColumnsDataIndexList = _useGetColumns2[1],
18805
+ loading = _useGetColumns2[2];
18806
+ useImperativeHandle(ref, function () {
18807
+ return {
18808
+ getSelectGoodList: function getSelectGoodList() {
18809
+ return selectList;
18810
+ }
18811
+ };
18812
+ });
18813
+ var _Form$useForm = Form.useForm(),
18814
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
18815
+ form = _Form$useForm2[0];
18816
+ var _useAntdTable = useAntdTable(getTableData$5, {
18817
+ defaultPageSize: 10,
18818
+ form: form
18819
+ }),
18820
+ tableProps = _useAntdTable.tableProps,
18821
+ search = _useAntdTable.search,
18822
+ params = _useAntdTable.params;
18823
+ var submit = search.submit,
18824
+ reset = search.reset;
18825
+ var rowSelection = {
18826
+ selectedRowKeys: selectIds,
18827
+ fixed: true,
18828
+ onSelect: function onSelect(record, selected) {
18829
+ if (selected) {
18830
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
18831
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
18832
+ } else {
18833
+ setSelectIds(selectIds.filter(function (t) {
18834
+ return t !== record.id;
18835
+ }));
18836
+ setSelect(selectList.filter(function (t) {
18837
+ return t.id !== record.id;
18838
+ }));
18839
+ }
18840
+ },
18841
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
18842
+ if (selected) {
18843
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
18844
+ return t.id;
18845
+ }))));
18846
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
18847
+ } else {
18848
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
18849
+ return t.id;
18850
+ })));
18851
+ var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
18852
+ return arrVal.id !== othVal.id;
18853
+ });
18854
+ setSelect(list);
18855
+ }
18856
+ },
18857
+ getCheckboxProps: function getCheckboxProps(record) {
18858
+ var options = {
18859
+ disabled: (props.selectedRows || []).map(function (row) {
18860
+ return row.specId || record.id;
18861
+ }).includes(record.specId || record.id),
18862
+ name: record.id
18863
+ };
18864
+ return options;
18865
+ }
18866
+ };
18867
+ var showTable = function showTable() {
18868
+ var handleDelete = function handleDelete(record) {
18869
+ setSelectIds(selectIds.filter(function (t) {
18870
+ return t !== record.id;
18871
+ }));
18872
+ setSelect(selectList.filter(function (t) {
18873
+ return t.id !== record.id;
18874
+ }));
18875
+ };
18876
+ var showColumns = [{
18877
+ dataIndex: '',
18878
+ title: "\u64CD\u4F5C",
18879
+ ellipsis: true,
18880
+ width: 100,
18881
+ render: function render(val, record) {
18882
+ return /*#__PURE__*/React.createElement(Button, {
18883
+ type: "link",
18884
+ onClick: function onClick() {
18885
+ return handleDelete(record);
18886
+ }
18887
+ }, "\u5220\u9664");
18888
+ }
18889
+ }].concat(takeRight(columns, columns.length - 1));
18890
+ return selectList.length ? /*#__PURE__*/React.createElement("div", {
18891
+ style: {
18892
+ width: '100%',
18893
+ maxWidth: '387px'
18894
+ }
18895
+ }, /*#__PURE__*/React.createElement(Table, {
18896
+ columns: showColumns,
18897
+ rowKey: 'id',
18898
+ dataSource: selectList,
18899
+ scroll: {
18900
+ x: '100%',
18901
+ y: 250
18902
+ },
18903
+ pagination: {
18904
+ size: 'small',
18905
+ total: selectIds.length,
18906
+ pageSize: 10,
18907
+ showSizeChanger: false
18908
+ }
18909
+ })) : null;
18910
+ };
18911
+ return /*#__PURE__*/React.createElement(Skeleton, {
18912
+ active: true,
18913
+ loading: loading
18914
+ }, /*#__PURE__*/React.createElement(SearchForm, {
18915
+ searchFormData: searchFormData$4,
18916
+ form: form,
18917
+ showColumnsDataIndexList: showColumnsDataIndexList,
18918
+ submit: submit,
18919
+ reset: reset
18920
+ }), /*#__PURE__*/React.createElement("div", {
18921
+ style: {
18922
+ marginTop: '4px'
18923
+ }
18924
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
18925
+ className: "GoodModalColumns",
18926
+ rowSelection: rowSelection,
18927
+ rowKey: "id",
18928
+ columns: columns,
18929
+ scroll: {
18930
+ x: '100%',
18931
+ y: 250
18932
+ },
18933
+ size: "small"
18934
+ }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
18935
+ getPopupContainer: function getPopupContainer(triggerNode) {
18936
+ return triggerNode.parentElement;
18937
+ },
18938
+ content: showTable(),
18939
+ title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
18940
+ }, /*#__PURE__*/React.createElement(Button, {
18941
+ danger: true,
18942
+ type: "text"
18943
+ }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
18944
+ };
18945
+ var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
18946
+
18947
+ var WlnGoodsModal = function WlnGoodsModal(props, ref) {
18948
+ useImperativeHandle(ref, function () {
18949
+ return {
18950
+ open: function open(shopCode) {
18951
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18952
+ setVisible(true);
18953
+ setSelectedRows(options.value || []);
18954
+ }
18955
+ };
18956
+ });
18957
+ var onSubmit = props.onSubmit,
18958
+ width = props.width;
18959
+ var _useState = useState(false),
18960
+ _useState2 = _slicedToArray(_useState, 2),
18961
+ visible = _useState2[0],
18962
+ setVisible = _useState2[1];
18963
+ var _useState3 = useState([]),
18964
+ _useState4 = _slicedToArray(_useState3, 2),
18965
+ selectedRows = _useState4[0],
18966
+ setSelectedRows = _useState4[1];
18967
+ var jkyGoodsListRef = useRef(null);
18968
+ var _onCancel = function onCancel() {
18969
+ setVisible(false);
18970
+ };
18971
+ var onOk = function onOk() {
18972
+ var _jkyGoodsListRef$curr;
18973
+ var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
18974
+ onSubmit(selectedList);
18975
+ _onCancel();
18976
+ };
18977
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
18978
+ title: '选择商品',
18979
+ okText: '确认',
18980
+ cancelText: '取消',
18981
+ visible: visible,
18982
+ width: width || 850,
18983
+ onCancel: function onCancel() {
18984
+ _onCancel();
18985
+ },
18986
+ onOk: onOk,
18987
+ wrapClassName: "goodModal"
18988
+ }, /*#__PURE__*/React.createElement(WlnGoodsList, {
18989
+ ref: jkyGoodsListRef,
18990
+ selectedRows: selectedRows
18991
+ })));
18992
+ };
18993
+ var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
18994
+
18995
+ var getTableData$6 = function getTableData(_ref, formData) {
18996
+ var current = _ref.current,
18997
+ pageSize = _ref.pageSize;
18998
+ var conditionList = transformFormData(formData);
18999
+ return extendRequest('/qy/gdfw/product/product/page', {
19000
+ method: 'post',
19001
+ data: {
19002
+ pageSize: pageSize,
19003
+ pageNo: current,
19004
+ platform: 'JY_ERP',
19005
+ conditionList: conditionList
19006
+ }
19007
+ }).then(function (res) {
19008
+ var _res$data = res.data,
19009
+ _res$data$productSkuL = _res$data.productSkuList,
19010
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
19011
+ _res$data$total = _res$data.total,
19012
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
19013
+ var newProducts = productSkuList.map(function (item, index) {
19014
+ return _objectSpread2({}, item);
19015
+ });
19016
+ return {
19017
+ total: total,
19018
+ list: newProducts
19019
+ };
19020
+ });
19021
+ };
19022
+ var searchFormData$5 = [{
19023
+ label: '规格名称',
19024
+ name: 'skuName',
19025
+ dataIndex: 'specName'
19026
+ }, {
19027
+ label: '规格编码',
19028
+ name: 'skuCode',
19029
+ dataIndex: 'specNo',
19030
+ type: 'optionalInput'
18750
19031
  }, {
18751
19032
  label: '商品名称',
18752
19033
  name: 'goodName'
@@ -18755,7 +19036,7 @@ var searchFormData$4 = [{
18755
19036
  name: 'goodNo',
18756
19037
  type: 'optionalInput'
18757
19038
  }];
18758
- var GoodList$5 = function GoodList(props, ref) {
19039
+ var GoodList$6 = function GoodList(props, ref) {
18759
19040
  var _useState = useState([]),
18760
19041
  _useState2 = _slicedToArray(_useState, 2),
18761
19042
  selectList = _useState2[0],
@@ -18779,7 +19060,7 @@ var GoodList$5 = function GoodList(props, ref) {
18779
19060
  var _Form$useForm = Form.useForm(),
18780
19061
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
18781
19062
  form = _Form$useForm2[0];
18782
- var _useAntdTable = useAntdTable(getTableData$5, {
19063
+ var _useAntdTable = useAntdTable(getTableData$6, {
18783
19064
  defaultPageSize: 10,
18784
19065
  form: form
18785
19066
  }),
@@ -18878,7 +19159,7 @@ var GoodList$5 = function GoodList(props, ref) {
18878
19159
  active: true,
18879
19160
  loading: loading
18880
19161
  }, /*#__PURE__*/React.createElement(SearchForm, {
18881
- searchFormData: searchFormData$4,
19162
+ searchFormData: searchFormData$5,
18882
19163
  form: form,
18883
19164
  showColumnsDataIndexList: showColumnsDataIndexList,
18884
19165
  submit: submit,
@@ -18908,7 +19189,7 @@ var GoodList$5 = function GoodList(props, ref) {
18908
19189
  type: "text"
18909
19190
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
18910
19191
  };
18911
- var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
19192
+ var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
18912
19193
 
18913
19194
  var JyGoodsModal = function JyGoodsModal(props, ref) {
18914
19195
  useImperativeHandle(ref, function () {
@@ -18958,7 +19239,7 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
18958
19239
  };
18959
19240
  var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18960
19241
 
18961
- var getTableData$6 = function getTableData(_ref, formData) {
19242
+ var getTableData$7 = function getTableData(_ref, formData) {
18962
19243
  var current = _ref.current,
18963
19244
  pageSize = _ref.pageSize;
18964
19245
  var conditionList = transformFormData(formData);
@@ -18985,7 +19266,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
18985
19266
  };
18986
19267
  });
18987
19268
  };
18988
- var searchFormData$5 = [{
19269
+ var searchFormData$6 = [{
18989
19270
  label: '规格名称',
18990
19271
  name: 'skuName',
18991
19272
  dataIndex: 'specName'
@@ -19002,7 +19283,7 @@ var searchFormData$5 = [{
19002
19283
  name: 'goodNo',
19003
19284
  type: 'optionalInput'
19004
19285
  }];
19005
- var GoodList$6 = function GoodList(props, ref) {
19286
+ var GoodList$7 = function GoodList(props, ref) {
19006
19287
  var _useState = useState([]),
19007
19288
  _useState2 = _slicedToArray(_useState, 2),
19008
19289
  selectList = _useState2[0],
@@ -19026,7 +19307,7 @@ var GoodList$6 = function GoodList(props, ref) {
19026
19307
  var _Form$useForm = Form.useForm(),
19027
19308
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
19028
19309
  form = _Form$useForm2[0];
19029
- var _useAntdTable = useAntdTable(getTableData$6, {
19310
+ var _useAntdTable = useAntdTable(getTableData$7, {
19030
19311
  defaultPageSize: 10,
19031
19312
  form: form
19032
19313
  }),
@@ -19125,7 +19406,7 @@ var GoodList$6 = function GoodList(props, ref) {
19125
19406
  active: true,
19126
19407
  loading: loading
19127
19408
  }, /*#__PURE__*/React.createElement(SearchForm, {
19128
- searchFormData: searchFormData$5,
19409
+ searchFormData: searchFormData$6,
19129
19410
  form: form,
19130
19411
  showColumnsDataIndexList: showColumnsDataIndexList,
19131
19412
  submit: submit,
@@ -19155,7 +19436,7 @@ var GoodList$6 = function GoodList(props, ref) {
19155
19436
  type: "text"
19156
19437
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
19157
19438
  };
19158
- var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
19439
+ var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
19159
19440
 
19160
19441
  var JkyGoodsModal = function JkyGoodsModal(props, ref) {
19161
19442
  useImperativeHandle(ref, function () {
@@ -20462,70 +20743,298 @@ var getColumns$2 = function getColumns(_ref) {
20462
20743
  ellipsis: true,
20463
20744
  render: renderTextEllipsis
20464
20745
  }, {
20465
- dataIndex: 'refundAmount',
20466
- title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
20467
- width: 150,
20746
+ dataIndex: 'refundAmount',
20747
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
20748
+ width: 150,
20749
+ align: 'center',
20750
+ ellipsis: true,
20751
+ render: renderTextEllipsis
20752
+ }, {
20753
+ dataIndex: 'num',
20754
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
20755
+ width: 150,
20756
+ align: 'center',
20757
+ ellipsis: true,
20758
+ render: renderTextEllipsis
20759
+ }, {
20760
+ dataIndex: 'price',
20761
+ title: "\u4EF7\u683C",
20762
+ width: 150,
20763
+ align: 'center',
20764
+ ellipsis: true,
20765
+ render: renderTextEllipsis
20766
+ }, {
20767
+ dataIndex: 'originalPrice',
20768
+ title: "\u539F\u4EF7",
20769
+ width: 150,
20770
+ align: 'center',
20771
+ ellipsis: true,
20772
+ render: renderTextEllipsis
20773
+ }, {
20774
+ dataIndex: 'giftTypeDesc',
20775
+ title: "\u8D60\u54C1\u7C7B\u578B",
20776
+ width: 150,
20777
+ align: 'center',
20778
+ ellipsis: true,
20779
+ render: renderTextEllipsis
20780
+ }, {
20781
+ dataIndex: 'unitName',
20782
+ title: "\u57FA\u672C\u5355\u4F4D",
20783
+ ellipsis: true,
20784
+ width: 150,
20785
+ align: 'center',
20786
+ render: renderTextEllipsis
20787
+ }, {
20788
+ dataIndex: 'auxUnitName',
20789
+ title: "\u8F85\u52A9\u5355\u4F4D",
20790
+ ellipsis: true,
20791
+ width: 150,
20792
+ align: 'center',
20793
+ render: renderTextEllipsis
20794
+ }]
20795
+ };
20796
+ };
20797
+
20798
+ var getYesOrNo$3 = function getYesOrNo(val) {
20799
+ if (isNull(val)) return null;
20800
+ return val ? '是' : '否';
20801
+ };
20802
+ var getColumns$3 = function getColumns(_ref) {
20803
+ var _ref$text = _ref.text,
20804
+ text = _ref$text === void 0 ? '' : _ref$text,
20805
+ disabled = _ref.disabled,
20806
+ updateHandle = _ref.updateHandle;
20807
+ return {
20808
+ //万里牛商品信息
20809
+ WLN_GOODS: [{
20810
+ dataIndex: 'wlnItemName',
20811
+ title: "\u5546\u54C1\u540D\u79F0",
20812
+ align: 'center',
20813
+ ellipsis: true,
20814
+ width: 250,
20815
+ render: renderTextEllipsis
20816
+ }, {
20817
+ dataIndex: 'goodsCode',
20818
+ title: "\u5546\u54C1\u7F16\u7801",
20819
+ align: 'center',
20820
+ ellipsis: true,
20821
+ width: 250,
20822
+ render: renderTextEllipsis
20823
+ }, {
20824
+ dataIndex: 'wlnSkuName',
20825
+ title: "sku\u540D\u79F0",
20826
+ align: 'center',
20827
+ ellipsis: true,
20828
+ width: 250,
20829
+ render: renderTextEllipsis
20830
+ }, {
20831
+ dataIndex: 'skuCode',
20832
+ title: "sku\u7F16\u7801",
20833
+ align: 'center',
20834
+ ellipsis: true,
20835
+ width: 250,
20836
+ render: renderTextEllipsis
20837
+ }, {
20838
+ dataIndex: 'skuName',
20839
+ title: "\u7EBF\u4E0Asku\u540D\u79F0",
20840
+ align: 'center',
20841
+ ellipsis: true,
20842
+ width: 250,
20843
+ render: renderTextEllipsis
20844
+ }, {
20845
+ dataIndex: 'olnSkuCode',
20846
+ title: "\u7EBF\u4E0Asku\u7F16\u7801",
20847
+ align: 'center',
20848
+ ellipsis: true,
20849
+ width: 150,
20850
+ render: renderTextEllipsis
20851
+ }, {
20852
+ dataIndex: 'sku',
20853
+ title: "\u7EBF\u4E0Asku id",
20854
+ align: 'center',
20855
+ ellipsis: true,
20856
+ width: 150,
20857
+ render: renderTextEllipsis
20858
+ }, {
20859
+ dataIndex: 'name',
20860
+ title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
20861
+ align: 'center',
20862
+ ellipsis: true,
20863
+ width: 250,
20864
+ render: renderTextEllipsis
20865
+ }, {
20866
+ dataIndex: 'pic',
20867
+ title: "\u7EBF\u4E0A\u56FE\u7247",
20868
+ align: 'center',
20869
+ ellipsis: true,
20870
+ width: 100,
20871
+ render: function render(val) {
20872
+ return /*#__PURE__*/React.createElement(Image, {
20873
+ width: 30,
20874
+ src: val
20875
+ });
20876
+ }
20877
+ }, {
20878
+ dataIndex: 'olnItemCOde',
20879
+ title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
20880
+ align: 'center',
20881
+ ellipsis: true,
20882
+ width: 150,
20883
+ render: renderTextEllipsis
20884
+ }, {
20885
+ dataIndex: 'code',
20886
+ title: "\u7EBF\u4E0A\u5546\u54C1id",
20887
+ align: 'center',
20888
+ ellipsis: true,
20889
+ width: 150,
20890
+ render: renderTextEllipsis
20891
+ }, {
20892
+ dataIndex: 'barCode',
20893
+ title: "\u5546\u54C1\u6761\u7801",
20894
+ align: 'center',
20895
+ ellipsis: true,
20896
+ width: 150,
20897
+ render: renderTextEllipsis
20898
+ }, {
20899
+ dataIndex: 'money',
20900
+ title: "\u5B9E\u4ED8\u91D1\u989D",
20901
+ align: 'center',
20902
+ ellipsis: true,
20903
+ width: 100,
20904
+ render: renderTextEllipsis
20905
+ }, {
20906
+ dataIndex: 'number',
20907
+ title: "".concat(text, "\u6570\u91CF"),
20908
+ align: 'center',
20909
+ ellipsis: true,
20910
+ width: 100,
20911
+ render: function render(val, record, index) {
20912
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20913
+ style: {
20914
+ width: 70
20915
+ },
20916
+ value: val,
20917
+ min: 1,
20918
+ precision: 0,
20919
+ onChange: function onChange(num) {
20920
+ return updateHandle(num, index, 'number');
20921
+ }
20922
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20923
+ }
20924
+ }, {
20925
+ dataIndex: 'share',
20926
+ title: "\u5E94\u6536\u6B3E",
20927
+ align: 'center',
20928
+ ellipsis: true,
20929
+ width: 70,
20930
+ render: renderTextEllipsis
20931
+ }, {
20932
+ dataIndex: 'discountedUnitPrice',
20933
+ title: "\u6298\u540E\u5355\u4EF7",
20934
+ align: 'center',
20935
+ ellipsis: true,
20936
+ width: 250,
20937
+ render: renderTextEllipsis
20938
+ }, {
20939
+ dataIndex: 'originPrice',
20940
+ title: "\u539F\u4EF7",
20941
+ align: 'center',
20942
+ ellipsis: true,
20943
+ width: 250,
20944
+ render: renderTextEllipsis
20945
+ }, {
20946
+ dataIndex: 'price',
20947
+ title: "\u5355\u4EF7",
20948
+ align: 'center',
20949
+ ellipsis: true,
20950
+ width: 250,
20951
+ render: renderTextEllipsis
20952
+ }, {
20953
+ dataIndex: 'receivable',
20954
+ title: "\u9500\u552E\u91D1\u989D",
20955
+ align: 'center',
20956
+ ellipsis: true,
20957
+ width: 250,
20958
+ render: renderTextEllipsis
20959
+ }, {
20960
+ dataIndex: 'type',
20961
+ title: "\u8D60\u54C1\u7C7B\u578B",
20468
20962
  align: 'center',
20469
20963
  ellipsis: true,
20964
+ width: 100,
20470
20965
  render: renderTextEllipsis
20471
20966
  }, {
20472
- dataIndex: 'num',
20473
- title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
20474
- width: 150,
20967
+ dataIndex: 'isPackage',
20968
+ title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
20475
20969
  align: 'center',
20476
20970
  ellipsis: true,
20477
- render: renderTextEllipsis
20971
+ render: function render(val, record, index) {
20972
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20973
+ value: val,
20974
+ onChange: function onChange(value) {
20975
+ updateHandle(value, index, 'isGift');
20976
+ },
20977
+ options: [{
20978
+ label: '是',
20979
+ value: true
20980
+ }, {
20981
+ label: '否',
20982
+ value: false
20983
+ }]
20984
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20985
+ },
20986
+ width: 100
20478
20987
  }, {
20479
- dataIndex: 'price',
20480
- title: "\u4EF7\u683C",
20481
- width: 150,
20988
+ dataIndex: 'hasRefund',
20989
+ title: "\u662F\u5426\u9000\u6B3E",
20482
20990
  align: 'center',
20483
20991
  ellipsis: true,
20484
- render: renderTextEllipsis
20992
+ width: 100,
20993
+ render: function render(val, record, index) {
20994
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20995
+ value: val,
20996
+ onChange: function onChange(value) {
20997
+ updateHandle(value, index, 'isGift');
20998
+ },
20999
+ options: [{
21000
+ label: '是',
21001
+ value: 1
21002
+ }, {
21003
+ label: '否',
21004
+ value: 0
21005
+ }]
21006
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
21007
+ }
20485
21008
  }, {
20486
- dataIndex: 'originalPrice',
20487
- title: "\u539F\u4EF7",
20488
- width: 150,
21009
+ dataIndex: 'unit',
21010
+ title: "\u5355\u4F4D",
20489
21011
  align: 'center',
20490
21012
  ellipsis: true,
21013
+ width: 100,
20491
21014
  render: renderTextEllipsis
20492
21015
  }, {
20493
- dataIndex: 'giftTypeDesc',
20494
- title: "\u8D60\u54C1\u7C7B\u578B",
20495
- width: 150,
21016
+ dataIndex: 'pkgGoodsName',
21017
+ title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
20496
21018
  align: 'center',
20497
21019
  ellipsis: true,
21020
+ width: 200,
20498
21021
  render: renderTextEllipsis
20499
21022
  }, {
20500
- dataIndex: 'unitName',
20501
- title: "\u57FA\u672C\u5355\u4F4D",
20502
- ellipsis: true,
20503
- width: 150,
21023
+ dataIndex: 'pkgGoodsCode',
21024
+ title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20504
21025
  align: 'center',
21026
+ ellipsis: true,
21027
+ width: 200,
20505
21028
  render: renderTextEllipsis
20506
21029
  }, {
20507
- dataIndex: 'auxUnitName',
20508
- title: "\u8F85\u52A9\u5355\u4F4D",
20509
- ellipsis: true,
20510
- width: 150,
21030
+ dataIndex: 'pkgGoodsId',
21031
+ title: "\u539F\u7EC4\u5408\u5546\u54C1id",
20511
21032
  align: 'center',
21033
+ ellipsis: true,
21034
+ width: 200,
20512
21035
  render: renderTextEllipsis
20513
- }]
20514
- };
20515
- };
20516
-
20517
- var getYesOrNo$3 = function getYesOrNo(val) {
20518
- if (isNull(val)) return null;
20519
- return val ? '是' : '否';
20520
- };
20521
- var getColumns$3 = function getColumns(_ref) {
20522
- var _ref$text = _ref.text,
20523
- text = _ref$text === void 0 ? '' : _ref$text,
20524
- disabled = _ref.disabled,
20525
- updateHandle = _ref.updateHandle;
20526
- return {
20527
- //万里牛商品信息
20528
- WLN_GOODS: [{
21036
+ }],
21037
+ WLN_REISSUE_GOODS: [{
20529
21038
  dataIndex: 'wlnItemName',
20530
21039
  title: "\u5546\u54C1\u540D\u79F0",
20531
21040
  align: 'center',
@@ -20539,6 +21048,13 @@ var getColumns$3 = function getColumns(_ref) {
20539
21048
  ellipsis: true,
20540
21049
  width: 250,
20541
21050
  render: renderTextEllipsis
21051
+ }, {
21052
+ dataIndex: 'wlnSkuName',
21053
+ title: "sku\u540D\u79F0",
21054
+ align: 'center',
21055
+ ellipsis: true,
21056
+ width: 250,
21057
+ render: renderTextEllipsis
20542
21058
  }, {
20543
21059
  dataIndex: 'skuCode',
20544
21060
  title: "sku\u7F16\u7801",
@@ -20640,6 +21156,34 @@ var getColumns$3 = function getColumns(_ref) {
20640
21156
  ellipsis: true,
20641
21157
  width: 70,
20642
21158
  render: renderTextEllipsis
21159
+ }, {
21160
+ dataIndex: 'discountedUnitPrice',
21161
+ title: "\u6298\u540E\u5355\u4EF7",
21162
+ align: 'center',
21163
+ ellipsis: true,
21164
+ width: 250,
21165
+ render: renderTextEllipsis
21166
+ }, {
21167
+ dataIndex: 'originPrice',
21168
+ title: "\u539F\u4EF7",
21169
+ align: 'center',
21170
+ ellipsis: true,
21171
+ width: 250,
21172
+ render: renderTextEllipsis
21173
+ }, {
21174
+ dataIndex: 'price',
21175
+ title: "\u5355\u4EF7",
21176
+ align: 'center',
21177
+ ellipsis: true,
21178
+ width: 250,
21179
+ render: renderTextEllipsis
21180
+ }, {
21181
+ dataIndex: 'receivable',
21182
+ title: "\u9500\u552E\u91D1\u989D",
21183
+ align: 'center',
21184
+ ellipsis: true,
21185
+ width: 250,
21186
+ render: renderTextEllipsis
20643
21187
  }, {
20644
21188
  dataIndex: 'type',
20645
21189
  title: "\u8D60\u54C1\u7C7B\u578B",
@@ -20668,6 +21212,55 @@ var getColumns$3 = function getColumns(_ref) {
20668
21212
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20669
21213
  },
20670
21214
  width: 100
21215
+ }, {
21216
+ dataIndex: 'hasRefund',
21217
+ title: "\u662F\u5426\u9000\u6B3E",
21218
+ align: 'center',
21219
+ ellipsis: true,
21220
+ width: 100,
21221
+ render: function render(val, record, index) {
21222
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21223
+ value: val,
21224
+ onChange: function onChange(value) {
21225
+ updateHandle(value, index, 'isGift');
21226
+ },
21227
+ options: [{
21228
+ label: '是',
21229
+ value: 1
21230
+ }, {
21231
+ label: '否',
21232
+ value: 0
21233
+ }]
21234
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
21235
+ }
21236
+ }, {
21237
+ dataIndex: 'unit',
21238
+ title: "\u5355\u4F4D",
21239
+ align: 'center',
21240
+ ellipsis: true,
21241
+ width: 100,
21242
+ render: renderTextEllipsis
21243
+ }, {
21244
+ dataIndex: 'pkgGoodsName',
21245
+ title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21246
+ align: 'center',
21247
+ ellipsis: true,
21248
+ width: 200,
21249
+ render: renderTextEllipsis
21250
+ }, {
21251
+ dataIndex: 'pkgGoodsCode',
21252
+ title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21253
+ align: 'center',
21254
+ ellipsis: true,
21255
+ width: 200,
21256
+ render: renderTextEllipsis
21257
+ }, {
21258
+ dataIndex: 'pkgGoodsId',
21259
+ title: "\u539F\u7EC4\u5408\u5546\u54C1id",
21260
+ align: 'center',
21261
+ ellipsis: true,
21262
+ width: 200,
21263
+ render: renderTextEllipsis
20671
21264
  }]
20672
21265
  };
20673
21266
  };
@@ -23786,6 +24379,9 @@ var isErpType = {
23786
24379
  },
23787
24380
  isJky: function isJky(type) {
23788
24381
  return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
24382
+ },
24383
+ isWln: function isWln(type) {
24384
+ return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
23789
24385
  }
23790
24386
  };
23791
24387
  var processGoods$1 = function processGoods(_ref) {
@@ -23845,6 +24441,13 @@ var processGoods$1 = function processGoods(_ref) {
23845
24441
  canUpdateNumber: canUpdateNumber,
23846
24442
  source: source
23847
24443
  });
24444
+ } else if (isErpType.isWln(type)) {
24445
+ newList = processWlnGoods$1({
24446
+ list: list,
24447
+ type: type,
24448
+ canUpdateNumber: canUpdateNumber,
24449
+ source: source
24450
+ });
23848
24451
  } else {
23849
24452
  newList = processDefaultGoods({
23850
24453
  list: list,
@@ -23927,11 +24530,47 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
23927
24530
  });
23928
24531
  });
23929
24532
  };
23930
- // 处理不同类型的商品数据
23931
- var processWdtGoods$1 = function processWdtGoods(_ref4) {
24533
+ var processWlnGoods$1 = function processWlnGoods(_ref4) {
23932
24534
  var list = _ref4.list,
23933
- type = _ref4.type,
23934
24535
  canUpdateNumber = _ref4.canUpdateNumber;
24536
+ return list.map(function (item) {
24537
+ // const {
24538
+ // goodName, // 商品名称
24539
+ // goodNo, // 商品编码
24540
+ // goodId, // 商品ID
24541
+ // specBarcode, // 规格条码
24542
+ // retailPrice, // 零售价
24543
+ // isGift, // 是否赠品
24544
+ // skuType,
24545
+ // specImgUrl, // 规格图片
24546
+ // categoryName, //货品分类
24547
+ // } = item;
24548
+ return _objectSpread2(_objectSpread2({}, item), {}, {
24549
+ // cateName: categoryName,
24550
+ // goodsName: goodName,
24551
+ // goodsNo: goodNo,
24552
+ // goodsId: goodId,
24553
+ // barcode: specBarcode,
24554
+ // skuImgUrl: specImgUrl,
24555
+ // combinationName: goodName,
24556
+ // combinationCode: goodNo,
24557
+ // isGift: isGift ? 1 : 0,
24558
+ // isFit: skuType === 'combine' ? 1 : 0,
24559
+ uuid: uuid(),
24560
+ canDelete: true,
24561
+ sellCount: 1,
24562
+ // sellPrice: retailPrice,
24563
+ // sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
24564
+ canEdit: true
24565
+ // canUpdateNumber,
24566
+ });
24567
+ });
24568
+ };
24569
+ // 处理不同类型的商品数据
24570
+ var processWdtGoods$1 = function processWdtGoods(_ref5) {
24571
+ var list = _ref5.list,
24572
+ type = _ref5.type,
24573
+ canUpdateNumber = _ref5.canUpdateNumber;
23935
24574
  return list.map(function (item) {
23936
24575
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
23937
24576
  uuid: uuid(),
@@ -23949,9 +24588,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
23949
24588
  return processedItem;
23950
24589
  });
23951
24590
  };
23952
- var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23953
- var list = _ref5.list,
23954
- canUpdateNumber = _ref5.canUpdateNumber;
24591
+ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
24592
+ var list = _ref6.list,
24593
+ canUpdateNumber = _ref6.canUpdateNumber;
23955
24594
  return list.map(function (item) {
23956
24595
  var specNo = item.specNo,
23957
24596
  specId = item.specId,
@@ -23986,9 +24625,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23986
24625
  });
23987
24626
  });
23988
24627
  };
23989
- var processGyGoods$1 = function processGyGoods(_ref6) {
23990
- var list = _ref6.list,
23991
- source = _ref6.source;
24628
+ var processGyGoods$1 = function processGyGoods(_ref7) {
24629
+ var list = _ref7.list,
24630
+ source = _ref7.source;
23992
24631
  var isFormWorkOrder = source === 'workOrder';
23993
24632
  return list.map(function (item) {
23994
24633
  var goodName = item.goodName,
@@ -24015,8 +24654,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
24015
24654
  });
24016
24655
  });
24017
24656
  };
24018
- var processJstGoods$1 = function processJstGoods(_ref7) {
24019
- var list = _ref7.list;
24657
+ var processJstGoods$1 = function processJstGoods(_ref8) {
24658
+ var list = _ref8.list;
24020
24659
  return list.map(function (item) {
24021
24660
  return {
24022
24661
  name: item.goodName,
@@ -24034,9 +24673,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
24034
24673
  };
24035
24674
  });
24036
24675
  };
24037
- var processKmGoods$1 = function processKmGoods(_ref8) {
24038
- var list = _ref8.list,
24039
- type = _ref8.type;
24676
+ var processKmGoods$1 = function processKmGoods(_ref9) {
24677
+ var list = _ref9.list,
24678
+ type = _ref9.type;
24040
24679
  var initParamsMap = {
24041
24680
  KM_GOODS: {
24042
24681
  num: 1
@@ -24075,9 +24714,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
24075
24714
  }, initParamsMap[type] || {});
24076
24715
  });
24077
24716
  };
24078
- var processDefaultGoods = function processDefaultGoods(_ref9) {
24079
- var list = _ref9.list,
24080
- canUpdateNumber = _ref9.canUpdateNumber;
24717
+ var processDefaultGoods = function processDefaultGoods(_ref10) {
24718
+ var list = _ref10.list,
24719
+ canUpdateNumber = _ref10.canUpdateNumber;
24081
24720
  return list.map(function (item) {
24082
24721
  var goodsId = item.goodsId,
24083
24722
  name = item.name,
@@ -24126,6 +24765,7 @@ var GoodsModalMap = {
24126
24765
  JY_REISSUE_GOODS: JyGoodsModal$1,
24127
24766
  JKY_GOODS: JkyGoodsModal$1,
24128
24767
  JKY_REISSUE_GOODS: JkyGoodsModal$1,
24768
+ WLN_REISSUE_GOODS: WlnGoodsModal$1,
24129
24769
  OTHER_GOODS: GoodsModal$2
24130
24770
  };
24131
24771
  var systemOrderNoMap = {
@@ -24140,6 +24780,7 @@ var systemOrderNoMap = {
24140
24780
  JY_REISSUE_GOODS: 'tradeNo',
24141
24781
  JKY_GOODS: 'tradeNo',
24142
24782
  JKY_REISSUE_GOODS: 'tradeNo',
24783
+ WLN_REISSUE_GOODS: 'tradeNo',
24143
24784
  KM_REISSUE_GOODS: 'sid',
24144
24785
  KM_RETURN_GOODS: 'sid',
24145
24786
  KM_EXCHANGE_GOODS: 'sid',
@@ -24397,6 +25038,9 @@ var getButtonText = function getButtonText() {
24397
25038
  if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
24398
25039
  return '选择吉客云ERP商品';
24399
25040
  }
25041
+ if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
25042
+ return '选择万里牛ERP商品';
25043
+ }
24400
25044
  return '选择商品';
24401
25045
  };
24402
25046
  var GoodItem$1 = function GoodItem(props) {
@@ -24456,8 +25100,8 @@ var GoodItem$1 = function GoodItem(props) {
24456
25100
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
24457
25101
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
24458
25102
  // 判断是否为是否展示系统单筛选项
24459
- var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
24460
- var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
25103
+ var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
25104
+ var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
24461
25105
  var refModal = useRef();
24462
25106
  console.debug('表格数据', value);
24463
25107
  var handleDelete = function handleDelete(record, index) {
@@ -24552,6 +25196,7 @@ var GoodItem$1 = function GoodItem(props) {
24552
25196
  case 'JY_REISSUE_GOODS':
24553
25197
  case 'JKY_GOODS':
24554
25198
  case 'JKY_REISSUE_GOODS':
25199
+ case 'WLN_REISSUE_GOODS':
24555
25200
  case 'SKX_GOODS':
24556
25201
  case 'SKX_RETURN_GOODS':
24557
25202
  {
@@ -25807,12 +26452,45 @@ var jkyUtils = {
25807
26452
  };
25808
26453
 
25809
26454
  var singletonMap$8 = new Map();
26455
+ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
26456
+ var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
26457
+ if (!singletonMap$8.has(cacheKey)) {
26458
+ var p = new Promise(function (resolve, reject) {
26459
+ var doReject = function doReject(err) {
26460
+ // 清空掉错误的请求记录
26461
+ singletonMap$8.delete(cacheKey);
26462
+ reject(err);
26463
+ };
26464
+ extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
26465
+ method: 'post',
26466
+ data: params
26467
+ }).then(function (res) {
26468
+ if (res === null || res === void 0 ? void 0 : res.success) {
26469
+ resolve(res.data || []);
26470
+ // 延迟10秒清除,保证订单的时效性
26471
+ setTimeout(function () {
26472
+ singletonMap$8.delete(cacheKey);
26473
+ }, 1000 * 10);
26474
+ } else {
26475
+ doReject(res);
26476
+ }
26477
+ }).catch(doReject);
26478
+ });
26479
+ singletonMap$8.set(cacheKey, p);
26480
+ }
26481
+ return singletonMap$8.get(cacheKey);
26482
+ };
26483
+ var platformUtils = {
26484
+ getAfterSalesOrderList: getAfterSalesOrderList
26485
+ };
26486
+
26487
+ var singletonMap$9 = new Map();
25810
26488
  var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25811
- if (!singletonMap$8.has(orderNo)) {
26489
+ if (!singletonMap$9.has(orderNo)) {
25812
26490
  var p = new Promise(function (resolve, reject) {
25813
26491
  var doReject = function doReject(err) {
25814
26492
  // 清空掉错误的请求记录
25815
- singletonMap$8.delete(orderNo);
26493
+ singletonMap$9.delete(orderNo);
25816
26494
  reject(err);
25817
26495
  };
25818
26496
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
@@ -25838,16 +26516,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25838
26516
  }
25839
26517
  // 延迟10秒清除,保证订单的时效性
25840
26518
  setTimeout(function () {
25841
- singletonMap$8.delete(orderNo);
26519
+ singletonMap$9.delete(orderNo);
25842
26520
  }, 1000 * 10);
25843
26521
  } else {
25844
26522
  doReject(data);
25845
26523
  }
25846
26524
  }).catch(doReject);
25847
26525
  });
25848
- singletonMap$8.set(orderNo, p);
26526
+ singletonMap$9.set(orderNo, p);
25849
26527
  }
25850
- return singletonMap$8.get(orderNo);
26528
+ return singletonMap$9.get(orderNo);
25851
26529
  };
25852
26530
  var kmUtils = {
25853
26531
  getOrderListSingleton: getOrderListSingleton$2
@@ -25865,7 +26543,8 @@ var columnsMap = {
25865
26543
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
25866
26544
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
25867
26545
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
25868
- WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
26546
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
26547
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
25869
26548
  };
25870
26549
  var rowKeyMap = {
25871
26550
  BS_SYSTEM_ORDER: 'billNo',
@@ -25877,8 +26556,10 @@ var rowKeyMap = {
25877
26556
  JST_SYSTEM_ORDER: 'oId',
25878
26557
  JY_SYSTEM_ORDER: 'tradeNo',
25879
26558
  JKY_SYSTEM_ORDER: 'tradeNo',
25880
- WDT_RETURN_BILL_NO: 'refundNo'
26559
+ WDT_RETURN_BILL_NO: 'refundNo',
26560
+ PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId'
25881
26561
  };
26562
+ var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
25882
26563
  var index$2 = (function (props) {
25883
26564
  var value = props.value,
25884
26565
  _onChange = props.onChange,
@@ -25888,6 +26569,7 @@ var index$2 = (function (props) {
25888
26569
  showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
25889
26570
  var onceRef = useRef(false);
25890
26571
  var valueRef = useRef(null);
26572
+ var isRadio = RADIO_TABLE_KEYS.includes(type);
25891
26573
  // 字段筛选状态 - 用户选择要筛选的字段(单选)
25892
26574
  var _useState = useState(''),
25893
26575
  _useState2 = _slicedToArray(_useState, 2),
@@ -25939,6 +26621,8 @@ var index$2 = (function (props) {
25939
26621
  getJyOrderList(value.orderNo);
25940
26622
  } else if (type === 'JKY_SYSTEM_ORDER') {
25941
26623
  getJkyOrderList(value.orderNo);
26624
+ } else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
26625
+ value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
25942
26626
  }
25943
26627
  }
25944
26628
  }, [value, type]);
@@ -26313,10 +26997,71 @@ var index$2 = (function (props) {
26313
26997
  return _ref12.apply(this, arguments);
26314
26998
  };
26315
26999
  }();
26316
- var rowSelection = {
27000
+ var getPlatformAfterSalesOrderList = /*#__PURE__*/function () {
27001
+ var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(orderNo, shopId) {
27002
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
27003
+ while (1) switch (_context10.prev = _context10.next) {
27004
+ case 0:
27005
+ platformUtils.getAfterSalesOrderList({
27006
+ orderNo: orderNo,
27007
+ shopId: shopId
27008
+ }).then(function (data) {
27009
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
27010
+ orders: data || [],
27011
+ showOrderInfo: data || []
27012
+ }));
27013
+ });
27014
+ onceRef.current = false;
27015
+ case 2:
27016
+ case "end":
27017
+ return _context10.stop();
27018
+ }
27019
+ }, _callee10);
27020
+ }));
27021
+ return function getPlatformAfterSalesOrderList(_x10, _x11) {
27022
+ return _ref13.apply(this, arguments);
27023
+ };
27024
+ }();
27025
+ var rowKey = rowKeyMap[type] || 'billNo';
27026
+ var handleRadioChange = function handleRadioChange(record) {
27027
+ var _value$selectIds;
27028
+ if (disabled) return;
27029
+ var currentKey = String(value === null || value === void 0 ? void 0 : (_value$selectIds = value.selectIds) === null || _value$selectIds === void 0 ? void 0 : _value$selectIds[0]);
27030
+ var rowKeyVal = String(record[rowKey]);
27031
+ if (currentKey && currentKey === rowKeyVal) {
27032
+ _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
27033
+ selectIds: [],
27034
+ selectedRows: []
27035
+ }));
27036
+ } else {
27037
+ _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
27038
+ selectIds: [rowKeyVal],
27039
+ selectedRows: [record]
27040
+ }));
27041
+ }
27042
+ };
27043
+ var radioColumn = isRadio ? {
27044
+ width: 50,
27045
+ fixed: true,
27046
+ render: function render(_, record) {
27047
+ var _value$selectIds2;
27048
+ var checked = String(value === null || value === void 0 ? void 0 : (_value$selectIds2 = value.selectIds) === null || _value$selectIds2 === void 0 ? void 0 : _value$selectIds2[0]) === String(record[rowKey]);
27049
+ return /*#__PURE__*/React.createElement(Radio, {
27050
+ checked: checked,
27051
+ onClick: function onClick(e) {
27052
+ e.preventDefault();
27053
+ handleRadioChange(record);
27054
+ },
27055
+ disabled: disabled
27056
+ });
27057
+ }
27058
+ } : null;
27059
+ var displayColumns = isRadio && radioColumn ? [radioColumn].concat(_toConsumableArray(columns)) : columns;
27060
+ var rowSelection = isRadio ? undefined : {
27061
+ type: 'checkbox',
26317
27062
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
26318
27063
  fixed: true,
26319
- onChange: function onChange(selectedRowKeys, selectedRows, info) {
27064
+ onChange: function onChange(selectedRowKeys, selectedRows) {
26320
27065
  _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
26321
27066
  selectIds: selectedRowKeys,
26322
27067
  selectedRows: selectedRows
@@ -26362,9 +27107,9 @@ var index$2 = (function (props) {
26362
27107
  allowClear: true
26363
27108
  })), /*#__PURE__*/React.createElement(Table, {
26364
27109
  dataSource: filteredData,
26365
- columns: columns,
27110
+ columns: displayColumns,
26366
27111
  rowSelection: rowSelection,
26367
- rowKey: rowKeyMap[type] || 'billNo',
27112
+ rowKey: rowKey,
26368
27113
  size: "small",
26369
27114
  pagination: false,
26370
27115
  scroll: {
@@ -26751,16 +27496,16 @@ var orderSubFormConstants = {
26751
27496
  };
26752
27497
 
26753
27498
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
26754
- var singletonMap$9 = new Map();
27499
+ var singletonMap$a = new Map();
26755
27500
  var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
26756
27501
  var orderNo = parmas.orderNo,
26757
27502
  shopId = parmas.shopId;
26758
27503
  var key = "".concat(orderNo, "-").concat(shopId);
26759
- if (!singletonMap$9.has(key)) {
27504
+ if (!singletonMap$a.has(key)) {
26760
27505
  var p = new Promise(function (resolve, reject) {
26761
27506
  var doReject = function doReject(err) {
26762
27507
  // 清空掉错误的请求记录
26763
- singletonMap$9.delete(key);
27508
+ singletonMap$a.delete(key);
26764
27509
  reject(err);
26765
27510
  };
26766
27511
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -26776,16 +27521,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
26776
27521
  }
26777
27522
  // 延迟10秒清除,保证订单的时效性
26778
27523
  setTimeout(function () {
26779
- singletonMap$9.delete(key);
27524
+ singletonMap$a.delete(key);
26780
27525
  }, 1000 * 10);
26781
27526
  } else {
26782
27527
  doReject(data);
26783
27528
  }
26784
27529
  }).catch(doReject);
26785
27530
  });
26786
- singletonMap$9.set(key, p);
27531
+ singletonMap$a.set(key, p);
26787
27532
  }
26788
- return singletonMap$9.get(key);
27533
+ return singletonMap$a.get(key);
26789
27534
  };
26790
27535
  var renderEditItem = function renderEditItem(_ref) {
26791
27536
  var item = _ref.item,
@@ -27547,6 +28292,32 @@ var componentMap$2 = {
27547
28292
  },
27548
28293
  getOrderList: jkyUtils.getJkyOrderListSingleton
27549
28294
  },
28295
+ WLN_GOODS: {
28296
+ type: 'jky',
28297
+ key: 'wlnGoods',
28298
+ name: '吉客云',
28299
+ orderNo: 'tradeNo',
28300
+ goodDetailOrderNo: 'tradeNo',
28301
+ eventNameMap: {
28302
+ // pubsub 事件
28303
+ type: 'wlnType',
28304
+ updateGoodsHandle: updateWlnGoodsHandle,
28305
+ selectListReturn: 'wlnSelectListReturn',
28306
+ selectList: 'wlnSelectList',
28307
+ reissueSelectList: 'wlnReissueSelectList',
28308
+ reissueSelectListReturn: 'wlnReissueSelectListReturn',
28309
+ reissueDeleteGood: 'wlnReissueDeleteGood',
28310
+ changeShopCode: 'wlnChangeShopCode',
28311
+ reissueType: 'wlnReissueType',
28312
+ returnType: 'wlnReturnType',
28313
+ returnSelectListReturn: 'wlnReturnSelectListReturn',
28314
+ returnSelectList: 'wlnReturnSelectList',
28315
+ deleteGood: 'wlnDeleteGood',
28316
+ returnDeleteGood: 'wlnReturnDeleteGood',
28317
+ exchangeDeleteGood: 'wlnExchangeDeleteGood'
28318
+ },
28319
+ getOrderList: wlnUtils.getOrderListSingleton
28320
+ },
27550
28321
  WDT_AFTERSALE_GOODS: {
27551
28322
  type: 'wdtAftersale',
27552
28323
  key: 'wdtAftersaleGoods',
@@ -28731,6 +29502,22 @@ var typeMap$2 = {
28731
29502
  goodDetailsKey: 'goodsDetail',
28732
29503
  isShowSelectTradeGoods: true,
28733
29504
  showModeBtn: true
29505
+ },
29506
+ WLN_REISSUE_GOODS: {
29507
+ compType: '补发',
29508
+ key: 'wlnReissueGoods',
29509
+ typeName: 'wlnReissueType',
29510
+ systemOrder: 'wlnSystemOrder',
29511
+ systemOrderNo: 'wlnSystemOrderNo',
29512
+ getOrderList: wlnUtils.getOrderListSingleton,
29513
+ updateGoodsHandle: updateWlnGoodsHandle,
29514
+ alwaysShowChooseErpGoodsBtn: true,
29515
+ orderTypeKey: 'orderType',
29516
+ oIdKey: 'tradeNo',
29517
+ outerOiIdKey: 'sourceSubtradeNo',
29518
+ goodDetailsKey: 'goodsDetail',
29519
+ isShowSelectTradeGoods: true,
29520
+ showModeBtn: true
28734
29521
  }
28735
29522
  };
28736
29523
  var PublicReissue = function PublicReissue(props) {
@@ -28963,6 +29750,10 @@ var PublicReissue = function PublicReissue(props) {
28963
29750
  orderRest = {
28964
29751
  canEdit: true
28965
29752
  };
29753
+ } else if (['WLN_REISSUE_GOODS'].includes(type)) {
29754
+ orderRest = {
29755
+ canEdit: true
29756
+ };
28966
29757
  }
28967
29758
  var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
28968
29759
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
@@ -29481,7 +30272,7 @@ var GoodsModal$5 = function GoodsModal(props) {
29481
30272
  key: item.value
29482
30273
  }, item.label);
29483
30274
  })), /*#__PURE__*/React.createElement(Search$1, {
29484
- placeholder: "\u5B9D\u8D1D\u94FE\u63A5\uFF0C\u6807\u9898",
30275
+ placeholder: "\u5B9D\u8D1D\u6807\u9898",
29485
30276
  allowClear: true,
29486
30277
  enterButton: "\u641C\u7D22",
29487
30278
  style: {
@@ -31414,5 +32205,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
31414
32205
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
31415
32206
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
31416
32207
  };
32208
+ var FIELD_COLUMNS_MAP = {
32209
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
32210
+ };
31417
32211
 
31418
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
32212
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };