@kmkf-fe-packages/services-components 2.0.72 → 2.0.74
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/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +146 -26
- package/dist/esm/components/CommonSystemOrder/index.d.ts +1 -0
- package/dist/esm/components/CommonSystemOrder/index.js +21 -1
- package/dist/esm/components/KM/KmVideo/index.d.ts +34 -0
- package/dist/esm/components/KM/KmVideo/index.js +144 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +13 -8
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +6 -6
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +11 -11
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +3 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +1 -1
- package/dist/esm/components/Public/ReissueGoods/index.js +7 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +3 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +7 -0
- package/package.json +4 -4
|
@@ -39,6 +39,7 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
|
39
39
|
type?: string | undefined;
|
|
40
40
|
}) => React.JSX.Element;
|
|
41
41
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
42
|
+
export declare const KmVideoRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
42
43
|
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
43
44
|
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
44
45
|
export declare const AlipayBill: (props: any) => React.JSX.Element;
|
|
@@ -23,6 +23,7 @@ import defaultImg from "./img/default-img.png";
|
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
24
|
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
25
25
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
26
|
+
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
26
27
|
var Paragraph = Typography.Paragraph;
|
|
27
28
|
export var getFormItem = function getFormItem(_ref) {
|
|
28
29
|
var name = _ref.name,
|
|
@@ -632,9 +633,128 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
632
633
|
src: fileUrl
|
|
633
634
|
})));
|
|
634
635
|
};
|
|
635
|
-
export var
|
|
636
|
-
var
|
|
637
|
-
|
|
636
|
+
export var KmVideoRender = function KmVideoRender(_ref13) {
|
|
637
|
+
var _ref13$fileList = _ref13.fileList,
|
|
638
|
+
fileList = _ref13$fileList === void 0 ? [] : _ref13$fileList,
|
|
639
|
+
_ref13$canDownload = _ref13.canDownload,
|
|
640
|
+
canDownload = _ref13$canDownload === void 0 ? false : _ref13$canDownload;
|
|
641
|
+
var _useState13 = useState(false),
|
|
642
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
643
|
+
visible = _useState14[0],
|
|
644
|
+
setVisible = _useState14[1];
|
|
645
|
+
var _useState15 = useState(""),
|
|
646
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
647
|
+
fileUrl = _useState16[0],
|
|
648
|
+
setFileUrl = _useState16[1];
|
|
649
|
+
var _useState17 = useState(""),
|
|
650
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
651
|
+
fileType = _useState18[0],
|
|
652
|
+
setFileType = _useState18[1];
|
|
653
|
+
var _useState19 = useState(""),
|
|
654
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
655
|
+
fileName = _useState20[0],
|
|
656
|
+
setFileName = _useState20[1];
|
|
657
|
+
var _useState21 = useState(false),
|
|
658
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
659
|
+
downloading = _useState22[0],
|
|
660
|
+
setDownloading = _useState22[1];
|
|
661
|
+
var handleCancel = function handleCancel() {
|
|
662
|
+
setFileUrl("");
|
|
663
|
+
setFileName("");
|
|
664
|
+
setVisible(false);
|
|
665
|
+
setDownloading(false);
|
|
666
|
+
};
|
|
667
|
+
var onPreview = function onPreview(file) {
|
|
668
|
+
var _file$kmVideoUrl;
|
|
669
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$kmVideoUrl = file.kmVideoUrl) === null || _file$kmVideoUrl === void 0 ? void 0 : _file$kmVideoUrl.split(".");
|
|
670
|
+
var fileType = fileArr[fileArr.length - 1];
|
|
671
|
+
if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
|
|
672
|
+
setFileUrl(file === null || file === void 0 ? void 0 : file.kmVideoUrl);
|
|
673
|
+
setFileName(file === null || file === void 0 ? void 0 : file.kmVideoName);
|
|
674
|
+
setFileType("video");
|
|
675
|
+
setVisible(true);
|
|
676
|
+
} else {
|
|
677
|
+
window.open(file === null || file === void 0 ? void 0 : file.kmVideoUrl);
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
var download = function download(url, name) {
|
|
681
|
+
if (url !== null && url !== void 0 && url.startsWith("https://erp-storage-video.oss-cn-beijing.aliyuncs.com")) {
|
|
682
|
+
window.open(url);
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
setDownloading(true);
|
|
686
|
+
fetch(url).then(function (res) {
|
|
687
|
+
return res.blob();
|
|
688
|
+
}).then(function (blob) {
|
|
689
|
+
var a = document.createElement("a");
|
|
690
|
+
document.body.appendChild(a);
|
|
691
|
+
a.style.display = "none";
|
|
692
|
+
var url = window.URL.createObjectURL(blob);
|
|
693
|
+
a.href = url;
|
|
694
|
+
a.download = name;
|
|
695
|
+
a.click();
|
|
696
|
+
document.body.removeChild(a);
|
|
697
|
+
window.URL.revokeObjectURL(url);
|
|
698
|
+
}).finally(function () {
|
|
699
|
+
setDownloading(false);
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
703
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
704
|
+
align: "center"
|
|
705
|
+
}, /*#__PURE__*/React.createElement(VideoCameraTwoTone, {
|
|
706
|
+
style: {
|
|
707
|
+
fontSize: 16
|
|
708
|
+
}
|
|
709
|
+
}), item.kmVideoType && "".concat(item.kmVideoType), /*#__PURE__*/React.createElement("a", {
|
|
710
|
+
style: {
|
|
711
|
+
color: "#1890ff",
|
|
712
|
+
cursor: "pointer",
|
|
713
|
+
display: "block"
|
|
714
|
+
},
|
|
715
|
+
onClick: function onClick(e) {
|
|
716
|
+
e.preventDefault();
|
|
717
|
+
onPreview(item);
|
|
718
|
+
},
|
|
719
|
+
href: item === null || item === void 0 ? void 0 : item.kmVideoUrl
|
|
720
|
+
}, item.kmVideoName));
|
|
721
|
+
}), /*#__PURE__*/React.createElement(Modal, {
|
|
722
|
+
visible: visible,
|
|
723
|
+
title: fileName,
|
|
724
|
+
footer: null,
|
|
725
|
+
onCancel: handleCancel
|
|
726
|
+
}, canDownload ? /*#__PURE__*/React.createElement(Button, {
|
|
727
|
+
type: "link",
|
|
728
|
+
onClick: function onClick() {
|
|
729
|
+
return download(fileUrl, fileName);
|
|
730
|
+
},
|
|
731
|
+
loading: downloading
|
|
732
|
+
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
733
|
+
text: fileUrl,
|
|
734
|
+
onCopy: function onCopy() {
|
|
735
|
+
message.success("复制成功");
|
|
736
|
+
}
|
|
737
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
738
|
+
type: "link"
|
|
739
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
|
|
740
|
+
alt: "example",
|
|
741
|
+
style: {
|
|
742
|
+
width: "100%"
|
|
743
|
+
},
|
|
744
|
+
src: fileUrl
|
|
745
|
+
}) : /*#__PURE__*/React.createElement("video", {
|
|
746
|
+
style: {
|
|
747
|
+
width: "100%",
|
|
748
|
+
height: "100%"
|
|
749
|
+
},
|
|
750
|
+
autoPlay: true,
|
|
751
|
+
controls: true,
|
|
752
|
+
src: fileUrl
|
|
753
|
+
})));
|
|
754
|
+
};
|
|
755
|
+
export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
756
|
+
var value = _ref14.value,
|
|
757
|
+
type = _ref14.type;
|
|
638
758
|
var columnMap = {
|
|
639
759
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
640
760
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -689,15 +809,15 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
689
809
|
// ruleName: string
|
|
690
810
|
// status: string
|
|
691
811
|
// }
|
|
692
|
-
export var MsgContent = function MsgContent(
|
|
693
|
-
var
|
|
694
|
-
horizontal =
|
|
695
|
-
|
|
696
|
-
list =
|
|
697
|
-
valueKey =
|
|
698
|
-
failValue =
|
|
699
|
-
|
|
700
|
-
options =
|
|
812
|
+
export var MsgContent = function MsgContent(_ref15) {
|
|
813
|
+
var _ref15$horizontal = _ref15.horizontal,
|
|
814
|
+
horizontal = _ref15$horizontal === void 0 ? true : _ref15$horizontal,
|
|
815
|
+
_ref15$list = _ref15.list,
|
|
816
|
+
list = _ref15$list === void 0 ? [] : _ref15$list,
|
|
817
|
+
valueKey = _ref15.valueKey,
|
|
818
|
+
failValue = _ref15.failValue,
|
|
819
|
+
_ref15$options = _ref15.options,
|
|
820
|
+
options = _ref15$options === void 0 ? [] : _ref15$options;
|
|
701
821
|
var getColorByStatus = function getColorByStatus(value) {
|
|
702
822
|
var _options$find2;
|
|
703
823
|
return ((_options$find2 = options.find(function (innerItem) {
|
|
@@ -755,20 +875,20 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
755
875
|
export var AlipayBill = function AlipayBill(props) {
|
|
756
876
|
var value = props.value,
|
|
757
877
|
platform = props.platform;
|
|
758
|
-
var
|
|
759
|
-
|
|
760
|
-
visible =
|
|
761
|
-
setVisible =
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
msg =
|
|
765
|
-
setMsg =
|
|
766
|
-
var
|
|
767
|
-
|
|
768
|
-
hasUrl =
|
|
769
|
-
setHasUrl =
|
|
878
|
+
var _useState23 = useState(false),
|
|
879
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
880
|
+
visible = _useState24[0],
|
|
881
|
+
setVisible = _useState24[1];
|
|
882
|
+
var _useState25 = useState(""),
|
|
883
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
884
|
+
msg = _useState26[0],
|
|
885
|
+
setMsg = _useState26[1];
|
|
886
|
+
var _useState27 = useState(false),
|
|
887
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
888
|
+
hasUrl = _useState28[0],
|
|
889
|
+
setHasUrl = _useState28[1];
|
|
770
890
|
var voucherHandle = /*#__PURE__*/function () {
|
|
771
|
-
var
|
|
891
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
772
892
|
var params, res, data, msg;
|
|
773
893
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
774
894
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -802,7 +922,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
802
922
|
}, _callee);
|
|
803
923
|
}));
|
|
804
924
|
return function voucherHandle(_x2) {
|
|
805
|
-
return
|
|
925
|
+
return _ref16.apply(this, arguments);
|
|
806
926
|
};
|
|
807
927
|
}();
|
|
808
928
|
var closeHandle = function closeHandle(e) {
|
|
@@ -13,6 +13,7 @@ declare class CommonSystemOrder implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
+
isChange: boolean;
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -69,6 +69,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
69
69
|
_defineProperty(this, "canSort", void 0);
|
|
70
70
|
_defineProperty(this, "children", void 0);
|
|
71
71
|
_defineProperty(this, "dataType", void 0);
|
|
72
|
+
_defineProperty(this, "isChange", void 0);
|
|
72
73
|
_defineProperty(this, "renderClient", function (record) {
|
|
73
74
|
var _typeMap$_this$type, _this$componentConfig;
|
|
74
75
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -119,6 +120,22 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
119
120
|
});
|
|
120
121
|
_defineProperty(this, "editRender", function (p) {
|
|
121
122
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _typeMap$_this$type9;
|
|
123
|
+
var onErpAfterSaleTradeIdBlur = function onErpAfterSaleTradeIdBlur(e) {
|
|
124
|
+
if (_this.isChange && _this.type === "ERP_AFTER_SALE_TRADE_ID") {
|
|
125
|
+
var _p$onBlur, _e$target;
|
|
126
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, "erpAfterSaleTradeId");
|
|
127
|
+
_this.isChange = false;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
var onErpAfterSaleTradeIdChange = function onErpAfterSaleTradeIdChange() {
|
|
131
|
+
if (_this.type === "ERP_AFTER_SALE_TRADE_ID") {
|
|
132
|
+
_this.isChange = true;
|
|
133
|
+
}
|
|
134
|
+
for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
135
|
+
e[_key] = arguments[_key];
|
|
136
|
+
}
|
|
137
|
+
p === null || p === void 0 ? void 0 : p.onChange.apply(p, e);
|
|
138
|
+
};
|
|
122
139
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
123
140
|
title: _this.name,
|
|
124
141
|
name: _this.id,
|
|
@@ -128,7 +145,9 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
128
145
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
129
146
|
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip : "",
|
|
130
147
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
131
|
-
type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
|
|
148
|
+
type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type,
|
|
149
|
+
onBlur: onErpAfterSaleTradeIdBlur,
|
|
150
|
+
onChange: onErpAfterSaleTradeIdChange
|
|
132
151
|
}))
|
|
133
152
|
});
|
|
134
153
|
});
|
|
@@ -176,5 +195,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
176
195
|
}
|
|
177
196
|
}] : [];
|
|
178
197
|
this.align = "left";
|
|
198
|
+
this.isChange = false;
|
|
179
199
|
});
|
|
180
200
|
export default CommonSystemOrder;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class KmVideo implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
formField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
canSort: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
effects: ComponentInterface["effects"];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderPcTooltip: (value: any, record: Record) => any;
|
|
18
|
+
renderPc: (value: any, record: Record) => any;
|
|
19
|
+
renderLog: (r: Record) => any;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
renderExport: (value: any, record: any) => any;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @returns 文件不支持过滤
|
|
31
|
+
*/
|
|
32
|
+
filterConfig: () => never[];
|
|
33
|
+
}
|
|
34
|
+
export default KmVideo;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import GetFormItem from "../../GetFormItem";
|
|
11
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
12
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { KmVideoRender } from "../../Common";
|
|
14
|
+
import { PlatForm } from "../../../type";
|
|
15
|
+
import { KmVideo as KmVideoComponent } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
17
|
+
import { Space } from "antd";
|
|
18
|
+
var KmVideo = /*#__PURE__*/_createClass(function KmVideo(options) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
_classCallCheck(this, KmVideo);
|
|
21
|
+
_defineProperty(this, "name", void 0);
|
|
22
|
+
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
25
|
+
_defineProperty(this, "type", void 0);
|
|
26
|
+
_defineProperty(this, "rules", void 0);
|
|
27
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "effects", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "renderPcTooltip", function (value, record) {
|
|
34
|
+
var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmVideo")]) || [];
|
|
35
|
+
if (!fileList.length) {
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
37
|
+
}
|
|
38
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
style: {
|
|
41
|
+
maxWidth: 500,
|
|
42
|
+
overflow: "hidden",
|
|
43
|
+
whiteSpace: "nowrap",
|
|
44
|
+
textOverflow: "ellipsis"
|
|
45
|
+
}
|
|
46
|
+
}, /*#__PURE__*/React.createElement(VideoCameraTwoTone, {
|
|
47
|
+
style: {
|
|
48
|
+
fontSize: 16
|
|
49
|
+
}
|
|
50
|
+
}), "\xA0", file.kmVideoType && "".concat(file.kmVideoType, " "), /*#__PURE__*/React.createElement("a", {
|
|
51
|
+
href: file.kmVideoUrl,
|
|
52
|
+
target: "_blank",
|
|
53
|
+
onClick: function onClick(e) {
|
|
54
|
+
e.stopPropagation();
|
|
55
|
+
}
|
|
56
|
+
}, file.kmVideoName || file.kmVideoUrl));
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
60
|
+
var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmVideo")]) || [];
|
|
61
|
+
if (!fileList.length) {
|
|
62
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
63
|
+
}
|
|
64
|
+
return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, {
|
|
66
|
+
align: "center"
|
|
67
|
+
}, /*#__PURE__*/React.createElement(VideoCameraTwoTone, {
|
|
68
|
+
style: {
|
|
69
|
+
fontSize: 16
|
|
70
|
+
}
|
|
71
|
+
}), file.kmVideoType && "".concat(file.kmVideoType), /*#__PURE__*/React.createElement("a", {
|
|
72
|
+
href: file.kmVideoUrl,
|
|
73
|
+
target: "_blank",
|
|
74
|
+
style: {
|
|
75
|
+
display: "block"
|
|
76
|
+
},
|
|
77
|
+
onClick: function onClick(e) {
|
|
78
|
+
e.stopPropagation();
|
|
79
|
+
}
|
|
80
|
+
}, file.kmVideoName || file.kmVideoUrl)));
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
84
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmVideo")])) return null;
|
|
85
|
+
return _this.renderPc(undefined, r);
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
88
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_kmVideo")];
|
|
89
|
+
});
|
|
90
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
91
|
+
var _this$effects;
|
|
92
|
+
var canDownload = ![PlatForm.KS, PlatForm.FXG, PlatForm.XIAOZHI].includes((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env);
|
|
93
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
94
|
+
id: _this.id,
|
|
95
|
+
label: _this.name,
|
|
96
|
+
value: /*#__PURE__*/React.createElement(KmVideoRender, {
|
|
97
|
+
fileList: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
98
|
+
canDownload: canDownload
|
|
99
|
+
})
|
|
100
|
+
}) : null;
|
|
101
|
+
});
|
|
102
|
+
_defineProperty(this, "editRender", function (p) {
|
|
103
|
+
var _this$effects2, _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
104
|
+
var canDownload = ![PlatForm.KS, PlatForm.FXG, PlatForm.XIAOZHI].includes((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env);
|
|
105
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
106
|
+
title: _this.name,
|
|
107
|
+
name: _this.id,
|
|
108
|
+
rules: _this.rules,
|
|
109
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
110
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
111
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
112
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
113
|
+
component: /*#__PURE__*/React.createElement(KmVideoComponent, _extends({}, _this.componentConfig, {
|
|
114
|
+
uniqueKey: _this.id,
|
|
115
|
+
platform: p === null || p === void 0 ? void 0 : p.platform,
|
|
116
|
+
canDownload: canDownload,
|
|
117
|
+
hostUrl: "https://kefu.kuaimai.com"
|
|
118
|
+
}))
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
122
|
+
var textArr = ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmVideo")]) || []).reduce(function (prv, next) {
|
|
123
|
+
prv.push(next.kmVideoType ? "".concat(next.kmVideoType, "\uFF1A").concat(next.kmVideoUrl) : next.kmVideoUrl);
|
|
124
|
+
return prv;
|
|
125
|
+
}, []);
|
|
126
|
+
return textArr === null || textArr === void 0 ? void 0 : textArr.join("\n");
|
|
127
|
+
});
|
|
128
|
+
_defineProperty(this, "filterConfig", function () {
|
|
129
|
+
return [];
|
|
130
|
+
});
|
|
131
|
+
this.name = options.name;
|
|
132
|
+
this.id = options.id;
|
|
133
|
+
this.sortField = "".concat(options.id, "_kmVideo");
|
|
134
|
+
this.formField = "".concat(options.id, "_kmVideo");
|
|
135
|
+
this.type = options.type;
|
|
136
|
+
this.componentConfig = options.componentConfig;
|
|
137
|
+
this.rules = [];
|
|
138
|
+
this.isCombinationComponent = false;
|
|
139
|
+
this.canSort = false;
|
|
140
|
+
this.children = [];
|
|
141
|
+
this.dataType = "array";
|
|
142
|
+
this.effects = options.effects;
|
|
143
|
+
});
|
|
144
|
+
export default KmVideo;
|
|
@@ -17,7 +17,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
originId: string;
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
dataType: ComponentInterface[
|
|
20
|
+
dataType: ComponentInterface["dataType"];
|
|
21
21
|
constructor(options: PickOption);
|
|
22
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
23
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -11,6 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
13
|
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
14
15
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, PaymentTid);
|
|
@@ -42,11 +43,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
42
43
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
43
44
|
}).join("");
|
|
44
45
|
var hasValue = addressText || detail || name || mobile;
|
|
45
|
-
var value = hasValue ?
|
|
46
|
+
var value = hasValue ? "".concat(addressText).concat(detail, " ").concat(name, " ").concat(mobile) : "";
|
|
46
47
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
47
48
|
id: _this.id,
|
|
48
49
|
label: _this.name,
|
|
49
|
-
value:
|
|
50
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
51
|
+
text: value
|
|
52
|
+
})
|
|
50
53
|
}) : null;
|
|
51
54
|
});
|
|
52
55
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -63,7 +66,9 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
63
66
|
var addressText = (_ref2 = [province, city, district]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (suffix) {
|
|
64
67
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
65
68
|
}).join("");
|
|
66
|
-
return /*#__PURE__*/React.createElement(
|
|
69
|
+
return /*#__PURE__*/React.createElement(CopyText, {
|
|
70
|
+
text: "".concat(addressText).concat(detail, " ").concat(name, " ").concat(mobile)
|
|
71
|
+
});
|
|
67
72
|
});
|
|
68
73
|
_defineProperty(this, "renderLog", function (r) {
|
|
69
74
|
var _ref3;
|
|
@@ -87,9 +92,9 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
87
92
|
province: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptProvince")],
|
|
88
93
|
city: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptCity")],
|
|
89
94
|
district: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDistrict")],
|
|
90
|
-
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDetail")]) ||
|
|
91
|
-
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverName")]) ||
|
|
92
|
-
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverMobile")]) ||
|
|
95
|
+
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDetail")]) || "",
|
|
96
|
+
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverName")]) || "",
|
|
97
|
+
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverMobile")]) || ""
|
|
93
98
|
};
|
|
94
99
|
});
|
|
95
100
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
@@ -118,7 +123,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
118
123
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
119
124
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
120
125
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
121
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
126
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
122
127
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
123
128
|
});
|
|
124
129
|
});
|
|
@@ -137,7 +142,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
137
142
|
this.originId = options.id;
|
|
138
143
|
this.isCombinationComponent = false;
|
|
139
144
|
this.canSort = true;
|
|
140
|
-
this.dataType =
|
|
145
|
+
this.dataType = "object";
|
|
141
146
|
this.children = [];
|
|
142
147
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
143
148
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -30,7 +30,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
|
|
|
30
30
|
return setVisible(false);
|
|
31
31
|
},
|
|
32
32
|
footer: null
|
|
33
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
34
34
|
style: {
|
|
35
35
|
color: "#ff4d4f"
|
|
36
36
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare class PaymentTid implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
11
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
@@ -17,7 +17,7 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
originId: string;
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
dataType: ComponentInterface[
|
|
20
|
+
dataType: ComponentInterface["dataType"];
|
|
21
21
|
constructor(options: PickOption);
|
|
22
22
|
renderAddress: (record: any) => React.JSX.Element;
|
|
23
23
|
renderClient: () => null;
|
|
@@ -5,9 +5,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from
|
|
9
|
-
import { isNull } from
|
|
10
|
-
import { AddressData } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
12
12
|
var _this = this;
|
|
13
13
|
_classCallCheck(this, PaymentTid);
|
|
@@ -33,7 +33,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
33
33
|
var _item$interceptAddres;
|
|
34
34
|
var addressText = (_item$interceptAddres = item.interceptAddress) === null || _item$interceptAddres === void 0 ? void 0 : _item$interceptAddres.map(function (suffix) {
|
|
35
35
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
36
|
-
}).join(
|
|
36
|
+
}).join("");
|
|
37
37
|
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), addressText || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, addressText, item.interceptDetail, item.interceptReceiverName, item.interceptReceiverMobile) : "--");
|
|
38
38
|
}));
|
|
39
39
|
});
|
|
@@ -52,15 +52,15 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
54
|
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
|
|
55
|
-
console.log(
|
|
55
|
+
console.log("renderExport", record["".concat(_this.originId, "_logisticsInterceptList")]);
|
|
56
56
|
return logisticsInterceptList.reduce(function (prv, item) {
|
|
57
57
|
var _item$interceptAddres2;
|
|
58
58
|
var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
|
|
59
59
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
60
|
-
}).join(
|
|
61
|
-
prv.push("".concat(addressText).concat(item.interceptDetail ||
|
|
60
|
+
}).join("");
|
|
61
|
+
prv.push("".concat(addressText).concat(item.interceptDetail || "", "\n ").concat((item === null || item === void 0 ? void 0 : item.interceptReceiverName) || "", "\n ").concat((item === null || item === void 0 ? void 0 : item.interceptReceiverMobile) || ""));
|
|
62
62
|
return prv;
|
|
63
|
-
}, []).join(
|
|
63
|
+
}, []).join(",");
|
|
64
64
|
});
|
|
65
65
|
_defineProperty(this, "editRender", function () {
|
|
66
66
|
return null;
|
|
@@ -68,19 +68,19 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
68
68
|
_defineProperty(this, "filterConfig", function () {
|
|
69
69
|
return [];
|
|
70
70
|
});
|
|
71
|
-
this.name =
|
|
71
|
+
this.name = "派送地址";
|
|
72
72
|
this.id = "".concat(options.id);
|
|
73
73
|
this.sortField = "".concat(options.id);
|
|
74
74
|
this.formField = "".concat(options.id);
|
|
75
75
|
this.type = options.type;
|
|
76
76
|
this.componentConfig = options.componentConfig;
|
|
77
77
|
this.rules = [];
|
|
78
|
-
this.align =
|
|
78
|
+
this.align = "left";
|
|
79
79
|
this.width = 350;
|
|
80
80
|
this.originId = options.id;
|
|
81
81
|
this.isCombinationComponent = false;
|
|
82
82
|
this.canSort = false;
|
|
83
|
-
this.dataType =
|
|
83
|
+
this.dataType = "object";
|
|
84
84
|
this.children = [];
|
|
85
85
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
86
86
|
this.addressDateInstance = AddressData.getInstance();
|
|
@@ -30,7 +30,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
|
|
|
30
30
|
return setVisible(false);
|
|
31
31
|
},
|
|
32
32
|
footer: null
|
|
33
|
-
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u4FEE\u6539\u7684\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
|
|
34
34
|
style: {
|
|
35
35
|
color: "#ff4d4f"
|
|
36
36
|
}
|
|
@@ -73,7 +73,9 @@ function Logistics(options) {
|
|
|
73
73
|
}).join("");
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
|
|
75
75
|
text: item.interceptCode
|
|
76
|
-
})) : null, (_item$interceptAddres = item.interceptAddress) !== null && _item$interceptAddres !== void 0 && _item$interceptAddres.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A",
|
|
76
|
+
})) : null, (_item$interceptAddres = item.interceptAddress) !== null && _item$interceptAddres !== void 0 && _item$interceptAddres.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
|
|
77
|
+
text: "".concat(addressText, "\n ").concat(item.interceptDetail, " ").concat(item.interceptReceiverName, "\n ").concat(item.interceptReceiverMobile)
|
|
78
|
+
})) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
77
79
|
modelWidth: 500,
|
|
78
80
|
interceptCompany: item.interceptCompany,
|
|
79
81
|
interceptCode: item.interceptCode,
|
|
@@ -53,7 +53,7 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
53
53
|
return {
|
|
54
54
|
searchDefaultConditions: SYMBOL.like,
|
|
55
55
|
type: item.type,
|
|
56
|
-
id: item.id,
|
|
56
|
+
id: "".concat(item.id, "_trajectorySnapshot"),
|
|
57
57
|
name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
|
|
58
58
|
filterComponentType: "Input"
|
|
59
59
|
};
|
|
@@ -143,6 +143,11 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
|
|
|
143
143
|
});
|
|
144
144
|
_defineProperty(this, "editRender", function (p) {
|
|
145
145
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
146
|
+
var onChange = function onChange(val, type) {
|
|
147
|
+
if (_this.type === "KM_REISSUE_GOODS" && type === "systemOrder") {
|
|
148
|
+
p === null || p === void 0 ? void 0 : p.onChange(val, "kmSystemOrder");
|
|
149
|
+
}
|
|
150
|
+
};
|
|
146
151
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
147
152
|
title: _this.name,
|
|
148
153
|
name: _this.id,
|
|
@@ -157,7 +162,8 @@ var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
|
|
|
157
162
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
158
163
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
159
164
|
width: "90%",
|
|
160
|
-
type: _this.type
|
|
165
|
+
type: _this.type,
|
|
166
|
+
onChange: onChange
|
|
161
167
|
}))
|
|
162
168
|
});
|
|
163
169
|
});
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BuyerNick | JstSendGood | MsgStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BuyerNick | JstSendGood | LogisticsMoreInterception | MsgStatus | BasicPosting | AsyncSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -267,6 +267,8 @@ export var factory = function factory(type, options) {
|
|
|
267
267
|
return new MemberLevel(options);
|
|
268
268
|
case "WDT_SHOP":
|
|
269
269
|
return new WdtShopSelect(options);
|
|
270
|
+
case "KM_VIDEO":
|
|
271
|
+
return new KmVideo(options);
|
|
270
272
|
default:
|
|
271
273
|
return new BasicInput(options);
|
|
272
274
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
|
85
85
|
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
86
86
|
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
87
87
|
export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
|
|
88
|
+
export { default as KmVideo } from "./components/KM/KmVideo";
|
|
88
89
|
export { default as CommonInput } from "./components/CommonInput";
|
|
89
90
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
90
91
|
export { default as Label } from "./components/Label";
|
package/dist/esm/index.js
CHANGED
|
@@ -85,6 +85,7 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
|
85
85
|
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
86
86
|
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
87
87
|
export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
|
|
88
|
+
export { default as KmVideo } from "./components/KM/KmVideo";
|
|
88
89
|
export { default as CommonInput } from "./components/CommonInput";
|
|
89
90
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
90
91
|
export { default as Label } from "./components/Label";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -251,6 +251,13 @@ export interface ComponentInterface {
|
|
|
251
251
|
* @returns
|
|
252
252
|
*/
|
|
253
253
|
renderPc: (value: unknown, record: Record) => JSX.Element | null | JSX.Element[] | string;
|
|
254
|
+
/**
|
|
255
|
+
* PC端渲染表格浮层,存在则根据renderPcTooltip渲染,不存在则根据renderPc渲染,主要依赖与第二个参数record
|
|
256
|
+
* @param value
|
|
257
|
+
* @param record
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
renderPcTooltip?: (value: unknown, record: Record) => JSX.Element | null | JSX.Element[] | string;
|
|
254
261
|
/**
|
|
255
262
|
* 导出时渲染
|
|
256
263
|
* @param p
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.74",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.74",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.74",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "33def4c863f35acd939ef023dcf87fb64f80c4b9",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|