@kmkf-fe-packages/basic-components 2.7.3-beta.3 → 2.7.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
@@ -8594,10 +8594,6 @@ 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
- },
8601
8597
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8602
8598
  status: 'returnExchangeGoodsReviewStatusValue',
8603
8599
  reason: 'returnExchangeGoodsReviewStatusReason'
@@ -8626,8 +8622,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
8626
8622
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8627
8623
  MSG_STATUS: 'msgStatusValues',
8628
8624
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8629
- JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8630
- WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
8625
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
8631
8626
  };
8632
8627
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8633
8628
  };
@@ -9462,7 +9457,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9462
9457
  AGREE_REFUND_STATUS: processCallBackStatus,
9463
9458
  REJECT_REFUND_STATUS: processCallBackStatus,
9464
9459
  ERP_AFTER_SALE_STATUS: processCallBackStatus,
9465
- ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
9466
9460
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9467
9461
  REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9468
9462
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
@@ -9473,7 +9467,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9473
9467
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9474
9468
  MSG_STATUS: processSceneStatus,
9475
9469
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9476
- WLN_WAREHOUSING_STATUS: processSceneStatus,
9477
9470
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9478
9471
  BS_LOGISTICS: processErpLogistics,
9479
9472
  WLN_LOGISTICS: processErpLogistics,
@@ -11655,7 +11648,7 @@ var GoodsModal = function GoodsModal(props) {
11655
11648
  key: item.value
11656
11649
  }, item.label);
11657
11650
  })), /*#__PURE__*/React.createElement(Search, {
11658
- placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
11651
+ placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
11659
11652
  // enterButton="搜索"
11660
11653
  className: "search",
11661
11654
  value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
@@ -13161,7 +13154,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13161
13154
  _props$required = props.required,
13162
13155
  required = _props$required === void 0 ? false : _props$required,
13163
13156
  onChange = props.onChange,
13164
- _onBlur = props.onBlur,
13165
13157
  _props$disabled = props.disabled,
13166
13158
  disabled = _props$disabled === void 0 ? false : _props$disabled,
13167
13159
  _props$isEditing = props.isEditing,
@@ -13375,7 +13367,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13375
13367
  }
13376
13368
  }
13377
13369
  console.log('newValue', newValue);
13378
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
13370
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13379
13371
  };
13380
13372
  //智能识别回调
13381
13373
  var changeIdentify = function changeIdentify(val) {
@@ -13427,10 +13419,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13427
13419
  var _e$target$value;
13428
13420
  return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
13429
13421
  },
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
- },
13434
13422
  value: value === null || value === void 0 ? void 0 : value.interceptCode
13435
13423
  }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13436
13424
  label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
@@ -13504,8 +13492,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13504
13492
  disabled: disabled || isEdit,
13505
13493
  placeholder: senderMobileLabel,
13506
13494
  onChange: function onChange(e) {
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');
13495
+ var _e$target$value2;
13496
+ return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
13509
13497
  }
13510
13498
  })), /*#__PURE__*/React.createElement(Item, {
13511
13499
  label: '退回地址',
@@ -13564,8 +13552,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13564
13552
  },
13565
13553
  placeholder: "\u5176\u4ED6",
13566
13554
  onChange: function onChange(e) {
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');
13555
+ var _e$target$value3;
13556
+ return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
13569
13557
  }
13570
13558
  })), /*#__PURE__*/React.createElement(Item, {
13571
13559
  label: '拦截状态',
@@ -13619,8 +13607,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13619
13607
  disabled: true,
13620
13608
  placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13621
13609
  onChange: function onChange(e) {
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');
13610
+ var _e$target$value4;
13611
+ return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
13624
13612
  }
13625
13613
  })));
13626
13614
  };
@@ -14122,9 +14110,9 @@ var jstGoods = function jstGoods(props) {
14122
14110
  changeIndex = _useState2[0],
14123
14111
  setChangeIndex = _useState2[1]; //选中的包裹
14124
14112
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
14125
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
14113
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
14126
14114
  var expressDateInstance = ExpressData.getInstance(platformType);
14127
- var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
14115
+ var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
14128
14116
  useEffect(function () {
14129
14117
  //没有值塞个默认值
14130
14118
  if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
@@ -16165,33 +16153,30 @@ var GoodList = function GoodList(props, ref) {
16165
16153
  selectedRowKeys: selectIds,
16166
16154
  fixed: true,
16167
16155
  onSelect: function onSelect(record, selected) {
16168
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16169
16156
  if (selected) {
16170
- setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
16157
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
16171
16158
  setSelect([].concat(_toConsumableArray(selectList), [record]));
16172
16159
  } else {
16173
16160
  setSelectIds(selectIds.filter(function (t) {
16174
- return t !== uniqueKey;
16161
+ return t !== record.specNo;
16175
16162
  }));
16176
16163
  setSelect(selectList.filter(function (t) {
16177
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16164
+ return t.specNo !== record.specNo;
16178
16165
  }));
16179
16166
  }
16180
16167
  },
16181
16168
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
16182
16169
  if (selected) {
16183
- var changeKeys = changeRows.map(function (t) {
16184
- return "".concat(t.goodNo, "-").concat(t.specNo);
16185
- });
16186
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
16170
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
16171
+ return t.specNo;
16172
+ }))));
16187
16173
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
16188
16174
  } else {
16189
- var _changeKeys = changeRows.map(function (t) {
16190
- return "".concat(t.goodNo, "-").concat(t.specNo);
16191
- });
16192
- setSelectIds(difference(selectIds, _changeKeys));
16175
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
16176
+ return t.specNo;
16177
+ })));
16193
16178
  var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
16194
- return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
16179
+ return arrVal.specNo !== othVal.specNo;
16195
16180
  });
16196
16181
  setSelect(list);
16197
16182
  }
@@ -16199,12 +16184,11 @@ var GoodList = function GoodList(props, ref) {
16199
16184
  };
16200
16185
  var showTable = function showTable() {
16201
16186
  var handleDelete = function handleDelete(record) {
16202
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16203
16187
  setSelectIds(selectIds.filter(function (t) {
16204
- return t !== uniqueKey;
16188
+ return t !== record.specNo;
16205
16189
  }));
16206
16190
  setSelect(selectList.filter(function (t) {
16207
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16191
+ return t.specNo !== record.specNo;
16208
16192
  }));
16209
16193
  };
16210
16194
  var showColumns = [{
@@ -16228,9 +16212,7 @@ var GoodList = function GoodList(props, ref) {
16228
16212
  }
16229
16213
  }, /*#__PURE__*/React.createElement(Table, {
16230
16214
  columns: showColumns,
16231
- rowKey: function rowKey(record) {
16232
- return "".concat(record.goodNo, "-").concat(record.specNo);
16233
- },
16215
+ rowKey: 'specNo',
16234
16216
  dataSource: selectList,
16235
16217
  scroll: {
16236
16218
  x: '100%',
@@ -16260,9 +16242,7 @@ var GoodList = function GoodList(props, ref) {
16260
16242
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
16261
16243
  className: "GoodModalColumns",
16262
16244
  rowSelection: rowSelection,
16263
- rowKey: function rowKey(record) {
16264
- return "".concat(record.goodNo, "-").concat(record.specNo);
16265
- },
16245
+ rowKey: "specNo",
16266
16246
  columns: columns,
16267
16247
  scroll: {
16268
16248
  x: '100%',
@@ -18754,7 +18734,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
18754
18734
  data: {
18755
18735
  pageSize: pageSize,
18756
18736
  pageNo: current,
18757
- platform: 'WLN_ERP',
18737
+ platform: 'JY_ERP',
18758
18738
  conditionList: conditionList
18759
18739
  }
18760
18740
  }).then(function (res) {
@@ -18782,10 +18762,10 @@ var searchFormData$4 = [{
18782
18762
  dataIndex: 'specNo',
18783
18763
  type: 'optionalInput'
18784
18764
  }, {
18785
- label: '货品名称',
18765
+ label: '商品名称',
18786
18766
  name: 'goodName'
18787
18767
  }, {
18788
- label: '货品编码',
18768
+ label: '商品编码',
18789
18769
  name: 'goodNo',
18790
18770
  type: 'optionalInput'
18791
18771
  }];
@@ -18798,7 +18778,7 @@ var GoodList$5 = function GoodList(props, ref) {
18798
18778
  _useState4 = _slicedToArray(_useState3, 2),
18799
18779
  selectIds = _useState4[0],
18800
18780
  setSelectIds = _useState4[1];
18801
- var _useGetColumns = useGetColumns('wln'),
18781
+ var _useGetColumns = useGetColumns('jy'),
18802
18782
  _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
18803
18783
  columns = _useGetColumns2[0],
18804
18784
  showColumnsDataIndexList = _useGetColumns2[1],
@@ -18857,8 +18837,8 @@ var GoodList$5 = function GoodList(props, ref) {
18857
18837
  getCheckboxProps: function getCheckboxProps(record) {
18858
18838
  var options = {
18859
18839
  disabled: (props.selectedRows || []).map(function (row) {
18860
- return row.specId || record.id;
18861
- }).includes(record.specId || record.id),
18840
+ return row.id || row.specId;
18841
+ }).includes(record.id || record.specId),
18862
18842
  name: record.id
18863
18843
  };
18864
18844
  return options;
@@ -18942,9 +18922,9 @@ var GoodList$5 = function GoodList(props, ref) {
18942
18922
  type: "text"
18943
18923
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
18944
18924
  };
18945
- var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
18925
+ var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
18946
18926
 
18947
- var WlnGoodsModal = function WlnGoodsModal(props, ref) {
18927
+ var JyGoodsModal = function JyGoodsModal(props, ref) {
18948
18928
  useImperativeHandle(ref, function () {
18949
18929
  return {
18950
18930
  open: function open(shopCode) {
@@ -18964,13 +18944,13 @@ var WlnGoodsModal = function WlnGoodsModal(props, ref) {
18964
18944
  _useState4 = _slicedToArray(_useState3, 2),
18965
18945
  selectedRows = _useState4[0],
18966
18946
  setSelectedRows = _useState4[1];
18967
- var jkyGoodsListRef = useRef(null);
18947
+ var jyGoodsListRef = useRef(null);
18968
18948
  var _onCancel = function onCancel() {
18969
18949
  setVisible(false);
18970
18950
  };
18971
18951
  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()) || [];
18952
+ var _jyGoodsListRef$curre;
18953
+ var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
18974
18954
  onSubmit(selectedList);
18975
18955
  _onCancel();
18976
18956
  };
@@ -18985,12 +18965,12 @@ var WlnGoodsModal = function WlnGoodsModal(props, ref) {
18985
18965
  },
18986
18966
  onOk: onOk,
18987
18967
  wrapClassName: "goodModal"
18988
- }, /*#__PURE__*/React.createElement(WlnGoodsList, {
18989
- ref: jkyGoodsListRef,
18968
+ }, /*#__PURE__*/React.createElement(JyGoodsList, {
18969
+ ref: jyGoodsListRef,
18990
18970
  selectedRows: selectedRows
18991
18971
  })));
18992
18972
  };
18993
- var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
18973
+ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18994
18974
 
18995
18975
  var getTableData$6 = function getTableData(_ref, formData) {
18996
18976
  var current = _ref.current,
@@ -19001,7 +18981,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
19001
18981
  data: {
19002
18982
  pageSize: pageSize,
19003
18983
  pageNo: current,
19004
- platform: 'JY_ERP',
18984
+ platform: 'JKY_ERP',
19005
18985
  conditionList: conditionList
19006
18986
  }
19007
18987
  }).then(function (res) {
@@ -19029,10 +19009,10 @@ var searchFormData$5 = [{
19029
19009
  dataIndex: 'specNo',
19030
19010
  type: 'optionalInput'
19031
19011
  }, {
19032
- label: '商品名称',
19012
+ label: '货品名称',
19033
19013
  name: 'goodName'
19034
19014
  }, {
19035
- label: '商品编码',
19015
+ label: '货品编码',
19036
19016
  name: 'goodNo',
19037
19017
  type: 'optionalInput'
19038
19018
  }];
@@ -19045,7 +19025,7 @@ var GoodList$6 = function GoodList(props, ref) {
19045
19025
  _useState4 = _slicedToArray(_useState3, 2),
19046
19026
  selectIds = _useState4[0],
19047
19027
  setSelectIds = _useState4[1];
19048
- var _useGetColumns = useGetColumns('jy'),
19028
+ var _useGetColumns = useGetColumns('jky'),
19049
19029
  _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
19050
19030
  columns = _useGetColumns2[0],
19051
19031
  showColumnsDataIndexList = _useGetColumns2[1],
@@ -19104,8 +19084,8 @@ var GoodList$6 = function GoodList(props, ref) {
19104
19084
  getCheckboxProps: function getCheckboxProps(record) {
19105
19085
  var options = {
19106
19086
  disabled: (props.selectedRows || []).map(function (row) {
19107
- return row.id || row.specId;
19108
- }).includes(record.id || record.specId),
19087
+ return row.specId || record.id;
19088
+ }).includes(record.specId || record.id),
19109
19089
  name: record.id
19110
19090
  };
19111
19091
  return options;
@@ -19189,9 +19169,9 @@ var GoodList$6 = function GoodList(props, ref) {
19189
19169
  type: "text"
19190
19170
  }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
19191
19171
  };
19192
- var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
19172
+ var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
19193
19173
 
19194
- var JyGoodsModal = function JyGoodsModal(props, ref) {
19174
+ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
19195
19175
  useImperativeHandle(ref, function () {
19196
19176
  return {
19197
19177
  open: function open(shopCode) {
@@ -19211,13 +19191,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
19211
19191
  _useState4 = _slicedToArray(_useState3, 2),
19212
19192
  selectedRows = _useState4[0],
19213
19193
  setSelectedRows = _useState4[1];
19214
- var jyGoodsListRef = useRef(null);
19194
+ var jkyGoodsListRef = useRef(null);
19215
19195
  var _onCancel = function onCancel() {
19216
19196
  setVisible(false);
19217
19197
  };
19218
19198
  var onOk = function onOk() {
19219
- var _jyGoodsListRef$curre;
19220
- var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
19199
+ var _jkyGoodsListRef$curr;
19200
+ var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
19221
19201
  onSubmit(selectedList);
19222
19202
  _onCancel();
19223
19203
  };
@@ -19232,294 +19212,47 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
19232
19212
  },
19233
19213
  onOk: onOk,
19234
19214
  wrapClassName: "goodModal"
19235
- }, /*#__PURE__*/React.createElement(JyGoodsList, {
19236
- ref: jyGoodsListRef,
19215
+ }, /*#__PURE__*/React.createElement(JkyGoodsList, {
19216
+ ref: jkyGoodsListRef,
19237
19217
  selectedRows: selectedRows
19238
19218
  })));
19239
19219
  };
19240
- var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
19220
+ var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
19241
19221
 
19242
- var getTableData$7 = function getTableData(_ref, formData) {
19243
- var current = _ref.current,
19244
- pageSize = _ref.pageSize;
19245
- var conditionList = transformFormData(formData);
19246
- return extendRequest('/qy/gdfw/product/product/page', {
19247
- method: 'post',
19248
- data: {
19249
- pageSize: pageSize,
19250
- pageNo: current,
19251
- platform: 'JKY_ERP',
19252
- conditionList: conditionList
19253
- }
19254
- }).then(function (res) {
19255
- var _res$data = res.data,
19256
- _res$data$productSkuL = _res$data.productSkuList,
19257
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
19258
- _res$data$total = _res$data.total,
19259
- total = _res$data$total === void 0 ? 0 : _res$data$total;
19260
- var newProducts = productSkuList.map(function (item, index) {
19261
- return _objectSpread2({}, item);
19262
- });
19263
- return {
19264
- total: total,
19265
- list: newProducts
19266
- };
19267
- });
19268
- };
19269
- var searchFormData$6 = [{
19270
- label: '规格名称',
19271
- name: 'skuName',
19272
- dataIndex: 'specName'
19273
- }, {
19274
- label: '规格编码',
19275
- name: 'skuCode',
19276
- dataIndex: 'specNo',
19277
- type: 'optionalInput'
19278
- }, {
19279
- label: '货品名称',
19280
- name: 'goodName'
19281
- }, {
19282
- label: '货品编码',
19283
- name: 'goodNo',
19284
- type: 'optionalInput'
19285
- }];
19286
- var GoodList$7 = function GoodList(props, ref) {
19287
- var _useState = useState([]),
19288
- _useState2 = _slicedToArray(_useState, 2),
19289
- selectList = _useState2[0],
19290
- setSelect = _useState2[1];
19291
- var _useState3 = useState([]),
19292
- _useState4 = _slicedToArray(_useState3, 2),
19293
- selectIds = _useState4[0],
19294
- setSelectIds = _useState4[1];
19295
- var _useGetColumns = useGetColumns('jky'),
19296
- _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
19297
- columns = _useGetColumns2[0],
19298
- showColumnsDataIndexList = _useGetColumns2[1],
19299
- loading = _useGetColumns2[2];
19300
- useImperativeHandle(ref, function () {
19301
- return {
19302
- getSelectGoodList: function getSelectGoodList() {
19303
- return selectList;
19304
- }
19305
- };
19306
- });
19307
- var _Form$useForm = Form.useForm(),
19308
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
19309
- form = _Form$useForm2[0];
19310
- var _useAntdTable = useAntdTable(getTableData$7, {
19311
- defaultPageSize: 10,
19312
- form: form
19313
- }),
19314
- tableProps = _useAntdTable.tableProps,
19315
- search = _useAntdTable.search,
19316
- params = _useAntdTable.params;
19317
- var submit = search.submit,
19318
- reset = search.reset;
19319
- var rowSelection = {
19320
- selectedRowKeys: selectIds,
19321
- fixed: true,
19322
- onSelect: function onSelect(record, selected) {
19323
- if (selected) {
19324
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
19325
- setSelect([].concat(_toConsumableArray(selectList), [record]));
19326
- } else {
19327
- setSelectIds(selectIds.filter(function (t) {
19328
- return t !== record.id;
19329
- }));
19330
- setSelect(selectList.filter(function (t) {
19331
- return t.id !== record.id;
19332
- }));
19333
- }
19334
- },
19335
- onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
19336
- if (selected) {
19337
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
19338
- return t.id;
19339
- }))));
19340
- setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
19341
- } else {
19342
- setSelectIds(difference(selectIds, changeRows.map(function (t) {
19343
- return t.id;
19344
- })));
19345
- var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
19346
- return arrVal.id !== othVal.id;
19347
- });
19348
- setSelect(list);
19349
- }
19350
- },
19351
- getCheckboxProps: function getCheckboxProps(record) {
19352
- var options = {
19353
- disabled: (props.selectedRows || []).map(function (row) {
19354
- return row.specId || record.id;
19355
- }).includes(record.specId || record.id),
19356
- name: record.id
19357
- };
19358
- return options;
19359
- }
19360
- };
19361
- var showTable = function showTable() {
19362
- var handleDelete = function handleDelete(record) {
19363
- setSelectIds(selectIds.filter(function (t) {
19364
- return t !== record.id;
19365
- }));
19366
- setSelect(selectList.filter(function (t) {
19367
- return t.id !== record.id;
19368
- }));
19369
- };
19370
- var showColumns = [{
19371
- dataIndex: '',
19372
- title: "\u64CD\u4F5C",
19373
- ellipsis: true,
19374
- width: 100,
19375
- render: function render(val, record) {
19376
- return /*#__PURE__*/React.createElement(Button, {
19377
- type: "link",
19378
- onClick: function onClick() {
19379
- return handleDelete(record);
19380
- }
19381
- }, "\u5220\u9664");
19382
- }
19383
- }].concat(takeRight(columns, columns.length - 1));
19384
- return selectList.length ? /*#__PURE__*/React.createElement("div", {
19385
- style: {
19386
- width: '100%',
19387
- maxWidth: '387px'
19388
- }
19389
- }, /*#__PURE__*/React.createElement(Table, {
19390
- columns: showColumns,
19391
- rowKey: 'id',
19392
- dataSource: selectList,
19393
- scroll: {
19394
- x: '100%',
19395
- y: 250
19396
- },
19397
- pagination: {
19398
- size: 'small',
19399
- total: selectIds.length,
19400
- pageSize: 10,
19401
- showSizeChanger: false
19402
- }
19403
- })) : null;
19404
- };
19405
- return /*#__PURE__*/React.createElement(Skeleton, {
19406
- active: true,
19407
- loading: loading
19408
- }, /*#__PURE__*/React.createElement(SearchForm, {
19409
- searchFormData: searchFormData$6,
19410
- form: form,
19411
- showColumnsDataIndexList: showColumnsDataIndexList,
19412
- submit: submit,
19413
- reset: reset
19414
- }), /*#__PURE__*/React.createElement("div", {
19415
- style: {
19416
- marginTop: '4px'
19417
- }
19418
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
19419
- className: "GoodModalColumns",
19420
- rowSelection: rowSelection,
19421
- rowKey: "id",
19422
- columns: columns,
19423
- scroll: {
19424
- x: '100%',
19425
- y: 250
19426
- },
19427
- size: "small"
19428
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
19429
- getPopupContainer: function getPopupContainer(triggerNode) {
19430
- return triggerNode.parentElement;
19431
- },
19432
- content: showTable(),
19433
- title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
19434
- }, /*#__PURE__*/React.createElement(Button, {
19435
- danger: true,
19436
- type: "text"
19437
- }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
19438
- };
19439
- var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
19440
-
19441
- var JkyGoodsModal = function JkyGoodsModal(props, ref) {
19442
- useImperativeHandle(ref, function () {
19443
- return {
19444
- open: function open(shopCode) {
19445
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19446
- setVisible(true);
19447
- setSelectedRows(options.value || []);
19448
- }
19449
- };
19450
- });
19451
- var onSubmit = props.onSubmit,
19452
- width = props.width;
19453
- var _useState = useState(false),
19454
- _useState2 = _slicedToArray(_useState, 2),
19455
- visible = _useState2[0],
19456
- setVisible = _useState2[1];
19457
- var _useState3 = useState([]),
19458
- _useState4 = _slicedToArray(_useState3, 2),
19459
- selectedRows = _useState4[0],
19460
- setSelectedRows = _useState4[1];
19461
- var jkyGoodsListRef = useRef(null);
19462
- var _onCancel = function onCancel() {
19463
- setVisible(false);
19464
- };
19465
- var onOk = function onOk() {
19466
- var _jkyGoodsListRef$curr;
19467
- var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
19468
- onSubmit(selectedList);
19469
- _onCancel();
19470
- };
19471
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
19472
- title: '选择商品',
19473
- okText: '确认',
19474
- cancelText: '取消',
19475
- visible: visible,
19476
- width: width || 850,
19477
- onCancel: function onCancel() {
19478
- _onCancel();
19479
- },
19480
- onOk: onOk,
19481
- wrapClassName: "goodModal"
19482
- }, /*#__PURE__*/React.createElement(JkyGoodsList, {
19483
- ref: jkyGoodsListRef,
19484
- selectedRows: selectedRows
19485
- })));
19486
- };
19487
- var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
19488
-
19489
- var getColumns = function getColumns(_ref) {
19490
- var _ref$text = _ref.text,
19491
- disabled = _ref.disabled,
19492
- updateHandle = _ref.updateHandle;
19493
- return {
19494
- //百胜E3补发商品
19495
- BS_E3_REISSUE_GOODS: [{
19496
- dataIndex: 'sku',
19497
- title: "SKU",
19498
- width: 150,
19499
- render: renderTextEllipsis
19500
- }, {
19501
- dataIndex: 'skuId',
19502
- title: "SKU ID",
19503
- width: 150,
19504
- render: renderTextEllipsis
19505
- }, {
19506
- dataIndex: 'goodsName',
19507
- title: "\u5546\u54C1\u540D\u79F0",
19508
- width: 150,
19509
- render: renderTextEllipsis
19510
- }, {
19511
- dataIndex: 'goodsShortName',
19512
- title: "\u5546\u54C1\u7B80\u79F0",
19513
- width: 150,
19514
- render: renderTextEllipsis
19515
- }, {
19516
- dataIndex: 'picPath',
19517
- title: "\u5546\u54C1\u56FE\u7247",
19518
- width: 150,
19519
- render: function render(val) {
19520
- return /*#__PURE__*/React.createElement(Image, {
19521
- width: 30,
19522
- src: val
19222
+ var getColumns = function getColumns(_ref) {
19223
+ var _ref$text = _ref.text,
19224
+ disabled = _ref.disabled,
19225
+ updateHandle = _ref.updateHandle;
19226
+ return {
19227
+ //百胜E3补发商品
19228
+ BS_E3_REISSUE_GOODS: [{
19229
+ dataIndex: 'sku',
19230
+ title: "SKU",
19231
+ width: 150,
19232
+ render: renderTextEllipsis
19233
+ }, {
19234
+ dataIndex: 'skuId',
19235
+ title: "SKU ID",
19236
+ width: 150,
19237
+ render: renderTextEllipsis
19238
+ }, {
19239
+ dataIndex: 'goodsName',
19240
+ title: "\u5546\u54C1\u540D\u79F0",
19241
+ width: 150,
19242
+ render: renderTextEllipsis
19243
+ }, {
19244
+ dataIndex: 'goodsShortName',
19245
+ title: "\u5546\u54C1\u7B80\u79F0",
19246
+ width: 150,
19247
+ render: renderTextEllipsis
19248
+ }, {
19249
+ dataIndex: 'picPath',
19250
+ title: "\u5546\u54C1\u56FE\u7247",
19251
+ width: 150,
19252
+ render: function render(val) {
19253
+ return /*#__PURE__*/React.createElement(Image, {
19254
+ width: 30,
19255
+ src: val
19523
19256
  });
19524
19257
  }
19525
19258
  }, {
@@ -20820,13 +20553,6 @@ var getColumns$3 = function getColumns(_ref) {
20820
20553
  ellipsis: true,
20821
20554
  width: 250,
20822
20555
  render: renderTextEllipsis
20823
- }, {
20824
- dataIndex: 'wlnSkuName',
20825
- title: "sku\u540D\u79F0",
20826
- align: 'center',
20827
- ellipsis: true,
20828
- width: 250,
20829
- render: renderTextEllipsis
20830
20556
  }, {
20831
20557
  dataIndex: 'skuCode',
20832
20558
  title: "sku\u7F16\u7801",
@@ -20928,34 +20654,6 @@ var getColumns$3 = function getColumns(_ref) {
20928
20654
  ellipsis: true,
20929
20655
  width: 70,
20930
20656
  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
20657
  }, {
20960
20658
  dataIndex: 'type',
20961
20659
  title: "\u8D60\u54C1\u7C7B\u578B",
@@ -20984,283 +20682,6 @@ var getColumns$3 = function getColumns(_ref) {
20984
20682
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20985
20683
  },
20986
20684
  width: 100
20987
- }, {
20988
- dataIndex: 'hasRefund',
20989
- title: "\u662F\u5426\u9000\u6B3E",
20990
- align: 'center',
20991
- ellipsis: true,
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
- }
21008
- }, {
21009
- dataIndex: 'unit',
21010
- title: "\u5355\u4F4D",
21011
- align: 'center',
21012
- ellipsis: true,
21013
- width: 100,
21014
- render: renderTextEllipsis
21015
- }, {
21016
- dataIndex: 'pkgGoodsName',
21017
- title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21018
- align: 'center',
21019
- ellipsis: true,
21020
- width: 200,
21021
- render: renderTextEllipsis
21022
- }, {
21023
- dataIndex: 'pkgGoodsCode',
21024
- title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21025
- align: 'center',
21026
- ellipsis: true,
21027
- width: 200,
21028
- render: renderTextEllipsis
21029
- }, {
21030
- dataIndex: 'pkgGoodsId',
21031
- title: "\u539F\u7EC4\u5408\u5546\u54C1id",
21032
- align: 'center',
21033
- ellipsis: true,
21034
- width: 200,
21035
- render: renderTextEllipsis
21036
- }],
21037
- WLN_REISSUE_GOODS: [{
21038
- dataIndex: 'wlnItemName',
21039
- title: "\u5546\u54C1\u540D\u79F0",
21040
- align: 'center',
21041
- ellipsis: true,
21042
- width: 250,
21043
- render: renderTextEllipsis
21044
- }, {
21045
- dataIndex: 'goodsCode',
21046
- title: "\u5546\u54C1\u7F16\u7801",
21047
- align: 'center',
21048
- ellipsis: true,
21049
- width: 250,
21050
- render: renderTextEllipsis
21051
- }, {
21052
- dataIndex: 'wlnSkuName',
21053
- title: "sku\u540D\u79F0",
21054
- align: 'center',
21055
- ellipsis: true,
21056
- width: 250,
21057
- render: renderTextEllipsis
21058
- }, {
21059
- dataIndex: 'skuCode',
21060
- title: "sku\u7F16\u7801",
21061
- align: 'center',
21062
- ellipsis: true,
21063
- width: 250,
21064
- render: renderTextEllipsis
21065
- }, {
21066
- dataIndex: 'skuName',
21067
- title: "\u7EBF\u4E0Asku\u540D\u79F0",
21068
- align: 'center',
21069
- ellipsis: true,
21070
- width: 250,
21071
- render: renderTextEllipsis
21072
- }, {
21073
- dataIndex: 'olnSkuCode',
21074
- title: "\u7EBF\u4E0Asku\u7F16\u7801",
21075
- align: 'center',
21076
- ellipsis: true,
21077
- width: 150,
21078
- render: renderTextEllipsis
21079
- }, {
21080
- dataIndex: 'sku',
21081
- title: "\u7EBF\u4E0Asku id",
21082
- align: 'center',
21083
- ellipsis: true,
21084
- width: 150,
21085
- render: renderTextEllipsis
21086
- }, {
21087
- dataIndex: 'name',
21088
- title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
21089
- align: 'center',
21090
- ellipsis: true,
21091
- width: 250,
21092
- render: renderTextEllipsis
21093
- }, {
21094
- dataIndex: 'pic',
21095
- title: "\u7EBF\u4E0A\u56FE\u7247",
21096
- align: 'center',
21097
- ellipsis: true,
21098
- width: 100,
21099
- render: function render(val) {
21100
- return /*#__PURE__*/React.createElement(Image, {
21101
- width: 30,
21102
- src: val
21103
- });
21104
- }
21105
- }, {
21106
- dataIndex: 'olnItemCOde',
21107
- title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
21108
- align: 'center',
21109
- ellipsis: true,
21110
- width: 150,
21111
- render: renderTextEllipsis
21112
- }, {
21113
- dataIndex: 'code',
21114
- title: "\u7EBF\u4E0A\u5546\u54C1id",
21115
- align: 'center',
21116
- ellipsis: true,
21117
- width: 150,
21118
- render: renderTextEllipsis
21119
- }, {
21120
- dataIndex: 'barCode',
21121
- title: "\u5546\u54C1\u6761\u7801",
21122
- align: 'center',
21123
- ellipsis: true,
21124
- width: 150,
21125
- render: renderTextEllipsis
21126
- }, {
21127
- dataIndex: 'money',
21128
- title: "\u5B9E\u4ED8\u91D1\u989D",
21129
- align: 'center',
21130
- ellipsis: true,
21131
- width: 100,
21132
- render: renderTextEllipsis
21133
- }, {
21134
- dataIndex: 'number',
21135
- title: "".concat(text, "\u6570\u91CF"),
21136
- align: 'center',
21137
- ellipsis: true,
21138
- width: 100,
21139
- render: function render(val, record, index) {
21140
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21141
- style: {
21142
- width: 70
21143
- },
21144
- value: val,
21145
- min: 1,
21146
- precision: 0,
21147
- onChange: function onChange(num) {
21148
- return updateHandle(num, index, 'number');
21149
- }
21150
- }) : /*#__PURE__*/React.createElement("span", null, val);
21151
- }
21152
- }, {
21153
- dataIndex: 'share',
21154
- title: "\u5E94\u6536\u6B3E",
21155
- align: 'center',
21156
- ellipsis: true,
21157
- width: 70,
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
21187
- }, {
21188
- dataIndex: 'type',
21189
- title: "\u8D60\u54C1\u7C7B\u578B",
21190
- align: 'center',
21191
- ellipsis: true,
21192
- width: 100,
21193
- render: renderTextEllipsis
21194
- }, {
21195
- dataIndex: 'isPackage',
21196
- title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
21197
- align: 'center',
21198
- ellipsis: true,
21199
- render: function render(val, record, index) {
21200
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21201
- value: val,
21202
- onChange: function onChange(value) {
21203
- updateHandle(value, index, 'isGift');
21204
- },
21205
- options: [{
21206
- label: '是',
21207
- value: true
21208
- }, {
21209
- label: '否',
21210
- value: false
21211
- }]
21212
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
21213
- },
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
21264
20685
  }]
21265
20686
  };
21266
20687
  };
@@ -24379,9 +23800,6 @@ var isErpType = {
24379
23800
  },
24380
23801
  isJky: function isJky(type) {
24381
23802
  return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
24382
- },
24383
- isWln: function isWln(type) {
24384
- return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
24385
23803
  }
24386
23804
  };
24387
23805
  var processGoods$1 = function processGoods(_ref) {
@@ -24441,13 +23859,6 @@ var processGoods$1 = function processGoods(_ref) {
24441
23859
  canUpdateNumber: canUpdateNumber,
24442
23860
  source: source
24443
23861
  });
24444
- } else if (isErpType.isWln(type)) {
24445
- newList = processWlnGoods$1({
24446
- list: list,
24447
- type: type,
24448
- canUpdateNumber: canUpdateNumber,
24449
- source: source
24450
- });
24451
23862
  } else {
24452
23863
  newList = processDefaultGoods({
24453
23864
  list: list,
@@ -24530,47 +23941,11 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
24530
23941
  });
24531
23942
  });
24532
23943
  };
24533
- var processWlnGoods$1 = function processWlnGoods(_ref4) {
23944
+ // 处理不同类型的商品数据
23945
+ var processWdtGoods$1 = function processWdtGoods(_ref4) {
24534
23946
  var list = _ref4.list,
23947
+ type = _ref4.type,
24535
23948
  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;
24574
23949
  return list.map(function (item) {
24575
23950
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
24576
23951
  uuid: uuid(),
@@ -24588,9 +23963,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref5) {
24588
23963
  return processedItem;
24589
23964
  });
24590
23965
  };
24591
- var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
24592
- var list = _ref6.list,
24593
- canUpdateNumber = _ref6.canUpdateNumber;
23966
+ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23967
+ var list = _ref5.list,
23968
+ canUpdateNumber = _ref5.canUpdateNumber;
24594
23969
  return list.map(function (item) {
24595
23970
  var specNo = item.specNo,
24596
23971
  specId = item.specId,
@@ -24625,9 +24000,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
24625
24000
  });
24626
24001
  });
24627
24002
  };
24628
- var processGyGoods$1 = function processGyGoods(_ref7) {
24629
- var list = _ref7.list,
24630
- source = _ref7.source;
24003
+ var processGyGoods$1 = function processGyGoods(_ref6) {
24004
+ var list = _ref6.list,
24005
+ source = _ref6.source;
24631
24006
  var isFormWorkOrder = source === 'workOrder';
24632
24007
  return list.map(function (item) {
24633
24008
  var goodName = item.goodName,
@@ -24654,8 +24029,8 @@ var processGyGoods$1 = function processGyGoods(_ref7) {
24654
24029
  });
24655
24030
  });
24656
24031
  };
24657
- var processJstGoods$1 = function processJstGoods(_ref8) {
24658
- var list = _ref8.list;
24032
+ var processJstGoods$1 = function processJstGoods(_ref7) {
24033
+ var list = _ref7.list;
24659
24034
  return list.map(function (item) {
24660
24035
  return {
24661
24036
  name: item.goodName,
@@ -24673,9 +24048,9 @@ var processJstGoods$1 = function processJstGoods(_ref8) {
24673
24048
  };
24674
24049
  });
24675
24050
  };
24676
- var processKmGoods$1 = function processKmGoods(_ref9) {
24677
- var list = _ref9.list,
24678
- type = _ref9.type;
24051
+ var processKmGoods$1 = function processKmGoods(_ref8) {
24052
+ var list = _ref8.list,
24053
+ type = _ref8.type;
24679
24054
  var initParamsMap = {
24680
24055
  KM_GOODS: {
24681
24056
  num: 1
@@ -24714,9 +24089,9 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
24714
24089
  }, initParamsMap[type] || {});
24715
24090
  });
24716
24091
  };
24717
- var processDefaultGoods = function processDefaultGoods(_ref10) {
24718
- var list = _ref10.list,
24719
- canUpdateNumber = _ref10.canUpdateNumber;
24092
+ var processDefaultGoods = function processDefaultGoods(_ref9) {
24093
+ var list = _ref9.list,
24094
+ canUpdateNumber = _ref9.canUpdateNumber;
24720
24095
  return list.map(function (item) {
24721
24096
  var goodsId = item.goodsId,
24722
24097
  name = item.name,
@@ -24765,7 +24140,6 @@ var GoodsModalMap = {
24765
24140
  JY_REISSUE_GOODS: JyGoodsModal$1,
24766
24141
  JKY_GOODS: JkyGoodsModal$1,
24767
24142
  JKY_REISSUE_GOODS: JkyGoodsModal$1,
24768
- WLN_REISSUE_GOODS: WlnGoodsModal$1,
24769
24143
  OTHER_GOODS: GoodsModal$2
24770
24144
  };
24771
24145
  var systemOrderNoMap = {
@@ -24780,7 +24154,6 @@ var systemOrderNoMap = {
24780
24154
  JY_REISSUE_GOODS: 'tradeNo',
24781
24155
  JKY_GOODS: 'tradeNo',
24782
24156
  JKY_REISSUE_GOODS: 'tradeNo',
24783
- WLN_REISSUE_GOODS: 'tradeNo',
24784
24157
  KM_REISSUE_GOODS: 'sid',
24785
24158
  KM_RETURN_GOODS: 'sid',
24786
24159
  KM_EXCHANGE_GOODS: 'sid',
@@ -25038,9 +24411,6 @@ var getButtonText = function getButtonText() {
25038
24411
  if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
25039
24412
  return '选择吉客云ERP商品';
25040
24413
  }
25041
- if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
25042
- return '选择万里牛ERP商品';
25043
- }
25044
24414
  return '选择商品';
25045
24415
  };
25046
24416
  var GoodItem$1 = function GoodItem(props) {
@@ -25100,8 +24470,8 @@ var GoodItem$1 = function GoodItem(props) {
25100
24470
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
25101
24471
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
25102
24472
  // 判断是否为是否展示系统单筛选项
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;
24473
+ 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;
24474
+ 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;
25105
24475
  var refModal = useRef();
25106
24476
  console.debug('表格数据', value);
25107
24477
  var handleDelete = function handleDelete(record, index) {
@@ -25196,7 +24566,6 @@ var GoodItem$1 = function GoodItem(props) {
25196
24566
  case 'JY_REISSUE_GOODS':
25197
24567
  case 'JKY_GOODS':
25198
24568
  case 'JKY_REISSUE_GOODS':
25199
- case 'WLN_REISSUE_GOODS':
25200
24569
  case 'SKX_GOODS':
25201
24570
  case 'SKX_RETURN_GOODS':
25202
24571
  {
@@ -28292,32 +27661,6 @@ var componentMap$2 = {
28292
27661
  },
28293
27662
  getOrderList: jkyUtils.getJkyOrderListSingleton
28294
27663
  },
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
- },
28321
27664
  WDT_AFTERSALE_GOODS: {
28322
27665
  type: 'wdtAftersale',
28323
27666
  key: 'wdtAftersaleGoods',
@@ -29502,22 +28845,6 @@ var typeMap$2 = {
29502
28845
  goodDetailsKey: 'goodsDetail',
29503
28846
  isShowSelectTradeGoods: true,
29504
28847
  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
29521
28848
  }
29522
28849
  };
29523
28850
  var PublicReissue = function PublicReissue(props) {
@@ -29750,10 +29077,6 @@ var PublicReissue = function PublicReissue(props) {
29750
29077
  orderRest = {
29751
29078
  canEdit: true
29752
29079
  };
29753
- } else if (['WLN_REISSUE_GOODS'].includes(type)) {
29754
- orderRest = {
29755
- canEdit: true
29756
- };
29757
29080
  }
29758
29081
  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] : [];
29759
29082
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
@@ -30272,7 +29595,7 @@ var GoodsModal$5 = function GoodsModal(props) {
30272
29595
  key: item.value
30273
29596
  }, item.label);
30274
29597
  })), /*#__PURE__*/React.createElement(Search$1, {
30275
- placeholder: "\u5B9D\u8D1D\u6807\u9898",
29598
+ placeholder: "\u5B9D\u8D1D\u94FE\u63A5\uFF0C\u6807\u9898",
30276
29599
  allowClear: true,
30277
29600
  enterButton: "\u641C\u7D22",
30278
29601
  style: {
@@ -26,8 +26,7 @@ interface LogisticsInterceptionProps {
26
26
  required: boolean;
27
27
  disabled: boolean;
28
28
  isEditing: boolean;
29
- onChange: (value: Partial<LogisticsInterceptionValueType>, type?: string) => void;
30
- onBlur: (value: string, type: string) => void;
29
+ onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
31
30
  platform: string;
32
31
  showReason?: boolean;
33
32
  onJumpPage?: (val: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.7.3-beta.3",
3
+ "version": "2.7.4",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.7.3-beta.3",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.7.4",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "17c3e4f893ab465e7dd65db2541ce63d9d9f984d"
69
+ "gitHead": "950e70d696e58b3340e24e8c4a44b53029036922"
70
70
  }
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import '../Columns/columns.less';
3
- export declare namespace WlnGoods {
4
- interface GoodsInfo {
5
- companyKey: string;
6
- id: number;
7
- platform: 'WLN_ERP';
8
- goodNo: string;
9
- goodName: string;
10
- imageUrl: string;
11
- goodShortName: string;
12
- categoryName: string;
13
- productType: string;
14
- brandName: string;
15
- specName: string;
16
- specNo: string;
17
- specBarcode: string;
18
- specImgUrl: string;
19
- colorName: string;
20
- sizeName: string;
21
- marketPrice: string;
22
- retailPrice: string;
23
- costPrice: string;
24
- isGift: boolean;
25
- skuType: string;
26
- }
27
- interface SelectDrawerRefObject {
28
- getSelectGoodList: () => WlnGoods.GoodsInfo[];
29
- }
30
- }
31
- declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<WlnGoods.SelectDrawerRefObject>>;
32
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { WlnGoods } from './GoodsList';
3
- import type { ErpGoodModelProps } from '../type';
4
- declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<WlnGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
5
- export default _default;