@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.js
CHANGED
|
@@ -8123,6 +8123,11 @@ var systemOrderMap = {
|
|
|
8123
8123
|
no: 'jstSystemOrderNo',
|
|
8124
8124
|
ids: 'jstSystemSelectIds',
|
|
8125
8125
|
order: 'jstSystemShowOrder'
|
|
8126
|
+
},
|
|
8127
|
+
WDT_RETURN_BILL_NO: {
|
|
8128
|
+
no: 'wdtReturnBillNo',
|
|
8129
|
+
ids: 'wdtReturnBillSelectIds',
|
|
8130
|
+
order: 'wdtReturnBillShowOrder'
|
|
8126
8131
|
}
|
|
8127
8132
|
};
|
|
8128
8133
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8695,6 +8700,52 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
|
8695
8700
|
};
|
|
8696
8701
|
};
|
|
8697
8702
|
};
|
|
8703
|
+
var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
|
|
8704
|
+
return function (getValue) {
|
|
8705
|
+
return function (nex, config) {
|
|
8706
|
+
var _values = {
|
|
8707
|
+
wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
|
|
8708
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8709
|
+
};
|
|
8710
|
+
var selectIds = [];
|
|
8711
|
+
var orderNo = '';
|
|
8712
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8713
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8714
|
+
});
|
|
8715
|
+
if (tradeId) {
|
|
8716
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8717
|
+
}
|
|
8718
|
+
var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8719
|
+
return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
|
|
8720
|
+
});
|
|
8721
|
+
if (wdtAftersaleSystemOrder) {
|
|
8722
|
+
selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
|
|
8723
|
+
}
|
|
8724
|
+
_values.selectIds = selectIds;
|
|
8725
|
+
_values.orderNo = orderNo;
|
|
8726
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8727
|
+
};
|
|
8728
|
+
};
|
|
8729
|
+
};
|
|
8730
|
+
var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
|
|
8731
|
+
return function (getValue) {
|
|
8732
|
+
return function (nex) {
|
|
8733
|
+
var _values = {
|
|
8734
|
+
jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
|
|
8735
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8736
|
+
};
|
|
8737
|
+
var orderNo = '';
|
|
8738
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8739
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8740
|
+
});
|
|
8741
|
+
if (tradeId) {
|
|
8742
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8743
|
+
}
|
|
8744
|
+
_values.orderNo = orderNo;
|
|
8745
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8746
|
+
};
|
|
8747
|
+
};
|
|
8748
|
+
};
|
|
8698
8749
|
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8699
8750
|
return function (getValue) {
|
|
8700
8751
|
return function (nex, config) {
|
|
@@ -8927,11 +8978,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8927
8978
|
no: 'jstSystemOrderNo',
|
|
8928
8979
|
ids: 'jstSystemSelectIds',
|
|
8929
8980
|
order: 'jstSystemShowOrder'
|
|
8981
|
+
},
|
|
8982
|
+
WDT_RETURN_BILL_NO: {
|
|
8983
|
+
no: 'wdtReturnBillNo',
|
|
8984
|
+
ids: 'wdtReturnBillSelectIds',
|
|
8985
|
+
order: 'wdtReturnBillShowOrder'
|
|
8930
8986
|
}
|
|
8931
8987
|
};
|
|
8932
8988
|
return _defineProperty({}, nex.uniqueKey, {
|
|
8933
8989
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8934
|
-
orders: [],
|
|
8990
|
+
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
8935
8991
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8936
8992
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8937
8993
|
});
|
|
@@ -9167,14 +9223,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9167
9223
|
};
|
|
9168
9224
|
var processLabel = function processLabel(getValue) {
|
|
9169
9225
|
return function (nex, config) {
|
|
9170
|
-
var
|
|
9171
|
-
return
|
|
9226
|
+
var _ref74;
|
|
9227
|
+
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;
|
|
9172
9228
|
};
|
|
9173
9229
|
};
|
|
9174
9230
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9175
9231
|
return function (nex, config) {
|
|
9176
|
-
var
|
|
9177
|
-
return
|
|
9232
|
+
var _ref75;
|
|
9233
|
+
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;
|
|
9178
9234
|
};
|
|
9179
9235
|
};
|
|
9180
9236
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9292,6 +9348,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9292
9348
|
BS_POSTING: processBsPosting,
|
|
9293
9349
|
BS_GOODS: processBsGoods,
|
|
9294
9350
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9351
|
+
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9352
|
+
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9295
9353
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9296
9354
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9297
9355
|
KM_GOODS: processKmGoods(templateColumns),
|
|
@@ -9308,6 +9366,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9308
9366
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9309
9367
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9310
9368
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9369
|
+
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9311
9370
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9312
9371
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9313
9372
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9922,8 +9981,8 @@ var SubForm = function SubForm(props) {
|
|
|
9922
9981
|
tableHeader = props.tableHeader,
|
|
9923
9982
|
disabled = props.disabled,
|
|
9924
9983
|
platform = props.platform,
|
|
9925
|
-
|
|
9926
|
-
|
|
9984
|
+
maxCount = props.maxCount,
|
|
9985
|
+
manual = props.manual;
|
|
9927
9986
|
var ref = React.useRef(null);
|
|
9928
9987
|
var isRequest = React.useRef(false);
|
|
9929
9988
|
var _useState = React.useState(false),
|
|
@@ -12900,6 +12959,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
12900
12959
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
12901
12960
|
})) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
|
|
12902
12961
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
12962
|
+
var senderMobileLabel = React.useMemo(function () {
|
|
12963
|
+
return (value === null || value === void 0 ? void 0 : value.interceptCompany) === 'ZTO' ? '发件人/收件人手机号' : '发件人手机号';
|
|
12964
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
12903
12965
|
var showKcode = React.useMemo(function () {
|
|
12904
12966
|
var isShow = false;
|
|
12905
12967
|
if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
|
|
@@ -13134,14 +13196,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13134
13196
|
return option.label.includes(input);
|
|
13135
13197
|
}
|
|
13136
13198
|
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
13137
|
-
label:
|
|
13199
|
+
label: senderMobileLabel,
|
|
13138
13200
|
// required={true}
|
|
13139
13201
|
key: 'interceptSenderMobile',
|
|
13140
13202
|
hidden: !showSenderMobile
|
|
13141
13203
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13142
13204
|
value: value === null || value === void 0 ? void 0 : value.interceptSenderMobile,
|
|
13143
13205
|
disabled: disabled || isEdit,
|
|
13144
|
-
placeholder:
|
|
13206
|
+
placeholder: senderMobileLabel,
|
|
13145
13207
|
onChange: function onChange(e) {
|
|
13146
13208
|
return changeHandle(e.target.value, 'interceptSenderMobile');
|
|
13147
13209
|
}
|
|
@@ -13362,7 +13424,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13362
13424
|
if (disabled) {
|
|
13363
13425
|
return;
|
|
13364
13426
|
}
|
|
13365
|
-
if (
|
|
13427
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13366
13428
|
return;
|
|
13367
13429
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13368
13430
|
return;
|
|
@@ -13443,13 +13505,13 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13443
13505
|
});
|
|
13444
13506
|
};
|
|
13445
13507
|
//sf手机号
|
|
13446
|
-
var LogisticsPhone = function LogisticsPhone() {
|
|
13508
|
+
var LogisticsPhone = function LogisticsPhone(company) {
|
|
13447
13509
|
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13448
13510
|
disabled: disabled,
|
|
13449
13511
|
style: {
|
|
13450
13512
|
marginTop: '8px'
|
|
13451
13513
|
},
|
|
13452
|
-
placeholder:
|
|
13514
|
+
placeholder: company === 'ZTO' ? '发件人/收件人手机号' : '手机号',
|
|
13453
13515
|
onChange: function onChange(e) {
|
|
13454
13516
|
return handleInputChange(e, 'trajectoryPhone');
|
|
13455
13517
|
},
|
|
@@ -13498,7 +13560,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13498
13560
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13499
13561
|
});
|
|
13500
13562
|
};
|
|
13501
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), (value === null || value === void 0 ? void 0 : value.trajectoryCompany) ===
|
|
13563
|
+
return /*#__PURE__*/React__default['default'].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__default['default'].createElement(LogisticsSnapshot, null) : null);
|
|
13502
13564
|
};
|
|
13503
13565
|
|
|
13504
13566
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13548,7 +13610,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13548
13610
|
initValue = _ref.initValue, value = _ref.value;
|
|
13549
13611
|
hasSnapshot = showField && showField.includes('snapshot');
|
|
13550
13612
|
initList = initValue.map(function (item) {
|
|
13551
|
-
if (item.trajectoryCompany
|
|
13613
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13552
13614
|
return {
|
|
13553
13615
|
trajectoryCompany: item.trajectoryCompany,
|
|
13554
13616
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -13562,7 +13624,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13562
13624
|
}
|
|
13563
13625
|
});
|
|
13564
13626
|
valueList = value.map(function (item) {
|
|
13565
|
-
if (item.trajectoryCompany
|
|
13627
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13566
13628
|
return {
|
|
13567
13629
|
trajectoryCompany: item.trajectoryCompany,
|
|
13568
13630
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -13576,7 +13638,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
13576
13638
|
}
|
|
13577
13639
|
});
|
|
13578
13640
|
changeList = changeValue.map(function (item) {
|
|
13579
|
-
if (item.trajectoryCompany
|
|
13641
|
+
if (['SF', 'ZTO'].includes(item.trajectoryCompany)) {
|
|
13580
13642
|
return {
|
|
13581
13643
|
trajectoryCompany: item.trajectoryCompany,
|
|
13582
13644
|
trajectoryCode: item.trajectoryCode,
|
|
@@ -15870,6 +15932,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
15870
15932
|
var current = _ref.current,
|
|
15871
15933
|
pageSize = _ref.pageSize;
|
|
15872
15934
|
var data = {
|
|
15935
|
+
goodShortName: formData.goodShortName || null,
|
|
15873
15936
|
goodNo: formData.goodNo || null,
|
|
15874
15937
|
goodName: formData.goodName || null,
|
|
15875
15938
|
skuCode: formData.skuCode || null,
|
|
@@ -18847,7 +18910,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18847
18910
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18848
18911
|
width: 180,
|
|
18849
18912
|
align: 'center',
|
|
18850
|
-
ellipsis: true
|
|
18913
|
+
ellipsis: true,
|
|
18914
|
+
render: renderTextEllipsis
|
|
18851
18915
|
}, {
|
|
18852
18916
|
dataIndex: 'brandName',
|
|
18853
18917
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -18967,7 +19031,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18967
19031
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18968
19032
|
width: 180,
|
|
18969
19033
|
align: 'center',
|
|
18970
|
-
ellipsis: true
|
|
19034
|
+
ellipsis: true,
|
|
19035
|
+
render: renderTextEllipsis
|
|
18971
19036
|
}, {
|
|
18972
19037
|
dataIndex: 'brandName',
|
|
18973
19038
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19091,7 +19156,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19091
19156
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19092
19157
|
width: 180,
|
|
19093
19158
|
align: 'center',
|
|
19094
|
-
ellipsis: true
|
|
19159
|
+
ellipsis: true,
|
|
19160
|
+
render: renderTextEllipsis
|
|
19095
19161
|
}, {
|
|
19096
19162
|
dataIndex: 'brandName',
|
|
19097
19163
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19254,7 +19320,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19254
19320
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19255
19321
|
width: 180,
|
|
19256
19322
|
align: 'center',
|
|
19257
|
-
ellipsis: true
|
|
19323
|
+
ellipsis: true,
|
|
19324
|
+
render: renderTextEllipsis
|
|
19258
19325
|
}, {
|
|
19259
19326
|
dataIndex: 'brandName',
|
|
19260
19327
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19341,6 +19408,141 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19341
19408
|
}
|
|
19342
19409
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
|
|
19343
19410
|
}
|
|
19411
|
+
}],
|
|
19412
|
+
// 旺店通售后商品信息
|
|
19413
|
+
WDT_AFTERSALE_GOODS: [{
|
|
19414
|
+
dataIndex: 'oid',
|
|
19415
|
+
title: "\u539F\u59CB\u5B50\u5355\u53F7",
|
|
19416
|
+
width: 200,
|
|
19417
|
+
align: 'center',
|
|
19418
|
+
ellipsis: true,
|
|
19419
|
+
render: renderTextEllipsis
|
|
19420
|
+
}, {
|
|
19421
|
+
dataIndex: 'goodsName',
|
|
19422
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
19423
|
+
width: 250,
|
|
19424
|
+
align: 'center',
|
|
19425
|
+
ellipsis: true,
|
|
19426
|
+
render: renderTextEllipsis
|
|
19427
|
+
}, {
|
|
19428
|
+
dataIndex: 'goodsNo',
|
|
19429
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
19430
|
+
width: 150,
|
|
19431
|
+
align: 'center',
|
|
19432
|
+
ellipsis: true,
|
|
19433
|
+
render: renderTextEllipsis
|
|
19434
|
+
}, {
|
|
19435
|
+
dataIndex: 'specName',
|
|
19436
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
19437
|
+
width: 150,
|
|
19438
|
+
align: 'center',
|
|
19439
|
+
ellipsis: true,
|
|
19440
|
+
render: renderTextEllipsis
|
|
19441
|
+
}, {
|
|
19442
|
+
dataIndex: 'specNo',
|
|
19443
|
+
title: "\u5546\u5BB6\u7F16\u7801",
|
|
19444
|
+
width: 200,
|
|
19445
|
+
align: 'center',
|
|
19446
|
+
ellipsis: true,
|
|
19447
|
+
render: renderTextEllipsis
|
|
19448
|
+
}, {
|
|
19449
|
+
dataIndex: 'specCode',
|
|
19450
|
+
title: "\u89C4\u683C\u7F16\u53F7",
|
|
19451
|
+
width: 150,
|
|
19452
|
+
align: 'center',
|
|
19453
|
+
ellipsis: true,
|
|
19454
|
+
render: renderTextEllipsis
|
|
19455
|
+
}, {
|
|
19456
|
+
dataIndex: 'barcode',
|
|
19457
|
+
title: "\u6761\u7801",
|
|
19458
|
+
width: 150,
|
|
19459
|
+
align: 'center',
|
|
19460
|
+
ellipsis: true,
|
|
19461
|
+
render: renderTextEllipsis
|
|
19462
|
+
}, {
|
|
19463
|
+
dataIndex: 'apiGoodsName',
|
|
19464
|
+
title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
|
|
19465
|
+
width: 250,
|
|
19466
|
+
align: 'center',
|
|
19467
|
+
ellipsis: true,
|
|
19468
|
+
render: renderTextEllipsis
|
|
19469
|
+
}, {
|
|
19470
|
+
dataIndex: 'apiSpecName',
|
|
19471
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
19472
|
+
width: 250,
|
|
19473
|
+
align: 'center',
|
|
19474
|
+
ellipsis: true,
|
|
19475
|
+
render: renderTextEllipsis
|
|
19476
|
+
}, {
|
|
19477
|
+
dataIndex: 'suiteName',
|
|
19478
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
19479
|
+
width: 150,
|
|
19480
|
+
align: 'center',
|
|
19481
|
+
ellipsis: true,
|
|
19482
|
+
render: renderTextEllipsis
|
|
19483
|
+
}, {
|
|
19484
|
+
dataIndex: 'suiteNo',
|
|
19485
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
19486
|
+
width: 150,
|
|
19487
|
+
align: 'center',
|
|
19488
|
+
ellipsis: true,
|
|
19489
|
+
render: renderTextEllipsis
|
|
19490
|
+
}, {
|
|
19491
|
+
dataIndex: 'stockinNum',
|
|
19492
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
19493
|
+
width: 150,
|
|
19494
|
+
align: 'center',
|
|
19495
|
+
ellipsis: true,
|
|
19496
|
+
render: renderTextEllipsis
|
|
19497
|
+
}, {
|
|
19498
|
+
dataIndex: 'refundNum',
|
|
19499
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
19500
|
+
width: 150,
|
|
19501
|
+
align: 'center',
|
|
19502
|
+
ellipsis: true,
|
|
19503
|
+
render: renderTextEllipsis
|
|
19504
|
+
}, {
|
|
19505
|
+
dataIndex: 'totalAmount',
|
|
19506
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
19507
|
+
width: 150,
|
|
19508
|
+
align: 'center',
|
|
19509
|
+
ellipsis: true,
|
|
19510
|
+
render: renderTextEllipsis
|
|
19511
|
+
}, {
|
|
19512
|
+
dataIndex: 'refundAmount',
|
|
19513
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
19514
|
+
width: 150,
|
|
19515
|
+
align: 'center',
|
|
19516
|
+
ellipsis: true,
|
|
19517
|
+
render: renderTextEllipsis
|
|
19518
|
+
}, {
|
|
19519
|
+
dataIndex: 'orderNum',
|
|
19520
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
19521
|
+
width: 150,
|
|
19522
|
+
align: 'center',
|
|
19523
|
+
ellipsis: true,
|
|
19524
|
+
render: renderTextEllipsis
|
|
19525
|
+
}, {
|
|
19526
|
+
dataIndex: 'price',
|
|
19527
|
+
title: "\u4EF7\u683C",
|
|
19528
|
+
width: 150,
|
|
19529
|
+
align: 'center',
|
|
19530
|
+
ellipsis: true,
|
|
19531
|
+
render: renderTextEllipsis
|
|
19532
|
+
}, {
|
|
19533
|
+
dataIndex: 'originalPrice',
|
|
19534
|
+
title: "\u539F\u4EF7",
|
|
19535
|
+
width: 150,
|
|
19536
|
+
align: 'center',
|
|
19537
|
+
ellipsis: true,
|
|
19538
|
+
render: renderTextEllipsis
|
|
19539
|
+
}, {
|
|
19540
|
+
dataIndex: 'giftType',
|
|
19541
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
19542
|
+
width: 150,
|
|
19543
|
+
align: 'center',
|
|
19544
|
+
ellipsis: true,
|
|
19545
|
+
render: renderTextEllipsis
|
|
19344
19546
|
}]
|
|
19345
19547
|
};
|
|
19346
19548
|
};
|
|
@@ -20023,7 +20225,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20023
20225
|
ellipsis: true,
|
|
20024
20226
|
align: 'center',
|
|
20025
20227
|
render: function render(val, record, index) {
|
|
20026
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20228
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20027
20229
|
}
|
|
20028
20230
|
}, {
|
|
20029
20231
|
dataIndex: 'batchId',
|
|
@@ -20311,7 +20513,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20311
20513
|
dataIndex: 'saleAmount',
|
|
20312
20514
|
title: '总金额',
|
|
20313
20515
|
render: function render(val, record) {
|
|
20314
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20516
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20315
20517
|
}
|
|
20316
20518
|
}, {
|
|
20317
20519
|
dataIndex: 'batchId',
|
|
@@ -20426,7 +20628,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20426
20628
|
dataIndex: 'saleAmount',
|
|
20427
20629
|
title: '总金额',
|
|
20428
20630
|
render: function render(val, record) {
|
|
20429
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20631
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20430
20632
|
}
|
|
20431
20633
|
}, {
|
|
20432
20634
|
dataIndex: 'isGift',
|
|
@@ -20461,7 +20663,161 @@ var getColumns$5 = function getColumns() {
|
|
|
20461
20663
|
}
|
|
20462
20664
|
}) : renderTextEllipsis(val);
|
|
20463
20665
|
}
|
|
20464
|
-
}].map(fillAttrs)
|
|
20666
|
+
}].map(fillAttrs),
|
|
20667
|
+
// jst售后商品信息
|
|
20668
|
+
JST_AFTERSALE_GOODS: [{
|
|
20669
|
+
dataIndex: 'asId',
|
|
20670
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20671
|
+
width: 200,
|
|
20672
|
+
align: 'center',
|
|
20673
|
+
ellipsis: true,
|
|
20674
|
+
render: renderTextEllipsis
|
|
20675
|
+
}, {
|
|
20676
|
+
dataIndex: 'asiId',
|
|
20677
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
20678
|
+
width: 200,
|
|
20679
|
+
align: 'center',
|
|
20680
|
+
ellipsis: true,
|
|
20681
|
+
render: renderTextEllipsis
|
|
20682
|
+
}, {
|
|
20683
|
+
dataIndex: 'outerOiId',
|
|
20684
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
20685
|
+
width: 200,
|
|
20686
|
+
align: 'center',
|
|
20687
|
+
ellipsis: true,
|
|
20688
|
+
render: renderTextEllipsis
|
|
20689
|
+
}, {
|
|
20690
|
+
dataIndex: 'pic',
|
|
20691
|
+
title: "\u56FE\u7247",
|
|
20692
|
+
width: 100,
|
|
20693
|
+
align: 'center',
|
|
20694
|
+
render: function render(val) {
|
|
20695
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20696
|
+
width: 30,
|
|
20697
|
+
src: val
|
|
20698
|
+
});
|
|
20699
|
+
},
|
|
20700
|
+
headerComponentType: 'pic'
|
|
20701
|
+
}, {
|
|
20702
|
+
dataIndex: 'name',
|
|
20703
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20704
|
+
width: 250,
|
|
20705
|
+
align: 'center',
|
|
20706
|
+
ellipsis: true,
|
|
20707
|
+
render: renderTextEllipsis
|
|
20708
|
+
}, {
|
|
20709
|
+
dataIndex: 'skuId',
|
|
20710
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20711
|
+
width: 200,
|
|
20712
|
+
align: 'center',
|
|
20713
|
+
ellipsis: true,
|
|
20714
|
+
render: renderTextEllipsis
|
|
20715
|
+
}, {
|
|
20716
|
+
dataIndex: 'propertiesValue',
|
|
20717
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
20718
|
+
width: 150,
|
|
20719
|
+
align: 'center',
|
|
20720
|
+
ellipsis: true,
|
|
20721
|
+
render: renderTextEllipsis
|
|
20722
|
+
}, {
|
|
20723
|
+
dataIndex: 'qty',
|
|
20724
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
20725
|
+
width: 150,
|
|
20726
|
+
align: 'center',
|
|
20727
|
+
ellipsis: true,
|
|
20728
|
+
render: renderTextEllipsis
|
|
20729
|
+
}, {
|
|
20730
|
+
dataIndex: 'rQty',
|
|
20731
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20732
|
+
width: 150,
|
|
20733
|
+
align: 'center',
|
|
20734
|
+
ellipsis: true,
|
|
20735
|
+
render: renderTextEllipsis
|
|
20736
|
+
}, {
|
|
20737
|
+
dataIndex: 'defectiveQty',
|
|
20738
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
20739
|
+
width: 150,
|
|
20740
|
+
align: 'center',
|
|
20741
|
+
ellipsis: true,
|
|
20742
|
+
render: renderTextEllipsis
|
|
20743
|
+
}, {
|
|
20744
|
+
dataIndex: 'amount',
|
|
20745
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20746
|
+
width: 150,
|
|
20747
|
+
align: 'center',
|
|
20748
|
+
ellipsis: true,
|
|
20749
|
+
render: renderTextEllipsis
|
|
20750
|
+
}, {
|
|
20751
|
+
dataIndex: 'shopAmount',
|
|
20752
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
20753
|
+
width: 150,
|
|
20754
|
+
align: 'center',
|
|
20755
|
+
ellipsis: true,
|
|
20756
|
+
render: renderTextEllipsis
|
|
20757
|
+
}, {
|
|
20758
|
+
dataIndex: 'price',
|
|
20759
|
+
title: "\u5355\u4EF7",
|
|
20760
|
+
width: 150,
|
|
20761
|
+
align: 'center',
|
|
20762
|
+
ellipsis: true,
|
|
20763
|
+
render: renderTextEllipsis
|
|
20764
|
+
}, {
|
|
20765
|
+
dataIndex: 'combineSkuId',
|
|
20766
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20767
|
+
width: 200,
|
|
20768
|
+
align: 'center',
|
|
20769
|
+
ellipsis: true,
|
|
20770
|
+
render: renderTextEllipsis
|
|
20771
|
+
}, {
|
|
20772
|
+
dataIndex: 'shopSkuId',
|
|
20773
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
20774
|
+
width: 200,
|
|
20775
|
+
align: 'center',
|
|
20776
|
+
ellipsis: true,
|
|
20777
|
+
render: renderTextEllipsis
|
|
20778
|
+
}, {
|
|
20779
|
+
dataIndex: 'iId',
|
|
20780
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
20781
|
+
width: 200,
|
|
20782
|
+
align: 'center',
|
|
20783
|
+
ellipsis: true,
|
|
20784
|
+
render: renderTextEllipsis
|
|
20785
|
+
}, {
|
|
20786
|
+
dataIndex: 'type',
|
|
20787
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
20788
|
+
width: 150,
|
|
20789
|
+
align: 'center',
|
|
20790
|
+
ellipsis: true,
|
|
20791
|
+
render: renderTextEllipsis
|
|
20792
|
+
}, {
|
|
20793
|
+
dataIndex: 'skuType',
|
|
20794
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20795
|
+
width: 150,
|
|
20796
|
+
align: 'center',
|
|
20797
|
+
ellipsis: true,
|
|
20798
|
+
render: renderTextEllipsis
|
|
20799
|
+
}, {
|
|
20800
|
+
dataIndex: 'isGift',
|
|
20801
|
+
title: '是否赠品',
|
|
20802
|
+
width: 100,
|
|
20803
|
+
render: function render(val) {
|
|
20804
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20805
|
+
}
|
|
20806
|
+
}, {
|
|
20807
|
+
dataIndex: 'receiveDate',
|
|
20808
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20809
|
+
width: 200,
|
|
20810
|
+
align: 'center',
|
|
20811
|
+
ellipsis: true,
|
|
20812
|
+
render: renderTextEllipsis
|
|
20813
|
+
}, {
|
|
20814
|
+
dataIndex: 'remark',
|
|
20815
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
20816
|
+
width: 200,
|
|
20817
|
+
align: 'center',
|
|
20818
|
+
ellipsis: true,
|
|
20819
|
+
render: renderTextEllipsis
|
|
20820
|
+
}]
|
|
20465
20821
|
};
|
|
20466
20822
|
};
|
|
20467
20823
|
|
|
@@ -21132,6 +21488,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21132
21488
|
width: 150,
|
|
21133
21489
|
render: function render(val, record, index) {
|
|
21134
21490
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21491
|
+
dropdownStyle: {
|
|
21492
|
+
zIndex: 2000
|
|
21493
|
+
},
|
|
21494
|
+
getPopupContainer: function getPopupContainer() {
|
|
21495
|
+
return document.body;
|
|
21496
|
+
},
|
|
21135
21497
|
value: val,
|
|
21136
21498
|
onChange: function onChange(value) {
|
|
21137
21499
|
updateHandle(value, index, 'bfit');
|
|
@@ -21161,6 +21523,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21161
21523
|
width: 150,
|
|
21162
21524
|
render: function render(val, record, index) {
|
|
21163
21525
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21526
|
+
dropdownStyle: {
|
|
21527
|
+
zIndex: 2000
|
|
21528
|
+
},
|
|
21529
|
+
getPopupContainer: function getPopupContainer() {
|
|
21530
|
+
return document.body;
|
|
21531
|
+
},
|
|
21164
21532
|
value: val,
|
|
21165
21533
|
onChange: function onChange(value) {
|
|
21166
21534
|
updateHandle(value, index, 'gift');
|
|
@@ -21820,11 +22188,17 @@ var systemOrderNoMap = {
|
|
|
21820
22188
|
GY_GOODS: 'code',
|
|
21821
22189
|
KM_GOODS: 'sid',
|
|
21822
22190
|
WDT_GOODS: 'tradeNo',
|
|
22191
|
+
WDT_AFTERSALE_GOODS: 'tid',
|
|
21823
22192
|
BS_E3_GOODS: 'orderSn',
|
|
21824
22193
|
JST_GOODS: 'oId',
|
|
21825
22194
|
WLN_GOODS: 'tradeNo',
|
|
21826
22195
|
JY_GOODS: 'tradeNo',
|
|
21827
|
-
JY_REISSUE_GOODS: 'tradeNo'
|
|
22196
|
+
JY_REISSUE_GOODS: 'tradeNo',
|
|
22197
|
+
KM_REISSUE_GOODS: 'sid',
|
|
22198
|
+
JST_REISSUE_GOODS: 'oId',
|
|
22199
|
+
GY_REISSUE_GOODS: 'code',
|
|
22200
|
+
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
22201
|
+
WDT_REISSUE_GOODS: 'tradeNo'
|
|
21828
22202
|
};
|
|
21829
22203
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21830
22204
|
var columns = _ref.columns,
|
|
@@ -21834,14 +22208,19 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21834
22208
|
onChangeSelectedKeys = _ref.onChangeSelectedKeys,
|
|
21835
22209
|
_ref$uniqueKey = _ref.uniqueKey,
|
|
21836
22210
|
uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey,
|
|
21837
|
-
_ref$
|
|
21838
|
-
|
|
22211
|
+
_ref$isShowSelect = _ref.isShowSelect,
|
|
22212
|
+
isShowSelect = _ref$isShowSelect === void 0 ? false : _ref$isShowSelect,
|
|
21839
22213
|
_ref$systemOrders = _ref.systemOrders,
|
|
21840
22214
|
systemOrders = _ref$systemOrders === void 0 ? [] : _ref$systemOrders,
|
|
21841
22215
|
_ref$selectedSystemOr = _ref.selectedSystemOrders,
|
|
22216
|
+
selectedSystemOrders = _ref$selectedSystemOr === void 0 ? [] : _ref$selectedSystemOr,
|
|
22217
|
+
_ref$validSystemOrder = _ref.validSystemOrder,
|
|
22218
|
+
validSystemOrder = _ref$validSystemOrder === void 0 ? false : _ref$validSystemOrder,
|
|
21842
22219
|
_ref$type = _ref.type,
|
|
21843
22220
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
21844
|
-
width = _ref.width
|
|
22221
|
+
width = _ref.width,
|
|
22222
|
+
_ref$isReissueType = _ref.isReissueType,
|
|
22223
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType;
|
|
21845
22224
|
var _useState = React.useState(),
|
|
21846
22225
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21847
22226
|
selectSystemNo = _useState2[0],
|
|
@@ -21851,6 +22230,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21851
22230
|
tradeGoodsVisible = _useState4[0],
|
|
21852
22231
|
setTradeGoodsVisible = _useState4[1];
|
|
21853
22232
|
var openModal = function openModal() {
|
|
22233
|
+
if (validSystemOrder) {
|
|
22234
|
+
antd.message.warning('请选择补发系统单');
|
|
22235
|
+
return;
|
|
22236
|
+
}
|
|
21854
22237
|
if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
21855
22238
|
getDataSourceAsync().then(function () {
|
|
21856
22239
|
setTradeGoodsVisible(true);
|
|
@@ -21858,15 +22241,11 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21858
22241
|
} else {
|
|
21859
22242
|
setTradeGoodsVisible(true);
|
|
21860
22243
|
}
|
|
21861
|
-
//
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
// );
|
|
21866
|
-
// setSelectSystemNo(codeList || []);
|
|
21867
|
-
// }
|
|
22244
|
+
// 补发直接传入的是systemNo
|
|
22245
|
+
if (isShowSelect && isReissueType) {
|
|
22246
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
22247
|
+
}
|
|
21868
22248
|
};
|
|
21869
|
-
|
|
21870
22249
|
var closeModal = function closeModal() {
|
|
21871
22250
|
return setTradeGoodsVisible(false);
|
|
21872
22251
|
};
|
|
@@ -21882,10 +22261,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21882
22261
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21883
22262
|
}));
|
|
21884
22263
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21885
|
-
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21886
|
-
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21887
|
-
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21888
|
-
}));
|
|
21889
22264
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21890
22265
|
};
|
|
21891
22266
|
var rowSelection = {
|
|
@@ -21910,7 +22285,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21910
22285
|
style: {
|
|
21911
22286
|
maxWidth: '1000px'
|
|
21912
22287
|
}
|
|
21913
|
-
},
|
|
22288
|
+
}, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
21914
22289
|
style: {
|
|
21915
22290
|
marginBottom: '12px'
|
|
21916
22291
|
}
|
|
@@ -22014,13 +22389,17 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22014
22389
|
systemOrders = props.systemOrders,
|
|
22015
22390
|
selectedSystemOrders = props.selectedSystemOrders,
|
|
22016
22391
|
_props$templateDetail = props.templateDetail,
|
|
22017
|
-
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail
|
|
22392
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
22393
|
+
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
22394
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
|
|
22395
|
+
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
22018
22396
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
22019
22397
|
// 监听聚水潭退货商品
|
|
22020
22398
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
22021
22399
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22022
|
-
//
|
|
22023
|
-
var
|
|
22400
|
+
// 判断是否为是否展示系统单筛选项
|
|
22401
|
+
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;
|
|
22402
|
+
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;
|
|
22024
22403
|
var refModal = React.useRef();
|
|
22025
22404
|
console.debug('表格数据', value);
|
|
22026
22405
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22093,6 +22472,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22093
22472
|
var columns = [];
|
|
22094
22473
|
switch (type) {
|
|
22095
22474
|
case 'WDT_GOODS':
|
|
22475
|
+
case 'WDT_AFTERSALE_GOODS':
|
|
22096
22476
|
case 'WDT_RETURN_GOODS':
|
|
22097
22477
|
case 'WDT_EXCHANGE_GOODS':
|
|
22098
22478
|
case 'BS_E3_GOODS':
|
|
@@ -22103,6 +22483,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22103
22483
|
case 'JST_REISSUE_GOODS':
|
|
22104
22484
|
case 'JST_EXCHANGE_GOODS':
|
|
22105
22485
|
case 'JST_RETURN_GOODS':
|
|
22486
|
+
case 'JST_AFTERSALE_GOODS':
|
|
22106
22487
|
case 'GY_REISSUE_GOODS':
|
|
22107
22488
|
case 'GY_RETURN_GOODS':
|
|
22108
22489
|
case 'KM_GOODS':
|
|
@@ -22195,7 +22576,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22195
22576
|
render: function render(val, record, index) {
|
|
22196
22577
|
return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
|
|
22197
22578
|
index: index,
|
|
22198
|
-
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
22579
|
+
hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
|
|
22199
22580
|
handleClick: function handleClick() {
|
|
22200
22581
|
return handleDelete(record, index);
|
|
22201
22582
|
}
|
|
@@ -22210,7 +22591,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22210
22591
|
ellipsis: true,
|
|
22211
22592
|
width: 100,
|
|
22212
22593
|
render: function render(val, record, index) {
|
|
22213
|
-
return record.canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
22594
|
+
return record.canDelete || canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
22214
22595
|
type: "link",
|
|
22215
22596
|
onClick: function onClick() {
|
|
22216
22597
|
return handleDelete(record, index);
|
|
@@ -22296,6 +22677,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22296
22677
|
return params;
|
|
22297
22678
|
}, [tableSelect, selectedRowKeys, value]);
|
|
22298
22679
|
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
22680
|
+
var validSystemOrder = React.useMemo(function () {
|
|
22681
|
+
return ['GY_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'KM_REISSUE_GOODS'].includes(type) && !hasSelectedSystemOrder;
|
|
22682
|
+
}, [type, hasSelectedSystemOrder]);
|
|
22299
22683
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22300
22684
|
style: {
|
|
22301
22685
|
float: 'right'
|
|
@@ -22304,7 +22688,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22304
22688
|
checked: isStrict,
|
|
22305
22689
|
onChange: handleCheckboxChange
|
|
22306
22690
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !lodash.isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React__default['default'].createElement(SelectTradeGoods, {
|
|
22307
|
-
|
|
22691
|
+
validSystemOrder: validSystemOrder,
|
|
22692
|
+
isShowSelect: isShowSelect,
|
|
22308
22693
|
uniqueKey: uniqueKey,
|
|
22309
22694
|
type: type,
|
|
22310
22695
|
columns: orderModalColumns,
|
|
@@ -22314,7 +22699,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22314
22699
|
onChangeSelectedKeys: tradeGoods.selectedGoodsChange,
|
|
22315
22700
|
systemOrders: systemOrders,
|
|
22316
22701
|
selectedSystemOrders: selectedSystemOrders,
|
|
22317
|
-
width: width || 850
|
|
22702
|
+
width: width || 850,
|
|
22703
|
+
isReissueType: isReissueType
|
|
22318
22704
|
}), showErpGoodsBtn && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
22319
22705
|
type: "link",
|
|
22320
22706
|
onClick: handleChangeGoods
|
|
@@ -23364,7 +23750,8 @@ var columnsMap = {
|
|
|
23364
23750
|
BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
23365
23751
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23366
23752
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23367
|
-
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
|
|
23753
|
+
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
23754
|
+
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23368
23755
|
};
|
|
23369
23756
|
var rowKeyMap = {
|
|
23370
23757
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -23374,7 +23761,8 @@ var rowKeyMap = {
|
|
|
23374
23761
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
23375
23762
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23376
23763
|
JST_SYSTEM_ORDER: 'oId',
|
|
23377
|
-
JY_SYSTEM_ORDER: 'tradeNo'
|
|
23764
|
+
JY_SYSTEM_ORDER: 'tradeNo',
|
|
23765
|
+
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23378
23766
|
};
|
|
23379
23767
|
var index$2 = (function (props) {
|
|
23380
23768
|
var value = props.value,
|
|
@@ -23388,6 +23776,7 @@ var index$2 = (function (props) {
|
|
|
23388
23776
|
React.useEffect(function () {
|
|
23389
23777
|
var _value$orders, _value$showOrderInfo;
|
|
23390
23778
|
valueRef.current = value;
|
|
23779
|
+
console.log('value77777777', value);
|
|
23391
23780
|
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) {
|
|
23392
23781
|
onceRef.current = true;
|
|
23393
23782
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24854,10 +25243,39 @@ var componentMap$2 = {
|
|
|
24854
25243
|
exchangeDeleteGood: 'jyExchangeDeleteGood'
|
|
24855
25244
|
},
|
|
24856
25245
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25246
|
+
},
|
|
25247
|
+
WDT_AFTERSALE_GOODS: {
|
|
25248
|
+
type: 'wdtAftersale',
|
|
25249
|
+
key: 'wdtAftersaleGoods',
|
|
25250
|
+
name: '旺店通售后',
|
|
25251
|
+
orderNo: 'srcTids',
|
|
25252
|
+
goodDetailOrderNo: 'srcTids',
|
|
25253
|
+
showChangeBtn: false,
|
|
25254
|
+
eventNameMap: {
|
|
25255
|
+
// pubsub 事件
|
|
25256
|
+
type: 'wdtAftersaleType',
|
|
25257
|
+
updateGoodsHandle: kmkfUtils.updateWdtAftersaleGoodsHandle,
|
|
25258
|
+
reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
|
|
25259
|
+
},
|
|
25260
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25261
|
+
},
|
|
25262
|
+
JST_AFTERSALE_GOODS: {
|
|
25263
|
+
type: 'jstAftersale',
|
|
25264
|
+
key: 'jstAftersaleGoods',
|
|
25265
|
+
name: 'jst售后',
|
|
25266
|
+
orderNo: 'asId',
|
|
25267
|
+
goodDetailOrderNo: 'asId',
|
|
25268
|
+
showChangeBtn: false,
|
|
25269
|
+
eventNameMap: {
|
|
25270
|
+
// pubsub 事件
|
|
25271
|
+
type: 'jstAftersaleType',
|
|
25272
|
+
deleteGood: 'jstAftersaleDeleteGood'
|
|
25273
|
+
},
|
|
25274
|
+
getOrderList: jstUtils.getJstOrderListSingleton
|
|
24857
25275
|
}
|
|
24858
25276
|
};
|
|
24859
25277
|
var CommonGoods = function CommonGoods(props) {
|
|
24860
|
-
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
|
|
25278
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
24861
25279
|
var value = props.value,
|
|
24862
25280
|
disabled = props.disabled,
|
|
24863
25281
|
onChange = props.onChange,
|
|
@@ -25014,6 +25432,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25014
25432
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
25015
25433
|
var mode = _ref2.mode;
|
|
25016
25434
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25435
|
+
if (!updateHandle) return [];
|
|
25017
25436
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
25018
25437
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25019
25438
|
});
|
|
@@ -25028,6 +25447,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25028
25447
|
var mode = _ref3.mode;
|
|
25029
25448
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25030
25449
|
console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
25450
|
+
if (!updateHandle) return [];
|
|
25031
25451
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
25032
25452
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25033
25453
|
});
|
|
@@ -25088,6 +25508,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25088
25508
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25089
25509
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25090
25510
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25511
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
25091
25512
|
tradeGoods: {
|
|
25092
25513
|
originDataSource: getAllTradeGoodsDetails({
|
|
25093
25514
|
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
@@ -25436,11 +25857,12 @@ var typeMap$1 = {
|
|
|
25436
25857
|
money: 'orderPrice',
|
|
25437
25858
|
share: 'sharePrice'
|
|
25438
25859
|
},
|
|
25439
|
-
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25860
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton,
|
|
25861
|
+
isShowSelectTradeGoods: true
|
|
25440
25862
|
}
|
|
25441
25863
|
};
|
|
25442
25864
|
var wdtReissue = function wdtReissue(props) {
|
|
25443
|
-
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s6, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
25865
|
+
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;
|
|
25444
25866
|
var value = props.value,
|
|
25445
25867
|
onChange = props.onChange,
|
|
25446
25868
|
_props$reasonList = props.reasonList,
|
|
@@ -25469,36 +25891,6 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25469
25891
|
}
|
|
25470
25892
|
return;
|
|
25471
25893
|
}, [value]);
|
|
25472
|
-
// useEffect(() => {
|
|
25473
|
-
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
25474
|
-
// if (systemOrderNo) {
|
|
25475
|
-
// if (['1'].includes(value?.[typeMap[type]?.typeName]?.[0])) {
|
|
25476
|
-
// onChange?.({
|
|
25477
|
-
// ...value,
|
|
25478
|
-
// [typeMap[type]?.key]: getGoodDetails({
|
|
25479
|
-
// mode: isStrict
|
|
25480
|
-
// })
|
|
25481
|
-
// })
|
|
25482
|
-
// }
|
|
25483
|
-
// }
|
|
25484
|
-
// return;
|
|
25485
|
-
// }, [value?.[typeMap[type]?.systemOrderNo]]);
|
|
25486
|
-
// const getWdtOrderList = async (orderNo: string) => {
|
|
25487
|
-
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
25488
|
-
// const orders = data?.trades || [];
|
|
25489
|
-
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
25490
|
-
// return { billNo, billType, billTag }
|
|
25491
|
-
// });
|
|
25492
|
-
// onChange({
|
|
25493
|
-
// ...value,
|
|
25494
|
-
// [typeMap[type]?.systemOrder]: {
|
|
25495
|
-
// ...value[typeMap[type]?.systemOrder],
|
|
25496
|
-
// showOrderInfo,
|
|
25497
|
-
// orders,
|
|
25498
|
-
// },
|
|
25499
|
-
// });
|
|
25500
|
-
// })
|
|
25501
|
-
// };
|
|
25502
25894
|
var getOrderList = /*#__PURE__*/function () {
|
|
25503
25895
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
25504
25896
|
var _typeMap$type5;
|
|
@@ -25558,17 +25950,24 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25558
25950
|
}))));
|
|
25559
25951
|
};
|
|
25560
25952
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25561
|
-
var _typeMap$type14, _typeMap$type15
|
|
25953
|
+
var _typeMap$type14, _typeMap$type15;
|
|
25562
25954
|
var mode = _ref3.mode,
|
|
25563
|
-
sysOrderNo = _ref3.sysOrderNo
|
|
25955
|
+
sysOrderNo = _ref3.sysOrderNo,
|
|
25956
|
+
_ref3$isAllOrders = _ref3.isAllOrders,
|
|
25957
|
+
isAllOrders = _ref3$isAllOrders === void 0 ? false : _ref3$isAllOrders;
|
|
25564
25958
|
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];
|
|
25565
25959
|
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];
|
|
25566
25960
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
25567
25961
|
return order.tradeNo === systemOrderNo;
|
|
25568
25962
|
});
|
|
25569
|
-
var
|
|
25963
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
25964
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25965
|
+
var _order$goodDetails;
|
|
25966
|
+
return order === null || order === void 0 ? void 0 : (_order$goodDetails = order.goodDetails) === null || _order$goodDetails === void 0 ? void 0 : _order$goodDetails.length;
|
|
25967
|
+
});
|
|
25968
|
+
var goodDetails = hasGoodDetails ? kmkfUtils.updateWdtGoodsHandle([order]) : [];
|
|
25570
25969
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25571
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
25970
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25572
25971
|
return !orderNo || goodItem.srcTid === orderNo;
|
|
25573
25972
|
}) : goodDetails;
|
|
25574
25973
|
};
|
|
@@ -25671,7 +26070,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25671
26070
|
type: type,
|
|
25672
26071
|
disabled: disabled,
|
|
25673
26072
|
canUpdateNumber: showChangeBtn,
|
|
25674
|
-
|
|
26073
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
26074
|
+
// showChangeBtn={showChangeBtn}
|
|
25675
26075
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25676
26076
|
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)],
|
|
25677
26077
|
onChange: function onChange(val) {
|
|
@@ -25680,9 +26080,13 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25680
26080
|
onModeChange: handleModeChange,
|
|
25681
26081
|
showModeBtn: showModeBtn,
|
|
25682
26082
|
isStrict: isStrict,
|
|
26083
|
+
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,
|
|
26084
|
+
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,
|
|
26085
|
+
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)]] : [],
|
|
25683
26086
|
tradeGoods: {
|
|
25684
26087
|
originDataSource: getGoodDetails({
|
|
25685
|
-
mode: isStrict
|
|
26088
|
+
mode: isStrict,
|
|
26089
|
+
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
|
|
25686
26090
|
}),
|
|
25687
26091
|
selectedGoodsChange: selectedGoodsChange
|
|
25688
26092
|
}
|
|
@@ -25706,7 +26110,8 @@ var typeMap$2 = {
|
|
|
25706
26110
|
outerOiIdKey: '',
|
|
25707
26111
|
goodDetailsKey: 'items',
|
|
25708
26112
|
mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
|
|
25709
|
-
uniqueKey: 'uuid'
|
|
26113
|
+
uniqueKey: 'uuid',
|
|
26114
|
+
isShowSelectTradeGoods: true
|
|
25710
26115
|
},
|
|
25711
26116
|
JST_RETURN_GOODS: {
|
|
25712
26117
|
compType: '退货',
|
|
@@ -25745,7 +26150,8 @@ var typeMap$2 = {
|
|
|
25745
26150
|
oIdKey: 'billNo',
|
|
25746
26151
|
outerOiIdKey: '',
|
|
25747
26152
|
goodDetailsKey: 'subOrders',
|
|
25748
|
-
uniqueKey: 'id'
|
|
26153
|
+
uniqueKey: 'id',
|
|
26154
|
+
isShowSelectTradeGoods: true
|
|
25749
26155
|
},
|
|
25750
26156
|
JY_REISSUE_GOODS: {
|
|
25751
26157
|
compType: '补发',
|
|
@@ -25764,7 +26170,7 @@ var typeMap$2 = {
|
|
|
25764
26170
|
}
|
|
25765
26171
|
};
|
|
25766
26172
|
var PublicReissue = function PublicReissue(props) {
|
|
25767
|
-
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,
|
|
26173
|
+
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;
|
|
25768
26174
|
var value = props.value,
|
|
25769
26175
|
onChange = props.onChange,
|
|
25770
26176
|
_props$reasonList = props.reasonList,
|
|
@@ -26033,25 +26439,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26033
26439
|
type: type,
|
|
26034
26440
|
disabled: disabled,
|
|
26035
26441
|
canUpdateNumber: showChangeBtn,
|
|
26036
|
-
|
|
26037
|
-
|
|
26038
|
-
|
|
26442
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
26443
|
+
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26444
|
+
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,
|
|
26445
|
+
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26039
26446
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26040
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26447
|
+
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)],
|
|
26041
26448
|
onChange: function onChange(val) {
|
|
26042
26449
|
return changeGoodHandle(val);
|
|
26043
26450
|
},
|
|
26044
26451
|
onModeChange: handleModeChange,
|
|
26045
26452
|
showModeBtn: false,
|
|
26046
26453
|
isStrict: isStrict,
|
|
26047
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26048
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26454
|
+
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,
|
|
26455
|
+
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,
|
|
26456
|
+
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)]] : [],
|
|
26049
26457
|
tradeGoods: {
|
|
26050
26458
|
originDataSource: getGoodDetails({
|
|
26051
26459
|
mode: isStrict,
|
|
26052
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26460
|
+
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
|
|
26053
26461
|
}),
|
|
26054
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26462
|
+
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',
|
|
26055
26463
|
selectedGoodsChange: selectedGoodsChange
|
|
26056
26464
|
}
|
|
26057
26465
|
})));
|
|
@@ -26794,7 +27202,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
26794
27202
|
onClick: function onClick() {
|
|
26795
27203
|
return setChangeIndex(index);
|
|
26796
27204
|
}
|
|
26797
|
-
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
27205
|
+
}, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
|
|
26798
27206
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
26799
27207
|
showSearch: true,
|
|
26800
27208
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -26839,11 +27247,12 @@ var typeMap$3 = {
|
|
|
26839
27247
|
typeName: 'bsE3ReissueType',
|
|
26840
27248
|
systemOrder: 'bsE3SystemOrder',
|
|
26841
27249
|
systemOrderNo: 'bsE3SystemOrderNo',
|
|
26842
|
-
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
27250
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton,
|
|
27251
|
+
isShowSelectTradeGoods: true
|
|
26843
27252
|
}
|
|
26844
27253
|
};
|
|
26845
27254
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
26846
|
-
var _typeMap$type22, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s6, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
27255
|
+
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;
|
|
26847
27256
|
var value = props.value,
|
|
26848
27257
|
onChange = props.onChange,
|
|
26849
27258
|
_props$reasonList = props.reasonList,
|
|
@@ -26945,17 +27354,24 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
26945
27354
|
}))));
|
|
26946
27355
|
};
|
|
26947
27356
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26948
|
-
var _typeMap$type13, _typeMap$type14
|
|
27357
|
+
var _typeMap$type13, _typeMap$type14;
|
|
26949
27358
|
var mode = _ref4.mode,
|
|
26950
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
27359
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
27360
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
27361
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
26951
27362
|
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];
|
|
26952
27363
|
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];
|
|
26953
27364
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
26954
27365
|
return order.orderSn === systemOrderNo;
|
|
26955
27366
|
});
|
|
26956
|
-
var
|
|
27367
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27368
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27369
|
+
var _order$orderDetailGet;
|
|
27370
|
+
return order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length;
|
|
27371
|
+
});
|
|
27372
|
+
var goodDetails = hasGoodDetails ? kmkfUtils.updateBsE3GoodsHandle([order], 'sharePrice') : [];
|
|
26957
27373
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26958
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27374
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26959
27375
|
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
26960
27376
|
}) : goodDetails;
|
|
26961
27377
|
};
|
|
@@ -27056,7 +27472,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27056
27472
|
type: type,
|
|
27057
27473
|
disabled: disabled,
|
|
27058
27474
|
canUpdateNumber: showChangeBtn,
|
|
27059
|
-
|
|
27475
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27476
|
+
// showChangeBtn={showChangeBtn}
|
|
27060
27477
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27061
27478
|
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)],
|
|
27062
27479
|
onChange: function onChange(val) {
|
|
@@ -27065,9 +27482,13 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
27065
27482
|
onModeChange: handleModeChange,
|
|
27066
27483
|
showModeBtn: false,
|
|
27067
27484
|
isStrict: isStrict,
|
|
27485
|
+
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,
|
|
27486
|
+
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,
|
|
27487
|
+
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)]] : [],
|
|
27068
27488
|
tradeGoods: {
|
|
27069
27489
|
originDataSource: getGoodDetails({
|
|
27070
|
-
mode: isStrict
|
|
27490
|
+
mode: isStrict,
|
|
27491
|
+
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
|
|
27071
27492
|
}),
|
|
27072
27493
|
selectedGoodsChange: selectedGoodsChange
|
|
27073
27494
|
}
|
|
@@ -27096,11 +27517,12 @@ var typeMap$4 = {
|
|
|
27096
27517
|
money: 'orderPrice',
|
|
27097
27518
|
share: 'sharePrice'
|
|
27098
27519
|
},
|
|
27099
|
-
getOrderList: gyUtils.getGyOrderListSingleton
|
|
27520
|
+
getOrderList: gyUtils.getGyOrderListSingleton,
|
|
27521
|
+
isShowSelectTradeGoods: true
|
|
27100
27522
|
}
|
|
27101
27523
|
};
|
|
27102
27524
|
var GyReissue = function GyReissue(props) {
|
|
27103
|
-
var _typeMap$
|
|
27525
|
+
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;
|
|
27104
27526
|
var value = props.value,
|
|
27105
27527
|
onChange = props.onChange,
|
|
27106
27528
|
_props$reasonList = props.reasonList,
|
|
@@ -27246,17 +27668,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27246
27668
|
}))));
|
|
27247
27669
|
};
|
|
27248
27670
|
var getGoodDetails = function getGoodDetails(_ref7) {
|
|
27249
|
-
var _ref8, _typeMap$type19, _ref9, _typeMap$type20
|
|
27671
|
+
var _ref8, _typeMap$type19, _ref9, _typeMap$type20;
|
|
27250
27672
|
var mode = _ref7.mode,
|
|
27251
|
-
sysOrderNo = _ref7.sysOrderNo
|
|
27673
|
+
sysOrderNo = _ref7.sysOrderNo,
|
|
27674
|
+
_ref7$isAllOrders = _ref7.isAllOrders,
|
|
27675
|
+
isAllOrders = _ref7$isAllOrders === void 0 ? false : _ref7$isAllOrders;
|
|
27252
27676
|
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];
|
|
27253
27677
|
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];
|
|
27254
27678
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
27255
27679
|
return order.code === systemOrderNo;
|
|
27256
27680
|
});
|
|
27257
|
-
var
|
|
27681
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : [order];
|
|
27682
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27683
|
+
var _order$details;
|
|
27684
|
+
return order === null || order === void 0 ? void 0 : (_order$details = order.details) === null || _order$details === void 0 ? void 0 : _order$details.length;
|
|
27685
|
+
});
|
|
27686
|
+
var goodDetails = hasGoodDetails ? kmkfUtils.updateGyGoodsHandle(orders) : [];
|
|
27258
27687
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27259
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
27688
|
+
return mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27260
27689
|
return !orderNo || (orderNo || '').includes(goodItem.oid);
|
|
27261
27690
|
}) : goodDetails;
|
|
27262
27691
|
};
|
|
@@ -27293,25 +27722,26 @@ var GyReissue = function GyReissue(props) {
|
|
|
27293
27722
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27294
27723
|
};
|
|
27295
27724
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
27296
|
-
var _ref12, _typeMap$
|
|
27725
|
+
var _typeMap$type29, _ref12, _typeMap$type30, _typeMap$type31, _uniqBy;
|
|
27297
27726
|
kmkfUtils.pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
|
|
27298
27727
|
var newValue = _objectSpread2({}, valueRef.current || {});
|
|
27299
27728
|
// 原订单商品
|
|
27300
27729
|
var originTradeGoodList = getGoodDetails({
|
|
27301
|
-
mode: isStrict
|
|
27730
|
+
mode: isStrict,
|
|
27731
|
+
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
|
|
27302
27732
|
}) || [];
|
|
27303
27733
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27304
|
-
var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27305
|
-
newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27734
|
+
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)]) || [];
|
|
27735
|
+
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 = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
27306
27736
|
return skuList.includes(item.uuid);
|
|
27307
27737
|
});
|
|
27308
27738
|
// console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
|
|
27309
27739
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27310
27740
|
kmkfUtils.pushGyLog('afterSelectedGoodsChange', newValue);
|
|
27311
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27741
|
+
}, [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]);
|
|
27312
27742
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
27313
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27314
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
27743
|
+
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];
|
|
27744
|
+
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]);
|
|
27315
27745
|
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
27316
27746
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
27317
27747
|
gutter: 8,
|
|
@@ -27331,12 +27761,12 @@ var GyReissue = function GyReissue(props) {
|
|
|
27331
27761
|
},
|
|
27332
27762
|
disabled: disabled,
|
|
27333
27763
|
allowClear: false,
|
|
27334
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27764
|
+
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)],
|
|
27335
27765
|
onChange: function onChange(val) {
|
|
27336
27766
|
return changeSystemOrderHandle(val);
|
|
27337
27767
|
},
|
|
27338
27768
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
27339
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
27769
|
+
}, ((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) {
|
|
27340
27770
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
27341
27771
|
className: styles$6.systemNoDisabled,
|
|
27342
27772
|
key: item.billNo,
|
|
@@ -27350,7 +27780,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27350
27780
|
span: 12
|
|
27351
27781
|
},
|
|
27352
27782
|
sm: {
|
|
27353
|
-
span:
|
|
27783
|
+
span: 4
|
|
27354
27784
|
}
|
|
27355
27785
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
27356
27786
|
style: {
|
|
@@ -27360,7 +27790,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27360
27790
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27361
27791
|
allowClear: false,
|
|
27362
27792
|
options: reasonList,
|
|
27363
|
-
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$type37 = typeMap$4[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.typeName)],
|
|
27364
27794
|
onChange: function onChange(val) {
|
|
27365
27795
|
return changeTypeHandle(val);
|
|
27366
27796
|
}
|
|
@@ -27370,19 +27800,24 @@ var GyReissue = function GyReissue(props) {
|
|
|
27370
27800
|
type: type,
|
|
27371
27801
|
disabled: disabled,
|
|
27372
27802
|
canUpdateNumber: showChangeBtn,
|
|
27373
|
-
|
|
27374
|
-
|
|
27375
|
-
alwaysShowChooseErpGoodsBtn:
|
|
27803
|
+
// showChangeBtn={showChangeBtn}
|
|
27804
|
+
// showErpGoodsBtn={showErpGoodsBtn}
|
|
27805
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27806
|
+
hasSelectedSystemOrder: showChangeBtn,
|
|
27376
27807
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27377
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$
|
|
27808
|
+
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)],
|
|
27378
27809
|
onChange: function onChange(val) {
|
|
27379
27810
|
return changeGoodHandle(val);
|
|
27380
27811
|
},
|
|
27381
27812
|
onModeChange: handleModeChange,
|
|
27382
27813
|
isStrict: isStrict,
|
|
27814
|
+
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,
|
|
27815
|
+
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,
|
|
27816
|
+
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)]] : [],
|
|
27383
27817
|
tradeGoods: {
|
|
27384
27818
|
originDataSource: getGoodDetails({
|
|
27385
|
-
mode: isStrict
|
|
27819
|
+
mode: isStrict,
|
|
27820
|
+
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
|
|
27386
27821
|
}),
|
|
27387
27822
|
selectedGoodsChange: selectedGoodsChange
|
|
27388
27823
|
}
|
|
@@ -27648,7 +28083,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
27648
28083
|
span: 12
|
|
27649
28084
|
},
|
|
27650
28085
|
sm: {
|
|
27651
|
-
span:
|
|
28086
|
+
span: 4
|
|
27652
28087
|
}
|
|
27653
28088
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
27654
28089
|
style: {
|
|
@@ -28320,7 +28755,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28320
28755
|
BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28321
28756
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28322
28757
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28323
|
-
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
|
|
28758
|
+
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
28759
|
+
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28324
28760
|
};
|
|
28325
28761
|
|
|
28326
28762
|
exports.Address = ApaasAddress;
|