@kmkf-fe-packages/services-components 0.7.14-alpha.5 → 0.7.15-alpha.0
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/OperationLog/index.js +3 -1
- package/dist/esm/components/ActualPayment/index.d.ts +5 -3
- package/dist/esm/components/ActualPayment/index.js +38 -17
- package/dist/esm/components/BsLogistics/index.d.ts +50 -0
- package/dist/esm/components/BsLogistics/index.js +115 -0
- package/dist/esm/components/BsSendGood/index.d.ts +25 -0
- package/dist/esm/components/BsSendGood/index.js +116 -0
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +4 -4
- package/dist/esm/components/CommonDataTime/index.js +13 -13
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/File/index.d.ts +33 -0
- package/dist/esm/components/File/index.js +117 -0
- package/dist/esm/components/FlowStatusSelect/index.js +5 -8
- package/dist/esm/components/Input/index.d.ts +3 -3
- package/dist/esm/components/Input/index.js +28 -14
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/PostIng/index.d.ts +33 -0
- package/dist/esm/components/PostIng/index.js +144 -0
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -5
- package/dist/esm/components/TradeDateTime/index.js +28 -33
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +65 -51
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/type.d.ts +20 -3
- package/package.json +4 -4
|
@@ -6,13 +6,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
import React from
|
|
10
|
-
import moment from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import moment from "moment";
|
|
11
11
|
import { DateTime } from "../DataTime";
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
|
+
var typeMap = {
|
|
17
|
+
TRADE_CREATE_DATETIME: "tradeCreateDateTime",
|
|
18
|
+
TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
|
|
19
|
+
TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
|
|
20
|
+
TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
|
|
21
|
+
BS_SIGNING_TIME: "bsSigningTime",
|
|
22
|
+
BS_SEND_TIME: "bsSendTime",
|
|
23
|
+
BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
|
|
24
|
+
};
|
|
16
25
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
17
26
|
var _this = this;
|
|
18
27
|
_classCallCheck(this, BasicDataTime);
|
|
@@ -31,7 +40,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
31
40
|
_defineProperty(this, "dataType", void 0);
|
|
32
41
|
_defineProperty(this, "format", void 0);
|
|
33
42
|
_defineProperty(this, "render", function (value) {
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join(
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join("~") : /*#__PURE__*/React.createElement("span", null, value));
|
|
35
44
|
});
|
|
36
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -43,7 +52,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
43
52
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
44
53
|
var _record;
|
|
45
54
|
var type = _this.type;
|
|
46
|
-
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 :
|
|
55
|
+
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 : "--");
|
|
47
56
|
});
|
|
48
57
|
_defineProperty(this, "renderLog", function (r) {
|
|
49
58
|
var type = _this.type;
|
|
@@ -52,18 +61,12 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
52
61
|
});
|
|
53
62
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
63
|
var type = _this.type;
|
|
55
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(
|
|
64
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
56
65
|
});
|
|
57
66
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
58
67
|
var _record2;
|
|
59
68
|
var type = _this.type;
|
|
60
|
-
|
|
61
|
-
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
62
|
-
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
63
|
-
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
64
|
-
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime'
|
|
65
|
-
};
|
|
66
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(map[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
69
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
67
70
|
});
|
|
68
71
|
_defineProperty(this, "editRender", function (p) {
|
|
69
72
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -79,18 +82,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
79
82
|
});
|
|
80
83
|
});
|
|
81
84
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
82
|
-
|
|
83
|
-
return 'tradeClosingDateTime';
|
|
84
|
-
}
|
|
85
|
-
if (type === 'TRADE_CREATE_DATETIME') {
|
|
86
|
-
return 'tradeCreateDateTime';
|
|
87
|
-
}
|
|
88
|
-
if (type === 'TRADE_PAYMENT_DATETIME') {
|
|
89
|
-
return 'tradePaymentDateTime';
|
|
90
|
-
}
|
|
91
|
-
if (type === 'TRADE_DELIVERY_DATETIME') {
|
|
92
|
-
return 'tradeDeliveryDateTime';
|
|
93
|
-
}
|
|
85
|
+
return typeMap[type];
|
|
94
86
|
});
|
|
95
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
96
88
|
var key = _this.getKeyByComponentType(item.type);
|
|
@@ -101,7 +93,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
101
93
|
// 过滤组件id
|
|
102
94
|
name: item.name,
|
|
103
95
|
// 过滤组件名称
|
|
104
|
-
filterComponentType:
|
|
96
|
+
filterComponentType: "Date",
|
|
105
97
|
filterFn: function filterFn(value) {
|
|
106
98
|
return function (i) {
|
|
107
99
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
@@ -111,7 +103,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
111
103
|
formatFilterValue: function formatFilterValue(val) {
|
|
112
104
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
113
105
|
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
114
|
-
return moment(v).startOf(
|
|
106
|
+
return moment(v).startOf("second").valueOf();
|
|
115
107
|
});
|
|
116
108
|
}
|
|
117
109
|
}
|
|
@@ -123,18 +115,21 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
123
115
|
this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
|
|
124
116
|
this.type = options.type;
|
|
125
117
|
this.showContains = false;
|
|
126
|
-
this.dataType =
|
|
127
|
-
this.format =
|
|
118
|
+
this.dataType = "string";
|
|
119
|
+
this.format = "dateTime";
|
|
128
120
|
this.componentConfig = options.componentConfig;
|
|
129
121
|
this.rules = [];
|
|
130
122
|
this.isCombinationComponent = false;
|
|
131
123
|
this.canSort = true;
|
|
132
124
|
this.children = [];
|
|
133
125
|
this.dataMap = {
|
|
134
|
-
TRADE_CREATE_DATETIME:
|
|
135
|
-
TRADE_PAYMENT_DATETIME:
|
|
136
|
-
TRADE_DELIVERY_DATETIME:
|
|
137
|
-
TRADE_CLOSING_DATETIME:
|
|
126
|
+
TRADE_CREATE_DATETIME: "tradeCreateDateTime",
|
|
127
|
+
TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
|
|
128
|
+
TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
|
|
129
|
+
TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
|
|
130
|
+
BS_SIGNING_TIME: "bsSigningTime",
|
|
131
|
+
BS_SEND_TIME: "bsSendTime",
|
|
132
|
+
BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
|
|
138
133
|
};
|
|
139
134
|
});
|
|
140
135
|
export default BasicDataTime;
|
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, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception } from
|
|
2
|
-
import { PickOption } from
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, BsSendGood, BsLogistics } from "./index";
|
|
2
|
+
import { PickOption } from "./type";
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSendGood | BsLogistics | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,104 +1,118 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception } from "./index";
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, BsSendGood, BsLogistics } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
5
|
-
case
|
|
5
|
+
case "PLATFORM_INPUT":
|
|
6
6
|
return new PlatForm();
|
|
7
|
-
case
|
|
7
|
+
case "SHOP_INPUT":
|
|
8
8
|
return new ShopInput(options);
|
|
9
|
-
case
|
|
9
|
+
case "OPERATOR_INPUT":
|
|
10
10
|
return new Submitter(options);
|
|
11
|
-
case
|
|
11
|
+
case "HANDLER_INPUT":
|
|
12
12
|
return new Handler(options);
|
|
13
|
-
case
|
|
13
|
+
case "COMPLETED_USER_INPUT":
|
|
14
14
|
return new CompletedUser(options);
|
|
15
|
-
case
|
|
15
|
+
case "INPUT":
|
|
16
16
|
return new BasicInput(options);
|
|
17
|
-
case
|
|
17
|
+
case "RADIO":
|
|
18
18
|
return new BasicRadio(options);
|
|
19
|
-
case
|
|
19
|
+
case "TEXTAREA":
|
|
20
20
|
return new BasicTextArea(options);
|
|
21
|
-
case
|
|
21
|
+
case "CHECKBOX":
|
|
22
22
|
return new BasicCheckbox(options);
|
|
23
|
-
case
|
|
23
|
+
case "DATETIME":
|
|
24
24
|
return new BasicDataTime(options);
|
|
25
|
-
case
|
|
25
|
+
case "SELECT":
|
|
26
26
|
return new BasicSelect(options);
|
|
27
|
-
case
|
|
27
|
+
case "PICTURE":
|
|
28
28
|
return new BasicPicture(options);
|
|
29
|
-
case
|
|
29
|
+
case "BASIC_MULT_SELECT":
|
|
30
30
|
return new BasicMultSelect(options);
|
|
31
|
-
case
|
|
31
|
+
case "MULT_SELECT":
|
|
32
32
|
return new BasicCascader(options);
|
|
33
|
-
case
|
|
33
|
+
case "BASIC_ADDRESS":
|
|
34
34
|
return new BasicAddress(options);
|
|
35
|
-
case
|
|
35
|
+
case "BASIC_GRADE":
|
|
36
36
|
return new BasicGrade(options);
|
|
37
|
-
case
|
|
37
|
+
case "RATE":
|
|
38
38
|
return new BasicRate(options);
|
|
39
|
-
case
|
|
39
|
+
case "FILE":
|
|
40
|
+
return new BasicFile(options);
|
|
41
|
+
case "POSTING":
|
|
42
|
+
return new BasicPosting(options);
|
|
43
|
+
case "SHOP_NAME_INPUT":
|
|
40
44
|
return new ShopName(options);
|
|
41
|
-
case
|
|
45
|
+
case "TRADE_ID_INPUT":
|
|
42
46
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
43
|
-
case
|
|
47
|
+
case "BUYER_NICK_INPUT":
|
|
44
48
|
return new BuyerNick(options);
|
|
45
|
-
case
|
|
49
|
+
case "RECEIVER_NAME_INPUT":
|
|
46
50
|
return new ReceiverName(options);
|
|
47
|
-
case
|
|
51
|
+
case "RECEIVER_MOBILE_INPUT":
|
|
48
52
|
return new ReceiverMobile(options);
|
|
49
|
-
case
|
|
53
|
+
case "RECEIVER_ADDRESS_INPUT":
|
|
50
54
|
return new ReceiverAddress(options);
|
|
51
|
-
case
|
|
52
|
-
case
|
|
53
|
-
case
|
|
54
|
-
case
|
|
55
|
+
case "TRADE_CREATE_DATETIME":
|
|
56
|
+
case "TRADE_PAYMENT_DATETIME":
|
|
57
|
+
case "TRADE_DELIVERY_DATETIME":
|
|
58
|
+
case "TRADE_CLOSING_DATETIME":
|
|
59
|
+
case "BS_SIGNING_TIME":
|
|
60
|
+
case "BS_SEND_TIME":
|
|
61
|
+
case "BS_TRADE_PAYMENT_TIME":
|
|
55
62
|
return new TradeDateTime(options);
|
|
56
|
-
case
|
|
63
|
+
case "EXPRESS_LOGISTICS_SELECT":
|
|
57
64
|
return new Logistics(options);
|
|
58
|
-
case
|
|
65
|
+
case "BS_LOGISTICS":
|
|
66
|
+
return new BsLogistics(options);
|
|
67
|
+
case "RETURN_LOGISTICS_SELECT":
|
|
59
68
|
return new ReturnLogistics(options);
|
|
60
|
-
case
|
|
69
|
+
case "ACTUAL_PAYMENT":
|
|
70
|
+
case "BS_NET_RECEIPTS":
|
|
71
|
+
case "BS_DEPOSIT":
|
|
72
|
+
case "BS_PACKAGE_WEIGHT":
|
|
61
73
|
return new ActualPayment(options);
|
|
62
|
-
case
|
|
74
|
+
case "REMARK_INPUT":
|
|
63
75
|
return new ERemark(options);
|
|
64
|
-
case
|
|
76
|
+
case "ITEM_SELECT":
|
|
65
77
|
return new ItemSelect(options);
|
|
66
|
-
case
|
|
78
|
+
case "ITEM_ID":
|
|
67
79
|
return new ItemId(options);
|
|
68
|
-
case
|
|
80
|
+
case "ITEM_ENCODE":
|
|
69
81
|
return new ItemEnCode(options);
|
|
70
|
-
case
|
|
82
|
+
case "ALI_PAY_INPUT":
|
|
71
83
|
return new AliPay(options);
|
|
72
|
-
case
|
|
84
|
+
case "ORDINARY_INVOICE":
|
|
73
85
|
return new Ordinary(options);
|
|
74
|
-
case
|
|
86
|
+
case "ITEM_SELECT_THIRD":
|
|
75
87
|
return new ThirdItemSelect(options);
|
|
76
|
-
case
|
|
88
|
+
case "ENTERPRISE_PAYMENT":
|
|
77
89
|
return new Payment(options);
|
|
78
|
-
case
|
|
90
|
+
case "SYSTEM_ORDER_NO":
|
|
79
91
|
return new SystemOrderNo(options);
|
|
80
|
-
case
|
|
92
|
+
case "LOGISTICS_INTERCEPTION":
|
|
81
93
|
return new LogisticsInterception(options);
|
|
82
|
-
case
|
|
94
|
+
case "WORK_ORDER_ID_INPUT":
|
|
83
95
|
return new WorkOrderId(options);
|
|
84
|
-
case
|
|
96
|
+
case "FLOW_STATUS_SELECT":
|
|
85
97
|
return new FlowStatusSelect(options);
|
|
86
|
-
case
|
|
98
|
+
case "COMPLETED_DATETIME":
|
|
87
99
|
return new CommonDataTime(options);
|
|
88
|
-
case
|
|
100
|
+
case "CREATED_DATETIME":
|
|
89
101
|
return new CommonDataTime(options);
|
|
90
|
-
case
|
|
102
|
+
case "UPDATE_DATETIME":
|
|
91
103
|
return new CommonDataTime(options);
|
|
92
|
-
case
|
|
104
|
+
case "TEMPLATE_ID_INPUT":
|
|
93
105
|
return new TemplateSelect(options);
|
|
94
|
-
case
|
|
106
|
+
case "JST_LOGISTICS":
|
|
95
107
|
return new JstLogistics(options);
|
|
96
|
-
case
|
|
108
|
+
case "JST_ITEM_SELECT_THIRD":
|
|
97
109
|
return new JstItemSelect(options);
|
|
98
|
-
case
|
|
110
|
+
case "JST_SUPPLY":
|
|
99
111
|
return new JstSupply(options);
|
|
100
|
-
case
|
|
112
|
+
case "JST_SEND_GOOD":
|
|
101
113
|
return new JstSendGood(options);
|
|
114
|
+
case "BS_SEND_GOOD":
|
|
115
|
+
return new BsSendGood(options);
|
|
102
116
|
default:
|
|
103
117
|
return new BasicInput(options);
|
|
104
118
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { default as BasicPicture } from "./components/Picture";
|
|
|
10
10
|
export { default as BasicMultSelect } from "./components/MultSelect";
|
|
11
11
|
export { default as BasicGrade } from "./components/Grade";
|
|
12
12
|
export { default as BasicRate } from "./components/Rate";
|
|
13
|
+
export { default as BasicFile } from "./components/File";
|
|
14
|
+
export { default as BasicPosting } from "./components/Posting";
|
|
13
15
|
export { default as CommonDataTime } from "./components/CommonDataTime";
|
|
14
16
|
export { default as TradeId } from "./components/TradeId";
|
|
15
17
|
export { default as ErpTradeId } from "./components/ErpTradeId";
|
|
@@ -35,6 +37,8 @@ export { default as JstLogistics } from "./components/JstLogistics";
|
|
|
35
37
|
export { default as JstItemSelect } from "./components/JstItemSelect";
|
|
36
38
|
export { default as JstSendGood } from "./components/JstSendGood";
|
|
37
39
|
export { default as JstSupply } from "./components/JstSupply";
|
|
40
|
+
export { default as BsSendGood } from "./components/BsSendGood";
|
|
41
|
+
export { default as BsLogistics } from "./components/BsLogistics";
|
|
38
42
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
43
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
44
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
package/dist/esm/index.js
CHANGED
|
@@ -10,6 +10,8 @@ export { default as BasicPicture } from "./components/Picture";
|
|
|
10
10
|
export { default as BasicMultSelect } from "./components/MultSelect";
|
|
11
11
|
export { default as BasicGrade } from "./components/Grade";
|
|
12
12
|
export { default as BasicRate } from "./components/Rate";
|
|
13
|
+
export { default as BasicFile } from "./components/File";
|
|
14
|
+
export { default as BasicPosting } from "./components/Posting";
|
|
13
15
|
export { default as CommonDataTime } from "./components/CommonDataTime";
|
|
14
16
|
export { default as TradeId } from "./components/TradeId";
|
|
15
17
|
export { default as ErpTradeId } from "./components/ErpTradeId";
|
|
@@ -35,6 +37,8 @@ export { default as JstLogistics } from "./components/JstLogistics";
|
|
|
35
37
|
export { default as JstItemSelect } from "./components/JstItemSelect";
|
|
36
38
|
export { default as JstSendGood } from "./components/JstSendGood";
|
|
37
39
|
export { default as JstSupply } from "./components/JstSupply";
|
|
40
|
+
export { default as BsSendGood } from "./components/BsSendGood";
|
|
41
|
+
export { default as BsLogistics } from "./components/BsLogistics";
|
|
38
42
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
43
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
44
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormInstance } from "antd";
|
|
3
|
-
import { SYMBOL } from
|
|
3
|
+
import { SYMBOL } from "./constant";
|
|
4
4
|
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
5
5
|
export declare type ALignType = "left" | "right" | "center";
|
|
6
6
|
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
@@ -32,8 +32,8 @@ export interface ComponentInterface {
|
|
|
32
32
|
rules?: any[];
|
|
33
33
|
width?: number;
|
|
34
34
|
align?: ALignType;
|
|
35
|
-
dataType:
|
|
36
|
-
format?:
|
|
35
|
+
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
36
|
+
format?: "dateTime" | "date" | "time";
|
|
37
37
|
options?: Array<any>;
|
|
38
38
|
/**
|
|
39
39
|
* @description 组件下标
|
|
@@ -96,6 +96,14 @@ export interface ComponentInterface {
|
|
|
96
96
|
* @description 输入框是否是数字类型
|
|
97
97
|
*/
|
|
98
98
|
isNumber?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @description 输入框是否是邮箱
|
|
101
|
+
*/
|
|
102
|
+
isMail?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @description 输入框是否是手机号
|
|
105
|
+
*/
|
|
106
|
+
isPhone?: boolean;
|
|
99
107
|
/**
|
|
100
108
|
* @description 多行文本初始值
|
|
101
109
|
*/
|
|
@@ -178,12 +186,21 @@ export interface ComponentInterface {
|
|
|
178
186
|
* @returns
|
|
179
187
|
*/
|
|
180
188
|
renderExport: (value: any, record: Record) => string | number | undefined | null;
|
|
189
|
+
/**
|
|
190
|
+
* 编辑渲染
|
|
191
|
+
*/
|
|
181
192
|
editRender: (p?: {
|
|
182
193
|
formItemIndex?: number;
|
|
183
194
|
onBlur?: (p1: any, p2: any) => void;
|
|
184
195
|
hidden?: false;
|
|
185
196
|
}) => JSX.Element | null;
|
|
197
|
+
/**
|
|
198
|
+
* 过滤条件配置组件(废弃)
|
|
199
|
+
*/
|
|
186
200
|
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
201
|
+
/**
|
|
202
|
+
* 获取组件值 cUztapBEyd_input
|
|
203
|
+
*/
|
|
187
204
|
getComponentValue: (r: Record) => any;
|
|
188
205
|
formDataTransform?: (r: any) => any;
|
|
189
206
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.15-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.7.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.0",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d4b347ccc78afe1ac7f89f12655ce72fdfabb0f6"
|
|
44
44
|
}
|