@kmkf-fe-packages/services-components 0.7.15-alpha.3 → 0.7.15-alpha.31
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/QueryLogisticsTrack/index.js +23 -21
- package/dist/esm/components/BS/BsExchange/index.d.ts +4 -3
- package/dist/esm/components/BS/BsExchange/index.js +194 -16
- package/dist/esm/components/BS/BsGoods/index.d.ts +4 -4
- package/dist/esm/components/BS/BsGoods/index.js +55 -22
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -7
- package/dist/esm/components/BS/BsLogistics/index.js +14 -14
- package/dist/esm/components/BS/BsReissue/index.d.ts +4 -8
- package/dist/esm/components/BS/BsReissue/index.js +83 -24
- package/dist/esm/components/BS/common/BsHeaderCode.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderCode.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderMoney.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderMoney.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderName.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderName.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderNumber.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderNumber.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +72 -0
- package/dist/esm/components/BS/common/BsHeaderShare.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderShare.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderSku.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderSku.js +71 -0
- package/dist/esm/components/BS/common/BsHeaderType.d.ts +25 -0
- package/dist/esm/components/BS/common/BsHeaderType.js +71 -0
- package/dist/esm/components/BS/common/index.d.ts +10 -0
- package/dist/esm/components/BS/common/index.js +10 -0
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +3 -1
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +11 -1
- package/dist/esm/components/JST/JstLogistics/index.js +25 -8
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +5 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
- package/dist/esm/components/PostIng/index.js +2 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +2 -3
- package/dist/esm/type.d.ts +2 -1
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
7
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
8
|
import React from "react";
|
|
9
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull
|
|
10
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
|
|
13
13
|
var _this = this;
|
|
@@ -50,18 +50,12 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
|
|
|
50
50
|
return null;
|
|
51
51
|
});
|
|
52
52
|
_defineProperty(this, "filterConfig", function (item) {
|
|
53
|
-
var subKey = item.subKey;
|
|
54
53
|
return {
|
|
55
54
|
searchDefaultConditions: SYMBOL.like,
|
|
56
55
|
type: item.type,
|
|
57
|
-
id:
|
|
56
|
+
id: item.id,
|
|
58
57
|
name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
|
|
59
|
-
filterComponentType: "Input"
|
|
60
|
-
filterFn: function filterFn(value) {
|
|
61
|
-
return function (i) {
|
|
62
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
58
|
+
filterComponentType: "Input"
|
|
65
59
|
};
|
|
66
60
|
});
|
|
67
61
|
this.name = options.name;
|
|
@@ -11,7 +11,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import { AddressData, BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var typeMap = {
|
|
17
17
|
POSTING: {
|
|
@@ -199,7 +199,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
199
199
|
this.canSort = true;
|
|
200
200
|
this.children = [];
|
|
201
201
|
this.dataType = "string";
|
|
202
|
-
this.addressDateInstance = AddressData.getInstance();
|
|
202
|
+
this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
203
203
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
|
|
204
204
|
validator: function validator(_, value) {
|
|
205
205
|
var _value$postingAddress;
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory,
|
|
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, LogisticsTrajectory, BsGoods, BsExchange, BsReissue } 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) => JstLogistics | 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 | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory,
|
|
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, LogisticsTrajectory, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -62,8 +62,6 @@ export var factory = function factory(type, options) {
|
|
|
62
62
|
return new TradeDateTime(options);
|
|
63
63
|
case "EXPRESS_LOGISTICS_SELECT":
|
|
64
64
|
return new Logistics(options);
|
|
65
|
-
case "BS_LOGISTICS":
|
|
66
|
-
return new BsLogistics(options);
|
|
67
65
|
case "RETURN_LOGISTICS_SELECT":
|
|
68
66
|
return new ReturnLogistics(options);
|
|
69
67
|
case "ACTUAL_PAYMENT":
|
|
@@ -106,6 +104,7 @@ export var factory = function factory(type, options) {
|
|
|
106
104
|
case "TEMPLATE_ID_INPUT":
|
|
107
105
|
return new TemplateSelect(options);
|
|
108
106
|
case "JST_LOGISTICS":
|
|
107
|
+
case "BS_LOGISTICS":
|
|
109
108
|
return new JstLogistics(options);
|
|
110
109
|
case "JST_ITEM_SELECT_THIRD":
|
|
111
110
|
return new JstItemSelect(options);
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface ComponentInterface {
|
|
|
33
33
|
width?: number;
|
|
34
34
|
align?: ALignType;
|
|
35
35
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
36
|
-
format?: "dateTime" | "date" | "time";
|
|
36
|
+
format?: "dateTime" | "date" | "time" | "cascader";
|
|
37
37
|
options?: Array<any>;
|
|
38
38
|
/**
|
|
39
39
|
* @description 组件下标
|
|
@@ -137,6 +137,7 @@ export interface ComponentInterface {
|
|
|
137
137
|
* @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
|
|
138
138
|
*/
|
|
139
139
|
erpFlag?: boolean;
|
|
140
|
+
showHeader?: string[];
|
|
140
141
|
reasonList?: any[];
|
|
141
142
|
};
|
|
142
143
|
effects?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.31",
|
|
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.15-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.31",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.31"
|
|
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": "30b72a10645bafc21728ce18aa10a438b1c1d808"
|
|
44
44
|
}
|