@kmkf-fe-packages/basic-components 2.4.0-rc.0 → 2.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +842 -29
- package/dist/index.js +846 -30
- 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.js
CHANGED
|
@@ -1237,7 +1237,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
|
|
|
1237
1237
|
className: "addBtn"
|
|
1238
1238
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText)))));
|
|
1239
1239
|
};
|
|
1240
|
-
var
|
|
1240
|
+
var ApaasUploadAsync$1 = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
|
|
1241
1241
|
|
|
1242
1242
|
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";
|
|
1243
1243
|
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"};
|
|
@@ -1546,7 +1546,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
|
|
|
1546
1546
|
className: "addBtn"
|
|
1547
1547
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText))), renderImages(value)));
|
|
1548
1548
|
};
|
|
1549
|
-
var index
|
|
1549
|
+
var index = /*#__PURE__*/React.forwardRef(ApaasUploadProAsync);
|
|
1550
1550
|
|
|
1551
1551
|
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";
|
|
1552
1552
|
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"};
|
|
@@ -13006,7 +13006,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
|
13006
13006
|
});
|
|
13007
13007
|
return newColumns;
|
|
13008
13008
|
};
|
|
13009
|
-
var index$
|
|
13009
|
+
var index$1 = getColumnsBaseInfo();
|
|
13010
13010
|
|
|
13011
13011
|
var initNo = {
|
|
13012
13012
|
dataIndex: 'index',
|
|
@@ -18640,7 +18640,7 @@ var rowKeyMap = {
|
|
|
18640
18640
|
GY_SYSTEM_ORDER: 'billNo',
|
|
18641
18641
|
JST_SYSTEM_ORDER: 'oId'
|
|
18642
18642
|
};
|
|
18643
|
-
var index$
|
|
18643
|
+
var index$2 = (function (props) {
|
|
18644
18644
|
var value = props.value,
|
|
18645
18645
|
_onChange = props.onChange,
|
|
18646
18646
|
disabled = props.disabled,
|
|
@@ -18950,6 +18950,819 @@ var index$3 = (function (props) {
|
|
|
18950
18950
|
}));
|
|
18951
18951
|
});
|
|
18952
18952
|
|
|
18953
|
+
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";
|
|
18954
|
+
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"};
|
|
18955
|
+
styleInject(css_248z$b);
|
|
18956
|
+
|
|
18957
|
+
var CustomizeUpload = function CustomizeUpload(_ref) {
|
|
18958
|
+
var _ref$value = _ref.value,
|
|
18959
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
|
18960
|
+
onChange = _ref.onChange,
|
|
18961
|
+
_ref$disabled = _ref.disabled,
|
|
18962
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
18963
|
+
_ref$maxCount = _ref.maxCount,
|
|
18964
|
+
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
18965
|
+
_ref$maxSize = _ref.maxSize,
|
|
18966
|
+
maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize;
|
|
18967
|
+
var _useState = React.useState(false),
|
|
18968
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18969
|
+
popoverVisible = _useState2[0],
|
|
18970
|
+
setPopoverVisible = _useState2[1];
|
|
18971
|
+
var newValue = React.useMemo(function () {
|
|
18972
|
+
return value ? value === null || value === void 0 ? void 0 : value.split(',') : [];
|
|
18973
|
+
}, [value]);
|
|
18974
|
+
// 渲染图片显示
|
|
18975
|
+
var renderImages = function renderImages() {
|
|
18976
|
+
if (newValue.length === 0) return null;
|
|
18977
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image.PreviewGroup, null, newValue.map(function (image, index) {
|
|
18978
|
+
var finalSrc = (image === null || image === void 0 ? void 0 : image.startsWith('http')) ? image : "https://kefu.kuaimai.com/".concat(image);
|
|
18979
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18980
|
+
key: index,
|
|
18981
|
+
className: styles$5.imageItem
|
|
18982
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
18983
|
+
src: finalSrc,
|
|
18984
|
+
alt: "\u56FE\u7247".concat(index + 1),
|
|
18985
|
+
className: styles$5.image,
|
|
18986
|
+
preview: {
|
|
18987
|
+
mask: '点击预览'
|
|
18988
|
+
}
|
|
18989
|
+
}));
|
|
18990
|
+
}));
|
|
18991
|
+
};
|
|
18992
|
+
var handleUploadChange = function handleUploadChange(val) {
|
|
18993
|
+
var newValue = val.map(function (t) {
|
|
18994
|
+
return (t === null || t === void 0 ? void 0 : t.startsWith('http')) ? t : "https://kefu.kuaimai.com/".concat(t);
|
|
18995
|
+
});
|
|
18996
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.join(','));
|
|
18997
|
+
};
|
|
18998
|
+
// Popover 内容
|
|
18999
|
+
var popoverContent = /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19000
|
+
className: styles$5.popoverContent
|
|
19001
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19002
|
+
className: styles$5.popoverTitle
|
|
19003
|
+
}, "\u6DFB\u52A0\u56FE\u7247"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19004
|
+
className: styles$5.uploadContainer
|
|
19005
|
+
}, /*#__PURE__*/React__default['default'].createElement(ApaasUploadAsync$1, {
|
|
19006
|
+
canPreview: true,
|
|
19007
|
+
maxSize: maxSize,
|
|
19008
|
+
maxCount: maxCount,
|
|
19009
|
+
uniqueKey: "remark",
|
|
19010
|
+
hostUrl: "https://kefu.kuaimai.com",
|
|
19011
|
+
value: newValue || [],
|
|
19012
|
+
onChange: handleUploadChange,
|
|
19013
|
+
disabled: disabled
|
|
19014
|
+
})));
|
|
19015
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19016
|
+
className: styles$5.customizeUpload
|
|
19017
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19018
|
+
className: styles$5.inputContainer
|
|
19019
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
19020
|
+
getPopupContainer: function getPopupContainer() {
|
|
19021
|
+
return document.body;
|
|
19022
|
+
},
|
|
19023
|
+
content: popoverContent,
|
|
19024
|
+
title: null,
|
|
19025
|
+
trigger: "click",
|
|
19026
|
+
open: popoverVisible,
|
|
19027
|
+
onOpenChange: setPopoverVisible,
|
|
19028
|
+
placement: "bottomLeft",
|
|
19029
|
+
overlayStyle: {
|
|
19030
|
+
zIndex: 2000
|
|
19031
|
+
}
|
|
19032
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
19033
|
+
className: styles$5.addButton,
|
|
19034
|
+
icon: /*#__PURE__*/React__default['default'].createElement(icons.PlusOutlined, null),
|
|
19035
|
+
disabled: disabled,
|
|
19036
|
+
type: "text"
|
|
19037
|
+
}))), renderImages());
|
|
19038
|
+
};
|
|
19039
|
+
|
|
19040
|
+
var refundTypeMap = {
|
|
19041
|
+
0: '其他',
|
|
19042
|
+
1: '已发货仅退款',
|
|
19043
|
+
2: '退货',
|
|
19044
|
+
3: '补发',
|
|
19045
|
+
4: '换货',
|
|
19046
|
+
5: '未发货仅退款',
|
|
19047
|
+
9: '维修',
|
|
19048
|
+
10: '价保',
|
|
19049
|
+
11: '大家电安装',
|
|
19050
|
+
12: '大家电移机',
|
|
19051
|
+
13: '大家电增值服务',
|
|
19052
|
+
14: '优鲜赔',
|
|
19053
|
+
15: '试用收回'
|
|
19054
|
+
};
|
|
19055
|
+
var refundTypeOptions = Object.entries(refundTypeMap).map(function (_ref) {
|
|
19056
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
19057
|
+
key = _ref2[0],
|
|
19058
|
+
value = _ref2[1];
|
|
19059
|
+
return {
|
|
19060
|
+
label: value,
|
|
19061
|
+
value: Number(key)
|
|
19062
|
+
};
|
|
19063
|
+
});
|
|
19064
|
+
var onlineStatusMap = {
|
|
19065
|
+
1: '空',
|
|
19066
|
+
2: '待卖家同意',
|
|
19067
|
+
3: '待买家退货',
|
|
19068
|
+
4: '待卖家确认收货',
|
|
19069
|
+
5: '卖家拒绝退款',
|
|
19070
|
+
6: '退款关闭',
|
|
19071
|
+
7: '退款成功',
|
|
19072
|
+
8: '待发出换货商品',
|
|
19073
|
+
9: '待买家收货',
|
|
19074
|
+
10: '换货关闭',
|
|
19075
|
+
11: '换货成功'
|
|
19076
|
+
};
|
|
19077
|
+
var onlineStatusOptions = Object.entries(onlineStatusMap).map(function (_ref3) {
|
|
19078
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
19079
|
+
key = _ref4[0],
|
|
19080
|
+
value = _ref4[1];
|
|
19081
|
+
return {
|
|
19082
|
+
label: value,
|
|
19083
|
+
value: Number(key)
|
|
19084
|
+
};
|
|
19085
|
+
});
|
|
19086
|
+
var consignTypeMap = {
|
|
19087
|
+
1: '是',
|
|
19088
|
+
0: '否'
|
|
19089
|
+
};
|
|
19090
|
+
var consignTypeOptions = Object.entries(consignTypeMap).map(function (_ref5) {
|
|
19091
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
19092
|
+
key = _ref6[0],
|
|
19093
|
+
value = _ref6[1];
|
|
19094
|
+
return {
|
|
19095
|
+
label: value,
|
|
19096
|
+
value: Number(key)
|
|
19097
|
+
};
|
|
19098
|
+
});
|
|
19099
|
+
var getOrderSubformColumns = function getOrderSubformColumns(parmas) {
|
|
19100
|
+
var _ref7 = parmas || {},
|
|
19101
|
+
_ref7$expressData = _ref7.expressData,
|
|
19102
|
+
expressData = _ref7$expressData === void 0 ? [] : _ref7$expressData;
|
|
19103
|
+
return [{
|
|
19104
|
+
dataIndex: 'title',
|
|
19105
|
+
title: '商品名称',
|
|
19106
|
+
widget: 'input',
|
|
19107
|
+
widgetProps: {},
|
|
19108
|
+
width: 150
|
|
19109
|
+
}, {
|
|
19110
|
+
dataIndex: 'productCode',
|
|
19111
|
+
title: '商品编码',
|
|
19112
|
+
widget: 'input',
|
|
19113
|
+
width: 150,
|
|
19114
|
+
widgetProps: {}
|
|
19115
|
+
}, {
|
|
19116
|
+
dataIndex: 'picUrl',
|
|
19117
|
+
title: '图片',
|
|
19118
|
+
widget: 'upload',
|
|
19119
|
+
widgetProps: {},
|
|
19120
|
+
width: 100,
|
|
19121
|
+
customizeComponent: function customizeComponent(config) {
|
|
19122
|
+
return /*#__PURE__*/React__default['default'].createElement(CustomizeUpload, {
|
|
19123
|
+
disabled: config.disabled,
|
|
19124
|
+
value: config.value,
|
|
19125
|
+
onChange: config.onChange,
|
|
19126
|
+
maxCount: config.maxCount,
|
|
19127
|
+
maxSize: config.maxSize
|
|
19128
|
+
});
|
|
19129
|
+
}
|
|
19130
|
+
}, {
|
|
19131
|
+
dataIndex: 'numIid',
|
|
19132
|
+
title: '商品id',
|
|
19133
|
+
widget: 'input',
|
|
19134
|
+
widgetProps: {},
|
|
19135
|
+
width: 150
|
|
19136
|
+
}, {
|
|
19137
|
+
dataIndex: 'quantity',
|
|
19138
|
+
title: '商品数量',
|
|
19139
|
+
widget: 'inputNumber',
|
|
19140
|
+
width: 100,
|
|
19141
|
+
widgetProps: {
|
|
19142
|
+
precision: 0,
|
|
19143
|
+
min: 0
|
|
19144
|
+
}
|
|
19145
|
+
}, {
|
|
19146
|
+
dataIndex: 'skuId',
|
|
19147
|
+
title: 'SKU ID',
|
|
19148
|
+
widget: 'input',
|
|
19149
|
+
width: 150,
|
|
19150
|
+
widgetProps: {}
|
|
19151
|
+
}, {
|
|
19152
|
+
dataIndex: 'outerSkuId',
|
|
19153
|
+
title: 'SKU 编码',
|
|
19154
|
+
widget: 'input',
|
|
19155
|
+
width: 150,
|
|
19156
|
+
widgetProps: {}
|
|
19157
|
+
}, {
|
|
19158
|
+
dataIndex: 'propertiesName',
|
|
19159
|
+
title: 'SKU 信息',
|
|
19160
|
+
widget: 'input',
|
|
19161
|
+
width: 200,
|
|
19162
|
+
widgetProps: {}
|
|
19163
|
+
}, {
|
|
19164
|
+
dataIndex: 'oid',
|
|
19165
|
+
title: '子订单号',
|
|
19166
|
+
widget: 'input',
|
|
19167
|
+
width: 150,
|
|
19168
|
+
widgetProps: {}
|
|
19169
|
+
}, {
|
|
19170
|
+
dataIndex: 'price',
|
|
19171
|
+
title: '商品单价',
|
|
19172
|
+
widget: 'inputNumber',
|
|
19173
|
+
width: 100,
|
|
19174
|
+
widgetProps: {
|
|
19175
|
+
precision: 2,
|
|
19176
|
+
min: 0
|
|
19177
|
+
}
|
|
19178
|
+
}, {
|
|
19179
|
+
dataIndex: 'actualPayment',
|
|
19180
|
+
title: '[子]实付金额',
|
|
19181
|
+
widget: 'inputNumber',
|
|
19182
|
+
width: 100,
|
|
19183
|
+
widgetProps: {
|
|
19184
|
+
precision: 2,
|
|
19185
|
+
min: 0
|
|
19186
|
+
}
|
|
19187
|
+
}, {
|
|
19188
|
+
dataIndex: 'expressLogisticsCode',
|
|
19189
|
+
title: '[子]运单号',
|
|
19190
|
+
widget: 'input',
|
|
19191
|
+
width: 150,
|
|
19192
|
+
widgetProps: {}
|
|
19193
|
+
}, {
|
|
19194
|
+
dataIndex: 'expressLogisticsCompany',
|
|
19195
|
+
title: '[子]发货快递',
|
|
19196
|
+
widget: 'select',
|
|
19197
|
+
width: 150,
|
|
19198
|
+
widgetProps: {
|
|
19199
|
+
filterOption: function filterOption(input, option) {
|
|
19200
|
+
return option.label.includes(input);
|
|
19201
|
+
},
|
|
19202
|
+
options: expressData,
|
|
19203
|
+
showSearch: true,
|
|
19204
|
+
allowClear: true
|
|
19205
|
+
}
|
|
19206
|
+
}, {
|
|
19207
|
+
dataIndex: 'refundId',
|
|
19208
|
+
title: '退款单ID',
|
|
19209
|
+
widget: 'input',
|
|
19210
|
+
width: 150,
|
|
19211
|
+
widgetProps: {}
|
|
19212
|
+
}, {
|
|
19213
|
+
dataIndex: 'returnExpressLogisticsCode',
|
|
19214
|
+
title: '退货物流单号',
|
|
19215
|
+
widget: 'input',
|
|
19216
|
+
width: 150,
|
|
19217
|
+
widgetProps: {}
|
|
19218
|
+
}, {
|
|
19219
|
+
dataIndex: 'returnExpressLogisticsCompany',
|
|
19220
|
+
title: '退货物流公司',
|
|
19221
|
+
widget: 'select',
|
|
19222
|
+
width: 150,
|
|
19223
|
+
widgetProps: {
|
|
19224
|
+
filterOption: function filterOption(input, option) {
|
|
19225
|
+
return option.label.includes(input);
|
|
19226
|
+
},
|
|
19227
|
+
options: expressData,
|
|
19228
|
+
showSearch: true,
|
|
19229
|
+
allowClear: true
|
|
19230
|
+
}
|
|
19231
|
+
}, {
|
|
19232
|
+
dataIndex: 'reason',
|
|
19233
|
+
title: '退款原因',
|
|
19234
|
+
widget: 'input',
|
|
19235
|
+
width: 200,
|
|
19236
|
+
widgetProps: {}
|
|
19237
|
+
}, {
|
|
19238
|
+
dataIndex: 'refundAmount',
|
|
19239
|
+
title: '退款金额',
|
|
19240
|
+
widget: 'inputNumber',
|
|
19241
|
+
width: 100,
|
|
19242
|
+
widgetProps: {
|
|
19243
|
+
precision: 2,
|
|
19244
|
+
min: 0
|
|
19245
|
+
}
|
|
19246
|
+
}, {
|
|
19247
|
+
dataIndex: 'afterSaleType',
|
|
19248
|
+
title: '退款类型',
|
|
19249
|
+
widget: 'select',
|
|
19250
|
+
width: 150,
|
|
19251
|
+
widgetProps: {
|
|
19252
|
+
filterOption: function filterOption(input, option) {
|
|
19253
|
+
return option.label.includes(input);
|
|
19254
|
+
},
|
|
19255
|
+
options: refundTypeOptions,
|
|
19256
|
+
showSearch: true,
|
|
19257
|
+
allowClear: true
|
|
19258
|
+
}
|
|
19259
|
+
}, {
|
|
19260
|
+
dataIndex: 'platformStatusText',
|
|
19261
|
+
title: '退款状态(平台)',
|
|
19262
|
+
widget: 'input',
|
|
19263
|
+
width: 150,
|
|
19264
|
+
widgetProps: {}
|
|
19265
|
+
}, {
|
|
19266
|
+
dataIndex: 'onlineStatus',
|
|
19267
|
+
title: '退款状态(快麦)',
|
|
19268
|
+
widget: 'select',
|
|
19269
|
+
width: 150,
|
|
19270
|
+
widgetProps: {
|
|
19271
|
+
filterOption: function filterOption(input, option) {
|
|
19272
|
+
return option.label.includes(input);
|
|
19273
|
+
},
|
|
19274
|
+
options: onlineStatusOptions,
|
|
19275
|
+
showSearch: true,
|
|
19276
|
+
allowClear: true
|
|
19277
|
+
}
|
|
19278
|
+
}, {
|
|
19279
|
+
dataIndex: 'applyTime',
|
|
19280
|
+
title: '退款申请时间',
|
|
19281
|
+
widget: 'datePicker',
|
|
19282
|
+
width: 200,
|
|
19283
|
+
widgetProps: {
|
|
19284
|
+
showTime: true,
|
|
19285
|
+
format: 'YYYY-MM-DD HH:mm:ss'
|
|
19286
|
+
}
|
|
19287
|
+
}, {
|
|
19288
|
+
dataIndex: 'returnFreeShipping',
|
|
19289
|
+
title: '退货免运费',
|
|
19290
|
+
widget: 'input',
|
|
19291
|
+
width: 150,
|
|
19292
|
+
widgetProps: {}
|
|
19293
|
+
}, {
|
|
19294
|
+
dataIndex: 'isCNShipment',
|
|
19295
|
+
title: '是否菜鸟仓发货',
|
|
19296
|
+
widget: 'select',
|
|
19297
|
+
width: 100,
|
|
19298
|
+
widgetProps: {
|
|
19299
|
+
filterOption: function filterOption(input, option) {
|
|
19300
|
+
return option.label.includes(input);
|
|
19301
|
+
},
|
|
19302
|
+
options: consignTypeOptions,
|
|
19303
|
+
showSearch: true,
|
|
19304
|
+
allowClear: true
|
|
19305
|
+
}
|
|
19306
|
+
}];
|
|
19307
|
+
};
|
|
19308
|
+
var getSelectWidgetMap = function getSelectWidgetMap(expressDateInstance) {
|
|
19309
|
+
return {
|
|
19310
|
+
expressLogisticsCompany: function expressLogisticsCompany(code) {
|
|
19311
|
+
return expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode(code);
|
|
19312
|
+
},
|
|
19313
|
+
returnExpressLogisticsCompany: function returnExpressLogisticsCompany(code) {
|
|
19314
|
+
return expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode(code);
|
|
19315
|
+
},
|
|
19316
|
+
afterSaleType: refundTypeMap,
|
|
19317
|
+
isCNShipment: consignTypeMap,
|
|
19318
|
+
onlineStatus: onlineStatusMap
|
|
19319
|
+
};
|
|
19320
|
+
};
|
|
19321
|
+
var orderSubFormConstants = {
|
|
19322
|
+
getSelectWidgetMap: getSelectWidgetMap,
|
|
19323
|
+
getOrderSubformColumns: getOrderSubformColumns
|
|
19324
|
+
};
|
|
19325
|
+
|
|
19326
|
+
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
19327
|
+
var singletonMap$7 = new Map();
|
|
19328
|
+
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
19329
|
+
var orderNo = parmas.orderNo,
|
|
19330
|
+
shopId = parmas.shopId;
|
|
19331
|
+
var key = "".concat(orderNo, "-").concat(shopId);
|
|
19332
|
+
if (!singletonMap$7.has(key)) {
|
|
19333
|
+
var p = new Promise(function (resolve, reject) {
|
|
19334
|
+
var doReject = function doReject(err) {
|
|
19335
|
+
// 清空掉错误的请求记录
|
|
19336
|
+
singletonMap$7.delete(key);
|
|
19337
|
+
reject(err);
|
|
19338
|
+
};
|
|
19339
|
+
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
19340
|
+
method: 'post',
|
|
19341
|
+
data: _objectSpread2({}, parmas)
|
|
19342
|
+
}).then(function (data) {
|
|
19343
|
+
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
19344
|
+
var _data$data;
|
|
19345
|
+
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.length) {
|
|
19346
|
+
resolve(data === null || data === void 0 ? void 0 : data.data);
|
|
19347
|
+
} else {
|
|
19348
|
+
resolve([]);
|
|
19349
|
+
}
|
|
19350
|
+
// 延迟10秒清除,保证订单的时效性
|
|
19351
|
+
setTimeout(function () {
|
|
19352
|
+
singletonMap$7.delete(key);
|
|
19353
|
+
}, 1000 * 10);
|
|
19354
|
+
} else {
|
|
19355
|
+
doReject(data);
|
|
19356
|
+
}
|
|
19357
|
+
}).catch(doReject);
|
|
19358
|
+
});
|
|
19359
|
+
singletonMap$7.set(key, p);
|
|
19360
|
+
}
|
|
19361
|
+
return singletonMap$7.get(key);
|
|
19362
|
+
};
|
|
19363
|
+
var renderEditItem = function renderEditItem(_ref) {
|
|
19364
|
+
var item = _ref.item,
|
|
19365
|
+
val = _ref.val,
|
|
19366
|
+
disabled = _ref.disabled,
|
|
19367
|
+
index = _ref.index,
|
|
19368
|
+
type = _ref.type,
|
|
19369
|
+
updateHandle = _ref.updateHandle;
|
|
19370
|
+
var Component = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u4E0D\u652F\u6301\u7684\u7C7B\u578B\u7EC4\u4EF6\uFF1A", JSON.stringify(item.widget));
|
|
19371
|
+
if (typeof item.customizeComponent === 'function') {
|
|
19372
|
+
Component = item.customizeComponent(_objectSpread2(_objectSpread2({}, item.widgetProps), {}, {
|
|
19373
|
+
disabled: disabled,
|
|
19374
|
+
value: val,
|
|
19375
|
+
onChange: function onChange(e) {
|
|
19376
|
+
return updateHandle(e, index, type);
|
|
19377
|
+
}
|
|
19378
|
+
}));
|
|
19379
|
+
} else if (item.widget === 'input') {
|
|
19380
|
+
Component = /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, item.widgetProps), {}, {
|
|
19381
|
+
disabled: disabled,
|
|
19382
|
+
value: val,
|
|
19383
|
+
onChange: function onChange(e) {
|
|
19384
|
+
var _e$target;
|
|
19385
|
+
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);
|
|
19386
|
+
}
|
|
19387
|
+
}));
|
|
19388
|
+
} else if (item.widget === 'select') {
|
|
19389
|
+
Component = /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
19390
|
+
dropdownStyle: {
|
|
19391
|
+
zIndex: 2000
|
|
19392
|
+
},
|
|
19393
|
+
getPopupContainer: function getPopupContainer() {
|
|
19394
|
+
return document.body;
|
|
19395
|
+
}
|
|
19396
|
+
}, item.widgetProps), {}, {
|
|
19397
|
+
value: val,
|
|
19398
|
+
disabled: disabled,
|
|
19399
|
+
onChange: function onChange(e) {
|
|
19400
|
+
return updateHandle(e, index, type);
|
|
19401
|
+
}
|
|
19402
|
+
}));
|
|
19403
|
+
} else if (item.widget === 'datePicker') {
|
|
19404
|
+
Component = /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, _objectSpread2(_objectSpread2({
|
|
19405
|
+
popupStyle: {
|
|
19406
|
+
zIndex: 2000
|
|
19407
|
+
},
|
|
19408
|
+
getPopupContainer: function getPopupContainer() {
|
|
19409
|
+
return document.body;
|
|
19410
|
+
}
|
|
19411
|
+
}, item.widgetProps), {}, {
|
|
19412
|
+
value: val ? hooks(val) : null,
|
|
19413
|
+
disabled: disabled,
|
|
19414
|
+
onChange: function onChange(e) {
|
|
19415
|
+
return updateHandle(hooks(e).format('YYYY-MM-DD HH:mm:ss'), index, type);
|
|
19416
|
+
}
|
|
19417
|
+
}));
|
|
19418
|
+
} else if (item.widget === 'inputNumber') {
|
|
19419
|
+
Component = /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
19420
|
+
style: {
|
|
19421
|
+
width: '100%'
|
|
19422
|
+
}
|
|
19423
|
+
}, item.widgetProps), {}, {
|
|
19424
|
+
value: val,
|
|
19425
|
+
disabled: disabled,
|
|
19426
|
+
onChange: function onChange(e) {
|
|
19427
|
+
return updateHandle(e, index, type);
|
|
19428
|
+
}
|
|
19429
|
+
}));
|
|
19430
|
+
} else if (item.widget === 'cascader') {
|
|
19431
|
+
Component = /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({
|
|
19432
|
+
getPopupContainer: function getPopupContainer() {
|
|
19433
|
+
return document.body;
|
|
19434
|
+
}
|
|
19435
|
+
}, item.widgetProps), {}, {
|
|
19436
|
+
value: val,
|
|
19437
|
+
disabled: disabled,
|
|
19438
|
+
onChange: function onChange(e) {
|
|
19439
|
+
return updateHandle(e, index, type);
|
|
19440
|
+
}
|
|
19441
|
+
}));
|
|
19442
|
+
}
|
|
19443
|
+
return Component;
|
|
19444
|
+
};
|
|
19445
|
+
var renderDate = function renderDate(value) {
|
|
19446
|
+
return value ? hooks(value).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
19447
|
+
};
|
|
19448
|
+
var renderImages = function renderImages(value) {
|
|
19449
|
+
var list = value ? value.split(',') : [];
|
|
19450
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image.PreviewGroup, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19451
|
+
style: {
|
|
19452
|
+
display: 'flex',
|
|
19453
|
+
flexWrap: 'wrap'
|
|
19454
|
+
}
|
|
19455
|
+
}, list.map(function (url) {
|
|
19456
|
+
var finalSrc = (url === null || url === void 0 ? void 0 : url.startsWith('http')) ? url : "https://kefu.kuaimai.com/".concat(url);
|
|
19457
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19458
|
+
style: {
|
|
19459
|
+
padding: '2px'
|
|
19460
|
+
}
|
|
19461
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19462
|
+
src: finalSrc,
|
|
19463
|
+
width: 24,
|
|
19464
|
+
height: 24
|
|
19465
|
+
}));
|
|
19466
|
+
})));
|
|
19467
|
+
};
|
|
19468
|
+
var renderDetailItem = function renderDetailItem(_ref2) {
|
|
19469
|
+
var item = _ref2.item,
|
|
19470
|
+
val = _ref2.val;
|
|
19471
|
+
var expressDateInstance = kmkfUtils.ExpressData.getInstance();
|
|
19472
|
+
var Component = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u4E0D\u652F\u6301\u7684\u7C7B\u578B\u7EC4\u4EF6\uFF1A", JSON.stringify(item.widget));
|
|
19473
|
+
if (['input', 'inputNumber'].includes(item.widget)) {
|
|
19474
|
+
Component = val;
|
|
19475
|
+
} else if (item.widget === 'select') {
|
|
19476
|
+
var _getSelectWidgetMap;
|
|
19477
|
+
var mapValue = (_getSelectWidgetMap = getSelectWidgetMap$1(expressDateInstance)) === null || _getSelectWidgetMap === void 0 ? void 0 : _getSelectWidgetMap[item.dataIndex];
|
|
19478
|
+
var selectValue;
|
|
19479
|
+
if (mapValue && typeof mapValue === 'function') {
|
|
19480
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue(val);
|
|
19481
|
+
} else {
|
|
19482
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue[val];
|
|
19483
|
+
}
|
|
19484
|
+
Component = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, selectValue);
|
|
19485
|
+
} else if (item.widget === 'datePicker') {
|
|
19486
|
+
Component = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, renderDate(val));
|
|
19487
|
+
} else if (item.widget === 'upload') {
|
|
19488
|
+
Component = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, renderImages(val));
|
|
19489
|
+
}
|
|
19490
|
+
return Component;
|
|
19491
|
+
};
|
|
19492
|
+
var utils = {
|
|
19493
|
+
getOrderListSingleton: getOrderListSingleton$3,
|
|
19494
|
+
renderEditItem: renderEditItem,
|
|
19495
|
+
renderDetailItem: renderDetailItem
|
|
19496
|
+
};
|
|
19497
|
+
|
|
19498
|
+
var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
|
|
19499
|
+
var renderEditItem$1 = utils.renderEditItem,
|
|
19500
|
+
renderDetailItem$1 = utils.renderDetailItem,
|
|
19501
|
+
getOrderListSingleton$4 = utils.getOrderListSingleton;
|
|
19502
|
+
var OrderSubForm = function OrderSubForm(props) {
|
|
19503
|
+
var _props$value = props.value,
|
|
19504
|
+
value = _props$value === void 0 ? {} : _props$value,
|
|
19505
|
+
onChange = props.onChange,
|
|
19506
|
+
_props$tableHeader = props.tableHeader,
|
|
19507
|
+
tableHeader = _props$tableHeader === void 0 ? [] : _props$tableHeader,
|
|
19508
|
+
disabled = props.disabled,
|
|
19509
|
+
maxCount = props.maxCount,
|
|
19510
|
+
manual = props.manual,
|
|
19511
|
+
correlationList = props.subConfig.correlationList,
|
|
19512
|
+
effects = props.effects;
|
|
19513
|
+
var valueRef = React.useRef(value);
|
|
19514
|
+
React.useEffect(function () {
|
|
19515
|
+
valueRef.current = value;
|
|
19516
|
+
return;
|
|
19517
|
+
}, [value]);
|
|
19518
|
+
var _useState = React.useState(null),
|
|
19519
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19520
|
+
hoveredRowIndex = _useState2[0],
|
|
19521
|
+
setHoveredRowIndex = _useState2[1];
|
|
19522
|
+
var updateHandle = React.useCallback(function (val, index, type) {
|
|
19523
|
+
var _valueRef$current, _valueRef$current$sub;
|
|
19524
|
+
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) {
|
|
19525
|
+
var _valueRef$current2;
|
|
19526
|
+
var subOrderList = JSON.parse(JSON.stringify((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.subOrderList));
|
|
19527
|
+
subOrderList[index][type] = val;
|
|
19528
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
19529
|
+
subOrderList: subOrderList
|
|
19530
|
+
}));
|
|
19531
|
+
}
|
|
19532
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19533
|
+
var orderSubformColumns = React.useMemo(function () {
|
|
19534
|
+
return getOrderSubformColumns$1({
|
|
19535
|
+
expressData: kmkfUtils.ExpressData.getInstance().getExpressData()
|
|
19536
|
+
});
|
|
19537
|
+
}, [kmkfUtils.ExpressData]);
|
|
19538
|
+
var orderSubformColumnMap = React.useMemo(function () {
|
|
19539
|
+
return orderSubformColumns.reduce(function (prv, next) {
|
|
19540
|
+
prv[next.dataIndex] = next;
|
|
19541
|
+
return prv;
|
|
19542
|
+
}, {});
|
|
19543
|
+
}, [orderSubformColumns]);
|
|
19544
|
+
var initColumns = React.useMemo(function () {
|
|
19545
|
+
return correlationList && (correlationList === null || correlationList === void 0 ? void 0 : correlationList.length) ? correlationList.map(function (t) {
|
|
19546
|
+
return orderSubformColumnMap === null || orderSubformColumnMap === void 0 ? void 0 : orderSubformColumnMap[t === null || t === void 0 ? void 0 : t.dataIndex];
|
|
19547
|
+
}) : orderSubformColumns;
|
|
19548
|
+
}, [correlationList, orderSubformColumns]);
|
|
19549
|
+
var newTableHeader = React.useMemo(function () {
|
|
19550
|
+
return initColumns.reduce(function (prv, next) {
|
|
19551
|
+
var t = tableHeader.find(function (t) {
|
|
19552
|
+
return t.key === (next === null || next === void 0 ? void 0 : next.dataIndex);
|
|
19553
|
+
}) || {
|
|
19554
|
+
isShow: true,
|
|
19555
|
+
isEdit: false,
|
|
19556
|
+
isRequired: false,
|
|
19557
|
+
width: Number(next === null || next === void 0 ? void 0 : next.width) || 150
|
|
19558
|
+
};
|
|
19559
|
+
if (t && t.isShow) {
|
|
19560
|
+
prv.push(_objectSpread2(_objectSpread2(_objectSpread2({}, next), t), {}, {
|
|
19561
|
+
widgetProps: (next === null || next === void 0 ? void 0 : next.widgetProps) || {}
|
|
19562
|
+
}));
|
|
19563
|
+
}
|
|
19564
|
+
return prv;
|
|
19565
|
+
}, []);
|
|
19566
|
+
}, [orderSubformColumns, tableHeader]);
|
|
19567
|
+
var column = React.useMemo(function () {
|
|
19568
|
+
return [{
|
|
19569
|
+
dataIndex: 'index',
|
|
19570
|
+
title: '序号',
|
|
19571
|
+
width: 80,
|
|
19572
|
+
render: function render(val, record, index) {
|
|
19573
|
+
return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
|
|
19574
|
+
index: index,
|
|
19575
|
+
hoveredRowIndex: hoveredRowIndex,
|
|
19576
|
+
handleClick: function handleClick() {
|
|
19577
|
+
return deleteHandle(record.uuid);
|
|
19578
|
+
}
|
|
19579
|
+
});
|
|
19580
|
+
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
19581
|
+
}
|
|
19582
|
+
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
19583
|
+
return _objectSpread2(_objectSpread2({}, t), {}, {
|
|
19584
|
+
dataIndex: t === null || t === void 0 ? void 0 : t.dataIndex,
|
|
19585
|
+
title: /*#__PURE__*/React__default['default'].createElement("span", null, t.isRequired ? /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19586
|
+
style: {
|
|
19587
|
+
color: 'red'
|
|
19588
|
+
}
|
|
19589
|
+
}, "*") : null, (t === null || t === void 0 ? void 0 : t.settingName) || t.title),
|
|
19590
|
+
width: Number(t.width),
|
|
19591
|
+
render: function render(val, record, index) {
|
|
19592
|
+
// const column = orderSubformColumnMap[t.dataIndex];
|
|
19593
|
+
var isDisabled = t.isEdit || disabled;
|
|
19594
|
+
return renderEditItem$1({
|
|
19595
|
+
item: t || {},
|
|
19596
|
+
val: val,
|
|
19597
|
+
disabled: isDisabled,
|
|
19598
|
+
index: index,
|
|
19599
|
+
type: t === null || t === void 0 ? void 0 : t.dataIndex,
|
|
19600
|
+
updateHandle: updateHandle
|
|
19601
|
+
});
|
|
19602
|
+
}
|
|
19603
|
+
});
|
|
19604
|
+
})), [disabled ? {} : {
|
|
19605
|
+
dataIndex: 'operation',
|
|
19606
|
+
title: '操作',
|
|
19607
|
+
width: 70,
|
|
19608
|
+
fixed: 'right',
|
|
19609
|
+
render: function render(val, record, index) {
|
|
19610
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Space, null, manual && /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
19611
|
+
title: "\u6DFB\u52A0"
|
|
19612
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.PlusCircleFilled, {
|
|
19613
|
+
style: {
|
|
19614
|
+
fontSize: 18,
|
|
19615
|
+
color: '#1890ff'
|
|
19616
|
+
},
|
|
19617
|
+
onClick: function onClick() {
|
|
19618
|
+
return addHandle(index + 1);
|
|
19619
|
+
}
|
|
19620
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
19621
|
+
title: "\u5220\u9664"
|
|
19622
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.MinusCircleFilled, {
|
|
19623
|
+
style: {
|
|
19624
|
+
fontSize: 18
|
|
19625
|
+
},
|
|
19626
|
+
onClick: function onClick() {
|
|
19627
|
+
return deleteHandle(record.uuid);
|
|
19628
|
+
}
|
|
19629
|
+
})));
|
|
19630
|
+
}
|
|
19631
|
+
}]);
|
|
19632
|
+
}, [newTableHeader, disabled, updateHandle]);
|
|
19633
|
+
var orderModalColumns = React.useMemo(function () {
|
|
19634
|
+
return [{
|
|
19635
|
+
dataIndex: '',
|
|
19636
|
+
title: '序号',
|
|
19637
|
+
align: 'center',
|
|
19638
|
+
ellipsis: true,
|
|
19639
|
+
width: 80,
|
|
19640
|
+
render: function render(val, record, index) {
|
|
19641
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, index + 1);
|
|
19642
|
+
}
|
|
19643
|
+
}].concat(_toConsumableArray(column.filter(function (item) {
|
|
19644
|
+
return !['operation', 'index'].includes((item === null || item === void 0 ? void 0 : item.dataIndex) || '');
|
|
19645
|
+
}).map(function (item) {
|
|
19646
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
19647
|
+
ellipsis: true,
|
|
19648
|
+
render: function render(val, record, index) {
|
|
19649
|
+
return renderDetailItem$1({
|
|
19650
|
+
item: item,
|
|
19651
|
+
val: val
|
|
19652
|
+
});
|
|
19653
|
+
}
|
|
19654
|
+
});
|
|
19655
|
+
})));
|
|
19656
|
+
}, [column]);
|
|
19657
|
+
var defaultValueMap = React.useMemo(function () {
|
|
19658
|
+
return newTableHeader.reduce(function (prv, next) {
|
|
19659
|
+
prv["".concat(next.dataIndex)] = '';
|
|
19660
|
+
return prv;
|
|
19661
|
+
}, {});
|
|
19662
|
+
}, [newTableHeader]);
|
|
19663
|
+
var deleteHandle = function deleteHandle(uuid) {
|
|
19664
|
+
var _value$subOrderList;
|
|
19665
|
+
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) {
|
|
19666
|
+
return item.uuid !== uuid;
|
|
19667
|
+
});
|
|
19668
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19669
|
+
subOrderList: newList
|
|
19670
|
+
}));
|
|
19671
|
+
};
|
|
19672
|
+
var addHandle = function addHandle(index) {
|
|
19673
|
+
var _value$subOrderList2;
|
|
19674
|
+
if (maxCount && (value === null || value === void 0 ? void 0 : (_value$subOrderList2 = value.subOrderList) === null || _value$subOrderList2 === void 0 ? void 0 : _value$subOrderList2.length) >= maxCount) {
|
|
19675
|
+
antd.message.error("\u8BE5\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u6761"));
|
|
19676
|
+
return;
|
|
19677
|
+
}
|
|
19678
|
+
var subOrderList = _toConsumableArray((value === null || value === void 0 ? void 0 : value.subOrderList) || []);
|
|
19679
|
+
subOrderList.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
|
|
19680
|
+
uuid: kmkfUtils.uuid()
|
|
19681
|
+
}));
|
|
19682
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19683
|
+
subOrderList: subOrderList
|
|
19684
|
+
}));
|
|
19685
|
+
};
|
|
19686
|
+
var getDataSourceAsync = function getDataSourceAsync() {
|
|
19687
|
+
var _effects$form;
|
|
19688
|
+
var _ref = (effects === null || effects === void 0 ? void 0 : (_effects$form = effects.form) === null || _effects$form === void 0 ? void 0 : _effects$form.getFieldsValue()) || {},
|
|
19689
|
+
_ref$shopId = _ref.shopId,
|
|
19690
|
+
shopId = _ref$shopId === void 0 ? '' : _ref$shopId;
|
|
19691
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId ? getOrderListSingleton$4({
|
|
19692
|
+
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
19693
|
+
shopId: shopId
|
|
19694
|
+
}).then(function (data) {
|
|
19695
|
+
var allOrders = kmkfUtils.updateOrderSubFormGoodsHandle(data || []);
|
|
19696
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
19697
|
+
allOrders: allOrders
|
|
19698
|
+
}));
|
|
19699
|
+
}) : Promise.resolve();
|
|
19700
|
+
};
|
|
19701
|
+
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
19702
|
+
var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
|
|
19703
|
+
return goodDetails;
|
|
19704
|
+
};
|
|
19705
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
19706
|
+
var _uniqBy;
|
|
19707
|
+
var newValue = _objectSpread2({}, value);
|
|
19708
|
+
// 原订单商品
|
|
19709
|
+
var originTradeGoodList = getAllTradeGoodsDetails() || [];
|
|
19710
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19711
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value.subOrderList) || [];
|
|
19712
|
+
newValue['subOrderList'] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19713
|
+
return skuList.includes(item.uuid);
|
|
19714
|
+
});
|
|
19715
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19716
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19717
|
+
// TODO: 商品订单中以选中商品
|
|
19718
|
+
var selectedGoods = React.useMemo(function () {
|
|
19719
|
+
var _value$subOrderList3;
|
|
19720
|
+
return value === null || value === void 0 ? void 0 : (_value$subOrderList3 = value.subOrderList) === null || _value$subOrderList3 === void 0 ? void 0 : _value$subOrderList3.map(function (v) {
|
|
19721
|
+
return v === null || v === void 0 ? void 0 : v.uuid;
|
|
19722
|
+
});
|
|
19723
|
+
}, [value === null || value === void 0 ? void 0 : value.subOrderList]);
|
|
19724
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19725
|
+
style: {
|
|
19726
|
+
float: 'right'
|
|
19727
|
+
}
|
|
19728
|
+
}, /*#__PURE__*/React__default['default'].createElement(SelectTradeGoods, {
|
|
19729
|
+
uniqueKey: 'uuid',
|
|
19730
|
+
columns: orderModalColumns,
|
|
19731
|
+
dataSource: getAllTradeGoodsDetails(),
|
|
19732
|
+
getDataSourceAsync: getDataSourceAsync,
|
|
19733
|
+
selectedRowKeys: selectedGoods,
|
|
19734
|
+
onChangeSelectedKeys: selectedGoodsChange,
|
|
19735
|
+
width: 850
|
|
19736
|
+
})), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
19737
|
+
columns: column,
|
|
19738
|
+
dataSource: (value === null || value === void 0 ? void 0 : value.subOrderList) || [],
|
|
19739
|
+
rowKey: 'uuid',
|
|
19740
|
+
size: "small",
|
|
19741
|
+
pagination: false,
|
|
19742
|
+
scroll: {
|
|
19743
|
+
x: '100%'
|
|
19744
|
+
},
|
|
19745
|
+
locale: {
|
|
19746
|
+
emptyText: !disabled && manual ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u6682\u65E0\u6570\u636E,", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
19747
|
+
type: "link",
|
|
19748
|
+
onClick: function onClick() {
|
|
19749
|
+
return addHandle(0);
|
|
19750
|
+
}
|
|
19751
|
+
}, "\u70B9\u51FB\u6DFB\u52A0")) : '暂无数据'
|
|
19752
|
+
},
|
|
19753
|
+
onRow: function onRow(_, index) {
|
|
19754
|
+
return {
|
|
19755
|
+
onMouseEnter: function onMouseEnter() {
|
|
19756
|
+
return setHoveredRowIndex(index !== null && index !== void 0 ? index : null);
|
|
19757
|
+
},
|
|
19758
|
+
onMouseLeave: function onMouseLeave() {
|
|
19759
|
+
return setHoveredRowIndex(null);
|
|
19760
|
+
}
|
|
19761
|
+
};
|
|
19762
|
+
}
|
|
19763
|
+
}));
|
|
19764
|
+
};
|
|
19765
|
+
|
|
18953
19766
|
var isErpType$1 = {
|
|
18954
19767
|
isWdt: function isWdt(type) {
|
|
18955
19768
|
return ['WDT_GOODS'].includes(type);
|
|
@@ -20398,8 +21211,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
20398
21211
|
})));
|
|
20399
21212
|
};
|
|
20400
21213
|
|
|
20401
|
-
var css_248z$
|
|
20402
|
-
styleInject(css_248z$
|
|
21214
|
+
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";
|
|
21215
|
+
styleInject(css_248z$c);
|
|
20403
21216
|
|
|
20404
21217
|
var TabPane$1 = antd.Tabs.TabPane;
|
|
20405
21218
|
var Option$2 = antd.Select.Option;
|
|
@@ -20872,7 +21685,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
20872
21685
|
userNick: userNick
|
|
20873
21686
|
}));
|
|
20874
21687
|
};
|
|
20875
|
-
var index$
|
|
21688
|
+
var index$3 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
20876
21689
|
|
|
20877
21690
|
var _excluded$k = ["onChange", "value", "failValue"];
|
|
20878
21691
|
function CommonStatus(props) {
|
|
@@ -21473,9 +22286,9 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
21473
22286
|
})));
|
|
21474
22287
|
};
|
|
21475
22288
|
|
|
21476
|
-
var css_248z$
|
|
21477
|
-
var styles$
|
|
21478
|
-
styleInject(css_248z$
|
|
22289
|
+
var css_248z$d = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-disabled {\n color: #dadada !important;\n}\n";
|
|
22290
|
+
var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
|
|
22291
|
+
styleInject(css_248z$d);
|
|
21479
22292
|
|
|
21480
22293
|
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
21481
22294
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
@@ -21737,7 +22550,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
21737
22550
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
21738
22551
|
}, ((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) {
|
|
21739
22552
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
21740
|
-
className: styles$
|
|
22553
|
+
className: styles$6.systemNoDisabled,
|
|
21741
22554
|
key: item.billNo,
|
|
21742
22555
|
value: item.billNo,
|
|
21743
22556
|
label: item.billNo,
|
|
@@ -22035,7 +22848,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
22035
22848
|
placeholder: "\u9009\u62E9\u9000\u8D27\u7684\u7CFB\u7EDF\u5355"
|
|
22036
22849
|
}, ((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) {
|
|
22037
22850
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
22038
|
-
className: styles$
|
|
22851
|
+
className: styles$6.systemNoDisabled,
|
|
22039
22852
|
key: item.billNo,
|
|
22040
22853
|
value: item.billNo,
|
|
22041
22854
|
label: item.billNo,
|
|
@@ -22086,9 +22899,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
22086
22899
|
})));
|
|
22087
22900
|
};
|
|
22088
22901
|
|
|
22089
|
-
var css_248z$
|
|
22090
|
-
var styles$
|
|
22091
|
-
styleInject(css_248z$
|
|
22902
|
+
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";
|
|
22903
|
+
var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
|
|
22904
|
+
styleInject(css_248z$e);
|
|
22092
22905
|
|
|
22093
22906
|
var _excluded$r = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
|
|
22094
22907
|
var Dragger$1 = antd.Upload.Dragger;
|
|
@@ -22264,9 +23077,9 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22264
23077
|
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
22265
23078
|
spinning: uploading
|
|
22266
23079
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
22267
|
-
className: styles$
|
|
23080
|
+
className: styles$7.tips
|
|
22268
23081
|
}, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6\uFF0C\u652F\u6301", videoSuffixList.join('/'), "\u683C\u5F0F\u6587\u4EF6"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22269
|
-
className: styles$
|
|
23082
|
+
className: styles$7.imageBox
|
|
22270
23083
|
}, /*#__PURE__*/React__default['default'].createElement(Dragger$1, _objectSpread2({
|
|
22271
23084
|
disabled: disabled,
|
|
22272
23085
|
multiple: true,
|
|
@@ -22292,9 +23105,9 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22292
23105
|
}), file.kmVideoType && "".concat(file.kmVideoType));
|
|
22293
23106
|
}
|
|
22294
23107
|
}, resetProps), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
22295
|
-
className: styles$
|
|
23108
|
+
className: styles$7.addBtn
|
|
22296
23109
|
}, "+"), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
22297
|
-
className: styles$
|
|
23110
|
+
className: styles$7.addBtn
|
|
22298
23111
|
}, "\u9009\u62E9\u6587\u4EF6")), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
22299
23112
|
visible: visible,
|
|
22300
23113
|
title: fileName,
|
|
@@ -22329,15 +23142,15 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
22329
23142
|
}))));
|
|
22330
23143
|
};
|
|
22331
23144
|
|
|
22332
|
-
var singletonMap$
|
|
23145
|
+
var singletonMap$8 = new Map();
|
|
22333
23146
|
var getAllGoods = function getAllGoods(params, setLoading) {
|
|
22334
23147
|
var id = params.tid || params.onBillNo || '';
|
|
22335
|
-
if (!singletonMap$
|
|
23148
|
+
if (!singletonMap$8.has(id)) {
|
|
22336
23149
|
setLoading && setLoading(true);
|
|
22337
23150
|
var p = new Promise(function (resolve, reject) {
|
|
22338
23151
|
var doReject = function doReject(err) {
|
|
22339
23152
|
// 清空掉错误的请求记录
|
|
22340
|
-
singletonMap$
|
|
23153
|
+
singletonMap$8.delete(id);
|
|
22341
23154
|
reject(err);
|
|
22342
23155
|
};
|
|
22343
23156
|
extendRequest('/qy/gdfw/order/skxOrderDetail', {
|
|
@@ -22359,7 +23172,7 @@ var getAllGoods = function getAllGoods(params, setLoading) {
|
|
|
22359
23172
|
resolve(res.data);
|
|
22360
23173
|
// 延迟10秒清除,保证订单的时效性
|
|
22361
23174
|
setTimeout(function () {
|
|
22362
|
-
singletonMap$
|
|
23175
|
+
singletonMap$8.delete(id);
|
|
22363
23176
|
}, 1000 * 10);
|
|
22364
23177
|
} else {
|
|
22365
23178
|
doReject(res);
|
|
@@ -22368,9 +23181,9 @@ var getAllGoods = function getAllGoods(params, setLoading) {
|
|
|
22368
23181
|
setLoading && setLoading(false);
|
|
22369
23182
|
});
|
|
22370
23183
|
});
|
|
22371
|
-
singletonMap$
|
|
23184
|
+
singletonMap$8.set(id, p);
|
|
22372
23185
|
}
|
|
22373
|
-
return singletonMap$
|
|
23186
|
+
return singletonMap$8.get(id);
|
|
22374
23187
|
};
|
|
22375
23188
|
var skxUtils = {
|
|
22376
23189
|
getAllGoods: getAllGoods
|
|
@@ -22704,16 +23517,16 @@ exports.ApaasSelect = ApaasSelect;
|
|
|
22704
23517
|
exports.ApaasSlider = ApaasSlider;
|
|
22705
23518
|
exports.ApaasTextArea = ApaasTextArea;
|
|
22706
23519
|
exports.ApaasUpload = ApaasUpload;
|
|
22707
|
-
exports.ApaasUploadAsync =
|
|
23520
|
+
exports.ApaasUploadAsync = ApaasUploadAsync$1;
|
|
22708
23521
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
22709
|
-
exports.ApaasUploadProAsync = index
|
|
23522
|
+
exports.ApaasUploadProAsync = index;
|
|
22710
23523
|
exports.AsyncSelect = AsyncSelect;
|
|
22711
23524
|
exports.BsE3Reissue = bsE3Reissue;
|
|
22712
23525
|
exports.BsExchange = BsExchange;
|
|
22713
23526
|
exports.BsGoods = BsGoods;
|
|
22714
23527
|
exports.BsReissue = BsReissue;
|
|
22715
23528
|
exports.BsReturn = BsReturnGoods;
|
|
22716
|
-
exports.BsSystemOrder = index$
|
|
23529
|
+
exports.BsSystemOrder = index$2;
|
|
22717
23530
|
exports.BuyerNick = BuyerNick;
|
|
22718
23531
|
exports.CalculationInput = CalculationInput;
|
|
22719
23532
|
exports.ChooseBaby = ChooseBaby;
|
|
@@ -22726,7 +23539,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
22726
23539
|
exports.CopyTextIcon = CopyTextIcon;
|
|
22727
23540
|
exports.ExpressLogistics = ExpressLogistics;
|
|
22728
23541
|
exports.Goods = Goods;
|
|
22729
|
-
exports.GoodsTable = index$
|
|
23542
|
+
exports.GoodsTable = index$3;
|
|
22730
23543
|
exports.GyReissue = GyReissue;
|
|
22731
23544
|
exports.GyReturn = GyReturnGoods;
|
|
22732
23545
|
exports.IdentifyAddress = IdentifyAddress;
|
|
@@ -22739,6 +23552,8 @@ exports.LogisticsMoreInterception = LogisticsMoreInterception;
|
|
|
22739
23552
|
exports.LogisticsMoreTrajectory = LogisticsMoreTrajectory;
|
|
22740
23553
|
exports.LogisticsTrajectory = LogisticsTrajectory;
|
|
22741
23554
|
exports.MsgStatus = MsgStatus;
|
|
23555
|
+
exports.OrderSubForm = OrderSubForm;
|
|
23556
|
+
exports.OrderSubFormUtils = utils;
|
|
22742
23557
|
exports.ParseLogistics = ParseLogistics;
|
|
22743
23558
|
exports.Payment = Payment;
|
|
22744
23559
|
exports.PublicReissue = PublicReissue;
|
|
@@ -22759,11 +23574,12 @@ exports.WlnGoods = WlnGoods;
|
|
|
22759
23574
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
22760
23575
|
exports.erpColumnsMap = erpColumnsMap;
|
|
22761
23576
|
exports.erpFormValidator = erpFormValidator;
|
|
22762
|
-
exports.erpModalColumnsMap = index$
|
|
23577
|
+
exports.erpModalColumnsMap = index$1;
|
|
22763
23578
|
exports.getGyColumns = getColumns$4;
|
|
22764
23579
|
exports.getJstColumns = getColumns$5;
|
|
22765
23580
|
exports.getKmColumns = getColumns$6;
|
|
22766
23581
|
exports.getSkxColumns = getColumns$7;
|
|
22767
23582
|
exports.getWdtColumns = getColumns$2;
|
|
22768
23583
|
exports.getWlnColumns = getColumns$3;
|
|
23584
|
+
exports.orderSubFormConstants = orderSubFormConstants;
|
|
22769
23585
|
exports.skxUtils = skxUtils;
|