@kmkf-fe-packages/basic-components 2.2.13-beta.10 → 2.2.13-beta.13

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
@@ -14890,17 +14890,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
14890
14890
  return val ? '是' : '否';
14891
14891
  };
14892
14892
  var jyColumns = [{
14893
- dataIndex: 'productName',
14893
+ dataIndex: 'goodName',
14894
14894
  title: '商品名称',
14895
14895
  width: 250,
14896
14896
  ellipsis: true
14897
14897
  }, {
14898
- dataIndex: 'productCode',
14898
+ dataIndex: 'goodNo',
14899
14899
  title: '商品编码',
14900
14900
  width: 150,
14901
14901
  ellipsis: true
14902
14902
  }, {
14903
- dataIndex: 'productId',
14903
+ dataIndex: 'goodId',
14904
14904
  title: '商品ID',
14905
14905
  width: 150,
14906
14906
  ellipsis: true
@@ -14909,22 +14909,22 @@ var jyColumns = [{
14909
14909
  title: '商品图片',
14910
14910
  width: 100,
14911
14911
  render: function render(picUrl) {
14912
- return /*#__PURE__*/React.createElement("img", {
14912
+ return picUrl ? /*#__PURE__*/React.createElement("img", {
14913
14913
  style: {
14914
14914
  width: '40px',
14915
14915
  height: '40px',
14916
14916
  objectFit: 'contain'
14917
14917
  },
14918
14918
  src: picUrl
14919
- });
14919
+ }) : null;
14920
14920
  }
14921
14921
  }, {
14922
- dataIndex: 'productShortName',
14922
+ dataIndex: 'goodShortName',
14923
14923
  title: "\u5546\u54C1\u7B80\u79F0",
14924
14924
  ellipsis: true,
14925
14925
  width: 150
14926
14926
  }, {
14927
- dataIndex: 'productGroupName',
14927
+ dataIndex: 'categoryName',
14928
14928
  title: "\u5546\u54C1\u7EC4",
14929
14929
  ellipsis: true,
14930
14930
  width: 150
@@ -14934,56 +14934,56 @@ var jyColumns = [{
14934
14934
  width: 200,
14935
14935
  ellipsis: true
14936
14936
  }, {
14937
- dataIndex: 'skuName',
14937
+ dataIndex: 'specName',
14938
14938
  title: '规格名称',
14939
14939
  width: 250,
14940
14940
  ellipsis: true
14941
14941
  }, {
14942
- dataIndex: 'skuCode',
14942
+ dataIndex: 'specNo',
14943
14943
  title: '规格编码',
14944
14944
  width: 150,
14945
14945
  ellipsis: true
14946
14946
  }, {
14947
- dataIndex: 'skuId',
14947
+ dataIndex: 'specId',
14948
14948
  title: '规格ID',
14949
14949
  width: 250,
14950
14950
  ellipsis: true
14951
14951
  }, {
14952
- dataIndex: 'barcode',
14952
+ dataIndex: 'specBarcode',
14953
14953
  title: '规格条码',
14954
14954
  width: 150,
14955
14955
  ellipsis: true
14956
14956
  }, {
14957
- dataIndex: 'skuImage',
14957
+ dataIndex: 'specImgUrl',
14958
14958
  title: '规格图片',
14959
14959
  width: 100,
14960
14960
  render: function render(picUrl) {
14961
- return /*#__PURE__*/React.createElement("img", {
14961
+ return picUrl ? /*#__PURE__*/React.createElement("img", {
14962
14962
  style: {
14963
14963
  width: '40px',
14964
14964
  height: '40px',
14965
14965
  objectFit: 'contain'
14966
14966
  },
14967
14967
  src: picUrl
14968
- });
14968
+ }) : null;
14969
14969
  }
14970
14970
  }, {
14971
- dataIndex: 'color',
14971
+ dataIndex: 'colorName',
14972
14972
  title: "\u989C\u8272",
14973
14973
  ellipsis: true,
14974
14974
  width: 100
14975
14975
  }, {
14976
- dataIndex: 'size',
14976
+ dataIndex: 'sizeName',
14977
14977
  title: "\u5C3A\u7801",
14978
14978
  ellipsis: true,
14979
14979
  width: 100
14980
14980
  }, {
14981
- dataIndex: 'markedPrice',
14981
+ dataIndex: 'marketPrice',
14982
14982
  title: "\u5E02\u573A\u4EF7",
14983
14983
  ellipsis: true,
14984
14984
  width: 100
14985
14985
  }, {
14986
- dataIndex: 'sellingPrice',
14986
+ dataIndex: 'retailPrice',
14987
14987
  title: "\u96F6\u552E\u4EF7",
14988
14988
  ellipsis: true,
14989
14989
  width: 100
@@ -14993,7 +14993,7 @@ var jyColumns = [{
14993
14993
  ellipsis: true,
14994
14994
  width: 100
14995
14995
  }, {
14996
- dataIndex: 'gift',
14996
+ dataIndex: 'isGift',
14997
14997
  title: "\u662F\u5426\u8D60\u54C1",
14998
14998
  ellipsis: true,
14999
14999
  width: 150,
@@ -15001,12 +15001,12 @@ var jyColumns = [{
15001
15001
  return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15002
15002
  }
15003
15003
  }, {
15004
- dataIndex: 'combination',
15004
+ dataIndex: 'skuType',
15005
15005
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
15006
15006
  ellipsis: true,
15007
15007
  width: 150,
15008
15008
  render: function render(val) {
15009
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15009
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
15010
15010
  }
15011
15011
  }];
15012
15012
 
@@ -17821,16 +17821,16 @@ var getTableData$5 = function getTableData(_ref, formData) {
17821
17821
  };
17822
17822
  var searchFormData$4 = [{
17823
17823
  label: '规格名称',
17824
- name: 'skuName'
17824
+ name: 'specName'
17825
17825
  }, {
17826
17826
  label: '规格编码',
17827
- name: 'skuCode'
17827
+ name: 'specNo'
17828
17828
  }, {
17829
17829
  label: '商品名称',
17830
- name: 'productName'
17830
+ name: 'goodName'
17831
17831
  }, {
17832
17832
  label: '商品编码',
17833
- name: 'productCode'
17833
+ name: 'goodNo'
17834
17834
  }];
17835
17835
  var GoodList$5 = function GoodList(props, ref) {
17836
17836
  var _useState = useState([]),
@@ -20270,10 +20270,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20270
20270
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20271
20271
  return false;
20272
20272
  };
20273
- var getYesOrNo$4 = function getYesOrNo(val) {
20274
- if (isNull(val)) return null;
20275
- return val ? '是' : '否';
20276
- };
20277
20273
  var getColumns$7 = function getColumns(_ref) {
20278
20274
  var _ref$text = _ref.text,
20279
20275
  disabled = _ref.disabled,
@@ -20281,19 +20277,23 @@ var getColumns$7 = function getColumns(_ref) {
20281
20277
  updateDataHandle = _ref.updateDataHandle;
20282
20278
  return {
20283
20279
  //巨益商品信息
20284
- JY_GOODS: [{
20285
- dataIndex: 'goodsName',
20286
- title: "\u8D27\u54C1\u540D\u79F0",
20287
- width: 250
20288
- }, {
20289
- dataIndex: 'goodsCode',
20290
- title: "\u8D27\u54C1\u7F16\u53F7",
20291
- width: 200
20292
- }, {
20293
- dataIndex: 'goodsId',
20294
- title: "\u8D27\u54C1ID",
20295
- width: 150
20296
- }, {
20280
+ JY_GOODS: [
20281
+ // {
20282
+ // dataIndex: 'goodsName',
20283
+ // title: `货品名称`,
20284
+ // width: 250,
20285
+ // },
20286
+ // {
20287
+ // dataIndex: 'goodsCode',
20288
+ // title: `货品编号`,
20289
+ // width: 200,
20290
+ // },
20291
+ // {
20292
+ // dataIndex: 'goodsId',
20293
+ // title: `货品ID`,
20294
+ // width: 150,
20295
+ // },
20296
+ {
20297
20297
  dataIndex: 'goodsClass',
20298
20298
  title: "\u8D27\u54C1\u7C7B\u522B",
20299
20299
  width: 150
@@ -20301,19 +20301,22 @@ var getColumns$7 = function getColumns(_ref) {
20301
20301
  dataIndex: 'code',
20302
20302
  title: "\u6761\u7801",
20303
20303
  width: 150
20304
- }, {
20305
- dataIndex: 'specName',
20306
- title: "\u89C4\u683C\u540D\u79F0",
20307
- align: 'center',
20308
- ellipsis: true,
20309
- width: 200
20310
- }, {
20311
- dataIndex: 'specCode',
20312
- title: "\u89C4\u683C\u7F16\u53F7",
20313
- align: 'center',
20314
- ellipsis: true,
20315
- width: 150
20316
- }, {
20304
+ },
20305
+ // {
20306
+ // dataIndex: 'specName',
20307
+ // title: `规格名称`,
20308
+ // align: 'center',
20309
+ // ellipsis: true,
20310
+ // width: 200,
20311
+ // },
20312
+ // {
20313
+ // dataIndex: 'specCode',
20314
+ // title: `规格编号`,
20315
+ // align: 'center',
20316
+ // ellipsis: true,
20317
+ // width: 150,
20318
+ // },
20319
+ {
20317
20320
  dataIndex: 'specId',
20318
20321
  title: "\u89C4\u683CID",
20319
20322
  align: 'center',
@@ -20393,9 +20396,8 @@ var getColumns$7 = function getColumns(_ref) {
20393
20396
  precision: 0,
20394
20397
  onChange: function onChange(num) {
20395
20398
  updateDataHandle({
20396
- qty: num,
20397
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20398
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20399
+ sellCount: num,
20400
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20399
20401
  }, index);
20400
20402
  }
20401
20403
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20414,8 +20416,8 @@ var getColumns$7 = function getColumns(_ref) {
20414
20416
  precision: 2,
20415
20417
  onChange: function onChange(num) {
20416
20418
  updateDataHandle({
20417
- price: num,
20418
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20419
+ sellPrice: num,
20420
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20419
20421
  }, index);
20420
20422
  }
20421
20423
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20448,12 +20450,12 @@ var getColumns$7 = function getColumns(_ref) {
20448
20450
  },
20449
20451
  options: [{
20450
20452
  label: '是',
20451
- value: 1
20453
+ value: 'True'
20452
20454
  }, {
20453
20455
  label: '否',
20454
- value: 0
20456
+ value: 'False'
20455
20457
  }]
20456
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20458
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
20457
20459
  }
20458
20460
  }, {
20459
20461
  dataIndex: 'combinationName',
@@ -20475,12 +20477,12 @@ var getColumns$7 = function getColumns(_ref) {
20475
20477
  },
20476
20478
  options: [{
20477
20479
  label: '是',
20478
- value: 1
20480
+ value: '1'
20479
20481
  }, {
20480
20482
  label: '否',
20481
- value: 0
20483
+ value: '0'
20482
20484
  }]
20483
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20485
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
20484
20486
  }
20485
20487
  }].map(function (item) {
20486
20488
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20489,19 +20491,23 @@ var getColumns$7 = function getColumns(_ref) {
20489
20491
  });
20490
20492
  }),
20491
20493
  // 巨益补发商品信息
20492
- JY_REISSUE_GOODS: [{
20493
- dataIndex: 'goodsName',
20494
- title: "\u8D27\u54C1\u540D\u79F0",
20495
- width: 150
20496
- }, {
20497
- dataIndex: 'goodsCode',
20498
- title: "\u8D27\u54C1\u7F16\u53F7",
20499
- width: 200
20500
- }, {
20501
- dataIndex: 'goodsId',
20502
- title: "\u8D27\u54C1ID",
20503
- width: 150
20504
- }, {
20494
+ JY_REISSUE_GOODS: [
20495
+ // {
20496
+ // dataIndex: 'goodsName',
20497
+ // title: `货品名称`,
20498
+ // width: 150,
20499
+ // },
20500
+ // {
20501
+ // dataIndex: 'goodsCode',
20502
+ // title: `货品编号`,
20503
+ // width: 200,
20504
+ // },
20505
+ // {
20506
+ // dataIndex: 'goodsId',
20507
+ // title: `货品ID`,
20508
+ // width: 150,
20509
+ // },
20510
+ {
20505
20511
  dataIndex: 'goodsClass',
20506
20512
  title: "\u8D27\u54C1\u7C7B\u522B",
20507
20513
  width: 150
@@ -20509,19 +20515,22 @@ var getColumns$7 = function getColumns(_ref) {
20509
20515
  dataIndex: 'code',
20510
20516
  title: "\u6761\u7801",
20511
20517
  width: 150
20512
- }, {
20513
- dataIndex: 'specName',
20514
- title: "\u89C4\u683C\u540D\u79F0",
20515
- align: 'center',
20516
- ellipsis: true,
20517
- width: 200
20518
- }, {
20519
- dataIndex: 'specCode',
20520
- title: "\u89C4\u683C\u7F16\u53F7",
20521
- align: 'center',
20522
- ellipsis: true,
20523
- width: 150
20524
- }, {
20518
+ },
20519
+ // {
20520
+ // dataIndex: 'specName',
20521
+ // title: `规格名称`,
20522
+ // align: 'center',
20523
+ // ellipsis: true,
20524
+ // width: 200,
20525
+ // },
20526
+ // {
20527
+ // dataIndex: 'specCode',
20528
+ // title: `规格编号`,
20529
+ // align: 'center',
20530
+ // ellipsis: true,
20531
+ // width: 150,
20532
+ // },
20533
+ {
20525
20534
  dataIndex: 'specId',
20526
20535
  title: "\u89C4\u683CID",
20527
20536
  align: 'center',
@@ -20601,9 +20610,8 @@ var getColumns$7 = function getColumns(_ref) {
20601
20610
  precision: 0,
20602
20611
  onChange: function onChange(num) {
20603
20612
  updateDataHandle({
20604
- qty: num,
20605
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20606
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20613
+ sellCount: num,
20614
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20607
20615
  }, index);
20608
20616
  }
20609
20617
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20622,8 +20630,8 @@ var getColumns$7 = function getColumns(_ref) {
20622
20630
  precision: 2,
20623
20631
  onChange: function onChange(num) {
20624
20632
  updateDataHandle({
20625
- price: num,
20626
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20633
+ sellPrice: num,
20634
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20627
20635
  }, index);
20628
20636
  }
20629
20637
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20648,12 +20656,12 @@ var getColumns$7 = function getColumns(_ref) {
20648
20656
  },
20649
20657
  options: [{
20650
20658
  label: '是',
20651
- value: 1
20659
+ value: 'True'
20652
20660
  }, {
20653
20661
  label: '否',
20654
- value: 0
20662
+ value: 'False'
20655
20663
  }]
20656
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20664
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
20657
20665
  }
20658
20666
  }, {
20659
20667
  dataIndex: 'combinationName',
@@ -20675,12 +20683,12 @@ var getColumns$7 = function getColumns(_ref) {
20675
20683
  },
20676
20684
  options: [{
20677
20685
  label: '是',
20678
- value: 1
20686
+ value: '1'
20679
20687
  }, {
20680
20688
  label: '否',
20681
- value: 0
20689
+ value: '0'
20682
20690
  }]
20683
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20691
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
20684
20692
  }
20685
20693
  }].map(function (item) {
20686
20694
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20878,7 +20886,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20878
20886
  })), getColumns$7({
20879
20887
  text: text,
20880
20888
  disabled: disabled,
20881
- updateHandle: updateHandle
20889
+ updateHandle: updateHandle,
20890
+ updateDataHandle: updateDataHandle
20882
20891
  })), getColumns$8({
20883
20892
  text: text,
20884
20893
  disabled: disabled,
@@ -21097,12 +21106,35 @@ var processJyGoods = function processJyGoods(_ref2) {
21097
21106
  var list = _ref2.list,
21098
21107
  canUpdateNumber = _ref2.canUpdateNumber;
21099
21108
  return list.map(function (item) {
21109
+ var goodName = item.goodName,
21110
+ goodNo = item.goodNo,
21111
+ goodId = item.goodId,
21112
+ specName = item.specName,
21113
+ specNo = item.specNo,
21114
+ specBarcode = item.specBarcode,
21115
+ retailPrice = item.retailPrice,
21116
+ isGift = item.isGift,
21117
+ skuType = item.skuType;
21100
21118
  return _objectSpread2(_objectSpread2({}, item), {}, {
21119
+ goodsName: goodName,
21120
+ goodsCode: goodNo,
21121
+ goodsId: goodId,
21122
+ code: specBarcode,
21123
+ specCode: specNo,
21124
+ productName: goodName,
21125
+ productCode: goodNo,
21126
+ productId: goodId,
21127
+ skuName: specName,
21128
+ skuCode: specNo,
21129
+ combinationName: goodName,
21130
+ combinationCode: goodNo,
21131
+ gift: isGift ? '1' : '0',
21132
+ bfit: skuType === 'combine' ? 'True' : 'False',
21101
21133
  uuid: uuid(),
21102
21134
  canDelete: true,
21103
21135
  sellCount: 1,
21104
- sellPrice: 0,
21105
- sellTotal: 0,
21136
+ sellPrice: retailPrice,
21137
+ sellTotal: retailPrice * 1,
21106
21138
  canEdit: true,
21107
21139
  canUpdateNumber: canUpdateNumber
21108
21140
  });
@@ -25312,6 +25344,10 @@ var PublicReissue = function PublicReissue(props) {
25312
25344
  orderBackGoodsLevel: props.orderBackGoodsLevel,
25313
25345
  canEdit: true
25314
25346
  };
25347
+ } else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
25348
+ orderRest = {
25349
+ canEdit: true
25350
+ };
25315
25351
  }
25316
25352
  var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
25317
25353
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
package/dist/index.js CHANGED
@@ -14905,17 +14905,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
14905
14905
  return val ? '是' : '否';
14906
14906
  };
14907
14907
  var jyColumns = [{
14908
- dataIndex: 'productName',
14908
+ dataIndex: 'goodName',
14909
14909
  title: '商品名称',
14910
14910
  width: 250,
14911
14911
  ellipsis: true
14912
14912
  }, {
14913
- dataIndex: 'productCode',
14913
+ dataIndex: 'goodNo',
14914
14914
  title: '商品编码',
14915
14915
  width: 150,
14916
14916
  ellipsis: true
14917
14917
  }, {
14918
- dataIndex: 'productId',
14918
+ dataIndex: 'goodId',
14919
14919
  title: '商品ID',
14920
14920
  width: 150,
14921
14921
  ellipsis: true
@@ -14924,22 +14924,22 @@ var jyColumns = [{
14924
14924
  title: '商品图片',
14925
14925
  width: 100,
14926
14926
  render: function render(picUrl) {
14927
- return /*#__PURE__*/React__default['default'].createElement("img", {
14927
+ return picUrl ? /*#__PURE__*/React__default['default'].createElement("img", {
14928
14928
  style: {
14929
14929
  width: '40px',
14930
14930
  height: '40px',
14931
14931
  objectFit: 'contain'
14932
14932
  },
14933
14933
  src: picUrl
14934
- });
14934
+ }) : null;
14935
14935
  }
14936
14936
  }, {
14937
- dataIndex: 'productShortName',
14937
+ dataIndex: 'goodShortName',
14938
14938
  title: "\u5546\u54C1\u7B80\u79F0",
14939
14939
  ellipsis: true,
14940
14940
  width: 150
14941
14941
  }, {
14942
- dataIndex: 'productGroupName',
14942
+ dataIndex: 'categoryName',
14943
14943
  title: "\u5546\u54C1\u7EC4",
14944
14944
  ellipsis: true,
14945
14945
  width: 150
@@ -14949,56 +14949,56 @@ var jyColumns = [{
14949
14949
  width: 200,
14950
14950
  ellipsis: true
14951
14951
  }, {
14952
- dataIndex: 'skuName',
14952
+ dataIndex: 'specName',
14953
14953
  title: '规格名称',
14954
14954
  width: 250,
14955
14955
  ellipsis: true
14956
14956
  }, {
14957
- dataIndex: 'skuCode',
14957
+ dataIndex: 'specNo',
14958
14958
  title: '规格编码',
14959
14959
  width: 150,
14960
14960
  ellipsis: true
14961
14961
  }, {
14962
- dataIndex: 'skuId',
14962
+ dataIndex: 'specId',
14963
14963
  title: '规格ID',
14964
14964
  width: 250,
14965
14965
  ellipsis: true
14966
14966
  }, {
14967
- dataIndex: 'barcode',
14967
+ dataIndex: 'specBarcode',
14968
14968
  title: '规格条码',
14969
14969
  width: 150,
14970
14970
  ellipsis: true
14971
14971
  }, {
14972
- dataIndex: 'skuImage',
14972
+ dataIndex: 'specImgUrl',
14973
14973
  title: '规格图片',
14974
14974
  width: 100,
14975
14975
  render: function render(picUrl) {
14976
- return /*#__PURE__*/React__default['default'].createElement("img", {
14976
+ return picUrl ? /*#__PURE__*/React__default['default'].createElement("img", {
14977
14977
  style: {
14978
14978
  width: '40px',
14979
14979
  height: '40px',
14980
14980
  objectFit: 'contain'
14981
14981
  },
14982
14982
  src: picUrl
14983
- });
14983
+ }) : null;
14984
14984
  }
14985
14985
  }, {
14986
- dataIndex: 'color',
14986
+ dataIndex: 'colorName',
14987
14987
  title: "\u989C\u8272",
14988
14988
  ellipsis: true,
14989
14989
  width: 100
14990
14990
  }, {
14991
- dataIndex: 'size',
14991
+ dataIndex: 'sizeName',
14992
14992
  title: "\u5C3A\u7801",
14993
14993
  ellipsis: true,
14994
14994
  width: 100
14995
14995
  }, {
14996
- dataIndex: 'markedPrice',
14996
+ dataIndex: 'marketPrice',
14997
14997
  title: "\u5E02\u573A\u4EF7",
14998
14998
  ellipsis: true,
14999
14999
  width: 100
15000
15000
  }, {
15001
- dataIndex: 'sellingPrice',
15001
+ dataIndex: 'retailPrice',
15002
15002
  title: "\u96F6\u552E\u4EF7",
15003
15003
  ellipsis: true,
15004
15004
  width: 100
@@ -15008,7 +15008,7 @@ var jyColumns = [{
15008
15008
  ellipsis: true,
15009
15009
  width: 100
15010
15010
  }, {
15011
- dataIndex: 'gift',
15011
+ dataIndex: 'isGift',
15012
15012
  title: "\u662F\u5426\u8D60\u54C1",
15013
15013
  ellipsis: true,
15014
15014
  width: 150,
@@ -15016,12 +15016,12 @@ var jyColumns = [{
15016
15016
  return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
15017
15017
  }
15018
15018
  }, {
15019
- dataIndex: 'combination',
15019
+ dataIndex: 'skuType',
15020
15020
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
15021
15021
  ellipsis: true,
15022
15022
  width: 150,
15023
15023
  render: function render(val) {
15024
- return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
15024
+ return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val === 'combine'));
15025
15025
  }
15026
15026
  }];
15027
15027
 
@@ -17836,16 +17836,16 @@ var getTableData$5 = function getTableData(_ref, formData) {
17836
17836
  };
17837
17837
  var searchFormData$4 = [{
17838
17838
  label: '规格名称',
17839
- name: 'skuName'
17839
+ name: 'specName'
17840
17840
  }, {
17841
17841
  label: '规格编码',
17842
- name: 'skuCode'
17842
+ name: 'specNo'
17843
17843
  }, {
17844
17844
  label: '商品名称',
17845
- name: 'productName'
17845
+ name: 'goodName'
17846
17846
  }, {
17847
17847
  label: '商品编码',
17848
- name: 'productCode'
17848
+ name: 'goodNo'
17849
17849
  }];
17850
17850
  var GoodList$5 = function GoodList(props, ref) {
17851
17851
  var _useState = React.useState([]),
@@ -20285,10 +20285,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20285
20285
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20286
20286
  return false;
20287
20287
  };
20288
- var getYesOrNo$4 = function getYesOrNo(val) {
20289
- if (kmkfUtils.isNull(val)) return null;
20290
- return val ? '是' : '否';
20291
- };
20292
20288
  var getColumns$7 = function getColumns(_ref) {
20293
20289
  var _ref$text = _ref.text,
20294
20290
  disabled = _ref.disabled,
@@ -20296,19 +20292,23 @@ var getColumns$7 = function getColumns(_ref) {
20296
20292
  updateDataHandle = _ref.updateDataHandle;
20297
20293
  return {
20298
20294
  //巨益商品信息
20299
- JY_GOODS: [{
20300
- dataIndex: 'goodsName',
20301
- title: "\u8D27\u54C1\u540D\u79F0",
20302
- width: 250
20303
- }, {
20304
- dataIndex: 'goodsCode',
20305
- title: "\u8D27\u54C1\u7F16\u53F7",
20306
- width: 200
20307
- }, {
20308
- dataIndex: 'goodsId',
20309
- title: "\u8D27\u54C1ID",
20310
- width: 150
20311
- }, {
20295
+ JY_GOODS: [
20296
+ // {
20297
+ // dataIndex: 'goodsName',
20298
+ // title: `货品名称`,
20299
+ // width: 250,
20300
+ // },
20301
+ // {
20302
+ // dataIndex: 'goodsCode',
20303
+ // title: `货品编号`,
20304
+ // width: 200,
20305
+ // },
20306
+ // {
20307
+ // dataIndex: 'goodsId',
20308
+ // title: `货品ID`,
20309
+ // width: 150,
20310
+ // },
20311
+ {
20312
20312
  dataIndex: 'goodsClass',
20313
20313
  title: "\u8D27\u54C1\u7C7B\u522B",
20314
20314
  width: 150
@@ -20316,19 +20316,22 @@ var getColumns$7 = function getColumns(_ref) {
20316
20316
  dataIndex: 'code',
20317
20317
  title: "\u6761\u7801",
20318
20318
  width: 150
20319
- }, {
20320
- dataIndex: 'specName',
20321
- title: "\u89C4\u683C\u540D\u79F0",
20322
- align: 'center',
20323
- ellipsis: true,
20324
- width: 200
20325
- }, {
20326
- dataIndex: 'specCode',
20327
- title: "\u89C4\u683C\u7F16\u53F7",
20328
- align: 'center',
20329
- ellipsis: true,
20330
- width: 150
20331
- }, {
20319
+ },
20320
+ // {
20321
+ // dataIndex: 'specName',
20322
+ // title: `规格名称`,
20323
+ // align: 'center',
20324
+ // ellipsis: true,
20325
+ // width: 200,
20326
+ // },
20327
+ // {
20328
+ // dataIndex: 'specCode',
20329
+ // title: `规格编号`,
20330
+ // align: 'center',
20331
+ // ellipsis: true,
20332
+ // width: 150,
20333
+ // },
20334
+ {
20332
20335
  dataIndex: 'specId',
20333
20336
  title: "\u89C4\u683CID",
20334
20337
  align: 'center',
@@ -20408,9 +20411,8 @@ var getColumns$7 = function getColumns(_ref) {
20408
20411
  precision: 0,
20409
20412
  onChange: function onChange(num) {
20410
20413
  updateDataHandle({
20411
- qty: num,
20412
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20413
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20414
+ sellCount: num,
20415
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20414
20416
  }, index);
20415
20417
  }
20416
20418
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20429,8 +20431,8 @@ var getColumns$7 = function getColumns(_ref) {
20429
20431
  precision: 2,
20430
20432
  onChange: function onChange(num) {
20431
20433
  updateDataHandle({
20432
- price: num,
20433
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20434
+ sellPrice: num,
20435
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20434
20436
  }, index);
20435
20437
  }
20436
20438
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20463,12 +20465,12 @@ var getColumns$7 = function getColumns(_ref) {
20463
20465
  },
20464
20466
  options: [{
20465
20467
  label: '是',
20466
- value: 1
20468
+ value: 'True'
20467
20469
  }, {
20468
20470
  label: '否',
20469
- value: 0
20471
+ value: 'False'
20470
20472
  }]
20471
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20473
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
20472
20474
  }
20473
20475
  }, {
20474
20476
  dataIndex: 'combinationName',
@@ -20490,12 +20492,12 @@ var getColumns$7 = function getColumns(_ref) {
20490
20492
  },
20491
20493
  options: [{
20492
20494
  label: '是',
20493
- value: 1
20495
+ value: '1'
20494
20496
  }, {
20495
20497
  label: '否',
20496
- value: 0
20498
+ value: '0'
20497
20499
  }]
20498
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20500
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
20499
20501
  }
20500
20502
  }].map(function (item) {
20501
20503
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20504,19 +20506,23 @@ var getColumns$7 = function getColumns(_ref) {
20504
20506
  });
20505
20507
  }),
20506
20508
  // 巨益补发商品信息
20507
- JY_REISSUE_GOODS: [{
20508
- dataIndex: 'goodsName',
20509
- title: "\u8D27\u54C1\u540D\u79F0",
20510
- width: 150
20511
- }, {
20512
- dataIndex: 'goodsCode',
20513
- title: "\u8D27\u54C1\u7F16\u53F7",
20514
- width: 200
20515
- }, {
20516
- dataIndex: 'goodsId',
20517
- title: "\u8D27\u54C1ID",
20518
- width: 150
20519
- }, {
20509
+ JY_REISSUE_GOODS: [
20510
+ // {
20511
+ // dataIndex: 'goodsName',
20512
+ // title: `货品名称`,
20513
+ // width: 150,
20514
+ // },
20515
+ // {
20516
+ // dataIndex: 'goodsCode',
20517
+ // title: `货品编号`,
20518
+ // width: 200,
20519
+ // },
20520
+ // {
20521
+ // dataIndex: 'goodsId',
20522
+ // title: `货品ID`,
20523
+ // width: 150,
20524
+ // },
20525
+ {
20520
20526
  dataIndex: 'goodsClass',
20521
20527
  title: "\u8D27\u54C1\u7C7B\u522B",
20522
20528
  width: 150
@@ -20524,19 +20530,22 @@ var getColumns$7 = function getColumns(_ref) {
20524
20530
  dataIndex: 'code',
20525
20531
  title: "\u6761\u7801",
20526
20532
  width: 150
20527
- }, {
20528
- dataIndex: 'specName',
20529
- title: "\u89C4\u683C\u540D\u79F0",
20530
- align: 'center',
20531
- ellipsis: true,
20532
- width: 200
20533
- }, {
20534
- dataIndex: 'specCode',
20535
- title: "\u89C4\u683C\u7F16\u53F7",
20536
- align: 'center',
20537
- ellipsis: true,
20538
- width: 150
20539
- }, {
20533
+ },
20534
+ // {
20535
+ // dataIndex: 'specName',
20536
+ // title: `规格名称`,
20537
+ // align: 'center',
20538
+ // ellipsis: true,
20539
+ // width: 200,
20540
+ // },
20541
+ // {
20542
+ // dataIndex: 'specCode',
20543
+ // title: `规格编号`,
20544
+ // align: 'center',
20545
+ // ellipsis: true,
20546
+ // width: 150,
20547
+ // },
20548
+ {
20540
20549
  dataIndex: 'specId',
20541
20550
  title: "\u89C4\u683CID",
20542
20551
  align: 'center',
@@ -20616,9 +20625,8 @@ var getColumns$7 = function getColumns(_ref) {
20616
20625
  precision: 0,
20617
20626
  onChange: function onChange(num) {
20618
20627
  updateDataHandle({
20619
- qty: num,
20620
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20621
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20628
+ sellCount: num,
20629
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20622
20630
  }, index);
20623
20631
  }
20624
20632
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20637,8 +20645,8 @@ var getColumns$7 = function getColumns(_ref) {
20637
20645
  precision: 2,
20638
20646
  onChange: function onChange(num) {
20639
20647
  updateDataHandle({
20640
- price: num,
20641
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20648
+ sellPrice: num,
20649
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20642
20650
  }, index);
20643
20651
  }
20644
20652
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20663,12 +20671,12 @@ var getColumns$7 = function getColumns(_ref) {
20663
20671
  },
20664
20672
  options: [{
20665
20673
  label: '是',
20666
- value: 1
20674
+ value: 'True'
20667
20675
  }, {
20668
20676
  label: '否',
20669
- value: 0
20677
+ value: 'False'
20670
20678
  }]
20671
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20679
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
20672
20680
  }
20673
20681
  }, {
20674
20682
  dataIndex: 'combinationName',
@@ -20690,12 +20698,12 @@ var getColumns$7 = function getColumns(_ref) {
20690
20698
  },
20691
20699
  options: [{
20692
20700
  label: '是',
20693
- value: 1
20701
+ value: '1'
20694
20702
  }, {
20695
20703
  label: '否',
20696
- value: 0
20704
+ value: '0'
20697
20705
  }]
20698
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20706
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
20699
20707
  }
20700
20708
  }].map(function (item) {
20701
20709
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20893,7 +20901,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20893
20901
  })), getColumns$7({
20894
20902
  text: text,
20895
20903
  disabled: disabled,
20896
- updateHandle: updateHandle
20904
+ updateHandle: updateHandle,
20905
+ updateDataHandle: updateDataHandle
20897
20906
  })), getColumns$8({
20898
20907
  text: text,
20899
20908
  disabled: disabled,
@@ -21112,12 +21121,35 @@ var processJyGoods = function processJyGoods(_ref2) {
21112
21121
  var list = _ref2.list,
21113
21122
  canUpdateNumber = _ref2.canUpdateNumber;
21114
21123
  return list.map(function (item) {
21124
+ var goodName = item.goodName,
21125
+ goodNo = item.goodNo,
21126
+ goodId = item.goodId,
21127
+ specName = item.specName,
21128
+ specNo = item.specNo,
21129
+ specBarcode = item.specBarcode,
21130
+ retailPrice = item.retailPrice,
21131
+ isGift = item.isGift,
21132
+ skuType = item.skuType;
21115
21133
  return _objectSpread2(_objectSpread2({}, item), {}, {
21134
+ goodsName: goodName,
21135
+ goodsCode: goodNo,
21136
+ goodsId: goodId,
21137
+ code: specBarcode,
21138
+ specCode: specNo,
21139
+ productName: goodName,
21140
+ productCode: goodNo,
21141
+ productId: goodId,
21142
+ skuName: specName,
21143
+ skuCode: specNo,
21144
+ combinationName: goodName,
21145
+ combinationCode: goodNo,
21146
+ gift: isGift ? '1' : '0',
21147
+ bfit: skuType === 'combine' ? 'True' : 'False',
21116
21148
  uuid: kmkfUtils.uuid(),
21117
21149
  canDelete: true,
21118
21150
  sellCount: 1,
21119
- sellPrice: 0,
21120
- sellTotal: 0,
21151
+ sellPrice: retailPrice,
21152
+ sellTotal: retailPrice * 1,
21121
21153
  canEdit: true,
21122
21154
  canUpdateNumber: canUpdateNumber
21123
21155
  });
@@ -25327,6 +25359,10 @@ var PublicReissue = function PublicReissue(props) {
25327
25359
  orderBackGoodsLevel: props.orderBackGoodsLevel,
25328
25360
  canEdit: true
25329
25361
  };
25362
+ } else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
25363
+ orderRest = {
25364
+ canEdit: true
25365
+ };
25330
25366
  }
25331
25367
  var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
25332
25368
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
@@ -9,7 +9,7 @@ declare const _default: ({
9
9
  dataIndex: string;
10
10
  title: string;
11
11
  width: number;
12
- render: (picUrl: string) => React.JSX.Element;
12
+ render: (picUrl: string) => React.JSX.Element | null;
13
13
  ellipsis?: undefined;
14
14
  } | {
15
15
  dataIndex: string;
@@ -17,5 +17,11 @@ declare const _default: ({
17
17
  ellipsis: boolean;
18
18
  width: number;
19
19
  render: (val: boolean) => React.JSX.Element;
20
+ } | {
21
+ dataIndex: string;
22
+ title: string;
23
+ ellipsis: boolean;
24
+ width: number;
25
+ render: (val: string) => React.JSX.Element;
20
26
  })[];
21
27
  export default _default;
@@ -4,24 +4,24 @@ export declare namespace JyGoods {
4
4
  companyKey: string;
5
5
  id: number;
6
6
  platform: 'JY_ERP';
7
- productCode: string;
8
- productName: string;
7
+ goodNo: string;
8
+ goodName: string;
9
9
  imageUrl: string;
10
- productShortName: string;
11
- productGroupName: string;
10
+ goodShortName: string;
11
+ categoryName: string;
12
12
  productType: string;
13
13
  brandName: string;
14
- skuName: string;
15
- skuCode: string;
16
- barcode: string;
17
- skuImage: string;
18
- color: string;
19
- size: string;
20
- markedPrice: string;
21
- sellingPrice: string;
14
+ specName: string;
15
+ specNo: string;
16
+ specBarcode: string;
17
+ specImgUrl: string;
18
+ colorName: string;
19
+ sizeName: string;
20
+ marketPrice: string;
21
+ retailPrice: string;
22
22
  costPrice: string;
23
- gift: number;
24
- combination: number;
23
+ isGift: boolean;
24
+ skuType: string;
25
25
  }
26
26
  interface SelectDrawerRefObject {
27
27
  getSelectGoodList: () => JyGoods.GoodsInfo[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.13-beta.10",
3
+ "version": "2.2.13-beta.13",
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.2.13-beta.10",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.13",
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": "8f6077349ef6d949a0f53969632fb5c3a93231e8"
69
+ "gitHead": "d13993c1a428abf279bedf9f20f00dd3e3fb360a"
70
70
  }