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

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([]),
@@ -20281,19 +20281,23 @@ var getColumns$7 = function getColumns(_ref) {
20281
20281
  updateDataHandle = _ref.updateDataHandle;
20282
20282
  return {
20283
20283
  //巨益商品信息
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
- }, {
20284
+ JY_GOODS: [
20285
+ // {
20286
+ // dataIndex: 'goodsName',
20287
+ // title: `货品名称`,
20288
+ // width: 250,
20289
+ // },
20290
+ // {
20291
+ // dataIndex: 'goodsCode',
20292
+ // title: `货品编号`,
20293
+ // width: 200,
20294
+ // },
20295
+ // {
20296
+ // dataIndex: 'goodsId',
20297
+ // title: `货品ID`,
20298
+ // width: 150,
20299
+ // },
20300
+ {
20297
20301
  dataIndex: 'goodsClass',
20298
20302
  title: "\u8D27\u54C1\u7C7B\u522B",
20299
20303
  width: 150
@@ -20301,19 +20305,22 @@ var getColumns$7 = function getColumns(_ref) {
20301
20305
  dataIndex: 'code',
20302
20306
  title: "\u6761\u7801",
20303
20307
  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
- }, {
20308
+ },
20309
+ // {
20310
+ // dataIndex: 'specName',
20311
+ // title: `规格名称`,
20312
+ // align: 'center',
20313
+ // ellipsis: true,
20314
+ // width: 200,
20315
+ // },
20316
+ // {
20317
+ // dataIndex: 'specCode',
20318
+ // title: `规格编号`,
20319
+ // align: 'center',
20320
+ // ellipsis: true,
20321
+ // width: 150,
20322
+ // },
20323
+ {
20317
20324
  dataIndex: 'specId',
20318
20325
  title: "\u89C4\u683CID",
20319
20326
  align: 'center',
@@ -20393,9 +20400,8 @@ var getColumns$7 = function getColumns(_ref) {
20393
20400
  precision: 0,
20394
20401
  onChange: function onChange(num) {
20395
20402
  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
20403
+ sellCount: num,
20404
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20399
20405
  }, index);
20400
20406
  }
20401
20407
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20414,8 +20420,8 @@ var getColumns$7 = function getColumns(_ref) {
20414
20420
  precision: 2,
20415
20421
  onChange: function onChange(num) {
20416
20422
  updateDataHandle({
20417
- price: num,
20418
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20423
+ sellPrice: num,
20424
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20419
20425
  }, index);
20420
20426
  }
20421
20427
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -20448,12 +20454,12 @@ var getColumns$7 = function getColumns(_ref) {
20448
20454
  },
20449
20455
  options: [{
20450
20456
  label: '是',
20451
- value: 1
20457
+ value: 'True'
20452
20458
  }, {
20453
20459
  label: '否',
20454
- value: 0
20460
+ value: 'False'
20455
20461
  }]
20456
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20462
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
20457
20463
  }
20458
20464
  }, {
20459
20465
  dataIndex: 'combinationName',
@@ -20475,12 +20481,12 @@ var getColumns$7 = function getColumns(_ref) {
20475
20481
  },
20476
20482
  options: [{
20477
20483
  label: '是',
20478
- value: 1
20484
+ value: '1'
20479
20485
  }, {
20480
20486
  label: '否',
20481
- value: 0
20487
+ value: '0'
20482
20488
  }]
20483
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20489
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
20484
20490
  }
20485
20491
  }].map(function (item) {
20486
20492
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20878,7 +20884,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20878
20884
  })), getColumns$7({
20879
20885
  text: text,
20880
20886
  disabled: disabled,
20881
- updateHandle: updateHandle
20887
+ updateHandle: updateHandle,
20888
+ updateDataHandle: updateDataHandle
20882
20889
  })), getColumns$8({
20883
20890
  text: text,
20884
20891
  disabled: disabled,
@@ -21097,12 +21104,35 @@ var processJyGoods = function processJyGoods(_ref2) {
21097
21104
  var list = _ref2.list,
21098
21105
  canUpdateNumber = _ref2.canUpdateNumber;
21099
21106
  return list.map(function (item) {
21107
+ var goodName = item.goodName,
21108
+ goodNo = item.goodNo,
21109
+ goodId = item.goodId,
21110
+ specName = item.specName,
21111
+ specNo = item.specNo,
21112
+ specBarcode = item.specBarcode,
21113
+ retailPrice = item.retailPrice,
21114
+ isGift = item.isGift,
21115
+ skuType = item.skuType;
21100
21116
  return _objectSpread2(_objectSpread2({}, item), {}, {
21117
+ goodsName: goodName,
21118
+ goodsCode: goodNo,
21119
+ goodsId: goodId,
21120
+ code: specBarcode,
21121
+ specCode: specNo,
21122
+ productName: goodName,
21123
+ productCode: goodNo,
21124
+ productId: goodId,
21125
+ skuName: specName,
21126
+ skuCode: specNo,
21127
+ combinationName: goodName,
21128
+ combinationCode: goodNo,
21129
+ gift: isGift ? '1' : '0',
21130
+ bfit: skuType === 'combine' ? 'True' : 'False',
21101
21131
  uuid: uuid(),
21102
21132
  canDelete: true,
21103
21133
  sellCount: 1,
21104
- sellPrice: 0,
21105
- sellTotal: 0,
21134
+ sellPrice: retailPrice,
21135
+ sellTotal: retailPrice * 1,
21106
21136
  canEdit: true,
21107
21137
  canUpdateNumber: canUpdateNumber
21108
21138
  });
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([]),
@@ -20296,19 +20296,23 @@ var getColumns$7 = function getColumns(_ref) {
20296
20296
  updateDataHandle = _ref.updateDataHandle;
20297
20297
  return {
20298
20298
  //巨益商品信息
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
- }, {
20299
+ JY_GOODS: [
20300
+ // {
20301
+ // dataIndex: 'goodsName',
20302
+ // title: `货品名称`,
20303
+ // width: 250,
20304
+ // },
20305
+ // {
20306
+ // dataIndex: 'goodsCode',
20307
+ // title: `货品编号`,
20308
+ // width: 200,
20309
+ // },
20310
+ // {
20311
+ // dataIndex: 'goodsId',
20312
+ // title: `货品ID`,
20313
+ // width: 150,
20314
+ // },
20315
+ {
20312
20316
  dataIndex: 'goodsClass',
20313
20317
  title: "\u8D27\u54C1\u7C7B\u522B",
20314
20318
  width: 150
@@ -20316,19 +20320,22 @@ var getColumns$7 = function getColumns(_ref) {
20316
20320
  dataIndex: 'code',
20317
20321
  title: "\u6761\u7801",
20318
20322
  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
- }, {
20323
+ },
20324
+ // {
20325
+ // dataIndex: 'specName',
20326
+ // title: `规格名称`,
20327
+ // align: 'center',
20328
+ // ellipsis: true,
20329
+ // width: 200,
20330
+ // },
20331
+ // {
20332
+ // dataIndex: 'specCode',
20333
+ // title: `规格编号`,
20334
+ // align: 'center',
20335
+ // ellipsis: true,
20336
+ // width: 150,
20337
+ // },
20338
+ {
20332
20339
  dataIndex: 'specId',
20333
20340
  title: "\u89C4\u683CID",
20334
20341
  align: 'center',
@@ -20408,9 +20415,8 @@ var getColumns$7 = function getColumns(_ref) {
20408
20415
  precision: 0,
20409
20416
  onChange: function onChange(num) {
20410
20417
  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
20418
+ sellCount: num,
20419
+ sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
20414
20420
  }, index);
20415
20421
  }
20416
20422
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20429,8 +20435,8 @@ var getColumns$7 = function getColumns(_ref) {
20429
20435
  precision: 2,
20430
20436
  onChange: function onChange(num) {
20431
20437
  updateDataHandle({
20432
- price: num,
20433
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20438
+ sellPrice: num,
20439
+ sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
20434
20440
  }, index);
20435
20441
  }
20436
20442
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -20463,12 +20469,12 @@ var getColumns$7 = function getColumns(_ref) {
20463
20469
  },
20464
20470
  options: [{
20465
20471
  label: '是',
20466
- value: 1
20472
+ value: 'True'
20467
20473
  }, {
20468
20474
  label: '否',
20469
- value: 0
20475
+ value: 'False'
20470
20476
  }]
20471
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20477
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
20472
20478
  }
20473
20479
  }, {
20474
20480
  dataIndex: 'combinationName',
@@ -20490,12 +20496,12 @@ var getColumns$7 = function getColumns(_ref) {
20490
20496
  },
20491
20497
  options: [{
20492
20498
  label: '是',
20493
- value: 1
20499
+ value: '1'
20494
20500
  }, {
20495
20501
  label: '否',
20496
- value: 0
20502
+ value: '0'
20497
20503
  }]
20498
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
20504
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
20499
20505
  }
20500
20506
  }].map(function (item) {
20501
20507
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20893,7 +20899,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20893
20899
  })), getColumns$7({
20894
20900
  text: text,
20895
20901
  disabled: disabled,
20896
- updateHandle: updateHandle
20902
+ updateHandle: updateHandle,
20903
+ updateDataHandle: updateDataHandle
20897
20904
  })), getColumns$8({
20898
20905
  text: text,
20899
20906
  disabled: disabled,
@@ -21112,12 +21119,35 @@ var processJyGoods = function processJyGoods(_ref2) {
21112
21119
  var list = _ref2.list,
21113
21120
  canUpdateNumber = _ref2.canUpdateNumber;
21114
21121
  return list.map(function (item) {
21122
+ var goodName = item.goodName,
21123
+ goodNo = item.goodNo,
21124
+ goodId = item.goodId,
21125
+ specName = item.specName,
21126
+ specNo = item.specNo,
21127
+ specBarcode = item.specBarcode,
21128
+ retailPrice = item.retailPrice,
21129
+ isGift = item.isGift,
21130
+ skuType = item.skuType;
21115
21131
  return _objectSpread2(_objectSpread2({}, item), {}, {
21132
+ goodsName: goodName,
21133
+ goodsCode: goodNo,
21134
+ goodsId: goodId,
21135
+ code: specBarcode,
21136
+ specCode: specNo,
21137
+ productName: goodName,
21138
+ productCode: goodNo,
21139
+ productId: goodId,
21140
+ skuName: specName,
21141
+ skuCode: specNo,
21142
+ combinationName: goodName,
21143
+ combinationCode: goodNo,
21144
+ gift: isGift ? '1' : '0',
21145
+ bfit: skuType === 'combine' ? 'True' : 'False',
21116
21146
  uuid: kmkfUtils.uuid(),
21117
21147
  canDelete: true,
21118
21148
  sellCount: 1,
21119
- sellPrice: 0,
21120
- sellTotal: 0,
21149
+ sellPrice: retailPrice,
21150
+ sellTotal: retailPrice * 1,
21121
21151
  canEdit: true,
21122
21152
  canUpdateNumber: canUpdateNumber
21123
21153
  });
@@ -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.11",
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.11",
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": "08f751ed4f907685178ea27d4fba6111a4b42f48"
70
70
  }