@kmkf-fe-packages/services-components 1.4.0-rc.2 → 1.4.2
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/SelectMark/index.js +0 -9
- package/dist/esm/components/BS/common/BsMemo.js +1 -2
- package/dist/esm/components/BS/common/BsType.js +1 -2
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +5 -187
- package/dist/esm/components/CommonHeaderGood/index.js +0 -182
- package/dist/esm/components/CommonMultiStatus/index.js +19 -25
- package/dist/esm/components/CommonSystemOrder/index.js +8 -10
- package/dist/esm/components/FlowMarkSelect/index.js +1 -14
- package/dist/esm/components/Label/index.d.ts +2 -15
- package/dist/esm/components/Label/index.js +7 -34
- package/dist/esm/components/MsgStatus/index.js +1 -2
- package/dist/esm/components/StatusSelect/index.js +0 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -11
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.js +0 -4
- package/dist/esm/type.d.ts +0 -1
- package/package.json +4 -5
- package/dist/esm/commonComponents/SelectMark/img/xingxing-grey.png +0 -0
- package/dist/esm/components/AfterSalesOrderId/index.d.ts +0 -35
- package/dist/esm/components/AfterSalesOrderId/index.js +0 -107
- package/dist/esm/components/KmErpSendGood/index.d.ts +0 -53
- package/dist/esm/components/KmErpSendGood/index.js +0 -213
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +0 -35
- package/dist/esm/components/WDT/WdtExchange/index.js +0 -183
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +0 -54
- package/dist/esm/components/WDT/WdtReturn/index.js +0 -150
|
@@ -21,7 +21,6 @@ import xingYellow from "../../commonComponents/SelectMark/img/xingxing-yellow.pn
|
|
|
21
21
|
import xingBlue from "../../commonComponents/SelectMark/img/xingxing-blue.png";
|
|
22
22
|
import xingGreen from "../../commonComponents/SelectMark/img/xingxing-green.png";
|
|
23
23
|
import xingPurple from "../../commonComponents/SelectMark/img/xingxing-purple.png";
|
|
24
|
-
import xingGrey from "../../commonComponents/SelectMark/img/xingxing-grey.png";
|
|
25
24
|
var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options) {
|
|
26
25
|
var _this = this;
|
|
27
26
|
_classCallCheck(this, FlowMarkSelect);
|
|
@@ -66,8 +65,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
66
65
|
3: "黄色",
|
|
67
66
|
4: "蓝色",
|
|
68
67
|
5: "绿色",
|
|
69
|
-
6: "紫色"
|
|
70
|
-
7: "灰色"
|
|
68
|
+
6: "紫色"
|
|
71
69
|
};
|
|
72
70
|
var mark = _this.workOrderMark.find(function (item) {
|
|
73
71
|
return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
@@ -113,9 +111,6 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
113
111
|
options: [{
|
|
114
112
|
label: "空白",
|
|
115
113
|
value: "1"
|
|
116
|
-
}, {
|
|
117
|
-
label: "灰色",
|
|
118
|
-
value: "7"
|
|
119
114
|
}, {
|
|
120
115
|
label: "红色",
|
|
121
116
|
value: "2"
|
|
@@ -158,14 +153,6 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
|
|
|
158
153
|
}
|
|
159
154
|
}),
|
|
160
155
|
value: "1"
|
|
161
|
-
}, {
|
|
162
|
-
label: /*#__PURE__*/React.createElement("img", {
|
|
163
|
-
src: xingGrey,
|
|
164
|
-
style: {
|
|
165
|
-
width: "16px"
|
|
166
|
-
}
|
|
167
|
-
}),
|
|
168
|
-
value: "7"
|
|
169
156
|
}, {
|
|
170
157
|
label: /*#__PURE__*/React.createElement("img", {
|
|
171
158
|
src: xingRed,
|
|
@@ -27,20 +27,7 @@ declare class Label implements ComponentInterface {
|
|
|
27
27
|
}>) => React.JSX.Element;
|
|
28
28
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
29
29
|
renderLog: (r: Record) => React.JSX.Element;
|
|
30
|
-
renderExport: (value: any, record: Record) =>
|
|
31
|
-
filterConfig: (item: ColumnConfig) =>
|
|
32
|
-
searchDefaultConditions: "in";
|
|
33
|
-
type: string;
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
filterComponentType: "MultipleSelect";
|
|
37
|
-
props: {
|
|
38
|
-
options: any;
|
|
39
|
-
};
|
|
40
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
41
|
-
};
|
|
42
|
-
formDataTransform: (v: Array<{
|
|
43
|
-
labelShowName: string;
|
|
44
|
-
}>) => string[];
|
|
30
|
+
renderExport: (value: any, record: Record) => any;
|
|
31
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
45
32
|
}
|
|
46
33
|
export default Label;
|
|
@@ -8,12 +8,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { Tag, Select, Space } from 'antd';
|
|
11
|
-
import {
|
|
12
|
-
import { LabelData, isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
-
import intersection from "lodash/intersection";
|
|
11
|
+
import { LabelData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
12
|
import GetFormItem from "../GetFormItem";
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { SYMBOL } from "../../constant";
|
|
17
14
|
var EditRenderItem = function EditRenderItem(props) {
|
|
18
15
|
var value = props.value;
|
|
19
16
|
var tagRender = function tagRender(prop) {
|
|
@@ -93,17 +90,14 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
93
90
|
}) : null;
|
|
94
91
|
});
|
|
95
92
|
_defineProperty(this, "showDetail", function (value) {
|
|
96
|
-
var _Object$keys;
|
|
97
93
|
return /*#__PURE__*/React.createElement(Space, {
|
|
98
94
|
style: {
|
|
99
95
|
flexWrap: 'wrap'
|
|
100
96
|
}
|
|
101
|
-
}, Array.isArray(value) ?
|
|
102
|
-
return item.labelShowName;
|
|
103
|
-
}))) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (labelShowName) {
|
|
97
|
+
}, Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
104
98
|
var _this$labelDateInstan;
|
|
105
99
|
var label = ((_this$labelDateInstan = _this.labelDateInstance.labelData) === null || _this$labelDateInstan === void 0 ? void 0 : _this$labelDateInstan.find(function (item) {
|
|
106
|
-
return item.value === labelShowName;
|
|
100
|
+
return item.value === (v === null || v === void 0 ? void 0 : v.labelShowName);
|
|
107
101
|
})) || {};
|
|
108
102
|
if (!isNull(label)) return /*#__PURE__*/React.createElement(Tag, {
|
|
109
103
|
color: label === null || label === void 0 ? void 0 : label.color
|
|
@@ -118,34 +112,13 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
118
112
|
return _this.renderPc(undefined, r);
|
|
119
113
|
});
|
|
120
114
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
121
|
-
var
|
|
122
|
-
return
|
|
115
|
+
var _record, _record$map;
|
|
116
|
+
return record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : (_record$map = _record.map(function (item) {
|
|
123
117
|
return item === null || item === void 0 ? void 0 : item.labelShowName;
|
|
124
|
-
}))
|
|
118
|
+
})) === null || _record$map === void 0 ? void 0 : _record$map.join('、');
|
|
125
119
|
});
|
|
126
120
|
_defineProperty(this, "filterConfig", function (item) {
|
|
127
|
-
return
|
|
128
|
-
searchDefaultConditions: SYMBOL.in,
|
|
129
|
-
type: item.type,
|
|
130
|
-
id: "".concat(item.id, "_label"),
|
|
131
|
-
// 过滤组件id
|
|
132
|
-
name: item.name,
|
|
133
|
-
// 过滤组件名称
|
|
134
|
-
filterComponentType: "MultipleSelect",
|
|
135
|
-
props: {
|
|
136
|
-
options: _this.labelDateInstance.labelData || []
|
|
137
|
-
},
|
|
138
|
-
filterFn: function filterFn(value) {
|
|
139
|
-
return function (i) {
|
|
140
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "label")).length > 0;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
});
|
|
145
|
-
_defineProperty(this, "formDataTransform", function (v) {
|
|
146
|
-
return v === null || v === void 0 ? void 0 : v.map(function (item) {
|
|
147
|
-
return item.labelShowName;
|
|
148
|
-
});
|
|
121
|
+
return [];
|
|
149
122
|
});
|
|
150
123
|
this.name = options.name;
|
|
151
124
|
this.id = options.id;
|
|
@@ -112,9 +112,6 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
112
112
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
113
113
|
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,
|
|
114
114
|
component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
|
|
115
|
-
style: {
|
|
116
|
-
width: 200
|
|
117
|
-
},
|
|
118
115
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
119
116
|
failValue: selectTypeMap[_this.type].failValue
|
|
120
117
|
}))
|
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, 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => AliPay | BasicCascader | CommonMultiStatus | CommonSystemOrder | FlowMarkSelect | BasicInput | Label | MsgStatus | StatusSelect | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | CommonInput | PaymentVoucherCode;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -141,16 +141,12 @@ export var factory = function factory(type, options) {
|
|
|
141
141
|
return new BsGoods(options);
|
|
142
142
|
case "BS_EXCHANGE_GOODS":
|
|
143
143
|
return new BsExchange(options);
|
|
144
|
-
case "WDT_EXCHANGE_GOODS":
|
|
145
|
-
return new WdtExchange(options);
|
|
146
144
|
case "BS_REISSUE_GOODS":
|
|
147
145
|
return new BsReissue(options);
|
|
148
146
|
case "WDT_REISSUE_GOODS":
|
|
149
147
|
return new WdtReissue(options);
|
|
150
148
|
case "BS_RETURN_GOODS":
|
|
151
149
|
return new BsReturn(options);
|
|
152
|
-
case "WDT_RETURN_GOODS":
|
|
153
|
-
return new WdtReturn(options);
|
|
154
150
|
case "REISSUE_TRADE_ID":
|
|
155
151
|
case "BS_DELIVERY_NO":
|
|
156
152
|
case "RETURN_GOODS_TRADE_ID":
|
|
@@ -210,12 +206,6 @@ export var factory = function factory(type, options) {
|
|
|
210
206
|
return new PaymentVoucherCode(options);
|
|
211
207
|
case "LABEL":
|
|
212
208
|
return new Label(options);
|
|
213
|
-
case "KM_SEND_GOOD":
|
|
214
|
-
// 快麦ERP发货仓
|
|
215
|
-
return new KmErpSendGood(options);
|
|
216
|
-
case "AFTER_SALES_ORDER_ID":
|
|
217
|
-
// 售后单ID
|
|
218
|
-
return new AfterSalesOrderId(options);
|
|
219
209
|
default:
|
|
220
210
|
return new BasicInput(options);
|
|
221
211
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -75,13 +75,9 @@ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus
|
|
|
75
75
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
76
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
77
|
export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
78
|
-
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
79
|
-
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
80
78
|
export { default as CommonInput } from "./components/CommonInput";
|
|
81
79
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
82
80
|
export { default as Label } from "./components/Label";
|
|
83
|
-
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
84
|
-
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
85
81
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
86
82
|
export { factory } from "./factory";
|
|
87
83
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
package/dist/esm/index.js
CHANGED
|
@@ -75,13 +75,9 @@ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus
|
|
|
75
75
|
export { default as MsgStatus } from "./components/MsgStatus";
|
|
76
76
|
export { default as WdtGoods } from "./components/WDT/WdtGoods";
|
|
77
77
|
export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
78
|
-
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
79
|
-
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
80
78
|
export { default as CommonInput } from "./components/CommonInput";
|
|
81
79
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
82
80
|
export { default as Label } from "./components/Label";
|
|
83
|
-
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
84
|
-
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
85
81
|
// TODO: ERP 打款工单使用
|
|
86
82
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
87
83
|
export { factory } from "./factory";
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"sync": "yarn build && yalc push",
|
|
11
10
|
"build": "yarn run lint && father build",
|
|
12
11
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
13
12
|
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
@@ -21,8 +20,8 @@
|
|
|
21
20
|
]
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.4.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.4.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "1.4.2",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "1.4.2"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
"publishConfig": {
|
|
39
38
|
"access": "public"
|
|
40
39
|
},
|
|
41
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0a85a17cc8fd63cb7f30daf63beebd034f58da6e",
|
|
42
41
|
"gitHooks": {
|
|
43
42
|
"pre-commit": "lint-staged"
|
|
44
43
|
}
|
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class AfterSalesOrderId implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
formField: string;
|
|
12
|
-
canSort: boolean;
|
|
13
|
-
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface["dataType"];
|
|
15
|
-
templateId?: string;
|
|
16
|
-
workOrderUniqueKey?: string;
|
|
17
|
-
suffixKey: string;
|
|
18
|
-
constructor(options: PickOption);
|
|
19
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: any, record: Record) => any;
|
|
23
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
24
|
-
editRender: (p: any) => React.JSX.Element;
|
|
25
|
-
filterConfig: (item: ColumnConfig) => {
|
|
26
|
-
searchDefaultConditions: "in";
|
|
27
|
-
type: string;
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
filterComponentType: "SelectInput";
|
|
31
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
|
-
formatFilterValue: (value: any) => any;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export default AfterSalesOrderId;
|
|
@@ -1,107 +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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
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); } }
|
|
4
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
10
|
-
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
11
|
-
import GetFormItem from "../GetFormItem";
|
|
12
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { SYMBOL, batchInput } from "../../constant";
|
|
15
|
-
var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(options) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
_classCallCheck(this, AfterSalesOrderId);
|
|
18
|
-
_defineProperty(this, "name", void 0);
|
|
19
|
-
_defineProperty(this, "id", void 0);
|
|
20
|
-
_defineProperty(this, "sortField", void 0);
|
|
21
|
-
_defineProperty(this, "type", void 0);
|
|
22
|
-
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "componentConfig", 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, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "templateId", void 0);
|
|
30
|
-
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
31
|
-
_defineProperty(this, "suffixKey", void 0);
|
|
32
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
|
-
var _record;
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : "--");
|
|
35
|
-
});
|
|
36
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
37
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
|
|
38
|
-
return _this.renderPc(undefined, r);
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
41
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
44
|
-
var _record2;
|
|
45
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
48
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
49
|
-
id: _this.id,
|
|
50
|
-
label: _this.name,
|
|
51
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
52
|
-
}) : null;
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(this, "editRender", function (p) {
|
|
55
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
56
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
57
|
-
title: _this.name,
|
|
58
|
-
name: _this.id,
|
|
59
|
-
rules: _this.rules,
|
|
60
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
61
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
62
|
-
validateTrigger: ["onBlur", "onChange"],
|
|
63
|
-
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,
|
|
64
|
-
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
65
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
66
|
-
}))
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
70
|
-
return {
|
|
71
|
-
searchDefaultConditions: SYMBOL.in,
|
|
72
|
-
type: item.type,
|
|
73
|
-
id: "".concat(item.id, "_").concat(_this.suffixKey),
|
|
74
|
-
// 过滤组件id
|
|
75
|
-
name: item.name,
|
|
76
|
-
// 过滤组件名称
|
|
77
|
-
filterComponentType: "SelectInput",
|
|
78
|
-
filterFn: function filterFn(value) {
|
|
79
|
-
return function (i) {
|
|
80
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey)).includes(value);
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
formatFilterValue: function formatFilterValue(value) {
|
|
84
|
-
if (value.type === "keywords") {
|
|
85
|
-
return batchInput(value.keywords);
|
|
86
|
-
} else {
|
|
87
|
-
return value;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
this.name = options.name;
|
|
93
|
-
this.id = options.id;
|
|
94
|
-
this.suffixKey = 'afterSalesOrderId';
|
|
95
|
-
this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
96
|
-
this.formField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
97
|
-
this.type = options.type;
|
|
98
|
-
this.templateId = options.templateId;
|
|
99
|
-
this.componentConfig = options.componentConfig;
|
|
100
|
-
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
101
|
-
this.rules = [];
|
|
102
|
-
this.isCombinationComponent = false;
|
|
103
|
-
this.canSort = true;
|
|
104
|
-
this.children = [];
|
|
105
|
-
this.dataType = "string";
|
|
106
|
-
});
|
|
107
|
-
export default AfterSalesOrderId;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class JstSendGood implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
sortChildField: {
|
|
8
|
-
name: string;
|
|
9
|
-
key: string;
|
|
10
|
-
dataType: string;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}[];
|
|
13
|
-
type: string;
|
|
14
|
-
rules: any[];
|
|
15
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
16
|
-
align: ALignType;
|
|
17
|
-
isCombinationComponent: boolean;
|
|
18
|
-
formField: string;
|
|
19
|
-
canSort: boolean;
|
|
20
|
-
children: ComponentInterface[];
|
|
21
|
-
dataType: ComponentInterface["dataType"];
|
|
22
|
-
suffixKey: string;
|
|
23
|
-
suffixSendId: string;
|
|
24
|
-
suffixSendName: string;
|
|
25
|
-
constructor(options: PickOption);
|
|
26
|
-
getSortChildFields: (type: string, options: PickOption) => any;
|
|
27
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
28
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
29
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
30
|
-
getComponentValue: (r: Record) => any;
|
|
31
|
-
renderExport: (value: any, record: any) => any;
|
|
32
|
-
editRender: (p: any) => React.JSX.Element;
|
|
33
|
-
filterConfig: (item: ColumnConfig) => ({
|
|
34
|
-
searchDefaultConditions: "in";
|
|
35
|
-
type: string;
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
filterComponentType: "MultipleSelect";
|
|
39
|
-
props: {
|
|
40
|
-
options: any[];
|
|
41
|
-
};
|
|
42
|
-
filterFn: (value: string) => (i: Record) => any;
|
|
43
|
-
} | {
|
|
44
|
-
searchDefaultConditions: "like";
|
|
45
|
-
type: string;
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
filterComponentType: "Input";
|
|
49
|
-
filterFn: (value: string) => (i: Record) => any;
|
|
50
|
-
props?: undefined;
|
|
51
|
-
})[];
|
|
52
|
-
}
|
|
53
|
-
export default JstSendGood;
|