@kmkf-fe-packages/services-components 2.10.9-beta.3 → 2.10.9-beta.31
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/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +3 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
- package/dist/esm/components/BS/BsExchange/index.js +6 -0
- package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BS/BsGoods/index.js +6 -0
- package/dist/esm/components/BS/BsLogistics/index.js +9 -0
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReissue/index.js +6 -0
- package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReturn/index.js +6 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/BS/common/expressCode.js +3 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +18 -2
- package/dist/esm/components/Common/index.js +6 -3
- package/dist/esm/components/CommonHeaderGood/index.js +54 -35
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
- package/dist/esm/components/CommonMultiStatus/index.js +61 -6
- package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
- package/dist/esm/components/GY/GyGoods/index.js +6 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReissue/index.js +6 -0
- package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReturn/index.js +6 -0
- package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JST/JstSendGood/index.js +16 -2
- package/dist/esm/components/JST/JstSupply/index.d.ts +1 -1
- package/dist/esm/components/JST/JstSupply/index.js +3 -0
- package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
- package/dist/esm/components/KM/KmExchange/index.js +6 -0
- package/dist/esm/components/KmErpSendGood/index.d.ts +1 -1
- package/dist/esm/components/KmErpSendGood/index.js +3 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/index.js +14 -7
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +103 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +2 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +19 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.js +108 -0
- package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
- package/dist/esm/components/Public/Exchange/index.js +6 -0
- package/dist/esm/components/Public/Goods/index.js +6 -12
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
- package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
- package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
- package/dist/esm/components/Reissue/Logistics/index.js +3 -0
- package/dist/esm/components/Remark/index.d.ts +4 -1
- package/dist/esm/components/Remark/index.js +36 -8
- package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +10 -1
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +6 -0
- package/package.json +4 -4
|
@@ -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/JST/JstSendGood").default | LogisticsInterception | LogisticsMoreInterception | import("../components/Public/Goods").default | import("../components/Remark").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/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/Public/ReissueGoods").default | import("../components/Public/Exchange").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 | 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/CommonSystemOrder").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/MsgStatus").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/DXD/DxdShopSelect").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", "DXD_LOGISTICS", "DXD_SEND_GOOD"];
|
|
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", "DXD_LOGISTICS", "DXD_SEND_GOOD", "TTX_LOGISTICS", "TTX_SEND_GOOD"];
|
|
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);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy" | "hasJky" | "hasDxd";
|
|
1
|
+
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy" | "hasJky" | "hasDxd" | "hasTtx";
|
|
2
2
|
declare function useGetHasErpData(reduxData: any): Record<HasErpDataKeyType, boolean>;
|
|
3
3
|
export default useGetHasErpData;
|
|
@@ -12,7 +12,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
12
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
13
|
import { useEffect, useMemo, useState } from "react";
|
|
14
14
|
var getTemplate = function getTemplate(companyUserConfig) {
|
|
15
|
-
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;
|
|
15
|
+
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, _companyUserConfig$pl25, _companyUserConfig$pl26, _companyUserConfig$pl27;
|
|
16
16
|
return JSON.stringify({
|
|
17
17
|
hasWln: (_companyUserConfig$pl = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl2 = companyUserConfig.plugins) === null || _companyUserConfig$pl2 === void 0 ? void 0 : (_companyUserConfig$pl3 = _companyUserConfig$pl2.wln) === null || _companyUserConfig$pl3 === void 0 ? void 0 : _companyUserConfig$pl3.show) !== null && _companyUserConfig$pl !== void 0 ? _companyUserConfig$pl : false,
|
|
18
18
|
hasWdt: (_companyUserConfig$pl4 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl5 = companyUserConfig.plugins) === null || _companyUserConfig$pl5 === void 0 ? void 0 : (_companyUserConfig$pl6 = _companyUserConfig$pl5.wdt) === null || _companyUserConfig$pl6 === void 0 ? void 0 : _companyUserConfig$pl6.show) !== null && _companyUserConfig$pl4 !== void 0 ? _companyUserConfig$pl4 : false,
|
|
@@ -27,7 +27,8 @@ var getTemplate = function getTemplate(companyUserConfig) {
|
|
|
27
27
|
"6O47IBXFR26FJF4HUQ7WGO4H",
|
|
28
28
|
//prod 陈健企业工单
|
|
29
29
|
"FHLSISEYFB76GAGKP2MCHSV5" //prod 大希地
|
|
30
|
-
].includes(companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.companyKey)
|
|
30
|
+
].includes(companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.companyKey),
|
|
31
|
+
hasTtx: (_companyUserConfig$pl25 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl26 = companyUserConfig.plugins) === null || _companyUserConfig$pl26 === void 0 ? void 0 : (_companyUserConfig$pl27 = _companyUserConfig$pl26.ttx) === null || _companyUserConfig$pl27 === void 0 ? void 0 : _companyUserConfig$pl27.show) !== null && _companyUserConfig$pl25 !== void 0 ? _companyUserConfig$pl25 : false
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
34
|
function useGetHasErpData(reduxData) {
|
|
@@ -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, queryDXDLogisticsCompany } from "../../../service/api";
|
|
13
|
+
import { queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryJSTLogisticsCompany, queryWLNLogisticsCompany, queryGYLogisticsCompany, queryJYLogisticsCompany, queryJKYLogisticsCompany, queryDXDLogisticsCompany, queryTTXLogisticsCompany } 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, hasDxd, promises;
|
|
25
|
+
var hasWdt, hasE3, hasJst, hasWln, hasGy, hasJy, hasJky, hasDxd, hasTtx, 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, hasDxd = hasErpData.hasDxd;
|
|
32
|
+
hasWdt = hasErpData.hasWdt, hasE3 = hasErpData.hasE3, hasJst = hasErpData.hasJst, hasWln = hasErpData.hasWln, hasGy = hasErpData.hasGy, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasDxd = hasErpData.hasDxd, hasTtx = hasErpData.hasTtx;
|
|
33
33
|
promises = [];
|
|
34
34
|
if (hasWdt || notJudgedErp) promises.push(queryWdtLogisticsCompany);
|
|
35
35
|
if (hasE3 || notJudgedErp) promises.push(queryBsE3LogisticsCompany);
|
|
@@ -39,24 +39,25 @@ function useGetErpLogisticsCompany(reduxData, notJudgedErp) {
|
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(queryJYLogisticsCompany);
|
|
40
40
|
if (hasJky || notJudgedErp) promises.push(queryJKYLogisticsCompany);
|
|
41
41
|
if (hasDxd || notJudgedErp) promises.push(queryDXDLogisticsCompany);
|
|
42
|
-
|
|
43
|
-
_context.
|
|
42
|
+
if (hasTtx || notJudgedErp) promises.push(queryTTXLogisticsCompany);
|
|
43
|
+
_context.prev = 12;
|
|
44
|
+
_context.next = 15;
|
|
44
45
|
return Promise.all(promises.map(function (promise) {
|
|
45
46
|
return promise();
|
|
46
47
|
}));
|
|
47
|
-
case
|
|
48
|
+
case 15:
|
|
48
49
|
setGlobalState("success");
|
|
49
|
-
_context.next =
|
|
50
|
+
_context.next = 21;
|
|
50
51
|
break;
|
|
51
|
-
case
|
|
52
|
-
_context.prev =
|
|
53
|
-
_context.t0 = _context["catch"](
|
|
52
|
+
case 18:
|
|
53
|
+
_context.prev = 18;
|
|
54
|
+
_context.t0 = _context["catch"](12);
|
|
54
55
|
setGlobalState("failed");
|
|
55
|
-
case
|
|
56
|
+
case 21:
|
|
56
57
|
case "end":
|
|
57
58
|
return _context.stop();
|
|
58
59
|
}
|
|
59
|
-
}, _callee, null, [[
|
|
60
|
+
}, _callee, null, [[12, 18]]);
|
|
60
61
|
}));
|
|
61
62
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
62
63
|
return _ref.apply(this, arguments);
|
|
@@ -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, hasDxd, promises;
|
|
26
|
+
var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln, hasDxd, hasTtx, 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, hasDxd = hasErpData.hasDxd;
|
|
34
|
+
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln, hasDxd = hasErpData.hasDxd, hasTtx = hasErpData.hasTtx;
|
|
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);
|
|
@@ -43,23 +43,26 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
43
43
|
promises.push(SendDataCenter.getInstance("dxd").fetchData);
|
|
44
44
|
promises.push(DxdSuppliersData.getInstance().fetchData);
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
if (hasTtx || notJudgedErp) {
|
|
47
|
+
promises.push(SendDataCenter.getInstance("ttx").fetchData);
|
|
48
|
+
}
|
|
49
|
+
_context.next = 14;
|
|
47
50
|
return Promise.all(promises.map(function (promise) {
|
|
48
51
|
return promise();
|
|
49
52
|
}));
|
|
50
|
-
case
|
|
53
|
+
case 14:
|
|
51
54
|
setGlobalState("success");
|
|
52
|
-
_context.next =
|
|
55
|
+
_context.next = 20;
|
|
53
56
|
break;
|
|
54
|
-
case
|
|
55
|
-
_context.prev =
|
|
57
|
+
case 17:
|
|
58
|
+
_context.prev = 17;
|
|
56
59
|
_context.t0 = _context["catch"](1);
|
|
57
60
|
setGlobalState("failed");
|
|
58
|
-
case
|
|
61
|
+
case 20:
|
|
59
62
|
case "end":
|
|
60
63
|
return _context.stop();
|
|
61
64
|
}
|
|
62
|
-
}, _callee, null, [[1,
|
|
65
|
+
}, _callee, null, [[1, 17]]);
|
|
63
66
|
}));
|
|
64
67
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
65
68
|
return _ref.apply(this, arguments);
|
|
@@ -14,12 +14,19 @@ declare class BsExchange implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsType: BsType;
|
|
18
19
|
bsMemo: BsMemo;
|
|
19
20
|
returnGoods: BsHeaderGood;
|
|
20
21
|
swapOutGoods: BsHeaderGood;
|
|
21
22
|
giftGoods: BsHeaderGood;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
16
|
import { BsExchange as Exchange } from "@kmkf-fe-packages/basic-components";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig10;
|
|
@@ -32,11 +33,15 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsType", void 0);
|
|
36
38
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
39
|
_defineProperty(this, "returnGoods", void 0);
|
|
38
40
|
_defineProperty(this, "swapOutGoods", void 0);
|
|
39
41
|
_defineProperty(this, "giftGoods", void 0);
|
|
42
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
43
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
44
|
+
});
|
|
40
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
46
|
var _this$componentConfig, _this$componentConfig2, _record, _record$bsExchangeTyp, _this$componentConfig3;
|
|
42
47
|
var bsExchangeReturnGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeReturnGoods")]) || "[]");
|
|
@@ -210,5 +215,6 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
210
215
|
}
|
|
211
216
|
}];
|
|
212
217
|
this.dataType = "object";
|
|
218
|
+
this.sortChildField = this.getSortChildFields();
|
|
213
219
|
});
|
|
214
220
|
export default BsExchange;
|
|
@@ -14,8 +14,15 @@ declare class BsGoods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsGoods: BsHeaderGood;
|
|
18
19
|
constructor(options: PickOption);
|
|
20
|
+
getSortChildFields: () => {
|
|
21
|
+
name: any;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
conditionOptionsSetting: any;
|
|
25
|
+
}[];
|
|
19
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
27
|
renderPc: () => null;
|
|
21
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull, findLabelBySelectValue } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var hasQualityValue = function hasQualityValue(value, componentConfig) {
|
|
20
21
|
var _findLabelBySelectVal, _findLabelBySelectVal2;
|
|
21
22
|
var label = (_findLabelBySelectVal = findLabelBySelectValue(value, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (item) {
|
|
@@ -39,7 +40,11 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
39
40
|
_defineProperty(this, "canSort", void 0);
|
|
40
41
|
_defineProperty(this, "children", void 0);
|
|
41
42
|
_defineProperty(this, "dataType", void 0);
|
|
43
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
42
44
|
_defineProperty(this, "bsGoods", void 0);
|
|
45
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
46
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
47
|
+
});
|
|
43
48
|
_defineProperty(this, "renderClient", function (record) {
|
|
44
49
|
var _record, _this$componentConfig;
|
|
45
50
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -156,5 +161,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
156
161
|
}
|
|
157
162
|
});
|
|
158
163
|
this.dataType = "object";
|
|
164
|
+
this.sortChildField = this.getSortChildFields();
|
|
159
165
|
});
|
|
160
166
|
export default BsGoods;
|
|
@@ -128,6 +128,15 @@ var typeMap = {
|
|
|
128
128
|
platformType: "dxd",
|
|
129
129
|
companyDataType: "string",
|
|
130
130
|
companyCodeType: "arrayObject"
|
|
131
|
+
},
|
|
132
|
+
TTX_LOGISTICS: {
|
|
133
|
+
key: "ttxLogisticsList",
|
|
134
|
+
name: "通天晓",
|
|
135
|
+
company: "ttxLogisticsCompany",
|
|
136
|
+
code: "ttxLogisticsCode",
|
|
137
|
+
platformType: "ttx",
|
|
138
|
+
companyDataType: "string",
|
|
139
|
+
companyCodeType: "arrayObject"
|
|
131
140
|
}
|
|
132
141
|
};
|
|
133
142
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -15,10 +15,17 @@ declare class BsReissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface['dataType'];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface['sortChildField']>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
21
22
|
constructor(options: PickOption);
|
|
23
|
+
getSortChildFields: () => {
|
|
24
|
+
name: any;
|
|
25
|
+
key: string;
|
|
26
|
+
dataType: string;
|
|
27
|
+
conditionOptionsSetting: any;
|
|
28
|
+
}[];
|
|
22
29
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
30
|
renderPc: () => null;
|
|
24
31
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
BS_REISSUE_GOODS: {
|
|
22
23
|
key: 'bsReissueGoods',
|
|
@@ -53,9 +54,13 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
53
54
|
_defineProperty(this, "canSort", void 0);
|
|
54
55
|
_defineProperty(this, "children", void 0);
|
|
55
56
|
_defineProperty(this, "dataType", void 0);
|
|
57
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
56
58
|
_defineProperty(this, "bsType", void 0);
|
|
57
59
|
_defineProperty(this, "bsMemo", void 0);
|
|
58
60
|
_defineProperty(this, "reissueGoods", void 0);
|
|
61
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
62
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
63
|
+
});
|
|
59
64
|
_defineProperty(this, "renderClient", function (record) {
|
|
60
65
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
61
66
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -181,5 +186,6 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
181
186
|
}
|
|
182
187
|
}] : [];
|
|
183
188
|
this.dataType = 'object';
|
|
189
|
+
this.sortChildField = this.getSortChildFields();
|
|
184
190
|
});
|
|
185
191
|
export default BsReissue;
|
|
@@ -14,10 +14,17 @@ declare class BsReturn implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsType: BsType;
|
|
18
19
|
bsMemo: BsMemo;
|
|
19
20
|
reissueGoods: BsHeaderGood;
|
|
20
21
|
constructor(options: PickOption);
|
|
22
|
+
getSortChildFields: () => {
|
|
23
|
+
name: any;
|
|
24
|
+
key: string;
|
|
25
|
+
dataType: string;
|
|
26
|
+
conditionOptionsSetting: any;
|
|
27
|
+
}[];
|
|
21
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
29
|
renderPc: () => null;
|
|
23
30
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ import { BsReturn as BsReturnGoods } from "@kmkf-fe-packages/basic-components";
|
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,9 +33,13 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsType", void 0);
|
|
36
38
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
39
|
_defineProperty(this, "reissueGoods", void 0);
|
|
40
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
42
|
+
});
|
|
38
43
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
44
|
var _this$componentConfig;
|
|
40
45
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].bsReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -148,5 +153,6 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
|
148
153
|
}
|
|
149
154
|
}] : [];
|
|
150
155
|
this.dataType = "object";
|
|
156
|
+
this.sortChildField = this.getSortChildFields();
|
|
151
157
|
});
|
|
152
158
|
export default BsReturn;
|
|
@@ -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, DXD_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
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, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_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";
|
|
@@ -35,7 +35,8 @@ var typeMap = {
|
|
|
35
35
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
|
|
36
36
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG,
|
|
37
37
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG,
|
|
38
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG
|
|
38
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG,
|
|
39
|
+
TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG
|
|
39
40
|
};
|
|
40
41
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
41
42
|
var _this = this,
|
|
@@ -14,8 +14,15 @@ declare class BSE3Goods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsE3Goods: CommonHeaderGoods;
|
|
18
19
|
constructor(options: PickOption);
|
|
20
|
+
getSortChildFields: () => {
|
|
21
|
+
name: any;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
conditionOptionsSetting: any;
|
|
25
|
+
}[];
|
|
19
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
27
|
renderPc: () => null;
|
|
21
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,7 +33,11 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsE3Goods", void 0);
|
|
38
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
39
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
40
|
+
});
|
|
36
41
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
42
|
var _record, _this$componentConfig;
|
|
38
43
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -119,5 +124,6 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
|
119
124
|
}
|
|
120
125
|
}] : [];
|
|
121
126
|
this.dataType = "object";
|
|
127
|
+
this.sortChildField = this.getSortChildFields();
|
|
122
128
|
});
|
|
123
129
|
export default BSE3Goods;
|
|
@@ -15,11 +15,18 @@ declare class BsE3Reissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
systemOrderNo: SystemOrderNo;
|
|
21
22
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
BS_E3_REISSUE_GOODS: {
|
|
22
23
|
key: "bsE3ReissueGoods",
|
|
@@ -47,10 +48,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
47
48
|
_defineProperty(this, "canSort", void 0);
|
|
48
49
|
_defineProperty(this, "children", void 0);
|
|
49
50
|
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
50
52
|
_defineProperty(this, "bsType", void 0);
|
|
51
53
|
_defineProperty(this, "bsMemo", void 0);
|
|
52
54
|
_defineProperty(this, "systemOrderNo", void 0);
|
|
53
55
|
_defineProperty(this, "reissueGoods", void 0);
|
|
56
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
57
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
58
|
+
});
|
|
54
59
|
_defineProperty(this, "renderClient", function (record) {
|
|
55
60
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
56
61
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -190,5 +195,6 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
190
195
|
}
|
|
191
196
|
}] : [];
|
|
192
197
|
this.dataType = "object";
|
|
198
|
+
this.sortChildField = this.getSortChildFields();
|
|
193
199
|
});
|
|
194
200
|
export default BsE3Reissue;
|
|
@@ -3,3 +3,9 @@ export declare type ColumnsMapType = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
5
5
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
6
|
+
export declare const getGoodsSortChildFields: (type: string, id: string) => {
|
|
7
|
+
name: any;
|
|
8
|
+
key: string;
|
|
9
|
+
dataType: string;
|
|
10
|
+
conditionOptionsSetting: any;
|
|
11
|
+
}[];
|
|
@@ -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, getDxdColumns } from "@kmkf-fe-packages/basic-components";
|
|
10
|
+
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns, getJkyColumns, getDxdColumns, getTtxColumns } 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(_objectSpread({}, system()), bs({
|
|
16
|
+
return _objectSpread(_objectSpread(_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,
|
|
@@ -32,9 +32,25 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
32
32
|
disabled: true
|
|
33
33
|
})), getDxdColumns({
|
|
34
34
|
disabled: true
|
|
35
|
+
})), getTtxColumns({
|
|
36
|
+
disabled: true
|
|
35
37
|
})), getSkxColumns({})), {}, {
|
|
36
38
|
default: defaultColumns({
|
|
37
39
|
text: text
|
|
38
40
|
})["default"]
|
|
39
41
|
});
|
|
42
|
+
};
|
|
43
|
+
export var getGoodsSortChildFields = function getGoodsSortChildFields(type, id) {
|
|
44
|
+
var columnsMap = getColumnsMap();
|
|
45
|
+
var columns = columnsMap[type] || (type.startsWith("BS_") ? columnsMap.BS_GOODS : columnsMap.default) || [];
|
|
46
|
+
return columns.filter(function (item) {
|
|
47
|
+
return !["picUrl"].includes(item.dataIndex);
|
|
48
|
+
}).map(function (item) {
|
|
49
|
+
return {
|
|
50
|
+
name: item.title,
|
|
51
|
+
key: "".concat(id, "_").concat(item.dataIndex),
|
|
52
|
+
dataType: "arrayObject",
|
|
53
|
+
conditionOptionsSetting: item.conditionOptionsSetting
|
|
54
|
+
};
|
|
55
|
+
});
|
|
40
56
|
};
|