@fle-ui/plus-choose-site-goods 1.1.12-alpha.0 → 1.1.15-alpha.0

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/es/index.d.ts CHANGED
@@ -18,7 +18,6 @@ export interface ChooseSiteGoodsProps extends ModalProps {
18
18
  hiddenColumns?: Array<string>;
19
19
  hiddenSearchProps?: Array<string>;
20
20
  needControl?: boolean;
21
- customParams?: Record<string, any>;
22
21
  }
23
22
  declare const ChooseSiteGoods: FC<ChooseSiteGoodsProps>;
24
23
  export default ChooseSiteGoods;
package/es/index.js CHANGED
@@ -31,7 +31,7 @@ import "antd/es/input/style";
31
31
  import _Input from "antd/es/input";
32
32
  import "antd/es/tabs/style";
33
33
  import _Tabs from "antd/es/tabs";
34
- var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "showMore", "showMoreText", "tabsConfig", "hiddenColumns", "hiddenSearchProps", "needControl", "customParams"];
34
+ var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "showMore", "showMoreText", "tabsConfig", "hiddenColumns", "hiddenSearchProps", "needControl"];
35
35
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
36
36
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
37
37
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -97,8 +97,6 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
97
97
  hiddenSearchProps = _props$hiddenSearchPr === void 0 ? [] : _props$hiddenSearchPr,
98
98
  _props$needControl = props.needControl,
99
99
  needControl = _props$needControl === void 0 ? false : _props$needControl,
100
- _props$customParams = props.customParams,
101
- customParams = _props$customParams === void 0 ? {} : _props$customParams,
102
100
  otherProps = _objectWithoutProperties(props, _excluded);
103
101
  var showTabs = useRef(tabs.filter(function (tab) {
104
102
  return tabsConfig.includes(tab.key);
@@ -224,7 +222,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
224
222
  }).join(',') : '',
225
223
  flagIndustry: searchParams.flagIndustry,
226
224
  flagCategory: ((_searchParams$flagCat = searchParams.flagCategory) === null || _searchParams$flagCat === void 0 ? void 0 : _searchParams$flagCat.length) ? searchParams.flagCategory[searchParams.flagCategory.length - 1] : undefined
227
- }, customParams);
225
+ });
228
226
  if ((_searchParams$priceTy = searchParams.priceType) === null || _searchParams$priceTy === void 0 ? void 0 : _searchParams$priceTy.includes('once')) {
229
227
  params['isOnce'] = 1;
230
228
  }
@@ -601,7 +599,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
601
599
  // 获取全局控制状态
602
600
  var getGoodControlInfo = /*#__PURE__*/function () {
603
601
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
604
- var res, _res$data3;
602
+ var res, _res$data3, _res$data4;
605
603
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
606
604
  while (1) switch (_context7.prev = _context7.next) {
607
605
  case 0:
@@ -611,8 +609,8 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
611
609
  res = _context7.sent;
612
610
  if (res === null || res === void 0 ? void 0 : res.success) {
613
611
  setShow({
614
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
615
- supplierShow: true
612
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
613
+ supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
616
614
  });
617
615
  }
618
616
  case 4:
package/lib/index.d.ts CHANGED
@@ -18,7 +18,6 @@ export interface ChooseSiteGoodsProps extends ModalProps {
18
18
  hiddenColumns?: Array<string>;
19
19
  hiddenSearchProps?: Array<string>;
20
20
  needControl?: boolean;
21
- customParams?: Record<string, any>;
22
21
  }
23
22
  declare const ChooseSiteGoods: FC<ChooseSiteGoodsProps>;
24
23
  export default ChooseSiteGoods;
package/lib/index.js CHANGED
@@ -20,7 +20,7 @@ var _request = _interopRequireDefault(require("./utils/request"));
20
20
  var _serviceEnv = require("./utils/serviceEnv");
21
21
  var _common = require("./utils/common");
22
22
  require("./index.less");
23
- var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "showMore", "showMoreText", "tabsConfig", "hiddenColumns", "hiddenSearchProps", "needControl", "customParams"];
23
+ var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "showMore", "showMoreText", "tabsConfig", "hiddenColumns", "hiddenSearchProps", "needControl"];
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
26
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -75,8 +75,6 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
75
75
  hiddenSearchProps = _props$hiddenSearchPr === void 0 ? [] : _props$hiddenSearchPr,
76
76
  _props$needControl = props.needControl,
77
77
  needControl = _props$needControl === void 0 ? false : _props$needControl,
78
- _props$customParams = props.customParams,
79
- customParams = _props$customParams === void 0 ? {} : _props$customParams,
80
78
  otherProps = _objectWithoutProperties(props, _excluded);
81
79
  var showTabs = (0, _react.useRef)(_options.tabs.filter(function (tab) {
82
80
  return tabsConfig.includes(tab.key);
@@ -202,7 +200,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
202
200
  }).join(',') : '',
203
201
  flagIndustry: searchParams.flagIndustry,
204
202
  flagCategory: ((_searchParams$flagCat = searchParams.flagCategory) === null || _searchParams$flagCat === void 0 ? void 0 : _searchParams$flagCat.length) ? searchParams.flagCategory[searchParams.flagCategory.length - 1] : undefined
205
- }, customParams);
203
+ });
206
204
  if ((_searchParams$priceTy = searchParams.priceType) === null || _searchParams$priceTy === void 0 ? void 0 : _searchParams$priceTy.includes('once')) {
207
205
  params['isOnce'] = 1;
208
206
  }
@@ -579,7 +577,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
579
577
  // 获取全局控制状态
580
578
  var getGoodControlInfo = /*#__PURE__*/function () {
581
579
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
582
- var res, _res$data3;
580
+ var res, _res$data3, _res$data4;
583
581
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
584
582
  while (1) switch (_context7.prev = _context7.next) {
585
583
  case 0:
@@ -589,8 +587,8 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
589
587
  res = _context7.sent;
590
588
  if (res === null || res === void 0 ? void 0 : res.success) {
591
589
  setShow({
592
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
593
- supplierShow: true
590
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
591
+ supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
594
592
  });
595
593
  }
596
594
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-choose-site-goods",
3
- "version": "1.1.12-alpha.0",
3
+ "version": "1.1.15-alpha.0",
4
4
  "description": "@fle-ui/plus-choose-site-goods",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@ant-design/icons": "^5.3.0",
29
29
  "@fle-tools/env": "^1.0.3",
30
- "@fle-ui/plus-address-selection": "^1.0.14",
31
- "@fle-ui/plus-choose-mall-goods": "^1.1.12-alpha.0"
30
+ "@fle-ui/plus-address-selection": "^1.0.15",
31
+ "@fle-ui/plus-choose-mall-goods": "^1.1.15-alpha.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "antd": ">=4.23.0 || >=5.0.0",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "d4a05bbe850cdda174903f0591a84b48a63dc7b3"
48
+ "gitHead": "7a7bd43ac08bdf95ee9040639078b87d121df077"
49
49
  }