@kmkf-fe-packages/basic-components 0.7.15-alpha.11 → 0.7.15-alpha.17

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
@@ -6940,7 +6940,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6940
6940
  var beforeUpload = function beforeUpload(file) {
6941
6941
  console.log('beforeUpload', file);
6942
6942
  var size = file.size / 1024 / 1024 < maxSize;
6943
- if (value.length > maxCount) {
6943
+ if (value.length >= maxCount) {
6944
6944
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
6945
6945
  return Upload.LIST_IGNORE;
6946
6946
  }
@@ -6963,7 +6963,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6963
6963
  className: styles$2.tips
6964
6964
  }, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React.createElement(Dragger, _objectSpread2({
6965
6965
  disabled: disabled,
6966
- multiple: true,
6966
+ multiple: false,
6967
6967
  accept: accept,
6968
6968
  name: "file",
6969
6969
  maxCount: maxCount,
@@ -9332,9 +9332,6 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9332
9332
  //物流单号
9333
9333
  var LogisticsCode = function LogisticsCode() {
9334
9334
  return /*#__PURE__*/React.createElement(Input, {
9335
- style: {
9336
- marginBottom: '8px'
9337
- },
9338
9335
  disabled: disabled,
9339
9336
  placeholder: "\u7269\u6D41\u5355\u53F7",
9340
9337
  onChange: function onChange(e) {
@@ -9346,6 +9343,9 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9346
9343
  //物流快照
9347
9344
  var LogisticsSnapshot = function LogisticsSnapshot() {
9348
9345
  return /*#__PURE__*/React.createElement(Input, {
9346
+ style: {
9347
+ marginTop: '8px'
9348
+ },
9349
9349
  disabled: true,
9350
9350
  placeholder: "\u7269\u6D41\u5FEB\u7167",
9351
9351
  onChange: function onChange(e) {
@@ -9644,6 +9644,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9644
9644
  pageNo: page,
9645
9645
  pageSize: pageSize
9646
9646
  }));
9647
+ queryItems();
9647
9648
  };
9648
9649
  /**
9649
9650
  *
@@ -9738,7 +9739,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9738
9739
  _onCancel();
9739
9740
  };
9740
9741
  return /*#__PURE__*/React.createElement(Modal, {
9741
- title: '选择商品编码',
9742
+ title: '选择商品',
9742
9743
  okText: '确认',
9743
9744
  cancelText: '取消',
9744
9745
  visible: visible,
@@ -9748,26 +9749,6 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9748
9749
  },
9749
9750
  onOk: onOk,
9750
9751
  wrapClassName: "goodModal"
9751
- }, /*#__PURE__*/React.createElement(Tabs, {
9752
- type: "card",
9753
- activeKey: searchParams.type,
9754
- onChange: function onChange(e) {
9755
- var params = _objectSpread2(_objectSpread2({}, searchParams), {}, {
9756
- type: e,
9757
- pageNo: 1
9758
- });
9759
- setSearch(params);
9760
- }
9761
- }, tabs.map(function (tab) {
9762
- return /*#__PURE__*/React.createElement(TabPane$1, {
9763
- tab: tab.tab + (tab.key === 'select' ? "(".concat(selectList.length, ")") : ''),
9764
- key: tab.key
9765
- });
9766
- })), /*#__PURE__*/React.createElement("div", {
9767
- className: "searchBox",
9768
- style: {
9769
- display: searchParams.type === 'select' ? 'none' : ''
9770
- }
9771
9752
  }, /*#__PURE__*/React.createElement(Form, {
9772
9753
  layout: "inline"
9773
9754
  }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
@@ -9779,7 +9760,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9779
9760
  })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
9780
9761
  type: "primary",
9781
9762
  htmlType: "submit"
9782
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, null, "\u91CD\u7F6E")))), /*#__PURE__*/React.createElement(Spin, {
9763
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, null, "\u91CD\u7F6E"))), /*#__PURE__*/React.createElement(Spin, {
9783
9764
  spinning: loading
9784
9765
  }, /*#__PURE__*/React.createElement(Table, {
9785
9766
  rowSelection: rowSelection,
@@ -10157,11 +10138,10 @@ var BsExchange = function BsExchange(props) {
10157
10138
  });
10158
10139
  }, [value]);
10159
10140
  var getListHandle = function getListHandle(list, val) {
10160
- var _val$bsExchangeType;
10141
+ var _val$bsExchangeType, _val$bsExchangeType2;
10161
10142
  //如果是原单换
10162
10143
  if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
10163
10144
  return list.reduce(function (prv, next) {
10164
- var _val$bsExchangeType2;
10165
10145
  next.canDelete = false;
10166
10146
  //数量大于1 拆开
10167
10147
  if (next.number > 1) {
@@ -10170,12 +10150,12 @@ var BsExchange = function BsExchange(props) {
10170
10150
  return t;
10171
10151
  });
10172
10152
  prv.push.apply(prv, _toConsumableArray(newList));
10173
- } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10153
+ } else {
10174
10154
  prv.push(_objectSpread2({}, next));
10175
10155
  }
10176
10156
  return prv;
10177
10157
  }, []);
10178
- } else {
10158
+ } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10179
10159
  //补发换货
10180
10160
  return list.reduce(function (prv, next, index) {
10181
10161
  next.canDelete = true;
package/dist/index.js CHANGED
@@ -6951,7 +6951,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6951
6951
  var beforeUpload = function beforeUpload(file) {
6952
6952
  console.log('beforeUpload', file);
6953
6953
  var size = file.size / 1024 / 1024 < maxSize;
6954
- if (value.length > maxCount) {
6954
+ if (value.length >= maxCount) {
6955
6955
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
6956
6956
  return antd.Upload.LIST_IGNORE;
6957
6957
  }
@@ -6974,7 +6974,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6974
6974
  className: styles$2.tips
6975
6975
  }, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React__default['default'].createElement(Dragger, _objectSpread2({
6976
6976
  disabled: disabled,
6977
- multiple: true,
6977
+ multiple: false,
6978
6978
  accept: accept,
6979
6979
  name: "file",
6980
6980
  maxCount: maxCount,
@@ -9343,9 +9343,6 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9343
9343
  //物流单号
9344
9344
  var LogisticsCode = function LogisticsCode() {
9345
9345
  return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9346
- style: {
9347
- marginBottom: '8px'
9348
- },
9349
9346
  disabled: disabled,
9350
9347
  placeholder: "\u7269\u6D41\u5355\u53F7",
9351
9348
  onChange: function onChange(e) {
@@ -9357,6 +9354,9 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9357
9354
  //物流快照
9358
9355
  var LogisticsSnapshot = function LogisticsSnapshot() {
9359
9356
  return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9357
+ style: {
9358
+ marginTop: '8px'
9359
+ },
9360
9360
  disabled: true,
9361
9361
  placeholder: "\u7269\u6D41\u5FEB\u7167",
9362
9362
  onChange: function onChange(e) {
@@ -9655,6 +9655,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9655
9655
  pageNo: page,
9656
9656
  pageSize: pageSize
9657
9657
  }));
9658
+ queryItems();
9658
9659
  };
9659
9660
  /**
9660
9661
  *
@@ -9749,7 +9750,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9749
9750
  _onCancel();
9750
9751
  };
9751
9752
  return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
9752
- title: '选择商品编码',
9753
+ title: '选择商品',
9753
9754
  okText: '确认',
9754
9755
  cancelText: '取消',
9755
9756
  visible: visible,
@@ -9759,26 +9760,6 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9759
9760
  },
9760
9761
  onOk: onOk,
9761
9762
  wrapClassName: "goodModal"
9762
- }, /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
9763
- type: "card",
9764
- activeKey: searchParams.type,
9765
- onChange: function onChange(e) {
9766
- var params = _objectSpread2(_objectSpread2({}, searchParams), {}, {
9767
- type: e,
9768
- pageNo: 1
9769
- });
9770
- setSearch(params);
9771
- }
9772
- }, tabs.map(function (tab) {
9773
- return /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
9774
- tab: tab.tab + (tab.key === 'select' ? "(".concat(selectList.length, ")") : ''),
9775
- key: tab.key
9776
- });
9777
- })), /*#__PURE__*/React__default['default'].createElement("div", {
9778
- className: "searchBox",
9779
- style: {
9780
- display: searchParams.type === 'select' ? 'none' : ''
9781
- }
9782
9763
  }, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
9783
9764
  layout: "inline"
9784
9765
  }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
@@ -9790,7 +9771,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9790
9771
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
9791
9772
  type: "primary",
9792
9773
  htmlType: "submit"
9793
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u91CD\u7F6E")))), /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
9774
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u91CD\u7F6E"))), /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
9794
9775
  spinning: loading
9795
9776
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
9796
9777
  rowSelection: rowSelection,
@@ -10168,11 +10149,10 @@ var BsExchange = function BsExchange(props) {
10168
10149
  });
10169
10150
  }, [value]);
10170
10151
  var getListHandle = function getListHandle(list, val) {
10171
- var _val$bsExchangeType;
10152
+ var _val$bsExchangeType, _val$bsExchangeType2;
10172
10153
  //如果是原单换
10173
10154
  if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
10174
10155
  return list.reduce(function (prv, next) {
10175
- var _val$bsExchangeType2;
10176
10156
  next.canDelete = false;
10177
10157
  //数量大于1 拆开
10178
10158
  if (next.number > 1) {
@@ -10181,12 +10161,12 @@ var BsExchange = function BsExchange(props) {
10181
10161
  return t;
10182
10162
  });
10183
10163
  prv.push.apply(prv, _toConsumableArray(newList));
10184
- } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10164
+ } else {
10185
10165
  prv.push(_objectSpread2({}, next));
10186
10166
  }
10187
10167
  return prv;
10188
10168
  }, []);
10189
- } else {
10169
+ } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10190
10170
  //补发换货
10191
10171
  return list.reduce(function (prv, next, index) {
10192
10172
  next.canDelete = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.7.15-alpha.11",
3
+ "version": "0.7.15-alpha.17",
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": "^0.7.15-alpha.11",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.17",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "umi-request": "^1.4.0"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "b2452c95f3529ac1825c4c260a0485fe292ec176"
61
+ "gitHead": "a81a561303b90eed6c239bb61e77880800d5489e"
62
62
  }