@kmkf-fe-packages/basic-components 2.0.19-beta.6 → 2.0.19-beta.8

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
@@ -15414,6 +15414,8 @@ var GoodItem$1 = function GoodItem(props) {
15414
15414
  showErpGoodsBtn = _props$showErpGoodsBt === void 0 ? true : _props$showErpGoodsBt,
15415
15415
  _props$showModeBtn = props.showModeBtn,
15416
15416
  showModeBtn = _props$showModeBtn === void 0 ? false : _props$showModeBtn,
15417
+ _props$alwaysShowChoo = props.alwaysShowChooseErpGoodsBtn,
15418
+ alwaysShowChooseErpGoodsBtn = _props$alwaysShowChoo === void 0 ? false : _props$alwaysShowChoo,
15417
15419
  _props$isStrict = props.isStrict,
15418
15420
  isStrict = _props$isStrict === void 0 ? false : _props$isStrict,
15419
15421
  _props$tableSelect = props.tableSelect,
@@ -15766,7 +15768,7 @@ var GoodItem$1 = function GoodItem(props) {
15766
15768
  return params;
15767
15769
  }, [tableSelect, selectedRowKeys]);
15768
15770
  var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
15769
- return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React.createElement("div", {
15771
+ return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
15770
15772
  style: {
15771
15773
  float: 'right'
15772
15774
  }
@@ -15783,7 +15785,14 @@ var GoodItem$1 = function GoodItem(props) {
15783
15785
  }), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
15784
15786
  type: "link",
15785
15787
  onClick: handleChangeGoods
15786
- }, getButtonText(type)), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
15788
+ }, getButtonText(type)), otherOperations) : showErpGoodsBtn && alwaysShowChooseErpGoodsBtn && /*#__PURE__*/React.createElement("div", {
15789
+ style: {
15790
+ float: 'right'
15791
+ }
15792
+ }, /*#__PURE__*/React.createElement(Button, {
15793
+ type: "link",
15794
+ onClick: handleChangeGoods
15795
+ }, getButtonText(type)))), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
15787
15796
  columns: newColumns,
15788
15797
  dataSource: value,
15789
15798
  rowKey: uniqueKey,
@@ -17882,6 +17891,7 @@ var typeMap$2 = {
17882
17891
  systemOrderBillType: 'jstSystemOrderBillType',
17883
17892
  getOrderList: jstUtils.getJstOrderListSingleton,
17884
17893
  updateGoodsHandle: updateJstGoodsHandle,
17894
+ alwaysShowChooseErpGoodsBtn: true,
17885
17895
  orderTypeKey: 'orderType',
17886
17896
  oIdKey: 'oId',
17887
17897
  outerOiIdKey: '',
@@ -17896,6 +17906,7 @@ var typeMap$2 = {
17896
17906
  systemOrderBillType: 'jstSystemOrderBillType',
17897
17907
  getOrderList: jstUtils.getJstOrderListSingleton,
17898
17908
  updateGoodsHandle: updateJstGoodsHandle,
17909
+ alwaysShowChooseErpGoodsBtn: false,
17899
17910
  orderTypeKey: 'orderType',
17900
17911
  oIdKey: 'oId',
17901
17912
  outerOiIdKey: '',
@@ -17911,7 +17922,7 @@ var typeMap$2 = {
17911
17922
  }
17912
17923
  };
17913
17924
  var PublicReissue = function PublicReissue(props) {
17914
- var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43;
17925
+ var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44;
17915
17926
  var value = props.value,
17916
17927
  onChange = props.onChange,
17917
17928
  _props$reasonList = props.reasonList,
@@ -18152,9 +18163,10 @@ var PublicReissue = function PublicReissue(props) {
18152
18163
  disabled: disabled,
18153
18164
  canUpdateNumber: showChangeBtn,
18154
18165
  showChangeBtn: showChangeBtn,
18155
- showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.showErpGoodsBtn,
18166
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.alwaysShowChooseErpGoodsBtn,
18167
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.showErpGoodsBtn,
18156
18168
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
18157
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key)],
18169
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)],
18158
18170
  onChange: function onChange(val) {
18159
18171
  return changeGoodHandle(val);
18160
18172
  },
package/dist/index.js CHANGED
@@ -15426,6 +15426,8 @@ var GoodItem$1 = function GoodItem(props) {
15426
15426
  showErpGoodsBtn = _props$showErpGoodsBt === void 0 ? true : _props$showErpGoodsBt,
15427
15427
  _props$showModeBtn = props.showModeBtn,
15428
15428
  showModeBtn = _props$showModeBtn === void 0 ? false : _props$showModeBtn,
15429
+ _props$alwaysShowChoo = props.alwaysShowChooseErpGoodsBtn,
15430
+ alwaysShowChooseErpGoodsBtn = _props$alwaysShowChoo === void 0 ? false : _props$alwaysShowChoo,
15429
15431
  _props$isStrict = props.isStrict,
15430
15432
  isStrict = _props$isStrict === void 0 ? false : _props$isStrict,
15431
15433
  _props$tableSelect = props.tableSelect,
@@ -15778,7 +15780,7 @@ var GoodItem$1 = function GoodItem(props) {
15778
15780
  return params;
15779
15781
  }, [tableSelect, selectedRowKeys]);
15780
15782
  var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
15781
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React__default['default'].createElement("div", {
15783
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React__default['default'].createElement("div", {
15782
15784
  style: {
15783
15785
  float: 'right'
15784
15786
  }
@@ -15795,7 +15797,14 @@ var GoodItem$1 = function GoodItem(props) {
15795
15797
  }), showErpGoodsBtn && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
15796
15798
  type: "link",
15797
15799
  onClick: handleChangeGoods
15798
- }, getButtonText(type)), otherOperations), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
15800
+ }, getButtonText(type)), otherOperations) : showErpGoodsBtn && alwaysShowChooseErpGoodsBtn && /*#__PURE__*/React__default['default'].createElement("div", {
15801
+ style: {
15802
+ float: 'right'
15803
+ }
15804
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
15805
+ type: "link",
15806
+ onClick: handleChangeGoods
15807
+ }, getButtonText(type)))), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
15799
15808
  columns: newColumns,
15800
15809
  dataSource: value,
15801
15810
  rowKey: uniqueKey,
@@ -17894,6 +17903,7 @@ var typeMap$2 = {
17894
17903
  systemOrderBillType: 'jstSystemOrderBillType',
17895
17904
  getOrderList: jstUtils.getJstOrderListSingleton,
17896
17905
  updateGoodsHandle: kmkfUtils.updateJstGoodsHandle,
17906
+ alwaysShowChooseErpGoodsBtn: true,
17897
17907
  orderTypeKey: 'orderType',
17898
17908
  oIdKey: 'oId',
17899
17909
  outerOiIdKey: '',
@@ -17908,6 +17918,7 @@ var typeMap$2 = {
17908
17918
  systemOrderBillType: 'jstSystemOrderBillType',
17909
17919
  getOrderList: jstUtils.getJstOrderListSingleton,
17910
17920
  updateGoodsHandle: kmkfUtils.updateJstGoodsHandle,
17921
+ alwaysShowChooseErpGoodsBtn: false,
17911
17922
  orderTypeKey: 'orderType',
17912
17923
  oIdKey: 'oId',
17913
17924
  outerOiIdKey: '',
@@ -17923,7 +17934,7 @@ var typeMap$2 = {
17923
17934
  }
17924
17935
  };
17925
17936
  var PublicReissue = function PublicReissue(props) {
17926
- var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43;
17937
+ var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44;
17927
17938
  var value = props.value,
17928
17939
  onChange = props.onChange,
17929
17940
  _props$reasonList = props.reasonList,
@@ -18164,9 +18175,10 @@ var PublicReissue = function PublicReissue(props) {
18164
18175
  disabled: disabled,
18165
18176
  canUpdateNumber: showChangeBtn,
18166
18177
  showChangeBtn: showChangeBtn,
18167
- showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.showErpGoodsBtn,
18178
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.alwaysShowChooseErpGoodsBtn,
18179
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.showErpGoodsBtn,
18168
18180
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
18169
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key)],
18181
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)],
18170
18182
  onChange: function onChange(val) {
18171
18183
  return changeGoodHandle(val);
18172
18184
  },
@@ -18,6 +18,7 @@ interface BsGoodsProps {
18
18
  showChangeBtn: boolean;
19
19
  showErpGoodsBtn: boolean;
20
20
  showModeBtn: boolean;
21
+ alwaysShowChooseErpGoodsBtn?: boolean;
21
22
  isStrict: boolean;
22
23
  tableSelect?: boolean;
23
24
  selectType?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.19-beta.6",
3
+ "version": "2.0.19-beta.8",
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.0.19-beta.5",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.8",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "fce9ab22ae04d4341c52fa290fb04e705e446783"
68
+ "gitHead": "feb85c1fec2a655e80765283827d1cce89cd7baf"
69
69
  }