@kmkf-fe-packages/basic-components 2.3.2 → 2.3.5
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 +1903 -738
- package/dist/index.js +1902 -736
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +24 -0
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +5 -0
- package/dist/src/common/CommonGoods/index.d.ts +4 -1
- package/dist/src/common/Reissue/index.d.ts +4 -1
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +13 -0
- package/dist/src/jky/common/index.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7759,7 +7759,9 @@ var Province = function Province(props) {
|
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
7761
|
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7762
7763
|
};
|
|
7764
|
+
|
|
7763
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7764
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7765
7767
|
style: {
|
|
@@ -8130,6 +8132,11 @@ var systemOrderMap = {
|
|
|
8130
8132
|
ids: 'wdtSystemSelectIds',
|
|
8131
8133
|
order: 'wdtSystemShowOrder'
|
|
8132
8134
|
},
|
|
8135
|
+
JKY_SYSTEM_ORDER: {
|
|
8136
|
+
no: 'jkySystemOrderNo',
|
|
8137
|
+
ids: 'jkySystemSelectIds',
|
|
8138
|
+
order: 'jkySystemShowOrder'
|
|
8139
|
+
},
|
|
8133
8140
|
BS_E3_SYSTEM_ORDER: {
|
|
8134
8141
|
no: 'bsE3SystemOrderNo',
|
|
8135
8142
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8607,7 +8614,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8607
8614
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8608
8615
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8609
8616
|
MSG_STATUS: 'msgStatusValues',
|
|
8610
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8617
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8618
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8611
8619
|
};
|
|
8612
8620
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8613
8621
|
};
|
|
@@ -8701,6 +8709,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8701
8709
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8702
8710
|
};
|
|
8703
8711
|
};
|
|
8712
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8713
|
+
return function (getValue) {
|
|
8714
|
+
return function (nex, config) {
|
|
8715
|
+
var _values = {
|
|
8716
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8717
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8718
|
+
};
|
|
8719
|
+
var selectIds = [];
|
|
8720
|
+
var orderNo = '';
|
|
8721
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8722
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8723
|
+
});
|
|
8724
|
+
if (tradeId) {
|
|
8725
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8726
|
+
}
|
|
8727
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8728
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8729
|
+
});
|
|
8730
|
+
if (jkySystemOrder) {
|
|
8731
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8732
|
+
}
|
|
8733
|
+
_values.selectIds = selectIds;
|
|
8734
|
+
_values.orderNo = orderNo;
|
|
8735
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8736
|
+
};
|
|
8737
|
+
};
|
|
8738
|
+
};
|
|
8704
8739
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8705
8740
|
return function (getValue) {
|
|
8706
8741
|
return function (nex, config) {
|
|
@@ -8992,6 +9027,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8992
9027
|
ids: 'wdtSystemSelectIds',
|
|
8993
9028
|
order: 'wdtSystemShowOrder'
|
|
8994
9029
|
},
|
|
9030
|
+
JKY_SYSTEM_ORDER: {
|
|
9031
|
+
no: 'jkySystemOrderNo',
|
|
9032
|
+
ids: 'jkySystemSelectIds',
|
|
9033
|
+
order: 'jkySystemShowOrder'
|
|
9034
|
+
},
|
|
8995
9035
|
BS_E3_SYSTEM_ORDER: {
|
|
8996
9036
|
no: 'bsE3SystemOrderNo',
|
|
8997
9037
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9251,14 +9291,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9251
9291
|
};
|
|
9252
9292
|
var processLabel = function processLabel(getValue) {
|
|
9253
9293
|
return function (nex, config) {
|
|
9254
|
-
var
|
|
9255
|
-
return
|
|
9294
|
+
var _ref74;
|
|
9295
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9256
9296
|
};
|
|
9257
9297
|
};
|
|
9258
9298
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9259
9299
|
return function (nex, config) {
|
|
9260
|
-
var
|
|
9261
|
-
return
|
|
9300
|
+
var _ref75;
|
|
9301
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9262
9302
|
};
|
|
9263
9303
|
};
|
|
9264
9304
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9362,6 +9402,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9362
9402
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9363
9403
|
MSG_STATUS: processSceneStatus,
|
|
9364
9404
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9405
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9365
9406
|
BS_LOGISTICS: processErpLogistics,
|
|
9366
9407
|
WLN_LOGISTICS: processErpLogistics,
|
|
9367
9408
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9377,6 +9418,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9377
9418
|
BS_POSTING: processBsPosting,
|
|
9378
9419
|
BS_GOODS: processBsGoods,
|
|
9379
9420
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9421
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9380
9422
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9381
9423
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9382
9424
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9395,6 +9437,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9395
9437
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9396
9438
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9397
9439
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9440
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9398
9441
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9399
9442
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9400
9443
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -12127,7 +12170,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12127
12170
|
}));
|
|
12128
12171
|
};
|
|
12129
12172
|
|
|
12130
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12173
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12131
12174
|
styleInject(css_248z$7);
|
|
12132
12175
|
|
|
12133
12176
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12456,13 +12499,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12456
12499
|
var hasAttr = useMemo(function () {
|
|
12457
12500
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12458
12501
|
}, [hasPic, headerList]);
|
|
12502
|
+
var clearAll = function clearAll() {
|
|
12503
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12504
|
+
shopId: shopId,
|
|
12505
|
+
imgList: []
|
|
12506
|
+
});
|
|
12507
|
+
};
|
|
12459
12508
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12460
12509
|
className: "goods-title"
|
|
12461
12510
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12462
12511
|
className: "goods-uploaded-state"
|
|
12463
12512
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12464
12513
|
className: "goods-uploaded-count"
|
|
12465
|
-
}, imgList.length), "/", maxLength,
|
|
12514
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12515
|
+
className: 'clear-all',
|
|
12516
|
+
onClick: clearAll
|
|
12517
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12466
12518
|
ref: boxRef,
|
|
12467
12519
|
id: "goods-wrap",
|
|
12468
12520
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -13977,7 +14029,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13977
14029
|
changeIndex = _useState2[0],
|
|
13978
14030
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13979
14031
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
13980
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
14032
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13981
14033
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
13982
14034
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13983
14035
|
useEffect(function () {
|
|
@@ -15349,6 +15401,187 @@ var jyColumns = [{
|
|
|
15349
15401
|
}
|
|
15350
15402
|
}];
|
|
15351
15403
|
|
|
15404
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15405
|
+
if (!isBoolean(val)) return null;
|
|
15406
|
+
return val ? '是' : '否';
|
|
15407
|
+
};
|
|
15408
|
+
var jkyColumns = [{
|
|
15409
|
+
dataIndex: 'goodName',
|
|
15410
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15411
|
+
align: 'center',
|
|
15412
|
+
ellipsis: true,
|
|
15413
|
+
width: 150,
|
|
15414
|
+
render: renderTextEllipsis
|
|
15415
|
+
}, {
|
|
15416
|
+
dataIndex: 'goodNo',
|
|
15417
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15418
|
+
align: 'center',
|
|
15419
|
+
ellipsis: true,
|
|
15420
|
+
width: 150,
|
|
15421
|
+
render: renderTextEllipsis
|
|
15422
|
+
}, {
|
|
15423
|
+
dataIndex: 'goodId',
|
|
15424
|
+
title: "\u8D27\u54C1ID",
|
|
15425
|
+
align: 'center',
|
|
15426
|
+
ellipsis: true,
|
|
15427
|
+
width: 150,
|
|
15428
|
+
render: renderTextEllipsis
|
|
15429
|
+
}, {
|
|
15430
|
+
dataIndex: 'goodPicUrl',
|
|
15431
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15432
|
+
align: 'center',
|
|
15433
|
+
ellipsis: true,
|
|
15434
|
+
width: 150,
|
|
15435
|
+
render: function render(picUrl) {
|
|
15436
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15437
|
+
style: {
|
|
15438
|
+
width: '30px',
|
|
15439
|
+
height: '30px',
|
|
15440
|
+
objectFit: 'contain'
|
|
15441
|
+
},
|
|
15442
|
+
src: picUrl
|
|
15443
|
+
});
|
|
15444
|
+
}
|
|
15445
|
+
}, {
|
|
15446
|
+
dataIndex: 'goodShortName',
|
|
15447
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15448
|
+
align: 'center',
|
|
15449
|
+
ellipsis: true,
|
|
15450
|
+
width: 150,
|
|
15451
|
+
render: renderTextEllipsis
|
|
15452
|
+
}, {
|
|
15453
|
+
dataIndex: 'specBarcode',
|
|
15454
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
15455
|
+
align: 'center',
|
|
15456
|
+
ellipsis: true,
|
|
15457
|
+
width: 150,
|
|
15458
|
+
render: renderTextEllipsis
|
|
15459
|
+
}, {
|
|
15460
|
+
dataIndex: 'categoryName',
|
|
15461
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15462
|
+
align: 'center',
|
|
15463
|
+
ellipsis: true,
|
|
15464
|
+
width: 150,
|
|
15465
|
+
render: renderTextEllipsis
|
|
15466
|
+
}, {
|
|
15467
|
+
dataIndex: 'brandName',
|
|
15468
|
+
title: "\u54C1\u724C",
|
|
15469
|
+
align: 'center',
|
|
15470
|
+
ellipsis: true,
|
|
15471
|
+
width: 200,
|
|
15472
|
+
render: renderTextEllipsis
|
|
15473
|
+
}, {
|
|
15474
|
+
dataIndex: 'specName',
|
|
15475
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
15476
|
+
align: 'center',
|
|
15477
|
+
ellipsis: true,
|
|
15478
|
+
width: 150,
|
|
15479
|
+
render: renderTextEllipsis
|
|
15480
|
+
}, {
|
|
15481
|
+
dataIndex: 'specId',
|
|
15482
|
+
title: "\u89C4\u683CID",
|
|
15483
|
+
align: 'center',
|
|
15484
|
+
ellipsis: true,
|
|
15485
|
+
width: 150,
|
|
15486
|
+
render: renderTextEllipsis
|
|
15487
|
+
}, {
|
|
15488
|
+
dataIndex: 'specNo',
|
|
15489
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15490
|
+
align: 'center',
|
|
15491
|
+
ellipsis: true,
|
|
15492
|
+
width: 150,
|
|
15493
|
+
render: renderTextEllipsis
|
|
15494
|
+
}, {
|
|
15495
|
+
dataIndex: 'specImgUrl',
|
|
15496
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
15497
|
+
align: 'center',
|
|
15498
|
+
ellipsis: true,
|
|
15499
|
+
width: 150,
|
|
15500
|
+
render: function render(val) {
|
|
15501
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15502
|
+
style: {
|
|
15503
|
+
width: '30px',
|
|
15504
|
+
height: '30px',
|
|
15505
|
+
objectFit: 'contain'
|
|
15506
|
+
},
|
|
15507
|
+
src: val
|
|
15508
|
+
});
|
|
15509
|
+
}
|
|
15510
|
+
}, {
|
|
15511
|
+
dataIndex: 'colorName',
|
|
15512
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15513
|
+
align: 'center',
|
|
15514
|
+
ellipsis: true,
|
|
15515
|
+
width: 150,
|
|
15516
|
+
render: renderTextEllipsis
|
|
15517
|
+
}, {
|
|
15518
|
+
dataIndex: 'colorCode',
|
|
15519
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15520
|
+
align: 'center',
|
|
15521
|
+
ellipsis: true,
|
|
15522
|
+
width: 150,
|
|
15523
|
+
render: renderTextEllipsis
|
|
15524
|
+
}, {
|
|
15525
|
+
dataIndex: 'sizeName',
|
|
15526
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15527
|
+
align: 'center',
|
|
15528
|
+
ellipsis: true,
|
|
15529
|
+
width: 150,
|
|
15530
|
+
render: renderTextEllipsis
|
|
15531
|
+
}, {
|
|
15532
|
+
dataIndex: 'sizeCode',
|
|
15533
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15534
|
+
align: 'center',
|
|
15535
|
+
ellipsis: true,
|
|
15536
|
+
width: 150,
|
|
15537
|
+
render: renderTextEllipsis
|
|
15538
|
+
}, {
|
|
15539
|
+
dataIndex: 'marketPrice',
|
|
15540
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15541
|
+
align: 'center',
|
|
15542
|
+
ellipsis: true,
|
|
15543
|
+
width: 150,
|
|
15544
|
+
render: renderTextEllipsis
|
|
15545
|
+
}, {
|
|
15546
|
+
dataIndex: 'retailPrice',
|
|
15547
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15548
|
+
align: 'center',
|
|
15549
|
+
ellipsis: true,
|
|
15550
|
+
width: 150,
|
|
15551
|
+
render: renderTextEllipsis
|
|
15552
|
+
}, {
|
|
15553
|
+
dataIndex: 'memberPrice',
|
|
15554
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15555
|
+
align: 'center',
|
|
15556
|
+
ellipsis: true,
|
|
15557
|
+
width: 150,
|
|
15558
|
+
render: renderTextEllipsis
|
|
15559
|
+
}, {
|
|
15560
|
+
dataIndex: 'costPrice',
|
|
15561
|
+
title: "\u6210\u672C\u4EF7",
|
|
15562
|
+
align: 'center',
|
|
15563
|
+
ellipsis: true,
|
|
15564
|
+
width: 150,
|
|
15565
|
+
render: renderTextEllipsis
|
|
15566
|
+
}, {
|
|
15567
|
+
dataIndex: 'isVirtual',
|
|
15568
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15569
|
+
align: 'center',
|
|
15570
|
+
ellipsis: true,
|
|
15571
|
+
width: 150,
|
|
15572
|
+
render: function render(val) {
|
|
15573
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15574
|
+
}
|
|
15575
|
+
}, {
|
|
15576
|
+
dataIndex: 'skuType',
|
|
15577
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15578
|
+
ellipsis: true,
|
|
15579
|
+
width: 150,
|
|
15580
|
+
render: function render(val) {
|
|
15581
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15582
|
+
}
|
|
15583
|
+
}];
|
|
15584
|
+
|
|
15352
15585
|
var getColumnsMap = function getColumnsMap() {
|
|
15353
15586
|
return cloneDeep({
|
|
15354
15587
|
gy: gyColumns,
|
|
@@ -15356,7 +15589,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15356
15589
|
wdt: wdtColumns,
|
|
15357
15590
|
bse3: bse3Columns,
|
|
15358
15591
|
km: kmColumns,
|
|
15359
|
-
jy: jyColumns
|
|
15592
|
+
jy: jyColumns,
|
|
15593
|
+
jky: jkyColumns
|
|
15360
15594
|
});
|
|
15361
15595
|
};
|
|
15362
15596
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -18585,87 +18819,334 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18585
18819
|
};
|
|
18586
18820
|
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18587
18821
|
|
|
18588
|
-
var
|
|
18589
|
-
var
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
return {
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
|
|
18598
|
-
|
|
18599
|
-
}
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
},
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18822
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18823
|
+
var current = _ref.current,
|
|
18824
|
+
pageSize = _ref.pageSize;
|
|
18825
|
+
var conditionList = transformFormData(formData);
|
|
18826
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18827
|
+
method: 'post',
|
|
18828
|
+
data: {
|
|
18829
|
+
pageSize: pageSize,
|
|
18830
|
+
pageNo: current,
|
|
18831
|
+
platform: 'JKY_ERP',
|
|
18832
|
+
conditionList: conditionList
|
|
18833
|
+
}
|
|
18834
|
+
}).then(function (res) {
|
|
18835
|
+
var _res$data = res.data,
|
|
18836
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
18837
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18838
|
+
_res$data$total = _res$data.total,
|
|
18839
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18840
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
18841
|
+
return _objectSpread2({}, item);
|
|
18842
|
+
});
|
|
18843
|
+
return {
|
|
18844
|
+
total: total,
|
|
18845
|
+
list: newProducts
|
|
18846
|
+
};
|
|
18847
|
+
});
|
|
18848
|
+
};
|
|
18849
|
+
var searchFormData$5 = [{
|
|
18850
|
+
label: '规格名称',
|
|
18851
|
+
name: 'skuName',
|
|
18852
|
+
dataIndex: 'specName'
|
|
18853
|
+
}, {
|
|
18854
|
+
label: '规格编码',
|
|
18855
|
+
name: 'skuCode',
|
|
18856
|
+
dataIndex: 'specNo',
|
|
18857
|
+
type: 'optionalInput'
|
|
18858
|
+
}, {
|
|
18859
|
+
label: '货品名称',
|
|
18860
|
+
name: 'goodName'
|
|
18861
|
+
}, {
|
|
18862
|
+
label: '货品编码',
|
|
18863
|
+
name: 'goodNo',
|
|
18864
|
+
type: 'optionalInput'
|
|
18865
|
+
}];
|
|
18866
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18867
|
+
var _useState = useState([]),
|
|
18868
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18869
|
+
selectList = _useState2[0],
|
|
18870
|
+
setSelect = _useState2[1];
|
|
18871
|
+
var _useState3 = useState([]),
|
|
18872
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18873
|
+
selectIds = _useState4[0],
|
|
18874
|
+
setSelectIds = _useState4[1];
|
|
18875
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
18876
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18877
|
+
columns = _useGetColumns2[0],
|
|
18878
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18879
|
+
loading = _useGetColumns2[2];
|
|
18880
|
+
useImperativeHandle(ref, function () {
|
|
18881
|
+
return {
|
|
18882
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18883
|
+
return selectList;
|
|
18884
|
+
}
|
|
18885
|
+
};
|
|
18886
|
+
});
|
|
18887
|
+
var _Form$useForm = Form.useForm(),
|
|
18888
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18889
|
+
form = _Form$useForm2[0];
|
|
18890
|
+
var _useAntdTable = useAntdTable(getTableData$6, {
|
|
18891
|
+
defaultPageSize: 10,
|
|
18892
|
+
form: form
|
|
18893
|
+
}),
|
|
18894
|
+
tableProps = _useAntdTable.tableProps,
|
|
18895
|
+
search = _useAntdTable.search,
|
|
18896
|
+
params = _useAntdTable.params;
|
|
18897
|
+
var submit = search.submit,
|
|
18898
|
+
reset = search.reset;
|
|
18899
|
+
var rowSelection = {
|
|
18900
|
+
selectedRowKeys: selectIds,
|
|
18901
|
+
fixed: true,
|
|
18902
|
+
onSelect: function onSelect(record, selected) {
|
|
18903
|
+
if (selected) {
|
|
18904
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18905
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18906
|
+
} else {
|
|
18907
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18908
|
+
return t !== record.id;
|
|
18909
|
+
}));
|
|
18910
|
+
setSelect(selectList.filter(function (t) {
|
|
18911
|
+
return t.id !== record.id;
|
|
18912
|
+
}));
|
|
18913
|
+
}
|
|
18914
|
+
},
|
|
18915
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18916
|
+
if (selected) {
|
|
18917
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18918
|
+
return t.id;
|
|
18919
|
+
}))));
|
|
18920
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18921
|
+
} else {
|
|
18922
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
18923
|
+
return t.id;
|
|
18924
|
+
})));
|
|
18925
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18926
|
+
return arrVal.id !== othVal.id;
|
|
18927
|
+
});
|
|
18928
|
+
setSelect(list);
|
|
18929
|
+
}
|
|
18930
|
+
},
|
|
18931
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18932
|
+
var options = {
|
|
18933
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18934
|
+
return row.specId || record.id;
|
|
18935
|
+
}).includes(record.specId || record.id),
|
|
18936
|
+
name: record.id
|
|
18937
|
+
};
|
|
18938
|
+
return options;
|
|
18939
|
+
}
|
|
18940
|
+
};
|
|
18941
|
+
var showTable = function showTable() {
|
|
18942
|
+
var handleDelete = function handleDelete(record) {
|
|
18943
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18944
|
+
return t !== record.id;
|
|
18945
|
+
}));
|
|
18946
|
+
setSelect(selectList.filter(function (t) {
|
|
18947
|
+
return t.id !== record.id;
|
|
18948
|
+
}));
|
|
18949
|
+
};
|
|
18950
|
+
var showColumns = [{
|
|
18951
|
+
dataIndex: '',
|
|
18952
|
+
title: "\u64CD\u4F5C",
|
|
18953
|
+
ellipsis: true,
|
|
18954
|
+
width: 100,
|
|
18955
|
+
render: function render(val, record) {
|
|
18956
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18957
|
+
type: "link",
|
|
18958
|
+
onClick: function onClick() {
|
|
18959
|
+
return handleDelete(record);
|
|
18960
|
+
}
|
|
18961
|
+
}, "\u5220\u9664");
|
|
18962
|
+
}
|
|
18963
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
18964
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
18965
|
+
style: {
|
|
18966
|
+
width: '100%',
|
|
18967
|
+
maxWidth: '387px'
|
|
18968
|
+
}
|
|
18969
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
18970
|
+
columns: showColumns,
|
|
18971
|
+
rowKey: 'id',
|
|
18972
|
+
dataSource: selectList,
|
|
18973
|
+
scroll: {
|
|
18974
|
+
x: '100%',
|
|
18975
|
+
y: 250
|
|
18976
|
+
},
|
|
18977
|
+
pagination: {
|
|
18978
|
+
size: 'small',
|
|
18979
|
+
total: selectIds.length,
|
|
18980
|
+
pageSize: 10,
|
|
18981
|
+
showSizeChanger: false
|
|
18982
|
+
}
|
|
18983
|
+
})) : null;
|
|
18984
|
+
};
|
|
18985
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
18986
|
+
active: true,
|
|
18987
|
+
loading: loading
|
|
18988
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
18989
|
+
searchFormData: searchFormData$5,
|
|
18990
|
+
form: form,
|
|
18991
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18992
|
+
submit: submit,
|
|
18993
|
+
reset: reset
|
|
18994
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18995
|
+
style: {
|
|
18996
|
+
marginTop: '4px'
|
|
18997
|
+
}
|
|
18998
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
18999
|
+
className: "GoodModalColumns",
|
|
19000
|
+
rowSelection: rowSelection,
|
|
19001
|
+
rowKey: "id",
|
|
19002
|
+
columns: columns,
|
|
19003
|
+
scroll: {
|
|
19004
|
+
x: '100%',
|
|
19005
|
+
y: 250
|
|
19006
|
+
},
|
|
19007
|
+
size: "small"
|
|
19008
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19009
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19010
|
+
return triggerNode.parentElement;
|
|
19011
|
+
},
|
|
19012
|
+
content: showTable(),
|
|
19013
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19014
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19015
|
+
danger: true,
|
|
19016
|
+
type: "text"
|
|
19017
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19018
|
+
};
|
|
19019
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19020
|
+
|
|
19021
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19022
|
+
useImperativeHandle(ref, function () {
|
|
19023
|
+
return {
|
|
19024
|
+
open: function open(shopCode) {
|
|
19025
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19026
|
+
setVisible(true);
|
|
19027
|
+
setSelectedRows(options.value || []);
|
|
19028
|
+
}
|
|
19029
|
+
};
|
|
19030
|
+
});
|
|
19031
|
+
var onSubmit = props.onSubmit,
|
|
19032
|
+
width = props.width;
|
|
19033
|
+
var _useState = useState(false),
|
|
19034
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19035
|
+
visible = _useState2[0],
|
|
19036
|
+
setVisible = _useState2[1];
|
|
19037
|
+
var _useState3 = useState([]),
|
|
19038
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19039
|
+
selectedRows = _useState4[0],
|
|
19040
|
+
setSelectedRows = _useState4[1];
|
|
19041
|
+
var jkyGoodsListRef = useRef(null);
|
|
19042
|
+
var _onCancel = function onCancel() {
|
|
19043
|
+
setVisible(false);
|
|
19044
|
+
};
|
|
19045
|
+
var onOk = function onOk() {
|
|
19046
|
+
var _jkyGoodsListRef$curr;
|
|
19047
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19048
|
+
onSubmit(selectedList);
|
|
19049
|
+
_onCancel();
|
|
19050
|
+
};
|
|
19051
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19052
|
+
title: '选择商品',
|
|
19053
|
+
okText: '确认',
|
|
19054
|
+
cancelText: '取消',
|
|
19055
|
+
visible: visible,
|
|
19056
|
+
width: width || 850,
|
|
19057
|
+
onCancel: function onCancel() {
|
|
19058
|
+
_onCancel();
|
|
19059
|
+
},
|
|
19060
|
+
onOk: onOk,
|
|
19061
|
+
wrapClassName: "goodModal"
|
|
19062
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19063
|
+
ref: jkyGoodsListRef,
|
|
19064
|
+
selectedRows: selectedRows
|
|
19065
|
+
})));
|
|
19066
|
+
};
|
|
19067
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19068
|
+
|
|
19069
|
+
var getColumns = function getColumns(_ref) {
|
|
19070
|
+
var _ref$text = _ref.text,
|
|
19071
|
+
disabled = _ref.disabled,
|
|
19072
|
+
updateHandle = _ref.updateHandle;
|
|
19073
|
+
return {
|
|
19074
|
+
//百胜E3补发商品
|
|
19075
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19076
|
+
dataIndex: 'sku',
|
|
19077
|
+
title: "SKU",
|
|
19078
|
+
width: 150,
|
|
19079
|
+
render: renderTextEllipsis
|
|
19080
|
+
}, {
|
|
19081
|
+
dataIndex: 'skuId',
|
|
19082
|
+
title: "SKU ID",
|
|
19083
|
+
width: 150,
|
|
19084
|
+
render: renderTextEllipsis
|
|
19085
|
+
}, {
|
|
19086
|
+
dataIndex: 'goodsName',
|
|
19087
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19088
|
+
width: 150,
|
|
19089
|
+
render: renderTextEllipsis
|
|
19090
|
+
}, {
|
|
19091
|
+
dataIndex: 'goodsShortName',
|
|
19092
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19093
|
+
width: 150,
|
|
19094
|
+
render: renderTextEllipsis
|
|
19095
|
+
}, {
|
|
19096
|
+
dataIndex: 'picPath',
|
|
19097
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19098
|
+
width: 150,
|
|
19099
|
+
render: function render(val) {
|
|
19100
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19101
|
+
width: 30,
|
|
19102
|
+
src: val
|
|
19103
|
+
});
|
|
19104
|
+
}
|
|
19105
|
+
}, {
|
|
19106
|
+
dataIndex: 'goodsSn',
|
|
19107
|
+
title: "\u8D27\u53F7",
|
|
19108
|
+
width: 150,
|
|
19109
|
+
render: renderTextEllipsis
|
|
19110
|
+
}, {
|
|
19111
|
+
dataIndex: 'goodsId',
|
|
19112
|
+
title: "\u8D27\u53F7ID",
|
|
19113
|
+
width: 150,
|
|
19114
|
+
render: renderTextEllipsis
|
|
19115
|
+
}, {
|
|
19116
|
+
dataIndex: 'colorName',
|
|
19117
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19118
|
+
width: 150,
|
|
19119
|
+
render: renderTextEllipsis
|
|
19120
|
+
}, {
|
|
19121
|
+
dataIndex: 'colorCode',
|
|
19122
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19123
|
+
width: 150,
|
|
19124
|
+
render: renderTextEllipsis
|
|
19125
|
+
}, {
|
|
19126
|
+
dataIndex: 'sizeName',
|
|
19127
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19128
|
+
width: 150,
|
|
19129
|
+
render: renderTextEllipsis
|
|
19130
|
+
}, {
|
|
19131
|
+
dataIndex: 'sizeCode',
|
|
19132
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19133
|
+
width: 150,
|
|
19134
|
+
render: renderTextEllipsis
|
|
19135
|
+
}, {
|
|
19136
|
+
dataIndex: 'brandName',
|
|
19137
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19138
|
+
width: 150,
|
|
19139
|
+
render: renderTextEllipsis
|
|
19140
|
+
}, {
|
|
19141
|
+
dataIndex: 'goodsNumber',
|
|
19142
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19143
|
+
width: 150
|
|
19144
|
+
}, {
|
|
19145
|
+
dataIndex: 'goodsPrice',
|
|
19146
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19147
|
+
width: 150
|
|
19148
|
+
}, {
|
|
19149
|
+
dataIndex: 'shopPrice',
|
|
18669
19150
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18670
19151
|
width: 150
|
|
18671
19152
|
}, {
|
|
@@ -19894,7 +20375,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19894
20375
|
};
|
|
19895
20376
|
};
|
|
19896
20377
|
|
|
19897
|
-
var getYesOrNo$
|
|
20378
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
19898
20379
|
if (isNull(val)) return null;
|
|
19899
20380
|
return val ? '是' : '否';
|
|
19900
20381
|
};
|
|
@@ -20045,7 +20526,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20045
20526
|
label: '否',
|
|
20046
20527
|
value: false
|
|
20047
20528
|
}]
|
|
20048
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20529
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20049
20530
|
},
|
|
20050
20531
|
width: 100
|
|
20051
20532
|
}]
|
|
@@ -20057,7 +20538,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20057
20538
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20058
20539
|
return false;
|
|
20059
20540
|
};
|
|
20060
|
-
var getYesOrNo$
|
|
20541
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20061
20542
|
if (isNull(val)) return null;
|
|
20062
20543
|
return val ? '是' : '否';
|
|
20063
20544
|
};
|
|
@@ -20172,7 +20653,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20172
20653
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20173
20654
|
width: 150,
|
|
20174
20655
|
render: function render(val) {
|
|
20175
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20656
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20176
20657
|
}
|
|
20177
20658
|
}, {
|
|
20178
20659
|
dataIndex: 'isGift',
|
|
@@ -20191,7 +20672,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20191
20672
|
label: '否',
|
|
20192
20673
|
value: 0
|
|
20193
20674
|
}]
|
|
20194
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20675
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20195
20676
|
}
|
|
20196
20677
|
}, {
|
|
20197
20678
|
dataIndex: 'skuNote',
|
|
@@ -20317,7 +20798,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20317
20798
|
label: '否',
|
|
20318
20799
|
value: 0
|
|
20319
20800
|
}]
|
|
20320
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20801
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20321
20802
|
}
|
|
20322
20803
|
}].map(function (item) {
|
|
20323
20804
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20446,7 +20927,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20446
20927
|
label: '否',
|
|
20447
20928
|
value: 0
|
|
20448
20929
|
}]
|
|
20449
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20930
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20450
20931
|
}
|
|
20451
20932
|
}].map(function (item) {
|
|
20452
20933
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20862,10 +21343,121 @@ var getColumns$5 = function getColumns() {
|
|
|
20862
21343
|
render: function render(val, record) {
|
|
20863
21344
|
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20864
21345
|
}
|
|
20865
|
-
}, {
|
|
20866
|
-
dataIndex: 'batchId',
|
|
20867
|
-
title: '批次号',
|
|
20868
|
-
render: renderTextEllipsis
|
|
21346
|
+
}, {
|
|
21347
|
+
dataIndex: 'batchId',
|
|
21348
|
+
title: '批次号',
|
|
21349
|
+
render: renderTextEllipsis
|
|
21350
|
+
}, {
|
|
21351
|
+
dataIndex: 'isGift',
|
|
21352
|
+
title: '是否赠品',
|
|
21353
|
+
width: 100,
|
|
21354
|
+
render: function render(val, record, index) {
|
|
21355
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21356
|
+
value: val,
|
|
21357
|
+
onChange: function onChange(value) {
|
|
21358
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21359
|
+
},
|
|
21360
|
+
options: [{
|
|
21361
|
+
label: '是',
|
|
21362
|
+
value: true
|
|
21363
|
+
}, {
|
|
21364
|
+
label: '否',
|
|
21365
|
+
value: false
|
|
21366
|
+
}]
|
|
21367
|
+
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21368
|
+
}
|
|
21369
|
+
}, {
|
|
21370
|
+
dataIndex: 'remark',
|
|
21371
|
+
title: '备注',
|
|
21372
|
+
render: function render(val, record, index) {
|
|
21373
|
+
return !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
21374
|
+
style: {
|
|
21375
|
+
width: 70
|
|
21376
|
+
},
|
|
21377
|
+
value: val,
|
|
21378
|
+
onChange: function onChange(e) {
|
|
21379
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21380
|
+
}
|
|
21381
|
+
}) : renderTextEllipsis(val);
|
|
21382
|
+
}
|
|
21383
|
+
}, {
|
|
21384
|
+
dataIndex: 'outerOiId',
|
|
21385
|
+
title: '子订单号',
|
|
21386
|
+
width: 240,
|
|
21387
|
+
render: renderTextEllipsis
|
|
21388
|
+
}].map(fillAttrs),
|
|
21389
|
+
JST_EXCHANGE_GOODS: [{
|
|
21390
|
+
dataIndex: 'name',
|
|
21391
|
+
title: '商品名称',
|
|
21392
|
+
render: renderTextEllipsis
|
|
21393
|
+
}, {
|
|
21394
|
+
dataIndex: 'skuId',
|
|
21395
|
+
title: '商品编码',
|
|
21396
|
+
render: renderTextEllipsis
|
|
21397
|
+
}, {
|
|
21398
|
+
dataIndex: 'iId',
|
|
21399
|
+
title: '款式编码',
|
|
21400
|
+
render: renderTextEllipsis
|
|
21401
|
+
}, {
|
|
21402
|
+
dataIndex: 'pic',
|
|
21403
|
+
title: '商品图片',
|
|
21404
|
+
width: 100,
|
|
21405
|
+
render: function render(val) {
|
|
21406
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
21407
|
+
width: 30,
|
|
21408
|
+
src: val
|
|
21409
|
+
});
|
|
21410
|
+
}
|
|
21411
|
+
}, {
|
|
21412
|
+
dataIndex: 'propertiesValue',
|
|
21413
|
+
title: '规格值',
|
|
21414
|
+
render: renderTextEllipsis
|
|
21415
|
+
}, {
|
|
21416
|
+
dataIndex: 'saleBasePrice',
|
|
21417
|
+
title: '原价',
|
|
21418
|
+
render: function render(price) {
|
|
21419
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21420
|
+
}
|
|
21421
|
+
}, {
|
|
21422
|
+
dataIndex: 'salePrice',
|
|
21423
|
+
title: '单价',
|
|
21424
|
+
width: 120,
|
|
21425
|
+
render: function render(val, record, index) {
|
|
21426
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21427
|
+
style: {
|
|
21428
|
+
width: 70
|
|
21429
|
+
},
|
|
21430
|
+
value: val,
|
|
21431
|
+
min: 0,
|
|
21432
|
+
precision: 2,
|
|
21433
|
+
onChange: function onChange(num) {
|
|
21434
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21435
|
+
}
|
|
21436
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21437
|
+
}
|
|
21438
|
+
}, {
|
|
21439
|
+
dataIndex: 'qty',
|
|
21440
|
+
title: '数量',
|
|
21441
|
+
width: 100,
|
|
21442
|
+
render: function render(val, record, index) {
|
|
21443
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21444
|
+
style: {
|
|
21445
|
+
width: 70
|
|
21446
|
+
},
|
|
21447
|
+
value: val,
|
|
21448
|
+
min: 1,
|
|
21449
|
+
precision: 0,
|
|
21450
|
+
onChange: function onChange(num) {
|
|
21451
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21452
|
+
}
|
|
21453
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21454
|
+
}
|
|
21455
|
+
}, {
|
|
21456
|
+
dataIndex: 'saleAmount',
|
|
21457
|
+
title: '总金额',
|
|
21458
|
+
render: function render(val, record) {
|
|
21459
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21460
|
+
}
|
|
20869
21461
|
}, {
|
|
20870
21462
|
dataIndex: 'isGift',
|
|
20871
21463
|
title: '是否赠品',
|
|
@@ -20899,67 +21491,248 @@ var getColumns$5 = function getColumns() {
|
|
|
20899
21491
|
}
|
|
20900
21492
|
}) : renderTextEllipsis(val);
|
|
20901
21493
|
}
|
|
20902
|
-
}, {
|
|
20903
|
-
dataIndex: 'outerOiId',
|
|
20904
|
-
title: '子订单号',
|
|
20905
|
-
width: 240,
|
|
20906
|
-
render: renderTextEllipsis
|
|
20907
21494
|
}].map(fillAttrs),
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
21495
|
+
// jst售后商品信息
|
|
21496
|
+
JST_AFTERSALE_GOODS: [{
|
|
21497
|
+
dataIndex: 'asId',
|
|
21498
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21499
|
+
width: 200,
|
|
21500
|
+
align: 'center',
|
|
21501
|
+
ellipsis: true,
|
|
20911
21502
|
render: renderTextEllipsis
|
|
20912
21503
|
}, {
|
|
20913
|
-
dataIndex: '
|
|
20914
|
-
title:
|
|
21504
|
+
dataIndex: 'asiId',
|
|
21505
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21506
|
+
width: 200,
|
|
21507
|
+
align: 'center',
|
|
21508
|
+
ellipsis: true,
|
|
20915
21509
|
render: renderTextEllipsis
|
|
20916
21510
|
}, {
|
|
20917
|
-
dataIndex: '
|
|
20918
|
-
title:
|
|
21511
|
+
dataIndex: 'outerOiId',
|
|
21512
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21513
|
+
width: 200,
|
|
21514
|
+
align: 'center',
|
|
21515
|
+
ellipsis: true,
|
|
20919
21516
|
render: renderTextEllipsis
|
|
20920
21517
|
}, {
|
|
20921
21518
|
dataIndex: 'pic',
|
|
20922
|
-
title:
|
|
21519
|
+
title: "\u56FE\u7247",
|
|
20923
21520
|
width: 100,
|
|
21521
|
+
align: 'center',
|
|
20924
21522
|
render: function render(val) {
|
|
20925
21523
|
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20926
21524
|
width: 30,
|
|
20927
21525
|
src: val
|
|
20928
21526
|
});
|
|
20929
|
-
}
|
|
21527
|
+
},
|
|
21528
|
+
headerComponentType: 'pic'
|
|
21529
|
+
}, {
|
|
21530
|
+
dataIndex: 'name',
|
|
21531
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21532
|
+
width: 250,
|
|
21533
|
+
align: 'center',
|
|
21534
|
+
ellipsis: true,
|
|
21535
|
+
render: renderTextEllipsis
|
|
21536
|
+
}, {
|
|
21537
|
+
dataIndex: 'skuId',
|
|
21538
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21539
|
+
width: 200,
|
|
21540
|
+
align: 'center',
|
|
21541
|
+
ellipsis: true,
|
|
21542
|
+
render: renderTextEllipsis
|
|
20930
21543
|
}, {
|
|
20931
21544
|
dataIndex: 'propertiesValue',
|
|
20932
|
-
title:
|
|
21545
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21546
|
+
width: 200,
|
|
21547
|
+
align: 'center',
|
|
21548
|
+
ellipsis: true,
|
|
20933
21549
|
render: renderTextEllipsis
|
|
20934
21550
|
}, {
|
|
20935
|
-
dataIndex: '
|
|
20936
|
-
title:
|
|
20937
|
-
|
|
20938
|
-
|
|
21551
|
+
dataIndex: 'qty',
|
|
21552
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21553
|
+
width: 150,
|
|
21554
|
+
align: 'center',
|
|
21555
|
+
ellipsis: true,
|
|
21556
|
+
render: renderTextEllipsis
|
|
21557
|
+
}, {
|
|
21558
|
+
dataIndex: 'rQty',
|
|
21559
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
21560
|
+
width: 150,
|
|
21561
|
+
align: 'center',
|
|
21562
|
+
ellipsis: true,
|
|
21563
|
+
render: renderTextEllipsis
|
|
21564
|
+
}, {
|
|
21565
|
+
dataIndex: 'defectiveQty',
|
|
21566
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
21567
|
+
width: 150,
|
|
21568
|
+
align: 'center',
|
|
21569
|
+
ellipsis: true,
|
|
21570
|
+
render: renderTextEllipsis
|
|
21571
|
+
}, {
|
|
21572
|
+
dataIndex: 'amount',
|
|
21573
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
21574
|
+
width: 150,
|
|
21575
|
+
align: 'center',
|
|
21576
|
+
ellipsis: true,
|
|
21577
|
+
render: renderTextEllipsis
|
|
21578
|
+
}, {
|
|
21579
|
+
dataIndex: 'shopAmount',
|
|
21580
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
21581
|
+
width: 150,
|
|
21582
|
+
align: 'center',
|
|
21583
|
+
ellipsis: true,
|
|
21584
|
+
render: renderTextEllipsis
|
|
21585
|
+
}, {
|
|
21586
|
+
dataIndex: 'price',
|
|
21587
|
+
title: "\u5355\u4EF7",
|
|
21588
|
+
width: 150,
|
|
21589
|
+
align: 'center',
|
|
21590
|
+
ellipsis: true,
|
|
21591
|
+
render: renderTextEllipsis
|
|
21592
|
+
}, {
|
|
21593
|
+
dataIndex: 'combineSkuId',
|
|
21594
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21595
|
+
width: 250,
|
|
21596
|
+
align: 'center',
|
|
21597
|
+
ellipsis: true,
|
|
21598
|
+
render: renderTextEllipsis
|
|
21599
|
+
}, {
|
|
21600
|
+
dataIndex: 'shopSkuId',
|
|
21601
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
21602
|
+
width: 200,
|
|
21603
|
+
align: 'center',
|
|
21604
|
+
ellipsis: true,
|
|
21605
|
+
render: renderTextEllipsis
|
|
21606
|
+
}, {
|
|
21607
|
+
dataIndex: 'iId',
|
|
21608
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
21609
|
+
width: 200,
|
|
21610
|
+
align: 'center',
|
|
21611
|
+
ellipsis: true,
|
|
21612
|
+
render: renderTextEllipsis
|
|
21613
|
+
}, {
|
|
21614
|
+
dataIndex: 'type',
|
|
21615
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
21616
|
+
width: 150,
|
|
21617
|
+
align: 'center',
|
|
21618
|
+
ellipsis: true,
|
|
21619
|
+
render: renderTextEllipsis
|
|
21620
|
+
}, {
|
|
21621
|
+
dataIndex: 'skuType',
|
|
21622
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21623
|
+
width: 150,
|
|
21624
|
+
align: 'center',
|
|
21625
|
+
ellipsis: true,
|
|
21626
|
+
render: renderTextEllipsis
|
|
21627
|
+
}, {
|
|
21628
|
+
dataIndex: 'isGift',
|
|
21629
|
+
title: '是否赠品',
|
|
21630
|
+
width: 100,
|
|
21631
|
+
render: function render(val) {
|
|
21632
|
+
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21633
|
+
},
|
|
21634
|
+
headerMapping: {
|
|
21635
|
+
transformValue: function transformValue(val) {
|
|
21636
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21637
|
+
},
|
|
21638
|
+
renderExport: function renderExport(val) {
|
|
21639
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21640
|
+
}
|
|
20939
21641
|
}
|
|
20940
21642
|
}, {
|
|
20941
|
-
dataIndex: '
|
|
20942
|
-
title:
|
|
20943
|
-
width:
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
21643
|
+
dataIndex: 'receiveDate',
|
|
21644
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
21645
|
+
width: 200,
|
|
21646
|
+
align: 'center',
|
|
21647
|
+
ellipsis: true,
|
|
21648
|
+
render: renderTextEllipsis
|
|
21649
|
+
}, {
|
|
21650
|
+
dataIndex: 'remark',
|
|
21651
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21652
|
+
width: 200,
|
|
21653
|
+
align: 'center',
|
|
21654
|
+
ellipsis: true,
|
|
21655
|
+
render: renderTextEllipsis
|
|
21656
|
+
}]
|
|
21657
|
+
};
|
|
21658
|
+
};
|
|
21659
|
+
|
|
21660
|
+
function toNum$3(value) {
|
|
21661
|
+
if (typeof value === 'string') {
|
|
21662
|
+
return value ? +value : void 0;
|
|
21663
|
+
}
|
|
21664
|
+
if (typeof value === 'number') {
|
|
21665
|
+
return value;
|
|
21666
|
+
}
|
|
21667
|
+
return void 0;
|
|
21668
|
+
}
|
|
21669
|
+
var getColumns$6 = function getColumns(_ref) {
|
|
21670
|
+
var _ref$text = _ref.text,
|
|
21671
|
+
disabled = _ref.disabled,
|
|
21672
|
+
updateHandle = _ref.updateHandle;
|
|
21673
|
+
return {
|
|
21674
|
+
KM_GOODS: [{
|
|
21675
|
+
dataIndex: 'skuPropertiesName',
|
|
21676
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21677
|
+
width: 250,
|
|
21678
|
+
render: renderTextEllipsis
|
|
21679
|
+
}, {
|
|
21680
|
+
dataIndex: 'sysTitle',
|
|
21681
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21682
|
+
width: 150,
|
|
21683
|
+
render: renderTextEllipsis
|
|
21684
|
+
}, {
|
|
21685
|
+
dataIndex: 'title',
|
|
21686
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21687
|
+
width: 150,
|
|
21688
|
+
render: renderTextEllipsis
|
|
21689
|
+
}, {
|
|
21690
|
+
dataIndex: 'shortTitle',
|
|
21691
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21692
|
+
width: 150,
|
|
21693
|
+
render: renderTextEllipsis
|
|
21694
|
+
}, {
|
|
21695
|
+
dataIndex: 'sysOuterId',
|
|
21696
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21697
|
+
width: 150,
|
|
21698
|
+
render: renderTextEllipsis
|
|
21699
|
+
}, {
|
|
21700
|
+
dataIndex: 'skuSysId',
|
|
21701
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21702
|
+
width: 150,
|
|
21703
|
+
render: renderTextEllipsis
|
|
21704
|
+
}, {
|
|
21705
|
+
dataIndex: 'skuId',
|
|
21706
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21707
|
+
width: 170,
|
|
21708
|
+
render: renderTextEllipsis
|
|
21709
|
+
}, {
|
|
21710
|
+
dataIndex: 'outerSkuId',
|
|
21711
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21712
|
+
width: 170,
|
|
21713
|
+
render: renderTextEllipsis
|
|
21714
|
+
}, {
|
|
21715
|
+
dataIndex: 'itemSysId',
|
|
21716
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21717
|
+
width: 150,
|
|
21718
|
+
render: renderTextEllipsis
|
|
21719
|
+
}, {
|
|
21720
|
+
dataIndex: 'sysPicPath',
|
|
21721
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21722
|
+
width: 100,
|
|
21723
|
+
render: function render(val) {
|
|
21724
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21725
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21726
|
+
width: 30,
|
|
21727
|
+
src: imgUrl
|
|
21728
|
+
});
|
|
20956
21729
|
}
|
|
20957
21730
|
}, {
|
|
20958
|
-
dataIndex: '
|
|
20959
|
-
title:
|
|
21731
|
+
dataIndex: 'num',
|
|
21732
|
+
title: "\u6570\u91CF",
|
|
20960
21733
|
width: 100,
|
|
20961
21734
|
render: function render(val, record, index) {
|
|
20962
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21735
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20963
21736
|
style: {
|
|
20964
21737
|
width: 70
|
|
20965
21738
|
},
|
|
@@ -20967,216 +21740,212 @@ var getColumns$5 = function getColumns() {
|
|
|
20967
21740
|
min: 1,
|
|
20968
21741
|
precision: 0,
|
|
20969
21742
|
onChange: function onChange(num) {
|
|
20970
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21743
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20971
21744
|
}
|
|
20972
21745
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20973
21746
|
}
|
|
20974
21747
|
}, {
|
|
20975
|
-
dataIndex: '
|
|
20976
|
-
title:
|
|
20977
|
-
|
|
20978
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20979
|
-
}
|
|
20980
|
-
}, {
|
|
20981
|
-
dataIndex: 'isGift',
|
|
20982
|
-
title: '是否赠品',
|
|
20983
|
-
width: 100,
|
|
20984
|
-
render: function render(val, record, index) {
|
|
20985
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20986
|
-
value: val,
|
|
20987
|
-
onChange: function onChange(value) {
|
|
20988
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20989
|
-
},
|
|
20990
|
-
options: [{
|
|
20991
|
-
label: '是',
|
|
20992
|
-
value: true
|
|
20993
|
-
}, {
|
|
20994
|
-
label: '否',
|
|
20995
|
-
value: false
|
|
20996
|
-
}]
|
|
20997
|
-
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20998
|
-
}
|
|
20999
|
-
}, {
|
|
21000
|
-
dataIndex: 'remark',
|
|
21001
|
-
title: '备注',
|
|
21748
|
+
dataIndex: 'payment',
|
|
21749
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21750
|
+
width: 150,
|
|
21002
21751
|
render: function render(val, record, index) {
|
|
21003
|
-
return !disabled ? /*#__PURE__*/React.createElement(
|
|
21752
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21004
21753
|
style: {
|
|
21005
|
-
width:
|
|
21754
|
+
width: 130
|
|
21006
21755
|
},
|
|
21007
21756
|
value: val,
|
|
21008
|
-
|
|
21009
|
-
|
|
21757
|
+
min: 0,
|
|
21758
|
+
precision: 2,
|
|
21759
|
+
onChange: function onChange(num) {
|
|
21760
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21010
21761
|
}
|
|
21011
|
-
}) :
|
|
21762
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21012
21763
|
}
|
|
21013
|
-
}].map(fillAttrs),
|
|
21014
|
-
// jst售后商品信息
|
|
21015
|
-
JST_AFTERSALE_GOODS: [{
|
|
21016
|
-
dataIndex: 'asId',
|
|
21017
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21018
|
-
width: 200,
|
|
21019
|
-
align: 'center',
|
|
21020
|
-
ellipsis: true,
|
|
21021
|
-
render: renderTextEllipsis
|
|
21022
|
-
}, {
|
|
21023
|
-
dataIndex: 'asiId',
|
|
21024
|
-
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21025
|
-
width: 200,
|
|
21026
|
-
align: 'center',
|
|
21027
|
-
ellipsis: true,
|
|
21028
|
-
render: renderTextEllipsis
|
|
21029
21764
|
}, {
|
|
21030
|
-
dataIndex: '
|
|
21031
|
-
title: "\
|
|
21032
|
-
width:
|
|
21033
|
-
align: 'center',
|
|
21034
|
-
ellipsis: true,
|
|
21035
|
-
render: renderTextEllipsis
|
|
21036
|
-
}, {
|
|
21037
|
-
dataIndex: 'pic',
|
|
21038
|
-
title: "\u56FE\u7247",
|
|
21039
|
-
width: 100,
|
|
21040
|
-
align: 'center',
|
|
21765
|
+
dataIndex: 'price',
|
|
21766
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21767
|
+
width: 150,
|
|
21041
21768
|
render: function render(val) {
|
|
21042
|
-
return
|
|
21043
|
-
|
|
21044
|
-
src: val
|
|
21045
|
-
});
|
|
21046
|
-
},
|
|
21047
|
-
headerComponentType: 'pic'
|
|
21769
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21770
|
+
}
|
|
21048
21771
|
}, {
|
|
21049
|
-
dataIndex: '
|
|
21050
|
-
title: "\u5546\u54C1\
|
|
21051
|
-
width:
|
|
21052
|
-
align: 'center',
|
|
21053
|
-
ellipsis: true,
|
|
21772
|
+
dataIndex: 'type',
|
|
21773
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21774
|
+
width: 150,
|
|
21054
21775
|
render: renderTextEllipsis
|
|
21055
21776
|
}, {
|
|
21056
|
-
dataIndex: '
|
|
21057
|
-
title: "\u5546\
|
|
21058
|
-
width:
|
|
21059
|
-
align: 'center',
|
|
21060
|
-
ellipsis: true,
|
|
21777
|
+
dataIndex: 'supplierName',
|
|
21778
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21779
|
+
width: 150,
|
|
21061
21780
|
render: renderTextEllipsis
|
|
21062
21781
|
}, {
|
|
21063
|
-
dataIndex: '
|
|
21064
|
-
title: "\
|
|
21065
|
-
width:
|
|
21066
|
-
|
|
21067
|
-
|
|
21782
|
+
dataIndex: 'supplierCode',
|
|
21783
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21784
|
+
width: 150,
|
|
21785
|
+
render: renderTextEllipsis
|
|
21786
|
+
}].map(function (item) {
|
|
21787
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21788
|
+
align: 'center',
|
|
21789
|
+
ellipsis: true
|
|
21790
|
+
});
|
|
21791
|
+
}),
|
|
21792
|
+
KM_REISSUE_GOODS: [{
|
|
21793
|
+
dataIndex: 'skuPropertiesName',
|
|
21794
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21795
|
+
width: 250,
|
|
21068
21796
|
render: renderTextEllipsis
|
|
21069
21797
|
}, {
|
|
21070
|
-
dataIndex: '
|
|
21071
|
-
title: "\
|
|
21798
|
+
dataIndex: 'sysTitle',
|
|
21799
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21072
21800
|
width: 150,
|
|
21073
|
-
align: 'center',
|
|
21074
|
-
ellipsis: true,
|
|
21075
21801
|
render: renderTextEllipsis
|
|
21076
21802
|
}, {
|
|
21077
|
-
dataIndex: '
|
|
21078
|
-
title: "\
|
|
21803
|
+
dataIndex: 'shortTitle',
|
|
21804
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21079
21805
|
width: 150,
|
|
21080
|
-
align: 'center',
|
|
21081
|
-
ellipsis: true,
|
|
21082
21806
|
render: renderTextEllipsis
|
|
21083
21807
|
}, {
|
|
21084
|
-
dataIndex: '
|
|
21085
|
-
title: "\
|
|
21808
|
+
dataIndex: 'title',
|
|
21809
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21086
21810
|
width: 150,
|
|
21087
|
-
align: 'center',
|
|
21088
|
-
ellipsis: true,
|
|
21089
21811
|
render: renderTextEllipsis
|
|
21090
21812
|
}, {
|
|
21091
|
-
dataIndex: '
|
|
21092
|
-
title: "\
|
|
21813
|
+
dataIndex: 'sysOuterId',
|
|
21814
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21093
21815
|
width: 150,
|
|
21094
|
-
align: 'center',
|
|
21095
|
-
ellipsis: true,
|
|
21096
21816
|
render: renderTextEllipsis
|
|
21097
21817
|
}, {
|
|
21098
|
-
dataIndex: '
|
|
21099
|
-
title: "\
|
|
21818
|
+
dataIndex: 'itemSysId',
|
|
21819
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21100
21820
|
width: 150,
|
|
21101
|
-
align: 'center',
|
|
21102
|
-
ellipsis: true,
|
|
21103
21821
|
render: renderTextEllipsis
|
|
21104
21822
|
}, {
|
|
21105
|
-
dataIndex: '
|
|
21106
|
-
title: "\
|
|
21823
|
+
dataIndex: 'skuSysId',
|
|
21824
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21107
21825
|
width: 150,
|
|
21108
|
-
align: 'center',
|
|
21109
|
-
ellipsis: true,
|
|
21110
21826
|
render: renderTextEllipsis
|
|
21111
21827
|
}, {
|
|
21112
|
-
dataIndex: '
|
|
21113
|
-
title: "\
|
|
21114
|
-
width:
|
|
21115
|
-
align: 'center',
|
|
21116
|
-
ellipsis: true,
|
|
21828
|
+
dataIndex: 'skuId',
|
|
21829
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21830
|
+
width: 170,
|
|
21117
21831
|
render: renderTextEllipsis
|
|
21118
21832
|
}, {
|
|
21119
|
-
dataIndex: '
|
|
21120
|
-
title: "\
|
|
21121
|
-
width:
|
|
21122
|
-
align: 'center',
|
|
21123
|
-
ellipsis: true,
|
|
21833
|
+
dataIndex: 'outerSkuId',
|
|
21834
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21835
|
+
width: 170,
|
|
21124
21836
|
render: renderTextEllipsis
|
|
21125
21837
|
}, {
|
|
21126
|
-
dataIndex: '
|
|
21127
|
-
title: "\
|
|
21128
|
-
width:
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21838
|
+
dataIndex: 'realNum',
|
|
21839
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21840
|
+
width: 100,
|
|
21841
|
+
validator: function validator(_rule, value) {
|
|
21842
|
+
var title = '';
|
|
21843
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21844
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
21845
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
21846
|
+
if (res) {
|
|
21847
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
21848
|
+
}
|
|
21849
|
+
return res;
|
|
21850
|
+
})) {
|
|
21851
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21852
|
+
}
|
|
21853
|
+
},
|
|
21854
|
+
render: function render(val, record, index) {
|
|
21855
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21856
|
+
style: {
|
|
21857
|
+
width: 70
|
|
21858
|
+
},
|
|
21859
|
+
value: val,
|
|
21860
|
+
min: 1,
|
|
21861
|
+
precision: 0,
|
|
21862
|
+
onChange: function onChange(num) {
|
|
21863
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
21864
|
+
}
|
|
21865
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21866
|
+
}
|
|
21867
|
+
}, {
|
|
21868
|
+
dataIndex: 'desiredNum',
|
|
21869
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
21870
|
+
width: 100,
|
|
21871
|
+
render: function render(val, record, index) {
|
|
21872
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21873
|
+
style: {
|
|
21874
|
+
width: 70
|
|
21875
|
+
},
|
|
21876
|
+
value: val,
|
|
21877
|
+
min: 1,
|
|
21878
|
+
precision: 0,
|
|
21879
|
+
onChange: function onChange(num) {
|
|
21880
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
21881
|
+
}
|
|
21882
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21883
|
+
}
|
|
21884
|
+
}, {
|
|
21885
|
+
dataIndex: 'price',
|
|
21886
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21887
|
+
width: 150,
|
|
21888
|
+
render: function render(val) {
|
|
21889
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21890
|
+
}
|
|
21891
|
+
}, {
|
|
21892
|
+
dataIndex: 'payment',
|
|
21893
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21894
|
+
width: 150,
|
|
21895
|
+
render: function render(val, record, index) {
|
|
21896
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21897
|
+
style: {
|
|
21898
|
+
width: 130
|
|
21899
|
+
},
|
|
21900
|
+
value: val,
|
|
21901
|
+
min: 0,
|
|
21902
|
+
precision: 2,
|
|
21903
|
+
onChange: function onChange(num) {
|
|
21904
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21905
|
+
}
|
|
21906
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21907
|
+
}
|
|
21132
21908
|
}, {
|
|
21133
21909
|
dataIndex: 'type',
|
|
21134
|
-
title: "\
|
|
21910
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21911
|
+
width: 150,
|
|
21912
|
+
render: renderTextEllipsis
|
|
21913
|
+
}, {
|
|
21914
|
+
dataIndex: 'supplierName',
|
|
21915
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21135
21916
|
width: 150,
|
|
21136
|
-
align: 'center',
|
|
21137
|
-
ellipsis: true,
|
|
21138
21917
|
render: renderTextEllipsis
|
|
21139
21918
|
}, {
|
|
21140
|
-
dataIndex: '
|
|
21141
|
-
title: "\u5546\
|
|
21919
|
+
dataIndex: 'supplierCode',
|
|
21920
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21142
21921
|
width: 150,
|
|
21143
|
-
align: 'center',
|
|
21144
|
-
ellipsis: true,
|
|
21145
21922
|
render: renderTextEllipsis
|
|
21146
21923
|
}, {
|
|
21147
|
-
dataIndex: '
|
|
21148
|
-
title:
|
|
21924
|
+
dataIndex: 'sysPicPath',
|
|
21925
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21149
21926
|
width: 100,
|
|
21150
21927
|
render: function render(val) {
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
},
|
|
21157
|
-
renderExport: function renderExport(val) {
|
|
21158
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21159
|
-
}
|
|
21928
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21929
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21930
|
+
width: 30,
|
|
21931
|
+
src: imgUrl
|
|
21932
|
+
});
|
|
21160
21933
|
}
|
|
21161
|
-
}
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
render: renderTextEllipsis
|
|
21168
|
-
}, {
|
|
21169
|
-
dataIndex: 'remark',
|
|
21170
|
-
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21171
|
-
width: 200,
|
|
21172
|
-
align: 'center',
|
|
21173
|
-
ellipsis: true,
|
|
21174
|
-
render: renderTextEllipsis
|
|
21175
|
-
}]
|
|
21934
|
+
}].map(function (item) {
|
|
21935
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21936
|
+
align: 'center',
|
|
21937
|
+
ellipsis: true
|
|
21938
|
+
});
|
|
21939
|
+
})
|
|
21176
21940
|
};
|
|
21177
21941
|
};
|
|
21178
21942
|
|
|
21179
|
-
function
|
|
21943
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21944
|
+
if (typeof value === 'number') return true;
|
|
21945
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21946
|
+
return false;
|
|
21947
|
+
};
|
|
21948
|
+
function toNum$4(value) {
|
|
21180
21949
|
if (typeof value === 'string') {
|
|
21181
21950
|
return value ? +value : void 0;
|
|
21182
21951
|
}
|
|
@@ -21185,69 +21954,117 @@ function toNum$3(value) {
|
|
|
21185
21954
|
}
|
|
21186
21955
|
return void 0;
|
|
21187
21956
|
}
|
|
21188
|
-
var getColumns$
|
|
21957
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21189
21958
|
var _ref$text = _ref.text,
|
|
21190
21959
|
disabled = _ref.disabled,
|
|
21191
|
-
updateHandle = _ref.updateHandle
|
|
21960
|
+
updateHandle = _ref.updateHandle,
|
|
21961
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21192
21962
|
return {
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21963
|
+
//巨益商品信息
|
|
21964
|
+
JY_GOODS: [{
|
|
21965
|
+
dataIndex: 'productName',
|
|
21966
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21967
|
+
align: 'center',
|
|
21968
|
+
ellipsis: true,
|
|
21969
|
+
width: 150,
|
|
21197
21970
|
render: renderTextEllipsis
|
|
21198
21971
|
}, {
|
|
21199
|
-
dataIndex: '
|
|
21200
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
21972
|
+
dataIndex: 'productCode',
|
|
21973
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21974
|
+
align: 'center',
|
|
21975
|
+
ellipsis: true,
|
|
21201
21976
|
width: 150,
|
|
21202
21977
|
render: renderTextEllipsis
|
|
21203
21978
|
}, {
|
|
21204
|
-
dataIndex: '
|
|
21205
|
-
title: "\
|
|
21979
|
+
dataIndex: 'productId',
|
|
21980
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21981
|
+
align: 'center',
|
|
21982
|
+
ellipsis: true,
|
|
21206
21983
|
width: 150,
|
|
21207
21984
|
render: renderTextEllipsis
|
|
21208
21985
|
}, {
|
|
21209
|
-
dataIndex: '
|
|
21210
|
-
title: "\
|
|
21986
|
+
dataIndex: 'skuName',
|
|
21987
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21988
|
+
align: 'center',
|
|
21989
|
+
ellipsis: true,
|
|
21211
21990
|
width: 150,
|
|
21212
21991
|
render: renderTextEllipsis
|
|
21213
21992
|
}, {
|
|
21214
|
-
dataIndex: '
|
|
21215
|
-
title: "\u7CFB\u7EDF\
|
|
21993
|
+
dataIndex: 'skuCode',
|
|
21994
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
21995
|
+
align: 'center',
|
|
21996
|
+
ellipsis: true,
|
|
21216
21997
|
width: 150,
|
|
21217
21998
|
render: renderTextEllipsis
|
|
21218
21999
|
}, {
|
|
21219
|
-
dataIndex: '
|
|
21220
|
-
title: "\
|
|
22000
|
+
dataIndex: 'specId',
|
|
22001
|
+
title: "\u89C4\u683CID",
|
|
22002
|
+
align: 'center',
|
|
22003
|
+
ellipsis: true,
|
|
21221
22004
|
width: 150,
|
|
21222
22005
|
render: renderTextEllipsis
|
|
21223
22006
|
}, {
|
|
21224
|
-
dataIndex: '
|
|
21225
|
-
title: "\
|
|
21226
|
-
width:
|
|
22007
|
+
dataIndex: 'goodsClass',
|
|
22008
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22009
|
+
width: 150,
|
|
21227
22010
|
render: renderTextEllipsis
|
|
21228
22011
|
}, {
|
|
21229
|
-
dataIndex: '
|
|
21230
|
-
title: "\
|
|
21231
|
-
width:
|
|
22012
|
+
dataIndex: 'code',
|
|
22013
|
+
title: "\u6761\u7801",
|
|
22014
|
+
width: 150,
|
|
22015
|
+
render: renderTextEllipsis
|
|
22016
|
+
},
|
|
22017
|
+
// {
|
|
22018
|
+
// dataIndex: 'specName',
|
|
22019
|
+
// title: `规格名称`,
|
|
22020
|
+
// align: 'center',
|
|
22021
|
+
// ellipsis: true,
|
|
22022
|
+
// width: 200,
|
|
22023
|
+
// },
|
|
22024
|
+
// {
|
|
22025
|
+
// dataIndex: 'specCode',
|
|
22026
|
+
// title: `规格编号`,
|
|
22027
|
+
// align: 'center',
|
|
22028
|
+
// ellipsis: true,
|
|
22029
|
+
// width: 150,
|
|
22030
|
+
// },
|
|
22031
|
+
{
|
|
22032
|
+
dataIndex: 'mallProductName',
|
|
22033
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22034
|
+
align: 'center',
|
|
22035
|
+
ellipsis: true,
|
|
22036
|
+
width: 250,
|
|
21232
22037
|
render: renderTextEllipsis
|
|
21233
22038
|
}, {
|
|
21234
|
-
dataIndex: '
|
|
21235
|
-
title: "\
|
|
22039
|
+
dataIndex: 'mallProductOutCode',
|
|
22040
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22041
|
+
align: 'center',
|
|
22042
|
+
ellipsis: true,
|
|
21236
22043
|
width: 150,
|
|
21237
22044
|
render: renderTextEllipsis
|
|
21238
22045
|
}, {
|
|
21239
|
-
dataIndex: '
|
|
21240
|
-
title: "\
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
width: 30,
|
|
21246
|
-
src: imgUrl
|
|
21247
|
-
});
|
|
21248
|
-
}
|
|
22046
|
+
dataIndex: 'mallProductId',
|
|
22047
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22048
|
+
align: 'center',
|
|
22049
|
+
ellipsis: true,
|
|
22050
|
+
width: 250,
|
|
22051
|
+
render: renderTextEllipsis
|
|
21249
22052
|
}, {
|
|
21250
|
-
dataIndex: '
|
|
22053
|
+
dataIndex: 'mallSkuName',
|
|
22054
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22055
|
+
align: 'center',
|
|
22056
|
+
ellipsis: true,
|
|
22057
|
+
width: 250,
|
|
22058
|
+
render: renderTextEllipsis
|
|
22059
|
+
}, {
|
|
22060
|
+
dataIndex: 'mallSkuId',
|
|
22061
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22062
|
+
align: 'center',
|
|
22063
|
+
ellipsis: true,
|
|
22064
|
+
width: 250,
|
|
22065
|
+
render: renderTextEllipsis
|
|
22066
|
+
}, {
|
|
22067
|
+
dataIndex: 'sellCount',
|
|
21251
22068
|
title: "\u6570\u91CF",
|
|
21252
22069
|
width: 100,
|
|
21253
22070
|
render: function render(val, record, index) {
|
|
@@ -21259,13 +22076,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21259
22076
|
min: 1,
|
|
21260
22077
|
precision: 0,
|
|
21261
22078
|
onChange: function onChange(num) {
|
|
21262
|
-
|
|
22079
|
+
updateDataHandle({
|
|
22080
|
+
sellCount: num,
|
|
22081
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22082
|
+
}, index);
|
|
21263
22083
|
}
|
|
21264
22084
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21265
22085
|
}
|
|
21266
22086
|
}, {
|
|
21267
|
-
dataIndex: '
|
|
21268
|
-
title: "\
|
|
22087
|
+
dataIndex: 'sellPrice',
|
|
22088
|
+
title: "\u5355\u4EF7",
|
|
21269
22089
|
width: 150,
|
|
21270
22090
|
render: function render(val, record, index) {
|
|
21271
22091
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
@@ -21276,98 +22096,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21276
22096
|
min: 0,
|
|
21277
22097
|
precision: 2,
|
|
21278
22098
|
onChange: function onChange(num) {
|
|
21279
|
-
|
|
22099
|
+
updateDataHandle({
|
|
22100
|
+
sellPrice: num,
|
|
22101
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22102
|
+
}, index);
|
|
21280
22103
|
}
|
|
21281
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22104
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22105
|
+
}
|
|
22106
|
+
}, {
|
|
22107
|
+
dataIndex: 'mallSellingPrice',
|
|
22108
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22109
|
+
width: 150
|
|
22110
|
+
}, {
|
|
22111
|
+
dataIndex: 'sellTotal',
|
|
22112
|
+
title: "\u91D1\u989D",
|
|
22113
|
+
width: 150
|
|
22114
|
+
}, {
|
|
22115
|
+
dataIndex: 'settlementPrice',
|
|
22116
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22117
|
+
width: 150
|
|
22118
|
+
}, {
|
|
22119
|
+
dataIndex: 'divideOrderFee',
|
|
22120
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22121
|
+
width: 150
|
|
22122
|
+
}, {
|
|
22123
|
+
dataIndex: 'bfit',
|
|
22124
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22125
|
+
width: 150,
|
|
22126
|
+
render: function render(val, record, index) {
|
|
22127
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22128
|
+
dropdownStyle: {
|
|
22129
|
+
zIndex: 2000
|
|
22130
|
+
},
|
|
22131
|
+
getPopupContainer: function getPopupContainer() {
|
|
22132
|
+
return document.body;
|
|
22133
|
+
},
|
|
22134
|
+
value: val,
|
|
22135
|
+
onChange: function onChange(value) {
|
|
22136
|
+
updateHandle(value, index, 'bfit');
|
|
22137
|
+
},
|
|
22138
|
+
options: [{
|
|
22139
|
+
label: '是',
|
|
22140
|
+
value: 'True'
|
|
22141
|
+
}, {
|
|
22142
|
+
label: '否',
|
|
22143
|
+
value: 'False'
|
|
22144
|
+
}]
|
|
22145
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
22146
|
+
}
|
|
22147
|
+
}, {
|
|
22148
|
+
dataIndex: 'combinationName',
|
|
22149
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
22150
|
+
width: 150,
|
|
22151
|
+
render: renderTextEllipsis
|
|
22152
|
+
}, {
|
|
22153
|
+
dataIndex: 'combinationCode',
|
|
22154
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22155
|
+
width: 150,
|
|
22156
|
+
render: renderTextEllipsis
|
|
22157
|
+
}, {
|
|
22158
|
+
dataIndex: 'gift',
|
|
22159
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22160
|
+
width: 150,
|
|
22161
|
+
render: function render(val, record, index) {
|
|
22162
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22163
|
+
dropdownStyle: {
|
|
22164
|
+
zIndex: 2000
|
|
22165
|
+
},
|
|
22166
|
+
getPopupContainer: function getPopupContainer() {
|
|
22167
|
+
return document.body;
|
|
22168
|
+
},
|
|
22169
|
+
value: val,
|
|
22170
|
+
onChange: function onChange(value) {
|
|
22171
|
+
updateHandle(value, index, 'gift');
|
|
22172
|
+
},
|
|
22173
|
+
options: [{
|
|
22174
|
+
label: '是',
|
|
22175
|
+
value: '1'
|
|
22176
|
+
}, {
|
|
22177
|
+
label: '否',
|
|
22178
|
+
value: '0'
|
|
22179
|
+
}]
|
|
22180
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21282
22181
|
}
|
|
22182
|
+
}].map(function (item) {
|
|
22183
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22184
|
+
align: 'center',
|
|
22185
|
+
ellipsis: true
|
|
22186
|
+
});
|
|
22187
|
+
}),
|
|
22188
|
+
// 巨益补发商品信息
|
|
22189
|
+
JY_REISSUE_GOODS: [{
|
|
22190
|
+
dataIndex: 'productName',
|
|
22191
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22192
|
+
align: 'center',
|
|
22193
|
+
ellipsis: true,
|
|
22194
|
+
width: 150,
|
|
22195
|
+
render: renderTextEllipsis
|
|
21283
22196
|
}, {
|
|
21284
|
-
dataIndex: '
|
|
21285
|
-
title: "\u5546\u54C1\
|
|
22197
|
+
dataIndex: 'productCode',
|
|
22198
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22199
|
+
align: 'center',
|
|
22200
|
+
ellipsis: true,
|
|
21286
22201
|
width: 150,
|
|
21287
|
-
render:
|
|
21288
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21289
|
-
}
|
|
22202
|
+
render: renderTextEllipsis
|
|
21290
22203
|
}, {
|
|
21291
|
-
dataIndex: '
|
|
21292
|
-
title: "\
|
|
22204
|
+
dataIndex: 'productId',
|
|
22205
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22206
|
+
align: 'center',
|
|
22207
|
+
ellipsis: true,
|
|
21293
22208
|
width: 150,
|
|
21294
22209
|
render: renderTextEllipsis
|
|
21295
22210
|
}, {
|
|
21296
|
-
dataIndex: '
|
|
21297
|
-
title: "\
|
|
22211
|
+
dataIndex: 'skuName',
|
|
22212
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22213
|
+
align: 'center',
|
|
22214
|
+
ellipsis: true,
|
|
21298
22215
|
width: 150,
|
|
21299
22216
|
render: renderTextEllipsis
|
|
21300
22217
|
}, {
|
|
21301
|
-
dataIndex: '
|
|
21302
|
-
title: "\
|
|
22218
|
+
dataIndex: 'skuCode',
|
|
22219
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22220
|
+
align: 'center',
|
|
22221
|
+
ellipsis: true,
|
|
21303
22222
|
width: 150,
|
|
21304
22223
|
render: renderTextEllipsis
|
|
21305
|
-
}
|
|
21306
|
-
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
KM_REISSUE_GOODS: [{
|
|
21312
|
-
dataIndex: 'skuPropertiesName',
|
|
21313
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
21314
|
-
width: 250,
|
|
22224
|
+
}, {
|
|
22225
|
+
dataIndex: 'specId',
|
|
22226
|
+
title: "\u89C4\u683CID",
|
|
22227
|
+
align: 'center',
|
|
22228
|
+
ellipsis: true,
|
|
22229
|
+
width: 150,
|
|
21315
22230
|
render: renderTextEllipsis
|
|
21316
22231
|
}, {
|
|
21317
|
-
dataIndex: '
|
|
21318
|
-
title: "\
|
|
22232
|
+
dataIndex: 'goodsClass',
|
|
22233
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21319
22234
|
width: 150,
|
|
21320
22235
|
render: renderTextEllipsis
|
|
21321
22236
|
}, {
|
|
21322
|
-
dataIndex: '
|
|
21323
|
-
title: "\
|
|
22237
|
+
dataIndex: 'code',
|
|
22238
|
+
title: "\u6761\u7801",
|
|
21324
22239
|
width: 150,
|
|
21325
22240
|
render: renderTextEllipsis
|
|
21326
22241
|
}, {
|
|
21327
|
-
dataIndex: '
|
|
22242
|
+
dataIndex: 'mallProductName',
|
|
21328
22243
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22244
|
+
align: 'center',
|
|
22245
|
+
ellipsis: true,
|
|
21329
22246
|
width: 150,
|
|
21330
22247
|
render: renderTextEllipsis
|
|
21331
22248
|
}, {
|
|
21332
|
-
dataIndex: '
|
|
21333
|
-
title: "\
|
|
22249
|
+
dataIndex: 'mallProductOutCode',
|
|
22250
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22251
|
+
align: 'center',
|
|
22252
|
+
ellipsis: true,
|
|
21334
22253
|
width: 150,
|
|
21335
22254
|
render: renderTextEllipsis
|
|
21336
22255
|
}, {
|
|
21337
|
-
dataIndex: '
|
|
21338
|
-
title: "\
|
|
22256
|
+
dataIndex: 'mallProductId',
|
|
22257
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22258
|
+
align: 'center',
|
|
22259
|
+
ellipsis: true,
|
|
21339
22260
|
width: 150,
|
|
21340
22261
|
render: renderTextEllipsis
|
|
21341
22262
|
}, {
|
|
21342
|
-
dataIndex: '
|
|
21343
|
-
title: "\
|
|
22263
|
+
dataIndex: 'mallSkuName',
|
|
22264
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22265
|
+
align: 'center',
|
|
22266
|
+
ellipsis: true,
|
|
21344
22267
|
width: 150,
|
|
21345
22268
|
render: renderTextEllipsis
|
|
21346
22269
|
}, {
|
|
21347
|
-
dataIndex: '
|
|
22270
|
+
dataIndex: 'mallSkuId',
|
|
21348
22271
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
dataIndex: 'outerSkuId',
|
|
21353
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21354
|
-
width: 170,
|
|
22272
|
+
align: 'center',
|
|
22273
|
+
ellipsis: true,
|
|
22274
|
+
width: 150,
|
|
21355
22275
|
render: renderTextEllipsis
|
|
21356
22276
|
}, {
|
|
21357
|
-
dataIndex: '
|
|
21358
|
-
title: "\
|
|
22277
|
+
dataIndex: 'sellCount',
|
|
22278
|
+
title: "\u6570\u91CF",
|
|
21359
22279
|
width: 100,
|
|
21360
22280
|
validator: function validator(_rule, value) {
|
|
21361
|
-
var
|
|
21362
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21363
|
-
var
|
|
21364
|
-
var res = typeof
|
|
22281
|
+
var productName = '';
|
|
22282
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22283
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22284
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21365
22285
|
if (res) {
|
|
21366
|
-
|
|
22286
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21367
22287
|
}
|
|
21368
22288
|
return res;
|
|
21369
22289
|
})) {
|
|
21370
|
-
return Promise.reject("".concat(
|
|
22290
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21371
22291
|
}
|
|
21372
22292
|
},
|
|
21373
22293
|
render: function render(val, record, index) {
|
|
@@ -21379,76 +22299,88 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21379
22299
|
min: 1,
|
|
21380
22300
|
precision: 0,
|
|
21381
22301
|
onChange: function onChange(num) {
|
|
21382
|
-
|
|
22302
|
+
updateDataHandle({
|
|
22303
|
+
sellCount: num,
|
|
22304
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22305
|
+
}, index);
|
|
21383
22306
|
}
|
|
21384
22307
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21385
22308
|
}
|
|
21386
22309
|
}, {
|
|
21387
|
-
dataIndex: '
|
|
21388
|
-
title: "\
|
|
21389
|
-
width:
|
|
22310
|
+
dataIndex: 'sellPrice',
|
|
22311
|
+
title: "\u5355\u4EF7",
|
|
22312
|
+
width: 150,
|
|
21390
22313
|
render: function render(val, record, index) {
|
|
21391
22314
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21392
22315
|
style: {
|
|
21393
|
-
width:
|
|
22316
|
+
width: 130
|
|
21394
22317
|
},
|
|
21395
22318
|
value: val,
|
|
21396
|
-
min:
|
|
21397
|
-
precision:
|
|
22319
|
+
min: 0,
|
|
22320
|
+
precision: 2,
|
|
21398
22321
|
onChange: function onChange(num) {
|
|
21399
|
-
|
|
22322
|
+
updateDataHandle({
|
|
22323
|
+
sellPrice: num,
|
|
22324
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22325
|
+
}, index);
|
|
21400
22326
|
}
|
|
21401
22327
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21402
22328
|
}
|
|
21403
22329
|
}, {
|
|
21404
|
-
dataIndex: '
|
|
21405
|
-
title: "\u5546\u54C1\
|
|
21406
|
-
width: 150
|
|
21407
|
-
render: function render(val) {
|
|
21408
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21409
|
-
}
|
|
22330
|
+
dataIndex: 'mallSellingPrice',
|
|
22331
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22332
|
+
width: 150
|
|
21410
22333
|
}, {
|
|
21411
|
-
dataIndex: '
|
|
21412
|
-
title: "\
|
|
22334
|
+
dataIndex: 'sellTotal',
|
|
22335
|
+
title: "\u91D1\u989D",
|
|
22336
|
+
width: 150
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'bfit',
|
|
22339
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21413
22340
|
width: 150,
|
|
21414
22341
|
render: function render(val, record, index) {
|
|
21415
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(
|
|
21416
|
-
style: {
|
|
21417
|
-
width: 130
|
|
21418
|
-
},
|
|
22342
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21419
22343
|
value: val,
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
22344
|
+
onChange: function onChange(value) {
|
|
22345
|
+
updateHandle(value, index, 'bfit');
|
|
22346
|
+
},
|
|
22347
|
+
options: [{
|
|
22348
|
+
label: '是',
|
|
22349
|
+
value: 'True'
|
|
22350
|
+
}, {
|
|
22351
|
+
label: '否',
|
|
22352
|
+
value: 'False'
|
|
22353
|
+
}]
|
|
22354
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
21426
22355
|
}
|
|
21427
22356
|
}, {
|
|
21428
|
-
dataIndex: '
|
|
21429
|
-
title: "\u5546\u54C1\
|
|
22357
|
+
dataIndex: 'combinationName',
|
|
22358
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21430
22359
|
width: 150,
|
|
21431
22360
|
render: renderTextEllipsis
|
|
21432
22361
|
}, {
|
|
21433
|
-
dataIndex: '
|
|
21434
|
-
title: "\
|
|
22362
|
+
dataIndex: 'combinationCode',
|
|
22363
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21435
22364
|
width: 150,
|
|
21436
22365
|
render: renderTextEllipsis
|
|
21437
22366
|
}, {
|
|
21438
|
-
dataIndex: '
|
|
21439
|
-
title: "\
|
|
22367
|
+
dataIndex: 'gift',
|
|
22368
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21440
22369
|
width: 150,
|
|
21441
|
-
render:
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
22370
|
+
render: function render(val, record, index) {
|
|
22371
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22372
|
+
value: val,
|
|
22373
|
+
onChange: function onChange(value) {
|
|
22374
|
+
updateHandle(value, index, 'gift');
|
|
22375
|
+
},
|
|
22376
|
+
options: [{
|
|
22377
|
+
label: '是',
|
|
22378
|
+
value: '1'
|
|
22379
|
+
}, {
|
|
22380
|
+
label: '否',
|
|
22381
|
+
value: '0'
|
|
22382
|
+
}]
|
|
22383
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21452
22384
|
}
|
|
21453
22385
|
}].map(function (item) {
|
|
21454
22386
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21459,12 +22391,54 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21459
22391
|
};
|
|
21460
22392
|
};
|
|
21461
22393
|
|
|
21462
|
-
var
|
|
22394
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
22395
|
+
var _ref$text = _ref.text,
|
|
22396
|
+
disabled = _ref.disabled,
|
|
22397
|
+
updateHandle = _ref.updateHandle,
|
|
22398
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22399
|
+
return {
|
|
22400
|
+
//[SKX]商品信息(ON)
|
|
22401
|
+
SKX_GOODS: [{
|
|
22402
|
+
dataIndex: 'skuEcode',
|
|
22403
|
+
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
22404
|
+
width: 250
|
|
22405
|
+
}, {
|
|
22406
|
+
dataIndex: 'subOrderId',
|
|
22407
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22408
|
+
width: 300
|
|
22409
|
+
}, {
|
|
22410
|
+
dataIndex: 'onBillNo',
|
|
22411
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22412
|
+
width: 200
|
|
22413
|
+
}].map(function (item) {
|
|
22414
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22415
|
+
align: 'center',
|
|
22416
|
+
ellipsis: true
|
|
22417
|
+
});
|
|
22418
|
+
}),
|
|
22419
|
+
//[SKX]退货商品信息(TH)
|
|
22420
|
+
SKX_RETURN_GOODS: [{
|
|
22421
|
+
dataIndex: 'returnSkuEcode',
|
|
22422
|
+
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
22423
|
+
width: 300
|
|
22424
|
+
}, {
|
|
22425
|
+
dataIndex: 'returnSubOrderId',
|
|
22426
|
+
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22427
|
+
width: 300
|
|
22428
|
+
}, {
|
|
22429
|
+
dataIndex: 'returnBillNo',
|
|
22430
|
+
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
22431
|
+
width: 200
|
|
22432
|
+
}]
|
|
22433
|
+
};
|
|
22434
|
+
};
|
|
22435
|
+
|
|
22436
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21463
22437
|
if (typeof value === 'number') return true;
|
|
21464
22438
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21465
22439
|
return false;
|
|
21466
22440
|
};
|
|
21467
|
-
function toNum$
|
|
22441
|
+
function toNum$5(value) {
|
|
21468
22442
|
if (typeof value === 'string') {
|
|
21469
22443
|
return value ? +value : void 0;
|
|
21470
22444
|
}
|
|
@@ -21473,44 +22447,44 @@ function toNum$4(value) {
|
|
|
21473
22447
|
}
|
|
21474
22448
|
return void 0;
|
|
21475
22449
|
}
|
|
21476
|
-
var getColumns$
|
|
22450
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21477
22451
|
var _ref$text = _ref.text,
|
|
21478
22452
|
disabled = _ref.disabled,
|
|
21479
22453
|
updateHandle = _ref.updateHandle,
|
|
21480
22454
|
updateDataHandle = _ref.updateDataHandle;
|
|
21481
22455
|
return {
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
dataIndex: '
|
|
21485
|
-
title: "\
|
|
22456
|
+
//吉客云商品信息
|
|
22457
|
+
JKY_GOODS: [{
|
|
22458
|
+
dataIndex: 'goodsNo',
|
|
22459
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21486
22460
|
align: 'center',
|
|
21487
22461
|
ellipsis: true,
|
|
21488
22462
|
width: 150,
|
|
21489
22463
|
render: renderTextEllipsis
|
|
21490
22464
|
}, {
|
|
21491
|
-
dataIndex: '
|
|
21492
|
-
title: "\
|
|
22465
|
+
dataIndex: 'goodsName',
|
|
22466
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21493
22467
|
align: 'center',
|
|
21494
22468
|
ellipsis: true,
|
|
21495
22469
|
width: 150,
|
|
21496
22470
|
render: renderTextEllipsis
|
|
21497
22471
|
}, {
|
|
21498
|
-
dataIndex: '
|
|
21499
|
-
title: "\
|
|
22472
|
+
dataIndex: 'goodsId',
|
|
22473
|
+
title: "\u8D27\u54C1ID",
|
|
21500
22474
|
align: 'center',
|
|
21501
22475
|
ellipsis: true,
|
|
21502
22476
|
width: 150,
|
|
21503
22477
|
render: renderTextEllipsis
|
|
21504
22478
|
}, {
|
|
21505
|
-
dataIndex: '
|
|
21506
|
-
title: "\
|
|
22479
|
+
dataIndex: 'barcode',
|
|
22480
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21507
22481
|
align: 'center',
|
|
21508
22482
|
ellipsis: true,
|
|
21509
22483
|
width: 150,
|
|
21510
22484
|
render: renderTextEllipsis
|
|
21511
22485
|
}, {
|
|
21512
|
-
dataIndex: '
|
|
21513
|
-
title: "\
|
|
22486
|
+
dataIndex: 'specName',
|
|
22487
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21514
22488
|
align: 'center',
|
|
21515
22489
|
ellipsis: true,
|
|
21516
22490
|
width: 150,
|
|
@@ -21522,82 +22496,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21522
22496
|
ellipsis: true,
|
|
21523
22497
|
width: 150,
|
|
21524
22498
|
render: renderTextEllipsis
|
|
21525
|
-
},
|
|
21526
|
-
// {
|
|
21527
|
-
// dataIndex: 'goodsName',
|
|
21528
|
-
// title: `货品名称`,
|
|
21529
|
-
// width: 250,
|
|
21530
|
-
// },
|
|
21531
|
-
// {
|
|
21532
|
-
// dataIndex: 'goodsCode',
|
|
21533
|
-
// title: `货品编号`,
|
|
21534
|
-
// width: 200,
|
|
21535
|
-
// },
|
|
21536
|
-
// {
|
|
21537
|
-
// dataIndex: 'goodsId',
|
|
21538
|
-
// title: `货品ID`,
|
|
21539
|
-
// width: 150,
|
|
21540
|
-
// },
|
|
21541
|
-
{
|
|
21542
|
-
dataIndex: 'goodsClass',
|
|
21543
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21544
|
-
width: 150,
|
|
21545
|
-
render: renderTextEllipsis
|
|
21546
|
-
}, {
|
|
21547
|
-
dataIndex: 'code',
|
|
21548
|
-
title: "\u6761\u7801",
|
|
21549
|
-
width: 150,
|
|
21550
|
-
render: renderTextEllipsis
|
|
21551
|
-
},
|
|
21552
|
-
// {
|
|
21553
|
-
// dataIndex: 'specName',
|
|
21554
|
-
// title: `规格名称`,
|
|
21555
|
-
// align: 'center',
|
|
21556
|
-
// ellipsis: true,
|
|
21557
|
-
// width: 200,
|
|
21558
|
-
// },
|
|
21559
|
-
// {
|
|
21560
|
-
// dataIndex: 'specCode',
|
|
21561
|
-
// title: `规格编号`,
|
|
21562
|
-
// align: 'center',
|
|
21563
|
-
// ellipsis: true,
|
|
21564
|
-
// width: 150,
|
|
21565
|
-
// },
|
|
21566
|
-
{
|
|
21567
|
-
dataIndex: 'mallProductName',
|
|
21568
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21569
|
-
align: 'center',
|
|
21570
|
-
ellipsis: true,
|
|
21571
|
-
width: 250,
|
|
21572
|
-
render: renderTextEllipsis
|
|
21573
22499
|
}, {
|
|
21574
|
-
dataIndex: '
|
|
21575
|
-
title: "\
|
|
22500
|
+
dataIndex: 'skuImgUrl',
|
|
22501
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21576
22502
|
align: 'center',
|
|
21577
22503
|
ellipsis: true,
|
|
21578
22504
|
width: 150,
|
|
21579
|
-
render:
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21585
|
-
width: 250,
|
|
21586
|
-
render: renderTextEllipsis
|
|
21587
|
-
}, {
|
|
21588
|
-
dataIndex: 'mallSkuName',
|
|
21589
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21590
|
-
align: 'center',
|
|
21591
|
-
ellipsis: true,
|
|
21592
|
-
width: 250,
|
|
21593
|
-
render: renderTextEllipsis
|
|
21594
|
-
}, {
|
|
21595
|
-
dataIndex: 'mallSkuId',
|
|
21596
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21597
|
-
align: 'center',
|
|
21598
|
-
ellipsis: true,
|
|
21599
|
-
width: 250,
|
|
21600
|
-
render: renderTextEllipsis
|
|
22505
|
+
render: function render(val) {
|
|
22506
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22507
|
+
width: 30,
|
|
22508
|
+
src: val
|
|
22509
|
+
});
|
|
22510
|
+
}
|
|
21601
22511
|
}, {
|
|
21602
22512
|
dataIndex: 'sellCount',
|
|
21603
22513
|
title: "\u6570\u91CF",
|
|
@@ -21613,11 +22523,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21613
22523
|
onChange: function onChange(num) {
|
|
21614
22524
|
updateDataHandle({
|
|
21615
22525
|
sellCount: num,
|
|
21616
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22526
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21617
22527
|
}, index);
|
|
21618
22528
|
}
|
|
21619
22529
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21620
22530
|
}
|
|
22531
|
+
}, {
|
|
22532
|
+
dataIndex: 'actualSendCount',
|
|
22533
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22534
|
+
width: 150,
|
|
22535
|
+
render: renderTextEllipsis
|
|
21621
22536
|
}, {
|
|
21622
22537
|
dataIndex: 'sellPrice',
|
|
21623
22538
|
title: "\u5355\u4EF7",
|
|
@@ -21633,30 +22548,57 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21633
22548
|
onChange: function onChange(num) {
|
|
21634
22549
|
updateDataHandle({
|
|
21635
22550
|
sellPrice: num,
|
|
21636
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22551
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21637
22552
|
}, index);
|
|
21638
22553
|
}
|
|
21639
22554
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21640
22555
|
}
|
|
21641
22556
|
}, {
|
|
21642
|
-
dataIndex: '
|
|
21643
|
-
title: "\
|
|
22557
|
+
dataIndex: 'sellTotal',
|
|
22558
|
+
title: "\u603B\u91D1\u989D",
|
|
21644
22559
|
width: 150
|
|
21645
22560
|
}, {
|
|
21646
|
-
dataIndex: '
|
|
21647
|
-
title: "\u91D1\u989D",
|
|
22561
|
+
dataIndex: 'discountTotal',
|
|
22562
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
21648
22563
|
width: 150
|
|
21649
22564
|
}, {
|
|
21650
|
-
dataIndex: '
|
|
21651
|
-
title: "\
|
|
22565
|
+
dataIndex: 'shareFavourableFee',
|
|
22566
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
21652
22567
|
width: 150
|
|
21653
22568
|
}, {
|
|
21654
|
-
dataIndex: '
|
|
21655
|
-
title: "\u5206\u644A\
|
|
22569
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22570
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
21656
22571
|
width: 150
|
|
21657
22572
|
}, {
|
|
21658
|
-
dataIndex: '
|
|
21659
|
-
title: "\
|
|
22573
|
+
dataIndex: 'customerPrice',
|
|
22574
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22575
|
+
width: 150
|
|
22576
|
+
}, {
|
|
22577
|
+
dataIndex: 'customerTotal',
|
|
22578
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22579
|
+
width: 150
|
|
22580
|
+
}, {
|
|
22581
|
+
dataIndex: 'divideSellTotal',
|
|
22582
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22583
|
+
width: 150,
|
|
22584
|
+
render: function render(val, record, index) {
|
|
22585
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22586
|
+
style: {
|
|
22587
|
+
width: 130
|
|
22588
|
+
},
|
|
22589
|
+
value: val,
|
|
22590
|
+
min: 0,
|
|
22591
|
+
precision: 2,
|
|
22592
|
+
onChange: function onChange(num) {
|
|
22593
|
+
updateDataHandle({
|
|
22594
|
+
divideSellTotal: num
|
|
22595
|
+
}, index);
|
|
22596
|
+
}
|
|
22597
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22598
|
+
}
|
|
22599
|
+
}, {
|
|
22600
|
+
dataIndex: 'isGift',
|
|
22601
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21660
22602
|
width: 150,
|
|
21661
22603
|
render: function render(val, record, index) {
|
|
21662
22604
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21668,30 +22610,45 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21668
22610
|
},
|
|
21669
22611
|
value: val,
|
|
21670
22612
|
onChange: function onChange(value) {
|
|
21671
|
-
updateHandle(value, index, '
|
|
22613
|
+
updateHandle(value, index, 'isGift');
|
|
21672
22614
|
},
|
|
21673
22615
|
options: [{
|
|
21674
22616
|
label: '是',
|
|
21675
|
-
value:
|
|
22617
|
+
value: 1
|
|
21676
22618
|
}, {
|
|
21677
22619
|
label: '否',
|
|
21678
|
-
value:
|
|
22620
|
+
value: 0
|
|
21679
22621
|
}]
|
|
21680
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22622
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
21681
22623
|
}
|
|
21682
22624
|
}, {
|
|
21683
|
-
dataIndex: '
|
|
21684
|
-
title: "\u7EC4\u5408\
|
|
21685
|
-
width: 150,
|
|
21686
|
-
render: renderTextEllipsis
|
|
21687
|
-
}, {
|
|
21688
|
-
dataIndex: 'combinationCode',
|
|
21689
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22625
|
+
dataIndex: 'isFit',
|
|
22626
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21690
22627
|
width: 150,
|
|
21691
|
-
render:
|
|
22628
|
+
render: function render(val, record, index) {
|
|
22629
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22630
|
+
dropdownStyle: {
|
|
22631
|
+
zIndex: 2000
|
|
22632
|
+
},
|
|
22633
|
+
getPopupContainer: function getPopupContainer() {
|
|
22634
|
+
return document.body;
|
|
22635
|
+
},
|
|
22636
|
+
value: val,
|
|
22637
|
+
onChange: function onChange(value) {
|
|
22638
|
+
updateHandle(value, index, 'isFit');
|
|
22639
|
+
},
|
|
22640
|
+
options: [{
|
|
22641
|
+
label: '是',
|
|
22642
|
+
value: 1
|
|
22643
|
+
}, {
|
|
22644
|
+
label: '否',
|
|
22645
|
+
value: 0
|
|
22646
|
+
}]
|
|
22647
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22648
|
+
}
|
|
21692
22649
|
}, {
|
|
21693
|
-
dataIndex: '
|
|
21694
|
-
title: "\u662F\u5426\
|
|
22650
|
+
dataIndex: 'isPresell',
|
|
22651
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21695
22652
|
width: 150,
|
|
21696
22653
|
render: function render(val, record, index) {
|
|
21697
22654
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21703,7 +22660,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21703
22660
|
},
|
|
21704
22661
|
value: val,
|
|
21705
22662
|
onChange: function onChange(value) {
|
|
21706
|
-
updateHandle(value, index, '
|
|
22663
|
+
updateHandle(value, index, 'isPresell');
|
|
21707
22664
|
},
|
|
21708
22665
|
options: [{
|
|
21709
22666
|
label: '是',
|
|
@@ -21712,121 +22669,175 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21712
22669
|
label: '否',
|
|
21713
22670
|
value: '0'
|
|
21714
22671
|
}]
|
|
21715
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22672
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
|
|
21716
22673
|
}
|
|
21717
|
-
}
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
ellipsis: true
|
|
21721
|
-
});
|
|
21722
|
-
}),
|
|
21723
|
-
// 巨益补发商品信息
|
|
21724
|
-
JY_REISSUE_GOODS: [{
|
|
21725
|
-
dataIndex: 'productName',
|
|
21726
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22674
|
+
}, {
|
|
22675
|
+
dataIndex: 'brandName',
|
|
22676
|
+
title: "\u54C1\u724C",
|
|
21727
22677
|
align: 'center',
|
|
21728
22678
|
ellipsis: true,
|
|
21729
|
-
width:
|
|
22679
|
+
width: 200,
|
|
21730
22680
|
render: renderTextEllipsis
|
|
21731
22681
|
}, {
|
|
21732
|
-
dataIndex: '
|
|
21733
|
-
title: "\
|
|
22682
|
+
dataIndex: 'cateName',
|
|
22683
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21734
22684
|
align: 'center',
|
|
21735
22685
|
ellipsis: true,
|
|
21736
22686
|
width: 150,
|
|
21737
22687
|
render: renderTextEllipsis
|
|
21738
22688
|
}, {
|
|
21739
|
-
dataIndex: '
|
|
21740
|
-
title: "\
|
|
22689
|
+
dataIndex: 'goodsTags',
|
|
22690
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21741
22691
|
align: 'center',
|
|
21742
22692
|
ellipsis: true,
|
|
21743
|
-
width:
|
|
22693
|
+
width: 250,
|
|
21744
22694
|
render: renderTextEllipsis
|
|
21745
22695
|
}, {
|
|
21746
|
-
dataIndex: '
|
|
21747
|
-
title: "\
|
|
22696
|
+
dataIndex: 'goodsMemo',
|
|
22697
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21748
22698
|
align: 'center',
|
|
21749
22699
|
ellipsis: true,
|
|
21750
|
-
width:
|
|
22700
|
+
width: 250,
|
|
21751
22701
|
render: renderTextEllipsis
|
|
21752
22702
|
}, {
|
|
21753
|
-
dataIndex: '
|
|
21754
|
-
title: "\
|
|
22703
|
+
dataIndex: 'tradeGoodsNo',
|
|
22704
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21755
22705
|
align: 'center',
|
|
21756
22706
|
ellipsis: true,
|
|
21757
|
-
width:
|
|
22707
|
+
width: 250,
|
|
21758
22708
|
render: renderTextEllipsis
|
|
21759
22709
|
}, {
|
|
21760
|
-
dataIndex: '
|
|
21761
|
-
title: "\
|
|
21762
|
-
align: 'center',
|
|
22710
|
+
dataIndex: 'tradeGoodsName',
|
|
22711
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21763
22712
|
ellipsis: true,
|
|
21764
|
-
width:
|
|
22713
|
+
width: 250,
|
|
21765
22714
|
render: renderTextEllipsis
|
|
21766
22715
|
}, {
|
|
21767
|
-
dataIndex: '
|
|
21768
|
-
title: "\
|
|
21769
|
-
|
|
22716
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22717
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22718
|
+
ellipsis: true,
|
|
22719
|
+
width: 250,
|
|
21770
22720
|
render: renderTextEllipsis
|
|
21771
22721
|
}, {
|
|
21772
|
-
dataIndex: '
|
|
21773
|
-
title: "\
|
|
22722
|
+
dataIndex: 'sourceSubtradeNo',
|
|
22723
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22724
|
+
ellipsis: true,
|
|
22725
|
+
width: 250,
|
|
22726
|
+
render: renderTextEllipsis
|
|
22727
|
+
}, {
|
|
22728
|
+
dataIndex: 'platGoodsId',
|
|
22729
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22730
|
+
ellipsis: true,
|
|
22731
|
+
width: 250,
|
|
22732
|
+
render: renderTextEllipsis
|
|
22733
|
+
}, {
|
|
22734
|
+
dataIndex: 'subTradeId',
|
|
22735
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22736
|
+
ellipsis: true,
|
|
22737
|
+
width: 250,
|
|
22738
|
+
render: renderTextEllipsis
|
|
22739
|
+
}, {
|
|
22740
|
+
dataIndex: 'batchNo',
|
|
22741
|
+
title: "\u6279\u6B21\u53F7",
|
|
22742
|
+
ellipsis: true,
|
|
22743
|
+
width: 250,
|
|
22744
|
+
render: renderTextEllipsis
|
|
22745
|
+
}, {
|
|
22746
|
+
dataIndex: 'sendCount',
|
|
22747
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
22748
|
+
ellipsis: true,
|
|
22749
|
+
width: 250,
|
|
22750
|
+
render: renderTextEllipsis
|
|
22751
|
+
}, {
|
|
22752
|
+
dataIndex: 'productDate',
|
|
22753
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22754
|
+
ellipsis: true,
|
|
22755
|
+
width: 250,
|
|
22756
|
+
render: renderTextEllipsis
|
|
22757
|
+
}, {
|
|
22758
|
+
dataIndex: 'expireDate',
|
|
22759
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
22760
|
+
ellipsis: true,
|
|
22761
|
+
width: 250,
|
|
22762
|
+
render: renderTextEllipsis
|
|
22763
|
+
}].map(function (item) {
|
|
22764
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22765
|
+
align: 'center',
|
|
22766
|
+
ellipsis: true
|
|
22767
|
+
});
|
|
22768
|
+
}),
|
|
22769
|
+
// 吉客云补发商品信息
|
|
22770
|
+
JKY_REISSUE_GOODS: [{
|
|
22771
|
+
dataIndex: 'goodsNo',
|
|
22772
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22773
|
+
align: 'center',
|
|
22774
|
+
ellipsis: true,
|
|
21774
22775
|
width: 150,
|
|
21775
22776
|
render: renderTextEllipsis
|
|
21776
22777
|
}, {
|
|
21777
|
-
dataIndex: '
|
|
21778
|
-
title: "\
|
|
22778
|
+
dataIndex: 'goodsName',
|
|
22779
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21779
22780
|
align: 'center',
|
|
21780
22781
|
ellipsis: true,
|
|
21781
22782
|
width: 150,
|
|
21782
22783
|
render: renderTextEllipsis
|
|
21783
22784
|
}, {
|
|
21784
|
-
dataIndex: '
|
|
21785
|
-
title: "\
|
|
22785
|
+
dataIndex: 'goodsId',
|
|
22786
|
+
title: "\u8D27\u54C1ID",
|
|
21786
22787
|
align: 'center',
|
|
21787
22788
|
ellipsis: true,
|
|
21788
22789
|
width: 150,
|
|
21789
22790
|
render: renderTextEllipsis
|
|
21790
22791
|
}, {
|
|
21791
|
-
dataIndex: '
|
|
21792
|
-
title: "\
|
|
22792
|
+
dataIndex: 'barcode',
|
|
22793
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21793
22794
|
align: 'center',
|
|
21794
22795
|
ellipsis: true,
|
|
21795
22796
|
width: 150,
|
|
21796
22797
|
render: renderTextEllipsis
|
|
21797
22798
|
}, {
|
|
21798
|
-
dataIndex: '
|
|
21799
|
-
title: "\
|
|
22799
|
+
dataIndex: 'specName',
|
|
22800
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21800
22801
|
align: 'center',
|
|
21801
22802
|
ellipsis: true,
|
|
21802
22803
|
width: 150,
|
|
21803
22804
|
render: renderTextEllipsis
|
|
21804
22805
|
}, {
|
|
21805
|
-
dataIndex: '
|
|
21806
|
-
title: "\
|
|
22806
|
+
dataIndex: 'specId',
|
|
22807
|
+
title: "\u89C4\u683CID",
|
|
21807
22808
|
align: 'center',
|
|
21808
22809
|
ellipsis: true,
|
|
21809
22810
|
width: 150,
|
|
21810
22811
|
render: renderTextEllipsis
|
|
22812
|
+
}, {
|
|
22813
|
+
dataIndex: 'skuImgUrl',
|
|
22814
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
22815
|
+
width: 150,
|
|
22816
|
+
render: function render(val) {
|
|
22817
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22818
|
+
width: 30,
|
|
22819
|
+
src: val
|
|
22820
|
+
});
|
|
22821
|
+
}
|
|
21811
22822
|
}, {
|
|
21812
22823
|
dataIndex: 'sellCount',
|
|
21813
|
-
title: "\u6570\u91CF",
|
|
22824
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21814
22825
|
width: 100,
|
|
21815
22826
|
validator: function validator(_rule, value) {
|
|
21816
|
-
var
|
|
21817
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21818
|
-
var qty = toNum$
|
|
22827
|
+
var goodsName = '';
|
|
22828
|
+
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22829
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21819
22830
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21820
22831
|
if (res) {
|
|
21821
|
-
|
|
22832
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21822
22833
|
}
|
|
21823
22834
|
return res;
|
|
21824
22835
|
})) {
|
|
21825
|
-
return Promise.reject("".concat(
|
|
22836
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21826
22837
|
}
|
|
21827
22838
|
},
|
|
21828
22839
|
render: function render(val, record, index) {
|
|
21829
|
-
return
|
|
22840
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21830
22841
|
style: {
|
|
21831
22842
|
width: 70
|
|
21832
22843
|
},
|
|
@@ -21836,7 +22847,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21836
22847
|
onChange: function onChange(num) {
|
|
21837
22848
|
updateDataHandle({
|
|
21838
22849
|
sellCount: num,
|
|
21839
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22850
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21840
22851
|
}, index);
|
|
21841
22852
|
}
|
|
21842
22853
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -21846,7 +22857,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21846
22857
|
title: "\u5355\u4EF7",
|
|
21847
22858
|
width: 150,
|
|
21848
22859
|
render: function render(val, record, index) {
|
|
21849
|
-
return
|
|
22860
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21850
22861
|
style: {
|
|
21851
22862
|
width: 130
|
|
21852
22863
|
},
|
|
@@ -21856,119 +22867,90 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21856
22867
|
onChange: function onChange(num) {
|
|
21857
22868
|
updateDataHandle({
|
|
21858
22869
|
sellPrice: num,
|
|
21859
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22870
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21860
22871
|
}, index);
|
|
21861
22872
|
}
|
|
21862
22873
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21863
22874
|
}
|
|
21864
|
-
}, {
|
|
21865
|
-
dataIndex: 'mallSellingPrice',
|
|
21866
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21867
|
-
width: 150
|
|
21868
22875
|
}, {
|
|
21869
22876
|
dataIndex: 'sellTotal',
|
|
21870
|
-
title: "\u91D1\u989D",
|
|
21871
|
-
width: 150
|
|
22877
|
+
title: "\u603B\u91D1\u989D",
|
|
22878
|
+
width: 150,
|
|
22879
|
+
render: function render(val, record, index) {
|
|
22880
|
+
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
22881
|
+
return record.sellCount * record.sellPrice;
|
|
22882
|
+
}
|
|
22883
|
+
return '';
|
|
22884
|
+
}
|
|
21872
22885
|
}, {
|
|
21873
|
-
dataIndex: '
|
|
21874
|
-
title: "\
|
|
22886
|
+
dataIndex: 'reason',
|
|
22887
|
+
title: "\u9000\u6362\u539F\u56E0",
|
|
22888
|
+
width: 250,
|
|
22889
|
+
render: function render(val, record, index) {
|
|
22890
|
+
return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22891
|
+
onChange: function onChange(e) {
|
|
22892
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22893
|
+
}
|
|
22894
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22895
|
+
}
|
|
22896
|
+
}, {
|
|
22897
|
+
dataIndex: 'isGift',
|
|
22898
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21875
22899
|
width: 150,
|
|
21876
22900
|
render: function render(val, record, index) {
|
|
21877
|
-
return
|
|
22901
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21878
22902
|
value: val,
|
|
21879
22903
|
onChange: function onChange(value) {
|
|
21880
|
-
updateHandle(value, index, '
|
|
22904
|
+
updateHandle(value, index, 'isGift');
|
|
21881
22905
|
},
|
|
21882
22906
|
options: [{
|
|
21883
22907
|
label: '是',
|
|
21884
|
-
value:
|
|
22908
|
+
value: 1
|
|
21885
22909
|
}, {
|
|
21886
22910
|
label: '否',
|
|
21887
|
-
value:
|
|
22911
|
+
value: 0
|
|
21888
22912
|
}]
|
|
21889
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22913
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
21890
22914
|
}
|
|
21891
22915
|
}, {
|
|
21892
|
-
dataIndex: '
|
|
21893
|
-
title: "\u7EC4\u5408\
|
|
21894
|
-
width: 150,
|
|
21895
|
-
render: renderTextEllipsis
|
|
21896
|
-
}, {
|
|
21897
|
-
dataIndex: 'combinationCode',
|
|
21898
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21899
|
-
width: 150,
|
|
21900
|
-
render: renderTextEllipsis
|
|
21901
|
-
}, {
|
|
21902
|
-
dataIndex: 'gift',
|
|
21903
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22916
|
+
dataIndex: 'isFit',
|
|
22917
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21904
22918
|
width: 150,
|
|
21905
22919
|
render: function render(val, record, index) {
|
|
21906
|
-
return
|
|
22920
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21907
22921
|
value: val,
|
|
21908
22922
|
onChange: function onChange(value) {
|
|
21909
|
-
updateHandle(value, index, '
|
|
22923
|
+
updateHandle(value, index, 'isFit');
|
|
21910
22924
|
},
|
|
21911
22925
|
options: [{
|
|
21912
22926
|
label: '是',
|
|
21913
|
-
value:
|
|
22927
|
+
value: 1
|
|
21914
22928
|
}, {
|
|
21915
22929
|
label: '否',
|
|
21916
|
-
value:
|
|
22930
|
+
value: 0
|
|
21917
22931
|
}]
|
|
21918
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22932
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
21919
22933
|
}
|
|
21920
|
-
}].map(function (item) {
|
|
21921
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21922
|
-
align: 'center',
|
|
21923
|
-
ellipsis: true
|
|
21924
|
-
});
|
|
21925
|
-
})
|
|
21926
|
-
};
|
|
21927
|
-
};
|
|
21928
|
-
|
|
21929
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21930
|
-
var _ref$text = _ref.text,
|
|
21931
|
-
disabled = _ref.disabled,
|
|
21932
|
-
updateHandle = _ref.updateHandle,
|
|
21933
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21934
|
-
return {
|
|
21935
|
-
//[SKX]商品信息(ON)
|
|
21936
|
-
SKX_GOODS: [{
|
|
21937
|
-
dataIndex: 'skuEcode',
|
|
21938
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21939
|
-
width: 250
|
|
21940
22934
|
}, {
|
|
21941
|
-
dataIndex: '
|
|
21942
|
-
title: "
|
|
21943
|
-
width:
|
|
22935
|
+
dataIndex: 'brandName',
|
|
22936
|
+
title: "\u54C1\u724C",
|
|
22937
|
+
width: 150,
|
|
22938
|
+
render: renderTextEllipsis
|
|
21944
22939
|
}, {
|
|
21945
|
-
dataIndex: '
|
|
21946
|
-
title: "
|
|
21947
|
-
width:
|
|
22940
|
+
dataIndex: 'cateName',
|
|
22941
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22942
|
+
width: 150,
|
|
22943
|
+
render: renderTextEllipsis
|
|
21948
22944
|
}].map(function (item) {
|
|
21949
22945
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21950
22946
|
align: 'center',
|
|
21951
22947
|
ellipsis: true
|
|
21952
22948
|
});
|
|
21953
|
-
})
|
|
21954
|
-
//[SKX]退货商品信息(TH)
|
|
21955
|
-
SKX_RETURN_GOODS: [{
|
|
21956
|
-
dataIndex: 'returnSkuEcode',
|
|
21957
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21958
|
-
width: 300
|
|
21959
|
-
}, {
|
|
21960
|
-
dataIndex: 'returnSubOrderId',
|
|
21961
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21962
|
-
width: 300
|
|
21963
|
-
}, {
|
|
21964
|
-
dataIndex: 'returnBillNo',
|
|
21965
|
-
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
21966
|
-
width: 200
|
|
21967
|
-
}]
|
|
22949
|
+
})
|
|
21968
22950
|
};
|
|
21969
22951
|
};
|
|
21970
22952
|
|
|
21971
|
-
var getColumns$
|
|
22953
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21972
22954
|
var _ref$text = _ref.text,
|
|
21973
22955
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21974
22956
|
disabled = _ref.disabled,
|
|
@@ -22085,7 +23067,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22085
23067
|
disabled = _ref.disabled,
|
|
22086
23068
|
updateHandle = _ref.updateHandle,
|
|
22087
23069
|
updateDataHandle = _ref.updateDataHandle;
|
|
22088
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23070
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
22089
23071
|
text: text,
|
|
22090
23072
|
disabled: disabled,
|
|
22091
23073
|
updateHandle: updateHandle
|
|
@@ -22123,8 +23105,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22123
23105
|
text: text,
|
|
22124
23106
|
disabled: disabled,
|
|
22125
23107
|
updateHandle: updateHandle
|
|
23108
|
+
})), getColumns$9({
|
|
23109
|
+
text: text,
|
|
23110
|
+
disabled: disabled,
|
|
23111
|
+
updateHandle: updateHandle,
|
|
23112
|
+
updateDataHandle: updateDataHandle
|
|
22126
23113
|
})), {}, {
|
|
22127
|
-
default: getColumns$
|
|
23114
|
+
default: getColumns$a({
|
|
22128
23115
|
text: text,
|
|
22129
23116
|
disabled: disabled,
|
|
22130
23117
|
updateHandle: updateHandle
|
|
@@ -22271,6 +23258,9 @@ var isErpType = {
|
|
|
22271
23258
|
},
|
|
22272
23259
|
isJy: function isJy(type) {
|
|
22273
23260
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23261
|
+
},
|
|
23262
|
+
isJky: function isJky(type) {
|
|
23263
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22274
23264
|
}
|
|
22275
23265
|
};
|
|
22276
23266
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22323,6 +23313,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
22323
23313
|
canUpdateNumber: canUpdateNumber,
|
|
22324
23314
|
source: source
|
|
22325
23315
|
});
|
|
23316
|
+
} else if (isErpType.isJky(type)) {
|
|
23317
|
+
newList = processJkyGoods$1({
|
|
23318
|
+
list: list,
|
|
23319
|
+
type: type,
|
|
23320
|
+
canUpdateNumber: canUpdateNumber,
|
|
23321
|
+
source: source
|
|
23322
|
+
});
|
|
22326
23323
|
} else {
|
|
22327
23324
|
newList = processDefaultGoods({
|
|
22328
23325
|
list: list,
|
|
@@ -22371,11 +23368,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
22371
23368
|
});
|
|
22372
23369
|
});
|
|
22373
23370
|
};
|
|
22374
|
-
|
|
22375
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23371
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
22376
23372
|
var list = _ref3.list,
|
|
22377
|
-
type = _ref3.type,
|
|
22378
23373
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23374
|
+
return list.map(function (item) {
|
|
23375
|
+
var goodName = item.goodName,
|
|
23376
|
+
goodNo = item.goodNo,
|
|
23377
|
+
goodId = item.goodId,
|
|
23378
|
+
specBarcode = item.specBarcode,
|
|
23379
|
+
retailPrice = item.retailPrice,
|
|
23380
|
+
isGift = item.isGift,
|
|
23381
|
+
skuType = item.skuType,
|
|
23382
|
+
specImgUrl = item.specImgUrl,
|
|
23383
|
+
categoryName = item.categoryName;
|
|
23384
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23385
|
+
cateName: categoryName,
|
|
23386
|
+
goodsName: goodName,
|
|
23387
|
+
goodsNo: goodNo,
|
|
23388
|
+
goodsId: goodId,
|
|
23389
|
+
barcode: specBarcode,
|
|
23390
|
+
skuImgUrl: specImgUrl,
|
|
23391
|
+
combinationName: goodName,
|
|
23392
|
+
combinationCode: goodNo,
|
|
23393
|
+
isGift: isGift ? 1 : 0,
|
|
23394
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23395
|
+
uuid: uuid(),
|
|
23396
|
+
canDelete: true,
|
|
23397
|
+
sellCount: 1,
|
|
23398
|
+
sellPrice: retailPrice,
|
|
23399
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23400
|
+
canEdit: true,
|
|
23401
|
+
canUpdateNumber: canUpdateNumber
|
|
23402
|
+
});
|
|
23403
|
+
});
|
|
23404
|
+
};
|
|
23405
|
+
// 处理不同类型的商品数据
|
|
23406
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23407
|
+
var list = _ref4.list,
|
|
23408
|
+
type = _ref4.type,
|
|
23409
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
22379
23410
|
return list.map(function (item) {
|
|
22380
23411
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22381
23412
|
uuid: uuid(),
|
|
@@ -22393,9 +23424,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
22393
23424
|
return processedItem;
|
|
22394
23425
|
});
|
|
22395
23426
|
};
|
|
22396
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
22397
|
-
var list =
|
|
22398
|
-
canUpdateNumber =
|
|
23427
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23428
|
+
var list = _ref5.list,
|
|
23429
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
22399
23430
|
return list.map(function (item) {
|
|
22400
23431
|
var specNo = item.specNo,
|
|
22401
23432
|
specId = item.specId,
|
|
@@ -22430,9 +23461,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
22430
23461
|
});
|
|
22431
23462
|
});
|
|
22432
23463
|
};
|
|
22433
|
-
var processGyGoods$1 = function processGyGoods(
|
|
22434
|
-
var list =
|
|
22435
|
-
source =
|
|
23464
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23465
|
+
var list = _ref6.list,
|
|
23466
|
+
source = _ref6.source;
|
|
22436
23467
|
var isFormWorkOrder = source === 'workOrder';
|
|
22437
23468
|
return list.map(function (item) {
|
|
22438
23469
|
var goodName = item.goodName,
|
|
@@ -22459,8 +23490,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
22459
23490
|
});
|
|
22460
23491
|
});
|
|
22461
23492
|
};
|
|
22462
|
-
var processJstGoods$1 = function processJstGoods(
|
|
22463
|
-
var list =
|
|
23493
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23494
|
+
var list = _ref7.list;
|
|
22464
23495
|
return list.map(function (item) {
|
|
22465
23496
|
return {
|
|
22466
23497
|
name: item.goodName,
|
|
@@ -22478,9 +23509,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
22478
23509
|
};
|
|
22479
23510
|
});
|
|
22480
23511
|
};
|
|
22481
|
-
var processKmGoods$1 = function processKmGoods(
|
|
22482
|
-
var list =
|
|
22483
|
-
type =
|
|
23512
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23513
|
+
var list = _ref8.list,
|
|
23514
|
+
type = _ref8.type;
|
|
22484
23515
|
var initParamsMap = {
|
|
22485
23516
|
KM_GOODS: {
|
|
22486
23517
|
num: 1
|
|
@@ -22512,9 +23543,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22512
23543
|
}, initParamsMap[type] || {});
|
|
22513
23544
|
});
|
|
22514
23545
|
};
|
|
22515
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
22516
|
-
var list =
|
|
22517
|
-
canUpdateNumber =
|
|
23546
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23547
|
+
var list = _ref9.list,
|
|
23548
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
22518
23549
|
return list.map(function (item) {
|
|
22519
23550
|
var goodsId = item.goodsId,
|
|
22520
23551
|
name = item.name,
|
|
@@ -22559,6 +23590,8 @@ var GoodsModalMap = {
|
|
|
22559
23590
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22560
23591
|
JY_GOODS: JyGoodsModal$1,
|
|
22561
23592
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23593
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23594
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22562
23595
|
OTHER_GOODS: GoodsModal$2
|
|
22563
23596
|
};
|
|
22564
23597
|
var systemOrderNoMap = {
|
|
@@ -22571,6 +23604,8 @@ var systemOrderNoMap = {
|
|
|
22571
23604
|
WLN_GOODS: 'tradeNo',
|
|
22572
23605
|
JY_GOODS: 'tradeNo',
|
|
22573
23606
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23607
|
+
JKY_GOODS: 'tradeNo',
|
|
23608
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22574
23609
|
KM_REISSUE_GOODS: 'sid',
|
|
22575
23610
|
JST_REISSUE_GOODS: 'oId',
|
|
22576
23611
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22783,6 +23818,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22783
23818
|
}
|
|
22784
23819
|
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
22785
23820
|
};
|
|
23821
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
22786
23822
|
var getButtonText = function getButtonText() {
|
|
22787
23823
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
22788
23824
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -22803,6 +23839,9 @@ var getButtonText = function getButtonText() {
|
|
|
22803
23839
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22804
23840
|
return '选择巨益ERP商品';
|
|
22805
23841
|
}
|
|
23842
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23843
|
+
return '选择吉客云ERP商品';
|
|
23844
|
+
}
|
|
22806
23845
|
return '选择商品';
|
|
22807
23846
|
};
|
|
22808
23847
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22860,8 +23899,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22860
23899
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22861
23900
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22862
23901
|
// 判断是否为是否展示系统单筛选项
|
|
22863
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
22864
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
23902
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23903
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
22865
23904
|
var refModal = useRef();
|
|
22866
23905
|
console.debug('表格数据', value);
|
|
22867
23906
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22952,6 +23991,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22952
23991
|
case 'KM_REISSUE_GOODS':
|
|
22953
23992
|
case 'JY_GOODS':
|
|
22954
23993
|
case 'JY_REISSUE_GOODS':
|
|
23994
|
+
case 'JKY_GOODS':
|
|
23995
|
+
case 'JKY_REISSUE_GOODS':
|
|
22955
23996
|
case 'SKX_GOODS':
|
|
22956
23997
|
case 'SKX_RETURN_GOODS':
|
|
22957
23998
|
{
|
|
@@ -24156,7 +25197,7 @@ var jyUtils = {
|
|
|
24156
25197
|
};
|
|
24157
25198
|
|
|
24158
25199
|
var singletonMap$7 = new Map();
|
|
24159
|
-
var
|
|
25200
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
24160
25201
|
if (!singletonMap$7.has(orderNo)) {
|
|
24161
25202
|
var p = new Promise(function (resolve, reject) {
|
|
24162
25203
|
var doReject = function doReject(err) {
|
|
@@ -24164,6 +25205,54 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24164
25205
|
singletonMap$7.delete(orderNo);
|
|
24165
25206
|
reject(err);
|
|
24166
25207
|
};
|
|
25208
|
+
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25209
|
+
method: 'post',
|
|
25210
|
+
data: {
|
|
25211
|
+
sourceTradeNos: orderNo
|
|
25212
|
+
}
|
|
25213
|
+
}).then(function (res) {
|
|
25214
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25215
|
+
var _res$data, _res$data2;
|
|
25216
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25217
|
+
var _filterJkyOrders;
|
|
25218
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25219
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25220
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25221
|
+
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25222
|
+
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25223
|
+
logisticName: getJkyLogisticInfo(item, 'logisticName'),
|
|
25224
|
+
logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
|
|
25225
|
+
logisticNo: getJkyLogisticInfo(item, 'logisticNo')
|
|
25226
|
+
});
|
|
25227
|
+
});
|
|
25228
|
+
}
|
|
25229
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25230
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25231
|
+
setTimeout(function () {
|
|
25232
|
+
singletonMap$7.delete(orderNo);
|
|
25233
|
+
}, 1000 * 10);
|
|
25234
|
+
} else {
|
|
25235
|
+
doReject(res);
|
|
25236
|
+
}
|
|
25237
|
+
}).catch(doReject);
|
|
25238
|
+
});
|
|
25239
|
+
singletonMap$7.set(orderNo, p);
|
|
25240
|
+
}
|
|
25241
|
+
return singletonMap$7.get(orderNo);
|
|
25242
|
+
};
|
|
25243
|
+
var jkyUtils = {
|
|
25244
|
+
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25245
|
+
};
|
|
25246
|
+
|
|
25247
|
+
var singletonMap$8 = new Map();
|
|
25248
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25249
|
+
if (!singletonMap$8.has(orderNo)) {
|
|
25250
|
+
var p = new Promise(function (resolve, reject) {
|
|
25251
|
+
var doReject = function doReject(err) {
|
|
25252
|
+
// 清空掉错误的请求记录
|
|
25253
|
+
singletonMap$8.delete(orderNo);
|
|
25254
|
+
reject(err);
|
|
25255
|
+
};
|
|
24167
25256
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
24168
25257
|
method: 'post',
|
|
24169
25258
|
data: {
|
|
@@ -24187,16 +25276,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24187
25276
|
}
|
|
24188
25277
|
// 延迟10秒清除,保证订单的时效性
|
|
24189
25278
|
setTimeout(function () {
|
|
24190
|
-
singletonMap$
|
|
25279
|
+
singletonMap$8.delete(orderNo);
|
|
24191
25280
|
}, 1000 * 10);
|
|
24192
25281
|
} else {
|
|
24193
25282
|
doReject(data);
|
|
24194
25283
|
}
|
|
24195
25284
|
}).catch(doReject);
|
|
24196
25285
|
});
|
|
24197
|
-
singletonMap$
|
|
25286
|
+
singletonMap$8.set(orderNo, p);
|
|
24198
25287
|
}
|
|
24199
|
-
return singletonMap$
|
|
25288
|
+
return singletonMap$8.get(orderNo);
|
|
24200
25289
|
};
|
|
24201
25290
|
var kmUtils = {
|
|
24202
25291
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -24213,6 +25302,7 @@ var columnsMap = {
|
|
|
24213
25302
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
24214
25303
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
24215
25304
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25305
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
24216
25306
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
24217
25307
|
};
|
|
24218
25308
|
var rowKeyMap = {
|
|
@@ -24224,6 +25314,7 @@ var rowKeyMap = {
|
|
|
24224
25314
|
GY_SYSTEM_ORDER: 'billNo',
|
|
24225
25315
|
JST_SYSTEM_ORDER: 'oId',
|
|
24226
25316
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25317
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
24227
25318
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
24228
25319
|
};
|
|
24229
25320
|
var index$2 = (function (props) {
|
|
@@ -24238,7 +25329,6 @@ var index$2 = (function (props) {
|
|
|
24238
25329
|
useEffect(function () {
|
|
24239
25330
|
var _value$orders, _value$showOrderInfo;
|
|
24240
25331
|
valueRef.current = value;
|
|
24241
|
-
console.log('value77777777', value);
|
|
24242
25332
|
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
24243
25333
|
onceRef.current = true;
|
|
24244
25334
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24257,6 +25347,8 @@ var index$2 = (function (props) {
|
|
|
24257
25347
|
getJstOrderList(value.orderNo);
|
|
24258
25348
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
24259
25349
|
getJyOrderList(value.orderNo);
|
|
25350
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25351
|
+
getJkyOrderList(value.orderNo);
|
|
24260
25352
|
}
|
|
24261
25353
|
}
|
|
24262
25354
|
}, [value, type]);
|
|
@@ -24496,8 +25588,8 @@ var index$2 = (function (props) {
|
|
|
24496
25588
|
while (1) switch (_context8.prev = _context8.next) {
|
|
24497
25589
|
case 0:
|
|
24498
25590
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
24499
|
-
var trades = (
|
|
24500
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
25591
|
+
var trades = (data || []).filter(function (item) {
|
|
25592
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
24501
25593
|
});
|
|
24502
25594
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
24503
25595
|
orders: trades,
|
|
@@ -24521,6 +25613,28 @@ var index$2 = (function (props) {
|
|
|
24521
25613
|
return _ref10.apply(this, arguments);
|
|
24522
25614
|
};
|
|
24523
25615
|
}();
|
|
25616
|
+
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25617
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25618
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25619
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
25620
|
+
case 0:
|
|
25621
|
+
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25622
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25623
|
+
orders: data || [],
|
|
25624
|
+
showOrderInfo: data || []
|
|
25625
|
+
}));
|
|
25626
|
+
});
|
|
25627
|
+
onceRef.current = false;
|
|
25628
|
+
case 2:
|
|
25629
|
+
case "end":
|
|
25630
|
+
return _context9.stop();
|
|
25631
|
+
}
|
|
25632
|
+
}, _callee9);
|
|
25633
|
+
}));
|
|
25634
|
+
return function getJkyOrderList(_x9) {
|
|
25635
|
+
return _ref12.apply(this, arguments);
|
|
25636
|
+
};
|
|
25637
|
+
}();
|
|
24524
25638
|
var rowSelection = {
|
|
24525
25639
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24526
25640
|
fixed: true,
|
|
@@ -24945,16 +26059,16 @@ var orderSubFormConstants = {
|
|
|
24945
26059
|
};
|
|
24946
26060
|
|
|
24947
26061
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24948
|
-
var singletonMap$
|
|
26062
|
+
var singletonMap$9 = new Map();
|
|
24949
26063
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24950
26064
|
var orderNo = parmas.orderNo,
|
|
24951
26065
|
shopId = parmas.shopId;
|
|
24952
26066
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24953
|
-
if (!singletonMap$
|
|
26067
|
+
if (!singletonMap$9.has(key)) {
|
|
24954
26068
|
var p = new Promise(function (resolve, reject) {
|
|
24955
26069
|
var doReject = function doReject(err) {
|
|
24956
26070
|
// 清空掉错误的请求记录
|
|
24957
|
-
singletonMap$
|
|
26071
|
+
singletonMap$9.delete(key);
|
|
24958
26072
|
reject(err);
|
|
24959
26073
|
};
|
|
24960
26074
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24970,16 +26084,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24970
26084
|
}
|
|
24971
26085
|
// 延迟10秒清除,保证订单的时效性
|
|
24972
26086
|
setTimeout(function () {
|
|
24973
|
-
singletonMap$
|
|
26087
|
+
singletonMap$9.delete(key);
|
|
24974
26088
|
}, 1000 * 10);
|
|
24975
26089
|
} else {
|
|
24976
26090
|
doReject(data);
|
|
24977
26091
|
}
|
|
24978
26092
|
}).catch(doReject);
|
|
24979
26093
|
});
|
|
24980
|
-
singletonMap$
|
|
26094
|
+
singletonMap$9.set(key, p);
|
|
24981
26095
|
}
|
|
24982
|
-
return singletonMap$
|
|
26096
|
+
return singletonMap$9.get(key);
|
|
24983
26097
|
};
|
|
24984
26098
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24985
26099
|
var item = _ref.item,
|
|
@@ -25412,6 +26526,9 @@ var isErpType$1 = {
|
|
|
25412
26526
|
},
|
|
25413
26527
|
isJy: function isJy(type) {
|
|
25414
26528
|
return ['JY_GOODS'].includes(type);
|
|
26529
|
+
},
|
|
26530
|
+
isJky: function isJky(type) {
|
|
26531
|
+
return ['JKY_GOODS'].includes(type);
|
|
25415
26532
|
}
|
|
25416
26533
|
};
|
|
25417
26534
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25481,8 +26598,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
25481
26598
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
25482
26599
|
var data = _ref5.data,
|
|
25483
26600
|
orderNo = _ref5.orderNo;
|
|
25484
|
-
var trades = (
|
|
25485
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
26601
|
+
var trades = (data || []).filter(function (item) {
|
|
26602
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25486
26603
|
});
|
|
25487
26604
|
return trades;
|
|
25488
26605
|
};
|
|
@@ -25712,6 +26829,32 @@ var componentMap$2 = {
|
|
|
25712
26829
|
},
|
|
25713
26830
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25714
26831
|
},
|
|
26832
|
+
JKY_GOODS: {
|
|
26833
|
+
type: 'jky',
|
|
26834
|
+
key: 'jkyGoods',
|
|
26835
|
+
name: '吉客云',
|
|
26836
|
+
orderNo: 'tradeNo',
|
|
26837
|
+
goodDetailOrderNo: 'tradeNo',
|
|
26838
|
+
eventNameMap: {
|
|
26839
|
+
// pubsub 事件
|
|
26840
|
+
type: 'jkyType',
|
|
26841
|
+
updateGoodsHandle: updateJkyGoodsHandle,
|
|
26842
|
+
selectListReturn: 'jkySelectListReturn',
|
|
26843
|
+
selectList: 'jkySelectList',
|
|
26844
|
+
reissueSelectList: 'jkyReissueSelectList',
|
|
26845
|
+
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26846
|
+
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26847
|
+
changeShopCode: 'jkyChangeShopCode',
|
|
26848
|
+
reissueType: 'jkyReissueType',
|
|
26849
|
+
returnType: 'jkyReturnType',
|
|
26850
|
+
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26851
|
+
returnSelectList: 'jkyReturnSelectList',
|
|
26852
|
+
deleteGood: 'jkyDeleteGood',
|
|
26853
|
+
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26854
|
+
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26855
|
+
},
|
|
26856
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26857
|
+
},
|
|
25715
26858
|
WDT_AFTERSALE_GOODS: {
|
|
25716
26859
|
type: 'wdtAftersale',
|
|
25717
26860
|
key: 'wdtAftersaleGoods',
|
|
@@ -26142,6 +27285,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26142
27285
|
}
|
|
26143
27286
|
}));
|
|
26144
27287
|
};
|
|
27288
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
26145
27289
|
|
|
26146
27290
|
var componentMap$3 = {
|
|
26147
27291
|
WDT_RETURN_GOODS: {
|
|
@@ -26793,10 +27937,26 @@ var typeMap$2 = {
|
|
|
26793
27937
|
outerOiIdKey: '',
|
|
26794
27938
|
goodDetailsKey: 'subOrderDetails',
|
|
26795
27939
|
isShowSelectTradeGoods: true
|
|
27940
|
+
},
|
|
27941
|
+
JKY_REISSUE_GOODS: {
|
|
27942
|
+
compType: '补发',
|
|
27943
|
+
key: 'jkyReissueGoods',
|
|
27944
|
+
typeName: 'jkyReissueType',
|
|
27945
|
+
systemOrder: 'jkySystemOrder',
|
|
27946
|
+
systemOrderNo: 'jkySystemOrderNo',
|
|
27947
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
27948
|
+
updateGoodsHandle: updateJkyGoodsHandle,
|
|
27949
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27950
|
+
orderTypeKey: 'orderType',
|
|
27951
|
+
oIdKey: 'tradeNo',
|
|
27952
|
+
outerOiIdKey: '',
|
|
27953
|
+
goodDetailsKey: 'goodsDetail',
|
|
27954
|
+
isShowSelectTradeGoods: true,
|
|
27955
|
+
showModeBtn: false
|
|
26796
27956
|
}
|
|
26797
27957
|
};
|
|
26798
27958
|
var PublicReissue = function PublicReissue(props) {
|
|
26799
|
-
var _typeMap$
|
|
27959
|
+
var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
26800
27960
|
var value = props.value,
|
|
26801
27961
|
onChange = props.onChange,
|
|
26802
27962
|
_props$reasonList = props.reasonList,
|
|
@@ -26997,7 +28157,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26997
28157
|
}
|
|
26998
28158
|
}, [sysItemIdMap]);
|
|
26999
28159
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
27000
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28160
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
27001
28161
|
var mode = _ref5.mode,
|
|
27002
28162
|
sysOrderNo = _ref5.sysOrderNo,
|
|
27003
28163
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -27019,14 +28179,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27019
28179
|
orderRest = {
|
|
27020
28180
|
canEdit: true
|
|
27021
28181
|
};
|
|
28182
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28183
|
+
orderRest = {
|
|
28184
|
+
canEdit: true
|
|
28185
|
+
};
|
|
27022
28186
|
}
|
|
27023
28187
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
27024
28188
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27025
28189
|
var _order$typeMap$type$g;
|
|
27026
28190
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
27027
28191
|
});
|
|
27028
|
-
|
|
27029
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28192
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
|
|
27030
28193
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27031
28194
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27032
28195
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -27034,30 +28197,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27034
28197
|
return list;
|
|
27035
28198
|
};
|
|
27036
28199
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
27037
|
-
var _typeMap$
|
|
28200
|
+
var _typeMap$type24;
|
|
27038
28201
|
var newValue = _objectSpread2({}, value);
|
|
27039
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28202
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = val || [];
|
|
27040
28203
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27041
28204
|
};
|
|
27042
28205
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
27043
|
-
var _typeMap$
|
|
28206
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
27044
28207
|
var newValue = _objectSpread2({}, value);
|
|
27045
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27046
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27047
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
27048
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28208
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)] = val;
|
|
28209
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
|
|
28210
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28211
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
27049
28212
|
var targetOrder = val && orders.find(function (oItem) {
|
|
27050
|
-
var _typeMap$
|
|
27051
|
-
return oItem[(_typeMap$
|
|
28213
|
+
var _typeMap$type28;
|
|
28214
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
27052
28215
|
});
|
|
27053
|
-
newValue[(_typeMap$
|
|
27054
|
-
}
|
|
27055
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
27056
|
-
var _typeMap$
|
|
27057
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27058
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
27059
|
-
var _typeMap$
|
|
27060
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28216
|
+
newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
|
|
28217
|
+
}
|
|
28218
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28219
|
+
var _typeMap$type32;
|
|
28220
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = [];
|
|
28221
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
28222
|
+
var _typeMap$type34;
|
|
28223
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = getGoodDetails({
|
|
27061
28224
|
mode: isStrict,
|
|
27062
28225
|
sysOrderNo: val
|
|
27063
28226
|
});
|
|
@@ -27065,27 +28228,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27065
28228
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
27066
28229
|
};
|
|
27067
28230
|
//显示选择商品按钮
|
|
27068
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28231
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
|
|
27069
28232
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
27070
|
-
var _typeMap$
|
|
28233
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
27071
28234
|
var newValue = _objectSpread2({}, value);
|
|
27072
28235
|
// 原订单商品
|
|
27073
28236
|
var originTradeGoodList = getGoodDetails({
|
|
27074
28237
|
mode: isStrict,
|
|
27075
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28238
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
|
|
27076
28239
|
}) || [];
|
|
27077
28240
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27078
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27079
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27080
|
-
var _typeMap$
|
|
27081
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28241
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)]) || [];
|
|
28242
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28243
|
+
var _typeMap$type40;
|
|
28244
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid']);
|
|
27082
28245
|
});
|
|
27083
28246
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27084
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28247
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)], isStrict]);
|
|
27085
28248
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
27086
28249
|
gutter: 8,
|
|
27087
28250
|
wrap: true,
|
|
27088
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28251
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
|
|
27089
28252
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
27090
28253
|
className: "gutter-row",
|
|
27091
28254
|
xs: {
|
|
@@ -27101,12 +28264,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27101
28264
|
},
|
|
27102
28265
|
disabled: disabled,
|
|
27103
28266
|
allowClear: false,
|
|
27104
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28267
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderNo)],
|
|
27105
28268
|
onChange: function onChange(val) {
|
|
27106
28269
|
return changeSystemOrderHandle(val);
|
|
27107
28270
|
},
|
|
27108
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27109
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28271
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28272
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
27110
28273
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
27111
28274
|
key: item[typeMap$2[type].oIdKey],
|
|
27112
28275
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -27128,11 +28291,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27128
28291
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27129
28292
|
allowClear: false,
|
|
27130
28293
|
options: reasonList,
|
|
27131
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28294
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.typeName)],
|
|
27132
28295
|
onChange: function onChange(val) {
|
|
27133
28296
|
return changeTypeHandle(val);
|
|
27134
28297
|
}
|
|
27135
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28298
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
27136
28299
|
className: "gutter-row",
|
|
27137
28300
|
xs: {
|
|
27138
28301
|
span: 11
|
|
@@ -27141,7 +28304,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27141
28304
|
span: 6
|
|
27142
28305
|
}
|
|
27143
28306
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
27144
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28307
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
|
|
27145
28308
|
disabled: disabled,
|
|
27146
28309
|
readOnly: true
|
|
27147
28310
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -27152,15 +28315,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27152
28315
|
canUpdateNumber: showChangeBtn,
|
|
27153
28316
|
hasSelectedSystemOrder: showChangeBtn,
|
|
27154
28317
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
27155
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28318
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
27156
28319
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
27157
28320
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27158
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28321
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
|
|
27159
28322
|
onChange: function onChange(val) {
|
|
27160
28323
|
return changeGoodHandle(val);
|
|
27161
28324
|
},
|
|
27162
28325
|
onModeChange: handleModeChange,
|
|
27163
|
-
showModeBtn:
|
|
28326
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
|
|
27164
28327
|
isStrict: isStrict,
|
|
27165
28328
|
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
27166
28329
|
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
@@ -27175,6 +28338,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27175
28338
|
}
|
|
27176
28339
|
})));
|
|
27177
28340
|
};
|
|
28341
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
27178
28342
|
|
|
27179
28343
|
var css_248z$g = ".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";
|
|
27180
28344
|
styleInject(css_248z$g);
|
|
@@ -29467,7 +30631,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
29467
30631
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
29468
30632
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
29469
30633
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30634
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
29470
30635
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
29471
30636
|
};
|
|
29472
30637
|
|
|
29473
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|
|
30638
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|