@kmkf-fe-packages/services-components 0.6.3-alpha.0 → 0.6.3-alpha.10
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/commonComponents/ItemView/index.d.ts +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +125 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +2 -0
- package/dist/esm/components/ActualPayment/index.js +7 -0
- package/dist/esm/components/Address/index.d.ts +2 -0
- package/dist/esm/components/Address/index.js +7 -0
- package/dist/esm/components/Alipay/index.d.ts +5 -0
- package/dist/esm/components/Alipay/index.js +9 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +9 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +9 -1
- package/dist/esm/components/BuyerNick/index.d.ts +5 -0
- package/dist/esm/components/BuyerNick/index.js +10 -0
- package/dist/esm/components/Cascader/index.d.ts +2 -0
- package/dist/esm/components/Cascader/index.js +7 -0
- package/dist/esm/components/Checkbox/index.d.ts +5 -0
- package/dist/esm/components/Checkbox/index.js +25 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
- package/dist/esm/components/CommonDataTime/index.js +7 -0
- package/dist/esm/components/CompletedUser/index.d.ts +3 -1
- package/dist/esm/components/CompletedUser/index.js +6 -0
- package/dist/esm/components/DataTime/index.d.ts +2 -0
- package/dist/esm/components/DataTime/index.js +7 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
- package/dist/esm/components/EItemEnCode/index.js +7 -0
- package/dist/esm/components/EItemId/index.d.ts +2 -0
- package/dist/esm/components/EItemId/index.js +7 -0
- package/dist/esm/components/EItemSelect/index.d.ts +2 -0
- package/dist/esm/components/EItemSelect/index.js +7 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/index.js +7 -0
- package/dist/esm/components/Express/index.d.ts +3 -1
- package/dist/esm/components/Express/index.js +9 -2
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +9 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowStatusSelect/index.js +10 -0
- package/dist/esm/components/Grade/index.d.ts +2 -0
- package/dist/esm/components/Grade/index.js +7 -0
- package/dist/esm/components/Handler/index.d.ts +3 -3
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +7 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
- package/dist/esm/components/JstItemSelect/index.js +8 -0
- package/dist/esm/components/JstLogistics/index.d.ts +2 -0
- package/dist/esm/components/JstLogistics/index.js +8 -0
- package/dist/esm/components/JstSendGood/index.d.ts +2 -0
- package/dist/esm/components/JstSendGood/index.js +8 -0
- package/dist/esm/components/JstSupply/index.d.ts +2 -0
- package/dist/esm/components/JstSupply/index.js +8 -0
- package/dist/esm/components/Logistics/index.d.ts +5 -0
- package/dist/esm/components/Logistics/index.js +9 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +62 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +9 -3
- package/dist/esm/components/LogisticsInterception/index.js +33 -10
- package/dist/esm/components/MultSelect/index.d.ts +2 -0
- package/dist/esm/components/MultSelect/index.js +7 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +10 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +10 -2
- package/dist/esm/components/Ordinary/index.d.ts +8 -2
- package/dist/esm/components/Ordinary/index.js +11 -1
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +10 -2
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +9 -2
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayTime.js +9 -2
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +10 -3
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +9 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentStatus.js +9 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +9 -1
- package/dist/esm/components/Payment/index.d.ts +14 -4
- package/dist/esm/components/Payment/index.js +14 -0
- package/dist/esm/components/Picture/index.d.ts +2 -0
- package/dist/esm/components/Picture/index.js +7 -0
- package/dist/esm/components/PlatForm/index.d.ts +2 -0
- package/dist/esm/components/PlatForm/index.js +8 -1
- package/dist/esm/components/Radio/index.d.ts +5 -0
- package/dist/esm/components/Radio/index.js +13 -7
- package/dist/esm/components/Rate/index.d.ts +2 -0
- package/dist/esm/components/Rate/index.js +9 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +5 -0
- package/dist/esm/components/ReceiverAddress/index.js +10 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
- package/dist/esm/components/ReceiverMobile/index.js +7 -0
- package/dist/esm/components/ReceiverName/index.d.ts +2 -0
- package/dist/esm/components/ReceiverName/index.js +7 -0
- package/dist/esm/components/Remark/index.d.ts +5 -0
- package/dist/esm/components/Remark/index.js +12 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +8 -3
- package/dist/esm/components/ReturnLogistics/index.js +9 -0
- package/dist/esm/components/Select/index.d.ts +2 -0
- package/dist/esm/components/Select/index.js +7 -0
- package/dist/esm/components/ShopInput/index.d.ts +3 -1
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +2 -0
- package/dist/esm/components/ShopName/index.js +7 -0
- package/dist/esm/components/Submitter/index.d.ts +3 -1
- package/dist/esm/components/Submitter/index.js +6 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +7 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +2 -0
- package/dist/esm/components/TextArea/index.js +7 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
- package/dist/esm/components/ThirdItemSelect/index.js +7 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
- package/dist/esm/components/TradeDateTime/index.js +17 -7
- package/dist/esm/components/TradeId/index.d.ts +2 -0
- package/dist/esm/components/TradeId/index.js +7 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +16 -5
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +9 -1
- package/package.json +4 -4
|
@@ -13,8 +13,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
14
|
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
16
|
-
var _this = this
|
|
17
|
-
_this$componentConfig3;
|
|
16
|
+
var _this = this;
|
|
18
17
|
_classCallCheck(this, BasicRate);
|
|
19
18
|
_defineProperty(this, "name", void 0);
|
|
20
19
|
_defineProperty(this, "id", void 0);
|
|
@@ -82,6 +81,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
82
81
|
}
|
|
83
82
|
return null;
|
|
84
83
|
});
|
|
84
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
85
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")])) return null;
|
|
86
|
+
return _this.renderPc(undefined, r);
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
89
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")];
|
|
90
|
+
});
|
|
85
91
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
86
92
|
var _ref;
|
|
87
93
|
var textArr = ((_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_rate")]) || []) === null || _ref === void 0 ? void 0 : _ref.reduce(function (prv, next) {
|
|
@@ -119,15 +125,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
119
125
|
this.componentConfig = options.componentConfig;
|
|
120
126
|
this.isCombinationComponent = false;
|
|
121
127
|
this.children = [];
|
|
122
|
-
this.rules =
|
|
123
|
-
required: true,
|
|
124
|
-
validator: function validator(_, value) {
|
|
125
|
-
if (value && !value.length) {
|
|
126
|
-
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
127
|
-
}
|
|
128
|
-
return Promise.resolve();
|
|
129
|
-
}
|
|
130
|
-
}] : [];
|
|
128
|
+
this.rules = [];
|
|
131
129
|
this.rateMap = {
|
|
132
130
|
0: '',
|
|
133
131
|
0.5: '非常差',
|
|
@@ -19,6 +19,11 @@ declare class BasicInput implements ComponentInterface {
|
|
|
19
19
|
render: (value: Value, record: any) => JSX.Element;
|
|
20
20
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
21
21
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => {
|
|
24
|
+
address: any[];
|
|
25
|
+
detail: any;
|
|
26
|
+
};
|
|
22
27
|
renderExport: (value: any, record: any) => string;
|
|
23
28
|
renderClient: (record: any) => JSX.Element | null;
|
|
24
29
|
editRender: (value: any) => JSX.Element;
|
|
@@ -57,6 +57,16 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
57
57
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
58
58
|
}).join(''), detail);
|
|
59
59
|
});
|
|
60
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
61
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")])) return null;
|
|
62
|
+
return _this.renderPc(undefined, r);
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
65
|
+
return {
|
|
66
|
+
address: [r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")]],
|
|
67
|
+
detail: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")]
|
|
68
|
+
};
|
|
69
|
+
});
|
|
60
70
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
71
|
var _address2;
|
|
62
72
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
@@ -13,6 +13,8 @@ declare class ReceiverMobile implements ComponentInterface {
|
|
|
13
13
|
render: (value: string, record?: Record) => JSX.Element;
|
|
14
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: any, record: Record) => any;
|
|
17
19
|
editRender: (value: any) => JSX.Element;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -44,6 +44,13 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
44
44
|
}
|
|
45
45
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")]);
|
|
46
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")];
|
|
53
|
+
});
|
|
47
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
55
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
|
|
49
56
|
});
|
|
@@ -13,6 +13,8 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
13
13
|
render: (value: string, record: any) => JSX.Element;
|
|
14
14
|
renderClient: (record: any) => JSX.Element | null;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: any, record: Record) => any;
|
|
17
19
|
editRender: () => JSX.Element;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -44,6 +44,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
44
44
|
}
|
|
45
45
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")]);
|
|
46
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")];
|
|
53
|
+
});
|
|
47
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
55
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
|
|
49
56
|
});
|
|
@@ -18,6 +18,11 @@ declare class ERemark implements ComponentInterface {
|
|
|
18
18
|
render: (value: Value) => JSX.Element;
|
|
19
19
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
20
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
remark: any;
|
|
24
|
+
flag: any;
|
|
25
|
+
};
|
|
21
26
|
renderExport: (value: unknown, record: Record) => any;
|
|
22
27
|
editRender: () => JSX.Element;
|
|
23
28
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -55,10 +55,20 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
55
55
|
style: {
|
|
56
56
|
display: 'inline-block'
|
|
57
57
|
}
|
|
58
|
-
}, get(record, "".concat(_this.id, "_flag"))
|
|
59
|
-
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[get(record, "".concat(_this.id, "_flag"))])
|
|
58
|
+
}, !isNull(get(record, "".concat(_this.id, "_flag"))) ? /*#__PURE__*/React.createElement("i", {
|
|
59
|
+
className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[Number(get(record, "".concat(_this.id, "_flag")))])
|
|
60
60
|
}) : null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
|
|
61
61
|
});
|
|
62
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
63
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")])) return null;
|
|
64
|
+
return _this.renderPc(undefined, r);
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
|
+
return {
|
|
68
|
+
remark: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")],
|
|
69
|
+
flag: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]
|
|
70
|
+
};
|
|
71
|
+
});
|
|
62
72
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
63
73
|
return get(record, "".concat(_this.id, "_remark"));
|
|
64
74
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, ColumnConfig } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
5
5
|
import ExpressCode from '../ExpressCode';
|
|
@@ -23,6 +23,11 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
23
23
|
render: () => null;
|
|
24
24
|
renderClient: (record: any) => JSX.Element;
|
|
25
25
|
renderPc: () => null;
|
|
26
|
+
renderLog: (r: Record) => JSX.Element;
|
|
27
|
+
getComponentValue: (r: Record) => {
|
|
28
|
+
company: any;
|
|
29
|
+
order: any;
|
|
30
|
+
};
|
|
26
31
|
renderExport: () => null;
|
|
27
32
|
editRender: (value: any) => JSX.Element;
|
|
28
33
|
filterConfig: (item: ColumnConfig) => ({
|
|
@@ -30,12 +35,12 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
30
35
|
name: string;
|
|
31
36
|
filterComponentType: "MultipleSelect";
|
|
32
37
|
options: any[];
|
|
33
|
-
filterFn: (value: string) => (i:
|
|
38
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
39
|
} | {
|
|
35
40
|
id: string;
|
|
36
41
|
name: string;
|
|
37
42
|
filterComponentType: "Input";
|
|
38
|
-
filterFn: (value: string) => (i:
|
|
43
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
39
44
|
})[];
|
|
40
45
|
}
|
|
41
46
|
export default ReturnLogistics;
|
|
@@ -42,6 +42,15 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
42
42
|
_defineProperty(this, "renderPc", function () {
|
|
43
43
|
return null;
|
|
44
44
|
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderLog(r), _this.expressCode.renderLog(r));
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return {
|
|
50
|
+
company: _this.express.getComponentValue(r),
|
|
51
|
+
order: _this.expressCode.getComponentValue(r)
|
|
52
|
+
};
|
|
53
|
+
});
|
|
45
54
|
_defineProperty(this, "renderExport", function () {
|
|
46
55
|
return null;
|
|
47
56
|
});
|
|
@@ -13,6 +13,8 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
13
13
|
editRender: () => JSX.Element;
|
|
14
14
|
renderClient: (record: any) => JSX.Element | null;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: any, record: Record) => any;
|
|
17
19
|
filterConfig: (item: ColumnConfig) => {
|
|
18
20
|
id: string;
|
|
@@ -48,6 +48,13 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
48
48
|
var _record;
|
|
49
49
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_select")]) !== null && _record !== void 0 ? _record : '--');
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_select")])) return null;
|
|
53
|
+
return _this.renderPc(undefined, r);
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_select")];
|
|
57
|
+
});
|
|
51
58
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
59
|
var _record2;
|
|
53
60
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_select")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -9,7 +9,9 @@ declare class ShopInput implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (shopName:
|
|
12
|
+
renderPc: (shopName: unknown, record: any) => JSX.Element;
|
|
13
|
+
renderLog: (record: Record) => any;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
13
15
|
renderExport: (value: any, record: Record) => any;
|
|
14
16
|
render: () => null;
|
|
15
17
|
renderClient: () => null;
|
|
@@ -24,7 +24,14 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
24
24
|
styles: {
|
|
25
25
|
marginRight: 5
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
28
|
+
});
|
|
29
|
+
_defineProperty(this, "renderLog", function (record) {
|
|
30
|
+
if (!(record !== null && record !== void 0 && record[_this.id])) return null;
|
|
31
|
+
return record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
28
35
|
});
|
|
29
36
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
30
37
|
var _record;
|
|
@@ -12,6 +12,8 @@ declare class BasicInput implements ComponentInterface {
|
|
|
12
12
|
render: (value: string) => JSX.Element;
|
|
13
13
|
renderClient: (record: any) => JSX.Element | null;
|
|
14
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
15
17
|
renderExport: (value: any, record: Record) => any;
|
|
16
18
|
editRender: (value: any) => JSX.Element;
|
|
17
19
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -35,6 +35,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
35
35
|
var _record;
|
|
36
36
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record !== void 0 ? _record : '--');
|
|
37
37
|
});
|
|
38
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
39
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopName")])) 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, "_shopName")];
|
|
44
|
+
});
|
|
38
45
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
39
46
|
var _record2;
|
|
40
47
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -9,7 +9,9 @@ declare class Submitter implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value:
|
|
12
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
13
|
+
renderLog: (record: Record) => null;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
13
15
|
renderExport: (value: any, record: Record) => any;
|
|
14
16
|
render: () => null;
|
|
15
17
|
renderClient: () => null;
|
|
@@ -21,6 +21,12 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
21
21
|
var _record;
|
|
22
22
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
23
23
|
});
|
|
24
|
+
_defineProperty(this, "renderLog", function (record) {
|
|
25
|
+
return null;
|
|
26
|
+
});
|
|
27
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
28
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
29
|
+
});
|
|
24
30
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
25
31
|
var _record2;
|
|
26
32
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -12,7 +12,9 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
12
12
|
constructor(options: PickOption);
|
|
13
13
|
render: (value: string) => JSX.Element;
|
|
14
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
15
|
-
renderPc: (value:
|
|
15
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: string, record: Record) => any;
|
|
17
19
|
editRender: (value: any) => JSX.Element;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -36,6 +36,13 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
36
36
|
var _record;
|
|
37
37
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record !== void 0 ? _record : '--');
|
|
38
38
|
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_systemOrderNo")])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_systemOrderNo")];
|
|
45
|
+
});
|
|
39
46
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
40
47
|
var _record2;
|
|
41
48
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -11,6 +11,8 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
13
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
14
16
|
renderExport: (value: any, record: Record) => string;
|
|
15
17
|
render: () => null;
|
|
16
18
|
renderClient: () => null;
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import find from 'lodash/find';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
|
-
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
|
|
13
13
|
var _this = this;
|
|
14
14
|
_classCallCheck(this, TemplateSelect);
|
|
@@ -31,6 +31,13 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
31
31
|
});
|
|
32
32
|
return /*#__PURE__*/React.createElement("span", null, "".concat(get(item, 'fLabel'), "/").concat(get(item, 'label')));
|
|
33
33
|
});
|
|
34
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
35
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
36
|
+
return _this.renderPc(undefined, r);
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
40
|
+
});
|
|
34
41
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
35
42
|
var _this$effects2;
|
|
36
43
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
@@ -11,6 +11,8 @@ declare class BasicInput implements ComponentInterface {
|
|
|
11
11
|
constructor(options: PickOption);
|
|
12
12
|
render: (value: string) => JSX.Element;
|
|
13
13
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
14
16
|
renderExport: (value: any, record: Record) => any;
|
|
15
17
|
renderClient: (record: Record) => JSX.Element | null;
|
|
16
18
|
editRender: () => JSX.Element;
|
|
@@ -28,6 +28,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
28
28
|
var _record;
|
|
29
29
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
|
|
30
30
|
});
|
|
31
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
32
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")])) return null;
|
|
33
|
+
return _this.renderPc(undefined, r);
|
|
34
|
+
});
|
|
35
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
36
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")];
|
|
37
|
+
});
|
|
31
38
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
32
39
|
var _record2;
|
|
33
40
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -13,6 +13,8 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
13
13
|
render: (value: any) => JSX.Element;
|
|
14
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: any, record: Record) => any;
|
|
17
19
|
editRender: () => JSX.Element;
|
|
18
20
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -49,6 +49,13 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
49
49
|
type: "itemThird"
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
54
|
+
return _this.renderPc(undefined, r);
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
58
|
+
});
|
|
52
59
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
60
|
var _ref;
|
|
54
61
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
@@ -14,10 +14,13 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
+
dataMap: Record;
|
|
17
18
|
constructor(options: PickOption);
|
|
18
19
|
render: (value: Value) => JSX.Element;
|
|
19
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
21
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
21
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
22
25
|
editRender: () => JSX.Element;
|
|
23
26
|
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
@@ -26,6 +26,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
26
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataMap", void 0);
|
|
29
30
|
_defineProperty(this, "render", function (value) {
|
|
30
31
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
31
32
|
});
|
|
@@ -39,13 +40,16 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
39
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
41
|
var _record;
|
|
41
42
|
var type = _this.type;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : '--');
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
var type = _this.type;
|
|
47
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.dataMap[type])])) return null;
|
|
48
|
+
return _this.renderPc(undefined, r);
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
|
+
var type = _this.type;
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.dataMap[type])];
|
|
49
53
|
});
|
|
50
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
55
|
var _record2;
|
|
@@ -112,5 +116,11 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
112
116
|
this.rules = [];
|
|
113
117
|
this.isCombinationComponent = false;
|
|
114
118
|
this.children = [];
|
|
119
|
+
this.dataMap = {
|
|
120
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
121
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
122
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
123
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime'
|
|
124
|
+
};
|
|
115
125
|
});
|
|
116
126
|
export default BasicDataTime;
|
|
@@ -19,6 +19,8 @@ declare class ETradeId implements ComponentInterface {
|
|
|
19
19
|
render: (value: string) => JSX.Element;
|
|
20
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
21
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
22
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
23
25
|
editRender: (value: any) => JSX.Element;
|
|
24
26
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -42,6 +42,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
42
42
|
var _record;
|
|
43
43
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--');
|
|
44
44
|
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
47
|
+
return _this.renderPc(undefined, r);
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
50
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
|
|
51
|
+
});
|
|
45
52
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
46
53
|
var _record2;
|
|
47
54
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -12,6 +12,8 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
12
12
|
constructor(options: PickOption);
|
|
13
13
|
copyHandle: (text: string) => void;
|
|
14
14
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
15
17
|
renderExport: (value: any, record: any) => any;
|
|
16
18
|
render: () => null;
|
|
17
19
|
renderClient: () => null;
|
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import { message } from 'antd';
|
|
11
11
|
import { CopyOutlined } from '@ant-design/icons';
|
|
12
12
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
|
-
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import repeatPng from "./img/repeat.png";
|
|
16
16
|
import copy from 'copy-to-clipboard';
|
|
@@ -30,7 +30,10 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
30
30
|
message.success('复制成功');
|
|
31
31
|
});
|
|
32
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
|
-
var _record$repeatConfig
|
|
33
|
+
var _record$repeatConfig;
|
|
34
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
35
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
36
|
+
}
|
|
34
37
|
return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : (_record$repeatConfig = record.repeatConfig) === null || _record$repeatConfig === void 0 ? void 0 : _record$repeatConfig.show) && /*#__PURE__*/React.createElement("img", {
|
|
35
38
|
src: repeatPng,
|
|
36
39
|
style: {
|
|
@@ -41,7 +44,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
41
44
|
var _this$effects, _this$effects2;
|
|
42
45
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
|
|
43
46
|
}
|
|
44
|
-
}),
|
|
47
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
45
48
|
onClick: function onClick() {
|
|
46
49
|
return _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
47
50
|
}
|
|
@@ -52,9 +55,16 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
52
55
|
}
|
|
53
56
|
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
54
57
|
});
|
|
58
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
59
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
60
|
+
return _this.renderPc(undefined, r);
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
63
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
64
|
+
});
|
|
55
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
|
-
var
|
|
57
|
-
return (
|
|
66
|
+
var _record;
|
|
67
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
58
68
|
});
|
|
59
69
|
_defineProperty(this, "render", function () {
|
|
60
70
|
return null;
|
|
@@ -92,6 +102,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
92
102
|
this.id = options.id;
|
|
93
103
|
this.type = options.type;
|
|
94
104
|
this.componentConfig = options.componentConfig;
|
|
105
|
+
this.effects = options.effects;
|
|
95
106
|
this.rules = [];
|
|
96
107
|
this.isCombinationComponent = false;
|
|
97
108
|
this.children = [];
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -45,3 +45,6 @@ export { default as Submitter } from './components/Submitter';
|
|
|
45
45
|
export { default as Handler } from './components/Handler';
|
|
46
46
|
export { default as CompletedUser } from './components/CompletedUser';
|
|
47
47
|
export { factory } from './factory';
|
|
48
|
+
export { default as PlatformAvatar } from './commonComponents/PlatformAvatar';
|
|
49
|
+
export { default as ShopList } from './commonComponents/ShopList';
|
|
50
|
+
export { default as OperationLog } from './commonComponents/OperationLog';
|
package/dist/esm/index.js
CHANGED
|
@@ -44,4 +44,7 @@ export { default as ShopInput } from "./components/ShopInput";
|
|
|
44
44
|
export { default as Submitter } from "./components/Submitter";
|
|
45
45
|
export { default as Handler } from "./components/Handler";
|
|
46
46
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
47
|
-
export { factory } from "./factory";
|
|
47
|
+
export { factory } from "./factory";
|
|
48
|
+
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
49
|
+
export { default as ShopList } from "./commonComponents/ShopList";
|
|
50
|
+
export { default as OperationLog } from "./commonComponents/OperationLog";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -131,6 +131,13 @@ export interface ComponentInterface {
|
|
|
131
131
|
value: string;
|
|
132
132
|
}[];
|
|
133
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* 日志渲染
|
|
136
|
+
* @param value
|
|
137
|
+
* @param r
|
|
138
|
+
* @returns
|
|
139
|
+
*/
|
|
140
|
+
renderLog: (r: Record) => JSX.Element | null | JSX.Element[];
|
|
134
141
|
/**
|
|
135
142
|
* 端上的日志模块需要使用
|
|
136
143
|
*/
|
|
@@ -153,7 +160,7 @@ export interface ComponentInterface {
|
|
|
153
160
|
* @param record
|
|
154
161
|
* @returns
|
|
155
162
|
*/
|
|
156
|
-
renderPc: (value:
|
|
163
|
+
renderPc: (value: unknown, record: Record) => JSX.Element | null | JSX.Element[];
|
|
157
164
|
/**
|
|
158
165
|
* 导出时渲染
|
|
159
166
|
* @param p
|
|
@@ -165,6 +172,7 @@ export interface ComponentInterface {
|
|
|
165
172
|
onBlur?: (p1: any, p2: any) => void;
|
|
166
173
|
}) => JSX.Element | null;
|
|
167
174
|
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
175
|
+
getComponentValue: (r: Record) => any;
|
|
168
176
|
}
|
|
169
177
|
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects'>;
|
|
170
178
|
export declare type ColumnConfig = {
|