@kmkf-fe-packages/services-components 2.4.0-rc.0 → 2.4.1
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/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +10 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +61 -8
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +20 -10
- package/dist/esm/components/BS/common/BsMemo.js +4 -1
- package/dist/esm/components/BS/common/BsType.js +4 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +16 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +31 -5
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +3 -3
- package/dist/esm/components/Common/index.js +49 -28
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1165 -18
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.js +17 -1
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +56 -0
- package/dist/esm/components/OrderSubForm/index.js +285 -0
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +42 -25
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +42 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +22 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +37 -7
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +34 -1
- package/dist/esm/type.d.ts +38 -0
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BsHeaderChild implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
parentName?: string;
|
|
17
17
|
transformValue: (val: any, record?: any, parentName?: string) => any;
|
|
18
18
|
export: (val: any, record?: any, parentName?: string) => any;
|
|
@@ -11,9 +11,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from "react";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
16
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
18
18
|
var _this = this;
|
|
19
19
|
_classCallCheck(this, BsHeaderChild);
|
|
@@ -37,7 +37,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
37
37
|
return val;
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "getParentId", function () {
|
|
40
|
-
var _this$id$split = _this.id.split(
|
|
40
|
+
var _this$id$split = _this.id.split("_"),
|
|
41
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
42
42
|
key = _this$id$split2[0],
|
|
43
43
|
name = _this$id$split2[1],
|
|
@@ -53,7 +53,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
55
55
|
var _this$getComponentVal;
|
|
56
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
56
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "renderLog", function (r) {
|
|
59
59
|
var id = _this.getParentId();
|
|
@@ -68,8 +68,8 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
68
68
|
});
|
|
69
69
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
70
70
|
var _this$getComponentExp;
|
|
71
|
-
var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp :
|
|
72
|
-
return typeof val ===
|
|
71
|
+
var val = (_this$getComponentExp = _this.getComponentExport(record)) !== null && _this$getComponentExp !== void 0 ? _this$getComponentExp : "--";
|
|
72
|
+
return typeof val === "number" ? val + "" : val;
|
|
73
73
|
});
|
|
74
74
|
_defineProperty(this, "editRender", function () {
|
|
75
75
|
return null;
|
|
@@ -86,11 +86,11 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
86
86
|
this.parentName = options.parentName;
|
|
87
87
|
}
|
|
88
88
|
this.componentConfig = options.componentConfig;
|
|
89
|
-
this.align =
|
|
89
|
+
this.align = "left";
|
|
90
90
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
91
91
|
this.isCombinationComponent = false;
|
|
92
92
|
this.canSort = false;
|
|
93
|
-
this.dataType =
|
|
93
|
+
this.dataType = "string";
|
|
94
94
|
this.children = [];
|
|
95
95
|
if (options.transformValue) {
|
|
96
96
|
this.transformValue = options.transformValue;
|
|
@@ -79,7 +79,7 @@ var HeaderMap = {
|
|
|
79
79
|
},
|
|
80
80
|
share: {
|
|
81
81
|
component: BsHeaderChild,
|
|
82
|
-
name: "
|
|
82
|
+
name: "均摊单价",
|
|
83
83
|
key: "share",
|
|
84
84
|
width: 120
|
|
85
85
|
},
|
|
@@ -231,7 +231,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
231
231
|
skuName: "sku名称",
|
|
232
232
|
money: "实付金额",
|
|
233
233
|
number: "数量",
|
|
234
|
-
share: "
|
|
234
|
+
share: "均摊单价",
|
|
235
235
|
type: "赠品类型",
|
|
236
236
|
batch: "批次号",
|
|
237
237
|
expireDate: "有效期"
|
|
@@ -13,6 +13,8 @@ declare class BsChildPic implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
+
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
17
|
+
export?: (val: any, record?: any, parentName?: string) => any;
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
getParentId: () => string;
|
|
18
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -12,8 +12,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
14
|
import React from "react";
|
|
15
|
-
import { Image } from "antd";
|
|
16
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
+
import { BsGoodPic } from "../../Common";
|
|
17
17
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
19
19
|
var _this = this;
|
|
@@ -30,6 +30,12 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
34
|
+
return val;
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "export", function (val) {
|
|
37
|
+
return val;
|
|
38
|
+
});
|
|
33
39
|
_defineProperty(this, "getParentId", function () {
|
|
34
40
|
var _this$id$split = _this.id.split("_"),
|
|
35
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
@@ -46,14 +52,12 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
46
52
|
}) : null;
|
|
47
53
|
});
|
|
48
54
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
src: _this.getComponentValue(record)
|
|
56
|
-
}));
|
|
55
|
+
var _picValue$split;
|
|
56
|
+
var picValue = _this.getComponentValue(record);
|
|
57
|
+
var imgList = picValue ? picValue === null || picValue === void 0 ? void 0 : (_picValue$split = picValue.split(",http")) === null || _picValue$split === void 0 ? void 0 : _picValue$split.map(function (url, index) {
|
|
58
|
+
return index !== 0 ? "http".concat(url) : url;
|
|
59
|
+
}) : [];
|
|
60
|
+
return BsGoodPic(imgList);
|
|
57
61
|
});
|
|
58
62
|
_defineProperty(this, "renderLog", function (r) {
|
|
59
63
|
var id = _this.getParentId();
|
|
@@ -61,7 +65,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
61
65
|
return _this.renderPc(undefined, r);
|
|
62
66
|
});
|
|
63
67
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
64
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
68
|
+
return _this.transformValue ? _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]) : r === null || r === void 0 ? void 0 : r[_this.id];
|
|
65
69
|
});
|
|
66
70
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
67
71
|
var _this$getComponentVal;
|
|
@@ -85,5 +89,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
85
89
|
this.canSort = false;
|
|
86
90
|
this.dataType = "string";
|
|
87
91
|
this.children = [];
|
|
92
|
+
if (options.transformValue) {
|
|
93
|
+
this.transformValue = options === null || options === void 0 ? void 0 : options.transformValue;
|
|
94
|
+
}
|
|
95
|
+
if (options.renderExport) {
|
|
96
|
+
this.export = options === null || options === void 0 ? void 0 : options.renderExport;
|
|
97
|
+
}
|
|
88
98
|
});
|
|
89
99
|
export default BsChildPic;
|
|
@@ -25,7 +25,10 @@ var componentType = {
|
|
|
25
25
|
GY_RETURN_GOODS: "gyReturnType",
|
|
26
26
|
JST_REISSUE_GOODS: "jstReissueType",
|
|
27
27
|
JST_RETURN_GOODS: "jstReturnType",
|
|
28
|
-
KM_REISSUE_GOODS: "kmReissueType"
|
|
28
|
+
KM_REISSUE_GOODS: "kmReissueType",
|
|
29
|
+
KM_RETURN_GOODS: "kmReturnType",
|
|
30
|
+
JY_REISSUE_GOODS: "jyReissueType",
|
|
31
|
+
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
29
32
|
};
|
|
30
33
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
31
34
|
var _this = this;
|
|
@@ -26,7 +26,10 @@ var componentType = {
|
|
|
26
26
|
GY_RETURN_GOODS: "gyReturnType",
|
|
27
27
|
JST_REISSUE_GOODS: "jstReissueType",
|
|
28
28
|
JST_RETURN_GOODS: "jstReturnType",
|
|
29
|
-
KM_REISSUE_GOODS: "kmReissueType"
|
|
29
|
+
KM_REISSUE_GOODS: "kmReissueType",
|
|
30
|
+
KM_RETURN_GOODS: "kmReturnType",
|
|
31
|
+
JY_REISSUE_GOODS: "jyReissueType",
|
|
32
|
+
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
30
33
|
};
|
|
31
34
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
32
35
|
var _this = this;
|
|
@@ -21,7 +21,10 @@ var componentType = {
|
|
|
21
21
|
GY_RETURN_GOODS: "gySystemOrderNo",
|
|
22
22
|
JST_REISSUE_GOODS: "jstSystemOrderNo",
|
|
23
23
|
JST_RETURN_GOODS: "jstSystemOrderNo",
|
|
24
|
-
KM_REISSUE_GOODS: "kmSystemOrderNo"
|
|
24
|
+
KM_REISSUE_GOODS: "kmSystemOrderNo",
|
|
25
|
+
KM_RETURN_GOODS: "kmSystemOrderNo",
|
|
26
|
+
JY_REISSUE_GOODS: "jySystemOrderNo",
|
|
27
|
+
JKY_REISSUE_GOODS: "jkySystemOrderNo"
|
|
25
28
|
};
|
|
26
29
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
27
30
|
var _this = this;
|
|
@@ -26,7 +26,10 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
26
26
|
renderExport: (value: string, record: Record) => any;
|
|
27
27
|
editRender: () => null;
|
|
28
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
|
-
searchDefaultConditions:
|
|
29
|
+
searchDefaultConditions: {
|
|
30
|
+
in: "in";
|
|
31
|
+
anylike: "anylike";
|
|
32
|
+
};
|
|
30
33
|
type: string;
|
|
31
34
|
id: string;
|
|
32
35
|
name: string;
|
|
@@ -14,7 +14,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
14
14
|
import React from "react";
|
|
15
15
|
import { BsExpressRender } from "../../Common";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
import {
|
|
17
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
19
|
BS_LOGISTICS: {
|
|
20
20
|
key: "bsLogisticsItem"
|
|
@@ -37,8 +37,17 @@ var typeMap = {
|
|
|
37
37
|
GY_LOGISTICS: {
|
|
38
38
|
key: "gyLogisticsItem"
|
|
39
39
|
},
|
|
40
|
+
JY_LOGISTICS: {
|
|
41
|
+
key: "jyLogisticsItem"
|
|
42
|
+
},
|
|
43
|
+
JKY_LOGISTICS: {
|
|
44
|
+
key: "jkyLogisticsItem"
|
|
45
|
+
},
|
|
40
46
|
SKX_LOGISTICS: {
|
|
41
47
|
key: "skxLogisticsItem"
|
|
48
|
+
},
|
|
49
|
+
SKX_RETURN_LOGISTICS: {
|
|
50
|
+
key: "skxReturnLogisticsItem"
|
|
42
51
|
}
|
|
43
52
|
};
|
|
44
53
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -95,13 +104,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
95
104
|
_defineProperty(this, "filterConfig", function (item) {
|
|
96
105
|
var subKey = item.subKey;
|
|
97
106
|
return {
|
|
98
|
-
searchDefaultConditions:
|
|
107
|
+
searchDefaultConditions: {
|
|
108
|
+
in: SYMBOL.in,
|
|
109
|
+
anylike: SYMBOL.anylike
|
|
110
|
+
},
|
|
99
111
|
type: item.type,
|
|
100
112
|
id: "".concat(item.id, "_").concat(subKey),
|
|
101
113
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
|
|
102
114
|
filterComponentType: "SelectInput",
|
|
103
115
|
props: {
|
|
104
|
-
filterOptions:
|
|
116
|
+
filterOptions: SEARCH_OPTIONS
|
|
105
117
|
},
|
|
106
118
|
filterFn: function filterFn(value) {
|
|
107
119
|
return function (i) {
|
|
@@ -109,7 +121,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
109
121
|
};
|
|
110
122
|
},
|
|
111
123
|
formatFilterValue: function formatFilterValue(value) {
|
|
112
|
-
if (value.type
|
|
124
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
113
125
|
return batchInput(value.keywords);
|
|
114
126
|
} else {
|
|
115
127
|
return value;
|
|
@@ -31,6 +31,10 @@ declare class Express implements ComponentInterface {
|
|
|
31
31
|
renderExport: (value: string, record: Record) => any;
|
|
32
32
|
editRender: () => null;
|
|
33
33
|
filterConfig: (item: ColumnConfig) => {
|
|
34
|
+
searchDefaultConditions: {
|
|
35
|
+
in: "in";
|
|
36
|
+
anylike: "anylike";
|
|
37
|
+
};
|
|
34
38
|
filterComponentType: "SelectInput";
|
|
35
39
|
props: {
|
|
36
40
|
filterOptions: {
|
|
@@ -41,18 +45,17 @@ declare class Express implements ComponentInterface {
|
|
|
41
45
|
};
|
|
42
46
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
43
47
|
formatFilterValue: (value: any) => any;
|
|
44
|
-
searchDefaultConditions: "in";
|
|
45
48
|
type: string;
|
|
46
49
|
id: string;
|
|
47
50
|
name: string;
|
|
48
51
|
} | {
|
|
52
|
+
searchDefaultConditions: "in";
|
|
49
53
|
filterComponentType: "MultipleSelect";
|
|
50
54
|
props: {
|
|
51
55
|
options: any[];
|
|
52
56
|
filterOptions?: undefined;
|
|
53
57
|
};
|
|
54
58
|
filterFn: (value: string) => (i: Record) => any;
|
|
55
|
-
searchDefaultConditions: "in";
|
|
56
59
|
type: string;
|
|
57
60
|
id: string;
|
|
58
61
|
name: string;
|
|
@@ -17,7 +17,7 @@ import React from "react";
|
|
|
17
17
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { BsExpressRender } from "../../Common";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
20
|
-
import {
|
|
20
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
21
21
|
var typeMap = {
|
|
22
22
|
BS_LOGISTICS: {
|
|
23
23
|
key: "bsLogisticsItem"
|
|
@@ -40,8 +40,17 @@ var typeMap = {
|
|
|
40
40
|
GY_LOGISTICS: {
|
|
41
41
|
key: "gyLogisticsItem"
|
|
42
42
|
},
|
|
43
|
+
JY_LOGISTICS: {
|
|
44
|
+
key: "jyLogisticsItem"
|
|
45
|
+
},
|
|
46
|
+
JKY_LOGISTICS: {
|
|
47
|
+
key: "jkyLogisticsItem"
|
|
48
|
+
},
|
|
43
49
|
SKX_LOGISTICS: {
|
|
44
50
|
key: "skxLogisticsItem"
|
|
51
|
+
},
|
|
52
|
+
SKX_RETURN_LOGISTICS: {
|
|
53
|
+
key: "skxReturnLogisticsItem"
|
|
45
54
|
}
|
|
46
55
|
};
|
|
47
56
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -95,7 +104,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
95
104
|
});
|
|
96
105
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
97
106
|
var _this$expressDateInst, _this$expressDateInst2;
|
|
98
|
-
|
|
107
|
+
var name = (_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], false);
|
|
108
|
+
if (!name) {
|
|
109
|
+
var _typeMap$_this$type3, _items$find;
|
|
110
|
+
var _this$id$split3 = _this.id.split("_"),
|
|
111
|
+
_this$id$split4 = _slicedToArray(_this$id$split3, 3),
|
|
112
|
+
key = _this$id$split4[0],
|
|
113
|
+
parentKey = _this$id$split4[1],
|
|
114
|
+
childKey = _this$id$split4[2];
|
|
115
|
+
var items = record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
116
|
+
name = items === null || items === void 0 ? void 0 : (_items$find = items.find(function (item) {
|
|
117
|
+
return item.logisticsCompany === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
118
|
+
})) === null || _items$find === void 0 ? void 0 : _items$find.logisticsCompanyName;
|
|
119
|
+
}
|
|
120
|
+
return name || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
|
|
99
121
|
});
|
|
100
122
|
_defineProperty(this, "editRender", function () {
|
|
101
123
|
return null;
|
|
@@ -104,14 +126,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
104
126
|
var _this$expressDateInst3;
|
|
105
127
|
var subKey = item.subKey;
|
|
106
128
|
return _objectSpread({
|
|
107
|
-
searchDefaultConditions: SYMBOL.in,
|
|
108
129
|
type: item.type,
|
|
109
130
|
id: "".concat(item.id, "_").concat(subKey),
|
|
110
131
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8")
|
|
111
132
|
}, _this.logisticsCompanyFormType === "input" ? {
|
|
133
|
+
searchDefaultConditions: {
|
|
134
|
+
in: SYMBOL.in,
|
|
135
|
+
anylike: SYMBOL.anylike
|
|
136
|
+
},
|
|
112
137
|
filterComponentType: "SelectInput",
|
|
113
138
|
props: {
|
|
114
|
-
filterOptions:
|
|
139
|
+
filterOptions: SEARCH_OPTIONS
|
|
115
140
|
},
|
|
116
141
|
filterFn: function filterFn(value) {
|
|
117
142
|
return function (i) {
|
|
@@ -119,13 +144,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
119
144
|
};
|
|
120
145
|
},
|
|
121
146
|
formatFilterValue: function formatFilterValue(value) {
|
|
122
|
-
if (value.type
|
|
147
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
123
148
|
return batchInput(value.keywords);
|
|
124
149
|
} else {
|
|
125
150
|
return value;
|
|
126
151
|
}
|
|
127
152
|
}
|
|
128
153
|
} : {
|
|
154
|
+
searchDefaultConditions: SYMBOL.in,
|
|
129
155
|
filterComponentType: "MultipleSelect",
|
|
130
156
|
props: {
|
|
131
157
|
options: ((_this$expressDateInst3 = _this.expressDateInstance) === null || _this$expressDateInst3 === void 0 ? void 0 : _this$expressDateInst3.getExpressData()) || []
|
|
@@ -178,11 +178,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
178
178
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
179
179
|
required: true,
|
|
180
180
|
validator: function validator(_, value) {
|
|
181
|
-
var _value, _typeMap$options$type6;
|
|
181
|
+
var _value, _typeMap$options$type6, _typeMap$options$type8;
|
|
182
182
|
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
183
183
|
var _typeMap$options$type7;
|
|
184
184
|
return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
|
|
185
185
|
}
|
|
186
|
+
if (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)])) {
|
|
187
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
|
|
188
|
+
}
|
|
186
189
|
return Promise.resolve();
|
|
187
190
|
}
|
|
188
191
|
}] : [];
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
format: ComponentInterface[
|
|
16
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
format: ComponentInterface['format'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
17
|
+
exampleValue?: string;
|
|
18
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
/**
|
|
19
21
|
* 通过值计算展示内容
|
|
@@ -6,13 +6,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
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
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
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
|
|
10
|
-
import { Cascader } from
|
|
11
|
-
import intersection from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Cascader } from 'antd';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
|
-
import { findLabelBySelectValue, transMultSelectOptions, tree } from
|
|
13
|
+
import { findLabelBySelectValue, transMultSelectOptions, tree } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
18
18
|
var _this = this,
|
|
@@ -31,11 +31,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
32
|
_defineProperty(this, "format", void 0);
|
|
33
33
|
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
35
|
+
_defineProperty(this, "standardDateType", void 0);
|
|
34
36
|
_defineProperty(this, "getValues", function (value) {
|
|
35
37
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
36
38
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
37
39
|
return i.label;
|
|
38
|
-
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(
|
|
40
|
+
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(',');
|
|
39
41
|
});
|
|
40
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
43
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -51,7 +53,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
51
53
|
}
|
|
52
54
|
return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
|
|
53
55
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
54
|
-
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(
|
|
56
|
+
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
|
|
55
57
|
// return (
|
|
56
58
|
// <span>
|
|
57
59
|
// {findLabelBySelectValue(
|
|
@@ -75,11 +77,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
75
77
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
78
|
var _ref2, _ref2$map;
|
|
77
79
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
|
|
78
|
-
return
|
|
80
|
+
return '--';
|
|
79
81
|
}
|
|
80
82
|
return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
|
|
81
83
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
82
|
-
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(
|
|
84
|
+
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
|
|
83
85
|
// return findLabelBySelectValue(
|
|
84
86
|
// (record?.[`${this.id}_multSelect`] || [])?.map(
|
|
85
87
|
// (item: any) => item.actived
|
|
@@ -98,14 +100,14 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
98
100
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
99
101
|
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
100
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
101
|
-
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip :
|
|
103
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
|
|
102
104
|
component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
|
|
103
105
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
104
106
|
options: transMultSelectOptions(((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || []),
|
|
105
107
|
fieldNames: {
|
|
106
|
-
label:
|
|
107
|
-
value:
|
|
108
|
-
children:
|
|
108
|
+
label: 'label',
|
|
109
|
+
value: 'actived',
|
|
110
|
+
children: 'children'
|
|
109
111
|
},
|
|
110
112
|
showSearch: true,
|
|
111
113
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
@@ -122,26 +124,26 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
122
124
|
// 过滤组件id
|
|
123
125
|
name: item.name,
|
|
124
126
|
// 过滤组件名称
|
|
125
|
-
filterComponentType:
|
|
127
|
+
filterComponentType: 'Cascader',
|
|
126
128
|
props: {
|
|
127
129
|
options: options,
|
|
128
130
|
multiple: true,
|
|
129
|
-
maxTagCount:
|
|
131
|
+
maxTagCount: 'responsive',
|
|
130
132
|
fieldNames: {
|
|
131
|
-
label:
|
|
132
|
-
value:
|
|
133
|
-
children:
|
|
133
|
+
label: 'label',
|
|
134
|
+
value: 'actived',
|
|
135
|
+
children: 'children'
|
|
134
136
|
}
|
|
135
137
|
},
|
|
136
138
|
filterFn: function filterFn(value) {
|
|
137
139
|
return function (i) {
|
|
138
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
140
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
139
141
|
};
|
|
140
142
|
},
|
|
141
143
|
formatFilterValue: function formatFilterValue(val) {
|
|
142
144
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
143
145
|
return val.map(function (item) {
|
|
144
|
-
var node = tree.findNodeByValue(options,
|
|
146
|
+
var node = tree.findNodeByValue(options, 'actived', item[item.length - 1]);
|
|
145
147
|
if (node) {
|
|
146
148
|
var label = node.label,
|
|
147
149
|
actived = node.actived;
|
|
@@ -165,9 +167,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
165
167
|
this.children = [];
|
|
166
168
|
this.isCombinationComponent = false;
|
|
167
169
|
this.canSort = true;
|
|
168
|
-
this.dataType =
|
|
169
|
-
this.format =
|
|
170
|
+
this.dataType = 'array';
|
|
171
|
+
this.format = 'cascader';
|
|
170
172
|
this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
|
|
173
|
+
this.standardDateType = 'Array';
|
|
174
|
+
this.exampleValue = '[{"label":"卖家补偿","actived":3},{"label":"麦基修改","actived":"3-1"}]';
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
/**
|
|
@@ -61,10 +61,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
61
61
|
width: 100
|
|
62
62
|
}, {
|
|
63
63
|
dataIndex: "share",
|
|
64
|
-
title: "\
|
|
64
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
65
65
|
align: "center",
|
|
66
66
|
ellipsis: true,
|
|
67
|
-
width:
|
|
67
|
+
width: 120
|
|
68
68
|
}, {
|
|
69
69
|
dataIndex: "type",
|
|
70
70
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -7,13 +7,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
7
7
|
import system from "./system";
|
|
8
8
|
import bs_e3 from "./bs_e3";
|
|
9
9
|
import bs from "./bs";
|
|
10
|
-
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getSkxColumns } from "@kmkf-fe-packages/basic-components";
|
|
10
|
+
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import defaultColumns from "./defaultColumns";
|
|
12
12
|
export var getColumnsMap = function getColumnsMap(args) {
|
|
13
13
|
var _ref = args || {},
|
|
14
14
|
_ref$text = _ref.text,
|
|
15
15
|
text = _ref$text === void 0 ? "" : _ref$text;
|
|
16
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
16
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
17
17
|
text: text
|
|
18
18
|
})), bs_e3()), getWdtColumns({
|
|
19
19
|
text: text,
|
|
@@ -26,6 +26,10 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
26
26
|
text: text
|
|
27
27
|
})), getKmColumns({
|
|
28
28
|
disabled: true
|
|
29
|
+
})), getJyColumns({
|
|
30
|
+
disabled: true
|
|
31
|
+
})), getJkyColumns({
|
|
32
|
+
disabled: true
|
|
29
33
|
})), getSkxColumns({})), {}, {
|
|
30
34
|
default: defaultColumns({
|
|
31
35
|
text: text
|
|
@@ -60,10 +60,10 @@ var getColumns = function getColumns(_ref) {
|
|
|
60
60
|
width: 100
|
|
61
61
|
}, {
|
|
62
62
|
dataIndex: "share",
|
|
63
|
-
title: "\
|
|
63
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
64
64
|
align: "center",
|
|
65
65
|
ellipsis: true,
|
|
66
|
-
width:
|
|
66
|
+
width: 120
|
|
67
67
|
}, {
|
|
68
68
|
dataIndex: "type",
|
|
69
69
|
title: "\u8D60\u54C1\u7C7B\u578B",
|