@kmkf-fe-packages/services-components 0.6.3-alpha.3 → 0.6.3-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +7 -5
- package/dist/esm/components/ActualPayment/index.js +9 -4
- package/dist/esm/components/Address/index.d.ts +6 -5
- package/dist/esm/components/Address/index.js +8 -4
- package/dist/esm/components/Alipay/index.d.ts +9 -4
- package/dist/esm/components/Alipay/index.js +9 -3
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
- package/dist/esm/components/AlipayAccount/index.js +11 -5
- package/dist/esm/components/AlipayName/index.d.ts +7 -5
- package/dist/esm/components/AlipayName/index.js +11 -5
- package/dist/esm/components/BuyerNick/index.d.ts +10 -8
- package/dist/esm/components/BuyerNick/index.js +11 -3
- package/dist/esm/components/Cascader/index.d.ts +7 -5
- package/dist/esm/components/Cascader/index.js +9 -4
- package/dist/esm/components/Checkbox/index.d.ts +10 -5
- package/dist/esm/components/Checkbox/index.js +22 -7
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +6 -4
- package/dist/esm/components/CommonDataTime/index.js +8 -4
- package/dist/esm/components/CompletedUser/index.d.ts +5 -3
- package/dist/esm/components/CompletedUser/index.js +7 -3
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +8 -6
- package/dist/esm/components/DataTime/index.js +8 -3
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
- package/dist/esm/components/EItemEnCode/index.js +12 -7
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +7 -5
- package/dist/esm/components/EItemId/index.js +12 -7
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +6 -5
- package/dist/esm/components/EItemSelect/index.js +10 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +7 -5
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +9 -7
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +8 -6
- package/dist/esm/components/ExpressCode/index.js +12 -5
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
- package/dist/esm/components/FlowStatusSelect/index.js +11 -3
- package/dist/esm/components/GetFormItem/index.d.ts +2 -2
- package/dist/esm/components/Grade/index.d.ts +6 -5
- package/dist/esm/components/Grade/index.js +8 -4
- package/dist/esm/components/Handler/index.d.ts +5 -5
- package/dist/esm/components/Handler/index.js +18 -8
- package/dist/esm/components/Input/index.d.ts +7 -5
- package/dist/esm/components/Input/index.js +9 -4
- package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
- package/dist/esm/components/JstItemSelect/index.js +29 -24
- package/dist/esm/components/JstLogistics/index.d.ts +9 -6
- package/dist/esm/components/JstLogistics/index.js +19 -9
- package/dist/esm/components/JstSendGood/index.d.ts +7 -5
- package/dist/esm/components/JstSendGood/index.js +19 -9
- package/dist/esm/components/JstSupply/index.d.ts +7 -5
- package/dist/esm/components/JstSupply/index.js +19 -9
- package/dist/esm/components/Logistics/index.d.ts +11 -5
- package/dist/esm/components/Logistics/index.js +9 -3
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +58 -26
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +84 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
- package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
- package/dist/esm/components/LogisticsInterception/index.d.ts +54 -11
- package/dist/esm/components/LogisticsInterception/index.js +45 -17
- package/dist/esm/components/MultSelect/index.d.ts +7 -6
- package/dist/esm/components/MultSelect/index.js +10 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
- package/dist/esm/components/Ordinary/index.d.ts +12 -6
- package/dist/esm/components/Ordinary/index.js +12 -5
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNick.js +13 -6
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNo.js +13 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayTime.js +11 -8
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
- package/dist/esm/components/Payment/BuyerNick.js +12 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentAmount.js +10 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentStatus.js +11 -5
- package/dist/esm/components/Payment/PaymentTid.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentTid.js +10 -4
- package/dist/esm/components/Payment/index.d.ts +20 -8
- package/dist/esm/components/Payment/index.js +14 -3
- package/dist/esm/components/Picture/index.d.ts +7 -5
- package/dist/esm/components/Picture/index.js +8 -1
- package/dist/esm/components/PlatForm/index.d.ts +5 -3
- package/dist/esm/components/PlatForm/index.js +8 -3
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +11 -5
- package/dist/esm/components/Radio/index.js +14 -7
- package/dist/esm/components/Rate/index.d.ts +7 -5
- package/dist/esm/components/Rate/index.js +9 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
- package/dist/esm/components/ReceiverAddress/index.js +13 -3
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
- package/dist/esm/components/ReceiverMobile/index.js +9 -4
- package/dist/esm/components/ReceiverName/index.d.ts +7 -5
- package/dist/esm/components/ReceiverName/index.js +9 -4
- package/dist/esm/components/Remark/index.d.ts +11 -5
- package/dist/esm/components/Remark/index.js +13 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
- package/dist/esm/components/ReturnLogistics/index.js +9 -3
- package/dist/esm/components/Select/index.d.ts +7 -5
- package/dist/esm/components/Select/index.js +8 -3
- package/dist/esm/components/ShopInput/index.d.ts +5 -3
- package/dist/esm/components/ShopInput/index.js +9 -4
- package/dist/esm/components/ShopName/index.d.ts +7 -5
- package/dist/esm/components/ShopName/index.js +10 -5
- package/dist/esm/components/Submitter/index.d.ts +5 -3
- package/dist/esm/components/Submitter/index.js +7 -3
- package/dist/esm/components/SystemOrderNo/index.d.ts +7 -5
- package/dist/esm/components/SystemOrderNo/index.js +9 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
- package/dist/esm/components/TemplateSelect/index.js +10 -5
- package/dist/esm/components/TextArea/index.d.ts +7 -5
- package/dist/esm/components/TextArea/index.js +9 -4
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
- package/dist/esm/components/ThirdItemSelect/index.js +12 -8
- package/dist/esm/components/TradeDateTime/index.d.ts +9 -5
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +7 -5
- package/dist/esm/components/TradeId/index.js +9 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
- package/dist/esm/components/WorkOrderId/index.js +17 -8
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/type.d.ts +11 -3
- package/package.json +10 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
declare class
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare class InterceptType implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
|
+
companyId: string;
|
|
7
8
|
type: string;
|
|
8
9
|
rules: any[];
|
|
9
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
@@ -12,13 +13,24 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
12
13
|
width: number;
|
|
13
14
|
isCombinationComponent: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
|
-
|
|
16
|
+
expressInterceptInstance: ExpressInterceptData;
|
|
16
17
|
constructor(options: PickOption);
|
|
17
|
-
|
|
18
|
-
renderClient: (record: any) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
20
|
renderPc: (value: any, record: Record) => any;
|
|
21
|
+
renderLog: (r: Record) => any;
|
|
20
22
|
renderExport: (value: any, record: Record) => any;
|
|
21
23
|
editRender: () => null;
|
|
22
|
-
filterConfig: (item: ColumnConfig) =>
|
|
24
|
+
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
options: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
34
|
+
};
|
|
23
35
|
}
|
|
24
|
-
export default
|
|
36
|
+
export default InterceptType;
|
|
@@ -5,15 +5,16 @@ 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
|
|
8
|
+
import React from "react";
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull } from
|
|
11
|
-
import {
|
|
12
|
-
var
|
|
10
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
13
13
|
var _this = this;
|
|
14
|
-
_classCallCheck(this,
|
|
14
|
+
_classCallCheck(this, InterceptType);
|
|
15
15
|
_defineProperty(this, "name", void 0);
|
|
16
16
|
_defineProperty(this, "id", void 0);
|
|
17
|
+
_defineProperty(this, "companyId", void 0);
|
|
17
18
|
_defineProperty(this, "type", void 0);
|
|
18
19
|
_defineProperty(this, "rules", void 0);
|
|
19
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -22,41 +23,62 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
22
23
|
_defineProperty(this, "width", void 0);
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
|
-
_defineProperty(this, "
|
|
26
|
-
_defineProperty(this, "
|
|
27
|
-
return
|
|
26
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
27
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
28
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
28
29
|
});
|
|
29
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
|
+
var _this$expressIntercep;
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
33
|
id: _this.id,
|
|
32
34
|
label: _this.name,
|
|
33
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
35
|
+
value: (_this$expressIntercep = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]
|
|
34
36
|
}) : null;
|
|
35
37
|
});
|
|
36
38
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
var
|
|
38
|
-
return (
|
|
39
|
+
var _this$expressIntercep2;
|
|
40
|
+
return (_this$expressIntercep2 = _this.expressInterceptInstance.getTypeNameMap()["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep2 !== void 0 ? _this$expressIntercep2 : "--";
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
var _this$expressIntercep3;
|
|
44
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
45
|
+
return (_this$expressIntercep3 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep3 === void 0 ? void 0 : _this$expressIntercep3[r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
|
|
39
46
|
});
|
|
40
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
41
|
-
var
|
|
42
|
-
return (
|
|
48
|
+
var _this$expressIntercep4, _this$expressIntercep5;
|
|
49
|
+
return (_this$expressIntercep4 = (_this$expressIntercep5 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep5 === void 0 ? void 0 : _this$expressIntercep5["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep4 !== void 0 ? _this$expressIntercep4 : "--";
|
|
43
50
|
});
|
|
44
51
|
_defineProperty(this, "editRender", function () {
|
|
45
52
|
return null;
|
|
46
53
|
});
|
|
47
54
|
_defineProperty(this, "filterConfig", function (item) {
|
|
48
|
-
return
|
|
55
|
+
return {
|
|
56
|
+
type: item.type,
|
|
57
|
+
id: "".concat(item.id, "_interceptType"),
|
|
58
|
+
name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
|
|
59
|
+
filterComponentType: 'MultipleSelect',
|
|
60
|
+
options: _this.expressInterceptInstance.getTypeOptions() || [],
|
|
61
|
+
filterFn: function filterFn(value) {
|
|
62
|
+
return function (i) {
|
|
63
|
+
var _value$map, _value$map$flat;
|
|
64
|
+
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
65
|
+
return v === null || v === void 0 ? void 0 : v.split(',');
|
|
66
|
+
})) === null || _value$map === void 0 ? void 0 : (_value$map$flat = _value$map.flat()) === null || _value$map$flat === void 0 ? void 0 : _value$map$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptType'));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
49
70
|
});
|
|
50
|
-
this.name =
|
|
71
|
+
this.name = "拦截类型";
|
|
51
72
|
this.id = "".concat(options.id, "_interceptType");
|
|
73
|
+
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
52
74
|
this.type = options.type;
|
|
53
75
|
this.componentConfig = options.componentConfig;
|
|
54
76
|
this.rules = [];
|
|
55
|
-
this.align =
|
|
77
|
+
this.align = "left";
|
|
56
78
|
this.width = 200;
|
|
57
79
|
this.isCombinationComponent = false;
|
|
58
80
|
this.children = [];
|
|
59
81
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
60
|
-
this.
|
|
82
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
61
83
|
});
|
|
62
|
-
export default
|
|
84
|
+
export default InterceptType;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { ExpressData } from
|
|
4
|
-
import InterceptAddress from
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
import InterceptAddress from "./InterceptAddress";
|
|
5
|
+
import InterceptType from "./InterceptType";
|
|
6
|
+
import InterceptStatus from "./InterceptStatus";
|
|
7
|
+
import Express from "../Express";
|
|
8
|
+
import ExpressCode from "../ExpressCode";
|
|
7
9
|
declare class Logistics implements ComponentInterface {
|
|
8
10
|
name: string;
|
|
9
11
|
id: string;
|
|
@@ -11,17 +13,58 @@ declare class Logistics implements ComponentInterface {
|
|
|
11
13
|
rules: any[];
|
|
12
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
15
|
interceptAddress: InterceptAddress;
|
|
16
|
+
interceptType: InterceptType;
|
|
17
|
+
interceptStatus: InterceptStatus;
|
|
14
18
|
isCombinationComponent: boolean;
|
|
15
19
|
children: ComponentInterface[];
|
|
16
20
|
express: Express;
|
|
17
21
|
expressCode: ExpressCode;
|
|
18
|
-
expressDateInstance: ExpressData
|
|
22
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
23
|
+
expressInterceptData: ExpressInterceptData;
|
|
24
|
+
effects: ComponentInterface["effects"];
|
|
19
25
|
constructor(options: PickOption);
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
renderClient: (record: any) => React.JSX.Element;
|
|
27
|
+
renderLog: (record: any) => React.JSX.Element;
|
|
28
|
+
getComponentValue: (r: Record) => {
|
|
29
|
+
interceptCompany: any;
|
|
30
|
+
interceptCode: any;
|
|
31
|
+
interceptType: any;
|
|
32
|
+
interceptStatus: any;
|
|
33
|
+
interceptRedirectTo: {
|
|
34
|
+
province: any;
|
|
35
|
+
city: any;
|
|
36
|
+
district: any;
|
|
37
|
+
detail: any;
|
|
38
|
+
name: any;
|
|
39
|
+
mobile: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
22
42
|
renderPc: () => null;
|
|
23
43
|
renderExport: () => null;
|
|
24
|
-
editRender: (
|
|
25
|
-
filterConfig: (item: ColumnConfig) =>
|
|
44
|
+
editRender: () => React.JSX.Element;
|
|
45
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
46
|
+
type: string;
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
filterComponentType: "MultipleSelect";
|
|
50
|
+
options: any[];
|
|
51
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
52
|
+
} | {
|
|
53
|
+
type: string;
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
filterComponentType: "Input";
|
|
57
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
58
|
+
} | {
|
|
59
|
+
type: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
filterComponentType: "MultipleSelect";
|
|
63
|
+
options: {
|
|
64
|
+
label: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[];
|
|
67
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
68
|
+
})[];
|
|
26
69
|
}
|
|
27
70
|
export default Logistics;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
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
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
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); }
|
|
4
5
|
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); } }
|
|
5
6
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
7
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
8
|
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; }
|
|
8
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
9
10
|
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); }
|
|
10
|
-
import React from
|
|
11
|
-
import { LogisticsInterception } from
|
|
12
|
-
import { ExpressData } from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
13
|
+
import { ExpressData, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
14
|
import GetFormItem from "../GetFormItem";
|
|
14
15
|
import InterceptAddress from "./InterceptAddress";
|
|
16
|
+
import InterceptType from "./InterceptType";
|
|
17
|
+
import InterceptStatus from "./InterceptStatus";
|
|
15
18
|
import Express from "../Express";
|
|
16
19
|
import ExpressCode from "../ExpressCode";
|
|
17
20
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
@@ -23,16 +26,29 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
23
26
|
_defineProperty(this, "rules", void 0);
|
|
24
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
28
|
_defineProperty(this, "interceptAddress", void 0);
|
|
29
|
+
_defineProperty(this, "interceptType", void 0);
|
|
30
|
+
_defineProperty(this, "interceptStatus", void 0);
|
|
26
31
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
32
|
_defineProperty(this, "children", void 0);
|
|
28
33
|
_defineProperty(this, "express", void 0);
|
|
29
34
|
_defineProperty(this, "expressCode", void 0);
|
|
30
35
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
|
|
33
|
-
});
|
|
36
|
+
_defineProperty(this, "expressInterceptData", void 0);
|
|
37
|
+
_defineProperty(this, "effects", void 0);
|
|
34
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptAddress.renderClient(record));
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptStatus.renderClient(record));
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderLog", function (record) {
|
|
42
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.interceptType.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.interceptAddress.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.interceptStatus.renderLog(record)));
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
45
|
+
return {
|
|
46
|
+
interceptCompany: _this.express.getComponentValue(r),
|
|
47
|
+
interceptCode: _this.expressCode.getComponentValue(r),
|
|
48
|
+
interceptType: _this.interceptType.getComponentValue(r),
|
|
49
|
+
interceptStatus: _this.interceptStatus.getComponentValue(r),
|
|
50
|
+
interceptRedirectTo: _this.interceptAddress.getComponentValue(r)
|
|
51
|
+
};
|
|
36
52
|
});
|
|
37
53
|
_defineProperty(this, "renderPc", function () {
|
|
38
54
|
return null;
|
|
@@ -40,25 +56,38 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
40
56
|
_defineProperty(this, "renderExport", function () {
|
|
41
57
|
return null;
|
|
42
58
|
});
|
|
43
|
-
_defineProperty(this, "editRender", function (
|
|
44
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
59
|
+
_defineProperty(this, "editRender", function () {
|
|
60
|
+
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2, _this$effects2$workOr;
|
|
45
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
46
62
|
title: _this.name,
|
|
47
63
|
name: _this.id,
|
|
48
64
|
rules: _this.rules,
|
|
49
65
|
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,
|
|
50
|
-
component: /*#__PURE__*/React.createElement(LogisticsInterception, _this.componentConfig
|
|
66
|
+
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
|
|
67
|
+
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
68
|
+
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
69
|
+
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
|
|
70
|
+
logisticsInterceptHandleStatus: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$workOr = _this$effects2.workOrderDetail) === null || _this$effects2$workOr === void 0 ? void 0 : _this$effects2$workOr.logisticsInterceptHandleStatus) || ""
|
|
71
|
+
}))
|
|
51
72
|
});
|
|
52
73
|
});
|
|
53
74
|
_defineProperty(this, "filterConfig", function (item) {
|
|
54
|
-
return [
|
|
75
|
+
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
76
|
+
subKey: 'interceptCompany'
|
|
77
|
+
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
78
|
+
subKey: 'interceptCode'
|
|
79
|
+
})), _this.interceptStatus.filterConfig(item), _this.interceptType.filterConfig(item)];
|
|
55
80
|
});
|
|
56
81
|
this.name = options.name;
|
|
57
82
|
this.id = options.id;
|
|
58
83
|
this.type = options.type;
|
|
59
84
|
this.componentConfig = options.componentConfig;
|
|
85
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
60
86
|
this.expressDateInstance = ExpressData.getInstance();
|
|
87
|
+
this.expressInterceptData = ExpressInterceptData.getInstance();
|
|
61
88
|
this.interceptAddress = new InterceptAddress(options);
|
|
89
|
+
this.interceptType = new InterceptType(options);
|
|
90
|
+
this.interceptStatus = new InterceptStatus(options);
|
|
62
91
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
63
92
|
id: "".concat(options.id, "_interceptCompany"),
|
|
64
93
|
name: "物流信息"
|
|
@@ -68,20 +97,19 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
68
97
|
name: "物流单号"
|
|
69
98
|
}));
|
|
70
99
|
this.isCombinationComponent = true;
|
|
71
|
-
this.children = [this.express, this.expressCode, this.interceptAddress];
|
|
100
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptStatus];
|
|
72
101
|
this.rules = [{
|
|
73
102
|
validator: function validator(_, value) {
|
|
74
103
|
var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre;
|
|
75
104
|
if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
|
|
76
|
-
return Promise.reject(new Error(
|
|
105
|
+
return Promise.reject(new Error("请填写物流信息"));
|
|
77
106
|
}
|
|
78
107
|
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.interceptType)) {
|
|
79
|
-
return Promise.reject(new Error(
|
|
108
|
+
return Promise.reject(new Error("请选择拦截类型"));
|
|
80
109
|
}
|
|
81
|
-
var showAddress = _this.
|
|
82
|
-
console.log(showAddress);
|
|
110
|
+
var showAddress = _this.expressInterceptData.getShowNewAddressMap()["".concat(value === null || value === void 0 ? void 0 : value.interceptCompany, "_").concat(value === null || value === void 0 ? void 0 : value.interceptType)];
|
|
83
111
|
if (showAddress && (!(value !== null && value !== void 0 && (_value$interceptAddre = value.interceptAddress) !== null && _value$interceptAddre !== void 0 && _value$interceptAddre.length) || !(value !== null && value !== void 0 && value.interceptDetail) || !(value !== null && value !== void 0 && value.interceptReceiverName) || !(value !== null && value !== void 0 && value.interceptReceiverMobile))) {
|
|
84
|
-
return Promise.reject(new Error(
|
|
112
|
+
return Promise.reject(new Error("请填写新派送地"));
|
|
85
113
|
}
|
|
86
114
|
return Promise.resolve();
|
|
87
115
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
4
3
|
declare class BasicMultSelect implements ComponentInterface {
|
|
5
4
|
name: string;
|
|
6
5
|
id: string;
|
|
@@ -10,12 +9,14 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
10
9
|
isCombinationComponent: boolean;
|
|
11
10
|
children: ComponentInterface[];
|
|
12
11
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
13
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
16
16
|
renderExport: (value: any, record: Record) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
17
|
+
editRender: () => React.JSX.Element;
|
|
18
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
type: string;
|
|
19
20
|
id: string;
|
|
20
21
|
name: string;
|
|
21
22
|
filterComponentType: "MultipleSelect";
|
|
@@ -22,14 +22,12 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
-
_defineProperty(this, "render", function (value) {
|
|
26
|
-
return /*#__PURE__*/React.createElement("span", null, " ", value === null || value === void 0 ? void 0 : value.join(','));
|
|
27
|
-
});
|
|
28
25
|
_defineProperty(this, "renderClient", function (record) {
|
|
26
|
+
var _record$_this$id;
|
|
29
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
28
|
id: _this.id,
|
|
31
29
|
label: _this.name,
|
|
32
|
-
value:
|
|
30
|
+
value: record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.join(',')
|
|
33
31
|
}) : null;
|
|
34
32
|
});
|
|
35
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -39,6 +37,13 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
39
37
|
}
|
|
40
38
|
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_basicMultSelect")]) === null || _record === void 0 ? void 0 : _record.join(','));
|
|
41
39
|
});
|
|
40
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
41
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicMultSelect")])) return null;
|
|
42
|
+
return _this.renderPc(undefined, r);
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
45
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicMultSelect")];
|
|
46
|
+
});
|
|
42
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
43
48
|
var _record2;
|
|
44
49
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")]) === undefined) {
|
|
@@ -61,6 +66,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
61
66
|
_defineProperty(this, "filterConfig", function (item) {
|
|
62
67
|
var _item$config;
|
|
63
68
|
return {
|
|
69
|
+
type: item.type,
|
|
64
70
|
id: item.id,
|
|
65
71
|
// 过滤组件id
|
|
66
72
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class OrdinaryHeader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,12 +12,14 @@ declare class OrdinaryHeader implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
17
|
+
renderLog: (r: Record) => any;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value: any) => any;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
@@ -24,18 +24,23 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
24
24
|
_defineProperty(this, "width", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
29
|
-
});
|
|
30
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
29
|
id: _this.id,
|
|
33
30
|
label: _this.name,
|
|
34
|
-
value:
|
|
31
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
35
32
|
}) : null;
|
|
36
33
|
});
|
|
37
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
38
|
-
|
|
34
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
35
|
+
var _r;
|
|
36
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
39
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
40
|
+
return _this.renderPc(undefined, r);
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
44
|
});
|
|
40
45
|
_defineProperty(this, "renderExport", function (value) {
|
|
41
46
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -58,6 +63,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
58
63
|
});
|
|
59
64
|
_defineProperty(this, "filterConfig", function (item) {
|
|
60
65
|
return {
|
|
66
|
+
type: item.type,
|
|
61
67
|
id: "".concat(item.id, "_ordinaryMoney"),
|
|
62
68
|
name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
|
|
63
69
|
filterComponentType: 'Input',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class OrdinaryMoney implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,12 +12,14 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
16
|
+
renderLog: (r: Record) => any;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
17
18
|
renderExport: (value: any) => any;
|
|
18
|
-
renderClient: (record: any) => JSX.Element | null;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
@@ -23,11 +23,16 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
23
23
|
_defineProperty(this, "width", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
-
_defineProperty(this, "
|
|
27
|
-
|
|
26
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
27
|
+
var _r;
|
|
28
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
28
29
|
});
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
30
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
31
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
32
|
+
return _this.renderPc(undefined, r);
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
35
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
31
36
|
});
|
|
32
37
|
_defineProperty(this, "renderExport", function (value) {
|
|
33
38
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -36,7 +41,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
36
41
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
37
42
|
id: _this.id,
|
|
38
43
|
label: _this.name,
|
|
39
|
-
value:
|
|
44
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
40
45
|
}) : null;
|
|
41
46
|
});
|
|
42
47
|
_defineProperty(this, "editRender", function () {
|
|
@@ -51,6 +56,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
51
56
|
});
|
|
52
57
|
_defineProperty(this, "filterConfig", function (item) {
|
|
53
58
|
return {
|
|
59
|
+
type: item.type,
|
|
54
60
|
id: "".concat(item.id, "_ordinaryTaitou"),
|
|
55
61
|
name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
|
|
56
62
|
filterComponentType: 'Input',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, DataType, ALignType, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class OrdinarySerial implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,12 +17,14 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
17
17
|
isCombinationComponent: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
22
|
+
renderLog: (r: Record) => any;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
23
24
|
renderExport: (value: any) => any;
|
|
24
|
-
editRender: () => JSX.Element;
|
|
25
|
+
editRender: () => React.JSX.Element;
|
|
25
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
type: string;
|
|
26
28
|
id: string;
|
|
27
29
|
name: string;
|
|
28
30
|
filterComponentType: "Input";
|
|
@@ -28,18 +28,23 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "render", function (value) {
|
|
32
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
33
|
-
});
|
|
34
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
33
|
id: _this.id,
|
|
37
34
|
label: _this.name,
|
|
38
|
-
value:
|
|
35
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
39
36
|
}) : null;
|
|
40
37
|
});
|
|
41
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
42
|
-
|
|
38
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
39
|
+
var _r;
|
|
40
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
44
|
+
return _this.renderPc(undefined, r);
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
47
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
43
48
|
});
|
|
44
49
|
_defineProperty(this, "renderExport", function (value) {
|
|
45
50
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -56,6 +61,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
56
61
|
});
|
|
57
62
|
_defineProperty(this, "filterConfig", function (item) {
|
|
58
63
|
return {
|
|
64
|
+
type: item.type,
|
|
59
65
|
id: "".concat(item.id, "_ordinarySerial"),
|
|
60
66
|
name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
|
|
61
67
|
filterComponentType: 'Input',
|