@fle-ui/plus-choose-mall-goods 1.1.1 → 1.1.3
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/README.md +18 -18
- package/es/components/changePrice/index.less +97 -97
- package/es/components/changePriceConfirm/index.less +78 -78
- package/es/index.js +77 -44
- package/es/index.less +98 -100
- package/lib/components/changePrice/index.less +97 -97
- package/lib/components/changePriceConfirm/index.less +78 -78
- package/lib/index.js +75 -44
- package/lib/index.less +98 -100
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -5,6 +5,8 @@ import "antd/es/table/style";
|
|
|
5
5
|
import _Table from "antd/es/table";
|
|
6
6
|
import "antd/es/spin/style";
|
|
7
7
|
import _Spin from "antd/es/spin";
|
|
8
|
+
import "antd/es/typography/style";
|
|
9
|
+
import _Typography from "antd/es/typography";
|
|
8
10
|
import "antd/es/tooltip/style";
|
|
9
11
|
import _Tooltip from "antd/es/tooltip";
|
|
10
12
|
import "antd/es/row/style";
|
|
@@ -48,8 +50,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
48
50
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
49
51
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
50
52
|
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; }
|
|
51
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
53
|
+
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; }
|
|
52
54
|
import React, { useEffect, useState, useRef } from 'react';
|
|
55
|
+
import PlusConfigProvider from '@fle-ui/plus-config-provider';
|
|
53
56
|
import AddressSelection from '@fle-ui/plus-address-selection';
|
|
54
57
|
import ProImage from '@fle-ui/plus-image';
|
|
55
58
|
import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
@@ -199,7 +202,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
199
202
|
setLoading = _useState14[1];
|
|
200
203
|
var getGoodsList = /*#__PURE__*/function () {
|
|
201
204
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
202
|
-
var _searchParams$flagCat, _searchParams$saleabl, params, text, apiKey, res, _res$data, _res$data2, list, jdGoods;
|
|
205
|
+
var _searchParams$flagCat, _searchParams$priceTy, _searchParams$priceTy2, _searchParams$saleabl, params, text, apiKey, res, _res$data, _res$data2, list, jdGoods;
|
|
203
206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
204
207
|
while (1) switch (_context.prev = _context.next) {
|
|
205
208
|
case 0:
|
|
@@ -219,7 +222,14 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
219
222
|
flagTags: searchParams.flagTags,
|
|
220
223
|
flagIndustry: searchParams.flagIndustry,
|
|
221
224
|
flagCategory: ((_searchParams$flagCat = searchParams.flagCategory) === null || _searchParams$flagCat === void 0 ? void 0 : _searchParams$flagCat.length) ? searchParams.flagCategory[searchParams.flagCategory.length - 1] : undefined
|
|
222
|
-
});
|
|
225
|
+
});
|
|
226
|
+
if ((_searchParams$priceTy = searchParams.priceType) === null || _searchParams$priceTy === void 0 ? void 0 : _searchParams$priceTy.includes('once')) {
|
|
227
|
+
params['isOnce'] = 1;
|
|
228
|
+
}
|
|
229
|
+
if ((_searchParams$priceTy2 = searchParams.priceType) === null || _searchParams$priceTy2 === void 0 ? void 0 : _searchParams$priceTy2.includes('purchase')) {
|
|
230
|
+
params['isPurchase'] = 1;
|
|
231
|
+
}
|
|
232
|
+
// 价格区间
|
|
223
233
|
if (searchParams.priceRangeMin !== undefined) {
|
|
224
234
|
params[searchParams.priceType + 'Min'] = Number(searchParams.priceRangeMin * 100);
|
|
225
235
|
}
|
|
@@ -255,9 +265,9 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
255
265
|
apiKey = '';
|
|
256
266
|
if (mode === 1) apiKey = 'getGoodsList';
|
|
257
267
|
if (mode === 2) apiKey = 'getGoodsListForTemplate';
|
|
258
|
-
_context.next =
|
|
268
|
+
_context.next = 16;
|
|
259
269
|
return $http.post(api[apiKey], params);
|
|
260
|
-
case
|
|
270
|
+
case 16:
|
|
261
271
|
res = _context.sent;
|
|
262
272
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
263
273
|
list = (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [];
|
|
@@ -273,15 +283,15 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
273
283
|
getJdStock(list, jdGoods);
|
|
274
284
|
}
|
|
275
285
|
}
|
|
276
|
-
case
|
|
277
|
-
_context.prev =
|
|
286
|
+
case 18:
|
|
287
|
+
_context.prev = 18;
|
|
278
288
|
setLoading(false);
|
|
279
|
-
return _context.finish(
|
|
280
|
-
case
|
|
289
|
+
return _context.finish(18);
|
|
290
|
+
case 21:
|
|
281
291
|
case "end":
|
|
282
292
|
return _context.stop();
|
|
283
293
|
}
|
|
284
|
-
}, _callee, null, [[0,,
|
|
294
|
+
}, _callee, null, [[0,, 18, 21]]);
|
|
285
295
|
}));
|
|
286
296
|
return function getGoodsList() {
|
|
287
297
|
return _ref.apply(this, arguments);
|
|
@@ -628,7 +638,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
628
638
|
placeholder: "\u9009\u62E9\u884C\u4E1A\u6807\u7B7E",
|
|
629
639
|
allowClear: true
|
|
630
640
|
}), /*#__PURE__*/React.createElement(_Cascader, {
|
|
631
|
-
placeholder: "\u9009\u62E9\u5546\u54C1\
|
|
641
|
+
placeholder: "\u9009\u62E9\u5546\u54C1\u5206\u7C7B",
|
|
632
642
|
fieldNames: {
|
|
633
643
|
label: 'name',
|
|
634
644
|
value: 'id'
|
|
@@ -649,13 +659,13 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
649
659
|
})))
|
|
650
660
|
}, {
|
|
651
661
|
name: 'categoryTree',
|
|
652
|
-
show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('categoryTree')),
|
|
662
|
+
show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('categoryTree')) && searchParams.tab !== 'zy',
|
|
653
663
|
span: 8,
|
|
654
664
|
node: /*#__PURE__*/React.createElement(_Col, {
|
|
655
665
|
span: 8
|
|
656
666
|
}, /*#__PURE__*/React.createElement("div", {
|
|
657
667
|
className: "ww-search-flex"
|
|
658
|
-
},
|
|
668
|
+
}, /*#__PURE__*/React.createElement(_TreeSelect, {
|
|
659
669
|
style: {
|
|
660
670
|
flex: 1
|
|
661
671
|
},
|
|
@@ -664,7 +674,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
664
674
|
maxHeight: 400,
|
|
665
675
|
overflow: 'auto'
|
|
666
676
|
},
|
|
667
|
-
placeholder: "\u9009\u62E9\
|
|
677
|
+
placeholder: "\u9009\u62E9\u7CFB\u7EDF\u7C7B\u76EE",
|
|
668
678
|
allowClear: true,
|
|
669
679
|
onChange: function onChange(e) {
|
|
670
680
|
handleChangeParams({
|
|
@@ -796,11 +806,11 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
796
806
|
span: 8
|
|
797
807
|
}, /*#__PURE__*/React.createElement("div", {
|
|
798
808
|
className: "ww-search-flex"
|
|
799
|
-
},
|
|
809
|
+
}, /*#__PURE__*/React.createElement(_Select, {
|
|
800
810
|
showSearch: true,
|
|
801
811
|
mode: "multiple",
|
|
802
812
|
allowClear: true,
|
|
803
|
-
placeholder: "\
|
|
813
|
+
placeholder: "\u8BF7\u9009\u62E9\u53EF\u552E\u5356\u57CE\u5E02",
|
|
804
814
|
onChange: function onChange(v) {
|
|
805
815
|
handleChangeParams({
|
|
806
816
|
saleableCity: v
|
|
@@ -821,20 +831,20 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
821
831
|
}))))
|
|
822
832
|
}, {
|
|
823
833
|
name: 'addressCodes',
|
|
824
|
-
show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('addressCodes')),
|
|
834
|
+
show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('addressCodes')) && searchParams.tab !== 'zy',
|
|
825
835
|
span: 8,
|
|
826
836
|
node: /*#__PURE__*/React.createElement(_Col, {
|
|
827
837
|
span: 8
|
|
828
838
|
}, /*#__PURE__*/React.createElement("div", {
|
|
829
839
|
className: "ww-search-flex"
|
|
830
|
-
},
|
|
840
|
+
}, /*#__PURE__*/React.createElement(AddressSelection, {
|
|
831
841
|
value: searchParams.addressCodes,
|
|
832
842
|
onChange: function onChange(v) {
|
|
833
843
|
handleChangeParams({
|
|
834
844
|
addressCodes: v
|
|
835
845
|
});
|
|
836
846
|
},
|
|
837
|
-
placeholder: "\u8BF7\u9009\u62E9\u5730
|
|
847
|
+
placeholder: "\u8BF7\u9009\u62E9\u53D1\u8D27\u5730",
|
|
838
848
|
level: 2,
|
|
839
849
|
style: {
|
|
840
850
|
flex: 1
|
|
@@ -848,7 +858,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
848
858
|
span: 8
|
|
849
859
|
}, /*#__PURE__*/React.createElement("div", {
|
|
850
860
|
className: "ww-search-flex"
|
|
851
|
-
},
|
|
861
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, {
|
|
852
862
|
onChange: handleSortChange,
|
|
853
863
|
value: searchParams.orderName,
|
|
854
864
|
optionType: "button",
|
|
@@ -991,7 +1001,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
991
1001
|
dataIndex: 'marketPriceMin',
|
|
992
1002
|
key: 'marketPriceMin',
|
|
993
1003
|
align: 'center',
|
|
994
|
-
width: 120,
|
|
995
1004
|
render: function render(text, record) {
|
|
996
1005
|
var _record$purchaseInfo, _record$purchaseInfo2, _record$purchaseInfo4, _record$purchaseInfo5;
|
|
997
1006
|
if (record.isPurchase === 0) return '-';
|
|
@@ -1006,7 +1015,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1006
1015
|
dataIndex: 'marketPriceMin',
|
|
1007
1016
|
key: 'marketPriceMin',
|
|
1008
1017
|
align: 'center',
|
|
1009
|
-
width: 120,
|
|
1010
1018
|
render: function render(text, record) {
|
|
1011
1019
|
var _record$onceInfo, _record$onceInfo2, _record$onceInfo4, _record$onceInfo5;
|
|
1012
1020
|
if (record.isOnce === 0) return '-';
|
|
@@ -1021,7 +1029,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1021
1029
|
dataIndex: 'salePriceMin',
|
|
1022
1030
|
key: 'salePriceMin',
|
|
1023
1031
|
align: 'center',
|
|
1024
|
-
width: 150,
|
|
1025
1032
|
render: function render(text, record) {
|
|
1026
1033
|
if ((record === null || record === void 0 ? void 0 : record.isPurchase) === 1) {
|
|
1027
1034
|
var _record$purchaseInfo6, _record$purchaseInfo12;
|
|
@@ -1051,7 +1058,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1051
1058
|
dataIndex: 'supplyPriceMin',
|
|
1052
1059
|
key: 'supplyPriceMin',
|
|
1053
1060
|
align: 'center',
|
|
1054
|
-
width: 120,
|
|
1055
1061
|
render: function render(text, record) {
|
|
1056
1062
|
if ((record === null || record === void 0 ? void 0 : record.isOnce) === 1) {
|
|
1057
1063
|
var _record$onceInfo6, _record$onceInfo7, _record$onceInfo9, _record$onceInfo10;
|
|
@@ -1128,7 +1134,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1128
1134
|
dataIndex: 'marketPriceMax',
|
|
1129
1135
|
key: 'marketPriceMax',
|
|
1130
1136
|
align: 'center',
|
|
1131
|
-
width: 98,
|
|
1132
1137
|
render: function render(text, record) {
|
|
1133
1138
|
var _record$onceInfo16, _record$onceInfo17, _record$onceInfo19, _record$onceInfo20;
|
|
1134
1139
|
if ((record === null || record === void 0 ? void 0 : (_record$onceInfo16 = record.onceInfo) === null || _record$onceInfo16 === void 0 ? void 0 : _record$onceInfo16.marketPriceMin) === (record === null || record === void 0 ? void 0 : (_record$onceInfo17 = record.onceInfo) === null || _record$onceInfo17 === void 0 ? void 0 : _record$onceInfo17.marketPriceMax)) {
|
|
@@ -1142,7 +1147,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1142
1147
|
dataIndex: 'salePriceMax',
|
|
1143
1148
|
key: 'salePriceMax',
|
|
1144
1149
|
align: 'center',
|
|
1145
|
-
width: 86,
|
|
1146
1150
|
render: function render(text, record) {
|
|
1147
1151
|
var _record$onceInfo21, _record$onceInfo22, _record$onceInfo24, _record$onceInfo25;
|
|
1148
1152
|
if ((record === null || record === void 0 ? void 0 : (_record$onceInfo21 = record.onceInfo) === null || _record$onceInfo21 === void 0 ? void 0 : _record$onceInfo21.salePriceMin) === (record === null || record === void 0 ? void 0 : (_record$onceInfo22 = record.onceInfo) === null || _record$onceInfo22 === void 0 ? void 0 : _record$onceInfo22.salePriceMax)) {
|
|
@@ -1193,9 +1197,32 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1193
1197
|
}, v === null || v === void 0 ? void 0 : v.slice(0, 50)));
|
|
1194
1198
|
}
|
|
1195
1199
|
}];
|
|
1200
|
+
// 系统类目
|
|
1201
|
+
var categoryTree = [{
|
|
1202
|
+
title: '系统类目',
|
|
1203
|
+
dataIndex: 'categoryId',
|
|
1204
|
+
key: 'categoryId',
|
|
1205
|
+
align: 'center',
|
|
1206
|
+
width: 170,
|
|
1207
|
+
render: function render(text, record) {
|
|
1208
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, record.isEntity ? '实物商品' : '虚拟商品'), /*#__PURE__*/React.createElement("div", null, record.categoryTreeName));
|
|
1209
|
+
}
|
|
1210
|
+
}];
|
|
1211
|
+
// 商品分类
|
|
1212
|
+
var flagCategoryInfo = [{
|
|
1213
|
+
title: '商品分类',
|
|
1214
|
+
key: 'flagCategoryInfo',
|
|
1215
|
+
align: 'center',
|
|
1216
|
+
width: 150,
|
|
1217
|
+
render: function render(_, record) {
|
|
1218
|
+
var _record$flagCategoryI;
|
|
1219
|
+
return (record === null || record === void 0 ? void 0 : (_record$flagCategoryI = record.flagCategoryInfo) === null || _record$flagCategoryI === void 0 ? void 0 : _record$flagCategoryI.treeName) || '-';
|
|
1220
|
+
}
|
|
1221
|
+
}];
|
|
1196
1222
|
var columns = function columns() {
|
|
1197
1223
|
var list = app === 1 ? columns1 : columns2;
|
|
1198
1224
|
var list2 = searchParams.tab === 'xhdg' && mode === 1 ? dgssColumns : [];
|
|
1225
|
+
var list3 = searchParams.tab === 'zy' ? flagCategoryInfo : categoryTree;
|
|
1199
1226
|
var _columns = [{
|
|
1200
1227
|
title: '商品',
|
|
1201
1228
|
dataIndex: 'goodsId',
|
|
@@ -1215,8 +1242,12 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1215
1242
|
needOssProcess: false
|
|
1216
1243
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1217
1244
|
className: 'table-goods-content'
|
|
1218
|
-
}, /*#__PURE__*/React.createElement(
|
|
1219
|
-
|
|
1245
|
+
}, /*#__PURE__*/React.createElement(_Typography.Paragraph, {
|
|
1246
|
+
ellipsis: {
|
|
1247
|
+
rows: 2,
|
|
1248
|
+
tooltip: true
|
|
1249
|
+
},
|
|
1250
|
+
className: "table-goods-content-title"
|
|
1220
1251
|
}, record.name), /*#__PURE__*/React.createElement("div", {
|
|
1221
1252
|
title: record.goodsId,
|
|
1222
1253
|
className: 'table-goods-content-sub-title'
|
|
@@ -1227,17 +1258,11 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1227
1258
|
dataIndex: 'brandName',
|
|
1228
1259
|
key: 'brandName',
|
|
1229
1260
|
align: 'center',
|
|
1230
|
-
width: 140
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
dataIndex: 'categoryId',
|
|
1234
|
-
key: 'categoryId',
|
|
1235
|
-
align: 'center',
|
|
1236
|
-
width: 170,
|
|
1237
|
-
render: function render(text, record) {
|
|
1238
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, record.isEntity ? '实物商品' : '虚拟商品'), /*#__PURE__*/React.createElement("div", null, record.categoryTreeName));
|
|
1261
|
+
width: 140,
|
|
1262
|
+
render: function render(_, record) {
|
|
1263
|
+
return record.brandName || '-';
|
|
1239
1264
|
}
|
|
1240
|
-
}].concat(list, [{
|
|
1265
|
+
}].concat(list3, list, [{
|
|
1241
1266
|
title: '库存',
|
|
1242
1267
|
dataIndex: 'stock',
|
|
1243
1268
|
key: 'stock',
|
|
@@ -1259,7 +1284,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1259
1284
|
key: 'action',
|
|
1260
1285
|
align: 'center',
|
|
1261
1286
|
fixed: 'right',
|
|
1262
|
-
width:
|
|
1287
|
+
width: 80,
|
|
1263
1288
|
render: function render(text, record) {
|
|
1264
1289
|
if (defaultSelectedGoodsIds.includes(record.goodsId)) {
|
|
1265
1290
|
return /*#__PURE__*/React.createElement(_Button, {
|
|
@@ -1334,12 +1359,19 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1334
1359
|
onSelectOk(changePriceGoodsIds, changePriceGoodss);
|
|
1335
1360
|
};
|
|
1336
1361
|
// 改价逻辑 end ----------
|
|
1337
|
-
return /*#__PURE__*/React.createElement(
|
|
1338
|
-
|
|
1362
|
+
return /*#__PURE__*/React.createElement(PlusConfigProvider, {
|
|
1363
|
+
prefixCls: "ant"
|
|
1364
|
+
}, /*#__PURE__*/React.createElement(_Modal, _extends({
|
|
1365
|
+
title: "\u6311\u9009\u5546\u54C1",
|
|
1339
1366
|
open: true,
|
|
1340
1367
|
footer: null,
|
|
1341
1368
|
width: 1366,
|
|
1342
1369
|
onCancel: onClose,
|
|
1370
|
+
styles: {
|
|
1371
|
+
body: {
|
|
1372
|
+
padding: '0 16px'
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1343
1375
|
className: "choose-mall-goods-modal",
|
|
1344
1376
|
centered: true
|
|
1345
1377
|
}, otherProps), renderTabs(), renderMainSearch(), renderSearch2(), /*#__PURE__*/React.createElement(_Table, {
|
|
@@ -1351,7 +1383,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1351
1383
|
current: pageNo,
|
|
1352
1384
|
position: ['bottomRight'],
|
|
1353
1385
|
total: total,
|
|
1354
|
-
|
|
1386
|
+
size: 'default',
|
|
1387
|
+
showQuickJumper: false,
|
|
1355
1388
|
showSizeChanger: true,
|
|
1356
1389
|
defaultPageSize: pageSize || 10,
|
|
1357
1390
|
onChange: function onChange(page, size) {
|
|
@@ -1370,7 +1403,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1370
1403
|
marginTop: '20px'
|
|
1371
1404
|
},
|
|
1372
1405
|
scroll: {
|
|
1373
|
-
x:
|
|
1406
|
+
x: 1800,
|
|
1374
1407
|
y: 500
|
|
1375
1408
|
},
|
|
1376
1409
|
rowSelection: multiple ? rowSelection : undefined
|
|
@@ -1385,6 +1418,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
|
|
|
1385
1418
|
changePriceGoodsIds: changePriceGoodsIds,
|
|
1386
1419
|
isAllSelf: searchParams.tab === 'zy',
|
|
1387
1420
|
onSuccess: onChangePriceSuccess
|
|
1388
|
-
}));
|
|
1421
|
+
})));
|
|
1389
1422
|
};
|
|
1390
1423
|
export default ChooseMallGoods;
|
package/es/index.less
CHANGED
|
@@ -1,100 +1,98 @@
|
|
|
1
|
-
.choose-mall-goods-modal {
|
|
2
|
-
.ww-search {
|
|
3
|
-
background-color: #fafafa;
|
|
4
|
-
padding: 20px;
|
|
5
|
-
.ww-search-flex {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
.ww-search-range-input {
|
|
11
|
-
flex: 1;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.main-search {
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
margin-bottom: 16px;
|
|
21
|
-
}
|
|
22
|
-
.search-2 {
|
|
23
|
-
.sort-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
.sort-item-label {
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
}
|
|
29
|
-
.sort-item-icon {
|
|
30
|
-
font-size: 10px;
|
|
31
|
-
margin-left: 4px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
.ant-radio-button-wrapper {
|
|
35
|
-
padding: 0 10px !important;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.table-goods-wrap {
|
|
39
|
-
display: flex;
|
|
40
|
-
|
|
41
|
-
.table-goods-img-wrap {
|
|
42
|
-
width: 60px;
|
|
43
|
-
height: 60px;
|
|
44
|
-
background: #ffffff;
|
|
45
|
-
border-radius: 1px;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
font-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
overflow:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
.choose-mall-goods-modal {
|
|
2
|
+
.ww-search {
|
|
3
|
+
background-color: #fafafa;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
.ww-search-flex {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
.ww-search-range-input {
|
|
11
|
+
flex: 1;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.main-search {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
margin-bottom: 16px;
|
|
21
|
+
}
|
|
22
|
+
.search-2 {
|
|
23
|
+
.sort-item {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
.sort-item-label {
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
}
|
|
29
|
+
.sort-item-icon {
|
|
30
|
+
font-size: 10px;
|
|
31
|
+
margin-left: 4px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.ant-radio-button-wrapper {
|
|
35
|
+
padding: 0 10px !important;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.table-goods-wrap {
|
|
39
|
+
display: flex;
|
|
40
|
+
|
|
41
|
+
.table-goods-img-wrap {
|
|
42
|
+
width: 60px;
|
|
43
|
+
height: 60px;
|
|
44
|
+
background: #ffffff;
|
|
45
|
+
border-radius: 1px;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
.pro-image {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
object-fit: cover;
|
|
54
|
+
.ant-image {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.table-goods-content {
|
|
62
|
+
margin-left: 10px;
|
|
63
|
+
flex: 1;
|
|
64
|
+
|
|
65
|
+
.table-goods-content-title {
|
|
66
|
+
height: 34px;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
color: #666666;
|
|
70
|
+
line-height: 17px;
|
|
71
|
+
text-overflow: -o-ellipsis-lastline;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
display: -webkit-box;
|
|
75
|
+
-webkit-line-clamp: 2;
|
|
76
|
+
line-clamp: 2;
|
|
77
|
+
-webkit-box-orient: vertical;
|
|
78
|
+
text-align: left;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.table-goods-content-sub-title {
|
|
82
|
+
text-align: left;
|
|
83
|
+
height: 17px;
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
color: #666666;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
margin-top: 9px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ml-3 {
|
|
96
|
+
margin-left: 3px;
|
|
97
|
+
}
|
|
98
|
+
}
|