@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.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/dist/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +437 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
- package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -4
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
- package/dist/esm/components/BS/BsLogistics/index.js +50 -9
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
- package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
- package/dist/esm/components/BS/common/BsMemo.js +5 -1
- package/dist/esm/components/BS/common/BsType.js +5 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
- package/dist/esm/components/BS/common/expressCode.js +6 -0
- package/dist/esm/components/BS/common/expressCompany.js +20 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +45 -24
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +96 -36
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
- package/dist/esm/components/JST/JstSendGood/index.js +66 -18
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
- package/dist/esm/components/LogisticsInterception/index.js +30 -7
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
- package/dist/esm/components/OrderSubForm/index.js +18 -1
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +43 -28
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +46 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +80 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +43 -30
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +18 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +22 -2
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +6 -5
- package/dist/esm/components/TradeId/index.js +31 -15
- package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +40 -10
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +41 -14
- package/dist/esm/service/request.js +1 -4
- package/dist/esm/type.d.ts +43 -3
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
package/dist/esm/index.js
CHANGED
|
@@ -101,6 +101,10 @@ export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
|
|
106
|
+
export { default as KmExchange } from "./components/KM/KmExchange";
|
|
107
|
+
|
|
104
108
|
// TODO: ERP 打款工单使用
|
|
105
109
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
106
110
|
export { factory } from "./factory";
|
|
@@ -115,4 +119,5 @@ import * as _ErpScenes from "./commonComponents/ErpContext";
|
|
|
115
119
|
export { _ErpScenes as ErpScenes };
|
|
116
120
|
import * as _servers from "./service/api";
|
|
117
121
|
export { _servers as servers };
|
|
118
|
-
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
122
|
+
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
123
|
+
export * from "./Hooks";
|
|
@@ -2,6 +2,7 @@ export declare const replaceCheck: (data: any) => Promise<any>;
|
|
|
2
2
|
export declare const queryAddressData: () => Promise<void>;
|
|
3
3
|
export declare const queryBsAddressData: () => Promise<void>;
|
|
4
4
|
export declare const queryWdtAddressData: () => Promise<void>;
|
|
5
|
+
export declare const queryJstAddressData: () => Promise<void>;
|
|
5
6
|
export declare const queryPlatData: () => Promise<void>;
|
|
6
7
|
export declare const queryExpressInterceptData: () => Promise<void>;
|
|
7
8
|
export declare const queryLogisticsAddressData: () => Promise<void>;
|
|
@@ -10,6 +11,8 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
|
10
11
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
12
|
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
13
|
export declare const queryGYLogisticsCompany: () => Promise<void>;
|
|
14
|
+
export declare const queryJYLogisticsCompany: () => Promise<void>;
|
|
15
|
+
export declare const queryJKYLogisticsCompany: () => Promise<void>;
|
|
13
16
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
14
17
|
export declare const queryKMLogisticsCompany: () => Promise<void>;
|
|
15
18
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers, JstAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import get from "lodash/get";
|
|
15
15
|
import request from "./request";
|
|
16
16
|
// 重复校验
|
|
@@ -80,6 +80,26 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
80
80
|
instance.addressOptions = toTree(list, 1);
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
+
export var queryJstAddressData = function queryJstAddressData() {
|
|
84
|
+
return request({
|
|
85
|
+
url: "/qy/gdfw/template/queryJstAreas/noLogin",
|
|
86
|
+
method: "get",
|
|
87
|
+
data: {}
|
|
88
|
+
}).then(function (resp) {
|
|
89
|
+
var map = {};
|
|
90
|
+
var res = {};
|
|
91
|
+
var _resp$data3 = resp.data,
|
|
92
|
+
list = _resp$data3 === void 0 ? [] : _resp$data3;
|
|
93
|
+
for (var i = 0; i < list.length; i++) {
|
|
94
|
+
res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
|
|
95
|
+
map[list[i]["name"]] = list[i]["id"];
|
|
96
|
+
}
|
|
97
|
+
var instance = JstAddressData.getInstance();
|
|
98
|
+
instance.addrData = res;
|
|
99
|
+
instance.addrNameMap = map;
|
|
100
|
+
instance.addressOptions = toTree(list, 1);
|
|
101
|
+
});
|
|
102
|
+
};
|
|
83
103
|
export var queryPlatData = function queryPlatData() {
|
|
84
104
|
return request({
|
|
85
105
|
url: "/qy/platform/listPlatform/noLogin",
|
|
@@ -217,9 +237,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
217
237
|
}
|
|
218
238
|
});
|
|
219
239
|
instance.statusConditionOptions = tempList;
|
|
220
|
-
}).catch(function (e) {
|
|
221
|
-
console.log(e);
|
|
222
|
-
});
|
|
240
|
+
}).catch(function (e) {});
|
|
223
241
|
};
|
|
224
242
|
export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
225
243
|
return request({
|
|
@@ -230,9 +248,7 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
|
230
248
|
var data = res.data;
|
|
231
249
|
var instance = LogisticsAddressData.getInstance();
|
|
232
250
|
instance.addressData = data;
|
|
233
|
-
}).catch(function (e) {
|
|
234
|
-
console.log(e);
|
|
235
|
-
});
|
|
251
|
+
}).catch(function (e) {});
|
|
236
252
|
};
|
|
237
253
|
export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
238
254
|
return request({
|
|
@@ -255,37 +271,49 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
|
|
|
255
271
|
var instance = ExpressData.getInstance("wdt");
|
|
256
272
|
return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
|
|
257
273
|
instance.expressData = data;
|
|
258
|
-
}).catch(
|
|
274
|
+
}).catch(function () {});
|
|
259
275
|
};
|
|
260
276
|
export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
261
277
|
var instance = ExpressData.getInstance("bsE3");
|
|
262
278
|
return servers.BSE3.getLogisticsDataAsync().then(function (data) {
|
|
263
279
|
instance.expressData = data;
|
|
264
|
-
}).catch(
|
|
280
|
+
}).catch(function () {});
|
|
265
281
|
};
|
|
266
282
|
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
267
283
|
var instance = ExpressData.getInstance("jst");
|
|
268
284
|
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
269
285
|
instance.expressData = data;
|
|
270
|
-
}).catch(
|
|
286
|
+
}).catch(function () {});
|
|
271
287
|
};
|
|
272
288
|
export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
|
|
273
289
|
var instance = ExpressData.getInstance("gy");
|
|
274
290
|
return servers.GY.getLogisticsDataAsync().then(function (data) {
|
|
275
291
|
instance.expressData = data;
|
|
276
|
-
}).catch(
|
|
292
|
+
}).catch(function () {});
|
|
293
|
+
};
|
|
294
|
+
export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
295
|
+
var instance = ExpressData.getInstance("jy");
|
|
296
|
+
return servers.JY.getLogisticsDataAsync().then(function (data) {
|
|
297
|
+
instance.expressData = data;
|
|
298
|
+
}).catch(function () {});
|
|
299
|
+
};
|
|
300
|
+
export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
|
|
301
|
+
var instance = ExpressData.getInstance("jky");
|
|
302
|
+
return servers.JKY.getLogisticsDataAsync().then(function (data) {
|
|
303
|
+
instance.expressData = data;
|
|
304
|
+
}).catch(function () {});
|
|
277
305
|
};
|
|
278
306
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
279
307
|
var instance = ExpressData.getInstance("wln");
|
|
280
308
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
281
309
|
instance.expressData = data;
|
|
282
|
-
}).catch(
|
|
310
|
+
}).catch(function () {});
|
|
283
311
|
};
|
|
284
312
|
export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
|
|
285
313
|
var instance = ExpressData.getInstance("km");
|
|
286
314
|
return servers.KM.getLogisticsDataAsync().then(function (data) {
|
|
287
315
|
instance.expressData = data;
|
|
288
|
-
}).catch(
|
|
316
|
+
}).catch(function () {});
|
|
289
317
|
};
|
|
290
318
|
// 获取支付宝电子回单
|
|
291
319
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
@@ -309,7 +337,6 @@ export var queryLabel = function queryLabel() {
|
|
|
309
337
|
var finalData = JSON.parse(data);
|
|
310
338
|
instance.labelData = finalData;
|
|
311
339
|
} catch (e) {
|
|
312
|
-
console.error("转换标签数据数据异常");
|
|
313
340
|
instance.labelData = [];
|
|
314
341
|
}
|
|
315
342
|
});
|
|
@@ -52,13 +52,10 @@ var requestApi = function requestApi(_ref) {
|
|
|
52
52
|
message.warn(res.message);
|
|
53
53
|
} else if (infoLevel === 'error') {
|
|
54
54
|
message.error(res.message);
|
|
55
|
-
} else {
|
|
56
|
-
console.log(res.message);
|
|
57
|
-
}
|
|
55
|
+
} else {}
|
|
58
56
|
reject(res);
|
|
59
57
|
}
|
|
60
58
|
}).catch(function (e) {
|
|
61
|
-
console.error('请求错误', e);
|
|
62
59
|
reject(e);
|
|
63
60
|
});
|
|
64
61
|
});
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ export declare type FilterConfigType = {
|
|
|
33
33
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
34
34
|
formatFilterValue?: (p: any) => any;
|
|
35
35
|
};
|
|
36
|
-
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
|
|
36
|
+
export declare type FilterComponentType = "MultipleSelect" | "TagsSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput" | "AsyncSelect";
|
|
37
37
|
export interface ComponentInterface {
|
|
38
|
-
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
38
|
+
transformValue?: (val: any, record?: any, parentName?: string, parent?: any) => any;
|
|
39
39
|
id: string;
|
|
40
40
|
sortField: string;
|
|
41
41
|
sortChildField?: {
|
|
@@ -64,6 +64,7 @@ export interface ComponentInterface {
|
|
|
64
64
|
workOrderUniqueKey?: string;
|
|
65
65
|
platform?: PlatForm;
|
|
66
66
|
parentName?: string;
|
|
67
|
+
parent?: any;
|
|
67
68
|
exampleValue?: any;
|
|
68
69
|
compoundConfig?: Array<{
|
|
69
70
|
id: string;
|
|
@@ -77,6 +78,34 @@ export interface ComponentInterface {
|
|
|
77
78
|
*/
|
|
78
79
|
formItemIndex?: number;
|
|
79
80
|
componentConfig?: {
|
|
81
|
+
/**
|
|
82
|
+
* @description 商品类组件选择商品来源配置
|
|
83
|
+
*/
|
|
84
|
+
goodsSource?: {
|
|
85
|
+
source?: "workOrder" | "erp";
|
|
86
|
+
sourceSettings?: {
|
|
87
|
+
filterMode?: "some" | "every";
|
|
88
|
+
filterRules?: {
|
|
89
|
+
leftValue: string;
|
|
90
|
+
compareSymbol: any;
|
|
91
|
+
rightValue?: any;
|
|
92
|
+
}[];
|
|
93
|
+
dataFilterConfig: {
|
|
94
|
+
[cpId: string]: {
|
|
95
|
+
isFilter?: boolean;
|
|
96
|
+
isShow?: boolean;
|
|
97
|
+
index?: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
keyMap: {
|
|
101
|
+
[key: string]: string;
|
|
102
|
+
};
|
|
103
|
+
workOrder: {
|
|
104
|
+
flowTemplateKey: string;
|
|
105
|
+
nodeId: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
80
109
|
/**
|
|
81
110
|
* @description 特殊自定义组件有的值
|
|
82
111
|
*/
|
|
@@ -212,6 +241,7 @@ export interface ComponentInterface {
|
|
|
212
241
|
repeatRange: string;
|
|
213
242
|
repeatComponents: any[];
|
|
214
243
|
};
|
|
244
|
+
sortColumns?: string;
|
|
215
245
|
};
|
|
216
246
|
effects?: {
|
|
217
247
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
@@ -219,6 +249,7 @@ export interface ComponentInterface {
|
|
|
219
249
|
handleChangeSingleWorkOrderMark?: (t: string, r: Record, id?: string) => void;
|
|
220
250
|
templateList?: any[];
|
|
221
251
|
templateDetail?: any[];
|
|
252
|
+
workOrderDetail?: Record;
|
|
222
253
|
isEditing?: boolean;
|
|
223
254
|
form?: FormInstance;
|
|
224
255
|
shopList?: any[];
|
|
@@ -293,7 +324,7 @@ export interface ComponentInterface {
|
|
|
293
324
|
getComponentValue: (r: Record) => any;
|
|
294
325
|
formDataTransform?: (r: any) => any;
|
|
295
326
|
}
|
|
296
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
327
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "parent" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
297
328
|
export declare type ColumnConfig = {
|
|
298
329
|
id: string;
|
|
299
330
|
name: string;
|
|
@@ -303,3 +334,12 @@ export declare type ColumnConfig = {
|
|
|
303
334
|
config?: ComponentInterface["componentConfig"];
|
|
304
335
|
templateConfig?: ComponentInterface["componentConfig"];
|
|
305
336
|
};
|
|
337
|
+
export interface ColumnsConfigI {
|
|
338
|
+
show: boolean;
|
|
339
|
+
delete: boolean;
|
|
340
|
+
width: number;
|
|
341
|
+
name: string;
|
|
342
|
+
id: string;
|
|
343
|
+
type: string;
|
|
344
|
+
config?: any;
|
|
345
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.9.0
|
|
3
|
+
"version": "2.9.0",
|
|
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.9.0
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.9.0
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.9.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.9.0",
|
|
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": "50a9ed976dfe5d2718b966cbd974a3d69c0bc1fd",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
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); }
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
10
|
-
if (isNull(val)) return null;
|
|
11
|
-
return val ? "是" : "否";
|
|
12
|
-
};
|
|
13
|
-
var getColumns = function getColumns() {
|
|
14
|
-
var data = {
|
|
15
|
-
//管易商品信息
|
|
16
|
-
GY_GOODS: [{
|
|
17
|
-
dataIndex: "goodName",
|
|
18
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
19
|
-
width: 150
|
|
20
|
-
}, {
|
|
21
|
-
dataIndex: "goodShortName",
|
|
22
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
23
|
-
width: 150
|
|
24
|
-
}, {
|
|
25
|
-
dataIndex: "goodNo",
|
|
26
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
27
|
-
width: 200
|
|
28
|
-
}, {
|
|
29
|
-
dataIndex: "specName",
|
|
30
|
-
title: "SKU\u540D\u79F0",
|
|
31
|
-
align: "center",
|
|
32
|
-
ellipsis: true,
|
|
33
|
-
width: 250
|
|
34
|
-
}, {
|
|
35
|
-
dataIndex: "specNo",
|
|
36
|
-
title: "SKU\u7F16\u7801",
|
|
37
|
-
align: "center",
|
|
38
|
-
ellipsis: true,
|
|
39
|
-
width: 150
|
|
40
|
-
}, {
|
|
41
|
-
dataIndex: "qty",
|
|
42
|
-
title: "\u6570\u91CF",
|
|
43
|
-
width: 100
|
|
44
|
-
}, {
|
|
45
|
-
dataIndex: "price",
|
|
46
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
47
|
-
width: 150
|
|
48
|
-
}, {
|
|
49
|
-
dataIndex: "amount",
|
|
50
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
51
|
-
width: 150
|
|
52
|
-
}, {
|
|
53
|
-
dataIndex: "originPrice",
|
|
54
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
55
|
-
width: 150
|
|
56
|
-
}, {
|
|
57
|
-
dataIndex: "originAmount",
|
|
58
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
59
|
-
width: 150
|
|
60
|
-
}, {
|
|
61
|
-
dataIndex: "discountFee",
|
|
62
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
63
|
-
width: 150
|
|
64
|
-
}, {
|
|
65
|
-
dataIndex: "amountAfter",
|
|
66
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
67
|
-
width: 150
|
|
68
|
-
}, {
|
|
69
|
-
dataIndex: "cancel",
|
|
70
|
-
title: "\u662F\u5426\u53D6\u6D88",
|
|
71
|
-
width: 150,
|
|
72
|
-
render: function render(val) {
|
|
73
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
dataIndex: "isGift",
|
|
77
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
78
|
-
width: 150,
|
|
79
|
-
render: function render(val) {
|
|
80
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
dataIndex: "skuNote",
|
|
84
|
-
title: "\u5546\u54C1\u5907\u6CE8",
|
|
85
|
-
width: 150
|
|
86
|
-
}].map(function (item) {
|
|
87
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
88
|
-
align: "center",
|
|
89
|
-
ellipsis: true
|
|
90
|
-
});
|
|
91
|
-
}),
|
|
92
|
-
//管易补发商品信息
|
|
93
|
-
GY_REISSUE_GOODS: [{
|
|
94
|
-
dataIndex: "goodName",
|
|
95
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
96
|
-
width: 150
|
|
97
|
-
}, {
|
|
98
|
-
dataIndex: "goodShortName",
|
|
99
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
100
|
-
width: 150
|
|
101
|
-
}, {
|
|
102
|
-
dataIndex: "goodNo",
|
|
103
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
104
|
-
width: 200
|
|
105
|
-
}, {
|
|
106
|
-
dataIndex: "specName",
|
|
107
|
-
title: "SKU\u540D\u79F0",
|
|
108
|
-
align: "center",
|
|
109
|
-
ellipsis: true,
|
|
110
|
-
width: 250
|
|
111
|
-
}, {
|
|
112
|
-
dataIndex: "specNo",
|
|
113
|
-
title: "SKU\u7F16\u7801",
|
|
114
|
-
align: "center",
|
|
115
|
-
ellipsis: true,
|
|
116
|
-
width: 150
|
|
117
|
-
}, {
|
|
118
|
-
dataIndex: "qty",
|
|
119
|
-
title: "\u6570\u91CF",
|
|
120
|
-
width: 100
|
|
121
|
-
}, {
|
|
122
|
-
dataIndex: "price",
|
|
123
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
124
|
-
width: 150
|
|
125
|
-
}, {
|
|
126
|
-
dataIndex: "amount",
|
|
127
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
128
|
-
width: 150
|
|
129
|
-
}, {
|
|
130
|
-
dataIndex: "originPrice",
|
|
131
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
132
|
-
width: 150
|
|
133
|
-
}, {
|
|
134
|
-
dataIndex: "originAmount",
|
|
135
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
136
|
-
width: 150
|
|
137
|
-
}, {
|
|
138
|
-
dataIndex: "isGift",
|
|
139
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
140
|
-
width: 150,
|
|
141
|
-
render: function render(val) {
|
|
142
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
143
|
-
}
|
|
144
|
-
}].map(function (item) {
|
|
145
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
146
|
-
align: "center",
|
|
147
|
-
ellipsis: true
|
|
148
|
-
});
|
|
149
|
-
}),
|
|
150
|
-
//管易退货商品信息
|
|
151
|
-
GY_RETURN_GOODS: [{
|
|
152
|
-
dataIndex: "goodName",
|
|
153
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
154
|
-
width: 150
|
|
155
|
-
}, {
|
|
156
|
-
dataIndex: "goodShortName",
|
|
157
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
158
|
-
width: 150
|
|
159
|
-
}, {
|
|
160
|
-
dataIndex: "goodNo",
|
|
161
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
162
|
-
width: 200
|
|
163
|
-
}, {
|
|
164
|
-
dataIndex: "specName",
|
|
165
|
-
title: "SKU\u540D\u79F0",
|
|
166
|
-
align: "center",
|
|
167
|
-
ellipsis: true,
|
|
168
|
-
width: 250
|
|
169
|
-
}, {
|
|
170
|
-
dataIndex: "specNo",
|
|
171
|
-
title: "SKU\u7F16\u7801",
|
|
172
|
-
align: "center",
|
|
173
|
-
ellipsis: true,
|
|
174
|
-
width: 150
|
|
175
|
-
}, {
|
|
176
|
-
dataIndex: "qty",
|
|
177
|
-
title: "\u6570\u91CF",
|
|
178
|
-
width: 100
|
|
179
|
-
}, {
|
|
180
|
-
dataIndex: "price",
|
|
181
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
182
|
-
width: 150
|
|
183
|
-
}, {
|
|
184
|
-
dataIndex: "amount",
|
|
185
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
186
|
-
width: 150
|
|
187
|
-
}, {
|
|
188
|
-
dataIndex: "originPrice",
|
|
189
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
190
|
-
width: 150
|
|
191
|
-
}, {
|
|
192
|
-
dataIndex: "originAmount",
|
|
193
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
194
|
-
width: 150
|
|
195
|
-
}, {
|
|
196
|
-
dataIndex: "discountFee",
|
|
197
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
198
|
-
width: 150
|
|
199
|
-
}, {
|
|
200
|
-
dataIndex: "amountAfter",
|
|
201
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
202
|
-
width: 150
|
|
203
|
-
}, {
|
|
204
|
-
dataIndex: "isGift",
|
|
205
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
206
|
-
width: 150,
|
|
207
|
-
render: function render(val) {
|
|
208
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
209
|
-
}
|
|
210
|
-
}].map(function (item) {
|
|
211
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
212
|
-
align: "center",
|
|
213
|
-
ellipsis: true
|
|
214
|
-
});
|
|
215
|
-
})
|
|
216
|
-
};
|
|
217
|
-
return data;
|
|
218
|
-
};
|
|
219
|
-
export default getColumns;
|