@kmkf-fe-packages/services-components 0.7.15-alpha.2 → 0.7.15-alpha.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/BS/BsExchange/index.d.ts +22 -6
- package/dist/esm/components/BS/BsExchange/index.js +175 -39
- package/dist/esm/components/BS/BsGoods/index.d.ts +4 -5
- package/dist/esm/components/BS/BsGoods/index.js +43 -29
- package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
- package/dist/esm/components/BS/BsReissue/index.js +61 -34
- package/dist/esm/components/BS/common/BsChildCode.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildCode.js +71 -0
- package/dist/esm/components/BS/common/BsChildMoney.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildMoney.js +71 -0
- package/dist/esm/components/BS/common/BsChildName.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildName.js +71 -0
- package/dist/esm/components/BS/common/BsChildNumber.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildNumber.js +71 -0
- package/dist/esm/components/BS/common/BsChildPic.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildPic.js +72 -0
- package/dist/esm/components/BS/common/BsChildShare.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildShare.js +71 -0
- package/dist/esm/components/BS/common/BsChildSku.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildSku.js +71 -0
- package/dist/esm/components/BS/common/BsChildType.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildType.js +71 -0
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
- package/dist/esm/components/BS/common/BsMemo.d.ts +25 -0
- package/dist/esm/components/BS/common/BsMemo.js +76 -0
- package/dist/esm/components/BS/common/BsType.d.ts +35 -0
- package/dist/esm/components/BS/common/{BsPic.js → BsType.js} +40 -49
- 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/Common/index.d.ts +12 -6
- package/dist/esm/components/Common/index.js +115 -50
- package/dist/esm/components/Common/index.module.less +8 -0
- package/dist/esm/components/File/index.d.ts +7 -8
- package/dist/esm/components/File/index.js +18 -47
- package/dist/esm/components/Input/index.js +3 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +6 -16
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +1 -0
- package/package.json +4 -4
- package/dist/esm/components/BS/common/BsPic.d.ts +0 -43
|
@@ -91,24 +91,14 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
91
91
|
this.isCombinationComponent = true;
|
|
92
92
|
this.canSort = false;
|
|
93
93
|
this.dataType = "object";
|
|
94
|
-
this.children = [this.express, this.expressCode];
|
|
94
|
+
this.children = [this.express, this.expressCode, this.expressSnapshot];
|
|
95
95
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
96
96
|
validator: function validator(_, value) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
|
|
103
|
-
return Promise.reject(new Error("请输入物流单号"));
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
if (!(value !== null && value !== void 0 && value.company)) {
|
|
107
|
-
return Promise.reject(new Error("请选择物流公司"));
|
|
108
|
-
}
|
|
109
|
-
if (!(value !== null && value !== void 0 && value.order)) {
|
|
110
|
-
return Promise.reject(new Error("请输入物流单号"));
|
|
111
|
-
}
|
|
97
|
+
if (!value.trajectoryCompany) {
|
|
98
|
+
return Promise.reject(new Error("请选择物流公司"));
|
|
99
|
+
}
|
|
100
|
+
if (!value.trajectoryCode) {
|
|
101
|
+
return Promise.reject(new Error("请输入物流单号"));
|
|
112
102
|
}
|
|
113
103
|
return Promise.resolve();
|
|
114
104
|
}
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsLogistics, 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) => ActualPayment | BsExchange | BsGoods | BsLogistics | BsReissue | BasicFile | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsTrajectory | BasicPosting | BasicDataTime | TradeDateTime | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
|
package/dist/esm/type.d.ts
CHANGED
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.4",
|
|
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.4",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.3"
|
|
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": "52277258146a461cd2fdcb41f672d825a88ef295"
|
|
44
44
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
|
-
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
3
|
-
declare class BsPic implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
parentId: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
effects: ComponentInterface["effects"];
|
|
12
|
-
align: ALignType;
|
|
13
|
-
width: number;
|
|
14
|
-
isCombinationComponent: boolean;
|
|
15
|
-
formField: string;
|
|
16
|
-
canSort: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
|
-
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
19
|
-
dataType: ComponentInterface["dataType"];
|
|
20
|
-
constructor(options: PickOption);
|
|
21
|
-
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderClient: (record: any) => null;
|
|
23
|
-
renderPc: (value: any, record: Record) => null;
|
|
24
|
-
renderLog: (r: Record) => any;
|
|
25
|
-
renderExport: (value: any, record: Record) => any;
|
|
26
|
-
editRender: () => null;
|
|
27
|
-
filterConfig: (item: ColumnConfig) => {
|
|
28
|
-
searchDefaultConditions: "in";
|
|
29
|
-
type: string;
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
filterComponentType: "MultipleSelect";
|
|
33
|
-
props: {
|
|
34
|
-
options: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
formatFilterValue: (value: string[]) => string[];
|
|
40
|
-
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export default BsPic;
|