@fle-ui/plus-choose-site-goods 1.1.11 → 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
@@ -55,12 +55,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
55
  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; }
56
56
  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; }
57
57
  import React, { useEffect, useState, useRef } from 'react';
58
+ import _ from 'lodash';
58
59
  import ProImage from '@fle-ui/plus-image';
59
60
  import ChooseMallGoods from '@fle-ui/plus-choose-mall-goods';
60
61
  import AddressSelection from '@fle-ui/plus-address-selection';
61
62
  import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
62
63
  import PlusConfigProvider from '@fle-ui/plus-config-provider';
63
- import _ from 'lodash';
64
64
  import Icon from './components/icon';
65
65
  import { tabs, tabsSearchParamsMap, priceRangeForOnce, priceRangeForPurchase, profitRangeForOnce, profitRangeForPurchase, sortOptions } from './utils/options';
66
66
  import api from './utils/api';
@@ -121,13 +121,11 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
121
121
  flagCategory: undefined,
122
122
  saleableCity: undefined // dgss可售卖城市
123
123
  };
124
- // http ------------ begin
125
124
  var $http = request({
126
125
  baseUrl: getApiHost(env),
127
126
  token: token,
128
127
  loginErrFn: loginErrFn
129
128
  });
130
- // http ------------ end
131
129
  useEffect(function () {
132
130
  if (env) {
133
131
  window.localStorage.setItem('env', env);
@@ -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.js CHANGED
@@ -7,12 +7,12 @@ 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 _plusImage = _interopRequireDefault(require("@fle-ui/plus-image"));
11
12
  var _plusChooseMallGoods = _interopRequireDefault(require("@fle-ui/plus-choose-mall-goods"));
12
13
  var _plusAddressSelection = _interopRequireDefault(require("@fle-ui/plus-address-selection"));
13
14
  var _icons = require("@ant-design/icons");
14
15
  var _plusConfigProvider = _interopRequireDefault(require("@fle-ui/plus-config-provider"));
15
- var _lodash = _interopRequireDefault(require("lodash"));
16
16
  var _icon = _interopRequireDefault(require("./components/icon"));
17
17
  var _options = require("./utils/options");
18
18
  var _api = _interopRequireDefault(require("./utils/api"));
@@ -99,13 +99,11 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
99
99
  flagCategory: undefined,
100
100
  saleableCity: undefined // dgss可售卖城市
101
101
  };
102
- // http ------------ begin
103
102
  var $http = (0, _request.default)({
104
103
  baseUrl: (0, _serviceEnv.getApiHost)(env),
105
104
  token: token,
106
105
  loginErrFn: loginErrFn
107
106
  });
108
- // http ------------ end
109
107
  (0, _react.useEffect)(function () {
110
108
  if (env) {
111
109
  window.localStorage.setItem('env', env);
@@ -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.11",
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.11"
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": "f5a34365f0ab189629c08301c00018edb7243bc2"
48
+ "gitHead": "7a7bd43ac08bdf95ee9040639078b87d121df077"
49
49
  }