@kmkf-fe-packages/services-components 0.21.4-alpha.5 → 0.21.4
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/Payment/PaymentAmount.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentAmount.js +0 -5
- package/dist/esm/components/Payment/index.d.ts +2 -2
- package/dist/esm/components/Payment/index.js +1 -3
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +14 -14
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
-
formDataTransform: (value: string) => string;
|
|
40
39
|
}
|
|
41
40
|
export default PaymentAmount;
|
|
@@ -130,11 +130,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
});
|
|
133
|
-
_defineProperty(this, "formDataTransform", function (value) {
|
|
134
|
-
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
135
|
-
// const isInt = new RegExp(/^(\-?)\d+$/)
|
|
136
|
-
return isNumber.test(value) ? Number(value).toFixed(2) : value;
|
|
137
|
-
});
|
|
138
133
|
this.name = '打款金额';
|
|
139
134
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
140
135
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -13,7 +13,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
13
13
|
sortField: string;
|
|
14
14
|
type: string;
|
|
15
15
|
rules: any[];
|
|
16
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
17
17
|
paymentTid: PaymentTid;
|
|
18
18
|
paymentStatus: PaymentStatus;
|
|
19
19
|
paymentAmount: PaymentAmount;
|
|
@@ -26,7 +26,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
28
|
dataType: ComponentInterface['dataType'];
|
|
29
|
-
effects: ComponentInterface[
|
|
29
|
+
effects: ComponentInterface["effects"];
|
|
30
30
|
constructor(options: PickOption);
|
|
31
31
|
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
32
32
|
renderPc: () => null;
|
|
@@ -73,8 +73,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
73
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
74
74
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
75
75
|
disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
|
|
76
|
-
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
77
|
-
replaceValueCh: p === null || p === void 0 ? void 0 : p.innerReplaceValueCh
|
|
76
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
78
77
|
}))
|
|
79
78
|
});
|
|
80
79
|
});
|
|
@@ -97,7 +96,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
97
96
|
this.isCombinationComponent = true;
|
|
98
97
|
this.canSort = false;
|
|
99
98
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
100
|
-
console.log();
|
|
101
99
|
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
102
100
|
this.rules = [{
|
|
103
101
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -8,13 +8,13 @@ declare class ETradeId implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
showContains: boolean;
|
|
10
10
|
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
copyHandle: (text: string) => void;
|
|
@@ -6,14 +6,14 @@ 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 { message } from
|
|
11
|
-
import { TradeId } from
|
|
12
|
-
import { CopyOutlined } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { message } from "antd";
|
|
11
|
+
import { TradeId } from "@kmkf-fe-packages/basic-components";
|
|
12
|
+
import { CopyOutlined } from "@ant-design/icons";
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
-
import copy from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import copy from "copy-to-clipboard";
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
18
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
19
19
|
var _this = this;
|
|
@@ -41,7 +41,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "copyHandle", function (text) {
|
|
43
43
|
copy(text);
|
|
44
|
-
message.success(
|
|
44
|
+
message.success("复制成功");
|
|
45
45
|
});
|
|
46
46
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
47
47
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
@@ -58,8 +58,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
58
58
|
}
|
|
59
59
|
}, /*#__PURE__*/React.createElement("span", {
|
|
60
60
|
style: {
|
|
61
|
-
paddingLeft:
|
|
62
|
-
cursor:
|
|
61
|
+
paddingLeft: "4px",
|
|
62
|
+
cursor: "pointer"
|
|
63
63
|
}
|
|
64
64
|
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
65
65
|
});
|
|
@@ -72,13 +72,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
72
72
|
});
|
|
73
73
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
74
74
|
var _record;
|
|
75
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
75
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
|
|
76
76
|
});
|
|
77
77
|
_defineProperty(this, "editRender", function (p) {
|
|
78
78
|
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
79
79
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
80
80
|
var _p$onBlur;
|
|
81
|
-
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value,
|
|
81
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, "tradeId");
|
|
82
82
|
};
|
|
83
83
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
84
84
|
title: _this.name,
|
|
@@ -102,10 +102,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
102
102
|
// 过滤组件id
|
|
103
103
|
name: item.name,
|
|
104
104
|
// 过滤组件名称
|
|
105
|
-
filterComponentType:
|
|
105
|
+
filterComponentType: "Input",
|
|
106
106
|
filterFn: function filterFn(value) {
|
|
107
107
|
return function (i) {
|
|
108
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
108
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
formatFilterValue: function formatFilterValue(input) {
|
|
@@ -126,6 +126,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
126
126
|
this.isCombinationComponent = false;
|
|
127
127
|
this.canSort = true;
|
|
128
128
|
this.children = [];
|
|
129
|
-
this.dataType =
|
|
129
|
+
this.dataType = "string";
|
|
130
130
|
});
|
|
131
131
|
export default ETradeId;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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, 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) => BasicAddress | BsExchange | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowCreator | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsInterception | LogisticsTrajectory | MsgStatus | NodeDeadLine | NodeStayDuration | Payment | BasicPicture | PlatForm | BasicPosting | PrevSubmitter | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | BasicSelect | ShopInput | StatusSelect | Submitter | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WlnGoods | WorkOrderId | BasicMultSelect | BasicGrade | ShopName | Logistics | ReturnLogistics | AliPay | SystemOrderNo | Ordinary | TemplateSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.21.4
|
|
3
|
+
"version": "0.21.4",
|
|
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.21.4
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.21.4
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.21.4",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.21.4"
|
|
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": "510c76d8426f214eb5653d9e75a59fa44e318939",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|