@kmkf-fe-packages/services-components 2.7.4 → 2.7.6
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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
- package/dist/esm/components/Common/dist/index.js +1019 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/index.js +17 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -1
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +4 -4
|
@@ -38,6 +38,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
38
38
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
39
39
|
effects: ComponentInterface["effects"];
|
|
40
40
|
dataType: ComponentInterface["dataType"];
|
|
41
|
+
isChange: boolean;
|
|
41
42
|
constructor(options: PickOption);
|
|
42
43
|
renderClient: (record: any) => React.JSX.Element;
|
|
43
44
|
renderLog: (record: any) => React.JSX.Element;
|
|
@@ -59,6 +59,7 @@ function Logistics(options) {
|
|
|
59
59
|
_defineProperty(this, "logisticsAddressData", void 0);
|
|
60
60
|
_defineProperty(this, "effects", void 0);
|
|
61
61
|
_defineProperty(this, "dataType", void 0);
|
|
62
|
+
_defineProperty(this, "isChange", void 0);
|
|
62
63
|
_defineProperty(this, "renderClient", function (record) {
|
|
63
64
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
64
65
|
});
|
|
@@ -91,6 +92,19 @@ function Logistics(options) {
|
|
|
91
92
|
});
|
|
92
93
|
_defineProperty(this, "editRender", function (p) {
|
|
93
94
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
|
|
95
|
+
var onInterceptCodeBlur = function onInterceptCodeBlur(val) {
|
|
96
|
+
if (_this.isChange) {
|
|
97
|
+
var _p$onBlur;
|
|
98
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "interceptCode");
|
|
99
|
+
_this.isChange = false;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var onInterceptChange = function onInterceptChange(value, type) {
|
|
103
|
+
if (type === "interceptCode") {
|
|
104
|
+
_this.isChange = true;
|
|
105
|
+
}
|
|
106
|
+
p === null || p === void 0 ? void 0 : p.onChange(value);
|
|
107
|
+
};
|
|
94
108
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
95
109
|
title: _this.name,
|
|
96
110
|
name: _this.id,
|
|
@@ -104,6 +118,8 @@ function Logistics(options) {
|
|
|
104
118
|
onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
|
|
105
119
|
}, _this.componentConfig, {
|
|
106
120
|
showReason: true,
|
|
121
|
+
onBlur: onInterceptCodeBlur,
|
|
122
|
+
onChange: onInterceptChange,
|
|
107
123
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
108
124
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
109
125
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
@@ -157,6 +173,7 @@ function Logistics(options) {
|
|
|
157
173
|
this.isCombinationComponent = true;
|
|
158
174
|
this.canSort = false;
|
|
159
175
|
this.dataType = "object";
|
|
176
|
+
this.isChange = false;
|
|
160
177
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
|
|
161
178
|
// this.interceptLogisticsUserKCode,
|
|
162
179
|
// this.interceptLogisticsUserSecretKey,
|
|
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
31
31
|
sortColumns: SortColumnsField;
|
|
32
32
|
headerProvince: boolean;
|
|
33
33
|
constructor(options: PickOption);
|
|
34
|
-
getChildren: () => (
|
|
34
|
+
getChildren: () => (Province | City | District | Detail | ReceiverName | ReceiverMobile | undefined)[];
|
|
35
35
|
getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
|
|
36
36
|
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
37
37
|
renderLog: (r: Record) => React.JSX.Element | null;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, 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, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonMultiStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonMultiStatus | JstSendGood | LogisticsInterception | PublicGoods | PublicReissueGoods | StatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.6",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.7.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.7.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.7.6",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.7.6",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "28497f73db84e16b6e6ae0b280e8e4158a3f1731",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|