@kmkf-fe-packages/services-components 0.6.3-alpha.5 → 0.6.3-alpha.50
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 +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +8 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +86 -0
- package/dist/esm/components/ActualPayment/index.d.ts +4 -2
- package/dist/esm/components/ActualPayment/index.js +9 -4
- package/dist/esm/components/Address/index.d.ts +3 -2
- package/dist/esm/components/Address/index.js +8 -4
- package/dist/esm/components/Alipay/index.d.ts +6 -1
- package/dist/esm/components/Alipay/index.js +9 -3
- package/dist/esm/components/AlipayAccount/index.d.ts +5 -3
- package/dist/esm/components/AlipayAccount/index.js +11 -5
- package/dist/esm/components/AlipayName/index.d.ts +5 -3
- package/dist/esm/components/AlipayName/index.js +11 -5
- package/dist/esm/components/BuyerNick/index.d.ts +6 -4
- package/dist/esm/components/BuyerNick/index.js +11 -3
- package/dist/esm/components/Cascader/index.d.ts +6 -4
- package/dist/esm/components/Cascader/index.js +9 -4
- package/dist/esm/components/Checkbox/index.d.ts +6 -1
- package/dist/esm/components/Checkbox/index.js +21 -6
- package/dist/esm/components/CommonDataTime/index.d.ts +4 -2
- package/dist/esm/components/CommonDataTime/index.js +8 -4
- package/dist/esm/components/CompletedUser/index.d.ts +4 -2
- package/dist/esm/components/CompletedUser/index.js +7 -3
- package/dist/esm/components/DataTime/index.d.ts +4 -2
- package/dist/esm/components/DataTime/index.js +8 -3
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +12 -7
- package/dist/esm/components/EItemId/index.d.ts +3 -1
- package/dist/esm/components/EItemId/index.js +12 -7
- package/dist/esm/components/EItemSelect/index.d.ts +2 -1
- package/dist/esm/components/EItemSelect/index.js +10 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +5 -3
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +5 -3
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +6 -4
- package/dist/esm/components/ExpressCode/index.js +12 -5
- package/dist/esm/components/FlowStatusSelect/index.d.ts +3 -1
- package/dist/esm/components/FlowStatusSelect/index.js +11 -3
- package/dist/esm/components/Grade/index.d.ts +2 -1
- package/dist/esm/components/Grade/index.js +8 -4
- package/dist/esm/components/Handler/index.d.ts +4 -4
- package/dist/esm/components/Handler/index.js +18 -8
- package/dist/esm/components/Input/index.d.ts +3 -1
- package/dist/esm/components/Input/index.js +9 -4
- package/dist/esm/components/JstItemSelect/index.d.ts +4 -2
- package/dist/esm/components/JstItemSelect/index.js +29 -24
- package/dist/esm/components/JstLogistics/index.d.ts +6 -3
- package/dist/esm/components/JstLogistics/index.js +19 -9
- package/dist/esm/components/JstSendGood/index.d.ts +3 -1
- package/dist/esm/components/JstSendGood/index.js +19 -9
- package/dist/esm/components/JstSupply/index.d.ts +3 -1
- package/dist/esm/components/JstSupply/index.js +19 -9
- package/dist/esm/components/Logistics/index.d.ts +9 -3
- 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 +59 -27
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +100 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +19 -7
- package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
- package/dist/esm/components/LogisticsInterception/index.d.ts +51 -8
- package/dist/esm/components/LogisticsInterception/index.js +37 -13
- package/dist/esm/components/MultSelect/index.d.ts +3 -2
- package/dist/esm/components/MultSelect/index.js +10 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +4 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +4 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
- package/dist/esm/components/Ordinary/index.d.ts +10 -4
- package/dist/esm/components/Ordinary/index.js +12 -5
- package/dist/esm/components/Payment/AlipayNick.d.ts +4 -2
- package/dist/esm/components/Payment/AlipayNick.js +13 -6
- package/dist/esm/components/Payment/AlipayNo.d.ts +4 -2
- package/dist/esm/components/Payment/AlipayNo.js +13 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +5 -3
- package/dist/esm/components/Payment/AlipayTime.js +11 -8
- package/dist/esm/components/Payment/BuyerNick.d.ts +4 -2
- package/dist/esm/components/Payment/BuyerNick.js +12 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +4 -2
- package/dist/esm/components/Payment/PaymentAmount.js +10 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +5 -3
- package/dist/esm/components/Payment/PaymentStatus.js +11 -5
- package/dist/esm/components/Payment/PaymentTid.d.ts +5 -3
- package/dist/esm/components/Payment/PaymentTid.js +10 -4
- package/dist/esm/components/Payment/index.d.ts +17 -5
- package/dist/esm/components/Payment/index.js +14 -3
- package/dist/esm/components/Picture/index.d.ts +3 -1
- package/dist/esm/components/Picture/index.js +8 -1
- package/dist/esm/components/PlatForm/index.d.ts +8 -3
- package/dist/esm/components/PlatForm/index.js +8 -3
- package/dist/esm/components/Radio/index.d.ts +6 -0
- package/dist/esm/components/Radio/index.js +11 -0
- package/dist/esm/components/Rate/index.d.ts +2 -0
- package/dist/esm/components/Rate/index.js +11 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -2
- package/dist/esm/components/ReceiverAddress/index.js +13 -3
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
- package/dist/esm/components/ReceiverMobile/index.js +9 -4
- package/dist/esm/components/ReceiverName/index.d.ts +3 -1
- package/dist/esm/components/ReceiverName/index.js +9 -4
- package/dist/esm/components/Remark/index.d.ts +6 -0
- 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 +3 -1
- package/dist/esm/components/Select/index.js +8 -3
- package/dist/esm/components/ShopInput/index.d.ts +4 -2
- package/dist/esm/components/ShopInput/index.js +9 -4
- package/dist/esm/components/ShopName/index.d.ts +4 -2
- package/dist/esm/components/ShopName/index.js +10 -5
- package/dist/esm/components/Submitter/index.d.ts +4 -2
- package/dist/esm/components/Submitter/index.js +7 -3
- package/dist/esm/components/SystemOrderNo/index.d.ts +6 -4
- package/dist/esm/components/SystemOrderNo/index.js +9 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +4 -2
- package/dist/esm/components/TemplateSelect/index.js +10 -5
- package/dist/esm/components/TextArea/index.d.ts +3 -1
- package/dist/esm/components/TextArea/index.js +9 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
- package/dist/esm/components/ThirdItemSelect/index.js +12 -8
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -1
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +4 -2
- package/dist/esm/components/TradeId/index.js +9 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
- 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 +19 -14
- package/package.json +10 -5
|
@@ -28,9 +28,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
28
28
|
_defineProperty(this, "expressCode", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "render", function () {
|
|
32
|
-
return null;
|
|
33
|
-
});
|
|
34
31
|
_defineProperty(this, "editRender", function (value) {
|
|
35
32
|
var _this$componentConfig, _this$componentConfig2;
|
|
36
33
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
@@ -50,6 +47,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
50
47
|
_defineProperty(this, "renderPc", function () {
|
|
51
48
|
return null;
|
|
52
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.name, ": ", _this.express.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.name, ": ", _this.expressCode.renderLog(r)));
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
|
+
return {
|
|
55
|
+
company: _this.express.getComponentValue(r),
|
|
56
|
+
order: _this.expressCode.getComponentValue(r)
|
|
57
|
+
};
|
|
58
|
+
});
|
|
53
59
|
_defineProperty(this, "renderExport", function () {
|
|
54
60
|
return null;
|
|
55
61
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
declare class PaymentTid implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
@@ -15,11 +15,19 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
15
15
|
originId: string;
|
|
16
16
|
addressDateInstance: AddressData;
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => {
|
|
22
|
+
province: any;
|
|
23
|
+
city: any;
|
|
24
|
+
district: any;
|
|
25
|
+
detail: any;
|
|
26
|
+
name: any;
|
|
27
|
+
mobile: any;
|
|
28
|
+
};
|
|
29
|
+
renderExport: (value: any, record: Record) => string | null;
|
|
30
|
+
editRender: () => React.JSX.Element;
|
|
31
|
+
filterConfig: () => never[];
|
|
24
32
|
}
|
|
25
33
|
export default PaymentTid;
|
|
@@ -5,12 +5,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from
|
|
9
|
-
import { ApaasInput } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from
|
|
13
|
-
import { AddressData } from
|
|
12
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
15
15
|
var _this = this;
|
|
16
16
|
_classCallCheck(this, PaymentTid);
|
|
@@ -26,39 +26,71 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
27
|
_defineProperty(this, "originId", void 0);
|
|
28
28
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
29
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
30
30
|
var _ref;
|
|
31
|
-
var
|
|
32
|
-
var
|
|
31
|
+
var province = record["".concat(_this.originId, "_interceptProvince")];
|
|
32
|
+
var city = record["".concat(_this.originId, "_interceptCity")];
|
|
33
|
+
var district = record["".concat(_this.originId, "_interceptDistrict")];
|
|
34
|
+
var detail = record["".concat(_this.originId, "_interceptDetail")];
|
|
33
35
|
var name = record["".concat(_this.originId, "_interceptReceiverName")];
|
|
34
36
|
var mobile = record["".concat(_this.originId, "_interceptReceiverMobile")];
|
|
35
|
-
var addressText = (_ref =
|
|
37
|
+
var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
36
38
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
37
|
-
}).join(
|
|
39
|
+
}).join("");
|
|
38
40
|
var hasValue = addressText || detail || name || mobile;
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
41
|
+
var value = hasValue ? /*#__PURE__*/React.createElement("div", null, [addressText, detail].join("/"), /*#__PURE__*/React.createElement("br", null), [name, mobile].join("/")) : null;
|
|
42
42
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
43
43
|
id: _this.id,
|
|
44
44
|
label: _this.name,
|
|
45
|
-
value:
|
|
45
|
+
value: value
|
|
46
46
|
}) : null;
|
|
47
47
|
});
|
|
48
48
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
|
|
49
|
+
var _ref2;
|
|
50
|
+
var province = record["".concat(_this.originId, "_interceptProvince")];
|
|
51
|
+
var city = record["".concat(_this.originId, "_interceptCity")];
|
|
52
|
+
var district = record["".concat(_this.originId, "_interceptDistrict")];
|
|
53
|
+
var detail = record["".concat(_this.originId, "_interceptDetail")];
|
|
54
|
+
var name = record["".concat(_this.originId, "_interceptReceiverName")];
|
|
55
|
+
var mobile = record["".concat(_this.originId, "_interceptReceiverMobile")];
|
|
56
|
+
if (province === undefined) {
|
|
50
57
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
51
58
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
var addressText = (_ref2 = [province, city, district]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (suffix) {
|
|
60
|
+
return _this.addressDateInstance.getNameByCode(suffix);
|
|
61
|
+
}).join("");
|
|
62
|
+
return /*#__PURE__*/React.createElement("span", null, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile));
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
65
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_interceptDetail")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_interceptReceiverName")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_interceptReceiverMobile")])) return null;
|
|
66
|
+
return _this.renderPc(undefined, r);
|
|
67
|
+
});
|
|
68
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
69
|
+
return {
|
|
70
|
+
province: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptProvince")],
|
|
71
|
+
city: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptCity")],
|
|
72
|
+
district: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDistrict")],
|
|
73
|
+
detail: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDetail")],
|
|
74
|
+
name: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverName")],
|
|
75
|
+
mobile: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverMobile")]
|
|
76
|
+
};
|
|
59
77
|
});
|
|
60
78
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
|
-
|
|
79
|
+
var _ref3;
|
|
80
|
+
var _this$getComponentVal = _this.getComponentValue(record),
|
|
81
|
+
province = _this$getComponentVal.province,
|
|
82
|
+
city = _this$getComponentVal.city,
|
|
83
|
+
district = _this$getComponentVal.district,
|
|
84
|
+
detail = _this$getComponentVal.detail,
|
|
85
|
+
name = _this$getComponentVal.name,
|
|
86
|
+
mobile = _this$getComponentVal.mobile;
|
|
87
|
+
if ([province, detail, name, mobile].every(function (item) {
|
|
88
|
+
return isNull(item);
|
|
89
|
+
})) return null;
|
|
90
|
+
var addressText = (_ref3 = [province, city, district]) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (suffix) {
|
|
91
|
+
return _this.addressDateInstance.getNameByCode(suffix);
|
|
92
|
+
}).join("");
|
|
93
|
+
return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
|
|
62
94
|
});
|
|
63
95
|
_defineProperty(this, "editRender", function () {
|
|
64
96
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -70,16 +102,16 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
70
102
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
71
103
|
});
|
|
72
104
|
});
|
|
73
|
-
_defineProperty(this, "filterConfig", function (
|
|
105
|
+
_defineProperty(this, "filterConfig", function () {
|
|
74
106
|
return [];
|
|
75
107
|
});
|
|
76
|
-
this.name =
|
|
77
|
-
this.id = "".concat(options.id, "
|
|
108
|
+
this.name = "派送地址";
|
|
109
|
+
this.id = "".concat(options.id, "_interceptProvince");
|
|
78
110
|
this.type = options.type;
|
|
79
111
|
this.componentConfig = options.componentConfig;
|
|
80
112
|
this.rules = [];
|
|
81
|
-
this.align =
|
|
82
|
-
this.width =
|
|
113
|
+
this.align = "left";
|
|
114
|
+
this.width = 350;
|
|
83
115
|
this.originId = options.id;
|
|
84
116
|
this.isCombinationComponent = false;
|
|
85
117
|
this.children = [];
|
|
@@ -0,0 +1,38 @@
|
|
|
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 InterceptStatus implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
parentId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
companyId: string;
|
|
9
|
+
type: string;
|
|
10
|
+
rules: any[];
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
|
+
align: ALignType;
|
|
14
|
+
width: number;
|
|
15
|
+
isCombinationComponent: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
expressInterceptInstance: ExpressInterceptData;
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
20
|
+
renderStatus: (record: any) => React.JSX.Element;
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
renderExport: (value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "MultipleSelect";
|
|
31
|
+
options: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export default InterceptStatus;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _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); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
9
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
13
|
+
var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, InterceptStatus);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "parentId", void 0);
|
|
18
|
+
_defineProperty(this, "id", void 0);
|
|
19
|
+
_defineProperty(this, "companyId", void 0);
|
|
20
|
+
_defineProperty(this, "type", void 0);
|
|
21
|
+
_defineProperty(this, "rules", void 0);
|
|
22
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
23
|
+
_defineProperty(this, "effects", void 0);
|
|
24
|
+
_defineProperty(this, "align", void 0);
|
|
25
|
+
_defineProperty(this, "width", void 0);
|
|
26
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
29
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
30
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
31
|
+
});
|
|
32
|
+
_defineProperty(this, "renderStatus", function (record) {
|
|
33
|
+
var _this$expressIntercep;
|
|
34
|
+
var interceptCode = "".concat(_this.parentId, "_interceptCode");
|
|
35
|
+
var interceptReceiverMobile = "".concat(_this.parentId, "_interceptReceiverMobile");
|
|
36
|
+
var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[_this.id])];
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", null, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
38
|
+
interceptCompany: record[_this.companyId],
|
|
39
|
+
interceptCode: record[interceptCode],
|
|
40
|
+
interceptReceiverMobile: record[interceptReceiverMobile]
|
|
41
|
+
}) : null);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
44
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
45
|
+
id: _this.id,
|
|
46
|
+
label: _this.name,
|
|
47
|
+
value: _this.renderStatus(record)
|
|
48
|
+
}) : null;
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
51
|
+
return _this.renderStatus(record);
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
54
|
+
var _this$expressIntercep2;
|
|
55
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
56
|
+
return (_this$expressIntercep2 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep2 === void 0 ? void 0 : _this$expressIntercep2[r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
59
|
+
var _this$expressIntercep3, _this$expressIntercep4;
|
|
60
|
+
return (_this$expressIntercep3 = (_this$expressIntercep4 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep4 === void 0 ? void 0 : _this$expressIntercep4["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep3 !== void 0 ? _this$expressIntercep3 : "--";
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "editRender", function () {
|
|
63
|
+
return null;
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
66
|
+
return {
|
|
67
|
+
type: item.type,
|
|
68
|
+
id: "".concat(item.id, "_interceptLogisticsStatus"),
|
|
69
|
+
name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
70
|
+
filterComponentType: "MultipleSelect",
|
|
71
|
+
options: _this.expressInterceptInstance.getStatusOptions() || [],
|
|
72
|
+
filterFn: function filterFn(value) {
|
|
73
|
+
return function (i) {
|
|
74
|
+
var _value$map, _value$map$flat;
|
|
75
|
+
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
76
|
+
return v === null || v === void 0 ? void 0 : v.split(",");
|
|
77
|
+
})) === 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, "interceptLogisticsStatus"));
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
this.name = "物流状态";
|
|
83
|
+
this.parentId = options.id;
|
|
84
|
+
this.id = "".concat(options.id, "_interceptLogisticsStatus");
|
|
85
|
+
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
86
|
+
this.type = options.type;
|
|
87
|
+
this.componentConfig = options.componentConfig;
|
|
88
|
+
this.rules = [];
|
|
89
|
+
this.align = "left";
|
|
90
|
+
this.width = 180;
|
|
91
|
+
this.isCombinationComponent = false;
|
|
92
|
+
this.children = [];
|
|
93
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
94
|
+
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//物流轨迹查询
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
export default InterceptStatus;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
3
|
-
import {
|
|
4
|
-
declare class
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
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
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderClient: (record: any) => 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,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
import InterceptAddress from "./InterceptAddress";
|
|
5
|
+
import InterceptType from "./InterceptType";
|
|
6
|
+
import InterceptStatus from "./InterceptStatus";
|
|
5
7
|
import Express from "../Express";
|
|
6
8
|
import ExpressCode from "../ExpressCode";
|
|
7
9
|
declare class Logistics implements ComponentInterface {
|
|
@@ -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
|
+
interceptLogisticsStatus: 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: InstanceType<typeof 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
|
+
interceptLogisticsStatus: 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;
|