@kmkf-fe-packages/basic-components 2.2.30 → 2.2.31-beta.10
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/README.md +1 -1
- package/dist/index.esm.js +457 -34
- package/dist/index.js +455 -31
- package/dist/src/apaas/ApaasImage/index.d.ts +4 -0
- package/dist/src/apaas/SubForm/index.d.ts +1 -1
- package/dist/src/constants/systemOrderColumnsMap.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
|
-
import { Cascader, DatePicker, InputNumber, Input, Select, Upload,
|
|
2
|
+
import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Empty, Tag } from 'antd';
|
|
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';
|
|
@@ -566,6 +566,16 @@ var ApaasDate = function ApaasDate(props) {
|
|
|
566
566
|
}, otherProps));
|
|
567
567
|
};
|
|
568
568
|
|
|
569
|
+
var noFallbackUrlList = ['https://kefu.kuaimai.com', 'https://kefuab.kuaimai.com/'];
|
|
570
|
+
function ApaasImage(props) {
|
|
571
|
+
return /*#__PURE__*/React.createElement(Image, _objectSpread2({
|
|
572
|
+
fallback: props.src && props.src.startsWith('http') && !noFallbackUrlList.some(function (url) {
|
|
573
|
+
var _props$src;
|
|
574
|
+
return (_props$src = props.src) === null || _props$src === void 0 ? void 0 : _props$src.startsWith(url);
|
|
575
|
+
}) ? "http://kmgdimages.ycy-inc.cn/?url=".concat(props.src) : undefined
|
|
576
|
+
}, props));
|
|
577
|
+
}
|
|
578
|
+
|
|
569
579
|
var _excluded$1 = ["isNumber", "replaceWarn", "precision"];
|
|
570
580
|
function ApaasInput(props) {
|
|
571
581
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -8108,6 +8118,11 @@ var systemOrderMap = {
|
|
|
8108
8118
|
no: 'jstSystemOrderNo',
|
|
8109
8119
|
ids: 'jstSystemSelectIds',
|
|
8110
8120
|
order: 'jstSystemShowOrder'
|
|
8121
|
+
},
|
|
8122
|
+
WDT_RETURN_BILL_NO: {
|
|
8123
|
+
no: 'wdtReturnBillNo',
|
|
8124
|
+
ids: 'wdtReturnBillSelectIds',
|
|
8125
|
+
order: 'wdtReturnBillShowOrder'
|
|
8111
8126
|
}
|
|
8112
8127
|
};
|
|
8113
8128
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8680,6 +8695,52 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
|
8680
8695
|
};
|
|
8681
8696
|
};
|
|
8682
8697
|
};
|
|
8698
|
+
var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
|
|
8699
|
+
return function (getValue) {
|
|
8700
|
+
return function (nex, config) {
|
|
8701
|
+
var _values = {
|
|
8702
|
+
wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
|
|
8703
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8704
|
+
};
|
|
8705
|
+
var selectIds = [];
|
|
8706
|
+
var orderNo = '';
|
|
8707
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8708
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8709
|
+
});
|
|
8710
|
+
if (tradeId) {
|
|
8711
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8712
|
+
}
|
|
8713
|
+
var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8714
|
+
return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
|
|
8715
|
+
});
|
|
8716
|
+
if (wdtAftersaleSystemOrder) {
|
|
8717
|
+
selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
|
|
8718
|
+
}
|
|
8719
|
+
_values.selectIds = selectIds;
|
|
8720
|
+
_values.orderNo = orderNo;
|
|
8721
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8722
|
+
};
|
|
8723
|
+
};
|
|
8724
|
+
};
|
|
8725
|
+
var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
|
|
8726
|
+
return function (getValue) {
|
|
8727
|
+
return function (nex) {
|
|
8728
|
+
var _values = {
|
|
8729
|
+
jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
|
|
8730
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8731
|
+
};
|
|
8732
|
+
var orderNo = '';
|
|
8733
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8734
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8735
|
+
});
|
|
8736
|
+
if (tradeId) {
|
|
8737
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8738
|
+
}
|
|
8739
|
+
_values.orderNo = orderNo;
|
|
8740
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8741
|
+
};
|
|
8742
|
+
};
|
|
8743
|
+
};
|
|
8683
8744
|
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8684
8745
|
return function (getValue) {
|
|
8685
8746
|
return function (nex, config) {
|
|
@@ -8912,11 +8973,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8912
8973
|
no: 'jstSystemOrderNo',
|
|
8913
8974
|
ids: 'jstSystemSelectIds',
|
|
8914
8975
|
order: 'jstSystemShowOrder'
|
|
8976
|
+
},
|
|
8977
|
+
WDT_RETURN_BILL_NO: {
|
|
8978
|
+
no: 'wdtReturnBillNo',
|
|
8979
|
+
ids: 'wdtReturnBillSelectIds',
|
|
8980
|
+
order: 'wdtReturnBillShowOrder'
|
|
8915
8981
|
}
|
|
8916
8982
|
};
|
|
8917
8983
|
return _defineProperty({}, nex.uniqueKey, {
|
|
8918
8984
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8919
|
-
orders: [],
|
|
8985
|
+
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
8920
8986
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8921
8987
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8922
8988
|
});
|
|
@@ -9152,14 +9218,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9152
9218
|
};
|
|
9153
9219
|
var processLabel = function processLabel(getValue) {
|
|
9154
9220
|
return function (nex, config) {
|
|
9155
|
-
var
|
|
9156
|
-
return
|
|
9221
|
+
var _ref74;
|
|
9222
|
+
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
9223
|
};
|
|
9158
9224
|
};
|
|
9159
9225
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9160
9226
|
return function (nex, config) {
|
|
9161
|
-
var
|
|
9162
|
-
return
|
|
9227
|
+
var _ref75;
|
|
9228
|
+
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
9229
|
};
|
|
9164
9230
|
};
|
|
9165
9231
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9277,6 +9343,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9277
9343
|
BS_POSTING: processBsPosting,
|
|
9278
9344
|
BS_GOODS: processBsGoods,
|
|
9279
9345
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9346
|
+
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9347
|
+
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9280
9348
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9281
9349
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9282
9350
|
KM_GOODS: processKmGoods(templateColumns),
|
|
@@ -9293,6 +9361,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9293
9361
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9294
9362
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9295
9363
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9364
|
+
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9296
9365
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9297
9366
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9298
9367
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9907,8 +9976,8 @@ var SubForm = function SubForm(props) {
|
|
|
9907
9976
|
tableHeader = props.tableHeader,
|
|
9908
9977
|
disabled = props.disabled,
|
|
9909
9978
|
platform = props.platform,
|
|
9910
|
-
|
|
9911
|
-
|
|
9979
|
+
maxCount = props.maxCount,
|
|
9980
|
+
manual = props.manual;
|
|
9912
9981
|
var ref = useRef(null);
|
|
9913
9982
|
var isRequest = useRef(false);
|
|
9914
9983
|
var _useState = useState(false),
|
|
@@ -13350,7 +13419,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13350
13419
|
if (disabled) {
|
|
13351
13420
|
return;
|
|
13352
13421
|
}
|
|
13353
|
-
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13422
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13354
13423
|
return;
|
|
13355
13424
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13356
13425
|
return;
|
|
@@ -13486,7 +13555,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13486
13555
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13487
13556
|
});
|
|
13488
13557
|
};
|
|
13489
|
-
return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].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);
|
|
13558
|
+
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);
|
|
13490
13559
|
};
|
|
13491
13560
|
|
|
13492
13561
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -15858,6 +15927,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
15858
15927
|
var current = _ref.current,
|
|
15859
15928
|
pageSize = _ref.pageSize;
|
|
15860
15929
|
var data = {
|
|
15930
|
+
goodShortName: formData.goodShortName || null,
|
|
15861
15931
|
goodNo: formData.goodNo || null,
|
|
15862
15932
|
goodName: formData.goodName || null,
|
|
15863
15933
|
skuCode: formData.skuCode || null,
|
|
@@ -18835,7 +18905,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18835
18905
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18836
18906
|
width: 180,
|
|
18837
18907
|
align: 'center',
|
|
18838
|
-
ellipsis: true
|
|
18908
|
+
ellipsis: true,
|
|
18909
|
+
render: renderTextEllipsis
|
|
18839
18910
|
}, {
|
|
18840
18911
|
dataIndex: 'brandName',
|
|
18841
18912
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -18955,7 +19026,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18955
19026
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18956
19027
|
width: 180,
|
|
18957
19028
|
align: 'center',
|
|
18958
|
-
ellipsis: true
|
|
19029
|
+
ellipsis: true,
|
|
19030
|
+
render: renderTextEllipsis
|
|
18959
19031
|
}, {
|
|
18960
19032
|
dataIndex: 'brandName',
|
|
18961
19033
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19079,7 +19151,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19079
19151
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19080
19152
|
width: 180,
|
|
19081
19153
|
align: 'center',
|
|
19082
|
-
ellipsis: true
|
|
19154
|
+
ellipsis: true,
|
|
19155
|
+
render: renderTextEllipsis
|
|
19083
19156
|
}, {
|
|
19084
19157
|
dataIndex: 'brandName',
|
|
19085
19158
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19242,7 +19315,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19242
19315
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19243
19316
|
width: 180,
|
|
19244
19317
|
align: 'center',
|
|
19245
|
-
ellipsis: true
|
|
19318
|
+
ellipsis: true,
|
|
19319
|
+
render: renderTextEllipsis
|
|
19246
19320
|
}, {
|
|
19247
19321
|
dataIndex: 'brandName',
|
|
19248
19322
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19329,6 +19403,141 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19329
19403
|
}
|
|
19330
19404
|
}) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
19331
19405
|
}
|
|
19406
|
+
}],
|
|
19407
|
+
// 旺店通售后商品信息
|
|
19408
|
+
WDT_AFTERSALE_GOODS: [{
|
|
19409
|
+
dataIndex: 'oid',
|
|
19410
|
+
title: "\u539F\u59CB\u5B50\u5355\u53F7",
|
|
19411
|
+
width: 200,
|
|
19412
|
+
align: 'center',
|
|
19413
|
+
ellipsis: true,
|
|
19414
|
+
render: renderTextEllipsis
|
|
19415
|
+
}, {
|
|
19416
|
+
dataIndex: 'goodsName',
|
|
19417
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
19418
|
+
width: 250,
|
|
19419
|
+
align: 'center',
|
|
19420
|
+
ellipsis: true,
|
|
19421
|
+
render: renderTextEllipsis
|
|
19422
|
+
}, {
|
|
19423
|
+
dataIndex: 'goodsNo',
|
|
19424
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
19425
|
+
width: 150,
|
|
19426
|
+
align: 'center',
|
|
19427
|
+
ellipsis: true,
|
|
19428
|
+
render: renderTextEllipsis
|
|
19429
|
+
}, {
|
|
19430
|
+
dataIndex: 'specName',
|
|
19431
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
19432
|
+
width: 150,
|
|
19433
|
+
align: 'center',
|
|
19434
|
+
ellipsis: true,
|
|
19435
|
+
render: renderTextEllipsis
|
|
19436
|
+
}, {
|
|
19437
|
+
dataIndex: 'specNo',
|
|
19438
|
+
title: "\u5546\u5BB6\u7F16\u7801",
|
|
19439
|
+
width: 200,
|
|
19440
|
+
align: 'center',
|
|
19441
|
+
ellipsis: true,
|
|
19442
|
+
render: renderTextEllipsis
|
|
19443
|
+
}, {
|
|
19444
|
+
dataIndex: 'specCode',
|
|
19445
|
+
title: "\u89C4\u683C\u7F16\u53F7",
|
|
19446
|
+
width: 150,
|
|
19447
|
+
align: 'center',
|
|
19448
|
+
ellipsis: true,
|
|
19449
|
+
render: renderTextEllipsis
|
|
19450
|
+
}, {
|
|
19451
|
+
dataIndex: 'barcode',
|
|
19452
|
+
title: "\u6761\u7801",
|
|
19453
|
+
width: 150,
|
|
19454
|
+
align: 'center',
|
|
19455
|
+
ellipsis: true,
|
|
19456
|
+
render: renderTextEllipsis
|
|
19457
|
+
}, {
|
|
19458
|
+
dataIndex: 'apiGoodsName',
|
|
19459
|
+
title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
|
|
19460
|
+
width: 250,
|
|
19461
|
+
align: 'center',
|
|
19462
|
+
ellipsis: true,
|
|
19463
|
+
render: renderTextEllipsis
|
|
19464
|
+
}, {
|
|
19465
|
+
dataIndex: 'apiSpecName',
|
|
19466
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
19467
|
+
width: 250,
|
|
19468
|
+
align: 'center',
|
|
19469
|
+
ellipsis: true,
|
|
19470
|
+
render: renderTextEllipsis
|
|
19471
|
+
}, {
|
|
19472
|
+
dataIndex: 'suiteName',
|
|
19473
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
19474
|
+
width: 150,
|
|
19475
|
+
align: 'center',
|
|
19476
|
+
ellipsis: true,
|
|
19477
|
+
render: renderTextEllipsis
|
|
19478
|
+
}, {
|
|
19479
|
+
dataIndex: 'suiteNo',
|
|
19480
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
19481
|
+
width: 150,
|
|
19482
|
+
align: 'center',
|
|
19483
|
+
ellipsis: true,
|
|
19484
|
+
render: renderTextEllipsis
|
|
19485
|
+
}, {
|
|
19486
|
+
dataIndex: 'stockinNum',
|
|
19487
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
19488
|
+
width: 150,
|
|
19489
|
+
align: 'center',
|
|
19490
|
+
ellipsis: true,
|
|
19491
|
+
render: renderTextEllipsis
|
|
19492
|
+
}, {
|
|
19493
|
+
dataIndex: 'refundNum',
|
|
19494
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
19495
|
+
width: 150,
|
|
19496
|
+
align: 'center',
|
|
19497
|
+
ellipsis: true,
|
|
19498
|
+
render: renderTextEllipsis
|
|
19499
|
+
}, {
|
|
19500
|
+
dataIndex: 'totalAmount',
|
|
19501
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
19502
|
+
width: 150,
|
|
19503
|
+
align: 'center',
|
|
19504
|
+
ellipsis: true,
|
|
19505
|
+
render: renderTextEllipsis
|
|
19506
|
+
}, {
|
|
19507
|
+
dataIndex: 'refundAmount',
|
|
19508
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
19509
|
+
width: 150,
|
|
19510
|
+
align: 'center',
|
|
19511
|
+
ellipsis: true,
|
|
19512
|
+
render: renderTextEllipsis
|
|
19513
|
+
}, {
|
|
19514
|
+
dataIndex: 'orderNum',
|
|
19515
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
19516
|
+
width: 150,
|
|
19517
|
+
align: 'center',
|
|
19518
|
+
ellipsis: true,
|
|
19519
|
+
render: renderTextEllipsis
|
|
19520
|
+
}, {
|
|
19521
|
+
dataIndex: 'price',
|
|
19522
|
+
title: "\u4EF7\u683C",
|
|
19523
|
+
width: 150,
|
|
19524
|
+
align: 'center',
|
|
19525
|
+
ellipsis: true,
|
|
19526
|
+
render: renderTextEllipsis
|
|
19527
|
+
}, {
|
|
19528
|
+
dataIndex: 'originalPrice',
|
|
19529
|
+
title: "\u539F\u4EF7",
|
|
19530
|
+
width: 150,
|
|
19531
|
+
align: 'center',
|
|
19532
|
+
ellipsis: true,
|
|
19533
|
+
render: renderTextEllipsis
|
|
19534
|
+
}, {
|
|
19535
|
+
dataIndex: 'giftType',
|
|
19536
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
19537
|
+
width: 150,
|
|
19538
|
+
align: 'center',
|
|
19539
|
+
ellipsis: true,
|
|
19540
|
+
render: renderTextEllipsis
|
|
19332
19541
|
}]
|
|
19333
19542
|
};
|
|
19334
19543
|
};
|
|
@@ -19945,7 +20154,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19945
20154
|
align: 'center',
|
|
19946
20155
|
width: 100,
|
|
19947
20156
|
render: function render(val) {
|
|
19948
|
-
return /*#__PURE__*/React.createElement(
|
|
20157
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
19949
20158
|
width: 30,
|
|
19950
20159
|
src: val
|
|
19951
20160
|
});
|
|
@@ -20011,7 +20220,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20011
20220
|
ellipsis: true,
|
|
20012
20221
|
align: 'center',
|
|
20013
20222
|
render: function render(val, record, index) {
|
|
20014
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20223
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20015
20224
|
}
|
|
20016
20225
|
}, {
|
|
20017
20226
|
dataIndex: 'batchId',
|
|
@@ -20077,7 +20286,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20077
20286
|
align: 'center',
|
|
20078
20287
|
width: 100,
|
|
20079
20288
|
render: function render(val) {
|
|
20080
|
-
return /*#__PURE__*/React.createElement(
|
|
20289
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20081
20290
|
width: 30,
|
|
20082
20291
|
src: val
|
|
20083
20292
|
});
|
|
@@ -20220,7 +20429,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20220
20429
|
title: '商品图片',
|
|
20221
20430
|
width: 100,
|
|
20222
20431
|
render: function render(val) {
|
|
20223
|
-
return /*#__PURE__*/React.createElement(
|
|
20432
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20224
20433
|
width: 30,
|
|
20225
20434
|
src: val
|
|
20226
20435
|
});
|
|
@@ -20299,7 +20508,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20299
20508
|
dataIndex: 'saleAmount',
|
|
20300
20509
|
title: '总金额',
|
|
20301
20510
|
render: function render(val, record) {
|
|
20302
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20511
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20303
20512
|
}
|
|
20304
20513
|
}, {
|
|
20305
20514
|
dataIndex: 'batchId',
|
|
@@ -20361,7 +20570,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20361
20570
|
title: '商品图片',
|
|
20362
20571
|
width: 100,
|
|
20363
20572
|
render: function render(val) {
|
|
20364
|
-
return /*#__PURE__*/React.createElement(
|
|
20573
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20365
20574
|
width: 30,
|
|
20366
20575
|
src: val
|
|
20367
20576
|
});
|
|
@@ -20414,7 +20623,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20414
20623
|
dataIndex: 'saleAmount',
|
|
20415
20624
|
title: '总金额',
|
|
20416
20625
|
render: function render(val, record) {
|
|
20417
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20626
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20418
20627
|
}
|
|
20419
20628
|
}, {
|
|
20420
20629
|
dataIndex: 'isGift',
|
|
@@ -20449,7 +20658,169 @@ var getColumns$5 = function getColumns() {
|
|
|
20449
20658
|
}
|
|
20450
20659
|
}) : renderTextEllipsis(val);
|
|
20451
20660
|
}
|
|
20452
|
-
}].map(fillAttrs)
|
|
20661
|
+
}].map(fillAttrs),
|
|
20662
|
+
// jst售后商品信息
|
|
20663
|
+
JST_AFTERSALE_GOODS: [{
|
|
20664
|
+
dataIndex: 'asId',
|
|
20665
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20666
|
+
width: 200,
|
|
20667
|
+
align: 'center',
|
|
20668
|
+
ellipsis: true,
|
|
20669
|
+
render: renderTextEllipsis
|
|
20670
|
+
}, {
|
|
20671
|
+
dataIndex: 'asiId',
|
|
20672
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
20673
|
+
width: 200,
|
|
20674
|
+
align: 'center',
|
|
20675
|
+
ellipsis: true,
|
|
20676
|
+
render: renderTextEllipsis
|
|
20677
|
+
}, {
|
|
20678
|
+
dataIndex: 'outerOiId',
|
|
20679
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
20680
|
+
width: 200,
|
|
20681
|
+
align: 'center',
|
|
20682
|
+
ellipsis: true,
|
|
20683
|
+
render: renderTextEllipsis
|
|
20684
|
+
}, {
|
|
20685
|
+
dataIndex: 'pic',
|
|
20686
|
+
title: "\u56FE\u7247",
|
|
20687
|
+
width: 100,
|
|
20688
|
+
align: 'center',
|
|
20689
|
+
render: function render(val) {
|
|
20690
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20691
|
+
width: 30,
|
|
20692
|
+
src: val
|
|
20693
|
+
});
|
|
20694
|
+
},
|
|
20695
|
+
headerComponentType: 'pic'
|
|
20696
|
+
}, {
|
|
20697
|
+
dataIndex: 'name',
|
|
20698
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20699
|
+
width: 250,
|
|
20700
|
+
align: 'center',
|
|
20701
|
+
ellipsis: true,
|
|
20702
|
+
render: renderTextEllipsis
|
|
20703
|
+
}, {
|
|
20704
|
+
dataIndex: 'skuId',
|
|
20705
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20706
|
+
width: 200,
|
|
20707
|
+
align: 'center',
|
|
20708
|
+
ellipsis: true,
|
|
20709
|
+
render: renderTextEllipsis
|
|
20710
|
+
}, {
|
|
20711
|
+
dataIndex: 'propertiesValue',
|
|
20712
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
20713
|
+
width: 200,
|
|
20714
|
+
align: 'center',
|
|
20715
|
+
ellipsis: true,
|
|
20716
|
+
render: renderTextEllipsis
|
|
20717
|
+
}, {
|
|
20718
|
+
dataIndex: 'qty',
|
|
20719
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
20720
|
+
width: 150,
|
|
20721
|
+
align: 'center',
|
|
20722
|
+
ellipsis: true,
|
|
20723
|
+
render: renderTextEllipsis
|
|
20724
|
+
}, {
|
|
20725
|
+
dataIndex: 'rQty',
|
|
20726
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20727
|
+
width: 150,
|
|
20728
|
+
align: 'center',
|
|
20729
|
+
ellipsis: true,
|
|
20730
|
+
render: renderTextEllipsis
|
|
20731
|
+
}, {
|
|
20732
|
+
dataIndex: 'defectiveQty',
|
|
20733
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
20734
|
+
width: 150,
|
|
20735
|
+
align: 'center',
|
|
20736
|
+
ellipsis: true,
|
|
20737
|
+
render: renderTextEllipsis
|
|
20738
|
+
}, {
|
|
20739
|
+
dataIndex: 'amount',
|
|
20740
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20741
|
+
width: 150,
|
|
20742
|
+
align: 'center',
|
|
20743
|
+
ellipsis: true,
|
|
20744
|
+
render: renderTextEllipsis
|
|
20745
|
+
}, {
|
|
20746
|
+
dataIndex: 'shopAmount',
|
|
20747
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
20748
|
+
width: 150,
|
|
20749
|
+
align: 'center',
|
|
20750
|
+
ellipsis: true,
|
|
20751
|
+
render: renderTextEllipsis
|
|
20752
|
+
}, {
|
|
20753
|
+
dataIndex: 'price',
|
|
20754
|
+
title: "\u5355\u4EF7",
|
|
20755
|
+
width: 150,
|
|
20756
|
+
align: 'center',
|
|
20757
|
+
ellipsis: true,
|
|
20758
|
+
render: renderTextEllipsis
|
|
20759
|
+
}, {
|
|
20760
|
+
dataIndex: 'combineSkuId',
|
|
20761
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20762
|
+
width: 250,
|
|
20763
|
+
align: 'center',
|
|
20764
|
+
ellipsis: true,
|
|
20765
|
+
render: renderTextEllipsis
|
|
20766
|
+
}, {
|
|
20767
|
+
dataIndex: 'shopSkuId',
|
|
20768
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
20769
|
+
width: 200,
|
|
20770
|
+
align: 'center',
|
|
20771
|
+
ellipsis: true,
|
|
20772
|
+
render: renderTextEllipsis
|
|
20773
|
+
}, {
|
|
20774
|
+
dataIndex: 'iId',
|
|
20775
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
20776
|
+
width: 200,
|
|
20777
|
+
align: 'center',
|
|
20778
|
+
ellipsis: true,
|
|
20779
|
+
render: renderTextEllipsis
|
|
20780
|
+
}, {
|
|
20781
|
+
dataIndex: 'type',
|
|
20782
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
20783
|
+
width: 150,
|
|
20784
|
+
align: 'center',
|
|
20785
|
+
ellipsis: true,
|
|
20786
|
+
render: renderTextEllipsis
|
|
20787
|
+
}, {
|
|
20788
|
+
dataIndex: 'skuType',
|
|
20789
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20790
|
+
width: 150,
|
|
20791
|
+
align: 'center',
|
|
20792
|
+
ellipsis: true,
|
|
20793
|
+
render: renderTextEllipsis
|
|
20794
|
+
}, {
|
|
20795
|
+
dataIndex: 'isGift',
|
|
20796
|
+
title: '是否赠品',
|
|
20797
|
+
width: 100,
|
|
20798
|
+
render: function render(val) {
|
|
20799
|
+
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20800
|
+
},
|
|
20801
|
+
headerMapping: {
|
|
20802
|
+
transformValue: function transformValue(val) {
|
|
20803
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20804
|
+
},
|
|
20805
|
+
renderExport: function renderExport(val) {
|
|
20806
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20807
|
+
}
|
|
20808
|
+
}
|
|
20809
|
+
}, {
|
|
20810
|
+
dataIndex: 'receiveDate',
|
|
20811
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20812
|
+
width: 200,
|
|
20813
|
+
align: 'center',
|
|
20814
|
+
ellipsis: true,
|
|
20815
|
+
render: renderTextEllipsis
|
|
20816
|
+
}, {
|
|
20817
|
+
dataIndex: 'remark',
|
|
20818
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
20819
|
+
width: 200,
|
|
20820
|
+
align: 'center',
|
|
20821
|
+
ellipsis: true,
|
|
20822
|
+
render: renderTextEllipsis
|
|
20823
|
+
}]
|
|
20453
20824
|
};
|
|
20454
20825
|
};
|
|
20455
20826
|
|
|
@@ -21120,6 +21491,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21120
21491
|
width: 150,
|
|
21121
21492
|
render: function render(val, record, index) {
|
|
21122
21493
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21494
|
+
dropdownStyle: {
|
|
21495
|
+
zIndex: 2000
|
|
21496
|
+
},
|
|
21497
|
+
getPopupContainer: function getPopupContainer() {
|
|
21498
|
+
return document.body;
|
|
21499
|
+
},
|
|
21123
21500
|
value: val,
|
|
21124
21501
|
onChange: function onChange(value) {
|
|
21125
21502
|
updateHandle(value, index, 'bfit');
|
|
@@ -21149,6 +21526,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21149
21526
|
width: 150,
|
|
21150
21527
|
render: function render(val, record, index) {
|
|
21151
21528
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21529
|
+
dropdownStyle: {
|
|
21530
|
+
zIndex: 2000
|
|
21531
|
+
},
|
|
21532
|
+
getPopupContainer: function getPopupContainer() {
|
|
21533
|
+
return document.body;
|
|
21534
|
+
},
|
|
21152
21535
|
value: val,
|
|
21153
21536
|
onChange: function onChange(value) {
|
|
21154
21537
|
updateHandle(value, index, 'gift');
|
|
@@ -21808,6 +22191,7 @@ var systemOrderNoMap = {
|
|
|
21808
22191
|
GY_GOODS: 'code',
|
|
21809
22192
|
KM_GOODS: 'sid',
|
|
21810
22193
|
WDT_GOODS: 'tradeNo',
|
|
22194
|
+
WDT_AFTERSALE_GOODS: 'tid',
|
|
21811
22195
|
BS_E3_GOODS: 'orderSn',
|
|
21812
22196
|
JST_GOODS: 'oId',
|
|
21813
22197
|
WLN_GOODS: 'tradeNo',
|
|
@@ -21906,7 +22290,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21906
22290
|
}
|
|
21907
22291
|
}, isShowSelect && /*#__PURE__*/React.createElement(Row, {
|
|
21908
22292
|
style: {
|
|
21909
|
-
marginBottom: '
|
|
22293
|
+
marginBottom: '12px'
|
|
21910
22294
|
}
|
|
21911
22295
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
21912
22296
|
span: 12
|
|
@@ -22011,6 +22395,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22011
22395
|
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
22012
22396
|
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
22013
22397
|
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
|
|
22398
|
+
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
22014
22399
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
22015
22400
|
// 监听聚水潭退货商品
|
|
22016
22401
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
@@ -22090,6 +22475,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22090
22475
|
var columns = [];
|
|
22091
22476
|
switch (type) {
|
|
22092
22477
|
case 'WDT_GOODS':
|
|
22478
|
+
case 'WDT_AFTERSALE_GOODS':
|
|
22093
22479
|
case 'WDT_RETURN_GOODS':
|
|
22094
22480
|
case 'WDT_EXCHANGE_GOODS':
|
|
22095
22481
|
case 'BS_E3_GOODS':
|
|
@@ -22100,6 +22486,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22100
22486
|
case 'JST_REISSUE_GOODS':
|
|
22101
22487
|
case 'JST_EXCHANGE_GOODS':
|
|
22102
22488
|
case 'JST_RETURN_GOODS':
|
|
22489
|
+
case 'JST_AFTERSALE_GOODS':
|
|
22103
22490
|
case 'GY_REISSUE_GOODS':
|
|
22104
22491
|
case 'GY_RETURN_GOODS':
|
|
22105
22492
|
case 'KM_GOODS':
|
|
@@ -22192,7 +22579,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22192
22579
|
render: function render(val, record, index) {
|
|
22193
22580
|
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
22194
22581
|
index: index,
|
|
22195
|
-
hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
|
|
22582
|
+
hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
|
|
22196
22583
|
handleClick: function handleClick() {
|
|
22197
22584
|
return handleDelete(record, index);
|
|
22198
22585
|
}
|
|
@@ -22207,7 +22594,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22207
22594
|
ellipsis: true,
|
|
22208
22595
|
width: 100,
|
|
22209
22596
|
render: function render(val, record, index) {
|
|
22210
|
-
return record.canDelete ? /*#__PURE__*/React.createElement(Button, {
|
|
22597
|
+
return record.canDelete || canDelete ? /*#__PURE__*/React.createElement(Button, {
|
|
22211
22598
|
type: "link",
|
|
22212
22599
|
onClick: function onClick() {
|
|
22213
22600
|
return handleDelete(record, index);
|
|
@@ -23366,7 +23753,8 @@ var columnsMap = {
|
|
|
23366
23753
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
23367
23754
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23368
23755
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23369
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
23756
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
23757
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23370
23758
|
};
|
|
23371
23759
|
var rowKeyMap = {
|
|
23372
23760
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -23376,7 +23764,8 @@ var rowKeyMap = {
|
|
|
23376
23764
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
23377
23765
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23378
23766
|
JST_SYSTEM_ORDER: 'oId',
|
|
23379
|
-
JY_SYSTEM_ORDER: 'tradeNo'
|
|
23767
|
+
JY_SYSTEM_ORDER: 'tradeNo',
|
|
23768
|
+
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23380
23769
|
};
|
|
23381
23770
|
var index$2 = (function (props) {
|
|
23382
23771
|
var value = props.value,
|
|
@@ -23390,6 +23779,7 @@ var index$2 = (function (props) {
|
|
|
23390
23779
|
useEffect(function () {
|
|
23391
23780
|
var _value$orders, _value$showOrderInfo;
|
|
23392
23781
|
valueRef.current = value;
|
|
23782
|
+
console.log('value77777777', value);
|
|
23393
23783
|
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) {
|
|
23394
23784
|
onceRef.current = true;
|
|
23395
23785
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24856,10 +25246,39 @@ var componentMap$2 = {
|
|
|
24856
25246
|
exchangeDeleteGood: 'jyExchangeDeleteGood'
|
|
24857
25247
|
},
|
|
24858
25248
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25249
|
+
},
|
|
25250
|
+
WDT_AFTERSALE_GOODS: {
|
|
25251
|
+
type: 'wdtAftersale',
|
|
25252
|
+
key: 'wdtAftersaleGoods',
|
|
25253
|
+
name: '旺店通售后',
|
|
25254
|
+
orderNo: 'srcTids',
|
|
25255
|
+
goodDetailOrderNo: 'srcTids',
|
|
25256
|
+
showChangeBtn: false,
|
|
25257
|
+
eventNameMap: {
|
|
25258
|
+
// pubsub 事件
|
|
25259
|
+
type: 'wdtAftersaleType',
|
|
25260
|
+
updateGoodsHandle: updateWdtAftersaleGoodsHandle,
|
|
25261
|
+
reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
|
|
25262
|
+
},
|
|
25263
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
25264
|
+
},
|
|
25265
|
+
JST_AFTERSALE_GOODS: {
|
|
25266
|
+
type: 'jstAftersale',
|
|
25267
|
+
key: 'jstAftersaleGoods',
|
|
25268
|
+
name: 'jst售后',
|
|
25269
|
+
orderNo: 'asId',
|
|
25270
|
+
goodDetailOrderNo: 'asId',
|
|
25271
|
+
showChangeBtn: false,
|
|
25272
|
+
eventNameMap: {
|
|
25273
|
+
// pubsub 事件
|
|
25274
|
+
type: 'jstAftersaleType',
|
|
25275
|
+
deleteGood: 'jstAftersaleDeleteGood'
|
|
25276
|
+
},
|
|
25277
|
+
getOrderList: jstUtils.getJstOrderListSingleton
|
|
24859
25278
|
}
|
|
24860
25279
|
};
|
|
24861
25280
|
var CommonGoods = function CommonGoods(props) {
|
|
24862
|
-
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
|
|
25281
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
24863
25282
|
var value = props.value,
|
|
24864
25283
|
disabled = props.disabled,
|
|
24865
25284
|
onChange = props.onChange,
|
|
@@ -25016,6 +25435,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25016
25435
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
25017
25436
|
var mode = _ref2.mode;
|
|
25018
25437
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25438
|
+
if (!updateHandle) return [];
|
|
25019
25439
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
25020
25440
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25021
25441
|
});
|
|
@@ -25030,6 +25450,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25030
25450
|
var mode = _ref3.mode;
|
|
25031
25451
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25032
25452
|
console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
25453
|
+
if (!updateHandle) return [];
|
|
25033
25454
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
25034
25455
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25035
25456
|
});
|
|
@@ -25090,6 +25511,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25090
25511
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25091
25512
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25092
25513
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25514
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
25093
25515
|
tradeGoods: {
|
|
25094
25516
|
originDataSource: getAllTradeGoodsDetails({
|
|
25095
25517
|
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
@@ -26783,7 +27205,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
26783
27205
|
onClick: function onClick() {
|
|
26784
27206
|
return setChangeIndex(index);
|
|
26785
27207
|
}
|
|
26786
|
-
}, msgTypeCh[key], item.ruleName);
|
|
27208
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
26787
27209
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
26788
27210
|
showSearch: true,
|
|
26789
27211
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -27361,7 +27783,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27361
27783
|
span: 12
|
|
27362
27784
|
},
|
|
27363
27785
|
sm: {
|
|
27364
|
-
span:
|
|
27786
|
+
span: 4
|
|
27365
27787
|
}
|
|
27366
27788
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27367
27789
|
style: {
|
|
@@ -27664,7 +28086,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
27664
28086
|
span: 12
|
|
27665
28087
|
},
|
|
27666
28088
|
sm: {
|
|
27667
|
-
span:
|
|
28089
|
+
span: 4
|
|
27668
28090
|
}
|
|
27669
28091
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27670
28092
|
style: {
|
|
@@ -28336,7 +28758,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28336
28758
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28337
28759
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28338
28760
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28339
|
-
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
28761
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
28762
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28340
28763
|
};
|
|
28341
28764
|
|
|
28342
|
-
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 };
|
|
28765
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|