@kmkf-fe-packages/services-components 0.25.0-alpha.0 → 0.25.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/BS/BsLogistics/index.d.ts +3 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
- package/dist/esm/constant.js +13 -12
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -3
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +4 -4
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +0 -31
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +0 -87
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +0 -45
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +0 -114
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +0 -43
- package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +0 -99
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +0 -5
- package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +0 -55
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -69
- package/dist/esm/components/LogisticsMoreInterception/index.js +0 -177
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +0 -39
- package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +0 -88
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +0 -34
- package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +0 -78
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +0 -35
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +0 -82
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +0 -35
- package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +0 -79
|
@@ -43,12 +43,13 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
43
43
|
};
|
|
44
44
|
filterFn: (value: string) => (i: Record) => any;
|
|
45
45
|
} | {
|
|
46
|
-
searchDefaultConditions: "
|
|
46
|
+
searchDefaultConditions: "in";
|
|
47
47
|
type: string;
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
|
-
filterComponentType: "
|
|
50
|
+
filterComponentType: "SelectInput";
|
|
51
51
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
52
|
+
formatFilterValue: (value: any) => any;
|
|
52
53
|
})[];
|
|
53
54
|
}
|
|
54
55
|
export default BsLogistics;
|
|
@@ -18,8 +18,8 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
21
|
-
dataType: ComponentInterface[
|
|
22
|
-
options: ComponentInterface[
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
22
|
+
options: ComponentInterface['options'];
|
|
23
23
|
constructor(options: PickOption);
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
@@ -116,7 +116,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
116
116
|
this.children = [];
|
|
117
117
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
118
118
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
119
|
-
this.dataType =
|
|
119
|
+
this.dataType = 'string';
|
|
120
120
|
this.options = this.expressInterceptInstance.getStatusOptions() || [];
|
|
121
121
|
}
|
|
122
122
|
|
package/dist/esm/constant.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export var SYMBOL = {
|
|
2
|
-
between:
|
|
3
|
-
eq:
|
|
4
|
-
like:
|
|
5
|
-
gt:
|
|
6
|
-
gte:
|
|
7
|
-
lt:
|
|
8
|
-
lte:
|
|
9
|
-
ne:
|
|
10
|
-
in:
|
|
11
|
-
nin:
|
|
12
|
-
non:
|
|
13
|
-
notnull:
|
|
2
|
+
between: 'between',
|
|
3
|
+
eq: 'eq',
|
|
4
|
+
like: 'like',
|
|
5
|
+
gt: 'gt',
|
|
6
|
+
gte: 'gte',
|
|
7
|
+
lt: 'lt',
|
|
8
|
+
lte: 'lte',
|
|
9
|
+
ne: 'ne',
|
|
10
|
+
in: 'in',
|
|
11
|
+
nin: 'nin',
|
|
12
|
+
non: 'non',
|
|
13
|
+
notnull: 'notnull'
|
|
14
14
|
};
|
|
15
15
|
export var batchInput = function batchInput(val) {
|
|
16
|
+
console.log('batchInput', val);
|
|
16
17
|
return val ? val.split(/[,|,|\s|\n|\rn]/).filter(function (t) {
|
|
17
18
|
return !!t;
|
|
18
19
|
}).map(function (t) {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ItemEnCode |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsReissue | BsSystemOrder | CompletedUser | ItemEnCode | FlowMarkSelect | FlowStatusSelect | FlowTag | Handler | JstSendGood | PlatForm | BasicPosting | ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsExchange | BsReturn | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
3
|
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
@@ -96,8 +96,6 @@ export var factory = function factory(type, options) {
|
|
|
96
96
|
return new SystemOrderNo(options);
|
|
97
97
|
case "LOGISTICS_INTERCEPTION":
|
|
98
98
|
return new LogisticsInterception(options);
|
|
99
|
-
case "LOGISTICS_INTERCEPTION_MORE":
|
|
100
|
-
return new LogisticsMoreInterception(options);
|
|
101
99
|
case "LOGISTICS_TRAJECTORY":
|
|
102
100
|
return new LogisticsTrajectory(options);
|
|
103
101
|
case "LOGISTICS_TRAJECTORY_MORE":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -49,7 +49,6 @@ export { default as FlowTag } from "./components/FlowTag";
|
|
|
49
49
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
50
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
52
|
-
export { default as LogisticsMoreInterception } from "./components/LogisticsMoreInterception";
|
|
53
52
|
export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
|
|
54
53
|
export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
|
|
55
54
|
export { default as PlatForm } from "./components/PlatForm";
|
package/dist/esm/index.js
CHANGED
|
@@ -49,7 +49,6 @@ export { default as FlowTag } from "./components/FlowTag";
|
|
|
49
49
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
50
50
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
51
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
52
|
-
export { default as LogisticsMoreInterception } from "./components/LogisticsMoreInterception";
|
|
53
52
|
export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
|
|
54
53
|
export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
|
|
55
54
|
export { default as PlatForm } from "./components/PlatForm";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.25.0-alpha.
|
|
3
|
+
"version": "0.25.0-alpha.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.25.0-alpha.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.25.0-alpha.3",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.24.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0746b0db23513d40fb7ee8a71672560bdb7c57ed",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
declare class PaymentTid implements ComponentInterface {
|
|
5
|
-
name: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
effects: ComponentInterface["effects"];
|
|
12
|
-
align: ALignType;
|
|
13
|
-
width: number;
|
|
14
|
-
isCombinationComponent: boolean;
|
|
15
|
-
formField: string;
|
|
16
|
-
canSort: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
|
-
originId: string;
|
|
19
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
dataType: ComponentInterface["dataType"];
|
|
21
|
-
constructor(options: PickOption);
|
|
22
|
-
renderAddress: (record: any) => React.JSX.Element;
|
|
23
|
-
renderClient: () => null;
|
|
24
|
-
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
25
|
-
renderLog: (r: Record) => null;
|
|
26
|
-
getComponentValue: (r: Record) => null;
|
|
27
|
-
renderExport: (value: any, record: Record) => any;
|
|
28
|
-
editRender: () => null;
|
|
29
|
-
filterConfig: () => never[];
|
|
30
|
-
}
|
|
31
|
-
export default PaymentTid;
|
|
@@ -1,87 +0,0 @@
|
|
|
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, PaymentTid);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "id", void 0);
|
|
16
|
-
_defineProperty(this, "sortField", void 0);
|
|
17
|
-
_defineProperty(this, "type", void 0);
|
|
18
|
-
_defineProperty(this, "rules", void 0);
|
|
19
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
-
_defineProperty(this, "effects", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "formField", void 0);
|
|
25
|
-
_defineProperty(this, "canSort", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "originId", void 0);
|
|
28
|
-
_defineProperty(this, "addressDateInstance", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "renderAddress", function (record) {
|
|
31
|
-
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
|
|
32
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
33
|
-
var _item$interceptAddres;
|
|
34
|
-
var addressText = (_item$interceptAddres = item.interceptAddress) === null || _item$interceptAddres === void 0 ? void 0 : _item$interceptAddres.map(function (suffix) {
|
|
35
|
-
return _this.addressDateInstance.getNameByCode(suffix);
|
|
36
|
-
}).join("");
|
|
37
|
-
return /*#__PURE__*/React.createElement("div", null, logisticsInterceptList.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", addressText, item.interceptDetail, item.interceptReceiverName, item.interceptReceiverMobile);
|
|
38
|
-
}));
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderClient", function () {
|
|
41
|
-
return null;
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
44
|
-
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")];
|
|
45
|
-
return !isNull(logisticsInterceptList) ? _this.renderAddress(record) : null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
-
return null;
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
|
-
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
|
|
55
|
-
return logisticsInterceptList.reduce(function (prv, item) {
|
|
56
|
-
var _item$interceptAddres2;
|
|
57
|
-
var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
|
|
58
|
-
return _this.addressDateInstance.getNameByCode(suffix);
|
|
59
|
-
}).join("");
|
|
60
|
-
prv.push("".concat(addressText).concat(item.interceptDetail, "\n ").concat(item.interceptReceiverName, "\n ").concat(item.interceptReceiverMobile));
|
|
61
|
-
return prv;
|
|
62
|
-
}, []).split(",");
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(this, "editRender", function () {
|
|
65
|
-
return null;
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "filterConfig", function () {
|
|
68
|
-
return [];
|
|
69
|
-
});
|
|
70
|
-
this.name = "派送地址";
|
|
71
|
-
this.id = "".concat(options.id);
|
|
72
|
-
this.sortField = "".concat(options.id);
|
|
73
|
-
this.formField = "".concat(options.id);
|
|
74
|
-
this.type = options.type;
|
|
75
|
-
this.componentConfig = options.componentConfig;
|
|
76
|
-
this.rules = [];
|
|
77
|
-
this.align = "left";
|
|
78
|
-
this.width = 350;
|
|
79
|
-
this.originId = options.id;
|
|
80
|
-
this.isCombinationComponent = false;
|
|
81
|
-
this.canSort = false;
|
|
82
|
-
this.dataType = "object";
|
|
83
|
-
this.children = [];
|
|
84
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
85
|
-
this.addressDateInstance = AddressData.getInstance();
|
|
86
|
-
});
|
|
87
|
-
export default PaymentTid;
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
sortField: string;
|
|
9
|
-
companyId: string;
|
|
10
|
-
type: string;
|
|
11
|
-
rules: any[];
|
|
12
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
effects: ComponentInterface["effects"];
|
|
14
|
-
align: ALignType;
|
|
15
|
-
width: number;
|
|
16
|
-
isCombinationComponent: boolean;
|
|
17
|
-
formField: string;
|
|
18
|
-
canSort: boolean;
|
|
19
|
-
children: ComponentInterface[];
|
|
20
|
-
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
21
|
-
dataType: ComponentInterface["dataType"];
|
|
22
|
-
options: ComponentInterface["options"];
|
|
23
|
-
constructor(options: PickOption);
|
|
24
|
-
getComponentValue: (r: Record) => any;
|
|
25
|
-
renderStatus: (record: any, w?: number) => React.JSX.Element;
|
|
26
|
-
renderClient: () => null;
|
|
27
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
28
|
-
renderLog: () => null;
|
|
29
|
-
renderExport: (value: any, record: Record) => any;
|
|
30
|
-
editRender: () => null;
|
|
31
|
-
filterConfig: (item: ColumnConfig) => {
|
|
32
|
-
searchDefaultConditions: "in";
|
|
33
|
-
type: string;
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
filterComponentType: "MultipleSelect";
|
|
37
|
-
props: {
|
|
38
|
-
options: {
|
|
39
|
-
label: string;
|
|
40
|
-
value: string;
|
|
41
|
-
}[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export default InterceptStatus;
|
|
@@ -1,114 +0,0 @@
|
|
|
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 { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
11
|
-
import { SYMBOL } from "../../constant";
|
|
12
|
-
var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
_classCallCheck(this, InterceptStatus);
|
|
15
|
-
_defineProperty(this, "name", void 0);
|
|
16
|
-
_defineProperty(this, "parentId", void 0);
|
|
17
|
-
_defineProperty(this, "id", void 0);
|
|
18
|
-
_defineProperty(this, "sortField", 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, "formField", void 0);
|
|
28
|
-
_defineProperty(this, "canSort", void 0);
|
|
29
|
-
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "options", void 0);
|
|
33
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (item) {
|
|
35
|
-
return _this.expressInterceptInstance.getStatusNameMap()[item];
|
|
36
|
-
}).join(",");
|
|
37
|
-
});
|
|
38
|
-
_defineProperty(this, "renderStatus", function (record) {
|
|
39
|
-
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
40
|
-
var logisticsInterceptList = record["".concat(_this.parentId, "_logisticsInterceptList")] || [];
|
|
41
|
-
return /*#__PURE__*/React.createElement("div", null, logisticsInterceptList.map(function (item, index) {
|
|
42
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
onClick: function onClick(e) {
|
|
44
|
-
return e.stopPropagation();
|
|
45
|
-
}
|
|
46
|
-
}, logisticsInterceptList.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", ":", /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
47
|
-
modelWidth: w,
|
|
48
|
-
interceptCompany: item.interceptCompany,
|
|
49
|
-
interceptCode: item.interceptCode,
|
|
50
|
-
interceptSenderMobile: item.interceptSenderMobile
|
|
51
|
-
}));
|
|
52
|
-
}));
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(this, "renderClient", function () {
|
|
55
|
-
return null;
|
|
56
|
-
});
|
|
57
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
58
|
-
return _this.renderStatus(record, 700);
|
|
59
|
-
});
|
|
60
|
-
_defineProperty(this, "renderLog", function () {
|
|
61
|
-
return null;
|
|
62
|
-
});
|
|
63
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
64
|
-
var _this$getComponentVal;
|
|
65
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "editRender", function () {
|
|
68
|
-
return null;
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
71
|
-
return {
|
|
72
|
-
searchDefaultConditions: SYMBOL.in,
|
|
73
|
-
type: item.type,
|
|
74
|
-
id: "".concat(item.id, "_logisticsInterceptStatusList"),
|
|
75
|
-
name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
76
|
-
filterComponentType: "MultipleSelect",
|
|
77
|
-
props: {
|
|
78
|
-
options: _this.expressInterceptInstance.getStatusOptions() || []
|
|
79
|
-
}
|
|
80
|
-
// formatFilterValue: (value: string[]) =>
|
|
81
|
-
// value?.map((v) => v?.split(","))?.flat(),
|
|
82
|
-
// filterFn: (value: string[]) => (i: Record) =>
|
|
83
|
-
// value
|
|
84
|
-
// ?.map((v) => v?.split(","))
|
|
85
|
-
// ?.flat()
|
|
86
|
-
// ?.includes(
|
|
87
|
-
// filterFn.filterTableListItemColumnValue(
|
|
88
|
-
// i,
|
|
89
|
-
// item.id,
|
|
90
|
-
// "interceptLogisticsStatus"
|
|
91
|
-
// )
|
|
92
|
-
// ),
|
|
93
|
-
};
|
|
94
|
-
});
|
|
95
|
-
this.name = "物流状态";
|
|
96
|
-
this.parentId = options.id;
|
|
97
|
-
this.id = "".concat(options.id, "_logisticsInterceptStatusList");
|
|
98
|
-
this.sortField = "".concat(options.id, "_logisticsInterceptStatusList");
|
|
99
|
-
this.formField = "".concat(options.id, "_logisticsInterceptStatusList");
|
|
100
|
-
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
101
|
-
this.type = options.type;
|
|
102
|
-
this.componentConfig = options.componentConfig;
|
|
103
|
-
this.rules = [];
|
|
104
|
-
this.align = "left";
|
|
105
|
-
this.width = 220;
|
|
106
|
-
this.isCombinationComponent = false;
|
|
107
|
-
this.canSort = true;
|
|
108
|
-
this.children = [];
|
|
109
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
110
|
-
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
111
|
-
this.dataType = "string";
|
|
112
|
-
this.options = this.expressInterceptInstance.getStatusOptions() || [];
|
|
113
|
-
});
|
|
114
|
-
export default InterceptStatus;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
name: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
effects: ComponentInterface["effects"];
|
|
12
|
-
align: ALignType;
|
|
13
|
-
width: number;
|
|
14
|
-
isCombinationComponent: boolean;
|
|
15
|
-
formField: string;
|
|
16
|
-
canSort: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
|
-
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
19
|
-
dataType: ComponentInterface["dataType"];
|
|
20
|
-
options: ComponentInterface["options"];
|
|
21
|
-
constructor(options: PickOption);
|
|
22
|
-
renderType: (record: any) => React.JSX.Element;
|
|
23
|
-
getComponentValue: (r: Record) => any;
|
|
24
|
-
renderClient: () => null;
|
|
25
|
-
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
26
|
-
renderLog: () => null;
|
|
27
|
-
renderExport: (value: any, record: Record) => any;
|
|
28
|
-
editRender: () => null;
|
|
29
|
-
filterConfig: (item: ColumnConfig) => {
|
|
30
|
-
searchDefaultConditions: "in";
|
|
31
|
-
type: string;
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
filterComponentType: "MultipleSelect";
|
|
35
|
-
props: {
|
|
36
|
-
options: {
|
|
37
|
-
label: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export default InterceptType;
|
|
@@ -1,99 +0,0 @@
|
|
|
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
import { SYMBOL } from "../../constant";
|
|
12
|
-
var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
_classCallCheck(this, InterceptType);
|
|
15
|
-
_defineProperty(this, "name", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "sortField", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "effects", void 0);
|
|
22
|
-
_defineProperty(this, "align", void 0);
|
|
23
|
-
_defineProperty(this, "width", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "formField", void 0);
|
|
26
|
-
_defineProperty(this, "canSort", void 0);
|
|
27
|
-
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "options", void 0);
|
|
31
|
-
_defineProperty(this, "renderType", function (record) {
|
|
32
|
-
var logisticsInterceptTypeList = record[_this.id] || [];
|
|
33
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptTypeList.map(function (item, index) {
|
|
34
|
-
var _this$expressIntercep;
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", null, logisticsInterceptTypeList.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", ":", (_this$expressIntercep = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item]);
|
|
36
|
-
}));
|
|
37
|
-
});
|
|
38
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
-
return r === null || r === void 0 ? void 0 : r[_this.id].map(function (t) {
|
|
40
|
-
var _this$expressIntercep2;
|
|
41
|
-
return (_this$expressIntercep2 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep2 === void 0 ? void 0 : _this$expressIntercep2[t];
|
|
42
|
-
}).join(",");
|
|
43
|
-
});
|
|
44
|
-
_defineProperty(this, "renderClient", function () {
|
|
45
|
-
return null;
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
if (!isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
|
|
49
|
-
return _this.renderType(record);
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderLog", function () {
|
|
52
|
-
return null;
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
|
-
var _this$getComponentVal;
|
|
56
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "editRender", function () {
|
|
59
|
-
return null;
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
-
return {
|
|
63
|
-
searchDefaultConditions: SYMBOL.in,
|
|
64
|
-
type: item.type,
|
|
65
|
-
id: "".concat(item.id, "_logisticsInterceptTypeList"),
|
|
66
|
-
name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
|
|
67
|
-
filterComponentType: "MultipleSelect",
|
|
68
|
-
props: {
|
|
69
|
-
options: _this.expressInterceptInstance.getTypeOptions() || []
|
|
70
|
-
}
|
|
71
|
-
// formatFilterValue: (value: string[]) =>
|
|
72
|
-
// value?.map((v) => v?.split(","))?.flat(),
|
|
73
|
-
// filterFn: (value: string[]) => (i: Record) =>
|
|
74
|
-
// value
|
|
75
|
-
// ?.map((v) => v?.split(","))
|
|
76
|
-
// ?.flat()
|
|
77
|
-
// ?.includes(
|
|
78
|
-
// filterFn.filterTableListItemColumnValue(i, item.id, "interceptType")
|
|
79
|
-
// ),
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
this.name = "拦截类型";
|
|
83
|
-
this.id = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
84
|
-
this.sortField = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
85
|
-
this.formField = "".concat(options.id, "_logisticsInterceptTypeList");
|
|
86
|
-
this.type = options.type;
|
|
87
|
-
this.componentConfig = options.componentConfig;
|
|
88
|
-
this.rules = [];
|
|
89
|
-
this.align = "left";
|
|
90
|
-
this.width = 200;
|
|
91
|
-
this.isCombinationComponent = false;
|
|
92
|
-
this.canSort = true;
|
|
93
|
-
this.children = [];
|
|
94
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
95
|
-
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
96
|
-
this.dataType = "string";
|
|
97
|
-
this.options = this.expressInterceptInstance.getTypeOptions() || [];
|
|
98
|
-
});
|
|
99
|
-
export default InterceptType;
|