@kmkf-fe-packages/services-components 1.0.9 → 1.0.10-rc.1
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/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -1
- package/dist/esm/components/Common/index.js +2 -2
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.js +3 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +2 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/type.d.ts +6 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "
|
|
2
|
+
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryWdtLogisticsCompany" | "queryWdtSendData" | "queryLabel";
|
|
3
3
|
declare const Global: ({ children, requestList, repeatRequestList }: React.PropsWithChildren<{
|
|
4
4
|
requestList?: RequestType[] | undefined;
|
|
5
5
|
repeatRequestList?: Record<string, () => Promise<any>> | undefined;
|
|
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
import React, { useEffect, useState } from "react";
|
|
17
17
|
import { Skeleton, Result, Button } from "antd";
|
|
18
|
-
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData,
|
|
18
|
+
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryWdtLogisticsCompany, queryWdtSendData, queryAllLogisticsCompany, queryLabel } from "../../service/api";
|
|
19
19
|
import { servers } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
20
|
var Global = function Global(_ref) {
|
|
21
21
|
var children = _ref.children,
|
|
@@ -16,10 +16,10 @@ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Ty
|
|
|
16
16
|
import React, { useState, useMemo } from "react";
|
|
17
17
|
import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
|
-
import { CopyToClipboard } from
|
|
19
|
+
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
20
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
20
21
|
import styles from "./index.module.less";
|
|
21
22
|
import defaultImg from "./img/default-img.png";
|
|
22
|
-
import CopyText from "../../commonComponents/CopyText";
|
|
23
23
|
var Paragraph = Typography.Paragraph;
|
|
24
24
|
export var getFormItem = function getFormItem(_ref) {
|
|
25
25
|
var name = _ref.name,
|
|
@@ -13,6 +13,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
templateId?: string;
|
|
16
|
+
flowTemplateKey?: string;
|
|
16
17
|
workOrderUniqueKey?: string;
|
|
17
18
|
constructor(options: PickOption);
|
|
18
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -32,6 +32,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
32
32
|
_defineProperty(this, "children", void 0);
|
|
33
33
|
_defineProperty(this, "dataType", void 0);
|
|
34
34
|
_defineProperty(this, "templateId", void 0);
|
|
35
|
+
_defineProperty(this, "flowTemplateKey", void 0);
|
|
35
36
|
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
36
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
38
|
var _record;
|
|
@@ -103,6 +104,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
103
104
|
this.formField = "".concat(options.id, "_input");
|
|
104
105
|
this.type = options.type;
|
|
105
106
|
this.templateId = options.templateId;
|
|
107
|
+
this.flowTemplateKey = options.flowTemplateKey;
|
|
106
108
|
this.componentConfig = options.componentConfig;
|
|
107
109
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
108
110
|
this.rules = [{
|
|
@@ -167,6 +169,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
167
169
|
break;
|
|
168
170
|
}
|
|
169
171
|
params = {
|
|
172
|
+
flowTemplateKey: _this.flowTemplateKey,
|
|
170
173
|
templateId: _this.templateId,
|
|
171
174
|
workOrderUniqueKey: _this.workOrderUniqueKey,
|
|
172
175
|
needCheckComponentList: [{
|
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, WdtReturn, WdtExchange, 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 | BsLogistics | BasicCascader | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicInput | 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 | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label;
|
package/dist/esm/factory.js
CHANGED
|
@@ -139,6 +139,8 @@ export var factory = function factory(type, options) {
|
|
|
139
139
|
return new BsPosting(options);
|
|
140
140
|
case "BS_GOODS":
|
|
141
141
|
return new BsGoods(options);
|
|
142
|
+
case "WDT_GOODS":
|
|
143
|
+
return new WdtGoods(options);
|
|
142
144
|
case "BS_EXCHANGE_GOODS":
|
|
143
145
|
return new BsExchange(options);
|
|
144
146
|
case "WDT_EXCHANGE_GOODS":
|
|
@@ -201,9 +203,6 @@ export var factory = function factory(type, options) {
|
|
|
201
203
|
return new CommonDataTime(options);
|
|
202
204
|
case "FLOW_UPDATE_DATETIME":
|
|
203
205
|
return new CommonDataTime(options);
|
|
204
|
-
case "WDT_GOODS":
|
|
205
|
-
// 万里牛商品
|
|
206
|
-
return new WdtGoods(options);
|
|
207
206
|
case "BUSINESS_ORDER_NO":
|
|
208
207
|
return new CommonInput(options);
|
|
209
208
|
case "PAYMENT_VOUCHER_CODE":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -70,9 +70,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
70
70
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
71
71
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
72
72
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
73
|
-
export { default as NodeInput } from
|
|
74
|
-
export { default as FlowWorkOrderStatus } from
|
|
75
|
-
export { default as MsgStatus } from
|
|
73
|
+
export { default as NodeInput } from './components/NodeInput';
|
|
74
|
+
export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
|
|
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
78
|
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export interface ComponentInterface {
|
|
|
51
51
|
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
|
|
52
52
|
options?: Array<any>;
|
|
53
53
|
templateId?: string;
|
|
54
|
+
flowTemplateKey?: string;
|
|
54
55
|
workOrderUniqueKey?: string;
|
|
55
56
|
platform?: PlatForm;
|
|
56
57
|
parentName?: string;
|
|
@@ -168,7 +169,10 @@ export interface ComponentInterface {
|
|
|
168
169
|
rulesOptions?: Array<any>;
|
|
169
170
|
selectRules?: Array<string>;
|
|
170
171
|
logistics?: string;
|
|
171
|
-
|
|
172
|
+
repeatConfig?: {
|
|
173
|
+
repeatRange: string;
|
|
174
|
+
repeatComponents: any[];
|
|
175
|
+
};
|
|
172
176
|
};
|
|
173
177
|
effects?: {
|
|
174
178
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
@@ -237,7 +241,7 @@ export interface ComponentInterface {
|
|
|
237
241
|
getComponentValue: (r: Record) => any;
|
|
238
242
|
formDataTransform?: (r: any) => any;
|
|
239
243
|
}
|
|
240
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width">;
|
|
244
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey">;
|
|
241
245
|
export declare type ColumnConfig = {
|
|
242
246
|
id: string;
|
|
243
247
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10-rc.1",
|
|
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.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^1.0.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^1.0.10-rc.1",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^1.0.10-rc.1"
|
|
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": "8366453c2feec21cc0ab486be3ab76c5f2382603",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|