@kmkf-fe-packages/basic-components 0.24.0-alpha.0 → 0.24.0-alpha.2
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 +412 -44
- package/dist/index.js +411 -43
- package/dist/src/business/Address/index.d.ts +2 -0
- package/dist/src/business/TBGoodSerial/index.d.ts +2 -2
- package/dist/src/common/Goods/RichItem.d.ts +26 -0
- package/dist/src/common/Goods/goodModel.d.ts +1 -0
- package/dist/src/common/Sku/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -369,6 +369,15 @@ function _regeneratorRuntime() {
|
|
|
369
369
|
}
|
|
370
370
|
}, exports;
|
|
371
371
|
}
|
|
372
|
+
function _typeof(obj) {
|
|
373
|
+
"@babel/helpers - typeof";
|
|
374
|
+
|
|
375
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
376
|
+
return typeof obj;
|
|
377
|
+
} : function (obj) {
|
|
378
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
379
|
+
}, _typeof(obj);
|
|
380
|
+
}
|
|
372
381
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
373
382
|
try {
|
|
374
383
|
var info = gen[key](arg);
|
|
@@ -7726,7 +7735,10 @@ var ShopNameSelect = function ShopNameSelect(props) {
|
|
|
7726
7735
|
function ApaasAddress(props) {
|
|
7727
7736
|
var value = props.value,
|
|
7728
7737
|
onChange = props.onChange,
|
|
7729
|
-
disabled = props.disabled
|
|
7738
|
+
disabled = props.disabled,
|
|
7739
|
+
_props$showIdentify = props.showIdentify,
|
|
7740
|
+
showIdentify = _props$showIdentify === void 0 ? true : _props$showIdentify,
|
|
7741
|
+
type = props.type;
|
|
7730
7742
|
var changeCity = function changeCity(city) {
|
|
7731
7743
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
7732
7744
|
address: city
|
|
@@ -7738,7 +7750,20 @@ function ApaasAddress(props) {
|
|
|
7738
7750
|
detail: e.target.value
|
|
7739
7751
|
});
|
|
7740
7752
|
};
|
|
7741
|
-
|
|
7753
|
+
var handleParseLogistics = function handleParseLogistics(val) {
|
|
7754
|
+
var params = {
|
|
7755
|
+
detail: val === null || val === void 0 ? void 0 : val.addressDetail,
|
|
7756
|
+
address: []
|
|
7757
|
+
};
|
|
7758
|
+
var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
|
|
7759
|
+
if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
|
|
7760
|
+
params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
|
|
7761
|
+
}
|
|
7762
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(params);
|
|
7763
|
+
};
|
|
7764
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showIdentify && /*#__PURE__*/React__default['default'].createElement(ParseLogistics, {
|
|
7765
|
+
onChange: handleParseLogistics
|
|
7766
|
+
}), /*#__PURE__*/React__default['default'].createElement(Province, {
|
|
7742
7767
|
value: value === null || value === void 0 ? void 0 : value.address,
|
|
7743
7768
|
onChange: changeCity,
|
|
7744
7769
|
disabled: disabled
|
|
@@ -7936,7 +7961,9 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
7936
7961
|
maxLength = props.maxLength,
|
|
7937
7962
|
shopList = props.shopList,
|
|
7938
7963
|
changeSku = props.changeSku,
|
|
7939
|
-
width = props.width
|
|
7964
|
+
width = props.width,
|
|
7965
|
+
_props$numIidType = props.numIidType,
|
|
7966
|
+
numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
|
|
7940
7967
|
var _useState = React.useState([]),
|
|
7941
7968
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7942
7969
|
selectList = _useState2[0],
|
|
@@ -7953,6 +7980,25 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
7953
7980
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
7954
7981
|
loading = _useState8[0],
|
|
7955
7982
|
setLoading = _useState8[1];
|
|
7983
|
+
var transformIdType = function transformIdType(id) {
|
|
7984
|
+
if (!['string', 'number'].includes(_typeof(id))) return id;
|
|
7985
|
+
return numIidType === 'string' ? id + '' : +id;
|
|
7986
|
+
};
|
|
7987
|
+
var transformType = function transformType(item) {
|
|
7988
|
+
if (!(item === null || item === void 0 ? void 0 : item.numIid)) return item;
|
|
7989
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
7990
|
+
numIid: transformIdType(item.numIid)
|
|
7991
|
+
});
|
|
7992
|
+
};
|
|
7993
|
+
var handleSetSelect = function handleSetSelect(list) {
|
|
7994
|
+
return setSelect(list.map(transformType));
|
|
7995
|
+
};
|
|
7996
|
+
var handleSelectIds = function handleSelectIds(list) {
|
|
7997
|
+
return setSelectIds(list.map(transformIdType));
|
|
7998
|
+
};
|
|
7999
|
+
var handleSetGoodList = function handleSetGoodList(list) {
|
|
8000
|
+
return setGoodList(list.map(transformType));
|
|
8001
|
+
};
|
|
7956
8002
|
var _useState9 = React.useState({
|
|
7957
8003
|
apiName: 'queryItems',
|
|
7958
8004
|
desc: true,
|
|
@@ -8046,15 +8092,15 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8046
8092
|
var newSelect = selectList.filter(function (item) {
|
|
8047
8093
|
return item.numIid !== good.numIid;
|
|
8048
8094
|
});
|
|
8049
|
-
|
|
8095
|
+
handleSetSelect(_toConsumableArray(newSelect));
|
|
8050
8096
|
var ids = newSelect.map(function (item) {
|
|
8051
8097
|
return item.numIid;
|
|
8052
8098
|
});
|
|
8053
|
-
|
|
8099
|
+
handleSelectIds(ids);
|
|
8054
8100
|
} else {
|
|
8055
8101
|
if (type === 4 || changeSku) {
|
|
8056
|
-
|
|
8057
|
-
|
|
8102
|
+
handleSetSelect([good]);
|
|
8103
|
+
handleSelectIds([good.numIid]);
|
|
8058
8104
|
} else {
|
|
8059
8105
|
if (selectList.length >= maxLength) {
|
|
8060
8106
|
antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxLength, "\u5F20"));
|
|
@@ -8067,14 +8113,14 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8067
8113
|
var newSelectList = selectList.filter(function (item) {
|
|
8068
8114
|
return item.numIid !== good.numIid;
|
|
8069
8115
|
});
|
|
8070
|
-
|
|
8116
|
+
handleSetSelect(newSelectList);
|
|
8071
8117
|
var _ids = newSelectList.map(function (item) {
|
|
8072
8118
|
return item.numIid;
|
|
8073
8119
|
});
|
|
8074
|
-
|
|
8120
|
+
handleSelectIds(_ids);
|
|
8075
8121
|
} else {
|
|
8076
|
-
|
|
8077
|
-
|
|
8122
|
+
handleSetSelect([].concat(_toConsumableArray(selectList), [good]));
|
|
8123
|
+
handleSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
|
|
8078
8124
|
}
|
|
8079
8125
|
}
|
|
8080
8126
|
}
|
|
@@ -8166,7 +8212,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8166
8212
|
items.forEach(function (item) {
|
|
8167
8213
|
item.platform = platform;
|
|
8168
8214
|
});
|
|
8169
|
-
|
|
8215
|
+
handleSetGoodList(_toConsumableArray(items));
|
|
8170
8216
|
setTotal(totalCount);
|
|
8171
8217
|
_context.next = 26;
|
|
8172
8218
|
break;
|
|
@@ -8194,7 +8240,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8194
8240
|
item.title = item.productName;
|
|
8195
8241
|
item.platform = platform;
|
|
8196
8242
|
});
|
|
8197
|
-
|
|
8243
|
+
handleSetGoodList(_toConsumableArray(newList));
|
|
8198
8244
|
setTotal(_total);
|
|
8199
8245
|
if (platform === 'sph' && nextKey && !nextKeyList.includes(nextKey)) {
|
|
8200
8246
|
setNextKeyList([].concat(_toConsumableArray(nextKeyList), [nextKey]));
|
|
@@ -8280,12 +8326,12 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8280
8326
|
React.useEffect(function () {
|
|
8281
8327
|
setPlatformHandle(platform);
|
|
8282
8328
|
if (imgList.length) {
|
|
8283
|
-
|
|
8329
|
+
handleSetSelect(imgList);
|
|
8284
8330
|
var ids = imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
|
|
8285
8331
|
return item.numIid;
|
|
8286
8332
|
});
|
|
8287
8333
|
if (!(changeSku || type === 4)) {
|
|
8288
|
-
|
|
8334
|
+
handleSelectIds(ids);
|
|
8289
8335
|
}
|
|
8290
8336
|
}
|
|
8291
8337
|
}, [platform]);
|
|
@@ -8383,9 +8429,9 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
8383
8429
|
spinning: loading
|
|
8384
8430
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
8385
8431
|
className: "goodsMain"
|
|
8386
|
-
}, (searchParams.type == 'select' ? selectList : goodList).map(function (good) {
|
|
8432
|
+
}, (searchParams.type == 'select' ? selectList : goodList).map(function (good, index) {
|
|
8387
8433
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
8388
|
-
key: good.numIid,
|
|
8434
|
+
key: good.numIid + "".concat(index),
|
|
8389
8435
|
className: "goodItem ".concat(selectIds.includes(good.numIid) ? 'active' : ''),
|
|
8390
8436
|
onClick: function onClick() {
|
|
8391
8437
|
changeItem(good);
|
|
@@ -8447,7 +8493,7 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8447
8493
|
});
|
|
8448
8494
|
var handleSure = /*#__PURE__*/function () {
|
|
8449
8495
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8450
|
-
var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _yield$request, _yield$request$data, data;
|
|
8496
|
+
var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _yield$request, _yield$request$data, data;
|
|
8451
8497
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8452
8498
|
while (1) switch (_context.prev = _context.next) {
|
|
8453
8499
|
case 0:
|
|
@@ -8482,7 +8528,10 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8482
8528
|
}) === null || _ref4 === void 0 ? void 0 : _ref4.picUrl,
|
|
8483
8529
|
outerSkuId: (_ref5 = SKU || {
|
|
8484
8530
|
outerSkuId: ''
|
|
8485
|
-
}) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId
|
|
8531
|
+
}) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId,
|
|
8532
|
+
skuId: ((_ref6 = SKU || {
|
|
8533
|
+
skuId: ''
|
|
8534
|
+
}) === null || _ref6 === void 0 ? void 0 : _ref6.skuId) || ''
|
|
8486
8535
|
});
|
|
8487
8536
|
_context.next = 16;
|
|
8488
8537
|
break;
|
|
@@ -8503,12 +8552,15 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8503
8552
|
props.handleOk({
|
|
8504
8553
|
enableItemId: data.length > 0 ? data[0]['supplierItemOuterId'] : '',
|
|
8505
8554
|
enableSupplierName: data.length > 0 ? data[0]['supplierName'] : '',
|
|
8506
|
-
propertiesName: ((
|
|
8555
|
+
propertiesName: ((_ref7 = SKU || {
|
|
8507
8556
|
label: ''
|
|
8508
|
-
}) === null ||
|
|
8509
|
-
picUrl: (
|
|
8557
|
+
}) === null || _ref7 === void 0 ? void 0 : _ref7.label) || '',
|
|
8558
|
+
picUrl: (_ref8 = SKU || {
|
|
8510
8559
|
picUrl: ''
|
|
8511
|
-
}) === null ||
|
|
8560
|
+
}) === null || _ref8 === void 0 ? void 0 : _ref8.picUrl,
|
|
8561
|
+
skuId: ((_ref9 = SKU || {
|
|
8562
|
+
skuId: ''
|
|
8563
|
+
}) === null || _ref9 === void 0 ? void 0 : _ref9.skuId) || ''
|
|
8512
8564
|
});
|
|
8513
8565
|
case 16:
|
|
8514
8566
|
setVisible(false);
|
|
@@ -8886,8 +8938,324 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
8886
8938
|
}));
|
|
8887
8939
|
};
|
|
8888
8940
|
|
|
8941
|
+
var css_248z$6 = ".goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n.goodsBox.single-row .goodBox-Img.rich-item.with-pic,\n.goodsBox.single-row .goodBox-Img.rich-item.with-attr,\n.goodsBox.single-row .goodBox-Img.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context {\n flex-grow: 1;\n flex-shrink: 1;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n.goodBox-Img.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: wrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n.goodBox-Img.rich-item.with-pic {\n flex-basis: 90px;\n}\n.goodBox-Img.rich-item.with-attr {\n flex-basis: 150px;\n}\n.goodBox-Img.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n.goodBox-Img.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n.goodBox-Img.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n.goodBox-Img.rich-item .goods-imgBox {\n margin-bottom: 0;\n}\n.goodBox-Img.rich-item .right-context div {\n display: flex;\n}\n.goodBox-Img.rich-item .right-context div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
8942
|
+
styleInject(css_248z$6);
|
|
8943
|
+
|
|
8944
|
+
var GoodItem = function GoodItem(props) {
|
|
8945
|
+
var _props$isSingleRow = props.isSingleRow,
|
|
8946
|
+
isSingleRow = _props$isSingleRow === void 0 ? true : _props$isSingleRow,
|
|
8947
|
+
_props$value = props.value,
|
|
8948
|
+
value = _props$value === void 0 ? {
|
|
8949
|
+
shopId: '',
|
|
8950
|
+
imgList: []
|
|
8951
|
+
} : _props$value,
|
|
8952
|
+
_props$maxLength = props.maxLength,
|
|
8953
|
+
maxLength = _props$maxLength === void 0 ? 999999999 : _props$maxLength,
|
|
8954
|
+
onChange = props.onChange,
|
|
8955
|
+
_props$type = props.type,
|
|
8956
|
+
type = _props$type === void 0 ? 2 : _props$type,
|
|
8957
|
+
_props$shopList = props.shopList,
|
|
8958
|
+
shopList = _props$shopList === void 0 ? [] : _props$shopList,
|
|
8959
|
+
showHeader = props.showHeader,
|
|
8960
|
+
_props$showChangeBtn = props.showChangeBtn,
|
|
8961
|
+
otherOperations = props.otherOperations,
|
|
8962
|
+
canUpdateNumber = props.canUpdateNumber,
|
|
8963
|
+
enableItemId = props.enableItemId,
|
|
8964
|
+
enableSupplierName = props.enableSupplierName,
|
|
8965
|
+
userNick = props.userNick,
|
|
8966
|
+
disabled = props.disabled,
|
|
8967
|
+
changeSku = props.changeSku,
|
|
8968
|
+
width = props.width;
|
|
8969
|
+
var shopId = value.shopId,
|
|
8970
|
+
imgList = value.imgList;
|
|
8971
|
+
var _useState = React.useState(false),
|
|
8972
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
8973
|
+
visible = _useState2[0],
|
|
8974
|
+
setVisible = _useState2[1];
|
|
8975
|
+
var skuRef = React.useRef();
|
|
8976
|
+
var boxRef = React.useRef();
|
|
8977
|
+
//是否是淘宝店铺
|
|
8978
|
+
var isTaobaoPlat = React.useMemo(function () {
|
|
8979
|
+
return shopList.some(function (item) {
|
|
8980
|
+
return item.shopId === shopId && item.shopSourceStr === 'TAOBAO';
|
|
8981
|
+
});
|
|
8982
|
+
}, [shopId]);
|
|
8983
|
+
// 查询SKU
|
|
8984
|
+
var querySkus = /*#__PURE__*/function () {
|
|
8985
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
8986
|
+
var shopId, numIids;
|
|
8987
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8988
|
+
while (1) switch (_context.prev = _context.next) {
|
|
8989
|
+
case 0:
|
|
8990
|
+
shopId = _ref.shopId, numIids = _ref.numIids;
|
|
8991
|
+
return _context.abrupt("return", extendRequest('/qy/gdfw/workOrder/queryItemSkus', {
|
|
8992
|
+
method: 'post',
|
|
8993
|
+
data: {
|
|
8994
|
+
shopId: shopId,
|
|
8995
|
+
numIids: numIids
|
|
8996
|
+
}
|
|
8997
|
+
}));
|
|
8998
|
+
case 2:
|
|
8999
|
+
case "end":
|
|
9000
|
+
return _context.stop();
|
|
9001
|
+
}
|
|
9002
|
+
}, _callee);
|
|
9003
|
+
}));
|
|
9004
|
+
return function querySkus(_x) {
|
|
9005
|
+
return _ref2.apply(this, arguments);
|
|
9006
|
+
};
|
|
9007
|
+
}();
|
|
9008
|
+
//删除商品
|
|
9009
|
+
var handleDelete = function handleDelete(index) {
|
|
9010
|
+
var newSelect = imgList.filter(function (_, i) {
|
|
9011
|
+
return index !== i;
|
|
9012
|
+
});
|
|
9013
|
+
var newValue = {
|
|
9014
|
+
shopId: shopId,
|
|
9015
|
+
imgList: _toConsumableArray(newSelect)
|
|
9016
|
+
};
|
|
9017
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
9018
|
+
};
|
|
9019
|
+
//选择sku
|
|
9020
|
+
var handleSelectSku = function handleSelectSku(_ref3) {
|
|
9021
|
+
var enableItemId = _ref3.enableItemId,
|
|
9022
|
+
enableSupplierName = _ref3.enableSupplierName,
|
|
9023
|
+
propertiesName = _ref3.propertiesName,
|
|
9024
|
+
picUrl = _ref3.picUrl,
|
|
9025
|
+
outerSkuId = _ref3.outerSkuId,
|
|
9026
|
+
skuId = _ref3.skuId;
|
|
9027
|
+
var newList = JSON.parse(JSON.stringify(imgList));
|
|
9028
|
+
if (type === 4) {
|
|
9029
|
+
newList[newList.length - 1].itemId = enableItemId;
|
|
9030
|
+
newList[newList.length - 1].supplierName = enableSupplierName;
|
|
9031
|
+
} else {
|
|
9032
|
+
newList[newList.length - 1].propertiesName = propertiesName;
|
|
9033
|
+
}
|
|
9034
|
+
if (type === 1) {
|
|
9035
|
+
if (outerSkuId) newList[newList.length - 1].outerSkuId = outerSkuId;
|
|
9036
|
+
if (skuId) newList[newList.length - 1].skuId = skuId;
|
|
9037
|
+
}
|
|
9038
|
+
//替换成sku的图片
|
|
9039
|
+
picUrl && (newList[newList.length - 1].picUrl = picUrl);
|
|
9040
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
9041
|
+
shopId: shopId,
|
|
9042
|
+
imgList: newList
|
|
9043
|
+
});
|
|
9044
|
+
};
|
|
9045
|
+
//选择回调
|
|
9046
|
+
var onSubmit = /*#__PURE__*/function () {
|
|
9047
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(list) {
|
|
9048
|
+
var newList, newImgList, _yield$querySkus, data, _skuRef$current, options;
|
|
9049
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9050
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
9051
|
+
case 0:
|
|
9052
|
+
newList = list.map(function (item) {
|
|
9053
|
+
//过滤属性 只保存需要的字段
|
|
9054
|
+
var params = {
|
|
9055
|
+
uuid: kmkfUtils.uuid(),
|
|
9056
|
+
platform: item.platform,
|
|
9057
|
+
price: item.price,
|
|
9058
|
+
canDelete: true,
|
|
9059
|
+
title: item.title,
|
|
9060
|
+
outerId: item.outerId,
|
|
9061
|
+
picUrl: item.picUrl,
|
|
9062
|
+
numIid: item.numIid,
|
|
9063
|
+
skuId: item.skuId,
|
|
9064
|
+
outerSkuId: item.outerSkuId
|
|
9065
|
+
};
|
|
9066
|
+
// if (type === 1) {
|
|
9067
|
+
// params.outerId = item.outerId; //编码
|
|
9068
|
+
// }
|
|
9069
|
+
if (changeSku) {
|
|
9070
|
+
params.propertiesName = '';
|
|
9071
|
+
}
|
|
9072
|
+
// if (type === 4) {
|
|
9073
|
+
// if (enableItemId) {
|
|
9074
|
+
// params.itemId = '';
|
|
9075
|
+
// }
|
|
9076
|
+
// if (enableSupplierName) {
|
|
9077
|
+
// params.supplierName = '';
|
|
9078
|
+
// }
|
|
9079
|
+
// }
|
|
9080
|
+
return params;
|
|
9081
|
+
});
|
|
9082
|
+
newImgList = changeSku || type === 4 ? [].concat(_toConsumableArray(imgList), _toConsumableArray(newList)) : _toConsumableArray(newList);
|
|
9083
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
9084
|
+
shopId: shopId,
|
|
9085
|
+
imgList: newImgList
|
|
9086
|
+
});
|
|
9087
|
+
setVisible(false);
|
|
9088
|
+
//供应上编码组件 || 商品组件且可以选择sku
|
|
9089
|
+
if (!(type === 4 && (enableItemId || enableSupplierName) || type !== 4 && changeSku && isTaobaoPlat && list.length > 0)) {
|
|
9090
|
+
_context2.next = 10;
|
|
9091
|
+
break;
|
|
9092
|
+
}
|
|
9093
|
+
_context2.next = 7;
|
|
9094
|
+
return querySkus({
|
|
9095
|
+
shopId: shopId,
|
|
9096
|
+
numIids: list[0].numIid
|
|
9097
|
+
});
|
|
9098
|
+
case 7:
|
|
9099
|
+
_yield$querySkus = _context2.sent;
|
|
9100
|
+
data = _yield$querySkus.data;
|
|
9101
|
+
if (data.length > 0 && data[0]['skus'] && data[0]['skus']['length'] > 0) {
|
|
9102
|
+
options = data[0]['skus'].map(function (item) {
|
|
9103
|
+
return {
|
|
9104
|
+
label: item.propertiesName.split(';').map(function (i) {
|
|
9105
|
+
return i.split(':').slice(2);
|
|
9106
|
+
}).join(';'),
|
|
9107
|
+
value: item.skuId,
|
|
9108
|
+
picUrl: item.picUrl,
|
|
9109
|
+
outerSkuId: item === null || item === void 0 ? void 0 : item.outerSkuId,
|
|
9110
|
+
skuId: item.skuId
|
|
9111
|
+
};
|
|
9112
|
+
});
|
|
9113
|
+
(_skuRef$current = skuRef.current) === null || _skuRef$current === void 0 ? void 0 : _skuRef$current.open({
|
|
9114
|
+
shopId: shopId,
|
|
9115
|
+
numIids: list[0].numIid,
|
|
9116
|
+
options: options
|
|
9117
|
+
});
|
|
9118
|
+
}
|
|
9119
|
+
case 10:
|
|
9120
|
+
case "end":
|
|
9121
|
+
return _context2.stop();
|
|
9122
|
+
}
|
|
9123
|
+
}, _callee2);
|
|
9124
|
+
}));
|
|
9125
|
+
return function onSubmit(_x2) {
|
|
9126
|
+
return _ref4.apply(this, arguments);
|
|
9127
|
+
};
|
|
9128
|
+
}();
|
|
9129
|
+
var headerList = showHeader || {
|
|
9130
|
+
1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
|
|
9131
|
+
]
|
|
9132
|
+
}[type] || [];
|
|
9133
|
+
//修改参数
|
|
9134
|
+
var handleChangeValue = function handleChangeValue(key, index) {
|
|
9135
|
+
return function (e) {
|
|
9136
|
+
var _e$target;
|
|
9137
|
+
var newImgList = _toConsumableArray(imgList);
|
|
9138
|
+
newImgList[index][key] = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
9139
|
+
var newValue = {
|
|
9140
|
+
shopId: shopId,
|
|
9141
|
+
imgList: newImgList
|
|
9142
|
+
};
|
|
9143
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
9144
|
+
};
|
|
9145
|
+
};
|
|
9146
|
+
// TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
|
|
9147
|
+
var goodItemAttrs = [{
|
|
9148
|
+
isShow: headerList.includes('title'),
|
|
9149
|
+
key: 'title',
|
|
9150
|
+
label: '商品名称'
|
|
9151
|
+
}, {
|
|
9152
|
+
isShow: headerList.includes('outerId'),
|
|
9153
|
+
key: 'outerId',
|
|
9154
|
+
label: '商品编码'
|
|
9155
|
+
},
|
|
9156
|
+
// { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
|
|
9157
|
+
{
|
|
9158
|
+
isShow: headerList.includes('numIid'),
|
|
9159
|
+
key: 'numIid',
|
|
9160
|
+
label: '商品id'
|
|
9161
|
+
}, {
|
|
9162
|
+
isShow: changeSku && headerList.includes('skuId'),
|
|
9163
|
+
key: 'skuId',
|
|
9164
|
+
label: 'SKU ID'
|
|
9165
|
+
}, {
|
|
9166
|
+
isShow: changeSku && headerList.includes('outerSkuId'),
|
|
9167
|
+
key: 'outerSkuId',
|
|
9168
|
+
label: 'SKU 编码'
|
|
9169
|
+
}, {
|
|
9170
|
+
isShow: changeSku && headerList.includes('propertiesName'),
|
|
9171
|
+
key: 'propertiesName',
|
|
9172
|
+
label: 'SKU 信息'
|
|
9173
|
+
}];
|
|
9174
|
+
var hasPic = headerList.includes('picUrl');
|
|
9175
|
+
var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
9176
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9177
|
+
ref: boxRef,
|
|
9178
|
+
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
9179
|
+
}, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
|
|
9180
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9181
|
+
key: index,
|
|
9182
|
+
className: "goodBox-Img rich-item".concat(hasPic ? ' with-pic' : '').concat(hasAttr ? ' with-attr' : '')
|
|
9183
|
+
}, !disabled && /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9184
|
+
src: iconDelete,
|
|
9185
|
+
alt: "",
|
|
9186
|
+
className: "icon-close",
|
|
9187
|
+
onClick: function onClick() {
|
|
9188
|
+
handleDelete(index);
|
|
9189
|
+
}
|
|
9190
|
+
}), hasPic && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9191
|
+
className: "goods-imgBox",
|
|
9192
|
+
key: "".concat(img.picUrl, "-").concat(index, "-goods")
|
|
9193
|
+
}, img.platform !== 'taobao' ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9194
|
+
src: img.picUrl || defaultImg,
|
|
9195
|
+
className: "img",
|
|
9196
|
+
alt: ""
|
|
9197
|
+
}) : /*#__PURE__*/React__default['default'].createElement("a", {
|
|
9198
|
+
href: "https://item.taobao.com/item.htm?id=".concat(img.numIid),
|
|
9199
|
+
target: "_blank"
|
|
9200
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9201
|
+
src: img.picUrl || defaultImg,
|
|
9202
|
+
className: "img",
|
|
9203
|
+
alt: ""
|
|
9204
|
+
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9205
|
+
className: "right-context",
|
|
9206
|
+
key: "".concat(img.picUrl, "-").concat(index, "-context")
|
|
9207
|
+
}, goodItemAttrs.map(function (item) {
|
|
9208
|
+
return item.isShow && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9209
|
+
key: item.key
|
|
9210
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
9211
|
+
className: "good-item-attr"
|
|
9212
|
+
}, item.label), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9213
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(item.label),
|
|
9214
|
+
title: String(img[item.key] || ''),
|
|
9215
|
+
value: img[item.key],
|
|
9216
|
+
disabled: item.disabled || disabled,
|
|
9217
|
+
onChange: handleChangeValue(item.key, index)
|
|
9218
|
+
}));
|
|
9219
|
+
})));
|
|
9220
|
+
}), imgList.length < maxLength && !disabled ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9221
|
+
className: "goods-imgBox",
|
|
9222
|
+
onClick: function onClick() {
|
|
9223
|
+
if (!shopId) {
|
|
9224
|
+
antd.message.error('请选择店铺');
|
|
9225
|
+
return;
|
|
9226
|
+
}
|
|
9227
|
+
setVisible(true);
|
|
9228
|
+
}
|
|
9229
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9230
|
+
className: "add-btn",
|
|
9231
|
+
style: {
|
|
9232
|
+
marginTop: '15px'
|
|
9233
|
+
}
|
|
9234
|
+
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9235
|
+
className: "text"
|
|
9236
|
+
}, "\u6DFB\u52A0")) : null, visible ? /*#__PURE__*/React__default['default'].createElement(GoodsModal, {
|
|
9237
|
+
visible: visible,
|
|
9238
|
+
onSubmit: onSubmit,
|
|
9239
|
+
width: width,
|
|
9240
|
+
type: type,
|
|
9241
|
+
imgList: imgList,
|
|
9242
|
+
shopList: shopList,
|
|
9243
|
+
shopId: shopId,
|
|
9244
|
+
maxLength: maxLength,
|
|
9245
|
+
changeSku: changeSku,
|
|
9246
|
+
onCancel: function onCancel() {
|
|
9247
|
+
setVisible(false);
|
|
9248
|
+
}
|
|
9249
|
+
}) : null, /*#__PURE__*/React__default['default'].createElement(Sku, {
|
|
9250
|
+
handleOk: handleSelectSku,
|
|
9251
|
+
ref: skuRef,
|
|
9252
|
+
userNick: userNick,
|
|
9253
|
+
type: type
|
|
9254
|
+
}));
|
|
9255
|
+
};
|
|
9256
|
+
|
|
8889
9257
|
var TBGoodSerial = function TBGoodSerial(props) {
|
|
8890
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9258
|
+
return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
8891
9259
|
type: 1
|
|
8892
9260
|
}));
|
|
8893
9261
|
};
|
|
@@ -8898,8 +9266,8 @@ var Supplier = function Supplier(props) {
|
|
|
8898
9266
|
}));
|
|
8899
9267
|
};
|
|
8900
9268
|
|
|
8901
|
-
var css_248z$
|
|
8902
|
-
styleInject(css_248z$
|
|
9269
|
+
var css_248z$7 = ".cardBox {\n position: absolute;\n z-index: 1;\n border: 1px solid #e6e6e6;\n background-color: #fff;\n color: #303133;\n border-radius: 4px;\n overflow: auto;\n height: 200px;\n cursor: pointer;\n}\n.cardBox .cardli {\n padding: 7px 13px;\n width: 332px;\n}\n.cardBox .cardli:hover {\n background-color: #f5f7fa;\n}\n.cardBox .cardText {\n font-size: 14px;\n color: #333;\n margin: 0;\n padding: 0;\n line-height: 26px;\n}\n.cardBox .c-f60 {\n color: #f60;\n}\n.btn-discern {\n margin-left: 10px;\n height: 24px;\n font-size: 12px;\n color: #1B5BF3;\n border-color: #1B5BF3;\n padding: 0;\n}\n";
|
|
9270
|
+
styleInject(css_248z$7);
|
|
8903
9271
|
|
|
8904
9272
|
var Invoice = function Invoice(props) {
|
|
8905
9273
|
var _props$value = props.value,
|
|
@@ -9328,8 +9696,8 @@ var Payment = function Payment(props) {
|
|
|
9328
9696
|
}));
|
|
9329
9697
|
};
|
|
9330
9698
|
|
|
9331
|
-
var css_248z$
|
|
9332
|
-
styleInject(css_248z$
|
|
9699
|
+
var css_248z$8 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
|
|
9700
|
+
styleInject(css_248z$8);
|
|
9333
9701
|
|
|
9334
9702
|
var Item = antd.Form.Item;
|
|
9335
9703
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
@@ -9510,7 +9878,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9510
9878
|
}
|
|
9511
9879
|
};
|
|
9512
9880
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9513
|
-
className: css_248z$
|
|
9881
|
+
className: css_248z$8.interceptBox
|
|
9514
9882
|
}, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
9515
9883
|
label: '物流信息',
|
|
9516
9884
|
required: required,
|
|
@@ -10120,8 +10488,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
10120
10488
|
})) : null) : null);
|
|
10121
10489
|
};
|
|
10122
10490
|
|
|
10123
|
-
var css_248z$
|
|
10124
|
-
styleInject(css_248z$
|
|
10491
|
+
var css_248z$9 = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
10492
|
+
styleInject(css_248z$9);
|
|
10125
10493
|
|
|
10126
10494
|
var ItemList = function ItemList(props) {
|
|
10127
10495
|
var _props$value = props.value,
|
|
@@ -10561,7 +10929,7 @@ var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
|
|
|
10561
10929
|
// skuId: string;
|
|
10562
10930
|
// styleId: string;
|
|
10563
10931
|
// }
|
|
10564
|
-
var GoodItem = function GoodItem(props) {
|
|
10932
|
+
var GoodItem$1 = function GoodItem(props) {
|
|
10565
10933
|
var _props$value = props.value,
|
|
10566
10934
|
value = _props$value === void 0 ? [] : _props$value,
|
|
10567
10935
|
onChange = props.onChange,
|
|
@@ -10936,7 +11304,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
10936
11304
|
bsGoods: list
|
|
10937
11305
|
}));
|
|
10938
11306
|
};
|
|
10939
|
-
return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11307
|
+
return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
10940
11308
|
key: 'bsGoods'
|
|
10941
11309
|
}, props), {}, {
|
|
10942
11310
|
disabled: disabled,
|
|
@@ -11134,12 +11502,12 @@ var BsExchange = function BsExchange(props) {
|
|
|
11134
11502
|
onChange: function onChange(val) {
|
|
11135
11503
|
return changeTypeHandle(val);
|
|
11136
11504
|
}
|
|
11137
|
-
}), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11505
|
+
}), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11138
11506
|
key: 'bsExchangeGoods'
|
|
11139
11507
|
}, other), {}, {
|
|
11140
11508
|
disabled: disabled,
|
|
11141
11509
|
showChangeBtn: false
|
|
11142
|
-
})) : null, ['1', '3'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType5 = value.bsExchangeType) === null || _value$bsExchangeType5 === void 0 ? void 0 : _value$bsExchangeType5[0]) ? /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11510
|
+
})) : null, ['1', '3'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType5 = value.bsExchangeType) === null || _value$bsExchangeType5 === void 0 ? void 0 : _value$bsExchangeType5[0]) ? /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11143
11511
|
key: 'bsExchangeGoods'
|
|
11144
11512
|
}, other), {}, {
|
|
11145
11513
|
disabled: disabled,
|
|
@@ -11155,7 +11523,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
11155
11523
|
border: '1px dashed',
|
|
11156
11524
|
marginBottom: '8px'
|
|
11157
11525
|
}
|
|
11158
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11526
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11159
11527
|
key: 'bsReturnGoods'
|
|
11160
11528
|
}, other), {}, {
|
|
11161
11529
|
disabled: disabled,
|
|
@@ -11165,7 +11533,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
11165
11533
|
onChange: function onChange(val) {
|
|
11166
11534
|
return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
|
|
11167
11535
|
}
|
|
11168
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11536
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11169
11537
|
key: 'bsOutGoods'
|
|
11170
11538
|
}, other), {}, {
|
|
11171
11539
|
disabled: disabled,
|
|
@@ -11177,7 +11545,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
11177
11545
|
return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
|
|
11178
11546
|
}
|
|
11179
11547
|
})));
|
|
11180
|
-
})), ['3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType6 = value.bsExchangeType) === null || _value$bsExchangeType6 === void 0 ? void 0 : _value$bsExchangeType6[0]) ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11548
|
+
})), ['3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType6 = value.bsExchangeType) === null || _value$bsExchangeType6 === void 0 ? void 0 : _value$bsExchangeType6[0]) ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11181
11549
|
headerText: "\u8D60\u54C1",
|
|
11182
11550
|
key: 'bsGiftGoods',
|
|
11183
11551
|
disabled: disabled,
|
|
@@ -11288,7 +11656,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
11288
11656
|
onChange: function onChange(val) {
|
|
11289
11657
|
return changeTypeHandle(val);
|
|
11290
11658
|
}
|
|
11291
|
-
}), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11659
|
+
}), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11292
11660
|
key: 'reissueGoods'
|
|
11293
11661
|
}, other), {}, {
|
|
11294
11662
|
disabled: disabled,
|
|
@@ -11385,7 +11753,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
11385
11753
|
onChange: function onChange(val) {
|
|
11386
11754
|
return changeTypeHandle(val);
|
|
11387
11755
|
}
|
|
11388
|
-
}), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11756
|
+
}), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11389
11757
|
key: 'returnGoods'
|
|
11390
11758
|
}, other), {}, {
|
|
11391
11759
|
disabled: disabled,
|
|
@@ -11562,7 +11930,7 @@ var WlnGoods = function WlnGoods(props) {
|
|
|
11562
11930
|
wlnGoods: list
|
|
11563
11931
|
}));
|
|
11564
11932
|
};
|
|
11565
|
-
return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
|
|
11933
|
+
return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
11566
11934
|
key: 'wlnGoods'
|
|
11567
11935
|
}, props), {}, {
|
|
11568
11936
|
disabled: disabled,
|
|
@@ -11575,8 +11943,8 @@ var WlnGoods = function WlnGoods(props) {
|
|
|
11575
11943
|
}));
|
|
11576
11944
|
};
|
|
11577
11945
|
|
|
11578
|
-
var css_248z$
|
|
11579
|
-
styleInject(css_248z$
|
|
11946
|
+
var css_248z$a = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
11947
|
+
styleInject(css_248z$a);
|
|
11580
11948
|
|
|
11581
11949
|
var TabPane$1 = antd.Tabs.TabPane;
|
|
11582
11950
|
var Option$2 = antd.Select.Option;
|