@kmkf-fe-packages/basic-components 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +850 -33
- package/dist/index.js +854 -34
- package/dist/src/apaas/OrderSubForm/components/customizeUpload.d.ts +15 -0
- package/dist/src/apaas/OrderSubForm/index.d.ts +27 -0
- package/dist/src/apaas/OrderSubForm/utils.d.ts +22 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +14 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/orderSubForm.d.ts +62 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
2
|
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Tooltip, Popover, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Tag } from 'antd';
|
|
3
|
-
import { EyeOutlined, DeleteOutlined, CloseOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
3
|
+
import { EyeOutlined, DeleteOutlined, CloseOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, 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, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, 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, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, updateSkxGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, 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, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, updateSkxGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject, intersection, isEmpty } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
@@ -1225,7 +1225,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1225
1225
|
className: "addBtn"
|
|
1226
1226
|
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText)))));
|
|
1227
1227
|
};
|
|
1228
|
-
var
|
|
1228
|
+
var ApaasUploadAsync$1 = /*#__PURE__*/forwardRef(ApaasUploadAsync);
|
|
1229
1229
|
|
|
1230
1230
|
var css_248z$2 = ".index-module_imageProBox__1u84Y {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageProBox__1u84Y .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageProBox__1u84Y .index-module_inputImage__nm5jb {\n width: 105px;\n height: 105px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageShow__1cG2j {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo {\n display: flex;\n width: 280px;\n height: 105px;\n border-radius: 5px;\n background-color: rgba(240, 241, 242, 0.72);\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo textarea {\n max-width: 174px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo:hover .index-module_mask__L3q8p:before {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProInfo__iHM0C {\n width: 80px;\n height: 80px;\n border-radius: 5px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProRight__3rPiY {\n position: relative;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProWrap__sx8lo .index-module_imageProOperate__1hFcg {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p:hover .index-module_actions__3Wwry {\n opacity: 1;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageProBox__1u84Y .index-module_mask__L3q8p .index-module_actions__3Wwry .index-module_icon__3oJ-1 {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e {\n display: inline-block;\n margin-right: 8px !important;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG {\n width: 105px;\n height: 105px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_imageProPaste__22O8e .index-module_fakeBox__3EXNG .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload {\n height: 105px !important;\n width: 105px !important;\n border: none;\n background-color: #F2F3F5;\n color: #86909C;\n}\n.index-module_imageProBox__1u84Y .index-module_uploadPro__3rAkl .ant-upload .index-module_addBtn__1Dv95 {\n color: #86909C;\n}\n.index-module_tips__z9Yjd {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1231
1231
|
var styles$2 = {"imageProBox":"index-module_imageProBox__1u84Y","inputImage":"index-module_inputImage__nm5jb","imageShow":"index-module_imageShow__1cG2j","imageProWrap":"index-module_imageProWrap__sx8lo","-webkit-mask":"index-module_mask__L3q8p","mask":"index-module_mask__L3q8p","imageProInfo":"index-module_imageProInfo__iHM0C","imageProRight":"index-module_imageProRight__3rPiY","imageProOperate":"index-module_imageProOperate__1hFcg","actions":"index-module_actions__3Wwry","icon":"index-module_icon__3oJ-1","imageProPaste":"index-module_imageProPaste__22O8e","fakeBox":"index-module_fakeBox__3EXNG","addBtn":"index-module_addBtn__1Dv95","uploadPro":"index-module_uploadPro__3rAkl","tips":"index-module_tips__z9Yjd"};
|
|
@@ -1534,7 +1534,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1534
1534
|
className: "addBtn"
|
|
1535
1535
|
}, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), renderImages(value)));
|
|
1536
1536
|
};
|
|
1537
|
-
var index
|
|
1537
|
+
var index = /*#__PURE__*/forwardRef(ApaasUploadProAsync);
|
|
1538
1538
|
|
|
1539
1539
|
var css_248z$3 = ".index-module_imageBox__1rpoB {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1rpoB .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__1rpoB .index-module_inputImage__MyiR1 {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageShow__3BNqT {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP {\n width: 100px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover {\n background: transparent;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover .index-module_mask__uy8r2:before {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP .index-module_delete__28zCp {\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2:hover .index-module_actions__1-6f4 {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 .index-module_icon__3yEcS {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C {\n display: inline-block;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- .index-module_addBtn__3a1TQ {\n color: #86909C;\n}\n.index-module_imageBox__1rpoB .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1rpoB .ant-upload .index-module_addBtn__3a1TQ {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_tips__168Vy {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
1540
1540
|
var styles$3 = {"imageBox":"index-module_imageBox__1rpoB","inputImage":"index-module_inputImage__MyiR1","imageShow":"index-module_imageShow__3BNqT","imageWrap":"index-module_imageWrap__LyKfP","-webkit-mask":"index-module_mask__uy8r2","mask":"index-module_mask__uy8r2","delete":"index-module_delete__28zCp","actions":"index-module_actions__1-6f4","icon":"index-module_icon__3yEcS","imagePaste":"index-module_imagePaste__Ac77C","fakeBox":"index-module_fakeBox__3W1d-","addBtn":"index-module_addBtn__3a1TQ","tips":"index-module_tips__168Vy"};
|
|
@@ -8417,10 +8417,6 @@ var SubForm = function SubForm(props) {
|
|
|
8417
8417
|
}
|
|
8418
8418
|
});
|
|
8419
8419
|
}
|
|
8420
|
-
if (maxCount && (value === null || value === void 0 ? void 0 : value.length) >= maxCount) {
|
|
8421
|
-
message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
|
|
8422
|
-
return;
|
|
8423
|
-
}
|
|
8424
8420
|
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8425
8421
|
uuid: uuid()
|
|
8426
8422
|
})]));
|
|
@@ -12994,7 +12990,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
|
12994
12990
|
});
|
|
12995
12991
|
return newColumns;
|
|
12996
12992
|
};
|
|
12997
|
-
var index$
|
|
12993
|
+
var index$1 = getColumnsBaseInfo();
|
|
12998
12994
|
|
|
12999
12995
|
var initNo = {
|
|
13000
12996
|
dataIndex: 'index',
|
|
@@ -18628,7 +18624,7 @@ var rowKeyMap = {
|
|
|
18628
18624
|
GY_SYSTEM_ORDER: 'billNo',
|
|
18629
18625
|
JST_SYSTEM_ORDER: 'oId'
|
|
18630
18626
|
};
|
|
18631
|
-
var index$
|
|
18627
|
+
var index$2 = (function (props) {
|
|
18632
18628
|
var value = props.value,
|
|
18633
18629
|
_onChange = props.onChange,
|
|
18634
18630
|
disabled = props.disabled,
|
|
@@ -18938,6 +18934,827 @@ var index$3 = (function (props) {
|
|
|
18938
18934
|
}));
|
|
18939
18935
|
});
|
|
18940
18936
|
|
|
18937
|
+
var css_248z$b = ".customizeUpload-module_customizeUpload__2tG-4 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n width: 100%;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj {\n display: flex !important;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj:hover:not(:disabled) {\n color: #40a9ff;\n border-color: #40a9ff;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj:disabled {\n color: #bfbfbf;\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 {\n position: relative;\n width: 24px;\n height: 24px;\n overflow: hidden;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_image__3hOnT {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_deleteBtn__85Jsl {\n position: absolute;\n top: 2px;\n right: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: white;\n font-size: 10px;\n background-color: rgba(0, 0, 0, 0.6);\n border-radius: 50%;\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.2s;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_deleteBtn__85Jsl:hover {\n background-color: rgba(255, 0, 0, 0.8);\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1:hover .customizeUpload-module_deleteBtn__85Jsl {\n opacity: 1;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_uploadContainer__rUcw7 {\n margin-top: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq {\n width: 280px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_popoverTitle__3Qw2t {\n margin-bottom: 4px;\n color: #262626;\n font-weight: 500;\n font-size: 16px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_popoverSubtitle__1NA3m {\n margin-bottom: 16px;\n color: #8c8c8c;\n font-size: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G {\n display: flex;\n gap: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J {\n display: flex;\n flex: 1;\n gap: 6px;\n align-items: center;\n justify-content: center;\n height: 40px;\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J:hover:not(:disabled) {\n color: #40a9ff;\n background-color: #f0f8ff;\n border-color: #40a9ff;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J:disabled {\n color: #bfbfbf;\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n";
|
|
18938
|
+
var styles$5 = {"customizeUpload":"customizeUpload-module_customizeUpload__2tG-4","addButton":"customizeUpload-module_addButton__2w8Jj","imageItem":"customizeUpload-module_imageItem__yn6H1","image":"customizeUpload-module_image__3hOnT","deleteBtn":"customizeUpload-module_deleteBtn__85Jsl","uploadContainer":"customizeUpload-module_uploadContainer__rUcw7","popoverContent":"customizeUpload-module_popoverContent__FrAiq","popoverTitle":"customizeUpload-module_popoverTitle__3Qw2t","popoverSubtitle":"customizeUpload-module_popoverSubtitle__1NA3m","actionButtons":"customizeUpload-module_actionButtons__2la0G","actionButton":"customizeUpload-module_actionButton__1Wr1J"};
|
|
18939
|
+
styleInject(css_248z$b);
|
|
18940
|
+
|
|
18941
|
+
var CustomizeUpload = function CustomizeUpload(_ref) {
|
|
18942
|
+
var _ref$value = _ref.value,
|
|
18943
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
|
18944
|
+
onChange = _ref.onChange,
|
|
18945
|
+
_ref$disabled = _ref.disabled,
|
|
18946
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
18947
|
+
_ref$maxCount = _ref.maxCount,
|
|
18948
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
18949
|
+
_ref$maxSize = _ref.maxSize,
|
|
18950
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize;
|
|
18951
|
+
var _useState = useState(false),
|
|
18952
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18953
|
+
popoverVisible = _useState2[0],
|
|
18954
|
+
setPopoverVisible = _useState2[1];
|
|
18955
|
+
var newValue = useMemo(function () {
|
|
18956
|
+
return value ? value === null || value === void 0 ? void 0 : value.split(',') : [];
|
|
18957
|
+
}, [value]);
|
|
18958
|
+
// 渲染图片显示
|
|
18959
|
+
var renderImages = function renderImages() {
|
|
18960
|
+
if (newValue.length === 0) return null;
|
|
18961
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, newValue.map(function (image, index) {
|
|
18962
|
+
var finalSrc = (image === null || image === void 0 ? void 0 : image.startsWith('http')) ? image : "https://kefu.kuaimai.com/".concat(image);
|
|
18963
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18964
|
+
key: index,
|
|
18965
|
+
className: styles$5.imageItem
|
|
18966
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
18967
|
+
src: finalSrc,
|
|
18968
|
+
alt: "\u56FE\u7247".concat(index + 1),
|
|
18969
|
+
className: styles$5.image,
|
|
18970
|
+
preview: {
|
|
18971
|
+
mask: '点击预览'
|
|
18972
|
+
}
|
|
18973
|
+
}));
|
|
18974
|
+
}));
|
|
18975
|
+
};
|
|
18976
|
+
var handleUploadChange = function handleUploadChange(val) {
|
|
18977
|
+
var newValue = val.map(function (t) {
|
|
18978
|
+
return (t === null || t === void 0 ? void 0 : t.startsWith('http')) ? t : "https://kefu.kuaimai.com/".concat(t);
|
|
18979
|
+
});
|
|
18980
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.join(','));
|
|
18981
|
+
};
|
|
18982
|
+
// Popover 内容
|
|
18983
|
+
var popoverContent = /*#__PURE__*/React.createElement("div", {
|
|
18984
|
+
className: styles$5.popoverContent
|
|
18985
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18986
|
+
className: styles$5.popoverTitle
|
|
18987
|
+
}, "\u6DFB\u52A0\u56FE\u7247"), /*#__PURE__*/React.createElement("div", {
|
|
18988
|
+
className: styles$5.uploadContainer
|
|
18989
|
+
}, /*#__PURE__*/React.createElement(ApaasUploadAsync$1, {
|
|
18990
|
+
canPreview: true,
|
|
18991
|
+
maxSize: maxSize,
|
|
18992
|
+
maxCount: maxCount,
|
|
18993
|
+
uniqueKey: "remark",
|
|
18994
|
+
hostUrl: "https://kefu.kuaimai.com",
|
|
18995
|
+
value: newValue || [],
|
|
18996
|
+
onChange: handleUploadChange,
|
|
18997
|
+
disabled: disabled
|
|
18998
|
+
})));
|
|
18999
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19000
|
+
className: styles$5.customizeUpload
|
|
19001
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19002
|
+
className: styles$5.inputContainer
|
|
19003
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
19004
|
+
getPopupContainer: function getPopupContainer() {
|
|
19005
|
+
return document.body;
|
|
19006
|
+
},
|
|
19007
|
+
content: popoverContent,
|
|
19008
|
+
title: null,
|
|
19009
|
+
trigger: "click",
|
|
19010
|
+
open: popoverVisible,
|
|
19011
|
+
onOpenChange: setPopoverVisible,
|
|
19012
|
+
placement: "bottomLeft",
|
|
19013
|
+
overlayStyle: {
|
|
19014
|
+
zIndex: 2000
|
|
19015
|
+
}
|
|
19016
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19017
|
+
className: styles$5.addButton,
|
|
19018
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
19019
|
+
disabled: disabled,
|
|
19020
|
+
type: "text"
|
|
19021
|
+
}))), renderImages());
|
|
19022
|
+
};
|
|
19023
|
+
|
|
19024
|
+
var refundTypeMap = {
|
|
19025
|
+
0: '其他',
|
|
19026
|
+
1: '已发货仅退款',
|
|
19027
|
+
2: '退货',
|
|
19028
|
+
3: '补发',
|
|
19029
|
+
4: '换货',
|
|
19030
|
+
5: '未发货仅退款',
|
|
19031
|
+
9: '维修',
|
|
19032
|
+
10: '价保',
|
|
19033
|
+
11: '大家电安装',
|
|
19034
|
+
12: '大家电移机',
|
|
19035
|
+
13: '大家电增值服务',
|
|
19036
|
+
14: '优鲜赔',
|
|
19037
|
+
15: '试用收回'
|
|
19038
|
+
};
|
|
19039
|
+
var refundTypeOptions = Object.entries(refundTypeMap).map(function (_ref) {
|
|
19040
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
19041
|
+
key = _ref2[0],
|
|
19042
|
+
value = _ref2[1];
|
|
19043
|
+
return {
|
|
19044
|
+
label: value,
|
|
19045
|
+
value: Number(key)
|
|
19046
|
+
};
|
|
19047
|
+
});
|
|
19048
|
+
var onlineStatusMap = {
|
|
19049
|
+
1: '空',
|
|
19050
|
+
2: '待卖家同意',
|
|
19051
|
+
3: '待买家退货',
|
|
19052
|
+
4: '待卖家确认收货',
|
|
19053
|
+
5: '卖家拒绝退款',
|
|
19054
|
+
6: '退款关闭',
|
|
19055
|
+
7: '退款成功',
|
|
19056
|
+
8: '待发出换货商品',
|
|
19057
|
+
9: '待买家收货',
|
|
19058
|
+
10: '换货关闭',
|
|
19059
|
+
11: '换货成功'
|
|
19060
|
+
};
|
|
19061
|
+
var onlineStatusOptions = Object.entries(onlineStatusMap).map(function (_ref3) {
|
|
19062
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
19063
|
+
key = _ref4[0],
|
|
19064
|
+
value = _ref4[1];
|
|
19065
|
+
return {
|
|
19066
|
+
label: value,
|
|
19067
|
+
value: Number(key)
|
|
19068
|
+
};
|
|
19069
|
+
});
|
|
19070
|
+
var consignTypeMap = {
|
|
19071
|
+
1: '是',
|
|
19072
|
+
0: '否'
|
|
19073
|
+
};
|
|
19074
|
+
var consignTypeOptions = Object.entries(consignTypeMap).map(function (_ref5) {
|
|
19075
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
19076
|
+
key = _ref6[0],
|
|
19077
|
+
value = _ref6[1];
|
|
19078
|
+
return {
|
|
19079
|
+
label: value,
|
|
19080
|
+
value: Number(key)
|
|
19081
|
+
};
|
|
19082
|
+
});
|
|
19083
|
+
var getOrderSubformColumns = function getOrderSubformColumns(parmas) {
|
|
19084
|
+
var _ref7 = parmas || {},
|
|
19085
|
+
_ref7$expressData = _ref7.expressData,
|
|
19086
|
+
expressData = _ref7$expressData === void 0 ? [] : _ref7$expressData;
|
|
19087
|
+
return [{
|
|
19088
|
+
dataIndex: 'title',
|
|
19089
|
+
title: '商品名称',
|
|
19090
|
+
widget: 'input',
|
|
19091
|
+
widgetProps: {},
|
|
19092
|
+
width: 150
|
|
19093
|
+
}, {
|
|
19094
|
+
dataIndex: 'productCode',
|
|
19095
|
+
title: '商品编码',
|
|
19096
|
+
widget: 'input',
|
|
19097
|
+
width: 150,
|
|
19098
|
+
widgetProps: {}
|
|
19099
|
+
}, {
|
|
19100
|
+
dataIndex: 'picUrl',
|
|
19101
|
+
title: '图片',
|
|
19102
|
+
widget: 'upload',
|
|
19103
|
+
widgetProps: {},
|
|
19104
|
+
width: 100,
|
|
19105
|
+
customizeComponent: function customizeComponent(config) {
|
|
19106
|
+
return /*#__PURE__*/React.createElement(CustomizeUpload, {
|
|
19107
|
+
disabled: config.disabled,
|
|
19108
|
+
value: config.value,
|
|
19109
|
+
onChange: config.onChange,
|
|
19110
|
+
maxCount: config.maxCount,
|
|
19111
|
+
maxSize: config.maxSize
|
|
19112
|
+
});
|
|
19113
|
+
}
|
|
19114
|
+
}, {
|
|
19115
|
+
dataIndex: 'numIid',
|
|
19116
|
+
title: '商品id',
|
|
19117
|
+
widget: 'input',
|
|
19118
|
+
widgetProps: {},
|
|
19119
|
+
width: 150
|
|
19120
|
+
}, {
|
|
19121
|
+
dataIndex: 'quantity',
|
|
19122
|
+
title: '商品数量',
|
|
19123
|
+
widget: 'inputNumber',
|
|
19124
|
+
width: 100,
|
|
19125
|
+
widgetProps: {
|
|
19126
|
+
precision: 0,
|
|
19127
|
+
min: 0
|
|
19128
|
+
}
|
|
19129
|
+
}, {
|
|
19130
|
+
dataIndex: 'skuId',
|
|
19131
|
+
title: 'SKU ID',
|
|
19132
|
+
widget: 'input',
|
|
19133
|
+
width: 150,
|
|
19134
|
+
widgetProps: {}
|
|
19135
|
+
}, {
|
|
19136
|
+
dataIndex: 'outerSkuId',
|
|
19137
|
+
title: 'SKU 编码',
|
|
19138
|
+
widget: 'input',
|
|
19139
|
+
width: 150,
|
|
19140
|
+
widgetProps: {}
|
|
19141
|
+
}, {
|
|
19142
|
+
dataIndex: 'propertiesName',
|
|
19143
|
+
title: 'SKU 信息',
|
|
19144
|
+
widget: 'input',
|
|
19145
|
+
width: 200,
|
|
19146
|
+
widgetProps: {}
|
|
19147
|
+
}, {
|
|
19148
|
+
dataIndex: 'oid',
|
|
19149
|
+
title: '子订单号',
|
|
19150
|
+
widget: 'input',
|
|
19151
|
+
width: 150,
|
|
19152
|
+
widgetProps: {}
|
|
19153
|
+
}, {
|
|
19154
|
+
dataIndex: 'price',
|
|
19155
|
+
title: '商品单价',
|
|
19156
|
+
widget: 'inputNumber',
|
|
19157
|
+
width: 100,
|
|
19158
|
+
widgetProps: {
|
|
19159
|
+
precision: 2,
|
|
19160
|
+
min: 0
|
|
19161
|
+
}
|
|
19162
|
+
}, {
|
|
19163
|
+
dataIndex: 'actualPayment',
|
|
19164
|
+
title: '[子]实付金额',
|
|
19165
|
+
widget: 'inputNumber',
|
|
19166
|
+
width: 100,
|
|
19167
|
+
widgetProps: {
|
|
19168
|
+
precision: 2,
|
|
19169
|
+
min: 0
|
|
19170
|
+
}
|
|
19171
|
+
}, {
|
|
19172
|
+
dataIndex: 'expressLogisticsCode',
|
|
19173
|
+
title: '[子]运单号',
|
|
19174
|
+
widget: 'input',
|
|
19175
|
+
width: 150,
|
|
19176
|
+
widgetProps: {}
|
|
19177
|
+
}, {
|
|
19178
|
+
dataIndex: 'expressLogisticsCompany',
|
|
19179
|
+
title: '[子]发货快递',
|
|
19180
|
+
widget: 'select',
|
|
19181
|
+
width: 150,
|
|
19182
|
+
widgetProps: {
|
|
19183
|
+
filterOption: function filterOption(input, option) {
|
|
19184
|
+
return option.label.includes(input);
|
|
19185
|
+
},
|
|
19186
|
+
options: expressData,
|
|
19187
|
+
showSearch: true,
|
|
19188
|
+
allowClear: true
|
|
19189
|
+
}
|
|
19190
|
+
}, {
|
|
19191
|
+
dataIndex: 'refundId',
|
|
19192
|
+
title: '退款单ID',
|
|
19193
|
+
widget: 'input',
|
|
19194
|
+
width: 150,
|
|
19195
|
+
widgetProps: {}
|
|
19196
|
+
}, {
|
|
19197
|
+
dataIndex: 'returnExpressLogisticsCode',
|
|
19198
|
+
title: '退货物流单号',
|
|
19199
|
+
widget: 'input',
|
|
19200
|
+
width: 150,
|
|
19201
|
+
widgetProps: {}
|
|
19202
|
+
}, {
|
|
19203
|
+
dataIndex: 'returnExpressLogisticsCompany',
|
|
19204
|
+
title: '退货物流公司',
|
|
19205
|
+
widget: 'select',
|
|
19206
|
+
width: 150,
|
|
19207
|
+
widgetProps: {
|
|
19208
|
+
filterOption: function filterOption(input, option) {
|
|
19209
|
+
return option.label.includes(input);
|
|
19210
|
+
},
|
|
19211
|
+
options: expressData,
|
|
19212
|
+
showSearch: true,
|
|
19213
|
+
allowClear: true
|
|
19214
|
+
}
|
|
19215
|
+
}, {
|
|
19216
|
+
dataIndex: 'reason',
|
|
19217
|
+
title: '退款原因',
|
|
19218
|
+
widget: 'input',
|
|
19219
|
+
width: 200,
|
|
19220
|
+
widgetProps: {}
|
|
19221
|
+
}, {
|
|
19222
|
+
dataIndex: 'refundAmount',
|
|
19223
|
+
title: '退款金额',
|
|
19224
|
+
widget: 'inputNumber',
|
|
19225
|
+
width: 100,
|
|
19226
|
+
widgetProps: {
|
|
19227
|
+
precision: 2,
|
|
19228
|
+
min: 0
|
|
19229
|
+
}
|
|
19230
|
+
}, {
|
|
19231
|
+
dataIndex: 'afterSaleType',
|
|
19232
|
+
title: '退款类型',
|
|
19233
|
+
widget: 'select',
|
|
19234
|
+
width: 150,
|
|
19235
|
+
widgetProps: {
|
|
19236
|
+
filterOption: function filterOption(input, option) {
|
|
19237
|
+
return option.label.includes(input);
|
|
19238
|
+
},
|
|
19239
|
+
options: refundTypeOptions,
|
|
19240
|
+
showSearch: true,
|
|
19241
|
+
allowClear: true
|
|
19242
|
+
}
|
|
19243
|
+
}, {
|
|
19244
|
+
dataIndex: 'platformStatusText',
|
|
19245
|
+
title: '退款状态(平台)',
|
|
19246
|
+
widget: 'input',
|
|
19247
|
+
width: 150,
|
|
19248
|
+
widgetProps: {}
|
|
19249
|
+
}, {
|
|
19250
|
+
dataIndex: 'onlineStatus',
|
|
19251
|
+
title: '退款状态(快麦)',
|
|
19252
|
+
widget: 'select',
|
|
19253
|
+
width: 150,
|
|
19254
|
+
widgetProps: {
|
|
19255
|
+
filterOption: function filterOption(input, option) {
|
|
19256
|
+
return option.label.includes(input);
|
|
19257
|
+
},
|
|
19258
|
+
options: onlineStatusOptions,
|
|
19259
|
+
showSearch: true,
|
|
19260
|
+
allowClear: true
|
|
19261
|
+
}
|
|
19262
|
+
}, {
|
|
19263
|
+
dataIndex: 'applyTime',
|
|
19264
|
+
title: '退款申请时间',
|
|
19265
|
+
widget: 'datePicker',
|
|
19266
|
+
width: 200,
|
|
19267
|
+
widgetProps: {
|
|
19268
|
+
showTime: true,
|
|
19269
|
+
format: 'YYYY-MM-DD HH:mm:ss'
|
|
19270
|
+
}
|
|
19271
|
+
}, {
|
|
19272
|
+
dataIndex: 'returnFreeShipping',
|
|
19273
|
+
title: '退货免运费',
|
|
19274
|
+
widget: 'input',
|
|
19275
|
+
width: 150,
|
|
19276
|
+
widgetProps: {}
|
|
19277
|
+
}, {
|
|
19278
|
+
dataIndex: 'isCNShipment',
|
|
19279
|
+
title: '是否菜鸟仓发货',
|
|
19280
|
+
widget: 'select',
|
|
19281
|
+
width: 100,
|
|
19282
|
+
widgetProps: {
|
|
19283
|
+
filterOption: function filterOption(input, option) {
|
|
19284
|
+
return option.label.includes(input);
|
|
19285
|
+
},
|
|
19286
|
+
options: consignTypeOptions,
|
|
19287
|
+
showSearch: true,
|
|
19288
|
+
allowClear: true
|
|
19289
|
+
}
|
|
19290
|
+
}];
|
|
19291
|
+
};
|
|
19292
|
+
var getSelectWidgetMap = function getSelectWidgetMap(expressDateInstance) {
|
|
19293
|
+
return {
|
|
19294
|
+
expressLogisticsCompany: function expressLogisticsCompany(code) {
|
|
19295
|
+
return expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode(code);
|
|
19296
|
+
},
|
|
19297
|
+
returnExpressLogisticsCompany: function returnExpressLogisticsCompany(code) {
|
|
19298
|
+
return expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode(code);
|
|
19299
|
+
},
|
|
19300
|
+
afterSaleType: refundTypeMap,
|
|
19301
|
+
isCNShipment: consignTypeMap,
|
|
19302
|
+
onlineStatus: onlineStatusMap
|
|
19303
|
+
};
|
|
19304
|
+
};
|
|
19305
|
+
var orderSubFormConstants = {
|
|
19306
|
+
getSelectWidgetMap: getSelectWidgetMap,
|
|
19307
|
+
getOrderSubformColumns: getOrderSubformColumns
|
|
19308
|
+
};
|
|
19309
|
+
|
|
19310
|
+
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
19311
|
+
var singletonMap$7 = new Map();
|
|
19312
|
+
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
19313
|
+
var orderNo = parmas.orderNo,
|
|
19314
|
+
shopId = parmas.shopId;
|
|
19315
|
+
var key = "".concat(orderNo, "-").concat(shopId);
|
|
19316
|
+
if (!singletonMap$7.has(key)) {
|
|
19317
|
+
var p = new Promise(function (resolve, reject) {
|
|
19318
|
+
var doReject = function doReject(err) {
|
|
19319
|
+
// 清空掉错误的请求记录
|
|
19320
|
+
singletonMap$7.delete(key);
|
|
19321
|
+
reject(err);
|
|
19322
|
+
};
|
|
19323
|
+
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
19324
|
+
method: 'post',
|
|
19325
|
+
data: _objectSpread2({}, parmas)
|
|
19326
|
+
}).then(function (data) {
|
|
19327
|
+
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
19328
|
+
var _data$data;
|
|
19329
|
+
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.length) {
|
|
19330
|
+
resolve(data === null || data === void 0 ? void 0 : data.data);
|
|
19331
|
+
} else {
|
|
19332
|
+
resolve([]);
|
|
19333
|
+
}
|
|
19334
|
+
// 延迟10秒清除,保证订单的时效性
|
|
19335
|
+
setTimeout(function () {
|
|
19336
|
+
singletonMap$7.delete(key);
|
|
19337
|
+
}, 1000 * 10);
|
|
19338
|
+
} else {
|
|
19339
|
+
doReject(data);
|
|
19340
|
+
}
|
|
19341
|
+
}).catch(doReject);
|
|
19342
|
+
});
|
|
19343
|
+
singletonMap$7.set(key, p);
|
|
19344
|
+
}
|
|
19345
|
+
return singletonMap$7.get(key);
|
|
19346
|
+
};
|
|
19347
|
+
var renderEditItem = function renderEditItem(_ref) {
|
|
19348
|
+
var item = _ref.item,
|
|
19349
|
+
val = _ref.val,
|
|
19350
|
+
disabled = _ref.disabled,
|
|
19351
|
+
index = _ref.index,
|
|
19352
|
+
type = _ref.type,
|
|
19353
|
+
updateHandle = _ref.updateHandle;
|
|
19354
|
+
var Component = /*#__PURE__*/React.createElement(React.Fragment, null, "\u4E0D\u652F\u6301\u7684\u7C7B\u578B\u7EC4\u4EF6\uFF1A", JSON.stringify(item.widget));
|
|
19355
|
+
if (typeof item.customizeComponent === 'function') {
|
|
19356
|
+
Component = item.customizeComponent(_objectSpread2(_objectSpread2({}, item.widgetProps), {}, {
|
|
19357
|
+
disabled: disabled,
|
|
19358
|
+
value: val,
|
|
19359
|
+
onChange: function onChange(e) {
|
|
19360
|
+
return updateHandle(e, index, type);
|
|
19361
|
+
}
|
|
19362
|
+
}));
|
|
19363
|
+
} else if (item.widget === 'input') {
|
|
19364
|
+
Component = /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, item.widgetProps), {}, {
|
|
19365
|
+
disabled: disabled,
|
|
19366
|
+
value: val,
|
|
19367
|
+
onChange: function onChange(e) {
|
|
19368
|
+
var _e$target;
|
|
19369
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, type);
|
|
19370
|
+
}
|
|
19371
|
+
}));
|
|
19372
|
+
} else if (item.widget === 'select') {
|
|
19373
|
+
Component = /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
19374
|
+
dropdownStyle: {
|
|
19375
|
+
zIndex: 2000
|
|
19376
|
+
},
|
|
19377
|
+
getPopupContainer: function getPopupContainer() {
|
|
19378
|
+
return document.body;
|
|
19379
|
+
}
|
|
19380
|
+
}, item.widgetProps), {}, {
|
|
19381
|
+
value: val,
|
|
19382
|
+
disabled: disabled,
|
|
19383
|
+
onChange: function onChange(e) {
|
|
19384
|
+
return updateHandle(e, index, type);
|
|
19385
|
+
}
|
|
19386
|
+
}));
|
|
19387
|
+
} else if (item.widget === 'datePicker') {
|
|
19388
|
+
Component = /*#__PURE__*/React.createElement(DatePicker, _objectSpread2(_objectSpread2({
|
|
19389
|
+
popupStyle: {
|
|
19390
|
+
zIndex: 2000
|
|
19391
|
+
},
|
|
19392
|
+
getPopupContainer: function getPopupContainer() {
|
|
19393
|
+
return document.body;
|
|
19394
|
+
}
|
|
19395
|
+
}, item.widgetProps), {}, {
|
|
19396
|
+
value: val ? hooks(val) : null,
|
|
19397
|
+
disabled: disabled,
|
|
19398
|
+
onChange: function onChange(e) {
|
|
19399
|
+
return updateHandle(hooks(e).format('YYYY-MM-DD HH:mm:ss'), index, type);
|
|
19400
|
+
}
|
|
19401
|
+
}));
|
|
19402
|
+
} else if (item.widget === 'inputNumber') {
|
|
19403
|
+
Component = /*#__PURE__*/React.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
19404
|
+
style: {
|
|
19405
|
+
width: '100%'
|
|
19406
|
+
}
|
|
19407
|
+
}, item.widgetProps), {}, {
|
|
19408
|
+
value: val,
|
|
19409
|
+
disabled: disabled,
|
|
19410
|
+
onChange: function onChange(e) {
|
|
19411
|
+
return updateHandle(e, index, type);
|
|
19412
|
+
}
|
|
19413
|
+
}));
|
|
19414
|
+
} else if (item.widget === 'cascader') {
|
|
19415
|
+
Component = /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
|
|
19416
|
+
getPopupContainer: function getPopupContainer() {
|
|
19417
|
+
return document.body;
|
|
19418
|
+
}
|
|
19419
|
+
}, item.widgetProps), {}, {
|
|
19420
|
+
value: val,
|
|
19421
|
+
disabled: disabled,
|
|
19422
|
+
onChange: function onChange(e) {
|
|
19423
|
+
return updateHandle(e, index, type);
|
|
19424
|
+
}
|
|
19425
|
+
}));
|
|
19426
|
+
}
|
|
19427
|
+
return Component;
|
|
19428
|
+
};
|
|
19429
|
+
var renderDate = function renderDate(value) {
|
|
19430
|
+
return value ? hooks(value).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
19431
|
+
};
|
|
19432
|
+
var renderImages = function renderImages(value) {
|
|
19433
|
+
var list = value ? value.split(',') : [];
|
|
19434
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, /*#__PURE__*/React.createElement("div", {
|
|
19435
|
+
style: {
|
|
19436
|
+
display: 'flex',
|
|
19437
|
+
flexWrap: 'wrap'
|
|
19438
|
+
}
|
|
19439
|
+
}, list.map(function (url) {
|
|
19440
|
+
var finalSrc = (url === null || url === void 0 ? void 0 : url.startsWith('http')) ? url : "https://kefu.kuaimai.com/".concat(url);
|
|
19441
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19442
|
+
style: {
|
|
19443
|
+
padding: '2px'
|
|
19444
|
+
}
|
|
19445
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
19446
|
+
src: finalSrc,
|
|
19447
|
+
width: 24,
|
|
19448
|
+
height: 24
|
|
19449
|
+
}));
|
|
19450
|
+
})));
|
|
19451
|
+
};
|
|
19452
|
+
var renderDetailItem = function renderDetailItem(_ref2) {
|
|
19453
|
+
var item = _ref2.item,
|
|
19454
|
+
val = _ref2.val;
|
|
19455
|
+
var expressDateInstance = ExpressData.getInstance();
|
|
19456
|
+
var Component = /*#__PURE__*/React.createElement(React.Fragment, null, "\u4E0D\u652F\u6301\u7684\u7C7B\u578B\u7EC4\u4EF6\uFF1A", JSON.stringify(item.widget));
|
|
19457
|
+
if (['input', 'inputNumber'].includes(item.widget)) {
|
|
19458
|
+
Component = val;
|
|
19459
|
+
} else if (item.widget === 'select') {
|
|
19460
|
+
var _getSelectWidgetMap;
|
|
19461
|
+
var mapValue = (_getSelectWidgetMap = getSelectWidgetMap$1(expressDateInstance)) === null || _getSelectWidgetMap === void 0 ? void 0 : _getSelectWidgetMap[item.dataIndex];
|
|
19462
|
+
var selectValue;
|
|
19463
|
+
if (mapValue && typeof mapValue === 'function') {
|
|
19464
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue(val);
|
|
19465
|
+
} else {
|
|
19466
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue[val];
|
|
19467
|
+
}
|
|
19468
|
+
Component = /*#__PURE__*/React.createElement(React.Fragment, null, selectValue);
|
|
19469
|
+
} else if (item.widget === 'datePicker') {
|
|
19470
|
+
Component = /*#__PURE__*/React.createElement(React.Fragment, null, renderDate(val));
|
|
19471
|
+
} else if (item.widget === 'upload') {
|
|
19472
|
+
Component = /*#__PURE__*/React.createElement(React.Fragment, null, renderImages(val));
|
|
19473
|
+
}
|
|
19474
|
+
return Component;
|
|
19475
|
+
};
|
|
19476
|
+
var utils = {
|
|
19477
|
+
getOrderListSingleton: getOrderListSingleton$3,
|
|
19478
|
+
renderEditItem: renderEditItem,
|
|
19479
|
+
renderDetailItem: renderDetailItem
|
|
19480
|
+
};
|
|
19481
|
+
|
|
19482
|
+
var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
|
|
19483
|
+
var renderEditItem$1 = utils.renderEditItem,
|
|
19484
|
+
renderDetailItem$1 = utils.renderDetailItem,
|
|
19485
|
+
getOrderListSingleton$4 = utils.getOrderListSingleton;
|
|
19486
|
+
var OrderSubForm = function OrderSubForm(props) {
|
|
19487
|
+
var _props$value = props.value,
|
|
19488
|
+
value = _props$value === void 0 ? {} : _props$value,
|
|
19489
|
+
onChange = props.onChange,
|
|
19490
|
+
_props$tableHeader = props.tableHeader,
|
|
19491
|
+
tableHeader = _props$tableHeader === void 0 ? [] : _props$tableHeader,
|
|
19492
|
+
_props$disabled = props.disabled,
|
|
19493
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
19494
|
+
maxCount = props.maxCount,
|
|
19495
|
+
manual = props.manual,
|
|
19496
|
+
correlationList = props.subConfig.correlationList,
|
|
19497
|
+
effects = props.effects;
|
|
19498
|
+
var valueRef = useRef(value);
|
|
19499
|
+
useEffect(function () {
|
|
19500
|
+
valueRef.current = value;
|
|
19501
|
+
return;
|
|
19502
|
+
}, [value]);
|
|
19503
|
+
var _useState = useState(null),
|
|
19504
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19505
|
+
hoveredRowIndex = _useState2[0],
|
|
19506
|
+
setHoveredRowIndex = _useState2[1];
|
|
19507
|
+
var updateHandle = useCallback(function (val, index, type) {
|
|
19508
|
+
var _valueRef$current, _valueRef$current$sub;
|
|
19509
|
+
if ((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : (_valueRef$current$sub = _valueRef$current.subOrderList) === null || _valueRef$current$sub === void 0 ? void 0 : _valueRef$current$sub.length) {
|
|
19510
|
+
var _valueRef$current2;
|
|
19511
|
+
var subOrderList = JSON.parse(JSON.stringify((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.subOrderList));
|
|
19512
|
+
subOrderList[index][type] = val;
|
|
19513
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
19514
|
+
subOrderList: subOrderList
|
|
19515
|
+
}));
|
|
19516
|
+
}
|
|
19517
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19518
|
+
var orderSubformColumns = useMemo(function () {
|
|
19519
|
+
return getOrderSubformColumns$1({
|
|
19520
|
+
expressData: ExpressData.getInstance().getExpressData()
|
|
19521
|
+
});
|
|
19522
|
+
}, [ExpressData]);
|
|
19523
|
+
var orderSubformColumnMap = useMemo(function () {
|
|
19524
|
+
return orderSubformColumns.reduce(function (prv, next) {
|
|
19525
|
+
prv[next.dataIndex] = next;
|
|
19526
|
+
return prv;
|
|
19527
|
+
}, {});
|
|
19528
|
+
}, [orderSubformColumns]);
|
|
19529
|
+
var initColumns = useMemo(function () {
|
|
19530
|
+
return correlationList && (correlationList === null || correlationList === void 0 ? void 0 : correlationList.length) ? correlationList.map(function (t) {
|
|
19531
|
+
return orderSubformColumnMap === null || orderSubformColumnMap === void 0 ? void 0 : orderSubformColumnMap[t === null || t === void 0 ? void 0 : t.dataIndex];
|
|
19532
|
+
}) : orderSubformColumns;
|
|
19533
|
+
}, [correlationList, orderSubformColumns]);
|
|
19534
|
+
var newTableHeader = useMemo(function () {
|
|
19535
|
+
return initColumns.reduce(function (prv, next) {
|
|
19536
|
+
var t = tableHeader.find(function (t) {
|
|
19537
|
+
return t.key === (next === null || next === void 0 ? void 0 : next.dataIndex);
|
|
19538
|
+
}) || {
|
|
19539
|
+
isShow: true,
|
|
19540
|
+
isEdit: false,
|
|
19541
|
+
isRequired: false,
|
|
19542
|
+
width: (next === null || next === void 0 ? void 0 : next.width) ? Number(next === null || next === void 0 ? void 0 : next.width) : 150
|
|
19543
|
+
};
|
|
19544
|
+
if (t && t.isShow) {
|
|
19545
|
+
prv.push(_objectSpread2(_objectSpread2(_objectSpread2({}, next), t), {}, {
|
|
19546
|
+
widgetProps: (next === null || next === void 0 ? void 0 : next.widgetProps) || {}
|
|
19547
|
+
}));
|
|
19548
|
+
}
|
|
19549
|
+
return prv;
|
|
19550
|
+
}, []);
|
|
19551
|
+
}, [orderSubformColumns, tableHeader]);
|
|
19552
|
+
var column = useMemo(function () {
|
|
19553
|
+
var list = [{
|
|
19554
|
+
dataIndex: 'index',
|
|
19555
|
+
title: '序号',
|
|
19556
|
+
width: 80,
|
|
19557
|
+
ellipsis: true,
|
|
19558
|
+
render: function render(val, record, index) {
|
|
19559
|
+
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
19560
|
+
index: index,
|
|
19561
|
+
hoveredRowIndex: hoveredRowIndex,
|
|
19562
|
+
handleClick: function handleClick() {
|
|
19563
|
+
return deleteHandle(record.uuid);
|
|
19564
|
+
}
|
|
19565
|
+
});
|
|
19566
|
+
}
|
|
19567
|
+
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
19568
|
+
return _objectSpread2(_objectSpread2({}, t), {}, {
|
|
19569
|
+
ellipsis: true,
|
|
19570
|
+
dataIndex: t === null || t === void 0 ? void 0 : t.dataIndex,
|
|
19571
|
+
title: /*#__PURE__*/React.createElement("span", null, t.isRequired ? /*#__PURE__*/React.createElement("span", {
|
|
19572
|
+
style: {
|
|
19573
|
+
color: 'red'
|
|
19574
|
+
}
|
|
19575
|
+
}, "*") : null, (t === null || t === void 0 ? void 0 : t.settingName) || t.title),
|
|
19576
|
+
width: (t === null || t === void 0 ? void 0 : t.width) ? Number(t === null || t === void 0 ? void 0 : t.width) : 150,
|
|
19577
|
+
render: function render(val, record, index) {
|
|
19578
|
+
// const column = orderSubformColumnMap[t.dataIndex];
|
|
19579
|
+
var isDisabled = t.isEdit || disabled;
|
|
19580
|
+
return renderEditItem$1({
|
|
19581
|
+
item: t || {},
|
|
19582
|
+
val: val,
|
|
19583
|
+
disabled: isDisabled,
|
|
19584
|
+
index: index,
|
|
19585
|
+
type: t === null || t === void 0 ? void 0 : t.dataIndex,
|
|
19586
|
+
updateHandle: updateHandle
|
|
19587
|
+
});
|
|
19588
|
+
}
|
|
19589
|
+
});
|
|
19590
|
+
})));
|
|
19591
|
+
if (!disabled) {
|
|
19592
|
+
list.push({
|
|
19593
|
+
dataIndex: 'operation',
|
|
19594
|
+
title: '操作',
|
|
19595
|
+
width: 70,
|
|
19596
|
+
fixed: 'right',
|
|
19597
|
+
render: function render(val, record, index) {
|
|
19598
|
+
return /*#__PURE__*/React.createElement(Space, null, manual && /*#__PURE__*/React.createElement(Tooltip, {
|
|
19599
|
+
title: "\u6DFB\u52A0"
|
|
19600
|
+
}, /*#__PURE__*/React.createElement(PlusCircleFilled, {
|
|
19601
|
+
style: {
|
|
19602
|
+
fontSize: 18,
|
|
19603
|
+
color: '#1890ff'
|
|
19604
|
+
},
|
|
19605
|
+
onClick: function onClick() {
|
|
19606
|
+
return addHandle(index + 1);
|
|
19607
|
+
}
|
|
19608
|
+
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
19609
|
+
title: "\u5220\u9664"
|
|
19610
|
+
}, /*#__PURE__*/React.createElement(MinusCircleFilled, {
|
|
19611
|
+
style: {
|
|
19612
|
+
fontSize: 18
|
|
19613
|
+
},
|
|
19614
|
+
onClick: function onClick() {
|
|
19615
|
+
return deleteHandle(record.uuid);
|
|
19616
|
+
}
|
|
19617
|
+
})));
|
|
19618
|
+
}
|
|
19619
|
+
});
|
|
19620
|
+
}
|
|
19621
|
+
return list;
|
|
19622
|
+
}, [newTableHeader, disabled, updateHandle]);
|
|
19623
|
+
console.log('column', column);
|
|
19624
|
+
var orderModalColumns = useMemo(function () {
|
|
19625
|
+
return [{
|
|
19626
|
+
dataIndex: '',
|
|
19627
|
+
title: '序号',
|
|
19628
|
+
align: 'center',
|
|
19629
|
+
ellipsis: true,
|
|
19630
|
+
width: 80,
|
|
19631
|
+
render: function render(val, record, index) {
|
|
19632
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
19633
|
+
}
|
|
19634
|
+
}].concat(_toConsumableArray(column.filter(function (item) {
|
|
19635
|
+
return !['operation', 'index'].includes((item === null || item === void 0 ? void 0 : item.dataIndex) || '');
|
|
19636
|
+
}).map(function (item) {
|
|
19637
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
19638
|
+
ellipsis: true,
|
|
19639
|
+
render: function render(val, record, index) {
|
|
19640
|
+
return renderDetailItem$1({
|
|
19641
|
+
item: item,
|
|
19642
|
+
val: val
|
|
19643
|
+
});
|
|
19644
|
+
}
|
|
19645
|
+
});
|
|
19646
|
+
})));
|
|
19647
|
+
}, [column]);
|
|
19648
|
+
var defaultValueMap = useMemo(function () {
|
|
19649
|
+
return newTableHeader.reduce(function (prv, next) {
|
|
19650
|
+
prv["".concat(next.dataIndex)] = '';
|
|
19651
|
+
return prv;
|
|
19652
|
+
}, {});
|
|
19653
|
+
}, [newTableHeader]);
|
|
19654
|
+
var deleteHandle = function deleteHandle(uuid) {
|
|
19655
|
+
var _value$subOrderList;
|
|
19656
|
+
var newList = value === null || value === void 0 ? void 0 : (_value$subOrderList = value.subOrderList) === null || _value$subOrderList === void 0 ? void 0 : _value$subOrderList.filter(function (item) {
|
|
19657
|
+
return item.uuid !== uuid;
|
|
19658
|
+
});
|
|
19659
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19660
|
+
subOrderList: newList
|
|
19661
|
+
}));
|
|
19662
|
+
};
|
|
19663
|
+
var addHandle = function addHandle(index) {
|
|
19664
|
+
var _value$subOrderList2;
|
|
19665
|
+
if (maxCount && (value === null || value === void 0 ? void 0 : (_value$subOrderList2 = value.subOrderList) === null || _value$subOrderList2 === void 0 ? void 0 : _value$subOrderList2.length) >= maxCount) {
|
|
19666
|
+
message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
|
|
19667
|
+
return;
|
|
19668
|
+
}
|
|
19669
|
+
var subOrderList = _toConsumableArray((value === null || value === void 0 ? void 0 : value.subOrderList) || []);
|
|
19670
|
+
subOrderList.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
|
|
19671
|
+
uuid: uuid()
|
|
19672
|
+
}));
|
|
19673
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19674
|
+
subOrderList: subOrderList
|
|
19675
|
+
}));
|
|
19676
|
+
};
|
|
19677
|
+
var getDataSourceAsync = function getDataSourceAsync() {
|
|
19678
|
+
var _effects$form;
|
|
19679
|
+
var _ref = (effects === null || effects === void 0 ? void 0 : (_effects$form = effects.form) === null || _effects$form === void 0 ? void 0 : _effects$form.getFieldsValue()) || {},
|
|
19680
|
+
_ref$shopId = _ref.shopId,
|
|
19681
|
+
shopId = _ref$shopId === void 0 ? '' : _ref$shopId;
|
|
19682
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId ? getOrderListSingleton$4({
|
|
19683
|
+
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
19684
|
+
shopId: shopId
|
|
19685
|
+
}).then(function (data) {
|
|
19686
|
+
var allOrders = updateOrderSubFormGoodsHandle(data || []);
|
|
19687
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19688
|
+
allOrders: allOrders
|
|
19689
|
+
}));
|
|
19690
|
+
}) : Promise.resolve();
|
|
19691
|
+
};
|
|
19692
|
+
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
19693
|
+
var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
|
|
19694
|
+
return goodDetails;
|
|
19695
|
+
};
|
|
19696
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19697
|
+
var _uniqBy;
|
|
19698
|
+
var newValue = _objectSpread2({}, value);
|
|
19699
|
+
// 原订单商品
|
|
19700
|
+
var originTradeGoodList = getAllTradeGoodsDetails() || [];
|
|
19701
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19702
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value.subOrderList) || [];
|
|
19703
|
+
newValue['subOrderList'] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19704
|
+
return skuList.includes(item.uuid);
|
|
19705
|
+
});
|
|
19706
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19707
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19708
|
+
// TODO: 商品订单中以选中商品
|
|
19709
|
+
var selectedGoods = useMemo(function () {
|
|
19710
|
+
var _value$subOrderList3;
|
|
19711
|
+
return value === null || value === void 0 ? void 0 : (_value$subOrderList3 = value.subOrderList) === null || _value$subOrderList3 === void 0 ? void 0 : _value$subOrderList3.map(function (v) {
|
|
19712
|
+
return v === null || v === void 0 ? void 0 : v.uuid;
|
|
19713
|
+
});
|
|
19714
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19715
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && /*#__PURE__*/React.createElement("div", {
|
|
19716
|
+
style: {
|
|
19717
|
+
float: 'right'
|
|
19718
|
+
}
|
|
19719
|
+
}, /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
19720
|
+
uniqueKey: 'uuid',
|
|
19721
|
+
columns: orderModalColumns,
|
|
19722
|
+
dataSource: getAllTradeGoodsDetails(),
|
|
19723
|
+
getDataSourceAsync: getDataSourceAsync,
|
|
19724
|
+
selectedRowKeys: selectedGoods,
|
|
19725
|
+
onChangeSelectedKeys: selectedGoodsChange,
|
|
19726
|
+
width: 850
|
|
19727
|
+
})), /*#__PURE__*/React.createElement(Table, {
|
|
19728
|
+
columns: column,
|
|
19729
|
+
dataSource: (value === null || value === void 0 ? void 0 : value.subOrderList) || [],
|
|
19730
|
+
rowKey: 'uuid',
|
|
19731
|
+
size: "small",
|
|
19732
|
+
pagination: false,
|
|
19733
|
+
tableLayout: "fixed",
|
|
19734
|
+
scroll: {
|
|
19735
|
+
x: 'max-content'
|
|
19736
|
+
},
|
|
19737
|
+
locale: {
|
|
19738
|
+
emptyText: !disabled && manual ? /*#__PURE__*/React.createElement("span", null, "\u6682\u65E0\u6570\u636E,", /*#__PURE__*/React.createElement(Button, {
|
|
19739
|
+
type: "link",
|
|
19740
|
+
onClick: function onClick() {
|
|
19741
|
+
return addHandle(0);
|
|
19742
|
+
}
|
|
19743
|
+
}, "\u70B9\u51FB\u6DFB\u52A0")) : '暂无数据'
|
|
19744
|
+
},
|
|
19745
|
+
onRow: function onRow(_, index) {
|
|
19746
|
+
return {
|
|
19747
|
+
onMouseEnter: function onMouseEnter() {
|
|
19748
|
+
return setHoveredRowIndex(index !== null && index !== void 0 ? index : null);
|
|
19749
|
+
},
|
|
19750
|
+
onMouseLeave: function onMouseLeave() {
|
|
19751
|
+
return setHoveredRowIndex(null);
|
|
19752
|
+
}
|
|
19753
|
+
};
|
|
19754
|
+
}
|
|
19755
|
+
}));
|
|
19756
|
+
};
|
|
19757
|
+
|
|
18941
19758
|
var isErpType$1 = {
|
|
18942
19759
|
isWdt: function isWdt(type) {
|
|
18943
19760
|
return ['WDT_GOODS'].includes(type);
|
|
@@ -20386,8 +21203,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
20386
21203
|
})));
|
|
20387
21204
|
};
|
|
20388
21205
|
|
|
20389
|
-
var css_248z$
|
|
20390
|
-
styleInject(css_248z$
|
|
21206
|
+
var css_248z$c = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
21207
|
+
styleInject(css_248z$c);
|
|
20391
21208
|
|
|
20392
21209
|
var TabPane$1 = Tabs.TabPane;
|
|
20393
21210
|
var Option$2 = Select.Option;
|
|
@@ -20860,7 +21677,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
20860
21677
|
userNick: userNick
|
|
20861
21678
|
}));
|
|
20862
21679
|
};
|
|
20863
|
-
var index$
|
|
21680
|
+
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
20864
21681
|
|
|
20865
21682
|
var _excluded$k = ["onChange", "value", "failValue"];
|
|
20866
21683
|
function CommonStatus(props) {
|
|
@@ -21461,9 +22278,9 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
21461
22278
|
})));
|
|
21462
22279
|
};
|
|
21463
22280
|
|
|
21464
|
-
var css_248z$
|
|
21465
|
-
var styles$
|
|
21466
|
-
styleInject(css_248z$
|
|
22281
|
+
var css_248z$d = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-disabled {\n color: #dadada !important;\n}\n";
|
|
22282
|
+
var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
|
|
22283
|
+
styleInject(css_248z$d);
|
|
21467
22284
|
|
|
21468
22285
|
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
21469
22286
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
@@ -21725,7 +22542,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
21725
22542
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
21726
22543
|
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type35 = typeMap$4[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.showOrderInfo) || []).map(function (item) {
|
|
21727
22544
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
21728
|
-
className: styles$
|
|
22545
|
+
className: styles$6.systemNoDisabled,
|
|
21729
22546
|
key: item.billNo,
|
|
21730
22547
|
value: item.billNo,
|
|
21731
22548
|
label: item.billNo,
|
|
@@ -22023,7 +22840,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
22023
22840
|
placeholder: "\u9009\u62E9\u9000\u8D27\u7684\u7CFB\u7EDF\u5355"
|
|
22024
22841
|
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type30 = typeMap$5[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
|
|
22025
22842
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
22026
|
-
className: styles$
|
|
22843
|
+
className: styles$6.systemNoDisabled,
|
|
22027
22844
|
key: item.billNo,
|
|
22028
22845
|
value: item.billNo,
|
|
22029
22846
|
label: item.billNo,
|
|
@@ -22074,9 +22891,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
22074
22891
|
})));
|
|
22075
22892
|
};
|
|
22076
22893
|
|
|
22077
|
-
var css_248z$
|
|
22078
|
-
var styles$
|
|
22079
|
-
styleInject(css_248z$
|
|
22894
|
+
var css_248z$e = ".index-module_imageBox__1f2AI {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1f2AI .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1f2AI .ant-upload .index-module_addBtn__1DY59 {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1f2AI > span {\n max-width: 100%;\n}\n.index-module_tips__1XQjf {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
22895
|
+
var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
|
|
22896
|
+
styleInject(css_248z$e);
|
|
22080
22897
|
|
|
22081
22898
|
var _excluded$r = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
|
|
22082
22899
|
var Dragger$1 = Upload.Dragger;
|
|
@@ -22252,9 +23069,9 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22252
23069
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
22253
23070
|
spinning: uploading
|
|
22254
23071
|
}, /*#__PURE__*/React.createElement("p", {
|
|
22255
|
-
className: styles$
|
|
23072
|
+
className: styles$7.tips
|
|
22256
23073
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6\uFF0C\u652F\u6301", videoSuffixList.join('/'), "\u683C\u5F0F\u6587\u4EF6"), /*#__PURE__*/React.createElement("div", {
|
|
22257
|
-
className: styles$
|
|
23074
|
+
className: styles$7.imageBox
|
|
22258
23075
|
}, /*#__PURE__*/React.createElement(Dragger$1, _objectSpread2({
|
|
22259
23076
|
disabled: disabled,
|
|
22260
23077
|
multiple: true,
|
|
@@ -22280,9 +23097,9 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22280
23097
|
}), file.kmVideoType && "".concat(file.kmVideoType));
|
|
22281
23098
|
}
|
|
22282
23099
|
}, resetProps), /*#__PURE__*/React.createElement("span", {
|
|
22283
|
-
className: styles$
|
|
23100
|
+
className: styles$7.addBtn
|
|
22284
23101
|
}, "+"), /*#__PURE__*/React.createElement("p", {
|
|
22285
|
-
className: styles$
|
|
23102
|
+
className: styles$7.addBtn
|
|
22286
23103
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React.createElement(Modal, {
|
|
22287
23104
|
visible: visible,
|
|
22288
23105
|
title: fileName,
|
|
@@ -22317,15 +23134,15 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22317
23134
|
}))));
|
|
22318
23135
|
};
|
|
22319
23136
|
|
|
22320
|
-
var singletonMap$
|
|
23137
|
+
var singletonMap$8 = new Map();
|
|
22321
23138
|
var getAllGoods = function getAllGoods(params, setLoading) {
|
|
22322
23139
|
var id = params.tid || params.onBillNo || '';
|
|
22323
|
-
if (!singletonMap$
|
|
23140
|
+
if (!singletonMap$8.has(id)) {
|
|
22324
23141
|
setLoading && setLoading(true);
|
|
22325
23142
|
var p = new Promise(function (resolve, reject) {
|
|
22326
23143
|
var doReject = function doReject(err) {
|
|
22327
23144
|
// 清空掉错误的请求记录
|
|
22328
|
-
singletonMap$
|
|
23145
|
+
singletonMap$8.delete(id);
|
|
22329
23146
|
reject(err);
|
|
22330
23147
|
};
|
|
22331
23148
|
extendRequest('/qy/gdfw/order/skxOrderDetail', {
|
|
@@ -22347,7 +23164,7 @@ var getAllGoods = function getAllGoods(params, setLoading) {
|
|
|
22347
23164
|
resolve(res.data);
|
|
22348
23165
|
// 延迟10秒清除,保证订单的时效性
|
|
22349
23166
|
setTimeout(function () {
|
|
22350
|
-
singletonMap$
|
|
23167
|
+
singletonMap$8.delete(id);
|
|
22351
23168
|
}, 1000 * 10);
|
|
22352
23169
|
} else {
|
|
22353
23170
|
doReject(res);
|
|
@@ -22356,9 +23173,9 @@ var getAllGoods = function getAllGoods(params, setLoading) {
|
|
|
22356
23173
|
setLoading && setLoading(false);
|
|
22357
23174
|
});
|
|
22358
23175
|
});
|
|
22359
|
-
singletonMap$
|
|
23176
|
+
singletonMap$8.set(id, p);
|
|
22360
23177
|
}
|
|
22361
|
-
return singletonMap$
|
|
23178
|
+
return singletonMap$8.get(id);
|
|
22362
23179
|
};
|
|
22363
23180
|
var skxUtils = {
|
|
22364
23181
|
getAllGoods: getAllGoods
|
|
@@ -22674,4 +23491,4 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
22674
23491
|
}));
|
|
22675
23492
|
};
|
|
22676
23493
|
|
|
22677
|
-
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,
|
|
23494
|
+
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, 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$6 as getKmColumns, getColumns$7 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, skxUtils };
|