@kmkf-fe-packages/kmkf-utils 2.0.0-rc.13 → 2.0.0-rc.15
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/baseAddressData/baseAddressData.d.ts +9 -0
- package/dist/esm/{addressData/index.js → baseAddressData/baseAddressData.js} +26 -60
- package/dist/esm/baseAddressData/constants/addressData.d.ts +10 -0
- package/dist/esm/baseAddressData/constants/addressData.js +43 -0
- package/dist/esm/baseAddressData/constants/bsAddressData.d.ts +10 -0
- package/dist/esm/baseAddressData/constants/bsAddressData.js +43 -0
- package/dist/esm/baseAddressData/constants/gyAddressData.d.ts +12 -0
- package/dist/esm/baseAddressData/constants/gyAddressData.js +70 -0
- package/dist/esm/baseAddressData/constants/wdtAddressData.d.ts +13 -0
- package/dist/esm/{wdtAddressData/index.js → baseAddressData/constants/wdtAddressData.js} +23 -75
- package/dist/esm/baseAddressData/index.d.ts +4 -0
- package/dist/esm/baseAddressData/index.js +4 -0
- package/dist/esm/baseAddressData/type.d.ts +5 -0
- package/dist/esm/baseAddressData/type.js +1 -0
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.js +2 -3
- package/dist/esm/servers/GY/index.d.ts +1 -0
- package/dist/esm/servers/GY/index.js +1 -0
- package/dist/esm/servers/GY/warehouseData.d.ts +7 -0
- package/dist/esm/servers/GY/warehouseData.js +33 -0
- package/dist/esm/servers/index.d.ts +8 -8
- package/dist/esm/servers/index.js +28 -11
- package/dist/esm/setSessionStorage/cacheOrderInfo.d.ts +9 -0
- package/dist/esm/setSessionStorage/cacheOrderInfo.js +28 -0
- package/dist/esm/setSessionStorage/index.d.ts +12 -0
- package/dist/esm/setSessionStorage/index.js +5 -0
- package/dist/esm/utils/FetchAll.d.ts +2 -1
- package/dist/esm/utils/FetchAll.js +5 -1
- package/dist/esm/utils/SendData.d.ts +1 -1
- package/dist/esm/utils/SendData.js +6 -3
- package/dist/esm/utils/bsE3OrderBackFormValues.d.ts +20 -0
- package/dist/esm/utils/bsE3OrderBackFormValues.js +96 -3
- package/dist/esm/utils/bsOrderBackFormValues.d.ts +10 -0
- package/dist/esm/utils/bsOrderBackFormValues.js +33 -0
- package/dist/esm/utils/gyOrderBackFormValues.d.ts +35 -0
- package/dist/esm/utils/gyOrderBackFormValues.js +298 -0
- package/dist/esm/utils/index.d.ts +5 -4
- package/dist/esm/utils/index.js +5 -4
- package/dist/esm/utils/orderBackFormValues.js +5 -2
- package/dist/esm/utils/unTransField.js +1 -1
- package/dist/esm/utils/wdtOrderBackFormValues.d.ts +10 -0
- package/dist/esm/utils/wdtOrderBackFormValues.js +38 -20
- package/dist/esm/utils/wlnOrderBackFormValues.d.ts +10 -0
- package/dist/esm/utils/wlnOrderBackFormValues.js +18 -0
- package/package.json +2 -2
- package/dist/esm/addressData/index.d.ts +0 -33
- package/dist/esm/bsAddressData/index.d.ts +0 -33
- package/dist/esm/bsAddressData/index.js +0 -95
- package/dist/esm/wdtAddressData/index.d.ts +0 -36
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import WdtAddressData from "../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
6
|
-
export * as
|
|
7
|
-
export * as
|
|
8
|
-
export * as WLN from './WLN';
|
|
1
|
+
import { WdtAddressData, GyAddressData, BsAddressData, AddressData } from "../baseAddressData";
|
|
2
|
+
export * as BSE3 from "./BSE3";
|
|
3
|
+
export * as WDT from "./WDT";
|
|
4
|
+
export * as KM from "./KM";
|
|
5
|
+
export * as GY from "./GY";
|
|
6
|
+
export * as JST from "./JST";
|
|
7
|
+
export * as WLN from "./WLN";
|
|
9
8
|
export declare const queryWdtAddressData: (instance?: WdtAddressData) => Promise<void>;
|
|
9
|
+
export declare const queryGyAddressData: (instance?: GyAddressData) => Promise<void>;
|
|
10
10
|
export declare const queryAddressData: (instance?: AddressData) => Promise<void>;
|
|
11
11
|
export declare const queryBsAddressData: (instance?: BsAddressData) => Promise<void>;
|
|
12
12
|
export declare const queryWdtWarehouseList: (pageNo: number, pageSize: number) => Promise<import("../request/index").serverProps<{
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import get from "lodash/get";
|
|
2
|
-
import WdtAddressData from "../
|
|
3
|
-
import AddressData from "../addressData";
|
|
4
|
-
import BsAddressData from "../bsAddressData";
|
|
2
|
+
import { WdtAddressData, GyAddressData, BsAddressData, AddressData } from "../baseAddressData";
|
|
5
3
|
import toTree from "../utils/toTree";
|
|
6
4
|
import request from "../request/index";
|
|
7
5
|
import * as _BSE from "./BSE3";
|
|
@@ -10,6 +8,8 @@ import * as _WDT from "./WDT";
|
|
|
10
8
|
export { _WDT as WDT };
|
|
11
9
|
import * as _KM from "./KM";
|
|
12
10
|
export { _KM as KM };
|
|
11
|
+
import * as _GY from "./GY";
|
|
12
|
+
export { _GY as GY };
|
|
13
13
|
import * as _JST from "./JST";
|
|
14
14
|
export { _JST as JST };
|
|
15
15
|
import * as _WLN from "./WLN";
|
|
@@ -18,8 +18,9 @@ var transformData = function transformData(list) {
|
|
|
18
18
|
var map = {};
|
|
19
19
|
var res = {};
|
|
20
20
|
for (var i = 0; i < list.length; i++) {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
var _list$i$name, _list$i$name2;
|
|
22
|
+
res[list[i]["id"]] = [(_list$i$name = list[i]["name"]) === null || _list$i$name === void 0 ? void 0 : _list$i$name.trim(), list[i]["parentId"]];
|
|
23
|
+
map[(_list$i$name2 = list[i]["name"]) === null || _list$i$name2 === void 0 ? void 0 : _list$i$name2.trim()] = list[i]["id"];
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
map: map,
|
|
@@ -42,6 +43,22 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
42
43
|
instance.addressOptions = toTree(list, 1);
|
|
43
44
|
});
|
|
44
45
|
};
|
|
46
|
+
export var queryGyAddressData = function queryGyAddressData() {
|
|
47
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : GyAddressData.getInstance();
|
|
48
|
+
return request({
|
|
49
|
+
url: "/qy/gdfw/gy/erp/getAreasList/noLogin",
|
|
50
|
+
method: "post",
|
|
51
|
+
data: {}
|
|
52
|
+
}).then(function (resp) {
|
|
53
|
+
var list = resp.data || [];
|
|
54
|
+
var _transformData2 = transformData(list),
|
|
55
|
+
res = _transformData2.res,
|
|
56
|
+
map = _transformData2.map;
|
|
57
|
+
instance.addrData = res;
|
|
58
|
+
instance.addrNameMap = map;
|
|
59
|
+
instance.addressOptions = toTree(list, 1);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
45
62
|
export var queryAddressData = function queryAddressData() {
|
|
46
63
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : AddressData.getInstance();
|
|
47
64
|
return request({
|
|
@@ -50,9 +67,9 @@ export var queryAddressData = function queryAddressData() {
|
|
|
50
67
|
data: {}
|
|
51
68
|
}).then(function (resp) {
|
|
52
69
|
var list = resp.data || [];
|
|
53
|
-
var
|
|
54
|
-
res =
|
|
55
|
-
map =
|
|
70
|
+
var _transformData3 = transformData(list),
|
|
71
|
+
res = _transformData3.res,
|
|
72
|
+
map = _transformData3.map;
|
|
56
73
|
instance.addrData = res;
|
|
57
74
|
instance.addrNameMap = map;
|
|
58
75
|
instance.addressOptions = get(toTree(list, 0), "0.children", []);
|
|
@@ -66,9 +83,9 @@ export var queryBsAddressData = function queryBsAddressData() {
|
|
|
66
83
|
data: {}
|
|
67
84
|
}).then(function (resp) {
|
|
68
85
|
var list = resp.data || [];
|
|
69
|
-
var
|
|
70
|
-
res =
|
|
71
|
-
map =
|
|
86
|
+
var _transformData4 = transformData(list),
|
|
87
|
+
res = _transformData4.res,
|
|
88
|
+
map = _transformData4.map;
|
|
72
89
|
instance.addrData = res;
|
|
73
90
|
instance.addrNameMap = map;
|
|
74
91
|
instance.addressOptions = toTree(list, 1);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const setCacheOmsOrderInfo: ({ itemKey, itemValue, }: {
|
|
2
|
+
itemKey: string;
|
|
3
|
+
itemValue: Record<string, any>;
|
|
4
|
+
}) => void;
|
|
5
|
+
export declare const setCacheOrderInfo: ({ itemKey, itemValue, ext, }: {
|
|
6
|
+
itemKey: string;
|
|
7
|
+
itemValue: Record<string, any>;
|
|
8
|
+
ext?: Record<string, any> | undefined;
|
|
9
|
+
}) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
export var setCacheOmsOrderInfo = function setCacheOmsOrderInfo(_ref) {
|
|
8
|
+
var itemKey = _ref.itemKey,
|
|
9
|
+
itemValue = _ref.itemValue;
|
|
10
|
+
console.log("触发--setCacheOmsOrderInfo", {
|
|
11
|
+
itemKey: itemKey,
|
|
12
|
+
itemValue: itemValue
|
|
13
|
+
});
|
|
14
|
+
var cacheOmsOrderInfo = JSON.parse(sessionStorage.getItem("cacheOmsOrderInfo") || "{}");
|
|
15
|
+
sessionStorage.setItem("cacheOmsOrderInfo", JSON.stringify(_objectSpread(_objectSpread({}, cacheOmsOrderInfo), {}, _defineProperty({}, itemKey, itemValue))));
|
|
16
|
+
};
|
|
17
|
+
export var setCacheOrderInfo = function setCacheOrderInfo(_ref2) {
|
|
18
|
+
var itemKey = _ref2.itemKey,
|
|
19
|
+
itemValue = _ref2.itemValue,
|
|
20
|
+
ext = _ref2.ext;
|
|
21
|
+
console.log("触发--setCacheOrderInfo", {
|
|
22
|
+
itemKey: itemKey,
|
|
23
|
+
itemValue: itemValue,
|
|
24
|
+
ext: ext
|
|
25
|
+
});
|
|
26
|
+
var cacheOrderInfo = JSON.parse(sessionStorage.getItem("cacheOrderInfo") || "{}");
|
|
27
|
+
sessionStorage.setItem("cacheOrderInfo", JSON.stringify(_objectSpread(_objectSpread(_objectSpread({}, cacheOrderInfo), ext !== null && ext !== void 0 ? ext : {}), {}, _defineProperty({}, itemKey, itemValue))));
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
setCacheOmsOrderInfo: ({ itemKey, itemValue, }: {
|
|
3
|
+
itemKey: string;
|
|
4
|
+
itemValue: Record<string, any>;
|
|
5
|
+
}) => void;
|
|
6
|
+
setCacheOrderInfo: ({ itemKey, itemValue, ext, }: {
|
|
7
|
+
itemKey: string;
|
|
8
|
+
itemValue: Record<string, any>;
|
|
9
|
+
ext?: Record<string, any> | undefined;
|
|
10
|
+
}) => void;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -3,7 +3,8 @@ export declare function fetchAll<T = any, D = any>(key: string, fetchAction: (pa
|
|
|
3
3
|
pageSize: number;
|
|
4
4
|
}) => Promise<{
|
|
5
5
|
data?: D;
|
|
6
|
-
}>, getList: (data: D) => T[], { pageNo, pageSize }?: {
|
|
6
|
+
}>, getList: (data: D) => T[], { pageNo, pageSize, useCache }?: {
|
|
7
7
|
pageNo?: number | undefined;
|
|
8
8
|
pageSize?: number | undefined;
|
|
9
|
+
useCache?: boolean | undefined;
|
|
9
10
|
}): Promise<T[]>;
|
|
@@ -10,7 +10,9 @@ export function fetchAll(key, fetchAction, getList) {
|
|
|
10
10
|
_ref$pageNo = _ref.pageNo,
|
|
11
11
|
pageNo = _ref$pageNo === void 0 ? 0 : _ref$pageNo,
|
|
12
12
|
_ref$pageSize = _ref.pageSize,
|
|
13
|
-
pageSize = _ref$pageSize === void 0 ? 100 : _ref$pageSize
|
|
13
|
+
pageSize = _ref$pageSize === void 0 ? 100 : _ref$pageSize,
|
|
14
|
+
_ref$useCache = _ref.useCache,
|
|
15
|
+
useCache = _ref$useCache === void 0 ? true : _ref$useCache;
|
|
14
16
|
if (!singletonPromiseMap.has(key)) {
|
|
15
17
|
singletonPromiseMap.set(key, new Promise(function (resolve, reject) {
|
|
16
18
|
var list = [];
|
|
@@ -28,9 +30,11 @@ export function fetchAll(key, fetchAction, getList) {
|
|
|
28
30
|
fetchList();
|
|
29
31
|
} else {
|
|
30
32
|
resolve(list);
|
|
33
|
+
if (!useCache) singletonPromiseMap.delete(key);
|
|
31
34
|
}
|
|
32
35
|
} else {
|
|
33
36
|
resolve([]);
|
|
37
|
+
if (!useCache) singletonPromiseMap.delete(key);
|
|
34
38
|
}
|
|
35
39
|
}).catch(function (e) {
|
|
36
40
|
singletonPromiseMap.delete(key);
|
|
@@ -18,6 +18,6 @@ declare class SendData {
|
|
|
18
18
|
export declare class SendDataCenter {
|
|
19
19
|
static instanceMap: Map<SendGoodPlatform, SendData>;
|
|
20
20
|
static getInstance(platform: SendGoodPlatform): SendData;
|
|
21
|
-
static fetchData(): Promise<[void, void]>;
|
|
21
|
+
static fetchData(): Promise<[void, void, void]>;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -8,7 +8,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
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 { BSE3, WDT, KM } from "../servers/index";
|
|
11
|
+
import { BSE3, WDT, KM, GY } from "../servers/index";
|
|
12
12
|
var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
|
|
13
13
|
var _this = this;
|
|
14
14
|
_classCallCheck(this, SendData);
|
|
@@ -22,6 +22,7 @@ var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
|
|
|
22
22
|
case 0:
|
|
23
23
|
_context.next = 2;
|
|
24
24
|
return (_this$service = _this.service) === null || _this$service === void 0 ? void 0 : _this$service.getWarehouseDataAsync().then(function (list) {
|
|
25
|
+
console.log("管易发货仓下拉---", _this.platform, list);
|
|
25
26
|
_this.sendData = list;
|
|
26
27
|
});
|
|
27
28
|
case 2:
|
|
@@ -54,7 +55,8 @@ var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
|
|
|
54
55
|
this.service = {
|
|
55
56
|
bsE3: BSE3,
|
|
56
57
|
wdt: WDT,
|
|
57
|
-
km: KM
|
|
58
|
+
km: KM,
|
|
59
|
+
gy: GY
|
|
58
60
|
}[this.platform];
|
|
59
61
|
});
|
|
60
62
|
export var SendDataCenter = /*#__PURE__*/function () {
|
|
@@ -68,6 +70,7 @@ export var SendDataCenter = /*#__PURE__*/function () {
|
|
|
68
70
|
if (platform === "WDT_SEND_GOOD") platform = "wdt";
|
|
69
71
|
if (platform === "BS_E3_SEND_GOOD") platform = "bsE3";
|
|
70
72
|
if (platform === "KM_SEND_GOOD") platform = "km";
|
|
73
|
+
if (platform === "GY_SEND_GOOD") platform = "gy";
|
|
71
74
|
if (!this.instanceMap.has(platform)) {
|
|
72
75
|
this.instanceMap.set(platform, new SendData(platform));
|
|
73
76
|
}
|
|
@@ -76,7 +79,7 @@ export var SendDataCenter = /*#__PURE__*/function () {
|
|
|
76
79
|
}, {
|
|
77
80
|
key: "fetchData",
|
|
78
81
|
value: function fetchData() {
|
|
79
|
-
return Promise.all([this.getInstance("wdt").fetchData(), this.getInstance("km").fetchData()
|
|
82
|
+
return Promise.all([this.getInstance("wdt").fetchData(), this.getInstance("km").fetchData(), this.getInstance("gy").fetchData()
|
|
80
83
|
// this.getInstance("bsE3").fetchData()
|
|
81
84
|
]);
|
|
82
85
|
}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
export declare const BS_E3_SYSTEM_ORDER_CONFIG: {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
selectId: string;
|
|
5
|
+
columns: ({
|
|
6
|
+
title: string;
|
|
7
|
+
dataIndex: string;
|
|
8
|
+
width: number;
|
|
9
|
+
ellipsis: boolean;
|
|
10
|
+
render?: undefined;
|
|
11
|
+
renderExport?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
title: string;
|
|
14
|
+
dataIndex: string;
|
|
15
|
+
width: number;
|
|
16
|
+
ellipsis: boolean;
|
|
17
|
+
render: (val: any) => any;
|
|
18
|
+
renderExport: (val: any) => any;
|
|
19
|
+
})[];
|
|
20
|
+
};
|
|
1
21
|
export declare const BS_E3_BOOLEAN_STATUS_MAP: Record<number, string>;
|
|
2
22
|
export declare const BS_E3_ORDER_STATUS_MAP: Record<number, string>;
|
|
3
23
|
export declare const updateBsE3GoodsHandle: (orders?: any[]) => any;
|
|
@@ -11,6 +11,99 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
13
|
import uuid from "./getUUid";
|
|
14
|
+
export var BS_E3_SYSTEM_ORDER_CONFIG = {
|
|
15
|
+
key: "bsE3SystemShowOrder",
|
|
16
|
+
name: "百胜",
|
|
17
|
+
selectId: "bsE3SystemSelectIds",
|
|
18
|
+
columns: [{
|
|
19
|
+
title: "系统订单号",
|
|
20
|
+
dataIndex: "orderSn",
|
|
21
|
+
width: 150,
|
|
22
|
+
ellipsis: true
|
|
23
|
+
}, {
|
|
24
|
+
title: "订单状态",
|
|
25
|
+
dataIndex: "orderStatus",
|
|
26
|
+
width: 100,
|
|
27
|
+
ellipsis: true,
|
|
28
|
+
render: function render(val) {
|
|
29
|
+
return BS_E3_ORDER_STATUS_MAP[val] || val;
|
|
30
|
+
},
|
|
31
|
+
renderExport: function renderExport(val) {
|
|
32
|
+
return BS_E3_ORDER_STATUS_MAP[val] || val;
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
title: "是否被拆分",
|
|
36
|
+
dataIndex: "isSplit",
|
|
37
|
+
width: 100,
|
|
38
|
+
ellipsis: true,
|
|
39
|
+
render: function render(val) {
|
|
40
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
41
|
+
},
|
|
42
|
+
renderExport: function renderExport(val) {
|
|
43
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
title: "是否拆分子单",
|
|
47
|
+
dataIndex: "isSplitNew",
|
|
48
|
+
width: 100,
|
|
49
|
+
ellipsis: true,
|
|
50
|
+
render: function render(val) {
|
|
51
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
52
|
+
},
|
|
53
|
+
renderExport: function renderExport(val) {
|
|
54
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
title: "是否被合并",
|
|
58
|
+
dataIndex: "isCombine",
|
|
59
|
+
width: 100,
|
|
60
|
+
ellipsis: true,
|
|
61
|
+
render: function render(val) {
|
|
62
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
63
|
+
},
|
|
64
|
+
renderExport: function renderExport(val) {
|
|
65
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
title: "是否合并新单",
|
|
69
|
+
dataIndex: "isCombineNew",
|
|
70
|
+
width: 100,
|
|
71
|
+
ellipsis: true,
|
|
72
|
+
render: function render(val) {
|
|
73
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
74
|
+
},
|
|
75
|
+
renderExport: function renderExport(val) {
|
|
76
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
title: "是否复制单",
|
|
80
|
+
dataIndex: "isCopy",
|
|
81
|
+
width: 100,
|
|
82
|
+
ellipsis: true,
|
|
83
|
+
render: function render(val) {
|
|
84
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
85
|
+
},
|
|
86
|
+
renderExport: function renderExport(val) {
|
|
87
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
title: "是否换货单",
|
|
91
|
+
dataIndex: "isExchangeOrder",
|
|
92
|
+
width: 100,
|
|
93
|
+
ellipsis: true,
|
|
94
|
+
render: function render(val) {
|
|
95
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
96
|
+
},
|
|
97
|
+
renderExport: function renderExport(val) {
|
|
98
|
+
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
title: "订单备注",
|
|
102
|
+
dataIndex: "orderMsg",
|
|
103
|
+
width: 150,
|
|
104
|
+
ellipsis: true
|
|
105
|
+
}]
|
|
106
|
+
};
|
|
14
107
|
export var BS_E3_BOOLEAN_STATUS_MAP = {
|
|
15
108
|
0: "否",
|
|
16
109
|
1: "是"
|
|
@@ -49,7 +142,7 @@ var updateBsE3ItemListHandle = function updateBsE3ItemListHandle(list, type, com
|
|
|
49
142
|
if (type === "logistics") {
|
|
50
143
|
var _comList$find, _currentCom$component;
|
|
51
144
|
var currentCom = comList === null || comList === void 0 ? void 0 : (_comList$find = comList.find) === null || _comList$find === void 0 ? void 0 : _comList$find.call(comList, function (item) {
|
|
52
|
-
return item.workOrderComponentType ===
|
|
145
|
+
return item.workOrderComponentType === "BS_E3_LOGISTICS";
|
|
53
146
|
});
|
|
54
147
|
var notOrderBack = (currentCom === null || currentCom === void 0 ? void 0 : (_currentCom$component = currentCom.componentConfig) === null || _currentCom$component === void 0 ? void 0 : _currentCom$component.notOrderBack) || false;
|
|
55
148
|
if (notOrderBack) {
|
|
@@ -64,7 +157,7 @@ var updateBsE3ItemListHandle = function updateBsE3ItemListHandle(list, type, com
|
|
|
64
157
|
} else if (type === "send") {
|
|
65
158
|
var _comList$find2, _currentCom$component2;
|
|
66
159
|
var _currentCom = comList === null || comList === void 0 ? void 0 : (_comList$find2 = comList.find) === null || _comList$find2 === void 0 ? void 0 : _comList$find2.call(comList, function (item) {
|
|
67
|
-
return item.workOrderComponentType ===
|
|
160
|
+
return item.workOrderComponentType === "BS_E3_SEND_GOOD";
|
|
68
161
|
});
|
|
69
162
|
var _notOrderBack = (_currentCom === null || _currentCom === void 0 ? void 0 : (_currentCom$component2 = _currentCom.componentConfig) === null || _currentCom$component2 === void 0 ? void 0 : _currentCom$component2.notOrderBack) || false;
|
|
70
163
|
if (_notOrderBack) {
|
|
@@ -203,7 +296,7 @@ export var bsE3OrderBackFormValues = function bsE3OrderBackFormValues() {
|
|
|
203
296
|
prv[uniqueKey] = {
|
|
204
297
|
bsE3SystemOrder: detail === null || detail === void 0 ? void 0 : detail.bsE3SystemOrder,
|
|
205
298
|
bsE3SystemOrderNo: detail === null || detail === void 0 ? void 0 : detail.bsE3SystemOrderNo,
|
|
206
|
-
bsE3ReissueType: [
|
|
299
|
+
bsE3ReissueType: ["1"],
|
|
207
300
|
bsE3ReissueGoods: (detail === null || detail === void 0 ? void 0 : detail.bsE3ReissueGoods) || []
|
|
208
301
|
};
|
|
209
302
|
break;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export declare const BS_SYSTEM_ORDER_CONFIG: {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
selectId: string;
|
|
5
|
+
columns: {
|
|
6
|
+
title: string;
|
|
7
|
+
dataIndex: string;
|
|
8
|
+
width: number;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
1
11
|
export declare const bsOrderBackFormValues: (detail?: any, templateDetail?: any) => any;
|
|
2
12
|
export declare const bsOrderTransform: (detail: any) => {
|
|
3
13
|
bsSystemOrder: {
|
|
@@ -7,6 +7,39 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
7
|
import ExpressData from "../expressData";
|
|
8
8
|
import ExpressInterceptData from "../expressInterceptData";
|
|
9
9
|
import uuid from "./getUUid";
|
|
10
|
+
export var BS_SYSTEM_ORDER_CONFIG = {
|
|
11
|
+
key: "bsSystemShowOrder",
|
|
12
|
+
name: "百胜",
|
|
13
|
+
selectId: "bsSystemSelectIds",
|
|
14
|
+
columns: [{
|
|
15
|
+
title: "订单类型",
|
|
16
|
+
dataIndex: "billType",
|
|
17
|
+
width: 150
|
|
18
|
+
}, {
|
|
19
|
+
title: "系统订单号",
|
|
20
|
+
dataIndex: "billNo",
|
|
21
|
+
width: 150
|
|
22
|
+
}, {
|
|
23
|
+
title: "标签",
|
|
24
|
+
dataIndex: "billTag",
|
|
25
|
+
width: 150
|
|
26
|
+
}, {
|
|
27
|
+
title: "主播名称",
|
|
28
|
+
dataIndex: "authorName",
|
|
29
|
+
width: 150
|
|
30
|
+
}, {
|
|
31
|
+
title: "主播ID",
|
|
32
|
+
dataIndex: "authorId",
|
|
33
|
+
width: 150
|
|
34
|
+
}
|
|
35
|
+
// {
|
|
36
|
+
// title: '直播活动',
|
|
37
|
+
// dataIndex: 'liveActivites',
|
|
38
|
+
// width: 150,
|
|
39
|
+
// },
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
|
|
10
43
|
var updateBsGoodsHandle = function updateBsGoodsHandle() {
|
|
11
44
|
var orders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
12
45
|
var list = orders.reduce(function (prv, next) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const GY_DELIVERY_STATE_MAPPING: {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const GY_SYSTEM_ORDER_CONFIG: {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
selectId: string;
|
|
8
|
+
columns: {
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
title: string;
|
|
11
|
+
width: number;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
export declare const getIsPlatformCodesIncludeOrderNos: (platformCodes: string, orderNos: string) => boolean;
|
|
15
|
+
export declare const updateGyGoodsHandle: (orders?: any[]) => any;
|
|
16
|
+
export declare const gyOrderTransform: (detail: any, form: any) => {
|
|
17
|
+
gySystemOrder: {
|
|
18
|
+
orderNo: any;
|
|
19
|
+
orders: any;
|
|
20
|
+
selectIds: any;
|
|
21
|
+
showOrderInfo: any;
|
|
22
|
+
};
|
|
23
|
+
gySystemOrderNo: any;
|
|
24
|
+
gyReissueGoods: any;
|
|
25
|
+
gyGoods: {
|
|
26
|
+
orders: any;
|
|
27
|
+
orderNo: any;
|
|
28
|
+
shopCode: any;
|
|
29
|
+
vipCode: any;
|
|
30
|
+
gyGoods: any;
|
|
31
|
+
};
|
|
32
|
+
gySendGood: any;
|
|
33
|
+
};
|
|
34
|
+
export declare const gyOrderBackFormValues: (detail?: any, templateDetail?: any) => any;
|
|
35
|
+
export declare const filterGyOrders: (trades: any, order_no: string) => any;
|