@kmkf-fe-packages/services-components 1.9.1 → 1.9.2-beta.0
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/README.md +3 -1
- 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/StatusSelect/index.js +28 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +4 -3
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +3 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -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,
|
|
@@ -72,6 +72,34 @@ var selectTypeMap = {
|
|
|
72
72
|
info: 'invoiceReason',
|
|
73
73
|
failValue: '失败'
|
|
74
74
|
},
|
|
75
|
+
AGREE_REFUND_STATUS: {
|
|
76
|
+
options: [{
|
|
77
|
+
value: '成功',
|
|
78
|
+
label: '成功',
|
|
79
|
+
color: '#52c41a'
|
|
80
|
+
}, {
|
|
81
|
+
value: '失败',
|
|
82
|
+
label: '失败',
|
|
83
|
+
color: '#ff4d4f'
|
|
84
|
+
}],
|
|
85
|
+
key: 'agreeRefundStatusValue',
|
|
86
|
+
info: 'agreeRefundStatusReason',
|
|
87
|
+
failValue: '失败'
|
|
88
|
+
},
|
|
89
|
+
REJECT_REFUND_STATUS: {
|
|
90
|
+
options: [{
|
|
91
|
+
value: '成功',
|
|
92
|
+
label: '成功',
|
|
93
|
+
color: '#52c41a'
|
|
94
|
+
}, {
|
|
95
|
+
value: '失败',
|
|
96
|
+
label: '失败',
|
|
97
|
+
color: '#ff4d4f'
|
|
98
|
+
}],
|
|
99
|
+
key: 'rejectRefundStatusValue',
|
|
100
|
+
info: 'rejectRefundStatusReason',
|
|
101
|
+
failValue: '失败'
|
|
102
|
+
},
|
|
75
103
|
INVOICING_STATUS: {
|
|
76
104
|
options: [{
|
|
77
105
|
value: '开票成功',
|
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, 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, KmErpSendGood, AfterSalesOrderId } 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) => PaymentVoucherCode | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | 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 | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | Label | KmErpSendGood | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -141,6 +141,8 @@ export var factory = function factory(type, options) {
|
|
|
141
141
|
return new BsPosting(options);
|
|
142
142
|
case "BS_GOODS":
|
|
143
143
|
return new BsGoods(options);
|
|
144
|
+
case "WDT_GOODS":
|
|
145
|
+
return new WdtGoods(options);
|
|
144
146
|
case "BS_EXCHANGE_GOODS":
|
|
145
147
|
return new BsExchange(options);
|
|
146
148
|
case "WDT_EXCHANGE_GOODS":
|
|
@@ -171,6 +173,8 @@ export var factory = function factory(type, options) {
|
|
|
171
173
|
case "CREATE_STATUS":
|
|
172
174
|
case "INVOICE_STATUS":
|
|
173
175
|
case "INVOICING_STATUS":
|
|
176
|
+
case "AGREE_REFUND_STATUS":
|
|
177
|
+
case "REJECT_REFUND_STATUS":
|
|
174
178
|
return new StatusSelect(options);
|
|
175
179
|
case "RETURN_GOODS_STATUS":
|
|
176
180
|
case "EXCHANGE_STATUS":
|
|
@@ -203,9 +207,6 @@ export var factory = function factory(type, options) {
|
|
|
203
207
|
return new CommonDataTime(options);
|
|
204
208
|
case "FLOW_UPDATE_DATETIME":
|
|
205
209
|
return new CommonDataTime(options);
|
|
206
|
-
case "WDT_GOODS":
|
|
207
|
-
// 万里牛商品
|
|
208
|
-
return new WdtGoods(options);
|
|
209
210
|
case "BUSINESS_ORDER_NO":
|
|
210
211
|
return new CommonInput(options);
|
|
211
212
|
case "PAYMENT_VOUCHER_CODE":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -93,3 +93,4 @@ export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
|
93
93
|
export { default as GetFormItem } from "./components/GetFormItem";
|
|
94
94
|
export { default as Global } from "./commonComponents/GlobalContext";
|
|
95
95
|
export * as ErpScenes from "./commonComponents/ErpContext";
|
|
96
|
+
export * as servers from "./service/api";
|
package/dist/esm/index.js
CHANGED
|
@@ -94,4 +94,6 @@ export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
|
94
94
|
export { default as GetFormItem } from "./components/GetFormItem";
|
|
95
95
|
export { default as Global } from "./commonComponents/GlobalContext";
|
|
96
96
|
import * as _ErpScenes from "./commonComponents/ErpContext";
|
|
97
|
-
export { _ErpScenes as ErpScenes };
|
|
97
|
+
export { _ErpScenes as ErpScenes };
|
|
98
|
+
import * as _servers from "./service/api";
|
|
99
|
+
export { _servers as servers };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2-beta.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"sync": "yarn build && yalc push",
|
|
11
10
|
"build": "yarn run lint && father build",
|
|
12
11
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
13
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
12
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'",
|
|
13
|
+
"sync": "yarn build && yalc push"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.9.0",
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.9.0",
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.9.2-beta.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.9.2-beta.0",
|
|
26
26
|
"react-pdf-js": "^5.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@ant-design/icons": "^4.7.0",
|
|
36
36
|
"antd": "^4.21.4",
|
|
37
|
+
"copy-to-clipboard": "^3.3.3",
|
|
37
38
|
"react": "^16.8.0"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a75411cd082e5025c4af1c760286aeae363f94d2",
|
|
43
44
|
"gitHooks": {
|
|
44
45
|
"pre-commit": "lint-staged"
|
|
45
46
|
}
|