@kmkf-fe-packages/basic-components 2.2.44-beta.35 → 2.2.44-beta.38

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
@@ -18892,8 +18892,8 @@ var GoodList$6 = function GoodList(props, ref) {
18892
18892
  getCheckboxProps: function getCheckboxProps(record) {
18893
18893
  var options = {
18894
18894
  disabled: (props.selectedRows || []).map(function (row) {
18895
- return row.id || row.specId;
18896
- }).includes(record.id || record.specId),
18895
+ return row.specId || record.id;
18896
+ }).includes(record.specId || record.id),
18897
18897
  name: record.id
18898
18898
  };
18899
18899
  return options;
@@ -22557,7 +22557,22 @@ var getColumns$9 = function getColumns(_ref) {
22557
22557
  }, {
22558
22558
  dataIndex: 'divideSellTotal',
22559
22559
  title: "\u5B9E\u4ED8\u91D1\u989D",
22560
- width: 150
22560
+ width: 150,
22561
+ render: function render(val, record, index) {
22562
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22563
+ style: {
22564
+ width: 130
22565
+ },
22566
+ value: val,
22567
+ min: 0,
22568
+ precision: 2,
22569
+ onChange: function onChange(num) {
22570
+ updateDataHandle({
22571
+ divideSellTotal: num
22572
+ }, index);
22573
+ }
22574
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22575
+ }
22561
22576
  }, {
22562
22577
  dataIndex: 'isGift',
22563
22578
  title: "\u662F\u5426\u8D60\u54C1",
@@ -22581,7 +22596,7 @@ var getColumns$9 = function getColumns(_ref) {
22581
22596
  label: '否',
22582
22597
  value: 0
22583
22598
  }]
22584
- }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22599
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22585
22600
  }
22586
22601
  }, {
22587
22602
  dataIndex: 'isFit',
@@ -22606,7 +22621,7 @@ var getColumns$9 = function getColumns(_ref) {
22606
22621
  label: '否',
22607
22622
  value: 0
22608
22623
  }]
22609
- }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22624
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22610
22625
  }
22611
22626
  }, {
22612
22627
  dataIndex: 'isPresell',
@@ -22631,7 +22646,7 @@ var getColumns$9 = function getColumns(_ref) {
22631
22646
  label: '否',
22632
22647
  value: '0'
22633
22648
  }]
22634
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22649
+ }) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
22635
22650
  }
22636
22651
  }, {
22637
22652
  dataIndex: 'brandName',
@@ -23352,8 +23367,8 @@ var processJkyGoods = function processJkyGoods(_ref3) {
23352
23367
  skuImgUrl: specImgUrl,
23353
23368
  combinationName: goodName,
23354
23369
  combinationCode: goodNo,
23355
- isGift: isGift ? '1' : '0',
23356
- isFit: skuType === 'combine' ? '1' : '0',
23370
+ isGift: isGift ? 1 : 0,
23371
+ isFit: skuType === 'combine' ? 1 : 0,
23357
23372
  uuid: uuid(),
23358
23373
  canDelete: true,
23359
23374
  sellCount: 1,
package/dist/index.js CHANGED
@@ -18907,8 +18907,8 @@ var GoodList$6 = function GoodList(props, ref) {
18907
18907
  getCheckboxProps: function getCheckboxProps(record) {
18908
18908
  var options = {
18909
18909
  disabled: (props.selectedRows || []).map(function (row) {
18910
- return row.id || row.specId;
18911
- }).includes(record.id || record.specId),
18910
+ return row.specId || record.id;
18911
+ }).includes(record.specId || record.id),
18912
18912
  name: record.id
18913
18913
  };
18914
18914
  return options;
@@ -22572,7 +22572,22 @@ var getColumns$9 = function getColumns(_ref) {
22572
22572
  }, {
22573
22573
  dataIndex: 'divideSellTotal',
22574
22574
  title: "\u5B9E\u4ED8\u91D1\u989D",
22575
- width: 150
22575
+ width: 150,
22576
+ render: function render(val, record, index) {
22577
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
22578
+ style: {
22579
+ width: 130
22580
+ },
22581
+ value: val,
22582
+ min: 0,
22583
+ precision: 2,
22584
+ onChange: function onChange(num) {
22585
+ updateDataHandle({
22586
+ divideSellTotal: num
22587
+ }, index);
22588
+ }
22589
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
22590
+ }
22576
22591
  }, {
22577
22592
  dataIndex: 'isGift',
22578
22593
  title: "\u662F\u5426\u8D60\u54C1",
@@ -22596,7 +22611,7 @@ var getColumns$9 = function getColumns(_ref) {
22596
22611
  label: '否',
22597
22612
  value: 0
22598
22613
  }]
22599
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
22614
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
22600
22615
  }
22601
22616
  }, {
22602
22617
  dataIndex: 'isFit',
@@ -22621,7 +22636,7 @@ var getColumns$9 = function getColumns(_ref) {
22621
22636
  label: '否',
22622
22637
  value: 0
22623
22638
  }]
22624
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
22639
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
22625
22640
  }
22626
22641
  }, {
22627
22642
  dataIndex: 'isPresell',
@@ -22646,7 +22661,7 @@ var getColumns$9 = function getColumns(_ref) {
22646
22661
  label: '否',
22647
22662
  value: '0'
22648
22663
  }]
22649
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22664
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
22650
22665
  }
22651
22666
  }, {
22652
22667
  dataIndex: 'brandName',
@@ -23367,8 +23382,8 @@ var processJkyGoods = function processJkyGoods(_ref3) {
23367
23382
  skuImgUrl: specImgUrl,
23368
23383
  combinationName: goodName,
23369
23384
  combinationCode: goodNo,
23370
- isGift: isGift ? '1' : '0',
23371
- isFit: skuType === 'combine' ? '1' : '0',
23385
+ isGift: isGift ? 1 : 0,
23386
+ isFit: skuType === 'combine' ? 1 : 0,
23372
23387
  uuid: kmkfUtils.uuid(),
23373
23388
  canDelete: true,
23374
23389
  sellCount: 1,
@@ -69,16 +69,13 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
69
69
  title: string;
70
70
  width: number;
71
71
  render?: undefined;
72
- headerMapping?: undefined;
72
+ renderExport?: undefined;
73
73
  } | {
74
74
  dataIndex: string;
75
75
  title: string;
76
76
  width: number;
77
77
  render: (val: number) => "否" | "是";
78
- headerMapping: {
79
- transformValue: (val: number) => "否" | "是";
80
- renderExport: (val: number) => "否" | "是";
81
- };
78
+ renderExport: (val: number) => "否" | "是";
82
79
  })[];
83
80
  WDT_RETURN_BILL_NO: ({
84
81
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.44-beta.35",
3
+ "version": "2.2.44-beta.38",
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.44-beta.32",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.38",
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": "3de0698362d4a2dfc11a536ddefc994f5072f194"
69
+ "gitHead": "2b6a9bd546691338d24d5ce9351ec153cac547f9"
70
70
  }