@kmkf-fe-packages/services-components 2.10.9-beta.3 → 2.10.10
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/Hooks/useColumnsConfig.js +1 -1
- package/dist/esm/Hooks/useGoodsSourceFormat.js +5 -9
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -3
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +2 -17
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/constants.js +2 -6
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +12 -13
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -14
- package/dist/esm/commonComponents/OperationLog/index.js +0 -2
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -3
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/BS/BsLogistics/index.js +0 -9
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -5
- package/dist/esm/components/BS/common/expressCode.js +0 -3
- package/dist/esm/components/BS/common/expressCompany.js +0 -3
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +2 -4
- package/dist/esm/components/Common/dist/index.js +1 -3
- package/dist/esm/components/Common/index.js +3 -5
- package/dist/esm/components/CommonHeaderGood/index.js +1 -31
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/JST/JstSendGood/index.d.ts +1 -0
- package/dist/esm/components/JST/JstSendGood/index.js +5 -10
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.js +1 -3
- package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
- package/dist/esm/components/Public/Goods/index.js +1 -10
- package/dist/esm/components/ReceiverAddress/index.js +2 -3
- package/dist/esm/components/Select/index.js +0 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -8
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +10 -25
- package/dist/esm/service/request.js +1 -4
- package/package.json +4 -4
- package/dist/esm/components/DXD/DxdShopSelect/index.d.ts +0 -40
- package/dist/esm/components/DXD/DxdShopSelect/index.js +0 -120
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LogisticsInterception from "../components/LogisticsInterception";
|
|
2
2
|
import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
|
|
3
|
-
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/MsgStatus").default | import("../components/Public/Exchange").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/Public/ReturnWarehouse").default | import("../components/GY/GyGoods").default | import("../components/KM/KmExchange").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
|
|
4
4
|
export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
|
|
5
5
|
queryWorkOrderDetail?: ((p: any) => void) | undefined;
|
|
6
6
|
flatTemplateList?: any;
|
|
@@ -20,7 +20,7 @@ import { TEMPLATE_TYPE, DATA_SPLIT_COMPONENT_FIELDS_MAP } from "@kmkf-fe-package
|
|
|
20
20
|
|
|
21
21
|
//工单列表左对齐
|
|
22
22
|
var workOrderListAlignLeft = ["KM_VIDEO"];
|
|
23
|
-
var cantFilterType = ["CREATED_DATETIME", "UPDATE_DATETIME", "COMPLETED_DATETIME", "JST_LOGISTICS", "JST_ITEM_SELECT_THIRD", "JST_SUPPLY", "JST_SEND_GOOD", "TEXTAREA", "BS_SEND_GOOD", "BS_LOGISTICS", "BS_DELIVERY_NO", "WLN_SEND_GOOD", "WLN_LOGISTICS", "WDT_SEND_GOOD", "WDT_LOGISTICS", "KM_LOGISTICS", "REISSUE_LOGISTICS", "KM_SEND_GOOD", "KM_RETURN_WAREHOUSE", "GY_SEND_GOOD", "GY_LOGISTICS"
|
|
23
|
+
var cantFilterType = ["CREATED_DATETIME", "UPDATE_DATETIME", "COMPLETED_DATETIME", "JST_LOGISTICS", "JST_ITEM_SELECT_THIRD", "JST_SUPPLY", "JST_SEND_GOOD", "TEXTAREA", "BS_SEND_GOOD", "BS_LOGISTICS", "BS_DELIVERY_NO", "WLN_SEND_GOOD", "WLN_LOGISTICS", "WDT_SEND_GOOD", "WDT_LOGISTICS", "KM_LOGISTICS", "REISSUE_LOGISTICS", "KM_SEND_GOOD", "KM_RETURN_WAREHOUSE", "GY_SEND_GOOD", "GY_LOGISTICS"];
|
|
24
24
|
var cantShareFilterType = ["WORK_ORDER_ID_INPUT", "OPERATOR_INPUT", "HANDLER_INPUT", "COMPLETED_USER_INPUT"];
|
|
25
25
|
//需要拆行的组件
|
|
26
26
|
var SplitRowsType = Object.keys(DATA_SPLIT_COMPONENT_FIELDS_MAP);
|
|
@@ -311,7 +311,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
311
311
|
getShopList().then(function (_ref5) {
|
|
312
312
|
var data = _ref5.data;
|
|
313
313
|
setShopList(data);
|
|
314
|
-
}).catch(
|
|
314
|
+
}).catch(function () {});
|
|
315
315
|
queryCompanyUserSimpleInfoList().then(function (_ref6) {
|
|
316
316
|
var data = _ref6.data;
|
|
317
317
|
setUserList((data || []).map(function (_ref7) {
|
|
@@ -322,7 +322,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
322
322
|
value: userKey
|
|
323
323
|
};
|
|
324
324
|
}));
|
|
325
|
-
}).catch(
|
|
325
|
+
}).catch(function () {});
|
|
326
326
|
getGroupList().then(function (_ref8) {
|
|
327
327
|
var data = _ref8.data;
|
|
328
328
|
setGroupList((data || []).map(function (_ref9) {
|
|
@@ -335,7 +335,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
335
335
|
relationUserList: relationUserList
|
|
336
336
|
};
|
|
337
337
|
}));
|
|
338
|
-
}).catch(
|
|
338
|
+
}).catch(function () {});
|
|
339
339
|
|
|
340
340
|
// return () => {
|
|
341
341
|
// setShopList(void 0);
|
|
@@ -419,13 +419,9 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
419
419
|
// newFilterItems,
|
|
420
420
|
// allTableColumns,
|
|
421
421
|
// });
|
|
422
|
-
}).catch(function (error) {
|
|
423
|
-
console.log("**** 获取表头信息 error", error);
|
|
424
|
-
});
|
|
422
|
+
}).catch(function (error) {});
|
|
425
423
|
}
|
|
426
|
-
}).catch(function (error) {
|
|
427
|
-
console.log("**** in 获取流程数据 error", error);
|
|
428
|
-
});
|
|
424
|
+
}).catch(function (error) {});
|
|
429
425
|
}
|
|
430
426
|
}, [shopList, userList, groupList]);
|
|
431
427
|
return {
|
|
@@ -18,7 +18,6 @@ var getTemplate = function getTemplate(companyUserConfig) {
|
|
|
18
18
|
function useGetHasErpData() {
|
|
19
19
|
var companyUserConfig = react_redux_1.useSelector(toolkit_1.createSelector([function (state) {
|
|
20
20
|
var _a, _b, _c, _d;
|
|
21
|
-
console.log("state--useSelector", state);
|
|
22
21
|
/**
|
|
23
22
|
* pc main
|
|
24
23
|
* 端 workOrder
|
|
@@ -31,7 +30,6 @@ function useGetHasErpData() {
|
|
|
31
30
|
try {
|
|
32
31
|
companyUserConfig = JSON.parse(companyUserConfig);
|
|
33
32
|
} catch (e) {
|
|
34
|
-
console.error("companyUserConfig转换异常", companyUserConfig);
|
|
35
33
|
companyUserConfig = {};
|
|
36
34
|
}
|
|
37
35
|
}
|
|
@@ -42,7 +40,6 @@ function useGetHasErpData() {
|
|
|
42
40
|
setHasErpDataJson = _a[1];
|
|
43
41
|
react_1.useEffect(function () {
|
|
44
42
|
setHasErpDataJson(getTemplate(companyUserConfig));
|
|
45
|
-
console.log("companyUserConfig---", companyUserConfig);
|
|
46
43
|
}, [companyUserConfig]);
|
|
47
44
|
var hasErpData = react_1.useMemo(function () {
|
|
48
45
|
return JSON.parse(hasErpDataJson);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy" | "hasJky"
|
|
1
|
+
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy" | "hasJky";
|
|
2
2
|
declare function useGetHasErpData(reduxData: any): Record<HasErpDataKeyType, boolean>;
|
|
3
3
|
export default useGetHasErpData;
|
|
@@ -1,15 +1,9 @@
|
|
|
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
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
4
|
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; }
|
|
6
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
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; }
|
|
11
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
-
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); }
|
|
13
7
|
import { useEffect, useMemo, useState } from "react";
|
|
14
8
|
var getTemplate = function getTemplate(companyUserConfig) {
|
|
15
9
|
var _companyUserConfig$pl, _companyUserConfig$pl2, _companyUserConfig$pl3, _companyUserConfig$pl4, _companyUserConfig$pl5, _companyUserConfig$pl6, _companyUserConfig$pl7, _companyUserConfig$pl8, _companyUserConfig$pl9, _companyUserConfig$pl10, _companyUserConfig$pl11, _companyUserConfig$pl12, _companyUserConfig$pl13, _companyUserConfig$pl14, _companyUserConfig$pl15, _companyUserConfig$pl16, _companyUserConfig$pl17, _companyUserConfig$pl18, _companyUserConfig$pl19, _companyUserConfig$pl20, _companyUserConfig$pl21, _companyUserConfig$pl22, _companyUserConfig$pl23, _companyUserConfig$pl24;
|
|
@@ -21,13 +15,7 @@ var getTemplate = function getTemplate(companyUserConfig) {
|
|
|
21
15
|
hasJst: (_companyUserConfig$pl13 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl14 = companyUserConfig.plugins) === null || _companyUserConfig$pl14 === void 0 ? void 0 : (_companyUserConfig$pl15 = _companyUserConfig$pl14.jst) === null || _companyUserConfig$pl15 === void 0 ? void 0 : _companyUserConfig$pl15.show) !== null && _companyUserConfig$pl13 !== void 0 ? _companyUserConfig$pl13 : false,
|
|
22
16
|
hasGy: (_companyUserConfig$pl16 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl17 = companyUserConfig.plugins) === null || _companyUserConfig$pl17 === void 0 ? void 0 : (_companyUserConfig$pl18 = _companyUserConfig$pl17.gy) === null || _companyUserConfig$pl18 === void 0 ? void 0 : _companyUserConfig$pl18.show) !== null && _companyUserConfig$pl16 !== void 0 ? _companyUserConfig$pl16 : false,
|
|
23
17
|
hasJy: (_companyUserConfig$pl19 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl20 = companyUserConfig.plugins) === null || _companyUserConfig$pl20 === void 0 ? void 0 : (_companyUserConfig$pl21 = _companyUserConfig$pl20.juYi) === null || _companyUserConfig$pl21 === void 0 ? void 0 : _companyUserConfig$pl21.show) !== null && _companyUserConfig$pl19 !== void 0 ? _companyUserConfig$pl19 : false,
|
|
24
|
-
hasJky: (_companyUserConfig$pl22 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl23 = companyUserConfig.plugins) === null || _companyUserConfig$pl23 === void 0 ? void 0 : (_companyUserConfig$pl24 = _companyUserConfig$pl23.jky) === null || _companyUserConfig$pl24 === void 0 ? void 0 : _companyUserConfig$pl24.show) !== null && _companyUserConfig$pl22 !== void 0 ? _companyUserConfig$pl22 : false
|
|
25
|
-
hasDxd: ["SZF4ZGWZSNW6PYXMCIFEWBXT",
|
|
26
|
-
//test 测马奔腾
|
|
27
|
-
"6O47IBXFR26FJF4HUQ7WGO4H",
|
|
28
|
-
//prod 陈健企业工单
|
|
29
|
-
"FHLSISEYFB76GAGKP2MCHSV5" //prod 大希地
|
|
30
|
-
].includes(companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.companyKey)
|
|
18
|
+
hasJky: (_companyUserConfig$pl22 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl23 = companyUserConfig.plugins) === null || _companyUserConfig$pl23 === void 0 ? void 0 : (_companyUserConfig$pl24 = _companyUserConfig$pl23.jky) === null || _companyUserConfig$pl24 === void 0 ? void 0 : _companyUserConfig$pl24.show) !== null && _companyUserConfig$pl22 !== void 0 ? _companyUserConfig$pl22 : false
|
|
31
19
|
});
|
|
32
20
|
};
|
|
33
21
|
function useGetHasErpData(reduxData) {
|
|
@@ -45,13 +33,10 @@ function useGetHasErpData(reduxData) {
|
|
|
45
33
|
try {
|
|
46
34
|
companyUserConfig = JSON.parse(companyUserConfig);
|
|
47
35
|
} catch (e) {
|
|
48
|
-
console.error("companyUserConfig转换异常", companyUserConfig);
|
|
49
36
|
companyUserConfig = {};
|
|
50
37
|
}
|
|
51
38
|
}
|
|
52
|
-
return
|
|
53
|
-
companyKey: userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyKey
|
|
54
|
-
});
|
|
39
|
+
return companyUserConfig;
|
|
55
40
|
}, [reduxData]);
|
|
56
41
|
var _useState = useState(getTemplate({})),
|
|
57
42
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -62,9 +62,7 @@ var Global = function Global(_ref) {
|
|
|
62
62
|
}
|
|
63
63
|
setUserInfo(_userInfo);
|
|
64
64
|
localStorage.setItem("reduxData_userInfo", JSON.stringify(_userInfo));
|
|
65
|
-
} catch (e) {
|
|
66
|
-
console.error(e);
|
|
67
|
-
}
|
|
65
|
+
} catch (e) {}
|
|
68
66
|
}, [JSON.stringify(reduxData)]);
|
|
69
67
|
useEffect(function () {
|
|
70
68
|
initDataSource();
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { WdtShopDataCenter
|
|
1
|
+
import { WdtShopDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
2
2
|
export var erpMap = {
|
|
3
|
-
wdt: "hasWdt"
|
|
4
|
-
dxd: "hasDxd"
|
|
3
|
+
wdt: "hasWdt"
|
|
5
4
|
};
|
|
6
5
|
export var requestList = [{
|
|
7
6
|
request: WdtShopDataCenter.getInstance().fetchData,
|
|
8
7
|
erp: "wdt"
|
|
9
|
-
}, {
|
|
10
|
-
request: DxdShopDataCenter.getInstance().fetchData,
|
|
11
|
-
erp: "dxd"
|
|
12
8
|
}];
|
|
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { useEffect, useState } from "react";
|
|
12
12
|
import useGetHasErpData from "../hook/useGetHasErpData";
|
|
13
|
-
import { queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryJSTLogisticsCompany, queryWLNLogisticsCompany, queryGYLogisticsCompany, queryJYLogisticsCompany, queryJKYLogisticsCompany
|
|
13
|
+
import { queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryJSTLogisticsCompany, queryWLNLogisticsCompany, queryGYLogisticsCompany, queryJYLogisticsCompany, queryJKYLogisticsCompany } from "../../../service/api";
|
|
14
14
|
function useGetErpLogisticsCompany(reduxData, notJudgedErp) {
|
|
15
15
|
var _useState = useState("loading"),
|
|
16
16
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22,14 +22,14 @@ function useGetErpLogisticsCompany(reduxData, notJudgedErp) {
|
|
|
22
22
|
}, [hasErpData, notJudgedErp]);
|
|
23
23
|
var asyncQueryData = /*#__PURE__*/function () {
|
|
24
24
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
|
|
25
|
-
var hasWdt, hasE3, hasJst, hasWln, hasGy, hasJy, hasJky,
|
|
25
|
+
var hasWdt, hasE3, hasJst, hasWln, hasGy, hasJy, hasJky, promises;
|
|
26
26
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27
27
|
while (1) switch (_context.prev = _context.next) {
|
|
28
28
|
case 0:
|
|
29
29
|
if (!isReload) {
|
|
30
30
|
setGlobalState("loading");
|
|
31
31
|
}
|
|
32
|
-
hasWdt = hasErpData.hasWdt, hasE3 = hasErpData.hasE3, hasJst = hasErpData.hasJst, hasWln = hasErpData.hasWln, hasGy = hasErpData.hasGy, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky
|
|
32
|
+
hasWdt = hasErpData.hasWdt, hasE3 = hasErpData.hasE3, hasJst = hasErpData.hasJst, hasWln = hasErpData.hasWln, hasGy = hasErpData.hasGy, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky;
|
|
33
33
|
promises = [];
|
|
34
34
|
if (hasWdt || notJudgedErp) promises.push(queryWdtLogisticsCompany);
|
|
35
35
|
if (hasE3 || notJudgedErp) promises.push(queryBsE3LogisticsCompany);
|
|
@@ -38,25 +38,24 @@ function useGetErpLogisticsCompany(reduxData, notJudgedErp) {
|
|
|
38
38
|
if (hasGy || notJudgedErp) promises.push(queryGYLogisticsCompany);
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(queryJYLogisticsCompany);
|
|
40
40
|
if (hasJky || notJudgedErp) promises.push(queryJKYLogisticsCompany);
|
|
41
|
-
|
|
42
|
-
_context.
|
|
43
|
-
_context.next = 14;
|
|
41
|
+
_context.prev = 10;
|
|
42
|
+
_context.next = 13;
|
|
44
43
|
return Promise.all(promises.map(function (promise) {
|
|
45
44
|
return promise();
|
|
46
45
|
}));
|
|
47
|
-
case
|
|
46
|
+
case 13:
|
|
48
47
|
setGlobalState("success");
|
|
49
|
-
_context.next =
|
|
48
|
+
_context.next = 19;
|
|
50
49
|
break;
|
|
51
|
-
case
|
|
52
|
-
_context.prev =
|
|
53
|
-
_context.t0 = _context["catch"](
|
|
50
|
+
case 16:
|
|
51
|
+
_context.prev = 16;
|
|
52
|
+
_context.t0 = _context["catch"](10);
|
|
54
53
|
setGlobalState("failed");
|
|
55
|
-
case
|
|
54
|
+
case 19:
|
|
56
55
|
case "end":
|
|
57
56
|
return _context.stop();
|
|
58
57
|
}
|
|
59
|
-
}, _callee, null, [[
|
|
58
|
+
}, _callee, null, [[10, 16]]);
|
|
60
59
|
}));
|
|
61
60
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
62
61
|
return _ref.apply(this, arguments);
|
|
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { useEffect, useState } from "react";
|
|
12
12
|
import useGetHasErpData from "../hook/useGetHasErpData";
|
|
13
|
-
import { SendDataCenter
|
|
13
|
+
import { SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
function useGetErpSendData(reduxData, notJudgedErp) {
|
|
15
15
|
var _useState = useState("loading"),
|
|
16
16
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -23,7 +23,7 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
23
23
|
}, [hasErpData, notJudgedErp]);
|
|
24
24
|
var asyncQueryData = /*#__PURE__*/function () {
|
|
25
25
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
|
|
26
|
-
var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln,
|
|
26
|
+
var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln, promises;
|
|
27
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
@@ -31,7 +31,7 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
31
31
|
setGlobalState("loading");
|
|
32
32
|
}
|
|
33
33
|
_context.prev = 1;
|
|
34
|
-
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln
|
|
34
|
+
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln;
|
|
35
35
|
promises = [];
|
|
36
36
|
if (hasWdt || notJudgedErp) promises.push(SendDataCenter.getInstance("wdt").fetchData);
|
|
37
37
|
if (hasGy || notJudgedErp) promises.push(SendDataCenter.getInstance("gy").fetchData);
|
|
@@ -39,27 +39,23 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
|
|
40
40
|
if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
|
|
41
41
|
if (hasWln || notJudgedErp) promises.push(SendDataCenter.getInstance("wln").fetchData);
|
|
42
|
-
|
|
43
|
-
promises.push(SendDataCenter.getInstance("dxd").fetchData);
|
|
44
|
-
promises.push(DxdSuppliersData.getInstance().fetchData);
|
|
45
|
-
}
|
|
46
|
-
_context.next = 13;
|
|
42
|
+
_context.next = 12;
|
|
47
43
|
return Promise.all(promises.map(function (promise) {
|
|
48
44
|
return promise();
|
|
49
45
|
}));
|
|
50
|
-
case
|
|
46
|
+
case 12:
|
|
51
47
|
setGlobalState("success");
|
|
52
|
-
_context.next =
|
|
48
|
+
_context.next = 18;
|
|
53
49
|
break;
|
|
54
|
-
case
|
|
55
|
-
_context.prev =
|
|
50
|
+
case 15:
|
|
51
|
+
_context.prev = 15;
|
|
56
52
|
_context.t0 = _context["catch"](1);
|
|
57
53
|
setGlobalState("failed");
|
|
58
|
-
case
|
|
54
|
+
case 18:
|
|
59
55
|
case "end":
|
|
60
56
|
return _context.stop();
|
|
61
57
|
}
|
|
62
|
-
}, _callee, null, [[1,
|
|
58
|
+
}, _callee, null, [[1, 15]]);
|
|
63
59
|
}));
|
|
64
60
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
65
61
|
return _ref.apply(this, arguments);
|
|
@@ -29,7 +29,6 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
29
29
|
beforeList = JSON.parse(before);
|
|
30
30
|
afterList = JSON.parse(after);
|
|
31
31
|
} catch (e) {
|
|
32
|
-
console.log(e);
|
|
33
32
|
beforeList = [];
|
|
34
33
|
afterList = [];
|
|
35
34
|
}
|
|
@@ -136,7 +135,6 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
136
135
|
}
|
|
137
136
|
return /*#__PURE__*/React.createElement("div", null, content);
|
|
138
137
|
} catch (e) {
|
|
139
|
-
console.error("日志信息JSON转换异常", e);
|
|
140
138
|
return /*#__PURE__*/React.createElement("div", null, content);
|
|
141
139
|
}
|
|
142
140
|
};
|
|
@@ -25,7 +25,6 @@ var BsGoods = /** @class */function () {
|
|
|
25
25
|
var _a;
|
|
26
26
|
this.renderClient = function (record) {
|
|
27
27
|
var _a, _b;
|
|
28
|
-
console.log("in renderclient");
|
|
29
28
|
return !kmkf_utils_1.isNull(record === null || record === void 0 ? void 0 : record["" + _this.id]) ? react_1["default"].createElement(react_1["default"].Fragment, null, react_1["default"].createElement(ItemView_1["default"], {
|
|
30
29
|
id: _this.id,
|
|
31
30
|
label: _this.name,
|
|
@@ -40,7 +39,6 @@ var BsGoods = /** @class */function () {
|
|
|
40
39
|
};
|
|
41
40
|
this.renderLog = function (r) {
|
|
42
41
|
var _a;
|
|
43
|
-
console.log("in renderclient");
|
|
44
42
|
if (kmkf_utils_1.isNull(r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"])) return null;
|
|
45
43
|
return react_1["default"].createElement(Common_1.BsGoodsTable, {
|
|
46
44
|
list: (r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"]) || [],
|
|
@@ -55,7 +53,6 @@ var BsGoods = /** @class */function () {
|
|
|
55
53
|
};
|
|
56
54
|
this.editRender = function (p) {
|
|
57
55
|
var _a, _b, _c, _d, _e, _f;
|
|
58
|
-
console.log("in renderclient");
|
|
59
56
|
return react_1["default"].createElement(GetFormItem_1["default"], {
|
|
60
57
|
title: _this.name,
|
|
61
58
|
name: _this.id,
|
|
@@ -148,7 +148,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
148
148
|
required: true,
|
|
149
149
|
validator: function validator(_, value) {
|
|
150
150
|
var _value$bsGoods3;
|
|
151
|
-
console.log("111");
|
|
152
151
|
if (!value || !(value !== null && value !== void 0 && (_value$bsGoods3 = value.bsGoods) !== null && _value$bsGoods3 !== void 0 && _value$bsGoods3.length)) {
|
|
153
152
|
return Promise.reject(new Error("请选择bs商品"));
|
|
154
153
|
}
|
|
@@ -119,15 +119,6 @@ var typeMap = {
|
|
|
119
119
|
platformType: "jky",
|
|
120
120
|
companyDataType: "string",
|
|
121
121
|
companyCodeType: "arrayObject"
|
|
122
|
-
},
|
|
123
|
-
DXD_LOGISTICS: {
|
|
124
|
-
key: "dxdLogisticsList",
|
|
125
|
-
name: "大希地",
|
|
126
|
-
company: "dxdLogisticsCompany",
|
|
127
|
-
code: "dxdLogisticsCode",
|
|
128
|
-
platformType: "dxd",
|
|
129
|
-
companyDataType: "string",
|
|
130
|
-
companyCodeType: "arrayObject"
|
|
131
122
|
}
|
|
132
123
|
};
|
|
133
124
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import GetFormItem from "../../GetFormItem";
|
|
19
19
|
import ItemView from "../../../commonComponents/ItemView";
|
|
20
|
-
import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG
|
|
20
|
+
import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
21
21
|
import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
22
22
|
import { BsSystemOrderTable } from "../../Common";
|
|
23
23
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -34,8 +34,7 @@ var typeMap = {
|
|
|
34
34
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
|
|
35
35
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
|
|
36
36
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG,
|
|
37
|
-
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG
|
|
38
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG
|
|
37
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG
|
|
39
38
|
};
|
|
40
39
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
41
40
|
var _this = this,
|
|
@@ -79,8 +78,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
79
78
|
return {
|
|
80
79
|
name: item.title,
|
|
81
80
|
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
82
|
-
dataType: "arrayObject"
|
|
83
|
-
conditionOptionsSetting: item.conditionOptionsSetting
|
|
81
|
+
dataType: "arrayObject"
|
|
84
82
|
};
|
|
85
83
|
})));
|
|
86
84
|
});
|
|
@@ -7,13 +7,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
7
7
|
import system from "./system";
|
|
8
8
|
import bs_e3 from "./bs_e3";
|
|
9
9
|
import bs from "./bs";
|
|
10
|
-
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns
|
|
10
|
+
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import defaultColumns from "./defaultColumns";
|
|
12
12
|
export var getColumnsMap = function getColumnsMap(args) {
|
|
13
13
|
var _ref = args || {},
|
|
14
14
|
_ref$text = _ref.text,
|
|
15
15
|
text = _ref$text === void 0 ? "" : _ref$text;
|
|
16
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
16
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
17
17
|
text: text
|
|
18
18
|
})), bs_e3()), getWdtColumns({
|
|
19
19
|
text: text,
|
|
@@ -30,8 +30,6 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
30
30
|
disabled: true
|
|
31
31
|
})), getJkyColumns({
|
|
32
32
|
disabled: true
|
|
33
|
-
})), getDxdColumns({
|
|
34
|
-
disabled: true
|
|
35
33
|
})), getSkxColumns({})), {}, {
|
|
36
34
|
default: defaultColumns({
|
|
37
35
|
text: text
|
|
@@ -189,9 +189,7 @@ exports.showImage = function (_a) {
|
|
|
189
189
|
src: picUrl
|
|
190
190
|
}), react_1["default"].createElement("div", {
|
|
191
191
|
className: index_module_less_1["default"].options,
|
|
192
|
-
onClick: function onClick() {
|
|
193
|
-
console.log("show---", showHeader);
|
|
194
|
-
}
|
|
192
|
+
onClick: function onClick() {}
|
|
195
193
|
}, type === "itemId" && react_1["default"].createElement(TextTool, {
|
|
196
194
|
title: "商品id",
|
|
197
195
|
text: item.numIid
|
|
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
|
21
21
|
import styles from "./index.module.less";
|
|
22
22
|
import defaultImg from "./img/default-img.png";
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
|
-
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG,
|
|
24
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
25
25
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
26
26
|
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
27
27
|
import { ApaasImage } from "@kmkf-fe-packages/basic-components";
|
|
@@ -787,8 +787,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
787
787
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
788
788
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
789
789
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
790
|
-
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
791
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
790
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
792
791
|
};
|
|
793
792
|
var rowKeyMap = {
|
|
794
793
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -801,8 +800,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
801
800
|
JY_SYSTEM_ORDER: "tradeNo",
|
|
802
801
|
JKY_SYSTEM_ORDER: "tradeNo",
|
|
803
802
|
WDT_RETURN_BILL_NO: "refundNo",
|
|
804
|
-
PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
|
|
805
|
-
DXD_SYSTEM_ORDER: "orderNo"
|
|
803
|
+
PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
|
|
806
804
|
};
|
|
807
805
|
var rowSelection = {
|
|
808
806
|
type: isRadio ? "radio" : "checkbox",
|
|
@@ -19,7 +19,7 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
19
19
|
import { BsHeaderPic, BsHeaderChild } from "../BS/common";
|
|
20
20
|
import ReissueGift from "../BsE3/ReissueGift";
|
|
21
21
|
import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
|
|
22
|
-
import { getJstColumns, getKmColumns
|
|
22
|
+
import { getJstColumns, getKmColumns } from "@kmkf-fe-packages/basic-components";
|
|
23
23
|
var orderGoodsHeaderComponentMap = {
|
|
24
24
|
pic: BsHeaderPic
|
|
25
25
|
};
|
|
@@ -2564,36 +2564,6 @@ var GoodHeaderMap = {
|
|
|
2564
2564
|
},
|
|
2565
2565
|
moneyKey: "sellTotal"
|
|
2566
2566
|
},
|
|
2567
|
-
DXD_GOODS: {
|
|
2568
|
-
headerMap: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
|
|
2569
|
-
acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
|
|
2570
|
-
component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
|
|
2571
|
-
name: item.title,
|
|
2572
|
-
key: item.dataIndex,
|
|
2573
|
-
width: item.width || 150
|
|
2574
|
-
});
|
|
2575
|
-
return acc;
|
|
2576
|
-
}, {}),
|
|
2577
|
-
itemKey: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
|
|
2578
|
-
acc[item.dataIndex] = item.title;
|
|
2579
|
-
return acc;
|
|
2580
|
-
}, {})
|
|
2581
|
-
},
|
|
2582
|
-
DXD_SUPPLIERS: {
|
|
2583
|
-
headerMap: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
|
|
2584
|
-
acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
|
|
2585
|
-
component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
|
|
2586
|
-
name: item.title,
|
|
2587
|
-
key: item.dataIndex,
|
|
2588
|
-
width: item.width || 150
|
|
2589
|
-
});
|
|
2590
|
-
return acc;
|
|
2591
|
-
}, {}),
|
|
2592
|
-
itemKey: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
|
|
2593
|
-
acc[item.dataIndex] = item.title;
|
|
2594
|
-
return acc;
|
|
2595
|
-
}, {})
|
|
2596
|
-
},
|
|
2597
2567
|
JKY_REISSUE_GOODS: {
|
|
2598
2568
|
headerMap: {
|
|
2599
2569
|
goodsNo: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// 查询订单详情
|
|
2
2
|
export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
3
3
|
var _window, _window$parent;
|
|
4
|
-
console.log('请求ERP订单详情', tid);
|
|
5
4
|
(_window = window) === null || _window === void 0 ? void 0 : (_window$parent = _window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage({
|
|
6
5
|
method: 'queryOrder',
|
|
7
6
|
data: {
|
|
@@ -13,7 +12,6 @@ export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
|
13
12
|
// 查询抖店openId
|
|
14
13
|
export var queryDouDianOpenId = function queryDouDianOpenId(originTid) {
|
|
15
14
|
var _window2, _window2$parent;
|
|
16
|
-
console.log('查询抖音店铺买家id', originTid);
|
|
17
15
|
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$parent = _window2.parent) === null || _window2$parent === void 0 ? void 0 : _window2$parent.postMessage({
|
|
18
16
|
method: 'queryDouDianOpenId',
|
|
19
17
|
data: {
|
|
@@ -20,6 +20,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
20
20
|
children: ComponentInterface[];
|
|
21
21
|
dataType: ComponentInterface["dataType"];
|
|
22
22
|
format: ComponentInterface["format"];
|
|
23
|
+
effects: ComponentInterface["effects"];
|
|
23
24
|
constructor(options: PickOption);
|
|
24
25
|
getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
|
|
25
26
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -91,14 +91,6 @@ var typeMap = {
|
|
|
91
91
|
sendName: "jkySendName",
|
|
92
92
|
platformType: "jky",
|
|
93
93
|
dataType: "weakenArray"
|
|
94
|
-
},
|
|
95
|
-
DXD_SEND_GOOD: {
|
|
96
|
-
key: "dxdSendGood",
|
|
97
|
-
name: "dxd",
|
|
98
|
-
sendId: "dxdSendId",
|
|
99
|
-
sendName: "dxdSendName",
|
|
100
|
-
platformType: "dxd",
|
|
101
|
-
dataType: "weakenArray"
|
|
102
94
|
}
|
|
103
95
|
};
|
|
104
96
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -123,6 +115,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
123
115
|
_defineProperty(this, "children", void 0);
|
|
124
116
|
_defineProperty(this, "dataType", void 0);
|
|
125
117
|
_defineProperty(this, "format", void 0);
|
|
118
|
+
_defineProperty(this, "effects", void 0);
|
|
126
119
|
_defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
|
|
127
120
|
var _typeMap$options$type, _typeMap$options$type2, _typeMap$options$type3;
|
|
128
121
|
var sendName = {
|
|
@@ -187,7 +180,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
187
180
|
}).join(",");
|
|
188
181
|
});
|
|
189
182
|
_defineProperty(this, "editRender", function (p) {
|
|
190
|
-
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7;
|
|
183
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7, _this$effects;
|
|
191
184
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
192
185
|
title: _this.name,
|
|
193
186
|
name: _this.id,
|
|
@@ -199,6 +192,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
199
192
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
200
193
|
type: 3,
|
|
201
194
|
platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType,
|
|
195
|
+
form: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.form,
|
|
202
196
|
onlyShowFieldSelect: _this.componentConfig ? _this.componentConfig.showField === "sendName" : false
|
|
203
197
|
}))
|
|
204
198
|
});
|
|
@@ -232,7 +226,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
232
226
|
});
|
|
233
227
|
};
|
|
234
228
|
}
|
|
235
|
-
} : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"
|
|
229
|
+
} : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
236
230
|
searchDefaultConditions: SYMBOL.in,
|
|
237
231
|
type: item.type,
|
|
238
232
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
|
|
@@ -293,6 +287,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
293
287
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options, _options.type);
|
|
294
288
|
this.type = _options.type;
|
|
295
289
|
this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
|
|
290
|
+
this.effects = _options === null || _options === void 0 ? void 0 : _options.effects;
|
|
296
291
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
297
292
|
required: true,
|
|
298
293
|
validator: function validator(_, value) {
|
|
@@ -74,9 +74,7 @@ var PictureName = /*#__PURE__*/_createClass(function PictureName(options) {
|
|
|
74
74
|
document.body.removeChild(a);
|
|
75
75
|
window.URL.revokeObjectURL(url);
|
|
76
76
|
});
|
|
77
|
-
} catch (error) {
|
|
78
|
-
console.error(error);
|
|
79
|
-
}
|
|
77
|
+
} catch (error) {}
|
|
80
78
|
};
|
|
81
79
|
return /*#__PURE__*/React.createElement(Space, {
|
|
82
80
|
className: "pictruePc"
|
|
@@ -92,9 +92,7 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
92
92
|
document.body.removeChild(a);
|
|
93
93
|
window.URL.revokeObjectURL(url);
|
|
94
94
|
});
|
|
95
|
-
} catch (error) {
|
|
96
|
-
console.error(error);
|
|
97
|
-
}
|
|
95
|
+
} catch (error) {}
|
|
98
96
|
} else {
|
|
99
97
|
copy("".concat(hostUrl, "/").concat(item.url));
|
|
100
98
|
message.success('图片链接复制成功');
|
|
@@ -45,9 +45,7 @@ var typeMap = {
|
|
|
45
45
|
}
|
|
46
46
|
version = ((_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl = _companyUserConfig.plugins) === null || _companyUserConfig$pl === void 0 ? void 0 : (_companyUserConfig$pl2 = _companyUserConfig$pl.wdt) === null || _companyUserConfig$pl2 === void 0 ? void 0 : _companyUserConfig$pl2.version) || "flagship";
|
|
47
47
|
}
|
|
48
|
-
} catch (error) {
|
|
49
|
-
console.error(error);
|
|
50
|
-
}
|
|
48
|
+
} catch (error) {}
|
|
51
49
|
if (version === "flagship") return 1;
|
|
52
50
|
},
|
|
53
51
|
handleOptions: function handleOptions(options) {
|
|
@@ -229,15 +227,14 @@ var AsyncSelect = /*#__PURE__*/function () {
|
|
|
229
227
|
componentConfig: this.componentConfig
|
|
230
228
|
});
|
|
231
229
|
}
|
|
232
|
-
_context.next =
|
|
230
|
+
_context.next = 13;
|
|
233
231
|
break;
|
|
234
232
|
case 11:
|
|
235
233
|
_context.prev = 11;
|
|
236
234
|
_context.t1 = _context["catch"](1);
|
|
237
|
-
|
|
238
|
-
case 14:
|
|
235
|
+
case 13:
|
|
239
236
|
return _context.abrupt("return", options);
|
|
240
|
-
case
|
|
237
|
+
case 14:
|
|
241
238
|
case "end":
|
|
242
239
|
return _context.stop();
|
|
243
240
|
}
|
|
@@ -35,14 +35,6 @@ var CONFIG_MAP = {
|
|
|
35
35
|
name: "吉客云",
|
|
36
36
|
key: "jkyGoods"
|
|
37
37
|
},
|
|
38
|
-
DXD_GOODS: {
|
|
39
|
-
name: "大希地",
|
|
40
|
-
key: "dxdGoods"
|
|
41
|
-
},
|
|
42
|
-
DXD_SUPPLIERS: {
|
|
43
|
-
name: "大希地供应商",
|
|
44
|
-
key: "dxdSuppliers"
|
|
45
|
-
},
|
|
46
38
|
WDT_AFTERSALE_GOODS: {
|
|
47
39
|
name: "旺店通售后",
|
|
48
40
|
key: "wdtAftersaleGoods"
|
|
@@ -86,8 +78,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
|
86
78
|
return {
|
|
87
79
|
name: item.title,
|
|
88
80
|
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
89
|
-
dataType: "arrayObject"
|
|
90
|
-
conditionOptionsSetting: item.conditionOptionsSetting
|
|
81
|
+
dataType: "arrayObject"
|
|
91
82
|
};
|
|
92
83
|
});
|
|
93
84
|
});
|
|
@@ -94,13 +94,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
94
94
|
copy("".concat(addressText).concat(detail));
|
|
95
95
|
message.success('复制成功');
|
|
96
96
|
case 14:
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 18;
|
|
98
98
|
break;
|
|
99
99
|
case 16:
|
|
100
100
|
_context.prev = 16;
|
|
101
101
|
_context.t0 = _context["catch"](1);
|
|
102
|
-
|
|
103
|
-
case 19:
|
|
102
|
+
case 18:
|
|
104
103
|
case "end":
|
|
105
104
|
return _context.stop();
|
|
106
105
|
}
|
|
@@ -83,7 +83,6 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
83
83
|
});
|
|
84
84
|
_defineProperty(this, "renderClient", function (record) {
|
|
85
85
|
var _this$optionsMap;
|
|
86
|
-
console.log("renderClient", record, _this.getIsValue());
|
|
87
86
|
// 特殊自定义组件为平台状态时匹配出label
|
|
88
87
|
var label = _this.getIsValue() ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
|
|
89
88
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect,
|
|
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, 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) => BsLogistics | BsSystemOrder | CommonMultiStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | JstSendGood | MsgStatus | PublicExchange | PublicGoods | PublicReissueGoods | 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 | BsE3Reissue | 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 | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, Ba
|
|
|
2
2
|
// CommonTradeId,
|
|
3
3
|
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
4
4
|
// WlnGoods,
|
|
5
|
-
BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect,
|
|
5
|
+
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";
|
|
6
6
|
export var factory = function factory(type, options) {
|
|
7
7
|
var _options$componentCon;
|
|
8
8
|
switch (type) {
|
|
@@ -141,7 +141,6 @@ export var factory = function factory(type, options) {
|
|
|
141
141
|
return new JstSupply(options);
|
|
142
142
|
case "BS_SYSTEM_ORDER":
|
|
143
143
|
case "KM_SYSTEM_ORDER":
|
|
144
|
-
case "DXD_SYSTEM_ORDER":
|
|
145
144
|
case "WLN_SYSTEM_ORDER":
|
|
146
145
|
case "WDT_SYSTEM_ORDER":
|
|
147
146
|
case "BS_E3_SYSTEM_ORDER":
|
|
@@ -161,7 +160,6 @@ export var factory = function factory(type, options) {
|
|
|
161
160
|
case "GY_SEND_GOOD":
|
|
162
161
|
case "JY_SEND_GOOD":
|
|
163
162
|
case "JKY_SEND_GOOD":
|
|
164
|
-
case "DXD_SEND_GOOD":
|
|
165
163
|
return new JstSendGood(options);
|
|
166
164
|
case "KM_RETURN_WAREHOUSE":
|
|
167
165
|
return new ReturnWarehouse(options);
|
|
@@ -180,8 +178,6 @@ export var factory = function factory(type, options) {
|
|
|
180
178
|
case "WLN_GOODS":
|
|
181
179
|
case "WDT_AFTERSALE_GOODS":
|
|
182
180
|
case "JST_AFTERSALE_GOODS":
|
|
183
|
-
case "DXD_GOODS":
|
|
184
|
-
case "DXD_SUPPLIERS":
|
|
185
181
|
return new PublicGoods(options);
|
|
186
182
|
case "WLN_REISSUE_GOODS":
|
|
187
183
|
case "JST_REISSUE_GOODS":
|
|
@@ -231,7 +227,6 @@ export var factory = function factory(type, options) {
|
|
|
231
227
|
case "JKY_LOGISTICS":
|
|
232
228
|
case "SKX_LOGISTICS":
|
|
233
229
|
case "SKX_RETURN_LOGISTICS":
|
|
234
|
-
case "DXD_LOGISTICS":
|
|
235
230
|
return new BsLogistics(options);
|
|
236
231
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
237
232
|
return new FlowWorkOrderId(options);
|
|
@@ -306,8 +301,6 @@ export var factory = function factory(type, options) {
|
|
|
306
301
|
return new MemberLevel(options);
|
|
307
302
|
case "WDT_SHOP":
|
|
308
303
|
return new WdtShopSelect(options);
|
|
309
|
-
case "DXD_SHOP":
|
|
310
|
-
return new DxdShopSelect(options);
|
|
311
304
|
case "KM_VIDEO":
|
|
312
305
|
return new KmVideo(options);
|
|
313
306
|
case "WDT_TAGS":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -87,7 +87,6 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
|
87
87
|
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
88
88
|
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
89
89
|
export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
|
|
90
|
-
export { default as DxdShopSelect } from "./components/DXD/DxdShopSelect";
|
|
91
90
|
export { default as KmVideo } from "./components/KM/KmVideo";
|
|
92
91
|
export { default as CommonInput } from "./components/CommonInput";
|
|
93
92
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
package/dist/esm/index.js
CHANGED
|
@@ -87,7 +87,6 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
|
|
|
87
87
|
export { default as WdtReturn } from "./components/WDT/WdtReturn";
|
|
88
88
|
export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
89
89
|
export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
|
|
90
|
-
export { default as DxdShopSelect } from "./components/DXD/DxdShopSelect";
|
|
91
90
|
export { default as KmVideo } from "./components/KM/KmVideo";
|
|
92
91
|
export { default as CommonInput } from "./components/CommonInput";
|
|
93
92
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
@@ -15,7 +15,6 @@ export declare const queryJYLogisticsCompany: () => Promise<void>;
|
|
|
15
15
|
export declare const queryJKYLogisticsCompany: () => Promise<void>;
|
|
16
16
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
17
17
|
export declare const queryKMLogisticsCompany: () => Promise<void>;
|
|
18
|
-
export declare const queryDXDLogisticsCompany: () => Promise<void>;
|
|
19
18
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
20
19
|
export declare const queryLabel: () => Promise<any>;
|
|
21
20
|
export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -142,7 +142,6 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
142
142
|
SF: "顺丰",
|
|
143
143
|
ZTO: "中通",
|
|
144
144
|
JT: "极兔",
|
|
145
|
-
STO: "申通",
|
|
146
145
|
DEFAULT: ""
|
|
147
146
|
};
|
|
148
147
|
var expressList = data.map(function (item) {
|
|
@@ -211,7 +210,6 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
211
210
|
value: _toConsumableArray(typeObj[key]).join(",")
|
|
212
211
|
};
|
|
213
212
|
});
|
|
214
|
-
console.log("typeObj---", typeObj, instance.typeOptions, companyTypeMap);
|
|
215
213
|
instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
|
|
216
214
|
var type = key.split("|")[0];
|
|
217
215
|
return {
|
|
@@ -239,10 +237,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
239
237
|
}
|
|
240
238
|
});
|
|
241
239
|
instance.statusConditionOptions = tempList;
|
|
242
|
-
|
|
243
|
-
}).catch(function (e) {
|
|
244
|
-
console.log(e);
|
|
245
|
-
});
|
|
240
|
+
}).catch(function (e) {});
|
|
246
241
|
};
|
|
247
242
|
export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
248
243
|
return request({
|
|
@@ -253,9 +248,7 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
|
253
248
|
var data = res.data;
|
|
254
249
|
var instance = LogisticsAddressData.getInstance();
|
|
255
250
|
instance.addressData = data;
|
|
256
|
-
}).catch(function (e) {
|
|
257
|
-
console.log(e);
|
|
258
|
-
});
|
|
251
|
+
}).catch(function (e) {});
|
|
259
252
|
};
|
|
260
253
|
export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
261
254
|
return request({
|
|
@@ -278,56 +271,49 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
|
|
|
278
271
|
var instance = ExpressData.getInstance("wdt");
|
|
279
272
|
return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
|
|
280
273
|
instance.expressData = data;
|
|
281
|
-
}).catch(
|
|
274
|
+
}).catch(function () {});
|
|
282
275
|
};
|
|
283
276
|
export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
284
277
|
var instance = ExpressData.getInstance("bsE3");
|
|
285
278
|
return servers.BSE3.getLogisticsDataAsync().then(function (data) {
|
|
286
279
|
instance.expressData = data;
|
|
287
|
-
}).catch(
|
|
280
|
+
}).catch(function () {});
|
|
288
281
|
};
|
|
289
282
|
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
290
283
|
var instance = ExpressData.getInstance("jst");
|
|
291
284
|
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
292
285
|
instance.expressData = data;
|
|
293
|
-
}).catch(
|
|
286
|
+
}).catch(function () {});
|
|
294
287
|
};
|
|
295
288
|
export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
|
|
296
289
|
var instance = ExpressData.getInstance("gy");
|
|
297
290
|
return servers.GY.getLogisticsDataAsync().then(function (data) {
|
|
298
291
|
instance.expressData = data;
|
|
299
|
-
}).catch(
|
|
292
|
+
}).catch(function () {});
|
|
300
293
|
};
|
|
301
294
|
export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
302
295
|
var instance = ExpressData.getInstance("jy");
|
|
303
296
|
return servers.JY.getLogisticsDataAsync().then(function (data) {
|
|
304
297
|
instance.expressData = data;
|
|
305
|
-
}).catch(
|
|
298
|
+
}).catch(function () {});
|
|
306
299
|
};
|
|
307
300
|
export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
|
|
308
301
|
var instance = ExpressData.getInstance("jky");
|
|
309
|
-
console.log("queryJKYLogisticsCompany");
|
|
310
302
|
return servers.JKY.getLogisticsDataAsync().then(function (data) {
|
|
311
303
|
instance.expressData = data;
|
|
312
|
-
}).catch(
|
|
304
|
+
}).catch(function () {});
|
|
313
305
|
};
|
|
314
306
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
315
307
|
var instance = ExpressData.getInstance("wln");
|
|
316
308
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
317
309
|
instance.expressData = data;
|
|
318
|
-
}).catch(
|
|
310
|
+
}).catch(function () {});
|
|
319
311
|
};
|
|
320
312
|
export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
|
|
321
313
|
var instance = ExpressData.getInstance("km");
|
|
322
314
|
return servers.KM.getLogisticsDataAsync().then(function (data) {
|
|
323
315
|
instance.expressData = data;
|
|
324
|
-
}).catch(
|
|
325
|
-
};
|
|
326
|
-
export var queryDXDLogisticsCompany = function queryDXDLogisticsCompany() {
|
|
327
|
-
var instance = ExpressData.getInstance("dxd");
|
|
328
|
-
return servers.DXD.getLogisticsDataAsync().then(function (data) {
|
|
329
|
-
instance.expressData = data;
|
|
330
|
-
}).catch(console.log);
|
|
316
|
+
}).catch(function () {});
|
|
331
317
|
};
|
|
332
318
|
// 获取支付宝电子回单
|
|
333
319
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
@@ -351,7 +337,6 @@ export var queryLabel = function queryLabel() {
|
|
|
351
337
|
var finalData = JSON.parse(data);
|
|
352
338
|
instance.labelData = finalData;
|
|
353
339
|
} catch (e) {
|
|
354
|
-
console.error("转换标签数据数据异常");
|
|
355
340
|
instance.labelData = [];
|
|
356
341
|
}
|
|
357
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.10",
|
|
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.10.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.10.10",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.10",
|
|
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": "a914d8cc8eaff540f93b34e02fc854178bb47aaf",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class DxdShopSelect implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
-
isCombinationComponent: boolean;
|
|
11
|
-
formField: string;
|
|
12
|
-
canSort: boolean;
|
|
13
|
-
children: ComponentInterface[];
|
|
14
|
-
shopDateInstance: InstanceType<any>;
|
|
15
|
-
dataType: ComponentInterface["dataType"];
|
|
16
|
-
options: ComponentInterface["options"];
|
|
17
|
-
optionsMap: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
20
|
-
constructor(options: PickOption);
|
|
21
|
-
editRender: (p: any) => React.JSX.Element;
|
|
22
|
-
getLabel: (record: any) => string;
|
|
23
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
|
-
renderPc: (value: unknown, record: Record) => string;
|
|
25
|
-
renderLog: (r: Record) => string | null;
|
|
26
|
-
getComponentValue: (r: Record) => string;
|
|
27
|
-
renderExport: (value: string, record: Record) => string;
|
|
28
|
-
filterConfig: (item: ColumnConfig) => {
|
|
29
|
-
searchDefaultConditions: "in";
|
|
30
|
-
type: string;
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
filterComponentType: "MultipleSelect";
|
|
34
|
-
props: {
|
|
35
|
-
options: any[] | undefined;
|
|
36
|
-
};
|
|
37
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export default DxdShopSelect;
|
|
@@ -1,120 +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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
-
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; }
|
|
9
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
-
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); }
|
|
11
|
-
import React from "react";
|
|
12
|
-
import GetFormItem from "../../GetFormItem";
|
|
13
|
-
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn, DxdShopDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
-
import { SYMBOL } from "../../../constant";
|
|
16
|
-
import { Select } from "antd";
|
|
17
|
-
var DxdShopSelect = /*#__PURE__*/_createClass(function DxdShopSelect(options) {
|
|
18
|
-
var _this = this,
|
|
19
|
-
_this$options;
|
|
20
|
-
_classCallCheck(this, DxdShopSelect);
|
|
21
|
-
_defineProperty(this, "name", void 0);
|
|
22
|
-
_defineProperty(this, "id", void 0);
|
|
23
|
-
_defineProperty(this, "sortField", void 0);
|
|
24
|
-
_defineProperty(this, "type", void 0);
|
|
25
|
-
_defineProperty(this, "rules", void 0);
|
|
26
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "shopDateInstance", void 0);
|
|
32
|
-
_defineProperty(this, "dataType", void 0);
|
|
33
|
-
_defineProperty(this, "options", void 0);
|
|
34
|
-
_defineProperty(this, "optionsMap", void 0);
|
|
35
|
-
_defineProperty(this, "editRender", function (p) {
|
|
36
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
37
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
38
|
-
title: _this.name,
|
|
39
|
-
name: _this.id,
|
|
40
|
-
rules: _this.rules,
|
|
41
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
42
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
43
|
-
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
44
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
45
|
-
component: /*#__PURE__*/React.createElement(Select, _extends({}, _this.componentConfig, {
|
|
46
|
-
style: {
|
|
47
|
-
width: 200
|
|
48
|
-
},
|
|
49
|
-
placeholder: "\u8BF7\u9009\u62E9".concat(_this.name),
|
|
50
|
-
options: _this.options,
|
|
51
|
-
showSearch: true,
|
|
52
|
-
filterOption: function filterOption(input, option) {
|
|
53
|
-
return option.label.includes(input);
|
|
54
|
-
}
|
|
55
|
-
}))
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "getLabel", function (record) {
|
|
59
|
-
var _this$optionsMap;
|
|
60
|
-
return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopCode")]];
|
|
61
|
-
});
|
|
62
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
63
|
-
return !isNull(_this.getLabel(record)) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
64
|
-
id: _this.id,
|
|
65
|
-
label: _this.name,
|
|
66
|
-
value: _this.getLabel(record)
|
|
67
|
-
}) : null;
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
70
|
-
return _this.getLabel(record) ? _this.getLabel(record) : "--";
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
73
|
-
if (isNull(_this.getLabel(r))) return null;
|
|
74
|
-
return _this.renderPc(undefined, r);
|
|
75
|
-
});
|
|
76
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
77
|
-
return _this.getLabel(r);
|
|
78
|
-
});
|
|
79
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
80
|
-
var _this$getLabel;
|
|
81
|
-
return (_this$getLabel = _this.getLabel(record)) !== null && _this$getLabel !== void 0 ? _this$getLabel : "--";
|
|
82
|
-
});
|
|
83
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
84
|
-
return {
|
|
85
|
-
searchDefaultConditions: SYMBOL.in,
|
|
86
|
-
type: item.type,
|
|
87
|
-
id: "".concat(item.id, "_shopCode"),
|
|
88
|
-
name: item.name,
|
|
89
|
-
filterComponentType: "MultipleSelect",
|
|
90
|
-
props: {
|
|
91
|
-
options: _this.options
|
|
92
|
-
},
|
|
93
|
-
filterFn: function filterFn(value) {
|
|
94
|
-
return function (i) {
|
|
95
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "shopCode"));
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
this.name = options.name;
|
|
101
|
-
this.id = options.id;
|
|
102
|
-
this.sortField = "".concat(options.id, "_shopCode");
|
|
103
|
-
this.formField = "".concat(options.id, "_shopCode");
|
|
104
|
-
this.type = options.type;
|
|
105
|
-
this.rules = [];
|
|
106
|
-
this.isCombinationComponent = false;
|
|
107
|
-
this.canSort = false;
|
|
108
|
-
this.children = [];
|
|
109
|
-
this.shopDateInstance = DxdShopDataCenter.getInstance();
|
|
110
|
-
this.options = this.shopDateInstance.getShopData();
|
|
111
|
-
this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (acc, cur) {
|
|
112
|
-
acc[cur.value] = cur.label;
|
|
113
|
-
return acc;
|
|
114
|
-
}, {});
|
|
115
|
-
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
116
|
-
options: this.options
|
|
117
|
-
});
|
|
118
|
-
this.dataType = "string";
|
|
119
|
-
});
|
|
120
|
-
export default DxdShopSelect;
|