@kmkf-fe-packages/services-components 2.2.44-beta.9 → 2.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +2 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +11 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +12 -13
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +9 -10
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +3 -4
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +19 -21
- package/dist/esm/components/BS/BsLogistics/index.js +0 -9
- package/dist/esm/components/BS/BsSystemOrder/index.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +0 -2
- package/dist/esm/components/BS/common/BsHeaderPic.js +1 -13
- package/dist/esm/components/BS/common/BsMemo.js +1 -2
- package/dist/esm/components/BS/common/BsType.js +1 -2
- package/dist/esm/components/BS/common/SystemOrderNo.js +1 -2
- package/dist/esm/components/BS/common/expressCode.js +2 -4
- 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/index.js +1 -3
- package/dist/esm/components/CommonHeaderGood/index.js +5 -413
- package/dist/esm/components/JST/JstSendGood/index.js +1 -9
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +0 -1
- package/dist/esm/components/MsgStatus/index.js +1 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Public/Goods/index.js +0 -4
- package/dist/esm/components/Public/ReissueGoods/index.js +0 -18
- package/dist/esm/components/SubForm/index.js +47 -39
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -5
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy"
|
|
1
|
+
declare type HasErpDataKeyType = "hasWln" | "hasWdt" | "hasBs" | "hasE3" | "hasJst" | "hasGy" | "hasJy";
|
|
2
2
|
declare function useGetHasErpData(reduxData: any): Record<HasErpDataKeyType, boolean>;
|
|
3
3
|
export default useGetHasErpData;
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { useEffect, useMemo, useState } from "react";
|
|
8
8
|
var getTemplate = function getTemplate(companyUserConfig) {
|
|
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
|
|
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;
|
|
10
10
|
return JSON.stringify({
|
|
11
11
|
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,
|
|
12
12
|
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,
|
|
@@ -14,8 +14,7 @@ var getTemplate = function getTemplate(companyUserConfig) {
|
|
|
14
14
|
hasE3: (_companyUserConfig$pl10 = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl11 = companyUserConfig.plugins) === null || _companyUserConfig$pl11 === void 0 ? void 0 : (_companyUserConfig$pl12 = _companyUserConfig$pl11.bse3) === null || _companyUserConfig$pl12 === void 0 ? void 0 : _companyUserConfig$pl12.show) !== null && _companyUserConfig$pl10 !== void 0 ? _companyUserConfig$pl10 : false,
|
|
15
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,
|
|
16
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,
|
|
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
|
|
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
|
|
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
|
|
19
18
|
});
|
|
20
19
|
};
|
|
21
20
|
function useGetHasErpData(reduxData) {
|
|
@@ -22,38 +22,37 @@ function useGetErpAddressData(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 hasBs, hasWdt, hasGy, hasJst,
|
|
25
|
+
var hasBs, hasWdt, hasGy, hasJst, 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
|
-
hasBs = hasErpData.hasBs, hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst
|
|
32
|
+
hasBs = hasErpData.hasBs, hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst;
|
|
33
33
|
promises = [];
|
|
34
34
|
if (hasBs || notJudgedErp) promises.push(servers.queryBsAddressData);
|
|
35
35
|
if (hasWdt || notJudgedErp) promises.push(servers.queryWdtAddressData);
|
|
36
|
-
if (hasJky || notJudgedErp) promises.push(servers.queryJkyAddressData);
|
|
37
36
|
if (hasGy || notJudgedErp) promises.push(servers.queryGyAddressData);
|
|
38
37
|
if (hasJst || notJudgedErp) promises.push(servers.queryJstAddressData);
|
|
39
|
-
_context.prev =
|
|
40
|
-
_context.next =
|
|
38
|
+
_context.prev = 7;
|
|
39
|
+
_context.next = 10;
|
|
41
40
|
return Promise.all(promises.map(function (promise) {
|
|
42
41
|
return promise();
|
|
43
42
|
}));
|
|
44
|
-
case
|
|
43
|
+
case 10:
|
|
45
44
|
setGlobalState("success");
|
|
46
|
-
_context.next =
|
|
45
|
+
_context.next = 16;
|
|
47
46
|
break;
|
|
48
|
-
case
|
|
49
|
-
_context.prev =
|
|
50
|
-
_context.t0 = _context["catch"](
|
|
47
|
+
case 13:
|
|
48
|
+
_context.prev = 13;
|
|
49
|
+
_context.t0 = _context["catch"](7);
|
|
51
50
|
setGlobalState("failed");
|
|
52
|
-
case
|
|
51
|
+
case 16:
|
|
53
52
|
case "end":
|
|
54
53
|
return _context.stop();
|
|
55
54
|
}
|
|
56
|
-
}, _callee, null, [[
|
|
55
|
+
}, _callee, null, [[7, 13]]);
|
|
57
56
|
}));
|
|
58
57
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
59
58
|
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 { queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryJSTLogisticsCompany, queryWLNLogisticsCompany, queryGYLogisticsCompany, queryJYLogisticsCompany
|
|
13
|
+
import { queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryJSTLogisticsCompany, queryWLNLogisticsCompany, queryGYLogisticsCompany, queryJYLogisticsCompany } 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,
|
|
25
|
+
var hasWdt, hasE3, hasJst, hasWln, hasGy, hasJy, 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
|
|
32
|
+
hasWdt = hasErpData.hasWdt, hasE3 = hasErpData.hasE3, hasJst = hasErpData.hasJst, hasWln = hasErpData.hasWln, hasGy = hasErpData.hasGy, hasJy = hasErpData.hasJy;
|
|
33
33
|
promises = [];
|
|
34
34
|
if (hasWdt || notJudgedErp) promises.push(queryWdtLogisticsCompany);
|
|
35
35
|
if (hasE3 || notJudgedErp) promises.push(queryBsE3LogisticsCompany);
|
|
@@ -37,25 +37,24 @@ function useGetErpLogisticsCompany(reduxData, notJudgedErp) {
|
|
|
37
37
|
if (hasWln || notJudgedErp) promises.push(queryWLNLogisticsCompany);
|
|
38
38
|
if (hasGy || notJudgedErp) promises.push(queryGYLogisticsCompany);
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(queryJYLogisticsCompany);
|
|
40
|
-
|
|
41
|
-
_context.
|
|
42
|
-
_context.next = 13;
|
|
40
|
+
_context.prev = 9;
|
|
41
|
+
_context.next = 12;
|
|
43
42
|
return Promise.all(promises.map(function (promise) {
|
|
44
43
|
return promise();
|
|
45
44
|
}));
|
|
46
|
-
case
|
|
45
|
+
case 12:
|
|
47
46
|
setGlobalState("success");
|
|
48
|
-
_context.next =
|
|
47
|
+
_context.next = 18;
|
|
49
48
|
break;
|
|
50
|
-
case
|
|
51
|
-
_context.prev =
|
|
52
|
-
_context.t0 = _context["catch"](
|
|
49
|
+
case 15:
|
|
50
|
+
_context.prev = 15;
|
|
51
|
+
_context.t0 = _context["catch"](9);
|
|
53
52
|
setGlobalState("failed");
|
|
54
|
-
case
|
|
53
|
+
case 18:
|
|
55
54
|
case "end":
|
|
56
55
|
return _context.stop();
|
|
57
56
|
}
|
|
58
|
-
}, _callee, null, [[
|
|
57
|
+
}, _callee, null, [[9, 15]]);
|
|
59
58
|
}));
|
|
60
59
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
61
60
|
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,
|
|
26
|
+
var hasWdt, hasGy, hasJst, hasJy, promises;
|
|
27
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
@@ -31,30 +31,29 @@ 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
|
|
34
|
+
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy;
|
|
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);
|
|
38
38
|
if (hasJst || notJudgedErp) promises.push(SendDataCenter.getInstance("jst").fetchData);
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
|
|
40
|
-
|
|
41
|
-
_context.next = 11;
|
|
40
|
+
_context.next = 10;
|
|
42
41
|
return Promise.all(promises.map(function (promise) {
|
|
43
42
|
return promise();
|
|
44
43
|
}));
|
|
45
|
-
case
|
|
44
|
+
case 10:
|
|
46
45
|
setGlobalState("success");
|
|
47
|
-
_context.next =
|
|
46
|
+
_context.next = 16;
|
|
48
47
|
break;
|
|
49
|
-
case
|
|
50
|
-
_context.prev =
|
|
48
|
+
case 13:
|
|
49
|
+
_context.prev = 13;
|
|
51
50
|
_context.t0 = _context["catch"](1);
|
|
52
51
|
setGlobalState("failed");
|
|
53
|
-
case
|
|
52
|
+
case 16:
|
|
54
53
|
case "end":
|
|
55
54
|
return _context.stop();
|
|
56
55
|
}
|
|
57
|
-
}, _callee, null, [[1,
|
|
56
|
+
}, _callee, null, [[1, 13]]);
|
|
58
57
|
}));
|
|
59
58
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
60
59
|
return _ref.apply(this, arguments);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile,
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
|
|
3
3
|
title?: string | undefined;
|
|
4
4
|
modelWidth?: string | number | undefined;
|
|
5
|
-
interceptCompany
|
|
5
|
+
interceptCompany: string;
|
|
6
6
|
interceptCode: string;
|
|
7
7
|
interceptSenderMobile?: string | number | undefined;
|
|
8
|
-
interceptCompanyName?: string | undefined;
|
|
9
8
|
}) => React.JSX.Element;
|
|
10
9
|
export default QueryLogisticsTrack;
|
|
@@ -8,20 +8,19 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
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; }
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState } from
|
|
12
|
-
import { Modal, Timeline, message } from
|
|
13
|
-
import { request } from
|
|
11
|
+
import React, { useState } from 'react';
|
|
12
|
+
import { Modal, Timeline, message } from 'antd';
|
|
13
|
+
import { request } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import CopyText from "../CopyText";
|
|
15
15
|
var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
16
16
|
var _ref$title = _ref.title,
|
|
17
|
-
title = _ref$title === void 0 ?
|
|
17
|
+
title = _ref$title === void 0 ? '查轨迹' : _ref$title,
|
|
18
18
|
_ref$modelWidth = _ref.modelWidth,
|
|
19
19
|
modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
|
|
20
20
|
interceptCompany = _ref.interceptCompany,
|
|
21
21
|
interceptCode = _ref.interceptCode,
|
|
22
|
-
interceptSenderMobile = _ref.interceptSenderMobile
|
|
23
|
-
|
|
24
|
-
var _useState = useState(""),
|
|
22
|
+
interceptSenderMobile = _ref.interceptSenderMobile;
|
|
23
|
+
var _useState = useState(''),
|
|
25
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
25
|
inputVal = _useState2[0],
|
|
27
26
|
setInputVal = _useState2[1];
|
|
@@ -37,9 +36,9 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
37
36
|
var list = _ref2.list;
|
|
38
37
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
style: {
|
|
40
|
-
maxHeight:
|
|
41
|
-
padding:
|
|
42
|
-
overflowY:
|
|
39
|
+
maxHeight: '500px',
|
|
40
|
+
padding: '8px 0',
|
|
41
|
+
overflowY: 'auto'
|
|
43
42
|
}
|
|
44
43
|
}, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
|
|
45
44
|
return /*#__PURE__*/React.createElement(Timeline.Item, {
|
|
@@ -52,11 +51,11 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
52
51
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
53
52
|
while (1) switch (_context.prev = _context.next) {
|
|
54
53
|
case 0:
|
|
55
|
-
if (!(!interceptCode || !interceptCompany
|
|
54
|
+
if (!(!interceptCode || !interceptCompany)) {
|
|
56
55
|
_context.next = 2;
|
|
57
56
|
break;
|
|
58
57
|
}
|
|
59
|
-
return _context.abrupt("return", message.error(
|
|
58
|
+
return _context.abrupt("return", message.error('缺少物流公司或物流单号'));
|
|
60
59
|
case 2:
|
|
61
60
|
logisticsTraceSearch();
|
|
62
61
|
//如果是顺丰且没有手机号 要输入手机号
|
|
@@ -91,13 +90,12 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
91
90
|
var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
|
|
92
91
|
try {
|
|
93
92
|
request({
|
|
94
|
-
url:
|
|
95
|
-
method:
|
|
93
|
+
url: '/qy/logistics/logisticsTraceSearch',
|
|
94
|
+
method: 'post',
|
|
96
95
|
data: {
|
|
97
96
|
mailNo: interceptCode,
|
|
98
97
|
cpCode: interceptCompany,
|
|
99
|
-
mobile: interceptSenderMobile || mobile
|
|
100
|
-
cpName: interceptCompanyName
|
|
98
|
+
mobile: interceptSenderMobile || mobile
|
|
101
99
|
},
|
|
102
100
|
handleError: function handleError(msg) {
|
|
103
101
|
msg && message.error(msg);
|
|
@@ -120,16 +118,16 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
120
118
|
};
|
|
121
119
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
122
120
|
style: {
|
|
123
|
-
margin:
|
|
124
|
-
color:
|
|
125
|
-
cursor:
|
|
121
|
+
margin: '0 8px',
|
|
122
|
+
color: '#1890ff',
|
|
123
|
+
cursor: 'pointer'
|
|
126
124
|
}
|
|
127
125
|
}, /*#__PURE__*/React.createElement("span", {
|
|
128
126
|
onClick: handleQueryLogistics
|
|
129
|
-
}, title ===
|
|
127
|
+
}, title === '查轨迹' ? title : /*#__PURE__*/React.createElement(CopyText, {
|
|
130
128
|
text: title,
|
|
131
129
|
style: {
|
|
132
|
-
color:
|
|
130
|
+
color: '#1890ff'
|
|
133
131
|
}
|
|
134
132
|
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
135
133
|
width: modelWidth,
|
|
@@ -110,15 +110,6 @@ var typeMap = {
|
|
|
110
110
|
platformType: "jy",
|
|
111
111
|
companyDataType: "string",
|
|
112
112
|
companyCodeType: "arrayObject"
|
|
113
|
-
},
|
|
114
|
-
JKY_LOGISTICS: {
|
|
115
|
-
key: "jkyLogisticsList",
|
|
116
|
-
name: "吉客云",
|
|
117
|
-
company: "jkyLogisticsCompany",
|
|
118
|
-
code: "jkyLogisticsCode",
|
|
119
|
-
platformType: "jky",
|
|
120
|
-
companyDataType: "string",
|
|
121
|
-
companyCodeType: "arrayObject"
|
|
122
113
|
}
|
|
123
114
|
};
|
|
124
115
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from "react";
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
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,
|
|
14
|
+
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, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -26,7 +26,6 @@ var typeMap = {
|
|
|
26
26
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
|
|
27
27
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
|
|
28
28
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
|
|
29
|
-
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
|
|
30
29
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
|
|
31
30
|
};
|
|
32
31
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
@@ -123,6 +122,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
123
122
|
columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
|
|
124
123
|
showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
|
|
125
124
|
})) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
|
|
125
|
+
console.log("column", column, "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex));
|
|
126
126
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
127
127
|
transformValue: column.render,
|
|
128
128
|
renderExport: column.renderExport,
|
|
@@ -13,8 +13,6 @@ declare class BsChildPic implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
-
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
17
|
-
export?: (val: any, record?: any, parentName?: string) => any;
|
|
18
16
|
constructor(options: PickOption);
|
|
19
17
|
getParentId: () => string;
|
|
20
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -30,12 +30,6 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
-
_defineProperty(this, "transformValue", function (val) {
|
|
34
|
-
return val;
|
|
35
|
-
});
|
|
36
|
-
_defineProperty(this, "export", function (val) {
|
|
37
|
-
return val;
|
|
38
|
-
});
|
|
39
33
|
_defineProperty(this, "getParentId", function () {
|
|
40
34
|
var _this$id$split = _this.id.split("_"),
|
|
41
35
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
@@ -62,7 +56,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
62
56
|
return _this.renderPc(undefined, r);
|
|
63
57
|
});
|
|
64
58
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
65
|
-
return
|
|
59
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
66
60
|
});
|
|
67
61
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
68
62
|
var _this$getComponentVal;
|
|
@@ -86,11 +80,5 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
86
80
|
this.canSort = false;
|
|
87
81
|
this.dataType = "string";
|
|
88
82
|
this.children = [];
|
|
89
|
-
if (options.transformValue) {
|
|
90
|
-
this.transformValue = options === null || options === void 0 ? void 0 : options.transformValue;
|
|
91
|
-
}
|
|
92
|
-
if (options.renderExport) {
|
|
93
|
-
this.export = options === null || options === void 0 ? void 0 : options.renderExport;
|
|
94
|
-
}
|
|
95
83
|
});
|
|
96
84
|
export default BsChildPic;
|
|
@@ -26,8 +26,7 @@ var componentType = {
|
|
|
26
26
|
JST_REISSUE_GOODS: "jstReissueType",
|
|
27
27
|
JST_RETURN_GOODS: "jstReturnType",
|
|
28
28
|
KM_REISSUE_GOODS: "kmReissueType",
|
|
29
|
-
JY_REISSUE_GOODS: "jyReissueType"
|
|
30
|
-
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
29
|
+
JY_REISSUE_GOODS: "jyReissueType"
|
|
31
30
|
};
|
|
32
31
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
33
32
|
var _this = this;
|
|
@@ -27,8 +27,7 @@ var componentType = {
|
|
|
27
27
|
JST_REISSUE_GOODS: "jstReissueType",
|
|
28
28
|
JST_RETURN_GOODS: "jstReturnType",
|
|
29
29
|
KM_REISSUE_GOODS: "kmReissueType",
|
|
30
|
-
JY_REISSUE_GOODS: "jyReissueType"
|
|
31
|
-
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
30
|
+
JY_REISSUE_GOODS: "jyReissueType"
|
|
32
31
|
};
|
|
33
32
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
34
33
|
var _this = this;
|
|
@@ -22,8 +22,7 @@ var componentType = {
|
|
|
22
22
|
JST_REISSUE_GOODS: "jstSystemOrderNo",
|
|
23
23
|
JST_RETURN_GOODS: "jstSystemOrderNo",
|
|
24
24
|
KM_REISSUE_GOODS: "kmSystemOrderNo",
|
|
25
|
-
JY_REISSUE_GOODS: "jySystemOrderNo"
|
|
26
|
-
JKY_REISSUE_GOODS: "jkySystemOrderNo"
|
|
25
|
+
JY_REISSUE_GOODS: "jySystemOrderNo"
|
|
27
26
|
};
|
|
28
27
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
29
28
|
var _this = this;
|
|
@@ -40,9 +40,6 @@ var typeMap = {
|
|
|
40
40
|
JY_LOGISTICS: {
|
|
41
41
|
key: "jyLogisticsItem"
|
|
42
42
|
},
|
|
43
|
-
JKY_LOGISTICS: {
|
|
44
|
-
key: "jkyLogisticsItem"
|
|
45
|
-
},
|
|
46
43
|
SKX_LOGISTICS: {
|
|
47
44
|
key: "skxLogisticsItem"
|
|
48
45
|
},
|
|
@@ -83,7 +80,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
83
80
|
}
|
|
84
81
|
return /*#__PURE__*/React.createElement(BsExpressRender, {
|
|
85
82
|
list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
|
|
86
|
-
showField: "code"
|
|
83
|
+
showField: "code",
|
|
84
|
+
logisticsCompanyFormType: _this.logisticsCompanyFormType || "select"
|
|
87
85
|
});
|
|
88
86
|
});
|
|
89
87
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -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
|
|
10
|
+
import { getJstColumns, getWlnColumns, getGyColumns, getWdtColumns, getKmColumns, getJyColumns, getSkxColumns } 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(
|
|
16
|
+
return _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,
|
|
@@ -28,8 +28,6 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
28
28
|
disabled: true
|
|
29
29
|
})), getJyColumns({
|
|
30
30
|
disabled: true
|
|
31
|
-
})), getJkyColumns({
|
|
32
|
-
disabled: true
|
|
33
31
|
})), getSkxColumns({})), {}, {
|
|
34
32
|
default: defaultColumns({
|
|
35
33
|
text: text
|
|
@@ -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,
|
|
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, WDT_RETURN_BILL_NO_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";
|
|
@@ -782,7 +782,6 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
782
782
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
783
783
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
784
784
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
785
|
-
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
786
785
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
787
786
|
};
|
|
788
787
|
var rowKeyMap = {
|
|
@@ -794,7 +793,6 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
794
793
|
GY_SYSTEM_ORDER: "billNo",
|
|
795
794
|
JST_SYSTEM_ORDER: "oId",
|
|
796
795
|
JY_SYSTEM_ORDER: "tradeNo",
|
|
797
|
-
JKY_SYSTEM_ORDER: "tradeNo",
|
|
798
796
|
WDT_RETURN_BILL_NO: "refundNo"
|
|
799
797
|
};
|
|
800
798
|
var rowSelection = {
|