@kmkf-fe-packages/services-components 1.0.4-rc.4 → 1.0.4-rc.5
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.
|
@@ -27,13 +27,24 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
27
27
|
getComponentValue: (r: Record) => any;
|
|
28
28
|
renderExport: (value: any, record: any) => any;
|
|
29
29
|
editRender: (p: any) => React.JSX.Element;
|
|
30
|
-
filterConfig: (item: ColumnConfig) => {
|
|
30
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
31
|
+
searchDefaultConditions: "in";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "MultipleSelect";
|
|
36
|
+
props: {
|
|
37
|
+
options: any[];
|
|
38
|
+
};
|
|
39
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
40
|
+
} | {
|
|
31
41
|
searchDefaultConditions: "like";
|
|
32
42
|
type: string;
|
|
33
43
|
id: string;
|
|
34
44
|
name: string;
|
|
35
45
|
filterComponentType: "Input";
|
|
36
46
|
filterFn: (value: string) => (i: Record) => any;
|
|
37
|
-
|
|
47
|
+
props?: undefined;
|
|
48
|
+
})[];
|
|
38
49
|
}
|
|
39
50
|
export default JstSendGood;
|
|
@@ -151,19 +151,38 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
_defineProperty(this, "filterConfig", function (item) {
|
|
154
|
-
var _typeMap$_this$type5, _typeMap$_this$
|
|
155
|
-
return [{
|
|
156
|
-
searchDefaultConditions: SYMBOL.
|
|
154
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type8;
|
|
155
|
+
return [_this.type === 'WDT_SEND_GOOD' ? {
|
|
156
|
+
searchDefaultConditions: SYMBOL.in,
|
|
157
157
|
type: item.type,
|
|
158
158
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.sendName),
|
|
159
159
|
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
160
|
-
filterComponentType: "
|
|
160
|
+
filterComponentType: "MultipleSelect",
|
|
161
|
+
props: {
|
|
162
|
+
options: WdtSendData.getInstance().getWdtSendData() || []
|
|
163
|
+
},
|
|
161
164
|
filterFn: function filterFn(value) {
|
|
162
165
|
return function (i) {
|
|
163
|
-
var _ref
|
|
164
|
-
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
166
|
+
var _ref;
|
|
167
|
+
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
165
168
|
var _String;
|
|
166
|
-
var
|
|
169
|
+
var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
170
|
+
return sendName;
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
} : {
|
|
175
|
+
searchDefaultConditions: SYMBOL.like,
|
|
176
|
+
type: item.type,
|
|
177
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.sendName),
|
|
178
|
+
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
179
|
+
filterComponentType: "Input",
|
|
180
|
+
filterFn: function filterFn(value) {
|
|
181
|
+
return function (i) {
|
|
182
|
+
var _ref2, _typeMap$_this$type7;
|
|
183
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
184
|
+
var _String2;
|
|
185
|
+
var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
167
186
|
return name;
|
|
168
187
|
});
|
|
169
188
|
};
|
|
@@ -171,15 +190,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
171
190
|
}, {
|
|
172
191
|
searchDefaultConditions: SYMBOL.like,
|
|
173
192
|
type: item.type,
|
|
174
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
193
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendId),
|
|
175
194
|
name: "".concat(_this.name, "\u7F16\u7801"),
|
|
176
195
|
filterComponentType: "Input",
|
|
177
196
|
filterFn: function filterFn(value) {
|
|
178
197
|
return function (i) {
|
|
179
|
-
var
|
|
180
|
-
return (
|
|
181
|
-
var
|
|
182
|
-
var id = item !== null && item !== void 0 && item.sendId ? (
|
|
198
|
+
var _ref3, _typeMap$_this$type9;
|
|
199
|
+
return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
|
|
200
|
+
var _String3;
|
|
201
|
+
var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
|
|
183
202
|
return id;
|
|
184
203
|
});
|
|
185
204
|
};
|
|
@@ -132,6 +132,12 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
132
132
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.typeName)), value);
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
+
}, {
|
|
136
|
+
searchDefaultConditions: SYMBOL.like,
|
|
137
|
+
type: item.type,
|
|
138
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].systemOrderNo),
|
|
139
|
+
name: "".concat(item.name, "-\u8865\u53D1\u7CFB\u7EDF\u8BA2\u5355\u53F7"),
|
|
140
|
+
filterComponentType: "Input"
|
|
135
141
|
}, {
|
|
136
142
|
searchDefaultConditions: SYMBOL.like,
|
|
137
143
|
type: item.type,
|
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, 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, 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) => JstSendGood | LogisticsInterception | WdtReissue | 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 | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | CommonInput | PaymentVoucherCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.0.4-rc.
|
|
3
|
+
"version": "1.0.4-rc.5",
|
|
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": "^1.0.4-rc.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^1.0.4-rc.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^1.0.4-rc.5",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^1.0.4-rc.5"
|
|
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": "b1f520e7524472838c3aba55cade7c27fcbfcc0c",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|