@kmkf-fe-packages/basic-components 2.2.13-beta.87 → 2.2.13-beta.92
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 +338 -110
- package/dist/index.js +337 -109
- package/dist/src/bs/component/GoodItem/index.d.ts +5 -2
- package/dist/src/constants/systemOrderColumnsMap.d.ts +6 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, 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, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, 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, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, 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';
|
|
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';
|
|
@@ -8108,6 +8108,11 @@ var systemOrderMap = {
|
|
|
8108
8108
|
no: 'jstSystemOrderNo',
|
|
8109
8109
|
ids: 'jstSystemSelectIds',
|
|
8110
8110
|
order: 'jstSystemShowOrder'
|
|
8111
|
+
},
|
|
8112
|
+
WDT_RETURN_BILL_NO: {
|
|
8113
|
+
no: 'wdtReturnBillNo',
|
|
8114
|
+
ids: 'wdtReturnBillNoSelectIds',
|
|
8115
|
+
order: 'wdtReturnBillNoShowOrder'
|
|
8111
8116
|
}
|
|
8112
8117
|
};
|
|
8113
8118
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8680,6 +8685,33 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
|
8680
8685
|
};
|
|
8681
8686
|
};
|
|
8682
8687
|
};
|
|
8688
|
+
var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
|
|
8689
|
+
return function (getValue) {
|
|
8690
|
+
return function (nex, config) {
|
|
8691
|
+
var _values = {
|
|
8692
|
+
wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
|
|
8693
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8694
|
+
};
|
|
8695
|
+
var selectIds = [];
|
|
8696
|
+
var orderNo = '';
|
|
8697
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8698
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8699
|
+
});
|
|
8700
|
+
if (tradeId) {
|
|
8701
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8702
|
+
}
|
|
8703
|
+
var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8704
|
+
return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
|
|
8705
|
+
});
|
|
8706
|
+
if (wdtAftersaleSystemOrder) {
|
|
8707
|
+
selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
|
|
8708
|
+
}
|
|
8709
|
+
_values.selectIds = selectIds;
|
|
8710
|
+
_values.orderNo = orderNo;
|
|
8711
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8712
|
+
};
|
|
8713
|
+
};
|
|
8714
|
+
};
|
|
8683
8715
|
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8684
8716
|
return function (getValue) {
|
|
8685
8717
|
return function (nex, config) {
|
|
@@ -8912,11 +8944,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8912
8944
|
no: 'jstSystemOrderNo',
|
|
8913
8945
|
ids: 'jstSystemSelectIds',
|
|
8914
8946
|
order: 'jstSystemShowOrder'
|
|
8947
|
+
},
|
|
8948
|
+
WDT_RETURN_BILL_NO: {
|
|
8949
|
+
no: 'wdtReturnBillNo',
|
|
8950
|
+
ids: 'wdtReturnBillNoSelectIds',
|
|
8951
|
+
order: 'wdtReturnBillNoShowOrder'
|
|
8915
8952
|
}
|
|
8916
8953
|
};
|
|
8917
8954
|
return _defineProperty({}, nex.uniqueKey, {
|
|
8918
8955
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8919
|
-
orders: [],
|
|
8956
|
+
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
8920
8957
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8921
8958
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8922
8959
|
});
|
|
@@ -9147,14 +9184,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9147
9184
|
};
|
|
9148
9185
|
var processLabel = function processLabel(getValue) {
|
|
9149
9186
|
return function (nex, config) {
|
|
9150
|
-
var
|
|
9151
|
-
return
|
|
9187
|
+
var _ref73;
|
|
9188
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
|
|
9152
9189
|
};
|
|
9153
9190
|
};
|
|
9154
9191
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9155
9192
|
return function (nex, config) {
|
|
9156
|
-
var
|
|
9157
|
-
return
|
|
9193
|
+
var _ref74;
|
|
9194
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
|
|
9158
9195
|
};
|
|
9159
9196
|
};
|
|
9160
9197
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9272,6 +9309,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9272
9309
|
BS_POSTING: processBsPosting,
|
|
9273
9310
|
BS_GOODS: processBsGoods,
|
|
9274
9311
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9312
|
+
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9275
9313
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9276
9314
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9277
9315
|
KM_GOODS: processKmGoods(templateColumns),
|
|
@@ -9288,6 +9326,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9288
9326
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9289
9327
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9290
9328
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9329
|
+
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9291
9330
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9292
9331
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9293
9332
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -19326,6 +19365,141 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19326
19365
|
}
|
|
19327
19366
|
}) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
19328
19367
|
}
|
|
19368
|
+
}],
|
|
19369
|
+
// 旺店通售后商品信息
|
|
19370
|
+
WDT_AFTERSALE_GOODS: [{
|
|
19371
|
+
dataIndex: 'oid',
|
|
19372
|
+
title: "\u539F\u59CB\u5B50\u5355\u53F7",
|
|
19373
|
+
width: 200,
|
|
19374
|
+
align: 'center',
|
|
19375
|
+
ellipsis: true,
|
|
19376
|
+
render: renderTextEllipsis
|
|
19377
|
+
}, {
|
|
19378
|
+
dataIndex: 'goodsName',
|
|
19379
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
19380
|
+
width: 250,
|
|
19381
|
+
align: 'center',
|
|
19382
|
+
ellipsis: true,
|
|
19383
|
+
render: renderTextEllipsis
|
|
19384
|
+
}, {
|
|
19385
|
+
dataIndex: 'goodsNo',
|
|
19386
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
19387
|
+
width: 150,
|
|
19388
|
+
align: 'center',
|
|
19389
|
+
ellipsis: true,
|
|
19390
|
+
render: renderTextEllipsis
|
|
19391
|
+
}, {
|
|
19392
|
+
dataIndex: 'specName',
|
|
19393
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
19394
|
+
width: 150,
|
|
19395
|
+
align: 'center',
|
|
19396
|
+
ellipsis: true,
|
|
19397
|
+
render: renderTextEllipsis
|
|
19398
|
+
}, {
|
|
19399
|
+
dataIndex: 'specNo',
|
|
19400
|
+
title: "\u5546\u5BB6\u7F16\u7801",
|
|
19401
|
+
width: 200,
|
|
19402
|
+
align: 'center',
|
|
19403
|
+
ellipsis: true,
|
|
19404
|
+
render: renderTextEllipsis
|
|
19405
|
+
}, {
|
|
19406
|
+
dataIndex: 'specCode',
|
|
19407
|
+
title: "\u89C4\u683C\u7F16\u53F7",
|
|
19408
|
+
width: 150,
|
|
19409
|
+
align: 'center',
|
|
19410
|
+
ellipsis: true,
|
|
19411
|
+
render: renderTextEllipsis
|
|
19412
|
+
}, {
|
|
19413
|
+
dataIndex: 'barcode',
|
|
19414
|
+
title: "\u6761\u7801",
|
|
19415
|
+
width: 150,
|
|
19416
|
+
align: 'center',
|
|
19417
|
+
ellipsis: true,
|
|
19418
|
+
render: renderTextEllipsis
|
|
19419
|
+
}, {
|
|
19420
|
+
dataIndex: 'apiGoodsName',
|
|
19421
|
+
title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
|
|
19422
|
+
width: 250,
|
|
19423
|
+
align: 'center',
|
|
19424
|
+
ellipsis: true,
|
|
19425
|
+
render: renderTextEllipsis
|
|
19426
|
+
}, {
|
|
19427
|
+
dataIndex: 'apiSpecName',
|
|
19428
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
19429
|
+
width: 250,
|
|
19430
|
+
align: 'center',
|
|
19431
|
+
ellipsis: true,
|
|
19432
|
+
render: renderTextEllipsis
|
|
19433
|
+
}, {
|
|
19434
|
+
dataIndex: 'suiteName',
|
|
19435
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
19436
|
+
width: 150,
|
|
19437
|
+
align: 'center',
|
|
19438
|
+
ellipsis: true,
|
|
19439
|
+
render: renderTextEllipsis
|
|
19440
|
+
}, {
|
|
19441
|
+
dataIndex: 'suiteNo',
|
|
19442
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
19443
|
+
width: 150,
|
|
19444
|
+
align: 'center',
|
|
19445
|
+
ellipsis: true,
|
|
19446
|
+
render: renderTextEllipsis
|
|
19447
|
+
}, {
|
|
19448
|
+
dataIndex: 'stockinNum',
|
|
19449
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
19450
|
+
width: 100,
|
|
19451
|
+
align: 'center',
|
|
19452
|
+
ellipsis: true,
|
|
19453
|
+
render: renderTextEllipsis
|
|
19454
|
+
}, {
|
|
19455
|
+
dataIndex: 'refundNum',
|
|
19456
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
19457
|
+
width: 100,
|
|
19458
|
+
align: 'center',
|
|
19459
|
+
ellipsis: true,
|
|
19460
|
+
render: renderTextEllipsis
|
|
19461
|
+
}, {
|
|
19462
|
+
dataIndex: 'totalAmount',
|
|
19463
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
19464
|
+
width: 100,
|
|
19465
|
+
align: 'center',
|
|
19466
|
+
ellipsis: true,
|
|
19467
|
+
render: renderTextEllipsis
|
|
19468
|
+
}, {
|
|
19469
|
+
dataIndex: 'refundAmount',
|
|
19470
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
19471
|
+
width: 100,
|
|
19472
|
+
align: 'center',
|
|
19473
|
+
ellipsis: true,
|
|
19474
|
+
render: renderTextEllipsis
|
|
19475
|
+
}, {
|
|
19476
|
+
dataIndex: 'orderNum',
|
|
19477
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
19478
|
+
width: 100,
|
|
19479
|
+
align: 'center',
|
|
19480
|
+
ellipsis: true,
|
|
19481
|
+
render: renderTextEllipsis
|
|
19482
|
+
}, {
|
|
19483
|
+
dataIndex: 'price',
|
|
19484
|
+
title: "\u4EF7\u683C",
|
|
19485
|
+
width: 100,
|
|
19486
|
+
align: 'center',
|
|
19487
|
+
ellipsis: true,
|
|
19488
|
+
render: renderTextEllipsis
|
|
19489
|
+
}, {
|
|
19490
|
+
dataIndex: 'originalPrice',
|
|
19491
|
+
title: "\u539F\u4EF7",
|
|
19492
|
+
width: 100,
|
|
19493
|
+
align: 'center',
|
|
19494
|
+
ellipsis: true,
|
|
19495
|
+
render: renderTextEllipsis
|
|
19496
|
+
}, {
|
|
19497
|
+
dataIndex: 'giftType',
|
|
19498
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
19499
|
+
width: 100,
|
|
19500
|
+
align: 'center',
|
|
19501
|
+
ellipsis: true,
|
|
19502
|
+
render: renderTextEllipsis
|
|
19329
19503
|
}]
|
|
19330
19504
|
};
|
|
19331
19505
|
};
|
|
@@ -21817,11 +21991,17 @@ var systemOrderNoMap = {
|
|
|
21817
21991
|
GY_GOODS: 'code',
|
|
21818
21992
|
KM_GOODS: 'sid',
|
|
21819
21993
|
WDT_GOODS: 'tradeNo',
|
|
21994
|
+
WDT_AFTERSALE_GOODS: 'tid',
|
|
21820
21995
|
BS_E3_GOODS: 'orderSn',
|
|
21821
21996
|
JST_GOODS: 'oId',
|
|
21822
21997
|
WLN_GOODS: 'tradeNo',
|
|
21823
21998
|
JY_GOODS: 'tradeNo',
|
|
21824
|
-
JY_REISSUE_GOODS: 'tradeNo'
|
|
21999
|
+
JY_REISSUE_GOODS: 'tradeNo',
|
|
22000
|
+
KM_REISSUE_GOODS: 'sid',
|
|
22001
|
+
JST_REISSUE_GOODS: 'oId',
|
|
22002
|
+
GY_REISSUE_GOODS: 'code',
|
|
22003
|
+
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
22004
|
+
WDT_REISSUE_GOODS: 'tradeNo'
|
|
21825
22005
|
};
|
|
21826
22006
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21827
22007
|
var columns = _ref.columns,
|
|
@@ -21831,14 +22011,19 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21831
22011
|
onChangeSelectedKeys = _ref.onChangeSelectedKeys,
|
|
21832
22012
|
_ref$uniqueKey = _ref.uniqueKey,
|
|
21833
22013
|
uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey,
|
|
21834
|
-
_ref$
|
|
21835
|
-
|
|
22014
|
+
_ref$isShowSelect = _ref.isShowSelect,
|
|
22015
|
+
isShowSelect = _ref$isShowSelect === void 0 ? false : _ref$isShowSelect,
|
|
21836
22016
|
_ref$systemOrders = _ref.systemOrders,
|
|
21837
22017
|
systemOrders = _ref$systemOrders === void 0 ? [] : _ref$systemOrders,
|
|
21838
22018
|
_ref$selectedSystemOr = _ref.selectedSystemOrders,
|
|
22019
|
+
selectedSystemOrders = _ref$selectedSystemOr === void 0 ? [] : _ref$selectedSystemOr,
|
|
22020
|
+
_ref$validSystemOrder = _ref.validSystemOrder,
|
|
22021
|
+
validSystemOrder = _ref$validSystemOrder === void 0 ? false : _ref$validSystemOrder,
|
|
21839
22022
|
_ref$type = _ref.type,
|
|
21840
22023
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
21841
|
-
width = _ref.width
|
|
22024
|
+
width = _ref.width,
|
|
22025
|
+
_ref$isReissueType = _ref.isReissueType,
|
|
22026
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType;
|
|
21842
22027
|
var _useState = useState(),
|
|
21843
22028
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21844
22029
|
selectSystemNo = _useState2[0],
|
|
@@ -21848,6 +22033,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21848
22033
|
tradeGoodsVisible = _useState4[0],
|
|
21849
22034
|
setTradeGoodsVisible = _useState4[1];
|
|
21850
22035
|
var openModal = function openModal() {
|
|
22036
|
+
if (validSystemOrder) {
|
|
22037
|
+
message.warning('请选择补发系统单');
|
|
22038
|
+
return;
|
|
22039
|
+
}
|
|
21851
22040
|
if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
21852
22041
|
getDataSourceAsync().then(function () {
|
|
21853
22042
|
setTradeGoodsVisible(true);
|
|
@@ -21855,15 +22044,11 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21855
22044
|
} else {
|
|
21856
22045
|
setTradeGoodsVisible(true);
|
|
21857
22046
|
}
|
|
21858
|
-
//
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21862
|
-
// );
|
|
21863
|
-
// setSelectSystemNo(codeList || []);
|
|
21864
|
-
// }
|
|
22047
|
+
// 补发直接传入的是systemNo
|
|
22048
|
+
if (isShowSelect && isReissueType) {
|
|
22049
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
22050
|
+
}
|
|
21865
22051
|
};
|
|
21866
|
-
|
|
21867
22052
|
var closeModal = function closeModal() {
|
|
21868
22053
|
return setTradeGoodsVisible(false);
|
|
21869
22054
|
};
|
|
@@ -21879,10 +22064,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21879
22064
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21880
22065
|
}));
|
|
21881
22066
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21882
|
-
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21883
|
-
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21884
|
-
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21885
|
-
}));
|
|
21886
22067
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21887
22068
|
};
|
|
21888
22069
|
var rowSelection = {
|
|
@@ -21907,7 +22088,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21907
22088
|
style: {
|
|
21908
22089
|
maxWidth: '1000px'
|
|
21909
22090
|
}
|
|
21910
|
-
},
|
|
22091
|
+
}, isShowSelect && /*#__PURE__*/React.createElement(Row, {
|
|
21911
22092
|
style: {
|
|
21912
22093
|
marginBottom: '12px'
|
|
21913
22094
|
}
|
|
@@ -22011,13 +22192,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22011
22192
|
systemOrders = props.systemOrders,
|
|
22012
22193
|
selectedSystemOrders = props.selectedSystemOrders,
|
|
22013
22194
|
_props$templateDetail = props.templateDetail,
|
|
22014
|
-
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail
|
|
22195
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
22196
|
+
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
22197
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
|
|
22015
22198
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
22016
22199
|
// 监听聚水潭退货商品
|
|
22017
22200
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22018
22201
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22019
|
-
//
|
|
22020
|
-
var
|
|
22202
|
+
// 判断是否为是否展示系统单筛选项
|
|
22203
|
+
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;
|
|
22204
|
+
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;
|
|
22021
22205
|
var refModal = useRef();
|
|
22022
22206
|
console.debug('表格数据', value);
|
|
22023
22207
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22090,6 +22274,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22090
22274
|
var columns = [];
|
|
22091
22275
|
switch (type) {
|
|
22092
22276
|
case 'WDT_GOODS':
|
|
22277
|
+
case 'WDT_AFTERSALE_GOODS':
|
|
22093
22278
|
case 'WDT_RETURN_GOODS':
|
|
22094
22279
|
case 'WDT_EXCHANGE_GOODS':
|
|
22095
22280
|
case 'BS_E3_GOODS':
|
|
@@ -22293,6 +22478,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22293
22478
|
return params;
|
|
22294
22479
|
}, [tableSelect, selectedRowKeys, value]);
|
|
22295
22480
|
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
22481
|
+
var validSystemOrder = useMemo(function () {
|
|
22482
|
+
return ['GY_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'KM_REISSUE_GOODS'].includes(type) && !hasSelectedSystemOrder;
|
|
22483
|
+
}, [type, hasSelectedSystemOrder]);
|
|
22296
22484
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
|
|
22297
22485
|
style: {
|
|
22298
22486
|
float: 'right'
|
|
@@ -22301,7 +22489,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22301
22489
|
checked: isStrict,
|
|
22302
22490
|
onChange: handleCheckboxChange
|
|
22303
22491
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
22304
|
-
|
|
22492
|
+
validSystemOrder: validSystemOrder,
|
|
22493
|
+
isShowSelect: isShowSelect,
|
|
22305
22494
|
uniqueKey: uniqueKey,
|
|
22306
22495
|
type: type,
|
|
22307
22496
|
columns: orderModalColumns,
|
|
@@ -22311,7 +22500,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22311
22500
|
onChangeSelectedKeys: tradeGoods.selectedGoodsChange,
|
|
22312
22501
|
systemOrders: systemOrders,
|
|
22313
22502
|
selectedSystemOrders: selectedSystemOrders,
|
|
22314
|
-
width: width || 850
|
|
22503
|
+
width: width || 850,
|
|
22504
|
+
isReissueType: isReissueType
|
|
22315
22505
|
}), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
|
|
22316
22506
|
type: "link",
|
|
22317
22507
|
onClick: handleChangeGoods
|
|
@@ -23361,7 +23551,8 @@ var columnsMap = {
|
|
|
23361
23551
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
23362
23552
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23363
23553
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23364
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
23554
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
23555
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23365
23556
|
};
|
|
23366
23557
|
var rowKeyMap = {
|
|
23367
23558
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -23371,7 +23562,8 @@ var rowKeyMap = {
|
|
|
23371
23562
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
23372
23563
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23373
23564
|
JST_SYSTEM_ORDER: 'oId',
|
|
23374
|
-
JY_SYSTEM_ORDER: 'tradeNo'
|
|
23565
|
+
JY_SYSTEM_ORDER: 'tradeNo',
|
|
23566
|
+
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23375
23567
|
};
|
|
23376
23568
|
var index$2 = (function (props) {
|
|
23377
23569
|
var value = props.value,
|
|
@@ -23385,6 +23577,7 @@ var index$2 = (function (props) {
|
|
|
23385
23577
|
useEffect(function () {
|
|
23386
23578
|
var _value$orders, _value$showOrderInfo;
|
|
23387
23579
|
valueRef.current = value;
|
|
23580
|
+
console.log('value77777777', value);
|
|
23388
23581
|
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) {
|
|
23389
23582
|
onceRef.current = true;
|
|
23390
23583
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24851,10 +25044,29 @@ var componentMap$2 = {
|
|
|
24851
25044
|
exchangeDeleteGood: 'jyExchangeDeleteGood'
|
|
24852
25045
|
},
|
|
24853
25046
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25047
|
+
},
|
|
25048
|
+
WDT_AFTERSALE_GOODS: {
|
|
25049
|
+
type: 'wdtAftersale',
|
|
25050
|
+
key: 'wdtAftersaleGoods',
|
|
25051
|
+
name: '旺店通售后',
|
|
25052
|
+
orderNo: 'srcTids',
|
|
25053
|
+
goodDetailOrderNo: 'srcTids',
|
|
25054
|
+
showChangeBtn: false,
|
|
25055
|
+
eventNameMap: {
|
|
25056
|
+
// pubsub 事件
|
|
25057
|
+
type: 'wdtAftersaleType',
|
|
25058
|
+
updateGoodsHandle: updateWdtAftersaleGoodsHandle,
|
|
25059
|
+
selectListReturn: 'wdtAftersaleSelectListReturn',
|
|
25060
|
+
selectList: 'wdtAftersaleSelectList',
|
|
25061
|
+
reissueSelectList: 'wdtAftersaleReissueSelectList',
|
|
25062
|
+
reissueSelectListReturn: 'wdtAftersaleReissueSelectListReturn',
|
|
25063
|
+
reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
|
|
25064
|
+
},
|
|
25065
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
24854
25066
|
}
|
|
24855
25067
|
};
|
|
24856
25068
|
var CommonGoods = function CommonGoods(props) {
|
|
24857
|
-
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
|
|
25069
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
24858
25070
|
var value = props.value,
|
|
24859
25071
|
disabled = props.disabled,
|
|
24860
25072
|
onChange = props.onChange,
|
|
@@ -25085,6 +25297,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25085
25297
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25086
25298
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25087
25299
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25300
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
25088
25301
|
tradeGoods: {
|
|
25089
25302
|
originDataSource: getAllTradeGoodsDetails({
|
|
25090
25303
|
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
@@ -25433,11 +25646,12 @@ var typeMap$1 = {
|
|
|
25433
25646
|
money: 'orderPrice',
|
|
25434
25647
|
share: 'sharePrice'
|
|
25435
25648
|
},
|
|
25436
|
-
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25649
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton,
|
|
25650
|
+
isShowSelectTradeGoods: true
|
|
25437
25651
|
}
|
|
25438
25652
|
};
|
|
25439
25653
|
var wdtReissue = function wdtReissue(props) {
|
|
25440
|
-
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s6, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
25654
|
+
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s6, _typeMap$type28, _typeMap$type29, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s7, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
25441
25655
|
var value = props.value,
|
|
25442
25656
|
onChange = props.onChange,
|
|
25443
25657
|
_props$reasonList = props.reasonList,
|
|
@@ -25466,36 +25680,6 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25466
25680
|
}
|
|
25467
25681
|
return;
|
|
25468
25682
|
}, [value]);
|
|
25469
|
-
// useEffect(() => {
|
|
25470
|
-
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
25471
|
-
// if (systemOrderNo) {
|
|
25472
|
-
// if (['1'].includes(value?.[typeMap[type]?.typeName]?.[0])) {
|
|
25473
|
-
// onChange?.({
|
|
25474
|
-
// ...value,
|
|
25475
|
-
// [typeMap[type]?.key]: getGoodDetails({
|
|
25476
|
-
// mode: isStrict
|
|
25477
|
-
// })
|
|
25478
|
-
// })
|
|
25479
|
-
// }
|
|
25480
|
-
// }
|
|
25481
|
-
// return;
|
|
25482
|
-
// }, [value?.[typeMap[type]?.systemOrderNo]]);
|
|
25483
|
-
// const getWdtOrderList = async (orderNo: string) => {
|
|
25484
|
-
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
25485
|
-
// const orders = data?.trades || [];
|
|
25486
|
-
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
25487
|
-
// return { billNo, billType, billTag }
|
|
25488
|
-
// });
|
|
25489
|
-
// onChange({
|
|
25490
|
-
// ...value,
|
|
25491
|
-
// [typeMap[type]?.systemOrder]: {
|
|
25492
|
-
// ...value[typeMap[type]?.systemOrder],
|
|
25493
|
-
// showOrderInfo,
|
|
25494
|
-
// orders,
|
|
25495
|
-
// },
|
|
25496
|
-
// });
|
|
25497
|
-
// })
|
|
25498
|
-
// };
|
|
25499
25683
|
var getOrderList = /*#__PURE__*/function () {
|
|
25500
25684
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
25501
25685
|
var _typeMap$type5;
|
|
@@ -25555,17 +25739,24 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25555
25739
|
}))));
|
|
25556
25740
|
};
|
|
25557
25741
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25558
|
-
var _typeMap$type14, _typeMap$type15
|
|
25742
|
+
var _typeMap$type14, _typeMap$type15;
|
|
25559
25743
|
var mode = _ref3.mode,
|
|
25560
|
-
sysOrderNo = _ref3.sysOrderNo
|
|
25744
|
+
sysOrderNo = _ref3.sysOrderNo,
|
|
25745
|
+
_ref3$isAllOrders = _ref3.isAllOrders,
|
|
25746
|
+
isAllOrders = _ref3$isAllOrders === void 0 ? false : _ref3$isAllOrders;
|
|
25561
25747
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder];
|
|
25562
25748
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo];
|
|
25563
25749
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
25564
25750
|
return order.tradeNo === systemOrderNo;
|
|
25565
25751
|
});
|
|
25566
|
-
var
|
|
25752
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
25753
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25754
|
+
var _order$goodDetails;
|
|
25755
|
+
return order === null || order === void 0 ? void 0 : (_order$goodDetails = order.goodDetails) === null || _order$goodDetails === void 0 ? void 0 : _order$goodDetails.length;
|
|
25756
|
+
});
|
|
25757
|
+
var goodDetails = hasGoodDetails ? updateWdtGoodsHandle([order]) : [];
|
|
25567
25758
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25568
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
25759
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25569
25760
|
return !orderNo || goodItem.srcTid === orderNo;
|
|
25570
25761
|
}) : goodDetails;
|
|
25571
25762
|
};
|
|
@@ -25668,7 +25859,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25668
25859
|
type: type,
|
|
25669
25860
|
disabled: disabled,
|
|
25670
25861
|
canUpdateNumber: showChangeBtn,
|
|
25671
|
-
|
|
25862
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
25863
|
+
// showChangeBtn={showChangeBtn}
|
|
25672
25864
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25673
25865
|
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
25674
25866
|
onChange: function onChange(val) {
|
|
@@ -25677,9 +25869,13 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25677
25869
|
onModeChange: handleModeChange,
|
|
25678
25870
|
showModeBtn: showModeBtn,
|
|
25679
25871
|
isStrict: isStrict,
|
|
25872
|
+
isShowSelectTradeGoods: typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type31 = typeMap$1[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.isShowSelectTradeGoods,
|
|
25873
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type32 = typeMap$1[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders,
|
|
25874
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type33 = typeMap$1[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrderNo)]] : [],
|
|
25680
25875
|
tradeGoods: {
|
|
25681
25876
|
originDataSource: getGoodDetails({
|
|
25682
|
-
mode: isStrict
|
|
25877
|
+
mode: isStrict,
|
|
25878
|
+
isAllOrders: typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type34 = typeMap$1[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.isShowSelectTradeGoods
|
|
25683
25879
|
}),
|
|
25684
25880
|
selectedGoodsChange: selectedGoodsChange
|
|
25685
25881
|
}
|
|
@@ -25703,7 +25899,8 @@ var typeMap$2 = {
|
|
|
25703
25899
|
outerOiIdKey: '',
|
|
25704
25900
|
goodDetailsKey: 'items',
|
|
25705
25901
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
25706
|
-
uniqueKey: 'uuid'
|
|
25902
|
+
uniqueKey: 'uuid',
|
|
25903
|
+
isShowSelectTradeGoods: true
|
|
25707
25904
|
},
|
|
25708
25905
|
JST_RETURN_GOODS: {
|
|
25709
25906
|
compType: '退货',
|
|
@@ -25742,7 +25939,8 @@ var typeMap$2 = {
|
|
|
25742
25939
|
oIdKey: 'billNo',
|
|
25743
25940
|
outerOiIdKey: '',
|
|
25744
25941
|
goodDetailsKey: 'subOrders',
|
|
25745
|
-
uniqueKey: 'id'
|
|
25942
|
+
uniqueKey: 'id',
|
|
25943
|
+
isShowSelectTradeGoods: true
|
|
25746
25944
|
},
|
|
25747
25945
|
JY_REISSUE_GOODS: {
|
|
25748
25946
|
compType: '补发',
|
|
@@ -25761,7 +25959,7 @@ var typeMap$2 = {
|
|
|
25761
25959
|
}
|
|
25762
25960
|
};
|
|
25763
25961
|
var PublicReissue = function PublicReissue(props) {
|
|
25764
|
-
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50,
|
|
25962
|
+
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _value$typeMap$type$s9, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54;
|
|
25765
25963
|
var value = props.value,
|
|
25766
25964
|
onChange = props.onChange,
|
|
25767
25965
|
_props$reasonList = props.reasonList,
|
|
@@ -26030,25 +26228,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26030
26228
|
type: type,
|
|
26031
26229
|
disabled: disabled,
|
|
26032
26230
|
canUpdateNumber: showChangeBtn,
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
|
|
26231
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
26232
|
+
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26233
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.alwaysShowChooseErpGoodsBtn,
|
|
26234
|
+
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26036
26235
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26037
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26236
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.key)],
|
|
26038
26237
|
onChange: function onChange(val) {
|
|
26039
26238
|
return changeGoodHandle(val);
|
|
26040
26239
|
},
|
|
26041
26240
|
onModeChange: handleModeChange,
|
|
26042
26241
|
showModeBtn: false,
|
|
26043
26242
|
isStrict: isStrict,
|
|
26044
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26045
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26243
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.isShowSelectTradeGoods,
|
|
26244
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
26245
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.systemOrderNo)]] : [],
|
|
26046
26246
|
tradeGoods: {
|
|
26047
26247
|
originDataSource: getGoodDetails({
|
|
26048
26248
|
mode: isStrict,
|
|
26049
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26249
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.isShowSelectTradeGoods
|
|
26050
26250
|
}),
|
|
26051
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26251
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.uniqueKey) || 'uuid',
|
|
26052
26252
|
selectedGoodsChange: selectedGoodsChange
|
|
26053
26253
|
}
|
|
26054
26254
|
})));
|
|
@@ -26836,11 +27036,12 @@ var typeMap$3 = {
|
|
|
26836
27036
|
typeName: 'bsE3ReissueType',
|
|
26837
27037
|
systemOrder: 'bsE3SystemOrder',
|
|
26838
27038
|
systemOrderNo: 'bsE3SystemOrderNo',
|
|
26839
|
-
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
27039
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton,
|
|
27040
|
+
isShowSelectTradeGoods: true
|
|
26840
27041
|
}
|
|
26841
27042
|
};
|
|
26842
27043
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
26843
|
-
var _typeMap$type22, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s6, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
27044
|
+
var _typeMap$type22, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s6, _typeMap$type27, _typeMap$type28, _typeMap$type29, _typeMap$type30, _value$typeMap$type$s7, _typeMap$type31, _typeMap$type32, _typeMap$type33;
|
|
26844
27045
|
var value = props.value,
|
|
26845
27046
|
onChange = props.onChange,
|
|
26846
27047
|
_props$reasonList = props.reasonList,
|
|
@@ -26942,17 +27143,24 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
26942
27143
|
}))));
|
|
26943
27144
|
};
|
|
26944
27145
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26945
|
-
var _typeMap$type13, _typeMap$type14
|
|
27146
|
+
var _typeMap$type13, _typeMap$type14;
|
|
26946
27147
|
var mode = _ref4.mode,
|
|
26947
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
27148
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
27149
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
27150
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
26948
27151
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type13 = typeMap$3[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder];
|
|
26949
27152
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$3[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrderNo];
|
|
26950
27153
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
26951
27154
|
return order.orderSn === systemOrderNo;
|
|
26952
27155
|
});
|
|
26953
|
-
var
|
|
27156
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27157
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27158
|
+
var _order$orderDetailGet;
|
|
27159
|
+
return order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length;
|
|
27160
|
+
});
|
|
27161
|
+
var goodDetails = hasGoodDetails ? updateBsE3GoodsHandle([order], 'sharePrice') : [];
|
|
26954
27162
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26955
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27163
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26956
27164
|
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
26957
27165
|
}) : goodDetails;
|
|
26958
27166
|
};
|
|
@@ -27053,7 +27261,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27053
27261
|
type: type,
|
|
27054
27262
|
disabled: disabled,
|
|
27055
27263
|
canUpdateNumber: showChangeBtn,
|
|
27056
|
-
|
|
27264
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27265
|
+
// showChangeBtn={showChangeBtn}
|
|
27057
27266
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27058
27267
|
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type29 = typeMap$3[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
|
|
27059
27268
|
onChange: function onChange(val) {
|
|
@@ -27062,9 +27271,13 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27062
27271
|
onModeChange: handleModeChange,
|
|
27063
27272
|
showModeBtn: false,
|
|
27064
27273
|
isStrict: isStrict,
|
|
27274
|
+
isShowSelectTradeGoods: typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type30 = typeMap$3[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.isShowSelectTradeGoods,
|
|
27275
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type31 = typeMap$3[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders,
|
|
27276
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type32 = typeMap$3[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo)]] : [],
|
|
27065
27277
|
tradeGoods: {
|
|
27066
27278
|
originDataSource: getGoodDetails({
|
|
27067
|
-
mode: isStrict
|
|
27279
|
+
mode: isStrict,
|
|
27280
|
+
isAllOrders: typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type33 = typeMap$3[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.isShowSelectTradeGoods
|
|
27068
27281
|
}),
|
|
27069
27282
|
selectedGoodsChange: selectedGoodsChange
|
|
27070
27283
|
}
|
|
@@ -27093,11 +27306,12 @@ var typeMap$4 = {
|
|
|
27093
27306
|
money: 'orderPrice',
|
|
27094
27307
|
share: 'sharePrice'
|
|
27095
27308
|
},
|
|
27096
|
-
getOrderList: gyUtils.getGyOrderListSingleton
|
|
27309
|
+
getOrderList: gyUtils.getGyOrderListSingleton,
|
|
27310
|
+
isShowSelectTradeGoods: true
|
|
27097
27311
|
}
|
|
27098
27312
|
};
|
|
27099
27313
|
var GyReissue = function GyReissue(props) {
|
|
27100
|
-
var _typeMap$
|
|
27314
|
+
var _typeMap$type32, _typeMap$type33, _typeMap$type34, _systemOrder$orders, _typeMap$type35, _value$typeMap$type$s9, _typeMap$type36, _typeMap$type37, _typeMap$type38, _typeMap$type39, _value$typeMap$type$s10, _typeMap$type40, _typeMap$type41, _typeMap$type42;
|
|
27101
27315
|
var value = props.value,
|
|
27102
27316
|
onChange = props.onChange,
|
|
27103
27317
|
_props$reasonList = props.reasonList,
|
|
@@ -27243,17 +27457,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27243
27457
|
}))));
|
|
27244
27458
|
};
|
|
27245
27459
|
var getGoodDetails = function getGoodDetails(_ref7) {
|
|
27246
|
-
var _ref8, _typeMap$type19, _ref9, _typeMap$type20
|
|
27460
|
+
var _ref8, _typeMap$type19, _ref9, _typeMap$type20;
|
|
27247
27461
|
var mode = _ref7.mode,
|
|
27248
|
-
sysOrderNo = _ref7.sysOrderNo
|
|
27462
|
+
sysOrderNo = _ref7.sysOrderNo,
|
|
27463
|
+
_ref7$isAllOrders = _ref7.isAllOrders,
|
|
27464
|
+
isAllOrders = _ref7$isAllOrders === void 0 ? false : _ref7$isAllOrders;
|
|
27249
27465
|
var systemOrder = (_ref8 = valueRef.current || {}) === null || _ref8 === void 0 ? void 0 : _ref8[(_typeMap$type19 = typeMap$4[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrder];
|
|
27250
27466
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : (_ref9 = valueRef.current || {}) === null || _ref9 === void 0 ? void 0 : _ref9[(_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo];
|
|
27251
27467
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
27252
27468
|
return order.code === systemOrderNo;
|
|
27253
27469
|
});
|
|
27254
|
-
var
|
|
27470
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27471
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27472
|
+
var _order$details;
|
|
27473
|
+
return order === null || order === void 0 ? void 0 : (_order$details = order.details) === null || _order$details === void 0 ? void 0 : _order$details.length;
|
|
27474
|
+
});
|
|
27475
|
+
var goodDetails = hasGoodDetails ? updateGyGoodsHandle(orders) : [];
|
|
27255
27476
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27256
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27477
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27257
27478
|
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
27258
27479
|
}) : goodDetails;
|
|
27259
27480
|
};
|
|
@@ -27290,25 +27511,26 @@ var GyReissue = function GyReissue(props) {
|
|
|
27290
27511
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27291
27512
|
};
|
|
27292
27513
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
27293
|
-
var _ref12, _typeMap$
|
|
27514
|
+
var _typeMap$type29, _ref12, _typeMap$type30, _typeMap$type31, _uniqBy;
|
|
27294
27515
|
pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
27295
27516
|
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
27296
27517
|
// 原订单商品
|
|
27297
27518
|
var originTradeGoodList = getGoodDetails({
|
|
27298
|
-
mode: isStrict
|
|
27519
|
+
mode: isStrict,
|
|
27520
|
+
isAllOrders: typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.isShowSelectTradeGoods
|
|
27299
27521
|
}) || [];
|
|
27300
27522
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27301
|
-
var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27302
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27523
|
+
var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)]) || [];
|
|
27524
|
+
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
27303
27525
|
return skuList.includes(item.uuid);
|
|
27304
27526
|
});
|
|
27305
27527
|
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
27306
27528
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27307
27529
|
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
27308
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27530
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)], isStrict]);
|
|
27309
27531
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
27310
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27311
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27532
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type33 = typeMap$4[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrder];
|
|
27533
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
|
|
27312
27534
|
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
27313
27535
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
27314
27536
|
gutter: 8,
|
|
@@ -27328,12 +27550,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
27328
27550
|
},
|
|
27329
27551
|
disabled: disabled,
|
|
27330
27552
|
allowClear: false,
|
|
27331
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27553
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type35 = typeMap$4[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo)],
|
|
27332
27554
|
onChange: function onChange(val) {
|
|
27333
27555
|
return changeSystemOrderHandle(val);
|
|
27334
27556
|
},
|
|
27335
27557
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
27336
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
27558
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type36 = typeMap$4[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.showOrderInfo) || []).map(function (item) {
|
|
27337
27559
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
27338
27560
|
className: styles$6.systemNoDisabled,
|
|
27339
27561
|
key: item.billNo,
|
|
@@ -27357,7 +27579,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27357
27579
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27358
27580
|
allowClear: false,
|
|
27359
27581
|
options: reasonList,
|
|
27360
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27582
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type37 = typeMap$4[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.typeName)],
|
|
27361
27583
|
onChange: function onChange(val) {
|
|
27362
27584
|
return changeTypeHandle(val);
|
|
27363
27585
|
}
|
|
@@ -27367,19 +27589,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27367
27589
|
type: type,
|
|
27368
27590
|
disabled: disabled,
|
|
27369
27591
|
canUpdateNumber: showChangeBtn,
|
|
27370
|
-
|
|
27371
|
-
|
|
27372
|
-
alwaysShowChooseErpGoodsBtn:
|
|
27592
|
+
// showChangeBtn={showChangeBtn}
|
|
27593
|
+
// showErpGoodsBtn={showErpGoodsBtn}
|
|
27594
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27595
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27373
27596
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27374
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27597
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type38 = typeMap$4[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)],
|
|
27375
27598
|
onChange: function onChange(val) {
|
|
27376
27599
|
return changeGoodHandle(val);
|
|
27377
27600
|
},
|
|
27378
27601
|
onModeChange: handleModeChange,
|
|
27379
27602
|
isStrict: isStrict,
|
|
27603
|
+
isShowSelectTradeGoods: typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type39 = typeMap$4[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.isShowSelectTradeGoods,
|
|
27604
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s10 = value[(_typeMap$type40 = typeMap$4[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrder]) === null || _value$typeMap$type$s10 === void 0 ? void 0 : _value$typeMap$type$s10.orders,
|
|
27605
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type41 = typeMap$4[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrderNo)]] : [],
|
|
27380
27606
|
tradeGoods: {
|
|
27381
27607
|
originDataSource: getGoodDetails({
|
|
27382
|
-
mode: isStrict
|
|
27608
|
+
mode: isStrict,
|
|
27609
|
+
isAllOrders: typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type42 = typeMap$4[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.isShowSelectTradeGoods
|
|
27383
27610
|
}),
|
|
27384
27611
|
selectedGoodsChange: selectedGoodsChange
|
|
27385
27612
|
}
|
|
@@ -28317,7 +28544,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28317
28544
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28318
28545
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28319
28546
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28320
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
28547
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
28548
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28321
28549
|
};
|
|
28322
28550
|
|
|
28323
28551
|
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, 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 };
|