@kmkf-fe-packages/basic-components 2.0.54-beta.5 → 2.0.54-beta.7

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
@@ -15934,6 +15934,7 @@ var GoodsModalMap = {
15934
15934
  BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
15935
15935
  GY_GOODS: GyGoodsModal$2,
15936
15936
  GY_REISSUE_GOODS: GyGoodsModal$2,
15937
+ GY_RETURN_GOODS: GyGoodsModal$2,
15937
15938
  JST_GOODS: JstGoodsModal,
15938
15939
  JST_REISSUE_GOODS: JstGoodsModal,
15939
15940
  JST_RETURN_GOODS: JstGoodsModal,
@@ -16006,7 +16007,7 @@ var getButtonText = function getButtonText() {
16006
16007
  if (['WDT_REISSUE_GOODS'].includes(type)) {
16007
16008
  return '选择旺店通商品';
16008
16009
  }
16009
- if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16010
+ if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
16010
16011
  return '选择管易ERP商品';
16011
16012
  }
16012
16013
  if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
@@ -16309,7 +16310,7 @@ var GoodItem$1 = function GoodItem(props) {
16309
16310
  canUpdateNumber: canUpdateNumber
16310
16311
  });
16311
16312
  });
16312
- } else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16313
+ } else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
16313
16314
  newList = list.map(function (item) {
16314
16315
  var goodName = item.goodName,
16315
16316
  goodShortName = item.goodShortName,
@@ -19872,7 +19873,7 @@ var typeMap$4 = {
19872
19873
  }
19873
19874
  };
19874
19875
  var GyReissue = function GyReissue(props) {
19875
- var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19876
+ var _typeMap$type28, _typeMap$type29, _typeMap$type30, _systemOrder$orders, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19876
19877
  var value = props.value,
19877
19878
  onChange = props.onChange,
19878
19879
  _props$reasonList = props.reasonList,
@@ -20044,10 +20045,9 @@ var GyReissue = function GyReissue(props) {
20044
20045
  pushGyLog('afterSelectedGoodsChange', newValue);
20045
20046
  }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
20046
20047
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20047
- var showChangeBtn = useMemo(function () {
20048
- var _typeMap$type29;
20049
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
20050
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
20048
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder];
20049
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]);
20050
+ var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20051
20051
  return /*#__PURE__*/React.createElement("div", {
20052
20052
  id: "TEST_GY",
20053
20053
  onClick: function onClick() {
@@ -20107,6 +20107,8 @@ var GyReissue = function GyReissue(props) {
20107
20107
  disabled: disabled,
20108
20108
  canUpdateNumber: showChangeBtn,
20109
20109
  showChangeBtn: showChangeBtn,
20110
+ showErpGoodsBtn: showErpGoodsBtn,
20111
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20110
20112
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
20111
20113
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
20112
20114
  onChange: function onChange(val) {
@@ -20145,7 +20147,7 @@ var typeMap$5 = {
20145
20147
  }
20146
20148
  };
20147
20149
  var GyReturnGoods = function GyReturnGoods(props) {
20148
- var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20150
+ var _typeMap$type10, _typeMap$type27, _systemOrder$orders, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20149
20151
  var value = props.value,
20150
20152
  onChange = props.onChange,
20151
20153
  _props$reasonList = props.reasonList,
@@ -20338,10 +20340,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
20338
20340
  }))));
20339
20341
  };
20340
20342
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20341
- var showChangeBtn = useMemo(function () {
20342
- var _typeMap$type27;
20343
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
20344
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
20343
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder];
20344
+ var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20345
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]);
20345
20346
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
20346
20347
  gutter: 8,
20347
20348
  wrap: true
@@ -20403,7 +20404,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
20403
20404
  },
20404
20405
  onModeChange: handleModeChange,
20405
20406
  isStrict: isStrict,
20406
- showErpGoodsBtn: false,
20407
+ showErpGoodsBtn: showErpGoodsBtn,
20408
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20407
20409
  tradeGoods: {
20408
20410
  originDataSource: getGoodDetails({
20409
20411
  mode: isStrict
package/dist/index.js CHANGED
@@ -15946,6 +15946,7 @@ var GoodsModalMap = {
15946
15946
  BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
15947
15947
  GY_GOODS: GyGoodsModal$2,
15948
15948
  GY_REISSUE_GOODS: GyGoodsModal$2,
15949
+ GY_RETURN_GOODS: GyGoodsModal$2,
15949
15950
  JST_GOODS: JstGoodsModal,
15950
15951
  JST_REISSUE_GOODS: JstGoodsModal,
15951
15952
  JST_RETURN_GOODS: JstGoodsModal,
@@ -16018,7 +16019,7 @@ var getButtonText = function getButtonText() {
16018
16019
  if (['WDT_REISSUE_GOODS'].includes(type)) {
16019
16020
  return '选择旺店通商品';
16020
16021
  }
16021
- if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16022
+ if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
16022
16023
  return '选择管易ERP商品';
16023
16024
  }
16024
16025
  if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
@@ -16321,7 +16322,7 @@ var GoodItem$1 = function GoodItem(props) {
16321
16322
  canUpdateNumber: canUpdateNumber
16322
16323
  });
16323
16324
  });
16324
- } else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16325
+ } else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
16325
16326
  newList = list.map(function (item) {
16326
16327
  var goodName = item.goodName,
16327
16328
  goodShortName = item.goodShortName,
@@ -19884,7 +19885,7 @@ var typeMap$4 = {
19884
19885
  }
19885
19886
  };
19886
19887
  var GyReissue = function GyReissue(props) {
19887
- var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19888
+ var _typeMap$type28, _typeMap$type29, _typeMap$type30, _systemOrder$orders, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19888
19889
  var value = props.value,
19889
19890
  onChange = props.onChange,
19890
19891
  _props$reasonList = props.reasonList,
@@ -20056,10 +20057,9 @@ var GyReissue = function GyReissue(props) {
20056
20057
  kmkfUtils.pushGyLog('afterSelectedGoodsChange', newValue);
20057
20058
  }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
20058
20059
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20059
- var showChangeBtn = React.useMemo(function () {
20060
- var _typeMap$type29;
20061
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
20062
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
20060
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder];
20061
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]);
20062
+ var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20063
20063
  return /*#__PURE__*/React__default['default'].createElement("div", {
20064
20064
  id: "TEST_GY",
20065
20065
  onClick: function onClick() {
@@ -20119,6 +20119,8 @@ var GyReissue = function GyReissue(props) {
20119
20119
  disabled: disabled,
20120
20120
  canUpdateNumber: showChangeBtn,
20121
20121
  showChangeBtn: showChangeBtn,
20122
+ showErpGoodsBtn: showErpGoodsBtn,
20123
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20122
20124
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
20123
20125
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
20124
20126
  onChange: function onChange(val) {
@@ -20157,7 +20159,7 @@ var typeMap$5 = {
20157
20159
  }
20158
20160
  };
20159
20161
  var GyReturnGoods = function GyReturnGoods(props) {
20160
- var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20162
+ var _typeMap$type10, _typeMap$type27, _systemOrder$orders, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20161
20163
  var value = props.value,
20162
20164
  onChange = props.onChange,
20163
20165
  _props$reasonList = props.reasonList,
@@ -20350,10 +20352,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
20350
20352
  }))));
20351
20353
  };
20352
20354
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20353
- var showChangeBtn = React.useMemo(function () {
20354
- var _typeMap$type27;
20355
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
20356
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
20355
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder];
20356
+ var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20357
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]);
20357
20358
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
20358
20359
  gutter: 8,
20359
20360
  wrap: true
@@ -20415,7 +20416,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
20415
20416
  },
20416
20417
  onModeChange: handleModeChange,
20417
20418
  isStrict: isStrict,
20418
- showErpGoodsBtn: false,
20419
+ showErpGoodsBtn: showErpGoodsBtn,
20420
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20419
20421
  tradeGoods: {
20420
20422
  originDataSource: getGoodDetails({
20421
20423
  mode: isStrict
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.54-beta.5",
3
+ "version": "2.0.54-beta.7",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "4647c900ae4f74bb1739444efa1a4709ac21ae4f"
68
+ "gitHead": "f75935f605b3cbf433d08f5f54babf4eccd95958"
69
69
  }