@kmkf-fe-packages/basic-components 2.2.29 → 2.2.31-beta.0
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
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: 'wdtReturnBillSelectIds',
|
|
8115
|
+
order: 'wdtReturnBillShowOrder'
|
|
8111
8116
|
}
|
|
8112
8117
|
};
|
|
8113
8118
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8680,6 +8685,52 @@ 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
|
+
};
|
|
8715
|
+
var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
|
|
8716
|
+
return function (getValue) {
|
|
8717
|
+
return function (nex) {
|
|
8718
|
+
var _values = {
|
|
8719
|
+
jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
|
|
8720
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8721
|
+
};
|
|
8722
|
+
var orderNo = '';
|
|
8723
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8724
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8725
|
+
});
|
|
8726
|
+
if (tradeId) {
|
|
8727
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8728
|
+
}
|
|
8729
|
+
_values.orderNo = orderNo;
|
|
8730
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8731
|
+
};
|
|
8732
|
+
};
|
|
8733
|
+
};
|
|
8683
8734
|
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8684
8735
|
return function (getValue) {
|
|
8685
8736
|
return function (nex, config) {
|
|
@@ -8912,11 +8963,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8912
8963
|
no: 'jstSystemOrderNo',
|
|
8913
8964
|
ids: 'jstSystemSelectIds',
|
|
8914
8965
|
order: 'jstSystemShowOrder'
|
|
8966
|
+
},
|
|
8967
|
+
WDT_RETURN_BILL_NO: {
|
|
8968
|
+
no: 'wdtReturnBillNo',
|
|
8969
|
+
ids: 'wdtReturnBillSelectIds',
|
|
8970
|
+
order: 'wdtReturnBillShowOrder'
|
|
8915
8971
|
}
|
|
8916
8972
|
};
|
|
8917
8973
|
return _defineProperty({}, nex.uniqueKey, {
|
|
8918
8974
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8919
|
-
orders: [],
|
|
8975
|
+
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
8920
8976
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8921
8977
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8922
8978
|
});
|
|
@@ -9152,14 +9208,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9152
9208
|
};
|
|
9153
9209
|
var processLabel = function processLabel(getValue) {
|
|
9154
9210
|
return function (nex, config) {
|
|
9155
|
-
var
|
|
9156
|
-
return
|
|
9211
|
+
var _ref74;
|
|
9212
|
+
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;
|
|
9157
9213
|
};
|
|
9158
9214
|
};
|
|
9159
9215
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9160
9216
|
return function (nex, config) {
|
|
9161
|
-
var
|
|
9162
|
-
return
|
|
9217
|
+
var _ref75;
|
|
9218
|
+
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;
|
|
9163
9219
|
};
|
|
9164
9220
|
};
|
|
9165
9221
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9277,6 +9333,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9277
9333
|
BS_POSTING: processBsPosting,
|
|
9278
9334
|
BS_GOODS: processBsGoods,
|
|
9279
9335
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9336
|
+
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9337
|
+
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9280
9338
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9281
9339
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9282
9340
|
KM_GOODS: processKmGoods(templateColumns),
|
|
@@ -9293,6 +9351,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9293
9351
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9294
9352
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9295
9353
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9354
|
+
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9296
9355
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9297
9356
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9298
9357
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9907,8 +9966,8 @@ var SubForm = function SubForm(props) {
|
|
|
9907
9966
|
tableHeader = props.tableHeader,
|
|
9908
9967
|
disabled = props.disabled,
|
|
9909
9968
|
platform = props.platform,
|
|
9910
|
-
|
|
9911
|
-
|
|
9969
|
+
maxCount = props.maxCount,
|
|
9970
|
+
manual = props.manual;
|
|
9912
9971
|
var ref = useRef(null);
|
|
9913
9972
|
var isRequest = useRef(false);
|
|
9914
9973
|
var _useState = useState(false),
|
|
@@ -12885,6 +12944,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
12885
12944
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
12886
12945
|
})) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
|
|
12887
12946
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
12947
|
+
var senderMobileLabel = useMemo(function () {
|
|
12948
|
+
return (value === null || value === void 0 ? void 0 : value.interceptCompany) === 'ZTO' ? '发件人/收件人手机号' : '发件人手机号';
|
|
12949
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
12888
12950
|
var showKcode = useMemo(function () {
|
|
12889
12951
|
var isShow = false;
|
|
12890
12952
|
if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
|
|
@@ -13119,14 +13181,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13119
13181
|
return option.label.includes(input);
|
|
13120
13182
|
}
|
|
13121
13183
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13122
|
-
label:
|
|
13184
|
+
label: senderMobileLabel,
|
|
13123
13185
|
// required={true}
|
|
13124
13186
|
key: 'interceptSenderMobile',
|
|
13125
13187
|
hidden: !showSenderMobile
|
|
13126
13188
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
13127
13189
|
value: value === null || value === void 0 ? void 0 : value.interceptSenderMobile,
|
|
13128
13190
|
disabled: disabled || isEdit,
|
|
13129
|
-
placeholder:
|
|
13191
|
+
placeholder: senderMobileLabel,
|
|
13130
13192
|
onChange: function onChange(e) {
|
|
13131
13193
|
return changeHandle(e.target.value, 'interceptSenderMobile');
|
|
13132
13194
|
}
|
|
@@ -13347,7 +13409,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13347
13409
|
if (disabled) {
|
|
13348
13410
|
return;
|
|
13349
13411
|
}
|
|
13350
|
-
if (
|
|
13412
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13351
13413
|
return;
|
|
13352
13414
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13353
13415
|
return;
|
|
@@ -13428,13 +13490,13 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13428
13490
|
});
|
|
13429
13491
|
};
|
|
13430
13492
|
//sf手机号
|
|
13431
|
-
var LogisticsPhone = function LogisticsPhone() {
|
|
13493
|
+
var LogisticsPhone = function LogisticsPhone(company) {
|
|
13432
13494
|
return /*#__PURE__*/React.createElement(Input, {
|
|
13433
13495
|
disabled: disabled,
|
|
13434
13496
|
style: {
|
|
13435
13497
|
marginTop: '8px'
|
|
13436
13498
|
},
|
|
13437
|
-
placeholder:
|
|
13499
|
+
placeholder: company === 'ZTO' ? '发件人/收件人手机号' : '手机号',
|
|
13438
13500
|
onChange: function onChange(e) {
|
|
13439
13501
|
return handleInputChange(e, 'trajectoryPhone');
|
|
13440
13502
|
},
|
|
@@ -13483,7 +13545,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13483
13545
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13484
13546
|
});
|
|
13485
13547
|
};
|
|
13486
|
-
return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), (value === null || value === void 0 ? void 0 : value.trajectoryCompany) ===
|
|
13548
|
+
return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO', 'KYE'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
|
|
13487
13549
|
};
|
|
13488
13550
|
|
|
13489
13551
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13533,7 +13595,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13533
13595
|
initValue = _ref.initValue, value = _ref.value;
|
|
13534
13596
|
hasSnapshot = showField && showField.includes('snapshot');
|
|
13535
13597
|
initList = initValue.map(function (item) {
|
|
13536
|
-
if (item.trajectoryCompany
|
|
13598
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13537
13599
|
return {
|
|
13538
13600
|
trajectoryCompany: item.trajectoryCompany,
|
|
13539
13601
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -13547,7 +13609,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13547
13609
|
}
|
|
13548
13610
|
});
|
|
13549
13611
|
valueList = value.map(function (item) {
|
|
13550
|
-
if (item.trajectoryCompany
|
|
13612
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13551
13613
|
return {
|
|
13552
13614
|
trajectoryCompany: item.trajectoryCompany,
|
|
13553
13615
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -13561,7 +13623,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13561
13623
|
}
|
|
13562
13624
|
});
|
|
13563
13625
|
changeList = changeValue.map(function (item) {
|
|
13564
|
-
if (item.trajectoryCompany
|
|
13626
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13565
13627
|
return {
|
|
13566
13628
|
trajectoryCompany: item.trajectoryCompany,
|
|
13567
13629
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -15855,6 +15917,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
15855
15917
|
var current = _ref.current,
|
|
15856
15918
|
pageSize = _ref.pageSize;
|
|
15857
15919
|
var data = {
|
|
15920
|
+
goodShortName: formData.goodShortName || null,
|
|
15858
15921
|
goodNo: formData.goodNo || null,
|
|
15859
15922
|
goodName: formData.goodName || null,
|
|
15860
15923
|
skuCode: formData.skuCode || null,
|
|
@@ -18832,7 +18895,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18832
18895
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18833
18896
|
width: 180,
|
|
18834
18897
|
align: 'center',
|
|
18835
|
-
ellipsis: true
|
|
18898
|
+
ellipsis: true,
|
|
18899
|
+
render: renderTextEllipsis
|
|
18836
18900
|
}, {
|
|
18837
18901
|
dataIndex: 'brandName',
|
|
18838
18902
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -18952,7 +19016,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18952
19016
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18953
19017
|
width: 180,
|
|
18954
19018
|
align: 'center',
|
|
18955
|
-
ellipsis: true
|
|
19019
|
+
ellipsis: true,
|
|
19020
|
+
render: renderTextEllipsis
|
|
18956
19021
|
}, {
|
|
18957
19022
|
dataIndex: 'brandName',
|
|
18958
19023
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19076,7 +19141,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19076
19141
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19077
19142
|
width: 180,
|
|
19078
19143
|
align: 'center',
|
|
19079
|
-
ellipsis: true
|
|
19144
|
+
ellipsis: true,
|
|
19145
|
+
render: renderTextEllipsis
|
|
19080
19146
|
}, {
|
|
19081
19147
|
dataIndex: 'brandName',
|
|
19082
19148
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19239,7 +19305,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19239
19305
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19240
19306
|
width: 180,
|
|
19241
19307
|
align: 'center',
|
|
19242
|
-
ellipsis: true
|
|
19308
|
+
ellipsis: true,
|
|
19309
|
+
render: renderTextEllipsis
|
|
19243
19310
|
}, {
|
|
19244
19311
|
dataIndex: 'brandName',
|
|
19245
19312
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19326,6 +19393,141 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19326
19393
|
}
|
|
19327
19394
|
}) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
19328
19395
|
}
|
|
19396
|
+
}],
|
|
19397
|
+
// 旺店通售后商品信息
|
|
19398
|
+
WDT_AFTERSALE_GOODS: [{
|
|
19399
|
+
dataIndex: 'oid',
|
|
19400
|
+
title: "\u539F\u59CB\u5B50\u5355\u53F7",
|
|
19401
|
+
width: 200,
|
|
19402
|
+
align: 'center',
|
|
19403
|
+
ellipsis: true,
|
|
19404
|
+
render: renderTextEllipsis
|
|
19405
|
+
}, {
|
|
19406
|
+
dataIndex: 'goodsName',
|
|
19407
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
19408
|
+
width: 250,
|
|
19409
|
+
align: 'center',
|
|
19410
|
+
ellipsis: true,
|
|
19411
|
+
render: renderTextEllipsis
|
|
19412
|
+
}, {
|
|
19413
|
+
dataIndex: 'goodsNo',
|
|
19414
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
19415
|
+
width: 150,
|
|
19416
|
+
align: 'center',
|
|
19417
|
+
ellipsis: true,
|
|
19418
|
+
render: renderTextEllipsis
|
|
19419
|
+
}, {
|
|
19420
|
+
dataIndex: 'specName',
|
|
19421
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
19422
|
+
width: 150,
|
|
19423
|
+
align: 'center',
|
|
19424
|
+
ellipsis: true,
|
|
19425
|
+
render: renderTextEllipsis
|
|
19426
|
+
}, {
|
|
19427
|
+
dataIndex: 'specNo',
|
|
19428
|
+
title: "\u5546\u5BB6\u7F16\u7801",
|
|
19429
|
+
width: 200,
|
|
19430
|
+
align: 'center',
|
|
19431
|
+
ellipsis: true,
|
|
19432
|
+
render: renderTextEllipsis
|
|
19433
|
+
}, {
|
|
19434
|
+
dataIndex: 'specCode',
|
|
19435
|
+
title: "\u89C4\u683C\u7F16\u53F7",
|
|
19436
|
+
width: 150,
|
|
19437
|
+
align: 'center',
|
|
19438
|
+
ellipsis: true,
|
|
19439
|
+
render: renderTextEllipsis
|
|
19440
|
+
}, {
|
|
19441
|
+
dataIndex: 'barcode',
|
|
19442
|
+
title: "\u6761\u7801",
|
|
19443
|
+
width: 150,
|
|
19444
|
+
align: 'center',
|
|
19445
|
+
ellipsis: true,
|
|
19446
|
+
render: renderTextEllipsis
|
|
19447
|
+
}, {
|
|
19448
|
+
dataIndex: 'apiGoodsName',
|
|
19449
|
+
title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
|
|
19450
|
+
width: 250,
|
|
19451
|
+
align: 'center',
|
|
19452
|
+
ellipsis: true,
|
|
19453
|
+
render: renderTextEllipsis
|
|
19454
|
+
}, {
|
|
19455
|
+
dataIndex: 'apiSpecName',
|
|
19456
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
19457
|
+
width: 250,
|
|
19458
|
+
align: 'center',
|
|
19459
|
+
ellipsis: true,
|
|
19460
|
+
render: renderTextEllipsis
|
|
19461
|
+
}, {
|
|
19462
|
+
dataIndex: 'suiteName',
|
|
19463
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
19464
|
+
width: 150,
|
|
19465
|
+
align: 'center',
|
|
19466
|
+
ellipsis: true,
|
|
19467
|
+
render: renderTextEllipsis
|
|
19468
|
+
}, {
|
|
19469
|
+
dataIndex: 'suiteNo',
|
|
19470
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
19471
|
+
width: 150,
|
|
19472
|
+
align: 'center',
|
|
19473
|
+
ellipsis: true,
|
|
19474
|
+
render: renderTextEllipsis
|
|
19475
|
+
}, {
|
|
19476
|
+
dataIndex: 'stockinNum',
|
|
19477
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
19478
|
+
width: 150,
|
|
19479
|
+
align: 'center',
|
|
19480
|
+
ellipsis: true,
|
|
19481
|
+
render: renderTextEllipsis
|
|
19482
|
+
}, {
|
|
19483
|
+
dataIndex: 'refundNum',
|
|
19484
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
19485
|
+
width: 150,
|
|
19486
|
+
align: 'center',
|
|
19487
|
+
ellipsis: true,
|
|
19488
|
+
render: renderTextEllipsis
|
|
19489
|
+
}, {
|
|
19490
|
+
dataIndex: 'totalAmount',
|
|
19491
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
19492
|
+
width: 150,
|
|
19493
|
+
align: 'center',
|
|
19494
|
+
ellipsis: true,
|
|
19495
|
+
render: renderTextEllipsis
|
|
19496
|
+
}, {
|
|
19497
|
+
dataIndex: 'refundAmount',
|
|
19498
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
19499
|
+
width: 150,
|
|
19500
|
+
align: 'center',
|
|
19501
|
+
ellipsis: true,
|
|
19502
|
+
render: renderTextEllipsis
|
|
19503
|
+
}, {
|
|
19504
|
+
dataIndex: 'orderNum',
|
|
19505
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
19506
|
+
width: 150,
|
|
19507
|
+
align: 'center',
|
|
19508
|
+
ellipsis: true,
|
|
19509
|
+
render: renderTextEllipsis
|
|
19510
|
+
}, {
|
|
19511
|
+
dataIndex: 'price',
|
|
19512
|
+
title: "\u4EF7\u683C",
|
|
19513
|
+
width: 150,
|
|
19514
|
+
align: 'center',
|
|
19515
|
+
ellipsis: true,
|
|
19516
|
+
render: renderTextEllipsis
|
|
19517
|
+
}, {
|
|
19518
|
+
dataIndex: 'originalPrice',
|
|
19519
|
+
title: "\u539F\u4EF7",
|
|
19520
|
+
width: 150,
|
|
19521
|
+
align: 'center',
|
|
19522
|
+
ellipsis: true,
|
|
19523
|
+
render: renderTextEllipsis
|
|
19524
|
+
}, {
|
|
19525
|
+
dataIndex: 'giftType',
|
|
19526
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
19527
|
+
width: 150,
|
|
19528
|
+
align: 'center',
|
|
19529
|
+
ellipsis: true,
|
|
19530
|
+
render: renderTextEllipsis
|
|
19329
19531
|
}]
|
|
19330
19532
|
};
|
|
19331
19533
|
};
|
|
@@ -20008,7 +20210,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20008
20210
|
ellipsis: true,
|
|
20009
20211
|
align: 'center',
|
|
20010
20212
|
render: function render(val, record, index) {
|
|
20011
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20213
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20012
20214
|
}
|
|
20013
20215
|
}, {
|
|
20014
20216
|
dataIndex: 'batchId',
|
|
@@ -20296,7 +20498,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20296
20498
|
dataIndex: 'saleAmount',
|
|
20297
20499
|
title: '总金额',
|
|
20298
20500
|
render: function render(val, record) {
|
|
20299
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20501
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20300
20502
|
}
|
|
20301
20503
|
}, {
|
|
20302
20504
|
dataIndex: 'batchId',
|
|
@@ -20411,7 +20613,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20411
20613
|
dataIndex: 'saleAmount',
|
|
20412
20614
|
title: '总金额',
|
|
20413
20615
|
render: function render(val, record) {
|
|
20414
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20616
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20415
20617
|
}
|
|
20416
20618
|
}, {
|
|
20417
20619
|
dataIndex: 'isGift',
|
|
@@ -20446,7 +20648,161 @@ var getColumns$5 = function getColumns() {
|
|
|
20446
20648
|
}
|
|
20447
20649
|
}) : renderTextEllipsis(val);
|
|
20448
20650
|
}
|
|
20449
|
-
}].map(fillAttrs)
|
|
20651
|
+
}].map(fillAttrs),
|
|
20652
|
+
// jst售后商品信息
|
|
20653
|
+
JST_AFTERSALE_GOODS: [{
|
|
20654
|
+
dataIndex: 'asId',
|
|
20655
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20656
|
+
width: 200,
|
|
20657
|
+
align: 'center',
|
|
20658
|
+
ellipsis: true,
|
|
20659
|
+
render: renderTextEllipsis
|
|
20660
|
+
}, {
|
|
20661
|
+
dataIndex: 'asiId',
|
|
20662
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
20663
|
+
width: 200,
|
|
20664
|
+
align: 'center',
|
|
20665
|
+
ellipsis: true,
|
|
20666
|
+
render: renderTextEllipsis
|
|
20667
|
+
}, {
|
|
20668
|
+
dataIndex: 'outerOiId',
|
|
20669
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
20670
|
+
width: 200,
|
|
20671
|
+
align: 'center',
|
|
20672
|
+
ellipsis: true,
|
|
20673
|
+
render: renderTextEllipsis
|
|
20674
|
+
}, {
|
|
20675
|
+
dataIndex: 'pic',
|
|
20676
|
+
title: "\u56FE\u7247",
|
|
20677
|
+
width: 100,
|
|
20678
|
+
align: 'center',
|
|
20679
|
+
render: function render(val) {
|
|
20680
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
20681
|
+
width: 30,
|
|
20682
|
+
src: val
|
|
20683
|
+
});
|
|
20684
|
+
},
|
|
20685
|
+
headerComponentType: 'pic'
|
|
20686
|
+
}, {
|
|
20687
|
+
dataIndex: 'name',
|
|
20688
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20689
|
+
width: 250,
|
|
20690
|
+
align: 'center',
|
|
20691
|
+
ellipsis: true,
|
|
20692
|
+
render: renderTextEllipsis
|
|
20693
|
+
}, {
|
|
20694
|
+
dataIndex: 'skuId',
|
|
20695
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20696
|
+
width: 200,
|
|
20697
|
+
align: 'center',
|
|
20698
|
+
ellipsis: true,
|
|
20699
|
+
render: renderTextEllipsis
|
|
20700
|
+
}, {
|
|
20701
|
+
dataIndex: 'propertiesValue',
|
|
20702
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
20703
|
+
width: 150,
|
|
20704
|
+
align: 'center',
|
|
20705
|
+
ellipsis: true,
|
|
20706
|
+
render: renderTextEllipsis
|
|
20707
|
+
}, {
|
|
20708
|
+
dataIndex: 'qty',
|
|
20709
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
20710
|
+
width: 150,
|
|
20711
|
+
align: 'center',
|
|
20712
|
+
ellipsis: true,
|
|
20713
|
+
render: renderTextEllipsis
|
|
20714
|
+
}, {
|
|
20715
|
+
dataIndex: 'rQty',
|
|
20716
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20717
|
+
width: 150,
|
|
20718
|
+
align: 'center',
|
|
20719
|
+
ellipsis: true,
|
|
20720
|
+
render: renderTextEllipsis
|
|
20721
|
+
}, {
|
|
20722
|
+
dataIndex: 'defectiveQty',
|
|
20723
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
20724
|
+
width: 150,
|
|
20725
|
+
align: 'center',
|
|
20726
|
+
ellipsis: true,
|
|
20727
|
+
render: renderTextEllipsis
|
|
20728
|
+
}, {
|
|
20729
|
+
dataIndex: 'amount',
|
|
20730
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20731
|
+
width: 150,
|
|
20732
|
+
align: 'center',
|
|
20733
|
+
ellipsis: true,
|
|
20734
|
+
render: renderTextEllipsis
|
|
20735
|
+
}, {
|
|
20736
|
+
dataIndex: 'shopAmount',
|
|
20737
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
20738
|
+
width: 150,
|
|
20739
|
+
align: 'center',
|
|
20740
|
+
ellipsis: true,
|
|
20741
|
+
render: renderTextEllipsis
|
|
20742
|
+
}, {
|
|
20743
|
+
dataIndex: 'price',
|
|
20744
|
+
title: "\u5355\u4EF7",
|
|
20745
|
+
width: 150,
|
|
20746
|
+
align: 'center',
|
|
20747
|
+
ellipsis: true,
|
|
20748
|
+
render: renderTextEllipsis
|
|
20749
|
+
}, {
|
|
20750
|
+
dataIndex: 'combineSkuId',
|
|
20751
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20752
|
+
width: 200,
|
|
20753
|
+
align: 'center',
|
|
20754
|
+
ellipsis: true,
|
|
20755
|
+
render: renderTextEllipsis
|
|
20756
|
+
}, {
|
|
20757
|
+
dataIndex: 'shopSkuId',
|
|
20758
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
20759
|
+
width: 200,
|
|
20760
|
+
align: 'center',
|
|
20761
|
+
ellipsis: true,
|
|
20762
|
+
render: renderTextEllipsis
|
|
20763
|
+
}, {
|
|
20764
|
+
dataIndex: 'iId',
|
|
20765
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
20766
|
+
width: 200,
|
|
20767
|
+
align: 'center',
|
|
20768
|
+
ellipsis: true,
|
|
20769
|
+
render: renderTextEllipsis
|
|
20770
|
+
}, {
|
|
20771
|
+
dataIndex: 'type',
|
|
20772
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
20773
|
+
width: 150,
|
|
20774
|
+
align: 'center',
|
|
20775
|
+
ellipsis: true,
|
|
20776
|
+
render: renderTextEllipsis
|
|
20777
|
+
}, {
|
|
20778
|
+
dataIndex: 'skuType',
|
|
20779
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20780
|
+
width: 150,
|
|
20781
|
+
align: 'center',
|
|
20782
|
+
ellipsis: true,
|
|
20783
|
+
render: renderTextEllipsis
|
|
20784
|
+
}, {
|
|
20785
|
+
dataIndex: 'isGift',
|
|
20786
|
+
title: '是否赠品',
|
|
20787
|
+
width: 100,
|
|
20788
|
+
render: function render(val) {
|
|
20789
|
+
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20790
|
+
}
|
|
20791
|
+
}, {
|
|
20792
|
+
dataIndex: 'receiveDate',
|
|
20793
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20794
|
+
width: 200,
|
|
20795
|
+
align: 'center',
|
|
20796
|
+
ellipsis: true,
|
|
20797
|
+
render: renderTextEllipsis
|
|
20798
|
+
}, {
|
|
20799
|
+
dataIndex: 'remark',
|
|
20800
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
20801
|
+
width: 200,
|
|
20802
|
+
align: 'center',
|
|
20803
|
+
ellipsis: true,
|
|
20804
|
+
render: renderTextEllipsis
|
|
20805
|
+
}]
|
|
20450
20806
|
};
|
|
20451
20807
|
};
|
|
20452
20808
|
|
|
@@ -21117,6 +21473,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21117
21473
|
width: 150,
|
|
21118
21474
|
render: function render(val, record, index) {
|
|
21119
21475
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21476
|
+
dropdownStyle: {
|
|
21477
|
+
zIndex: 2000
|
|
21478
|
+
},
|
|
21479
|
+
getPopupContainer: function getPopupContainer() {
|
|
21480
|
+
return document.body;
|
|
21481
|
+
},
|
|
21120
21482
|
value: val,
|
|
21121
21483
|
onChange: function onChange(value) {
|
|
21122
21484
|
updateHandle(value, index, 'bfit');
|
|
@@ -21146,6 +21508,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21146
21508
|
width: 150,
|
|
21147
21509
|
render: function render(val, record, index) {
|
|
21148
21510
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21511
|
+
dropdownStyle: {
|
|
21512
|
+
zIndex: 2000
|
|
21513
|
+
},
|
|
21514
|
+
getPopupContainer: function getPopupContainer() {
|
|
21515
|
+
return document.body;
|
|
21516
|
+
},
|
|
21149
21517
|
value: val,
|
|
21150
21518
|
onChange: function onChange(value) {
|
|
21151
21519
|
updateHandle(value, index, 'gift');
|
|
@@ -21805,11 +22173,17 @@ var systemOrderNoMap = {
|
|
|
21805
22173
|
GY_GOODS: 'code',
|
|
21806
22174
|
KM_GOODS: 'sid',
|
|
21807
22175
|
WDT_GOODS: 'tradeNo',
|
|
22176
|
+
WDT_AFTERSALE_GOODS: 'tid',
|
|
21808
22177
|
BS_E3_GOODS: 'orderSn',
|
|
21809
22178
|
JST_GOODS: 'oId',
|
|
21810
22179
|
WLN_GOODS: 'tradeNo',
|
|
21811
22180
|
JY_GOODS: 'tradeNo',
|
|
21812
|
-
JY_REISSUE_GOODS: 'tradeNo'
|
|
22181
|
+
JY_REISSUE_GOODS: 'tradeNo',
|
|
22182
|
+
KM_REISSUE_GOODS: 'sid',
|
|
22183
|
+
JST_REISSUE_GOODS: 'oId',
|
|
22184
|
+
GY_REISSUE_GOODS: 'code',
|
|
22185
|
+
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
22186
|
+
WDT_REISSUE_GOODS: 'tradeNo'
|
|
21813
22187
|
};
|
|
21814
22188
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21815
22189
|
var columns = _ref.columns,
|
|
@@ -21819,14 +22193,19 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21819
22193
|
onChangeSelectedKeys = _ref.onChangeSelectedKeys,
|
|
21820
22194
|
_ref$uniqueKey = _ref.uniqueKey,
|
|
21821
22195
|
uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey,
|
|
21822
|
-
_ref$
|
|
21823
|
-
|
|
22196
|
+
_ref$isShowSelect = _ref.isShowSelect,
|
|
22197
|
+
isShowSelect = _ref$isShowSelect === void 0 ? false : _ref$isShowSelect,
|
|
21824
22198
|
_ref$systemOrders = _ref.systemOrders,
|
|
21825
22199
|
systemOrders = _ref$systemOrders === void 0 ? [] : _ref$systemOrders,
|
|
21826
22200
|
_ref$selectedSystemOr = _ref.selectedSystemOrders,
|
|
22201
|
+
selectedSystemOrders = _ref$selectedSystemOr === void 0 ? [] : _ref$selectedSystemOr,
|
|
22202
|
+
_ref$validSystemOrder = _ref.validSystemOrder,
|
|
22203
|
+
validSystemOrder = _ref$validSystemOrder === void 0 ? false : _ref$validSystemOrder,
|
|
21827
22204
|
_ref$type = _ref.type,
|
|
21828
22205
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
21829
|
-
width = _ref.width
|
|
22206
|
+
width = _ref.width,
|
|
22207
|
+
_ref$isReissueType = _ref.isReissueType,
|
|
22208
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType;
|
|
21830
22209
|
var _useState = useState(),
|
|
21831
22210
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21832
22211
|
selectSystemNo = _useState2[0],
|
|
@@ -21836,6 +22215,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21836
22215
|
tradeGoodsVisible = _useState4[0],
|
|
21837
22216
|
setTradeGoodsVisible = _useState4[1];
|
|
21838
22217
|
var openModal = function openModal() {
|
|
22218
|
+
if (validSystemOrder) {
|
|
22219
|
+
message.warning('请选择补发系统单');
|
|
22220
|
+
return;
|
|
22221
|
+
}
|
|
21839
22222
|
if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
21840
22223
|
getDataSourceAsync().then(function () {
|
|
21841
22224
|
setTradeGoodsVisible(true);
|
|
@@ -21843,15 +22226,11 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21843
22226
|
} else {
|
|
21844
22227
|
setTradeGoodsVisible(true);
|
|
21845
22228
|
}
|
|
21846
|
-
//
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
// );
|
|
21851
|
-
// setSelectSystemNo(codeList || []);
|
|
21852
|
-
// }
|
|
22229
|
+
// 补发直接传入的是systemNo
|
|
22230
|
+
if (isShowSelect && isReissueType) {
|
|
22231
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
22232
|
+
}
|
|
21853
22233
|
};
|
|
21854
|
-
|
|
21855
22234
|
var closeModal = function closeModal() {
|
|
21856
22235
|
return setTradeGoodsVisible(false);
|
|
21857
22236
|
};
|
|
@@ -21867,10 +22246,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21867
22246
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21868
22247
|
}));
|
|
21869
22248
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21870
|
-
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21871
|
-
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21872
|
-
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21873
|
-
}));
|
|
21874
22249
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21875
22250
|
};
|
|
21876
22251
|
var rowSelection = {
|
|
@@ -21895,7 +22270,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21895
22270
|
style: {
|
|
21896
22271
|
maxWidth: '1000px'
|
|
21897
22272
|
}
|
|
21898
|
-
},
|
|
22273
|
+
}, isShowSelect && /*#__PURE__*/React.createElement(Row, {
|
|
21899
22274
|
style: {
|
|
21900
22275
|
marginBottom: '12px'
|
|
21901
22276
|
}
|
|
@@ -21999,13 +22374,17 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21999
22374
|
systemOrders = props.systemOrders,
|
|
22000
22375
|
selectedSystemOrders = props.selectedSystemOrders,
|
|
22001
22376
|
_props$templateDetail = props.templateDetail,
|
|
22002
|
-
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail
|
|
22377
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
22378
|
+
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
22379
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
|
|
22380
|
+
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
22003
22381
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
22004
22382
|
// 监听聚水潭退货商品
|
|
22005
22383
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22006
22384
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22007
|
-
//
|
|
22008
|
-
var
|
|
22385
|
+
// 判断是否为是否展示系统单筛选项
|
|
22386
|
+
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;
|
|
22387
|
+
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;
|
|
22009
22388
|
var refModal = useRef();
|
|
22010
22389
|
console.debug('表格数据', value);
|
|
22011
22390
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22078,6 +22457,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22078
22457
|
var columns = [];
|
|
22079
22458
|
switch (type) {
|
|
22080
22459
|
case 'WDT_GOODS':
|
|
22460
|
+
case 'WDT_AFTERSALE_GOODS':
|
|
22081
22461
|
case 'WDT_RETURN_GOODS':
|
|
22082
22462
|
case 'WDT_EXCHANGE_GOODS':
|
|
22083
22463
|
case 'BS_E3_GOODS':
|
|
@@ -22088,6 +22468,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22088
22468
|
case 'JST_REISSUE_GOODS':
|
|
22089
22469
|
case 'JST_EXCHANGE_GOODS':
|
|
22090
22470
|
case 'JST_RETURN_GOODS':
|
|
22471
|
+
case 'JST_AFTERSALE_GOODS':
|
|
22091
22472
|
case 'GY_REISSUE_GOODS':
|
|
22092
22473
|
case 'GY_RETURN_GOODS':
|
|
22093
22474
|
case 'KM_GOODS':
|
|
@@ -22180,7 +22561,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22180
22561
|
render: function render(val, record, index) {
|
|
22181
22562
|
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
22182
22563
|
index: index,
|
|
22183
|
-
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
22564
|
+
hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
|
|
22184
22565
|
handleClick: function handleClick() {
|
|
22185
22566
|
return handleDelete(record, index);
|
|
22186
22567
|
}
|
|
@@ -22195,7 +22576,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22195
22576
|
ellipsis: true,
|
|
22196
22577
|
width: 100,
|
|
22197
22578
|
render: function render(val, record, index) {
|
|
22198
|
-
return record.canDelete ? /*#__PURE__*/React.createElement(Button, {
|
|
22579
|
+
return record.canDelete || canDelete ? /*#__PURE__*/React.createElement(Button, {
|
|
22199
22580
|
type: "link",
|
|
22200
22581
|
onClick: function onClick() {
|
|
22201
22582
|
return handleDelete(record, index);
|
|
@@ -22281,6 +22662,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22281
22662
|
return params;
|
|
22282
22663
|
}, [tableSelect, selectedRowKeys, value]);
|
|
22283
22664
|
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
22665
|
+
var validSystemOrder = useMemo(function () {
|
|
22666
|
+
return ['GY_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'KM_REISSUE_GOODS'].includes(type) && !hasSelectedSystemOrder;
|
|
22667
|
+
}, [type, hasSelectedSystemOrder]);
|
|
22284
22668
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
|
|
22285
22669
|
style: {
|
|
22286
22670
|
float: 'right'
|
|
@@ -22289,7 +22673,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22289
22673
|
checked: isStrict,
|
|
22290
22674
|
onChange: handleCheckboxChange
|
|
22291
22675
|
}, "\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, {
|
|
22292
|
-
|
|
22676
|
+
validSystemOrder: validSystemOrder,
|
|
22677
|
+
isShowSelect: isShowSelect,
|
|
22293
22678
|
uniqueKey: uniqueKey,
|
|
22294
22679
|
type: type,
|
|
22295
22680
|
columns: orderModalColumns,
|
|
@@ -22299,7 +22684,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22299
22684
|
onChangeSelectedKeys: tradeGoods.selectedGoodsChange,
|
|
22300
22685
|
systemOrders: systemOrders,
|
|
22301
22686
|
selectedSystemOrders: selectedSystemOrders,
|
|
22302
|
-
width: width || 850
|
|
22687
|
+
width: width || 850,
|
|
22688
|
+
isReissueType: isReissueType
|
|
22303
22689
|
}), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
|
|
22304
22690
|
type: "link",
|
|
22305
22691
|
onClick: handleChangeGoods
|
|
@@ -23349,7 +23735,8 @@ var columnsMap = {
|
|
|
23349
23735
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
23350
23736
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23351
23737
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23352
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
23738
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
23739
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23353
23740
|
};
|
|
23354
23741
|
var rowKeyMap = {
|
|
23355
23742
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -23359,7 +23746,8 @@ var rowKeyMap = {
|
|
|
23359
23746
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
23360
23747
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23361
23748
|
JST_SYSTEM_ORDER: 'oId',
|
|
23362
|
-
JY_SYSTEM_ORDER: 'tradeNo'
|
|
23749
|
+
JY_SYSTEM_ORDER: 'tradeNo',
|
|
23750
|
+
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23363
23751
|
};
|
|
23364
23752
|
var index$2 = (function (props) {
|
|
23365
23753
|
var value = props.value,
|
|
@@ -23373,6 +23761,7 @@ var index$2 = (function (props) {
|
|
|
23373
23761
|
useEffect(function () {
|
|
23374
23762
|
var _value$orders, _value$showOrderInfo;
|
|
23375
23763
|
valueRef.current = value;
|
|
23764
|
+
console.log('value77777777', value);
|
|
23376
23765
|
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) {
|
|
23377
23766
|
onceRef.current = true;
|
|
23378
23767
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24839,10 +25228,39 @@ var componentMap$2 = {
|
|
|
24839
25228
|
exchangeDeleteGood: 'jyExchangeDeleteGood'
|
|
24840
25229
|
},
|
|
24841
25230
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25231
|
+
},
|
|
25232
|
+
WDT_AFTERSALE_GOODS: {
|
|
25233
|
+
type: 'wdtAftersale',
|
|
25234
|
+
key: 'wdtAftersaleGoods',
|
|
25235
|
+
name: '旺店通售后',
|
|
25236
|
+
orderNo: 'srcTids',
|
|
25237
|
+
goodDetailOrderNo: 'srcTids',
|
|
25238
|
+
showChangeBtn: false,
|
|
25239
|
+
eventNameMap: {
|
|
25240
|
+
// pubsub 事件
|
|
25241
|
+
type: 'wdtAftersaleType',
|
|
25242
|
+
updateGoodsHandle: updateWdtAftersaleGoodsHandle,
|
|
25243
|
+
reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
|
|
25244
|
+
},
|
|
25245
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25246
|
+
},
|
|
25247
|
+
JST_AFTERSALE_GOODS: {
|
|
25248
|
+
type: 'jstAftersale',
|
|
25249
|
+
key: 'jstAftersaleGoods',
|
|
25250
|
+
name: 'jst售后',
|
|
25251
|
+
orderNo: 'asId',
|
|
25252
|
+
goodDetailOrderNo: 'asId',
|
|
25253
|
+
showChangeBtn: false,
|
|
25254
|
+
eventNameMap: {
|
|
25255
|
+
// pubsub 事件
|
|
25256
|
+
type: 'jstAftersaleType',
|
|
25257
|
+
deleteGood: 'jstAftersaleDeleteGood'
|
|
25258
|
+
},
|
|
25259
|
+
getOrderList: jstUtils.getJstOrderListSingleton
|
|
24842
25260
|
}
|
|
24843
25261
|
};
|
|
24844
25262
|
var CommonGoods = function CommonGoods(props) {
|
|
24845
|
-
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
|
|
25263
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
24846
25264
|
var value = props.value,
|
|
24847
25265
|
disabled = props.disabled,
|
|
24848
25266
|
onChange = props.onChange,
|
|
@@ -24999,6 +25417,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
24999
25417
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
25000
25418
|
var mode = _ref2.mode;
|
|
25001
25419
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25420
|
+
if (!updateHandle) return [];
|
|
25002
25421
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
25003
25422
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25004
25423
|
});
|
|
@@ -25013,6 +25432,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25013
25432
|
var mode = _ref3.mode;
|
|
25014
25433
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25015
25434
|
console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
25435
|
+
if (!updateHandle) return [];
|
|
25016
25436
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
25017
25437
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25018
25438
|
});
|
|
@@ -25073,6 +25493,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25073
25493
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25074
25494
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25075
25495
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25496
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
25076
25497
|
tradeGoods: {
|
|
25077
25498
|
originDataSource: getAllTradeGoodsDetails({
|
|
25078
25499
|
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
@@ -25421,11 +25842,12 @@ var typeMap$1 = {
|
|
|
25421
25842
|
money: 'orderPrice',
|
|
25422
25843
|
share: 'sharePrice'
|
|
25423
25844
|
},
|
|
25424
|
-
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25845
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton,
|
|
25846
|
+
isShowSelectTradeGoods: true
|
|
25425
25847
|
}
|
|
25426
25848
|
};
|
|
25427
25849
|
var wdtReissue = function wdtReissue(props) {
|
|
25428
|
-
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s6, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
25850
|
+
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;
|
|
25429
25851
|
var value = props.value,
|
|
25430
25852
|
onChange = props.onChange,
|
|
25431
25853
|
_props$reasonList = props.reasonList,
|
|
@@ -25454,36 +25876,6 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25454
25876
|
}
|
|
25455
25877
|
return;
|
|
25456
25878
|
}, [value]);
|
|
25457
|
-
// useEffect(() => {
|
|
25458
|
-
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
25459
|
-
// if (systemOrderNo) {
|
|
25460
|
-
// if (['1'].includes(value?.[typeMap[type]?.typeName]?.[0])) {
|
|
25461
|
-
// onChange?.({
|
|
25462
|
-
// ...value,
|
|
25463
|
-
// [typeMap[type]?.key]: getGoodDetails({
|
|
25464
|
-
// mode: isStrict
|
|
25465
|
-
// })
|
|
25466
|
-
// })
|
|
25467
|
-
// }
|
|
25468
|
-
// }
|
|
25469
|
-
// return;
|
|
25470
|
-
// }, [value?.[typeMap[type]?.systemOrderNo]]);
|
|
25471
|
-
// const getWdtOrderList = async (orderNo: string) => {
|
|
25472
|
-
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
25473
|
-
// const orders = data?.trades || [];
|
|
25474
|
-
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
25475
|
-
// return { billNo, billType, billTag }
|
|
25476
|
-
// });
|
|
25477
|
-
// onChange({
|
|
25478
|
-
// ...value,
|
|
25479
|
-
// [typeMap[type]?.systemOrder]: {
|
|
25480
|
-
// ...value[typeMap[type]?.systemOrder],
|
|
25481
|
-
// showOrderInfo,
|
|
25482
|
-
// orders,
|
|
25483
|
-
// },
|
|
25484
|
-
// });
|
|
25485
|
-
// })
|
|
25486
|
-
// };
|
|
25487
25879
|
var getOrderList = /*#__PURE__*/function () {
|
|
25488
25880
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
25489
25881
|
var _typeMap$type5;
|
|
@@ -25543,17 +25935,24 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25543
25935
|
}))));
|
|
25544
25936
|
};
|
|
25545
25937
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25546
|
-
var _typeMap$type14, _typeMap$type15
|
|
25938
|
+
var _typeMap$type14, _typeMap$type15;
|
|
25547
25939
|
var mode = _ref3.mode,
|
|
25548
|
-
sysOrderNo = _ref3.sysOrderNo
|
|
25940
|
+
sysOrderNo = _ref3.sysOrderNo,
|
|
25941
|
+
_ref3$isAllOrders = _ref3.isAllOrders,
|
|
25942
|
+
isAllOrders = _ref3$isAllOrders === void 0 ? false : _ref3$isAllOrders;
|
|
25549
25943
|
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];
|
|
25550
25944
|
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];
|
|
25551
25945
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
25552
25946
|
return order.tradeNo === systemOrderNo;
|
|
25553
25947
|
});
|
|
25554
|
-
var
|
|
25948
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
25949
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25950
|
+
var _order$goodDetails;
|
|
25951
|
+
return order === null || order === void 0 ? void 0 : (_order$goodDetails = order.goodDetails) === null || _order$goodDetails === void 0 ? void 0 : _order$goodDetails.length;
|
|
25952
|
+
});
|
|
25953
|
+
var goodDetails = hasGoodDetails ? updateWdtGoodsHandle([order]) : [];
|
|
25555
25954
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25556
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
25955
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25557
25956
|
return !orderNo || goodItem.srcTid === orderNo;
|
|
25558
25957
|
}) : goodDetails;
|
|
25559
25958
|
};
|
|
@@ -25656,7 +26055,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25656
26055
|
type: type,
|
|
25657
26056
|
disabled: disabled,
|
|
25658
26057
|
canUpdateNumber: showChangeBtn,
|
|
25659
|
-
|
|
26058
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
26059
|
+
// showChangeBtn={showChangeBtn}
|
|
25660
26060
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25661
26061
|
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)],
|
|
25662
26062
|
onChange: function onChange(val) {
|
|
@@ -25665,9 +26065,13 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25665
26065
|
onModeChange: handleModeChange,
|
|
25666
26066
|
showModeBtn: showModeBtn,
|
|
25667
26067
|
isStrict: isStrict,
|
|
26068
|
+
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,
|
|
26069
|
+
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,
|
|
26070
|
+
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)]] : [],
|
|
25668
26071
|
tradeGoods: {
|
|
25669
26072
|
originDataSource: getGoodDetails({
|
|
25670
|
-
mode: isStrict
|
|
26073
|
+
mode: isStrict,
|
|
26074
|
+
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
|
|
25671
26075
|
}),
|
|
25672
26076
|
selectedGoodsChange: selectedGoodsChange
|
|
25673
26077
|
}
|
|
@@ -25691,7 +26095,8 @@ var typeMap$2 = {
|
|
|
25691
26095
|
outerOiIdKey: '',
|
|
25692
26096
|
goodDetailsKey: 'items',
|
|
25693
26097
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
25694
|
-
uniqueKey: 'uuid'
|
|
26098
|
+
uniqueKey: 'uuid',
|
|
26099
|
+
isShowSelectTradeGoods: true
|
|
25695
26100
|
},
|
|
25696
26101
|
JST_RETURN_GOODS: {
|
|
25697
26102
|
compType: '退货',
|
|
@@ -25730,7 +26135,8 @@ var typeMap$2 = {
|
|
|
25730
26135
|
oIdKey: 'billNo',
|
|
25731
26136
|
outerOiIdKey: '',
|
|
25732
26137
|
goodDetailsKey: 'subOrders',
|
|
25733
|
-
uniqueKey: 'id'
|
|
26138
|
+
uniqueKey: 'id',
|
|
26139
|
+
isShowSelectTradeGoods: true
|
|
25734
26140
|
},
|
|
25735
26141
|
JY_REISSUE_GOODS: {
|
|
25736
26142
|
compType: '补发',
|
|
@@ -25749,7 +26155,7 @@ var typeMap$2 = {
|
|
|
25749
26155
|
}
|
|
25750
26156
|
};
|
|
25751
26157
|
var PublicReissue = function PublicReissue(props) {
|
|
25752
|
-
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,
|
|
26158
|
+
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;
|
|
25753
26159
|
var value = props.value,
|
|
25754
26160
|
onChange = props.onChange,
|
|
25755
26161
|
_props$reasonList = props.reasonList,
|
|
@@ -26018,25 +26424,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26018
26424
|
type: type,
|
|
26019
26425
|
disabled: disabled,
|
|
26020
26426
|
canUpdateNumber: showChangeBtn,
|
|
26021
|
-
|
|
26022
|
-
|
|
26023
|
-
|
|
26427
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
26428
|
+
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26429
|
+
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,
|
|
26430
|
+
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26024
26431
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26025
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26432
|
+
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)],
|
|
26026
26433
|
onChange: function onChange(val) {
|
|
26027
26434
|
return changeGoodHandle(val);
|
|
26028
26435
|
},
|
|
26029
26436
|
onModeChange: handleModeChange,
|
|
26030
26437
|
showModeBtn: false,
|
|
26031
26438
|
isStrict: isStrict,
|
|
26032
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26033
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26439
|
+
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,
|
|
26440
|
+
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,
|
|
26441
|
+
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)]] : [],
|
|
26034
26442
|
tradeGoods: {
|
|
26035
26443
|
originDataSource: getGoodDetails({
|
|
26036
26444
|
mode: isStrict,
|
|
26037
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26445
|
+
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
|
|
26038
26446
|
}),
|
|
26039
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26447
|
+
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',
|
|
26040
26448
|
selectedGoodsChange: selectedGoodsChange
|
|
26041
26449
|
}
|
|
26042
26450
|
})));
|
|
@@ -26779,7 +27187,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
26779
27187
|
onClick: function onClick() {
|
|
26780
27188
|
return setChangeIndex(index);
|
|
26781
27189
|
}
|
|
26782
|
-
}, msgTypeCh[key], item.ruleName);
|
|
27190
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
26783
27191
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
26784
27192
|
showSearch: true,
|
|
26785
27193
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -26824,11 +27232,12 @@ var typeMap$3 = {
|
|
|
26824
27232
|
typeName: 'bsE3ReissueType',
|
|
26825
27233
|
systemOrder: 'bsE3SystemOrder',
|
|
26826
27234
|
systemOrderNo: 'bsE3SystemOrderNo',
|
|
26827
|
-
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
27235
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton,
|
|
27236
|
+
isShowSelectTradeGoods: true
|
|
26828
27237
|
}
|
|
26829
27238
|
};
|
|
26830
27239
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
26831
|
-
var _typeMap$type22, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s6, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
27240
|
+
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;
|
|
26832
27241
|
var value = props.value,
|
|
26833
27242
|
onChange = props.onChange,
|
|
26834
27243
|
_props$reasonList = props.reasonList,
|
|
@@ -26930,17 +27339,24 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
26930
27339
|
}))));
|
|
26931
27340
|
};
|
|
26932
27341
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26933
|
-
var _typeMap$type13, _typeMap$type14
|
|
27342
|
+
var _typeMap$type13, _typeMap$type14;
|
|
26934
27343
|
var mode = _ref4.mode,
|
|
26935
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
27344
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
27345
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
27346
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
26936
27347
|
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];
|
|
26937
27348
|
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];
|
|
26938
27349
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
26939
27350
|
return order.orderSn === systemOrderNo;
|
|
26940
27351
|
});
|
|
26941
|
-
var
|
|
27352
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27353
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27354
|
+
var _order$orderDetailGet;
|
|
27355
|
+
return order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length;
|
|
27356
|
+
});
|
|
27357
|
+
var goodDetails = hasGoodDetails ? updateBsE3GoodsHandle([order], 'sharePrice') : [];
|
|
26942
27358
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26943
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27359
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26944
27360
|
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
26945
27361
|
}) : goodDetails;
|
|
26946
27362
|
};
|
|
@@ -27041,7 +27457,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27041
27457
|
type: type,
|
|
27042
27458
|
disabled: disabled,
|
|
27043
27459
|
canUpdateNumber: showChangeBtn,
|
|
27044
|
-
|
|
27460
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27461
|
+
// showChangeBtn={showChangeBtn}
|
|
27045
27462
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27046
27463
|
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)],
|
|
27047
27464
|
onChange: function onChange(val) {
|
|
@@ -27050,9 +27467,13 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27050
27467
|
onModeChange: handleModeChange,
|
|
27051
27468
|
showModeBtn: false,
|
|
27052
27469
|
isStrict: isStrict,
|
|
27470
|
+
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,
|
|
27471
|
+
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,
|
|
27472
|
+
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)]] : [],
|
|
27053
27473
|
tradeGoods: {
|
|
27054
27474
|
originDataSource: getGoodDetails({
|
|
27055
|
-
mode: isStrict
|
|
27475
|
+
mode: isStrict,
|
|
27476
|
+
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
|
|
27056
27477
|
}),
|
|
27057
27478
|
selectedGoodsChange: selectedGoodsChange
|
|
27058
27479
|
}
|
|
@@ -27081,11 +27502,12 @@ var typeMap$4 = {
|
|
|
27081
27502
|
money: 'orderPrice',
|
|
27082
27503
|
share: 'sharePrice'
|
|
27083
27504
|
},
|
|
27084
|
-
getOrderList: gyUtils.getGyOrderListSingleton
|
|
27505
|
+
getOrderList: gyUtils.getGyOrderListSingleton,
|
|
27506
|
+
isShowSelectTradeGoods: true
|
|
27085
27507
|
}
|
|
27086
27508
|
};
|
|
27087
27509
|
var GyReissue = function GyReissue(props) {
|
|
27088
|
-
var _typeMap$
|
|
27510
|
+
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;
|
|
27089
27511
|
var value = props.value,
|
|
27090
27512
|
onChange = props.onChange,
|
|
27091
27513
|
_props$reasonList = props.reasonList,
|
|
@@ -27231,17 +27653,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27231
27653
|
}))));
|
|
27232
27654
|
};
|
|
27233
27655
|
var getGoodDetails = function getGoodDetails(_ref7) {
|
|
27234
|
-
var _ref8, _typeMap$type19, _ref9, _typeMap$type20
|
|
27656
|
+
var _ref8, _typeMap$type19, _ref9, _typeMap$type20;
|
|
27235
27657
|
var mode = _ref7.mode,
|
|
27236
|
-
sysOrderNo = _ref7.sysOrderNo
|
|
27658
|
+
sysOrderNo = _ref7.sysOrderNo,
|
|
27659
|
+
_ref7$isAllOrders = _ref7.isAllOrders,
|
|
27660
|
+
isAllOrders = _ref7$isAllOrders === void 0 ? false : _ref7$isAllOrders;
|
|
27237
27661
|
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];
|
|
27238
27662
|
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];
|
|
27239
27663
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
27240
27664
|
return order.code === systemOrderNo;
|
|
27241
27665
|
});
|
|
27242
|
-
var
|
|
27666
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27667
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27668
|
+
var _order$details;
|
|
27669
|
+
return order === null || order === void 0 ? void 0 : (_order$details = order.details) === null || _order$details === void 0 ? void 0 : _order$details.length;
|
|
27670
|
+
});
|
|
27671
|
+
var goodDetails = hasGoodDetails ? updateGyGoodsHandle(orders) : [];
|
|
27243
27672
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27244
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27673
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27245
27674
|
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
27246
27675
|
}) : goodDetails;
|
|
27247
27676
|
};
|
|
@@ -27278,25 +27707,26 @@ var GyReissue = function GyReissue(props) {
|
|
|
27278
27707
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27279
27708
|
};
|
|
27280
27709
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
27281
|
-
var _ref12, _typeMap$
|
|
27710
|
+
var _typeMap$type29, _ref12, _typeMap$type30, _typeMap$type31, _uniqBy;
|
|
27282
27711
|
pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
27283
27712
|
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
27284
27713
|
// 原订单商品
|
|
27285
27714
|
var originTradeGoodList = getGoodDetails({
|
|
27286
|
-
mode: isStrict
|
|
27715
|
+
mode: isStrict,
|
|
27716
|
+
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
|
|
27287
27717
|
}) || [];
|
|
27288
27718
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27289
|
-
var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27290
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27719
|
+
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)]) || [];
|
|
27720
|
+
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) {
|
|
27291
27721
|
return skuList.includes(item.uuid);
|
|
27292
27722
|
});
|
|
27293
27723
|
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
27294
27724
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27295
27725
|
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
27296
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27726
|
+
}, [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]);
|
|
27297
27727
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
27298
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27299
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27728
|
+
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];
|
|
27729
|
+
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]);
|
|
27300
27730
|
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
27301
27731
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
|
|
27302
27732
|
gutter: 8,
|
|
@@ -27316,12 +27746,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
27316
27746
|
},
|
|
27317
27747
|
disabled: disabled,
|
|
27318
27748
|
allowClear: false,
|
|
27319
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27749
|
+
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)],
|
|
27320
27750
|
onChange: function onChange(val) {
|
|
27321
27751
|
return changeSystemOrderHandle(val);
|
|
27322
27752
|
},
|
|
27323
27753
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
27324
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
27754
|
+
}, ((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) {
|
|
27325
27755
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
27326
27756
|
className: styles$6.systemNoDisabled,
|
|
27327
27757
|
key: item.billNo,
|
|
@@ -27335,7 +27765,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27335
27765
|
span: 12
|
|
27336
27766
|
},
|
|
27337
27767
|
sm: {
|
|
27338
|
-
span:
|
|
27768
|
+
span: 4
|
|
27339
27769
|
}
|
|
27340
27770
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27341
27771
|
style: {
|
|
@@ -27345,7 +27775,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27345
27775
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27346
27776
|
allowClear: false,
|
|
27347
27777
|
options: reasonList,
|
|
27348
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27778
|
+
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)],
|
|
27349
27779
|
onChange: function onChange(val) {
|
|
27350
27780
|
return changeTypeHandle(val);
|
|
27351
27781
|
}
|
|
@@ -27355,19 +27785,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27355
27785
|
type: type,
|
|
27356
27786
|
disabled: disabled,
|
|
27357
27787
|
canUpdateNumber: showChangeBtn,
|
|
27358
|
-
|
|
27359
|
-
|
|
27360
|
-
alwaysShowChooseErpGoodsBtn:
|
|
27788
|
+
// showChangeBtn={showChangeBtn}
|
|
27789
|
+
// showErpGoodsBtn={showErpGoodsBtn}
|
|
27790
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27791
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27361
27792
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27362
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27793
|
+
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)],
|
|
27363
27794
|
onChange: function onChange(val) {
|
|
27364
27795
|
return changeGoodHandle(val);
|
|
27365
27796
|
},
|
|
27366
27797
|
onModeChange: handleModeChange,
|
|
27367
27798
|
isStrict: isStrict,
|
|
27799
|
+
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,
|
|
27800
|
+
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,
|
|
27801
|
+
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)]] : [],
|
|
27368
27802
|
tradeGoods: {
|
|
27369
27803
|
originDataSource: getGoodDetails({
|
|
27370
|
-
mode: isStrict
|
|
27804
|
+
mode: isStrict,
|
|
27805
|
+
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
|
|
27371
27806
|
}),
|
|
27372
27807
|
selectedGoodsChange: selectedGoodsChange
|
|
27373
27808
|
}
|
|
@@ -27633,7 +28068,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
27633
28068
|
span: 12
|
|
27634
28069
|
},
|
|
27635
28070
|
sm: {
|
|
27636
|
-
span:
|
|
28071
|
+
span: 4
|
|
27637
28072
|
}
|
|
27638
28073
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27639
28074
|
style: {
|
|
@@ -28305,7 +28740,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28305
28740
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28306
28741
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28307
28742
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28308
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
28743
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
28744
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28309
28745
|
};
|
|
28310
28746
|
|
|
28311
28747
|
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 };
|