@fle-ui/plus-choose-mall-goods 1.1.14-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.js CHANGED
@@ -53,11 +53,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
54
54
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
55
55
  import React, { useEffect, useState, useRef } from 'react';
56
+ import _ from 'lodash';
56
57
  import PlusConfigProvider from '@fle-ui/plus-config-provider';
57
58
  import AddressSelection from '@fle-ui/plus-address-selection';
58
59
  import ProImage from '@fle-ui/plus-image';
59
60
  import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
60
- import _ from 'lodash';
61
61
  import Icon from './components/icon';
62
62
  import ChangePrice from './components/changePrice';
63
63
  import { tabs, tabsSearchParamsMap, priceRangeForOnce, priceRangeForPurchase, profitRangeForOnce, profitRangeForPurchase, sortOptions } from './utils/options';
@@ -124,7 +124,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
124
124
  flagCategory: undefined,
125
125
  saleableCity: undefined // dgss可售卖城市
126
126
  };
127
- // http ------------ begin
128
127
  var $http = request({
129
128
  baseUrl: getApiHost(env),
130
129
  token: token,
@@ -600,7 +599,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
600
599
  // 获取全局控制状态
601
600
  var getGoodControlInfo = /*#__PURE__*/function () {
602
601
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
603
- var res, _res$data3;
602
+ var res, _res$data3, _res$data4;
604
603
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
605
604
  while (1) switch (_context7.prev = _context7.next) {
606
605
  case 0:
@@ -610,8 +609,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
610
609
  res = _context7.sent;
611
610
  if (res === null || res === void 0 ? void 0 : res.success) {
612
611
  setShow({
613
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
614
- 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
615
614
  });
616
615
  }
617
616
  case 4:
package/lib/index.js CHANGED
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _antd = require("antd");
10
+ var _lodash = _interopRequireDefault(require("lodash"));
10
11
  var _plusConfigProvider = _interopRequireDefault(require("@fle-ui/plus-config-provider"));
11
12
  var _plusAddressSelection = _interopRequireDefault(require("@fle-ui/plus-address-selection"));
12
13
  var _plusImage = _interopRequireDefault(require("@fle-ui/plus-image"));
13
14
  var _icons = require("@ant-design/icons");
14
- var _lodash = _interopRequireDefault(require("lodash"));
15
15
  var _icon = _interopRequireDefault(require("./components/icon"));
16
16
  var _changePrice = _interopRequireDefault(require("./components/changePrice"));
17
17
  var _options = require("./utils/options");
@@ -104,7 +104,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
104
104
  flagCategory: undefined,
105
105
  saleableCity: undefined // dgss可售卖城市
106
106
  };
107
- // http ------------ begin
108
107
  var $http = (0, _request.default)({
109
108
  baseUrl: (0, _serviceEnv.getApiHost)(env),
110
109
  token: token,
@@ -580,7 +579,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
580
579
  // 获取全局控制状态
581
580
  var getGoodControlInfo = /*#__PURE__*/function () {
582
581
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
583
- var res, _res$data3;
582
+ var res, _res$data3, _res$data4;
584
583
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
585
584
  while (1) switch (_context7.prev = _context7.next) {
586
585
  case 0:
@@ -590,8 +589,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
590
589
  res = _context7.sent;
591
590
  if (res === null || res === void 0 ? void 0 : res.success) {
592
591
  setShow({
593
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
594
- supplierShow: true
592
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
593
+ supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
595
594
  });
596
595
  }
597
596
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-choose-mall-goods",
3
- "version": "1.1.14-alpha.0",
3
+ "version": "1.1.15-alpha.0",
4
4
  "description": "@fle-ui/plus-choose-mall-goods",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -27,7 +27,7 @@
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"
30
+ "@fle-ui/plus-address-selection": "^1.0.15"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "antd": ">=4.23.0 || >=5.0.0",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "009fe2c46a634dc85deb25d46b39b611b09bafab"
47
+ "gitHead": "7a7bd43ac08bdf95ee9040639078b87d121df077"
48
48
  }