@kmkf-fe-packages/basic-components 2.3.3 → 2.3.6
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 +1898 -742
- package/dist/index.js +1897 -740
- 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,
|
|
@@ -13986,7 +14029,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13986
14029
|
changeIndex = _useState2[0],
|
|
13987
14030
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13988
14031
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
13989
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
14032
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13990
14033
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
13991
14034
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13992
14035
|
useEffect(function () {
|
|
@@ -15358,6 +15401,187 @@ var jyColumns = [{
|
|
|
15358
15401
|
}
|
|
15359
15402
|
}];
|
|
15360
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
|
+
|
|
15361
15585
|
var getColumnsMap = function getColumnsMap() {
|
|
15362
15586
|
return cloneDeep({
|
|
15363
15587
|
gy: gyColumns,
|
|
@@ -15365,7 +15589,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15365
15589
|
wdt: wdtColumns,
|
|
15366
15590
|
bse3: bse3Columns,
|
|
15367
15591
|
km: kmColumns,
|
|
15368
|
-
jy: jyColumns
|
|
15592
|
+
jy: jyColumns,
|
|
15593
|
+
jky: jkyColumns
|
|
15369
15594
|
});
|
|
15370
15595
|
};
|
|
15371
15596
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -18594,92 +18819,339 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18594
18819
|
};
|
|
18595
18820
|
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18596
18821
|
|
|
18597
|
-
var
|
|
18598
|
-
var
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
return {
|
|
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
|
-
},
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
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',
|
|
19150
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19151
|
+
width: 150
|
|
19152
|
+
}, {
|
|
19153
|
+
dataIndex: 'isGift',
|
|
19154
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
18683
19155
|
width: 150,
|
|
18684
19156
|
render: function render(val) {
|
|
18685
19157
|
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
@@ -19903,7 +20375,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19903
20375
|
};
|
|
19904
20376
|
};
|
|
19905
20377
|
|
|
19906
|
-
var getYesOrNo$
|
|
20378
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
19907
20379
|
if (isNull(val)) return null;
|
|
19908
20380
|
return val ? '是' : '否';
|
|
19909
20381
|
};
|
|
@@ -20054,7 +20526,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20054
20526
|
label: '否',
|
|
20055
20527
|
value: false
|
|
20056
20528
|
}]
|
|
20057
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20529
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20058
20530
|
},
|
|
20059
20531
|
width: 100
|
|
20060
20532
|
}]
|
|
@@ -20066,7 +20538,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20066
20538
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20067
20539
|
return false;
|
|
20068
20540
|
};
|
|
20069
|
-
var getYesOrNo$
|
|
20541
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20070
20542
|
if (isNull(val)) return null;
|
|
20071
20543
|
return val ? '是' : '否';
|
|
20072
20544
|
};
|
|
@@ -20181,7 +20653,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20181
20653
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20182
20654
|
width: 150,
|
|
20183
20655
|
render: function render(val) {
|
|
20184
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20656
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20185
20657
|
}
|
|
20186
20658
|
}, {
|
|
20187
20659
|
dataIndex: 'isGift',
|
|
@@ -20200,7 +20672,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20200
20672
|
label: '否',
|
|
20201
20673
|
value: 0
|
|
20202
20674
|
}]
|
|
20203
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20675
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20204
20676
|
}
|
|
20205
20677
|
}, {
|
|
20206
20678
|
dataIndex: 'skuNote',
|
|
@@ -20326,7 +20798,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20326
20798
|
label: '否',
|
|
20327
20799
|
value: 0
|
|
20328
20800
|
}]
|
|
20329
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20801
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20330
20802
|
}
|
|
20331
20803
|
}].map(function (item) {
|
|
20332
20804
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20455,7 +20927,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20455
20927
|
label: '否',
|
|
20456
20928
|
value: 0
|
|
20457
20929
|
}]
|
|
20458
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20930
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20459
20931
|
}
|
|
20460
20932
|
}].map(function (item) {
|
|
20461
20933
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20871,10 +21343,121 @@ var getColumns$5 = function getColumns() {
|
|
|
20871
21343
|
render: function render(val, record) {
|
|
20872
21344
|
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20873
21345
|
}
|
|
20874
|
-
}, {
|
|
20875
|
-
dataIndex: 'batchId',
|
|
20876
|
-
title: '批次号',
|
|
20877
|
-
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
|
+
}
|
|
20878
21461
|
}, {
|
|
20879
21462
|
dataIndex: 'isGift',
|
|
20880
21463
|
title: '是否赠品',
|
|
@@ -20908,67 +21491,248 @@ var getColumns$5 = function getColumns() {
|
|
|
20908
21491
|
}
|
|
20909
21492
|
}) : renderTextEllipsis(val);
|
|
20910
21493
|
}
|
|
20911
|
-
}, {
|
|
20912
|
-
dataIndex: 'outerOiId',
|
|
20913
|
-
title: '子订单号',
|
|
20914
|
-
width: 240,
|
|
20915
|
-
render: renderTextEllipsis
|
|
20916
21494
|
}].map(fillAttrs),
|
|
20917
|
-
|
|
20918
|
-
|
|
20919
|
-
|
|
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,
|
|
20920
21502
|
render: renderTextEllipsis
|
|
20921
21503
|
}, {
|
|
20922
|
-
dataIndex: '
|
|
20923
|
-
title:
|
|
21504
|
+
dataIndex: 'asiId',
|
|
21505
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21506
|
+
width: 200,
|
|
21507
|
+
align: 'center',
|
|
21508
|
+
ellipsis: true,
|
|
20924
21509
|
render: renderTextEllipsis
|
|
20925
21510
|
}, {
|
|
20926
|
-
dataIndex: '
|
|
20927
|
-
title:
|
|
21511
|
+
dataIndex: 'outerOiId',
|
|
21512
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21513
|
+
width: 200,
|
|
21514
|
+
align: 'center',
|
|
21515
|
+
ellipsis: true,
|
|
20928
21516
|
render: renderTextEllipsis
|
|
20929
21517
|
}, {
|
|
20930
21518
|
dataIndex: 'pic',
|
|
20931
|
-
title:
|
|
21519
|
+
title: "\u56FE\u7247",
|
|
20932
21520
|
width: 100,
|
|
21521
|
+
align: 'center',
|
|
20933
21522
|
render: function render(val) {
|
|
20934
21523
|
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20935
21524
|
width: 30,
|
|
20936
21525
|
src: val
|
|
20937
21526
|
});
|
|
20938
|
-
}
|
|
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
|
|
20939
21543
|
}, {
|
|
20940
21544
|
dataIndex: 'propertiesValue',
|
|
20941
|
-
title:
|
|
21545
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21546
|
+
width: 200,
|
|
21547
|
+
align: 'center',
|
|
21548
|
+
ellipsis: true,
|
|
20942
21549
|
render: renderTextEllipsis
|
|
20943
21550
|
}, {
|
|
20944
|
-
dataIndex: '
|
|
20945
|
-
title:
|
|
20946
|
-
|
|
20947
|
-
|
|
20948
|
-
|
|
21551
|
+
dataIndex: 'qty',
|
|
21552
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21553
|
+
width: 150,
|
|
21554
|
+
align: 'center',
|
|
21555
|
+
ellipsis: true,
|
|
21556
|
+
render: renderTextEllipsis
|
|
20949
21557
|
}, {
|
|
20950
|
-
dataIndex: '
|
|
20951
|
-
title:
|
|
20952
|
-
width:
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
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
|
+
}
|
|
20965
21641
|
}
|
|
20966
21642
|
}, {
|
|
20967
|
-
dataIndex: '
|
|
20968
|
-
title:
|
|
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
|
+
});
|
|
21729
|
+
}
|
|
21730
|
+
}, {
|
|
21731
|
+
dataIndex: 'num',
|
|
21732
|
+
title: "\u6570\u91CF",
|
|
20969
21733
|
width: 100,
|
|
20970
21734
|
render: function render(val, record, index) {
|
|
20971
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21735
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20972
21736
|
style: {
|
|
20973
21737
|
width: 70
|
|
20974
21738
|
},
|
|
@@ -20976,216 +21740,212 @@ var getColumns$5 = function getColumns() {
|
|
|
20976
21740
|
min: 1,
|
|
20977
21741
|
precision: 0,
|
|
20978
21742
|
onChange: function onChange(num) {
|
|
20979
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21743
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20980
21744
|
}
|
|
20981
21745
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20982
21746
|
}
|
|
20983
21747
|
}, {
|
|
20984
|
-
dataIndex: '
|
|
20985
|
-
title:
|
|
20986
|
-
|
|
20987
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20988
|
-
}
|
|
20989
|
-
}, {
|
|
20990
|
-
dataIndex: 'isGift',
|
|
20991
|
-
title: '是否赠品',
|
|
20992
|
-
width: 100,
|
|
20993
|
-
render: function render(val, record, index) {
|
|
20994
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20995
|
-
value: val,
|
|
20996
|
-
onChange: function onChange(value) {
|
|
20997
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20998
|
-
},
|
|
20999
|
-
options: [{
|
|
21000
|
-
label: '是',
|
|
21001
|
-
value: true
|
|
21002
|
-
}, {
|
|
21003
|
-
label: '否',
|
|
21004
|
-
value: false
|
|
21005
|
-
}]
|
|
21006
|
-
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21007
|
-
}
|
|
21008
|
-
}, {
|
|
21009
|
-
dataIndex: 'remark',
|
|
21010
|
-
title: '备注',
|
|
21748
|
+
dataIndex: 'payment',
|
|
21749
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21750
|
+
width: 150,
|
|
21011
21751
|
render: function render(val, record, index) {
|
|
21012
|
-
return !disabled ? /*#__PURE__*/React.createElement(
|
|
21752
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21013
21753
|
style: {
|
|
21014
|
-
width:
|
|
21754
|
+
width: 130
|
|
21015
21755
|
},
|
|
21016
21756
|
value: val,
|
|
21017
|
-
|
|
21018
|
-
|
|
21757
|
+
min: 0,
|
|
21758
|
+
precision: 2,
|
|
21759
|
+
onChange: function onChange(num) {
|
|
21760
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21019
21761
|
}
|
|
21020
|
-
}) :
|
|
21762
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21021
21763
|
}
|
|
21022
|
-
}].map(fillAttrs),
|
|
21023
|
-
// jst售后商品信息
|
|
21024
|
-
JST_AFTERSALE_GOODS: [{
|
|
21025
|
-
dataIndex: 'asId',
|
|
21026
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21027
|
-
width: 200,
|
|
21028
|
-
align: 'center',
|
|
21029
|
-
ellipsis: true,
|
|
21030
|
-
render: renderTextEllipsis
|
|
21031
|
-
}, {
|
|
21032
|
-
dataIndex: 'asiId',
|
|
21033
|
-
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21034
|
-
width: 200,
|
|
21035
|
-
align: 'center',
|
|
21036
|
-
ellipsis: true,
|
|
21037
|
-
render: renderTextEllipsis
|
|
21038
|
-
}, {
|
|
21039
|
-
dataIndex: 'outerOiId',
|
|
21040
|
-
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21041
|
-
width: 200,
|
|
21042
|
-
align: 'center',
|
|
21043
|
-
ellipsis: true,
|
|
21044
|
-
render: renderTextEllipsis
|
|
21045
21764
|
}, {
|
|
21046
|
-
dataIndex: '
|
|
21047
|
-
title: "\
|
|
21048
|
-
width:
|
|
21049
|
-
align: 'center',
|
|
21765
|
+
dataIndex: 'price',
|
|
21766
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21767
|
+
width: 150,
|
|
21050
21768
|
render: function render(val) {
|
|
21051
|
-
return
|
|
21052
|
-
|
|
21053
|
-
src: val
|
|
21054
|
-
});
|
|
21055
|
-
},
|
|
21056
|
-
headerComponentType: 'pic'
|
|
21769
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21770
|
+
}
|
|
21057
21771
|
}, {
|
|
21058
|
-
dataIndex: '
|
|
21059
|
-
title: "\u5546\u54C1\
|
|
21060
|
-
width:
|
|
21061
|
-
align: 'center',
|
|
21062
|
-
ellipsis: true,
|
|
21772
|
+
dataIndex: 'type',
|
|
21773
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21774
|
+
width: 150,
|
|
21063
21775
|
render: renderTextEllipsis
|
|
21064
21776
|
}, {
|
|
21065
|
-
dataIndex: '
|
|
21066
|
-
title: "\u5546\
|
|
21067
|
-
width:
|
|
21068
|
-
align: 'center',
|
|
21069
|
-
ellipsis: true,
|
|
21777
|
+
dataIndex: 'supplierName',
|
|
21778
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21779
|
+
width: 150,
|
|
21070
21780
|
render: renderTextEllipsis
|
|
21071
21781
|
}, {
|
|
21072
|
-
dataIndex: '
|
|
21073
|
-
title: "\
|
|
21074
|
-
width:
|
|
21075
|
-
|
|
21076
|
-
|
|
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,
|
|
21077
21796
|
render: renderTextEllipsis
|
|
21078
21797
|
}, {
|
|
21079
|
-
dataIndex: '
|
|
21080
|
-
title: "\
|
|
21798
|
+
dataIndex: 'sysTitle',
|
|
21799
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21081
21800
|
width: 150,
|
|
21082
|
-
align: 'center',
|
|
21083
|
-
ellipsis: true,
|
|
21084
21801
|
render: renderTextEllipsis
|
|
21085
21802
|
}, {
|
|
21086
|
-
dataIndex: '
|
|
21087
|
-
title: "\
|
|
21803
|
+
dataIndex: 'shortTitle',
|
|
21804
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21088
21805
|
width: 150,
|
|
21089
|
-
align: 'center',
|
|
21090
|
-
ellipsis: true,
|
|
21091
21806
|
render: renderTextEllipsis
|
|
21092
21807
|
}, {
|
|
21093
|
-
dataIndex: '
|
|
21094
|
-
title: "\
|
|
21808
|
+
dataIndex: 'title',
|
|
21809
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21095
21810
|
width: 150,
|
|
21096
|
-
align: 'center',
|
|
21097
|
-
ellipsis: true,
|
|
21098
21811
|
render: renderTextEllipsis
|
|
21099
21812
|
}, {
|
|
21100
|
-
dataIndex: '
|
|
21101
|
-
title: "\
|
|
21813
|
+
dataIndex: 'sysOuterId',
|
|
21814
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21102
21815
|
width: 150,
|
|
21103
|
-
align: 'center',
|
|
21104
|
-
ellipsis: true,
|
|
21105
21816
|
render: renderTextEllipsis
|
|
21106
21817
|
}, {
|
|
21107
|
-
dataIndex: '
|
|
21108
|
-
title: "\
|
|
21818
|
+
dataIndex: 'itemSysId',
|
|
21819
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21109
21820
|
width: 150,
|
|
21110
|
-
align: 'center',
|
|
21111
|
-
ellipsis: true,
|
|
21112
21821
|
render: renderTextEllipsis
|
|
21113
21822
|
}, {
|
|
21114
|
-
dataIndex: '
|
|
21115
|
-
title: "\
|
|
21823
|
+
dataIndex: 'skuSysId',
|
|
21824
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21116
21825
|
width: 150,
|
|
21117
|
-
align: 'center',
|
|
21118
|
-
ellipsis: true,
|
|
21119
21826
|
render: renderTextEllipsis
|
|
21120
21827
|
}, {
|
|
21121
|
-
dataIndex: '
|
|
21122
|
-
title: "\
|
|
21123
|
-
width:
|
|
21124
|
-
align: 'center',
|
|
21125
|
-
ellipsis: true,
|
|
21828
|
+
dataIndex: 'skuId',
|
|
21829
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21830
|
+
width: 170,
|
|
21126
21831
|
render: renderTextEllipsis
|
|
21127
21832
|
}, {
|
|
21128
|
-
dataIndex: '
|
|
21129
|
-
title: "\
|
|
21130
|
-
width:
|
|
21131
|
-
align: 'center',
|
|
21132
|
-
ellipsis: true,
|
|
21833
|
+
dataIndex: 'outerSkuId',
|
|
21834
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21835
|
+
width: 170,
|
|
21133
21836
|
render: renderTextEllipsis
|
|
21134
21837
|
}, {
|
|
21135
|
-
dataIndex: '
|
|
21136
|
-
title: "\
|
|
21137
|
-
width:
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
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
|
+
}
|
|
21141
21908
|
}, {
|
|
21142
21909
|
dataIndex: 'type',
|
|
21143
|
-
title: "\
|
|
21910
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21911
|
+
width: 150,
|
|
21912
|
+
render: renderTextEllipsis
|
|
21913
|
+
}, {
|
|
21914
|
+
dataIndex: 'supplierName',
|
|
21915
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21144
21916
|
width: 150,
|
|
21145
|
-
align: 'center',
|
|
21146
|
-
ellipsis: true,
|
|
21147
21917
|
render: renderTextEllipsis
|
|
21148
21918
|
}, {
|
|
21149
|
-
dataIndex: '
|
|
21150
|
-
title: "\u5546\
|
|
21919
|
+
dataIndex: 'supplierCode',
|
|
21920
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21151
21921
|
width: 150,
|
|
21152
|
-
align: 'center',
|
|
21153
|
-
ellipsis: true,
|
|
21154
21922
|
render: renderTextEllipsis
|
|
21155
21923
|
}, {
|
|
21156
|
-
dataIndex: '
|
|
21157
|
-
title:
|
|
21924
|
+
dataIndex: 'sysPicPath',
|
|
21925
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21158
21926
|
width: 100,
|
|
21159
21927
|
render: function render(val) {
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
},
|
|
21166
|
-
renderExport: function renderExport(val) {
|
|
21167
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21168
|
-
}
|
|
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
|
+
});
|
|
21169
21933
|
}
|
|
21170
|
-
}
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
|
|
21176
|
-
render: renderTextEllipsis
|
|
21177
|
-
}, {
|
|
21178
|
-
dataIndex: 'remark',
|
|
21179
|
-
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21180
|
-
width: 200,
|
|
21181
|
-
align: 'center',
|
|
21182
|
-
ellipsis: true,
|
|
21183
|
-
render: renderTextEllipsis
|
|
21184
|
-
}]
|
|
21934
|
+
}].map(function (item) {
|
|
21935
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21936
|
+
align: 'center',
|
|
21937
|
+
ellipsis: true
|
|
21938
|
+
});
|
|
21939
|
+
})
|
|
21185
21940
|
};
|
|
21186
21941
|
};
|
|
21187
21942
|
|
|
21188
|
-
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) {
|
|
21189
21949
|
if (typeof value === 'string') {
|
|
21190
21950
|
return value ? +value : void 0;
|
|
21191
21951
|
}
|
|
@@ -21194,69 +21954,117 @@ function toNum$3(value) {
|
|
|
21194
21954
|
}
|
|
21195
21955
|
return void 0;
|
|
21196
21956
|
}
|
|
21197
|
-
var getColumns$
|
|
21957
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21198
21958
|
var _ref$text = _ref.text,
|
|
21199
21959
|
disabled = _ref.disabled,
|
|
21200
|
-
updateHandle = _ref.updateHandle
|
|
21960
|
+
updateHandle = _ref.updateHandle,
|
|
21961
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21201
21962
|
return {
|
|
21202
|
-
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21963
|
+
//巨益商品信息
|
|
21964
|
+
JY_GOODS: [{
|
|
21965
|
+
dataIndex: 'productName',
|
|
21966
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21967
|
+
align: 'center',
|
|
21968
|
+
ellipsis: true,
|
|
21969
|
+
width: 150,
|
|
21206
21970
|
render: renderTextEllipsis
|
|
21207
21971
|
}, {
|
|
21208
|
-
dataIndex: '
|
|
21209
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
21972
|
+
dataIndex: 'productCode',
|
|
21973
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21974
|
+
align: 'center',
|
|
21975
|
+
ellipsis: true,
|
|
21210
21976
|
width: 150,
|
|
21211
21977
|
render: renderTextEllipsis
|
|
21212
21978
|
}, {
|
|
21213
|
-
dataIndex: '
|
|
21214
|
-
title: "\
|
|
21979
|
+
dataIndex: 'productId',
|
|
21980
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21981
|
+
align: 'center',
|
|
21982
|
+
ellipsis: true,
|
|
21215
21983
|
width: 150,
|
|
21216
21984
|
render: renderTextEllipsis
|
|
21217
21985
|
}, {
|
|
21218
|
-
dataIndex: '
|
|
21219
|
-
title: "\
|
|
21986
|
+
dataIndex: 'skuName',
|
|
21987
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21988
|
+
align: 'center',
|
|
21989
|
+
ellipsis: true,
|
|
21220
21990
|
width: 150,
|
|
21221
21991
|
render: renderTextEllipsis
|
|
21222
21992
|
}, {
|
|
21223
|
-
dataIndex: '
|
|
21224
|
-
title: "\u7CFB\u7EDF\
|
|
21993
|
+
dataIndex: 'skuCode',
|
|
21994
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
21995
|
+
align: 'center',
|
|
21996
|
+
ellipsis: true,
|
|
21225
21997
|
width: 150,
|
|
21226
21998
|
render: renderTextEllipsis
|
|
21227
21999
|
}, {
|
|
21228
|
-
dataIndex: '
|
|
21229
|
-
title: "\
|
|
22000
|
+
dataIndex: 'specId',
|
|
22001
|
+
title: "\u89C4\u683CID",
|
|
22002
|
+
align: 'center',
|
|
22003
|
+
ellipsis: true,
|
|
21230
22004
|
width: 150,
|
|
21231
22005
|
render: renderTextEllipsis
|
|
21232
22006
|
}, {
|
|
21233
|
-
dataIndex: '
|
|
21234
|
-
title: "\
|
|
21235
|
-
width:
|
|
22007
|
+
dataIndex: 'goodsClass',
|
|
22008
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22009
|
+
width: 150,
|
|
21236
22010
|
render: renderTextEllipsis
|
|
21237
22011
|
}, {
|
|
21238
|
-
dataIndex: '
|
|
21239
|
-
title: "\
|
|
21240
|
-
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,
|
|
21241
22037
|
render: renderTextEllipsis
|
|
21242
22038
|
}, {
|
|
21243
|
-
dataIndex: '
|
|
21244
|
-
title: "\
|
|
22039
|
+
dataIndex: 'mallProductOutCode',
|
|
22040
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22041
|
+
align: 'center',
|
|
22042
|
+
ellipsis: true,
|
|
21245
22043
|
width: 150,
|
|
21246
22044
|
render: renderTextEllipsis
|
|
21247
22045
|
}, {
|
|
21248
|
-
dataIndex: '
|
|
21249
|
-
title: "\
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
width: 30,
|
|
21255
|
-
src: imgUrl
|
|
21256
|
-
});
|
|
21257
|
-
}
|
|
22046
|
+
dataIndex: 'mallProductId',
|
|
22047
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22048
|
+
align: 'center',
|
|
22049
|
+
ellipsis: true,
|
|
22050
|
+
width: 250,
|
|
22051
|
+
render: renderTextEllipsis
|
|
21258
22052
|
}, {
|
|
21259
|
-
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',
|
|
21260
22068
|
title: "\u6570\u91CF",
|
|
21261
22069
|
width: 100,
|
|
21262
22070
|
render: function render(val, record, index) {
|
|
@@ -21268,13 +22076,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21268
22076
|
min: 1,
|
|
21269
22077
|
precision: 0,
|
|
21270
22078
|
onChange: function onChange(num) {
|
|
21271
|
-
|
|
22079
|
+
updateDataHandle({
|
|
22080
|
+
sellCount: num,
|
|
22081
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22082
|
+
}, index);
|
|
21272
22083
|
}
|
|
21273
22084
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21274
22085
|
}
|
|
21275
22086
|
}, {
|
|
21276
|
-
dataIndex: '
|
|
21277
|
-
title: "\
|
|
22087
|
+
dataIndex: 'sellPrice',
|
|
22088
|
+
title: "\u5355\u4EF7",
|
|
21278
22089
|
width: 150,
|
|
21279
22090
|
render: function render(val, record, index) {
|
|
21280
22091
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
@@ -21285,98 +22096,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21285
22096
|
min: 0,
|
|
21286
22097
|
precision: 2,
|
|
21287
22098
|
onChange: function onChange(num) {
|
|
21288
|
-
|
|
22099
|
+
updateDataHandle({
|
|
22100
|
+
sellPrice: num,
|
|
22101
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22102
|
+
}, index);
|
|
21289
22103
|
}
|
|
21290
|
-
}) : /*#__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' ? '是' : '否');
|
|
21291
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
|
|
21292
22196
|
}, {
|
|
21293
|
-
dataIndex: '
|
|
21294
|
-
title: "\u5546\u54C1\
|
|
22197
|
+
dataIndex: 'productCode',
|
|
22198
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22199
|
+
align: 'center',
|
|
22200
|
+
ellipsis: true,
|
|
21295
22201
|
width: 150,
|
|
21296
|
-
render:
|
|
21297
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21298
|
-
}
|
|
22202
|
+
render: renderTextEllipsis
|
|
21299
22203
|
}, {
|
|
21300
|
-
dataIndex: '
|
|
21301
|
-
title: "\
|
|
22204
|
+
dataIndex: 'productId',
|
|
22205
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22206
|
+
align: 'center',
|
|
22207
|
+
ellipsis: true,
|
|
21302
22208
|
width: 150,
|
|
21303
22209
|
render: renderTextEllipsis
|
|
21304
22210
|
}, {
|
|
21305
|
-
dataIndex: '
|
|
21306
|
-
title: "\
|
|
22211
|
+
dataIndex: 'skuName',
|
|
22212
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22213
|
+
align: 'center',
|
|
22214
|
+
ellipsis: true,
|
|
21307
22215
|
width: 150,
|
|
21308
22216
|
render: renderTextEllipsis
|
|
21309
22217
|
}, {
|
|
21310
|
-
dataIndex: '
|
|
21311
|
-
title: "\
|
|
22218
|
+
dataIndex: 'skuCode',
|
|
22219
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22220
|
+
align: 'center',
|
|
22221
|
+
ellipsis: true,
|
|
21312
22222
|
width: 150,
|
|
21313
22223
|
render: renderTextEllipsis
|
|
21314
|
-
}
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
KM_REISSUE_GOODS: [{
|
|
21321
|
-
dataIndex: 'skuPropertiesName',
|
|
21322
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
21323
|
-
width: 250,
|
|
22224
|
+
}, {
|
|
22225
|
+
dataIndex: 'specId',
|
|
22226
|
+
title: "\u89C4\u683CID",
|
|
22227
|
+
align: 'center',
|
|
22228
|
+
ellipsis: true,
|
|
22229
|
+
width: 150,
|
|
21324
22230
|
render: renderTextEllipsis
|
|
21325
22231
|
}, {
|
|
21326
|
-
dataIndex: '
|
|
21327
|
-
title: "\
|
|
22232
|
+
dataIndex: 'goodsClass',
|
|
22233
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21328
22234
|
width: 150,
|
|
21329
22235
|
render: renderTextEllipsis
|
|
21330
22236
|
}, {
|
|
21331
|
-
dataIndex: '
|
|
21332
|
-
title: "\
|
|
22237
|
+
dataIndex: 'code',
|
|
22238
|
+
title: "\u6761\u7801",
|
|
21333
22239
|
width: 150,
|
|
21334
22240
|
render: renderTextEllipsis
|
|
21335
22241
|
}, {
|
|
21336
|
-
dataIndex: '
|
|
22242
|
+
dataIndex: 'mallProductName',
|
|
21337
22243
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22244
|
+
align: 'center',
|
|
22245
|
+
ellipsis: true,
|
|
21338
22246
|
width: 150,
|
|
21339
22247
|
render: renderTextEllipsis
|
|
21340
22248
|
}, {
|
|
21341
|
-
dataIndex: '
|
|
21342
|
-
title: "\
|
|
22249
|
+
dataIndex: 'mallProductOutCode',
|
|
22250
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22251
|
+
align: 'center',
|
|
22252
|
+
ellipsis: true,
|
|
21343
22253
|
width: 150,
|
|
21344
22254
|
render: renderTextEllipsis
|
|
21345
22255
|
}, {
|
|
21346
|
-
dataIndex: '
|
|
21347
|
-
title: "\
|
|
22256
|
+
dataIndex: 'mallProductId',
|
|
22257
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22258
|
+
align: 'center',
|
|
22259
|
+
ellipsis: true,
|
|
21348
22260
|
width: 150,
|
|
21349
22261
|
render: renderTextEllipsis
|
|
21350
22262
|
}, {
|
|
21351
|
-
dataIndex: '
|
|
21352
|
-
title: "\
|
|
22263
|
+
dataIndex: 'mallSkuName',
|
|
22264
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22265
|
+
align: 'center',
|
|
22266
|
+
ellipsis: true,
|
|
21353
22267
|
width: 150,
|
|
21354
22268
|
render: renderTextEllipsis
|
|
21355
22269
|
}, {
|
|
21356
|
-
dataIndex: '
|
|
22270
|
+
dataIndex: 'mallSkuId',
|
|
21357
22271
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21358
|
-
|
|
21359
|
-
|
|
21360
|
-
|
|
21361
|
-
dataIndex: 'outerSkuId',
|
|
21362
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21363
|
-
width: 170,
|
|
22272
|
+
align: 'center',
|
|
22273
|
+
ellipsis: true,
|
|
22274
|
+
width: 150,
|
|
21364
22275
|
render: renderTextEllipsis
|
|
21365
22276
|
}, {
|
|
21366
|
-
dataIndex: '
|
|
21367
|
-
title: "\
|
|
22277
|
+
dataIndex: 'sellCount',
|
|
22278
|
+
title: "\u6570\u91CF",
|
|
21368
22279
|
width: 100,
|
|
21369
22280
|
validator: function validator(_rule, value) {
|
|
21370
|
-
var
|
|
21371
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21372
|
-
var
|
|
21373
|
-
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;
|
|
21374
22285
|
if (res) {
|
|
21375
|
-
|
|
22286
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21376
22287
|
}
|
|
21377
22288
|
return res;
|
|
21378
22289
|
})) {
|
|
21379
|
-
return Promise.reject("".concat(
|
|
22290
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21380
22291
|
}
|
|
21381
22292
|
},
|
|
21382
22293
|
render: function render(val, record, index) {
|
|
@@ -21388,76 +22299,88 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21388
22299
|
min: 1,
|
|
21389
22300
|
precision: 0,
|
|
21390
22301
|
onChange: function onChange(num) {
|
|
21391
|
-
|
|
22302
|
+
updateDataHandle({
|
|
22303
|
+
sellCount: num,
|
|
22304
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22305
|
+
}, index);
|
|
21392
22306
|
}
|
|
21393
22307
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21394
22308
|
}
|
|
21395
22309
|
}, {
|
|
21396
|
-
dataIndex: '
|
|
21397
|
-
title: "\
|
|
21398
|
-
width:
|
|
22310
|
+
dataIndex: 'sellPrice',
|
|
22311
|
+
title: "\u5355\u4EF7",
|
|
22312
|
+
width: 150,
|
|
21399
22313
|
render: function render(val, record, index) {
|
|
21400
22314
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21401
22315
|
style: {
|
|
21402
|
-
width:
|
|
22316
|
+
width: 130
|
|
21403
22317
|
},
|
|
21404
22318
|
value: val,
|
|
21405
|
-
min:
|
|
21406
|
-
precision:
|
|
22319
|
+
min: 0,
|
|
22320
|
+
precision: 2,
|
|
21407
22321
|
onChange: function onChange(num) {
|
|
21408
|
-
|
|
22322
|
+
updateDataHandle({
|
|
22323
|
+
sellPrice: num,
|
|
22324
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22325
|
+
}, index);
|
|
21409
22326
|
}
|
|
21410
22327
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21411
22328
|
}
|
|
21412
22329
|
}, {
|
|
21413
|
-
dataIndex: '
|
|
21414
|
-
title: "\u5546\u54C1\
|
|
21415
|
-
width: 150
|
|
21416
|
-
render: function render(val) {
|
|
21417
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21418
|
-
}
|
|
22330
|
+
dataIndex: 'mallSellingPrice',
|
|
22331
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22332
|
+
width: 150
|
|
21419
22333
|
}, {
|
|
21420
|
-
dataIndex: '
|
|
21421
|
-
title: "\
|
|
22334
|
+
dataIndex: 'sellTotal',
|
|
22335
|
+
title: "\u91D1\u989D",
|
|
22336
|
+
width: 150
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'bfit',
|
|
22339
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21422
22340
|
width: 150,
|
|
21423
22341
|
render: function render(val, record, index) {
|
|
21424
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(
|
|
21425
|
-
style: {
|
|
21426
|
-
width: 130
|
|
21427
|
-
},
|
|
22342
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21428
22343
|
value: val,
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
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' ? '是' : '否');
|
|
21435
22355
|
}
|
|
21436
22356
|
}, {
|
|
21437
|
-
dataIndex: '
|
|
21438
|
-
title: "\u5546\u54C1\
|
|
22357
|
+
dataIndex: 'combinationName',
|
|
22358
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21439
22359
|
width: 150,
|
|
21440
22360
|
render: renderTextEllipsis
|
|
21441
22361
|
}, {
|
|
21442
|
-
dataIndex: '
|
|
21443
|
-
title: "\
|
|
22362
|
+
dataIndex: 'combinationCode',
|
|
22363
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21444
22364
|
width: 150,
|
|
21445
22365
|
render: renderTextEllipsis
|
|
21446
22366
|
}, {
|
|
21447
|
-
dataIndex: '
|
|
21448
|
-
title: "\
|
|
22367
|
+
dataIndex: 'gift',
|
|
22368
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21449
22369
|
width: 150,
|
|
21450
|
-
render:
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
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' ? '是' : '否');
|
|
21461
22384
|
}
|
|
21462
22385
|
}].map(function (item) {
|
|
21463
22386
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21468,12 +22391,54 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21468
22391
|
};
|
|
21469
22392
|
};
|
|
21470
22393
|
|
|
21471
|
-
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) {
|
|
21472
22437
|
if (typeof value === 'number') return true;
|
|
21473
22438
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21474
22439
|
return false;
|
|
21475
22440
|
};
|
|
21476
|
-
function toNum$
|
|
22441
|
+
function toNum$5(value) {
|
|
21477
22442
|
if (typeof value === 'string') {
|
|
21478
22443
|
return value ? +value : void 0;
|
|
21479
22444
|
}
|
|
@@ -21482,44 +22447,44 @@ function toNum$4(value) {
|
|
|
21482
22447
|
}
|
|
21483
22448
|
return void 0;
|
|
21484
22449
|
}
|
|
21485
|
-
var getColumns$
|
|
22450
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21486
22451
|
var _ref$text = _ref.text,
|
|
21487
22452
|
disabled = _ref.disabled,
|
|
21488
22453
|
updateHandle = _ref.updateHandle,
|
|
21489
22454
|
updateDataHandle = _ref.updateDataHandle;
|
|
21490
22455
|
return {
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
dataIndex: '
|
|
21494
|
-
title: "\
|
|
22456
|
+
//吉客云商品信息
|
|
22457
|
+
JKY_GOODS: [{
|
|
22458
|
+
dataIndex: 'goodsNo',
|
|
22459
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21495
22460
|
align: 'center',
|
|
21496
22461
|
ellipsis: true,
|
|
21497
22462
|
width: 150,
|
|
21498
22463
|
render: renderTextEllipsis
|
|
21499
22464
|
}, {
|
|
21500
|
-
dataIndex: '
|
|
21501
|
-
title: "\
|
|
22465
|
+
dataIndex: 'goodsName',
|
|
22466
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21502
22467
|
align: 'center',
|
|
21503
22468
|
ellipsis: true,
|
|
21504
22469
|
width: 150,
|
|
21505
22470
|
render: renderTextEllipsis
|
|
21506
22471
|
}, {
|
|
21507
|
-
dataIndex: '
|
|
21508
|
-
title: "\
|
|
22472
|
+
dataIndex: 'goodsId',
|
|
22473
|
+
title: "\u8D27\u54C1ID",
|
|
21509
22474
|
align: 'center',
|
|
21510
22475
|
ellipsis: true,
|
|
21511
22476
|
width: 150,
|
|
21512
22477
|
render: renderTextEllipsis
|
|
21513
22478
|
}, {
|
|
21514
|
-
dataIndex: '
|
|
21515
|
-
title: "\
|
|
22479
|
+
dataIndex: 'barcode',
|
|
22480
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21516
22481
|
align: 'center',
|
|
21517
22482
|
ellipsis: true,
|
|
21518
22483
|
width: 150,
|
|
21519
22484
|
render: renderTextEllipsis
|
|
21520
22485
|
}, {
|
|
21521
|
-
dataIndex: '
|
|
21522
|
-
title: "\
|
|
22486
|
+
dataIndex: 'specName',
|
|
22487
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21523
22488
|
align: 'center',
|
|
21524
22489
|
ellipsis: true,
|
|
21525
22490
|
width: 150,
|
|
@@ -21531,82 +22496,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21531
22496
|
ellipsis: true,
|
|
21532
22497
|
width: 150,
|
|
21533
22498
|
render: renderTextEllipsis
|
|
21534
|
-
},
|
|
21535
|
-
// {
|
|
21536
|
-
// dataIndex: 'goodsName',
|
|
21537
|
-
// title: `货品名称`,
|
|
21538
|
-
// width: 250,
|
|
21539
|
-
// },
|
|
21540
|
-
// {
|
|
21541
|
-
// dataIndex: 'goodsCode',
|
|
21542
|
-
// title: `货品编号`,
|
|
21543
|
-
// width: 200,
|
|
21544
|
-
// },
|
|
21545
|
-
// {
|
|
21546
|
-
// dataIndex: 'goodsId',
|
|
21547
|
-
// title: `货品ID`,
|
|
21548
|
-
// width: 150,
|
|
21549
|
-
// },
|
|
21550
|
-
{
|
|
21551
|
-
dataIndex: 'goodsClass',
|
|
21552
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21553
|
-
width: 150,
|
|
21554
|
-
render: renderTextEllipsis
|
|
21555
|
-
}, {
|
|
21556
|
-
dataIndex: 'code',
|
|
21557
|
-
title: "\u6761\u7801",
|
|
21558
|
-
width: 150,
|
|
21559
|
-
render: renderTextEllipsis
|
|
21560
|
-
},
|
|
21561
|
-
// {
|
|
21562
|
-
// dataIndex: 'specName',
|
|
21563
|
-
// title: `规格名称`,
|
|
21564
|
-
// align: 'center',
|
|
21565
|
-
// ellipsis: true,
|
|
21566
|
-
// width: 200,
|
|
21567
|
-
// },
|
|
21568
|
-
// {
|
|
21569
|
-
// dataIndex: 'specCode',
|
|
21570
|
-
// title: `规格编号`,
|
|
21571
|
-
// align: 'center',
|
|
21572
|
-
// ellipsis: true,
|
|
21573
|
-
// width: 150,
|
|
21574
|
-
// },
|
|
21575
|
-
{
|
|
21576
|
-
dataIndex: 'mallProductName',
|
|
21577
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21578
|
-
align: 'center',
|
|
21579
|
-
ellipsis: true,
|
|
21580
|
-
width: 250,
|
|
21581
|
-
render: renderTextEllipsis
|
|
21582
22499
|
}, {
|
|
21583
|
-
dataIndex: '
|
|
21584
|
-
title: "\
|
|
22500
|
+
dataIndex: 'skuImgUrl',
|
|
22501
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21585
22502
|
align: 'center',
|
|
21586
22503
|
ellipsis: true,
|
|
21587
22504
|
width: 150,
|
|
21588
|
-
render:
|
|
21589
|
-
|
|
21590
|
-
|
|
21591
|
-
|
|
21592
|
-
|
|
21593
|
-
|
|
21594
|
-
width: 250,
|
|
21595
|
-
render: renderTextEllipsis
|
|
21596
|
-
}, {
|
|
21597
|
-
dataIndex: 'mallSkuName',
|
|
21598
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21599
|
-
align: 'center',
|
|
21600
|
-
ellipsis: true,
|
|
21601
|
-
width: 250,
|
|
21602
|
-
render: renderTextEllipsis
|
|
21603
|
-
}, {
|
|
21604
|
-
dataIndex: 'mallSkuId',
|
|
21605
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21606
|
-
align: 'center',
|
|
21607
|
-
ellipsis: true,
|
|
21608
|
-
width: 250,
|
|
21609
|
-
render: renderTextEllipsis
|
|
22505
|
+
render: function render(val) {
|
|
22506
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22507
|
+
width: 30,
|
|
22508
|
+
src: val
|
|
22509
|
+
});
|
|
22510
|
+
}
|
|
21610
22511
|
}, {
|
|
21611
22512
|
dataIndex: 'sellCount',
|
|
21612
22513
|
title: "\u6570\u91CF",
|
|
@@ -21622,11 +22523,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21622
22523
|
onChange: function onChange(num) {
|
|
21623
22524
|
updateDataHandle({
|
|
21624
22525
|
sellCount: num,
|
|
21625
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22526
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21626
22527
|
}, index);
|
|
21627
22528
|
}
|
|
21628
22529
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21629
22530
|
}
|
|
22531
|
+
}, {
|
|
22532
|
+
dataIndex: 'actualSendCount',
|
|
22533
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22534
|
+
width: 150,
|
|
22535
|
+
render: renderTextEllipsis
|
|
21630
22536
|
}, {
|
|
21631
22537
|
dataIndex: 'sellPrice',
|
|
21632
22538
|
title: "\u5355\u4EF7",
|
|
@@ -21642,30 +22548,57 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21642
22548
|
onChange: function onChange(num) {
|
|
21643
22549
|
updateDataHandle({
|
|
21644
22550
|
sellPrice: num,
|
|
21645
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22551
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21646
22552
|
}, index);
|
|
21647
22553
|
}
|
|
21648
22554
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21649
22555
|
}
|
|
21650
22556
|
}, {
|
|
21651
|
-
dataIndex: '
|
|
21652
|
-
title: "\
|
|
22557
|
+
dataIndex: 'sellTotal',
|
|
22558
|
+
title: "\u603B\u91D1\u989D",
|
|
21653
22559
|
width: 150
|
|
21654
22560
|
}, {
|
|
21655
|
-
dataIndex: '
|
|
21656
|
-
title: "\u91D1\u989D",
|
|
22561
|
+
dataIndex: 'discountTotal',
|
|
22562
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
21657
22563
|
width: 150
|
|
21658
22564
|
}, {
|
|
21659
|
-
dataIndex: '
|
|
21660
|
-
title: "\
|
|
22565
|
+
dataIndex: 'shareFavourableFee',
|
|
22566
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
21661
22567
|
width: 150
|
|
21662
22568
|
}, {
|
|
21663
|
-
dataIndex: '
|
|
21664
|
-
title: "\u5206\u644A\
|
|
22569
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22570
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
21665
22571
|
width: 150
|
|
21666
22572
|
}, {
|
|
21667
|
-
dataIndex: '
|
|
21668
|
-
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",
|
|
21669
22602
|
width: 150,
|
|
21670
22603
|
render: function render(val, record, index) {
|
|
21671
22604
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21677,30 +22610,45 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21677
22610
|
},
|
|
21678
22611
|
value: val,
|
|
21679
22612
|
onChange: function onChange(value) {
|
|
21680
|
-
updateHandle(value, index, '
|
|
22613
|
+
updateHandle(value, index, 'isGift');
|
|
21681
22614
|
},
|
|
21682
22615
|
options: [{
|
|
21683
22616
|
label: '是',
|
|
21684
|
-
value:
|
|
22617
|
+
value: 1
|
|
21685
22618
|
}, {
|
|
21686
22619
|
label: '否',
|
|
21687
|
-
value:
|
|
22620
|
+
value: 0
|
|
21688
22621
|
}]
|
|
21689
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22622
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
21690
22623
|
}
|
|
21691
22624
|
}, {
|
|
21692
|
-
dataIndex: '
|
|
21693
|
-
title: "\u7EC4\u5408\
|
|
21694
|
-
width: 150,
|
|
21695
|
-
render: renderTextEllipsis
|
|
21696
|
-
}, {
|
|
21697
|
-
dataIndex: 'combinationCode',
|
|
21698
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22625
|
+
dataIndex: 'isFit',
|
|
22626
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21699
22627
|
width: 150,
|
|
21700
|
-
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
|
+
}
|
|
21701
22649
|
}, {
|
|
21702
|
-
dataIndex: '
|
|
21703
|
-
title: "\u662F\u5426\
|
|
22650
|
+
dataIndex: 'isPresell',
|
|
22651
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21704
22652
|
width: 150,
|
|
21705
22653
|
render: function render(val, record, index) {
|
|
21706
22654
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21712,7 +22660,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21712
22660
|
},
|
|
21713
22661
|
value: val,
|
|
21714
22662
|
onChange: function onChange(value) {
|
|
21715
|
-
updateHandle(value, index, '
|
|
22663
|
+
updateHandle(value, index, 'isPresell');
|
|
21716
22664
|
},
|
|
21717
22665
|
options: [{
|
|
21718
22666
|
label: '是',
|
|
@@ -21721,121 +22669,175 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21721
22669
|
label: '否',
|
|
21722
22670
|
value: '0'
|
|
21723
22671
|
}]
|
|
21724
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22672
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
|
|
21725
22673
|
}
|
|
21726
|
-
}
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
ellipsis: true
|
|
21730
|
-
});
|
|
21731
|
-
}),
|
|
21732
|
-
// 巨益补发商品信息
|
|
21733
|
-
JY_REISSUE_GOODS: [{
|
|
21734
|
-
dataIndex: 'productName',
|
|
21735
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22674
|
+
}, {
|
|
22675
|
+
dataIndex: 'brandName',
|
|
22676
|
+
title: "\u54C1\u724C",
|
|
21736
22677
|
align: 'center',
|
|
21737
22678
|
ellipsis: true,
|
|
21738
|
-
width:
|
|
22679
|
+
width: 200,
|
|
21739
22680
|
render: renderTextEllipsis
|
|
21740
22681
|
}, {
|
|
21741
|
-
dataIndex: '
|
|
21742
|
-
title: "\
|
|
22682
|
+
dataIndex: 'cateName',
|
|
22683
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21743
22684
|
align: 'center',
|
|
21744
22685
|
ellipsis: true,
|
|
21745
22686
|
width: 150,
|
|
21746
22687
|
render: renderTextEllipsis
|
|
21747
22688
|
}, {
|
|
21748
|
-
dataIndex: '
|
|
21749
|
-
title: "\
|
|
22689
|
+
dataIndex: 'goodsTags',
|
|
22690
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21750
22691
|
align: 'center',
|
|
21751
22692
|
ellipsis: true,
|
|
21752
|
-
width:
|
|
22693
|
+
width: 250,
|
|
21753
22694
|
render: renderTextEllipsis
|
|
21754
22695
|
}, {
|
|
21755
|
-
dataIndex: '
|
|
21756
|
-
title: "\
|
|
22696
|
+
dataIndex: 'goodsMemo',
|
|
22697
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21757
22698
|
align: 'center',
|
|
21758
22699
|
ellipsis: true,
|
|
21759
|
-
width:
|
|
22700
|
+
width: 250,
|
|
21760
22701
|
render: renderTextEllipsis
|
|
21761
22702
|
}, {
|
|
21762
|
-
dataIndex: '
|
|
21763
|
-
title: "\
|
|
22703
|
+
dataIndex: 'tradeGoodsNo',
|
|
22704
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21764
22705
|
align: 'center',
|
|
21765
22706
|
ellipsis: true,
|
|
21766
|
-
width:
|
|
22707
|
+
width: 250,
|
|
21767
22708
|
render: renderTextEllipsis
|
|
21768
22709
|
}, {
|
|
21769
|
-
dataIndex: '
|
|
21770
|
-
title: "\
|
|
21771
|
-
align: 'center',
|
|
22710
|
+
dataIndex: 'tradeGoodsName',
|
|
22711
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21772
22712
|
ellipsis: true,
|
|
21773
|
-
width:
|
|
22713
|
+
width: 250,
|
|
21774
22714
|
render: renderTextEllipsis
|
|
21775
22715
|
}, {
|
|
21776
|
-
dataIndex: '
|
|
21777
|
-
title: "\
|
|
21778
|
-
|
|
22716
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22717
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22718
|
+
ellipsis: true,
|
|
22719
|
+
width: 250,
|
|
21779
22720
|
render: renderTextEllipsis
|
|
21780
22721
|
}, {
|
|
21781
|
-
dataIndex: '
|
|
21782
|
-
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,
|
|
21783
22775
|
width: 150,
|
|
21784
22776
|
render: renderTextEllipsis
|
|
21785
22777
|
}, {
|
|
21786
|
-
dataIndex: '
|
|
21787
|
-
title: "\
|
|
22778
|
+
dataIndex: 'goodsName',
|
|
22779
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21788
22780
|
align: 'center',
|
|
21789
22781
|
ellipsis: true,
|
|
21790
22782
|
width: 150,
|
|
21791
22783
|
render: renderTextEllipsis
|
|
21792
22784
|
}, {
|
|
21793
|
-
dataIndex: '
|
|
21794
|
-
title: "\
|
|
22785
|
+
dataIndex: 'goodsId',
|
|
22786
|
+
title: "\u8D27\u54C1ID",
|
|
21795
22787
|
align: 'center',
|
|
21796
22788
|
ellipsis: true,
|
|
21797
22789
|
width: 150,
|
|
21798
22790
|
render: renderTextEllipsis
|
|
21799
22791
|
}, {
|
|
21800
|
-
dataIndex: '
|
|
21801
|
-
title: "\
|
|
22792
|
+
dataIndex: 'barcode',
|
|
22793
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21802
22794
|
align: 'center',
|
|
21803
22795
|
ellipsis: true,
|
|
21804
22796
|
width: 150,
|
|
21805
22797
|
render: renderTextEllipsis
|
|
21806
22798
|
}, {
|
|
21807
|
-
dataIndex: '
|
|
21808
|
-
title: "\
|
|
22799
|
+
dataIndex: 'specName',
|
|
22800
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21809
22801
|
align: 'center',
|
|
21810
22802
|
ellipsis: true,
|
|
21811
22803
|
width: 150,
|
|
21812
22804
|
render: renderTextEllipsis
|
|
21813
22805
|
}, {
|
|
21814
|
-
dataIndex: '
|
|
21815
|
-
title: "\
|
|
22806
|
+
dataIndex: 'specId',
|
|
22807
|
+
title: "\u89C4\u683CID",
|
|
21816
22808
|
align: 'center',
|
|
21817
22809
|
ellipsis: true,
|
|
21818
22810
|
width: 150,
|
|
21819
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
|
+
}
|
|
21820
22822
|
}, {
|
|
21821
22823
|
dataIndex: 'sellCount',
|
|
21822
|
-
title: "\u6570\u91CF",
|
|
22824
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21823
22825
|
width: 100,
|
|
21824
22826
|
validator: function validator(_rule, value) {
|
|
21825
|
-
var
|
|
21826
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21827
|
-
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);
|
|
21828
22830
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21829
22831
|
if (res) {
|
|
21830
|
-
|
|
22832
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21831
22833
|
}
|
|
21832
22834
|
return res;
|
|
21833
22835
|
})) {
|
|
21834
|
-
return Promise.reject("".concat(
|
|
22836
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21835
22837
|
}
|
|
21836
22838
|
},
|
|
21837
22839
|
render: function render(val, record, index) {
|
|
21838
|
-
return
|
|
22840
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21839
22841
|
style: {
|
|
21840
22842
|
width: 70
|
|
21841
22843
|
},
|
|
@@ -21845,7 +22847,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21845
22847
|
onChange: function onChange(num) {
|
|
21846
22848
|
updateDataHandle({
|
|
21847
22849
|
sellCount: num,
|
|
21848
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22850
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21849
22851
|
}, index);
|
|
21850
22852
|
}
|
|
21851
22853
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -21855,7 +22857,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21855
22857
|
title: "\u5355\u4EF7",
|
|
21856
22858
|
width: 150,
|
|
21857
22859
|
render: function render(val, record, index) {
|
|
21858
|
-
return
|
|
22860
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21859
22861
|
style: {
|
|
21860
22862
|
width: 130
|
|
21861
22863
|
},
|
|
@@ -21865,119 +22867,90 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21865
22867
|
onChange: function onChange(num) {
|
|
21866
22868
|
updateDataHandle({
|
|
21867
22869
|
sellPrice: num,
|
|
21868
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22870
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21869
22871
|
}, index);
|
|
21870
22872
|
}
|
|
21871
22873
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21872
22874
|
}
|
|
21873
|
-
}, {
|
|
21874
|
-
dataIndex: 'mallSellingPrice',
|
|
21875
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21876
|
-
width: 150
|
|
21877
22875
|
}, {
|
|
21878
22876
|
dataIndex: 'sellTotal',
|
|
21879
|
-
title: "\u91D1\u989D",
|
|
21880
|
-
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
|
+
}
|
|
21881
22885
|
}, {
|
|
21882
|
-
dataIndex: '
|
|
21883
|
-
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",
|
|
21884
22899
|
width: 150,
|
|
21885
22900
|
render: function render(val, record, index) {
|
|
21886
|
-
return
|
|
22901
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21887
22902
|
value: val,
|
|
21888
22903
|
onChange: function onChange(value) {
|
|
21889
|
-
updateHandle(value, index, '
|
|
22904
|
+
updateHandle(value, index, 'isGift');
|
|
21890
22905
|
},
|
|
21891
22906
|
options: [{
|
|
21892
22907
|
label: '是',
|
|
21893
|
-
value:
|
|
22908
|
+
value: 1
|
|
21894
22909
|
}, {
|
|
21895
22910
|
label: '否',
|
|
21896
|
-
value:
|
|
22911
|
+
value: 0
|
|
21897
22912
|
}]
|
|
21898
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22913
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
21899
22914
|
}
|
|
21900
22915
|
}, {
|
|
21901
|
-
dataIndex: '
|
|
21902
|
-
title: "\u7EC4\u5408\
|
|
21903
|
-
width: 150,
|
|
21904
|
-
render: renderTextEllipsis
|
|
21905
|
-
}, {
|
|
21906
|
-
dataIndex: 'combinationCode',
|
|
21907
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21908
|
-
width: 150,
|
|
21909
|
-
render: renderTextEllipsis
|
|
21910
|
-
}, {
|
|
21911
|
-
dataIndex: 'gift',
|
|
21912
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22916
|
+
dataIndex: 'isFit',
|
|
22917
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21913
22918
|
width: 150,
|
|
21914
22919
|
render: function render(val, record, index) {
|
|
21915
|
-
return
|
|
22920
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21916
22921
|
value: val,
|
|
21917
22922
|
onChange: function onChange(value) {
|
|
21918
|
-
updateHandle(value, index, '
|
|
22923
|
+
updateHandle(value, index, 'isFit');
|
|
21919
22924
|
},
|
|
21920
22925
|
options: [{
|
|
21921
22926
|
label: '是',
|
|
21922
|
-
value:
|
|
22927
|
+
value: 1
|
|
21923
22928
|
}, {
|
|
21924
22929
|
label: '否',
|
|
21925
|
-
value:
|
|
22930
|
+
value: 0
|
|
21926
22931
|
}]
|
|
21927
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22932
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
21928
22933
|
}
|
|
21929
|
-
}].map(function (item) {
|
|
21930
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21931
|
-
align: 'center',
|
|
21932
|
-
ellipsis: true
|
|
21933
|
-
});
|
|
21934
|
-
})
|
|
21935
|
-
};
|
|
21936
|
-
};
|
|
21937
|
-
|
|
21938
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21939
|
-
var _ref$text = _ref.text,
|
|
21940
|
-
disabled = _ref.disabled,
|
|
21941
|
-
updateHandle = _ref.updateHandle,
|
|
21942
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21943
|
-
return {
|
|
21944
|
-
//[SKX]商品信息(ON)
|
|
21945
|
-
SKX_GOODS: [{
|
|
21946
|
-
dataIndex: 'skuEcode',
|
|
21947
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21948
|
-
width: 250
|
|
21949
22934
|
}, {
|
|
21950
|
-
dataIndex: '
|
|
21951
|
-
title: "
|
|
21952
|
-
width:
|
|
22935
|
+
dataIndex: 'brandName',
|
|
22936
|
+
title: "\u54C1\u724C",
|
|
22937
|
+
width: 150,
|
|
22938
|
+
render: renderTextEllipsis
|
|
21953
22939
|
}, {
|
|
21954
|
-
dataIndex: '
|
|
21955
|
-
title: "
|
|
21956
|
-
width:
|
|
22940
|
+
dataIndex: 'cateName',
|
|
22941
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22942
|
+
width: 150,
|
|
22943
|
+
render: renderTextEllipsis
|
|
21957
22944
|
}].map(function (item) {
|
|
21958
22945
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21959
22946
|
align: 'center',
|
|
21960
22947
|
ellipsis: true
|
|
21961
22948
|
});
|
|
21962
|
-
})
|
|
21963
|
-
//[SKX]退货商品信息(TH)
|
|
21964
|
-
SKX_RETURN_GOODS: [{
|
|
21965
|
-
dataIndex: 'returnSkuEcode',
|
|
21966
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21967
|
-
width: 300
|
|
21968
|
-
}, {
|
|
21969
|
-
dataIndex: 'returnSubOrderId',
|
|
21970
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21971
|
-
width: 300
|
|
21972
|
-
}, {
|
|
21973
|
-
dataIndex: 'returnBillNo',
|
|
21974
|
-
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
21975
|
-
width: 200
|
|
21976
|
-
}]
|
|
22949
|
+
})
|
|
21977
22950
|
};
|
|
21978
22951
|
};
|
|
21979
22952
|
|
|
21980
|
-
var getColumns$
|
|
22953
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21981
22954
|
var _ref$text = _ref.text,
|
|
21982
22955
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21983
22956
|
disabled = _ref.disabled,
|
|
@@ -22094,7 +23067,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22094
23067
|
disabled = _ref.disabled,
|
|
22095
23068
|
updateHandle = _ref.updateHandle,
|
|
22096
23069
|
updateDataHandle = _ref.updateDataHandle;
|
|
22097
|
-
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({
|
|
22098
23071
|
text: text,
|
|
22099
23072
|
disabled: disabled,
|
|
22100
23073
|
updateHandle: updateHandle
|
|
@@ -22132,8 +23105,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22132
23105
|
text: text,
|
|
22133
23106
|
disabled: disabled,
|
|
22134
23107
|
updateHandle: updateHandle
|
|
23108
|
+
})), getColumns$9({
|
|
23109
|
+
text: text,
|
|
23110
|
+
disabled: disabled,
|
|
23111
|
+
updateHandle: updateHandle,
|
|
23112
|
+
updateDataHandle: updateDataHandle
|
|
22135
23113
|
})), {}, {
|
|
22136
|
-
default: getColumns$
|
|
23114
|
+
default: getColumns$a({
|
|
22137
23115
|
text: text,
|
|
22138
23116
|
disabled: disabled,
|
|
22139
23117
|
updateHandle: updateHandle
|
|
@@ -22280,6 +23258,9 @@ var isErpType = {
|
|
|
22280
23258
|
},
|
|
22281
23259
|
isJy: function isJy(type) {
|
|
22282
23260
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23261
|
+
},
|
|
23262
|
+
isJky: function isJky(type) {
|
|
23263
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22283
23264
|
}
|
|
22284
23265
|
};
|
|
22285
23266
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22332,6 +23313,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
22332
23313
|
canUpdateNumber: canUpdateNumber,
|
|
22333
23314
|
source: source
|
|
22334
23315
|
});
|
|
23316
|
+
} else if (isErpType.isJky(type)) {
|
|
23317
|
+
newList = processJkyGoods$1({
|
|
23318
|
+
list: list,
|
|
23319
|
+
type: type,
|
|
23320
|
+
canUpdateNumber: canUpdateNumber,
|
|
23321
|
+
source: source
|
|
23322
|
+
});
|
|
22335
23323
|
} else {
|
|
22336
23324
|
newList = processDefaultGoods({
|
|
22337
23325
|
list: list,
|
|
@@ -22380,11 +23368,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
22380
23368
|
});
|
|
22381
23369
|
});
|
|
22382
23370
|
};
|
|
22383
|
-
|
|
22384
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23371
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
22385
23372
|
var list = _ref3.list,
|
|
22386
|
-
type = _ref3.type,
|
|
22387
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;
|
|
22388
23410
|
return list.map(function (item) {
|
|
22389
23411
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22390
23412
|
uuid: uuid(),
|
|
@@ -22402,9 +23424,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
22402
23424
|
return processedItem;
|
|
22403
23425
|
});
|
|
22404
23426
|
};
|
|
22405
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
22406
|
-
var list =
|
|
22407
|
-
canUpdateNumber =
|
|
23427
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23428
|
+
var list = _ref5.list,
|
|
23429
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
22408
23430
|
return list.map(function (item) {
|
|
22409
23431
|
var specNo = item.specNo,
|
|
22410
23432
|
specId = item.specId,
|
|
@@ -22439,9 +23461,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
22439
23461
|
});
|
|
22440
23462
|
});
|
|
22441
23463
|
};
|
|
22442
|
-
var processGyGoods$1 = function processGyGoods(
|
|
22443
|
-
var list =
|
|
22444
|
-
source =
|
|
23464
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23465
|
+
var list = _ref6.list,
|
|
23466
|
+
source = _ref6.source;
|
|
22445
23467
|
var isFormWorkOrder = source === 'workOrder';
|
|
22446
23468
|
return list.map(function (item) {
|
|
22447
23469
|
var goodName = item.goodName,
|
|
@@ -22468,8 +23490,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
22468
23490
|
});
|
|
22469
23491
|
});
|
|
22470
23492
|
};
|
|
22471
|
-
var processJstGoods$1 = function processJstGoods(
|
|
22472
|
-
var list =
|
|
23493
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23494
|
+
var list = _ref7.list;
|
|
22473
23495
|
return list.map(function (item) {
|
|
22474
23496
|
return {
|
|
22475
23497
|
name: item.goodName,
|
|
@@ -22487,9 +23509,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
22487
23509
|
};
|
|
22488
23510
|
});
|
|
22489
23511
|
};
|
|
22490
|
-
var processKmGoods$1 = function processKmGoods(
|
|
22491
|
-
var list =
|
|
22492
|
-
type =
|
|
23512
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23513
|
+
var list = _ref8.list,
|
|
23514
|
+
type = _ref8.type;
|
|
22493
23515
|
var initParamsMap = {
|
|
22494
23516
|
KM_GOODS: {
|
|
22495
23517
|
num: 1
|
|
@@ -22521,9 +23543,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22521
23543
|
}, initParamsMap[type] || {});
|
|
22522
23544
|
});
|
|
22523
23545
|
};
|
|
22524
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
22525
|
-
var list =
|
|
22526
|
-
canUpdateNumber =
|
|
23546
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23547
|
+
var list = _ref9.list,
|
|
23548
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
22527
23549
|
return list.map(function (item) {
|
|
22528
23550
|
var goodsId = item.goodsId,
|
|
22529
23551
|
name = item.name,
|
|
@@ -22568,6 +23590,8 @@ var GoodsModalMap = {
|
|
|
22568
23590
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22569
23591
|
JY_GOODS: JyGoodsModal$1,
|
|
22570
23592
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23593
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23594
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22571
23595
|
OTHER_GOODS: GoodsModal$2
|
|
22572
23596
|
};
|
|
22573
23597
|
var systemOrderNoMap = {
|
|
@@ -22580,6 +23604,8 @@ var systemOrderNoMap = {
|
|
|
22580
23604
|
WLN_GOODS: 'tradeNo',
|
|
22581
23605
|
JY_GOODS: 'tradeNo',
|
|
22582
23606
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23607
|
+
JKY_GOODS: 'tradeNo',
|
|
23608
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22583
23609
|
KM_REISSUE_GOODS: 'sid',
|
|
22584
23610
|
JST_REISSUE_GOODS: 'oId',
|
|
22585
23611
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22792,6 +23818,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22792
23818
|
}
|
|
22793
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, ")")));
|
|
22794
23820
|
};
|
|
23821
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
22795
23822
|
var getButtonText = function getButtonText() {
|
|
22796
23823
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
22797
23824
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -22812,6 +23839,9 @@ var getButtonText = function getButtonText() {
|
|
|
22812
23839
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22813
23840
|
return '选择巨益ERP商品';
|
|
22814
23841
|
}
|
|
23842
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23843
|
+
return '选择吉客云ERP商品';
|
|
23844
|
+
}
|
|
22815
23845
|
return '选择商品';
|
|
22816
23846
|
};
|
|
22817
23847
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22869,8 +23899,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22869
23899
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22870
23900
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22871
23901
|
// 判断是否为是否展示系统单筛选项
|
|
22872
|
-
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;
|
|
22873
|
-
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;
|
|
22874
23904
|
var refModal = useRef();
|
|
22875
23905
|
console.debug('表格数据', value);
|
|
22876
23906
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22961,6 +23991,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22961
23991
|
case 'KM_REISSUE_GOODS':
|
|
22962
23992
|
case 'JY_GOODS':
|
|
22963
23993
|
case 'JY_REISSUE_GOODS':
|
|
23994
|
+
case 'JKY_GOODS':
|
|
23995
|
+
case 'JKY_REISSUE_GOODS':
|
|
22964
23996
|
case 'SKX_GOODS':
|
|
22965
23997
|
case 'SKX_RETURN_GOODS':
|
|
22966
23998
|
{
|
|
@@ -24165,7 +25197,7 @@ var jyUtils = {
|
|
|
24165
25197
|
};
|
|
24166
25198
|
|
|
24167
25199
|
var singletonMap$7 = new Map();
|
|
24168
|
-
var
|
|
25200
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
24169
25201
|
if (!singletonMap$7.has(orderNo)) {
|
|
24170
25202
|
var p = new Promise(function (resolve, reject) {
|
|
24171
25203
|
var doReject = function doReject(err) {
|
|
@@ -24173,6 +25205,54 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24173
25205
|
singletonMap$7.delete(orderNo);
|
|
24174
25206
|
reject(err);
|
|
24175
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
|
+
};
|
|
24176
25256
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
24177
25257
|
method: 'post',
|
|
24178
25258
|
data: {
|
|
@@ -24196,16 +25276,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24196
25276
|
}
|
|
24197
25277
|
// 延迟10秒清除,保证订单的时效性
|
|
24198
25278
|
setTimeout(function () {
|
|
24199
|
-
singletonMap$
|
|
25279
|
+
singletonMap$8.delete(orderNo);
|
|
24200
25280
|
}, 1000 * 10);
|
|
24201
25281
|
} else {
|
|
24202
25282
|
doReject(data);
|
|
24203
25283
|
}
|
|
24204
25284
|
}).catch(doReject);
|
|
24205
25285
|
});
|
|
24206
|
-
singletonMap$
|
|
25286
|
+
singletonMap$8.set(orderNo, p);
|
|
24207
25287
|
}
|
|
24208
|
-
return singletonMap$
|
|
25288
|
+
return singletonMap$8.get(orderNo);
|
|
24209
25289
|
};
|
|
24210
25290
|
var kmUtils = {
|
|
24211
25291
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -24222,6 +25302,7 @@ var columnsMap = {
|
|
|
24222
25302
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
24223
25303
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
24224
25304
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25305
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
24225
25306
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
24226
25307
|
};
|
|
24227
25308
|
var rowKeyMap = {
|
|
@@ -24233,6 +25314,7 @@ var rowKeyMap = {
|
|
|
24233
25314
|
GY_SYSTEM_ORDER: 'billNo',
|
|
24234
25315
|
JST_SYSTEM_ORDER: 'oId',
|
|
24235
25316
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25317
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
24236
25318
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
24237
25319
|
};
|
|
24238
25320
|
var index$2 = (function (props) {
|
|
@@ -24247,7 +25329,6 @@ var index$2 = (function (props) {
|
|
|
24247
25329
|
useEffect(function () {
|
|
24248
25330
|
var _value$orders, _value$showOrderInfo;
|
|
24249
25331
|
valueRef.current = value;
|
|
24250
|
-
console.log('value77777777', value);
|
|
24251
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) {
|
|
24252
25333
|
onceRef.current = true;
|
|
24253
25334
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24266,6 +25347,8 @@ var index$2 = (function (props) {
|
|
|
24266
25347
|
getJstOrderList(value.orderNo);
|
|
24267
25348
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
24268
25349
|
getJyOrderList(value.orderNo);
|
|
25350
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25351
|
+
getJkyOrderList(value.orderNo);
|
|
24269
25352
|
}
|
|
24270
25353
|
}
|
|
24271
25354
|
}, [value, type]);
|
|
@@ -24505,8 +25588,8 @@ var index$2 = (function (props) {
|
|
|
24505
25588
|
while (1) switch (_context8.prev = _context8.next) {
|
|
24506
25589
|
case 0:
|
|
24507
25590
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
24508
|
-
var trades = (
|
|
24509
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
25591
|
+
var trades = (data || []).filter(function (item) {
|
|
25592
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
24510
25593
|
});
|
|
24511
25594
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
24512
25595
|
orders: trades,
|
|
@@ -24530,6 +25613,28 @@ var index$2 = (function (props) {
|
|
|
24530
25613
|
return _ref10.apply(this, arguments);
|
|
24531
25614
|
};
|
|
24532
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
|
+
}();
|
|
24533
25638
|
var rowSelection = {
|
|
24534
25639
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24535
25640
|
fixed: true,
|
|
@@ -24954,16 +26059,16 @@ var orderSubFormConstants = {
|
|
|
24954
26059
|
};
|
|
24955
26060
|
|
|
24956
26061
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24957
|
-
var singletonMap$
|
|
26062
|
+
var singletonMap$9 = new Map();
|
|
24958
26063
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24959
26064
|
var orderNo = parmas.orderNo,
|
|
24960
26065
|
shopId = parmas.shopId;
|
|
24961
26066
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24962
|
-
if (!singletonMap$
|
|
26067
|
+
if (!singletonMap$9.has(key)) {
|
|
24963
26068
|
var p = new Promise(function (resolve, reject) {
|
|
24964
26069
|
var doReject = function doReject(err) {
|
|
24965
26070
|
// 清空掉错误的请求记录
|
|
24966
|
-
singletonMap$
|
|
26071
|
+
singletonMap$9.delete(key);
|
|
24967
26072
|
reject(err);
|
|
24968
26073
|
};
|
|
24969
26074
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24979,16 +26084,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24979
26084
|
}
|
|
24980
26085
|
// 延迟10秒清除,保证订单的时效性
|
|
24981
26086
|
setTimeout(function () {
|
|
24982
|
-
singletonMap$
|
|
26087
|
+
singletonMap$9.delete(key);
|
|
24983
26088
|
}, 1000 * 10);
|
|
24984
26089
|
} else {
|
|
24985
26090
|
doReject(data);
|
|
24986
26091
|
}
|
|
24987
26092
|
}).catch(doReject);
|
|
24988
26093
|
});
|
|
24989
|
-
singletonMap$
|
|
26094
|
+
singletonMap$9.set(key, p);
|
|
24990
26095
|
}
|
|
24991
|
-
return singletonMap$
|
|
26096
|
+
return singletonMap$9.get(key);
|
|
24992
26097
|
};
|
|
24993
26098
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24994
26099
|
var item = _ref.item,
|
|
@@ -25421,6 +26526,9 @@ var isErpType$1 = {
|
|
|
25421
26526
|
},
|
|
25422
26527
|
isJy: function isJy(type) {
|
|
25423
26528
|
return ['JY_GOODS'].includes(type);
|
|
26529
|
+
},
|
|
26530
|
+
isJky: function isJky(type) {
|
|
26531
|
+
return ['JKY_GOODS'].includes(type);
|
|
25424
26532
|
}
|
|
25425
26533
|
};
|
|
25426
26534
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25490,8 +26598,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
25490
26598
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
25491
26599
|
var data = _ref5.data,
|
|
25492
26600
|
orderNo = _ref5.orderNo;
|
|
25493
|
-
var trades = (
|
|
25494
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
26601
|
+
var trades = (data || []).filter(function (item) {
|
|
26602
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25495
26603
|
});
|
|
25496
26604
|
return trades;
|
|
25497
26605
|
};
|
|
@@ -25721,6 +26829,32 @@ var componentMap$2 = {
|
|
|
25721
26829
|
},
|
|
25722
26830
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25723
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
|
+
},
|
|
25724
26858
|
WDT_AFTERSALE_GOODS: {
|
|
25725
26859
|
type: 'wdtAftersale',
|
|
25726
26860
|
key: 'wdtAftersaleGoods',
|
|
@@ -26151,6 +27285,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26151
27285
|
}
|
|
26152
27286
|
}));
|
|
26153
27287
|
};
|
|
27288
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
26154
27289
|
|
|
26155
27290
|
var componentMap$3 = {
|
|
26156
27291
|
WDT_RETURN_GOODS: {
|
|
@@ -26802,10 +27937,26 @@ var typeMap$2 = {
|
|
|
26802
27937
|
outerOiIdKey: '',
|
|
26803
27938
|
goodDetailsKey: 'subOrderDetails',
|
|
26804
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: 'sourceSubtradeNo',
|
|
27953
|
+
goodDetailsKey: 'goodsDetail',
|
|
27954
|
+
isShowSelectTradeGoods: true,
|
|
27955
|
+
showModeBtn: true
|
|
26805
27956
|
}
|
|
26806
27957
|
};
|
|
26807
27958
|
var PublicReissue = function PublicReissue(props) {
|
|
26808
|
-
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;
|
|
26809
27960
|
var value = props.value,
|
|
26810
27961
|
onChange = props.onChange,
|
|
26811
27962
|
_props$reasonList = props.reasonList,
|
|
@@ -27006,7 +28157,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27006
28157
|
}
|
|
27007
28158
|
}, [sysItemIdMap]);
|
|
27008
28159
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
27009
|
-
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;
|
|
27010
28161
|
var mode = _ref5.mode,
|
|
27011
28162
|
sysOrderNo = _ref5.sysOrderNo,
|
|
27012
28163
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -27028,14 +28179,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27028
28179
|
orderRest = {
|
|
27029
28180
|
canEdit: true
|
|
27030
28181
|
};
|
|
28182
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28183
|
+
orderRest = {
|
|
28184
|
+
canEdit: true
|
|
28185
|
+
};
|
|
27031
28186
|
}
|
|
27032
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] : [];
|
|
27033
28188
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27034
28189
|
var _order$typeMap$type$g;
|
|
27035
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;
|
|
27036
28191
|
});
|
|
27037
|
-
|
|
27038
|
-
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) : [];
|
|
27039
28193
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27040
28194
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27041
28195
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -27043,30 +28197,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27043
28197
|
return list;
|
|
27044
28198
|
};
|
|
27045
28199
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
27046
|
-
var _typeMap$
|
|
28200
|
+
var _typeMap$type24;
|
|
27047
28201
|
var newValue = _objectSpread2({}, value);
|
|
27048
|
-
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 || [];
|
|
27049
28203
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27050
28204
|
};
|
|
27051
28205
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
27052
|
-
var _typeMap$
|
|
28206
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
27053
28207
|
var newValue = _objectSpread2({}, value);
|
|
27054
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27055
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27056
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
27057
|
-
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) || [];
|
|
27058
28212
|
var targetOrder = val && orders.find(function (oItem) {
|
|
27059
|
-
var _typeMap$
|
|
27060
|
-
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;
|
|
27061
28215
|
});
|
|
27062
|
-
newValue[(_typeMap$
|
|
27063
|
-
}
|
|
27064
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
27065
|
-
var _typeMap$
|
|
27066
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27067
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
27068
|
-
var _typeMap$
|
|
27069
|
-
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({
|
|
27070
28224
|
mode: isStrict,
|
|
27071
28225
|
sysOrderNo: val
|
|
27072
28226
|
});
|
|
@@ -27074,27 +28228,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27074
28228
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
27075
28229
|
};
|
|
27076
28230
|
//显示选择商品按钮
|
|
27077
|
-
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]);
|
|
27078
28232
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
27079
|
-
var _typeMap$
|
|
28233
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
27080
28234
|
var newValue = _objectSpread2({}, value);
|
|
27081
28235
|
// 原订单商品
|
|
27082
28236
|
var originTradeGoodList = getGoodDetails({
|
|
27083
28237
|
mode: isStrict,
|
|
27084
|
-
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
|
|
27085
28239
|
}) || [];
|
|
27086
28240
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27087
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27088
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27089
|
-
var _typeMap$
|
|
27090
|
-
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']);
|
|
27091
28245
|
});
|
|
27092
28246
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27093
|
-
}, [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]);
|
|
27094
28248
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
27095
28249
|
gutter: 8,
|
|
27096
28250
|
wrap: true,
|
|
27097
|
-
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())
|
|
27098
28252
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
27099
28253
|
className: "gutter-row",
|
|
27100
28254
|
xs: {
|
|
@@ -27110,12 +28264,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27110
28264
|
},
|
|
27111
28265
|
disabled: disabled,
|
|
27112
28266
|
allowClear: false,
|
|
27113
|
-
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)],
|
|
27114
28268
|
onChange: function onChange(val) {
|
|
27115
28269
|
return changeSystemOrderHandle(val);
|
|
27116
28270
|
},
|
|
27117
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27118
|
-
}, ((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) {
|
|
27119
28273
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
27120
28274
|
key: item[typeMap$2[type].oIdKey],
|
|
27121
28275
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -27137,11 +28291,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27137
28291
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27138
28292
|
allowClear: false,
|
|
27139
28293
|
options: reasonList,
|
|
27140
|
-
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)],
|
|
27141
28295
|
onChange: function onChange(val) {
|
|
27142
28296
|
return changeTypeHandle(val);
|
|
27143
28297
|
}
|
|
27144
|
-
})), (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, {
|
|
27145
28299
|
className: "gutter-row",
|
|
27146
28300
|
xs: {
|
|
27147
28301
|
span: 11
|
|
@@ -27150,7 +28304,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27150
28304
|
span: 6
|
|
27151
28305
|
}
|
|
27152
28306
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
27153
|
-
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)],
|
|
27154
28308
|
disabled: disabled,
|
|
27155
28309
|
readOnly: true
|
|
27156
28310
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -27161,15 +28315,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27161
28315
|
canUpdateNumber: showChangeBtn,
|
|
27162
28316
|
hasSelectedSystemOrder: showChangeBtn,
|
|
27163
28317
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
27164
|
-
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,
|
|
27165
28319
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
27166
28320
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27167
|
-
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)],
|
|
27168
28322
|
onChange: function onChange(val) {
|
|
27169
28323
|
return changeGoodHandle(val);
|
|
27170
28324
|
},
|
|
27171
28325
|
onModeChange: handleModeChange,
|
|
27172
|
-
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),
|
|
27173
28327
|
isStrict: isStrict,
|
|
27174
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,
|
|
27175
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,
|
|
@@ -27184,6 +28338,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27184
28338
|
}
|
|
27185
28339
|
})));
|
|
27186
28340
|
};
|
|
28341
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
27187
28342
|
|
|
27188
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";
|
|
27189
28344
|
styleInject(css_248z$g);
|
|
@@ -29476,7 +30631,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
29476
30631
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
29477
30632
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
29478
30633
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30634
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
29479
30635
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
29480
30636
|
};
|
|
29481
30637
|
|
|
29482
|
-
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 };
|