@kmkf-fe-packages/services-components 2.2.3 → 2.2.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/components/BS/BsLogistics/index.d.ts +5 -2
- package/dist/esm/components/BS/BsLogistics/index.js +19 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderPic.js +4 -9
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +14 -6
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +14 -4
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
- package/dist/esm/components/Common/img/ai.png +0 -0
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +15 -8
- package/dist/esm/components/CommonHeaderGood/index.js +230 -4
- package/dist/esm/components/FlowTag/index.js +10 -2
- package/dist/esm/components/GY/GyGoods/index.js +2 -0
- package/dist/esm/components/GY/GyReissue/index.js +2 -0
- package/dist/esm/components/GY/GyReturn/index.js +2 -0
- package/dist/esm/components/JST/JstSendGood/index.js +9 -1
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/MsgStatus/index.js +6 -1
- package/dist/esm/components/OrderSubForm/index.d.ts +49 -0
- package/dist/esm/components/OrderSubForm/index.js +268 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Public/Goods/index.d.ts +3 -0
- package/dist/esm/components/Public/Goods/index.js +3 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +7 -6
- package/dist/esm/components/Select/index.js +3 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +37 -0
- package/package.json +4 -4
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
|
@@ -14,7 +14,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
14
14
|
import React from "react";
|
|
15
15
|
import { BsExpressRender } from "../../Common";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
-
import {
|
|
17
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
19
|
BS_LOGISTICS: {
|
|
20
20
|
key: "bsLogisticsItem"
|
|
@@ -37,8 +37,14 @@ var typeMap = {
|
|
|
37
37
|
GY_LOGISTICS: {
|
|
38
38
|
key: "gyLogisticsItem"
|
|
39
39
|
},
|
|
40
|
+
JY_LOGISTICS: {
|
|
41
|
+
key: "jyLogisticsItem"
|
|
42
|
+
},
|
|
40
43
|
SKX_LOGISTICS: {
|
|
41
44
|
key: "skxLogisticsItem"
|
|
45
|
+
},
|
|
46
|
+
SKX_RETURN_LOGISTICS: {
|
|
47
|
+
key: "skxReturnLogisticsItem"
|
|
42
48
|
}
|
|
43
49
|
};
|
|
44
50
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -74,8 +80,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
74
80
|
}
|
|
75
81
|
return /*#__PURE__*/React.createElement(BsExpressRender, {
|
|
76
82
|
list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
|
|
77
|
-
showField: "code"
|
|
78
|
-
logisticsCompanyFormType: _this.logisticsCompanyFormType || "select"
|
|
83
|
+
showField: "code"
|
|
79
84
|
});
|
|
80
85
|
});
|
|
81
86
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -95,13 +100,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
95
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
96
101
|
var subKey = item.subKey;
|
|
97
102
|
return {
|
|
98
|
-
searchDefaultConditions:
|
|
103
|
+
searchDefaultConditions: {
|
|
104
|
+
in: SYMBOL.in,
|
|
105
|
+
anylike: SYMBOL.anylike
|
|
106
|
+
},
|
|
99
107
|
type: item.type,
|
|
100
108
|
id: "".concat(item.id, "_").concat(subKey),
|
|
101
109
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
|
|
102
110
|
filterComponentType: "SelectInput",
|
|
103
111
|
props: {
|
|
104
|
-
filterOptions:
|
|
112
|
+
filterOptions: SEARCH_OPTIONS
|
|
105
113
|
},
|
|
106
114
|
filterFn: function filterFn(value) {
|
|
107
115
|
return function (i) {
|
|
@@ -109,7 +117,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
109
117
|
};
|
|
110
118
|
},
|
|
111
119
|
formatFilterValue: function formatFilterValue(value) {
|
|
112
|
-
if (value.type
|
|
120
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
113
121
|
return batchInput(value.keywords);
|
|
114
122
|
} else {
|
|
115
123
|
return value;
|
|
@@ -31,6 +31,10 @@ declare class Express implements ComponentInterface {
|
|
|
31
31
|
renderExport: (value: string, record: Record) => any;
|
|
32
32
|
editRender: () => null;
|
|
33
33
|
filterConfig: (item: ColumnConfig) => {
|
|
34
|
+
searchDefaultConditions: {
|
|
35
|
+
in: "in";
|
|
36
|
+
anylike: "anylike";
|
|
37
|
+
};
|
|
34
38
|
filterComponentType: "SelectInput";
|
|
35
39
|
props: {
|
|
36
40
|
filterOptions: {
|
|
@@ -41,18 +45,17 @@ declare class Express implements ComponentInterface {
|
|
|
41
45
|
};
|
|
42
46
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
43
47
|
formatFilterValue: (value: any) => any;
|
|
44
|
-
searchDefaultConditions: "in";
|
|
45
48
|
type: string;
|
|
46
49
|
id: string;
|
|
47
50
|
name: string;
|
|
48
51
|
} | {
|
|
52
|
+
searchDefaultConditions: "in";
|
|
49
53
|
filterComponentType: "MultipleSelect";
|
|
50
54
|
props: {
|
|
51
55
|
options: any[];
|
|
52
56
|
filterOptions?: undefined;
|
|
53
57
|
};
|
|
54
58
|
filterFn: (value: string) => (i: Record) => any;
|
|
55
|
-
searchDefaultConditions: "in";
|
|
56
59
|
type: string;
|
|
57
60
|
id: string;
|
|
58
61
|
name: string;
|
|
@@ -17,7 +17,7 @@ import React from "react";
|
|
|
17
17
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { BsExpressRender } from "../../Common";
|
|
19
19
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
20
|
-
import {
|
|
20
|
+
import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
|
|
21
21
|
var typeMap = {
|
|
22
22
|
BS_LOGISTICS: {
|
|
23
23
|
key: "bsLogisticsItem"
|
|
@@ -40,8 +40,14 @@ var typeMap = {
|
|
|
40
40
|
GY_LOGISTICS: {
|
|
41
41
|
key: "gyLogisticsItem"
|
|
42
42
|
},
|
|
43
|
+
JY_LOGISTICS: {
|
|
44
|
+
key: "jyLogisticsItem"
|
|
45
|
+
},
|
|
43
46
|
SKX_LOGISTICS: {
|
|
44
47
|
key: "skxLogisticsItem"
|
|
48
|
+
},
|
|
49
|
+
SKX_RETURN_LOGISTICS: {
|
|
50
|
+
key: "skxReturnLogisticsItem"
|
|
45
51
|
}
|
|
46
52
|
};
|
|
47
53
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -104,14 +110,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
104
110
|
var _this$expressDateInst3;
|
|
105
111
|
var subKey = item.subKey;
|
|
106
112
|
return _objectSpread({
|
|
107
|
-
searchDefaultConditions: SYMBOL.in,
|
|
108
113
|
type: item.type,
|
|
109
114
|
id: "".concat(item.id, "_").concat(subKey),
|
|
110
115
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8")
|
|
111
116
|
}, _this.logisticsCompanyFormType === "input" ? {
|
|
117
|
+
searchDefaultConditions: {
|
|
118
|
+
in: SYMBOL.in,
|
|
119
|
+
anylike: SYMBOL.anylike
|
|
120
|
+
},
|
|
112
121
|
filterComponentType: "SelectInput",
|
|
113
122
|
props: {
|
|
114
|
-
filterOptions:
|
|
123
|
+
filterOptions: SEARCH_OPTIONS
|
|
115
124
|
},
|
|
116
125
|
filterFn: function filterFn(value) {
|
|
117
126
|
return function (i) {
|
|
@@ -119,13 +128,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
119
128
|
};
|
|
120
129
|
},
|
|
121
130
|
formatFilterValue: function formatFilterValue(value) {
|
|
122
|
-
if (value.type
|
|
131
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
123
132
|
return batchInput(value.keywords);
|
|
124
133
|
} else {
|
|
125
134
|
return value;
|
|
126
135
|
}
|
|
127
136
|
}
|
|
128
137
|
} : {
|
|
138
|
+
searchDefaultConditions: SYMBOL.in,
|
|
129
139
|
filterComponentType: "MultipleSelect",
|
|
130
140
|
props: {
|
|
131
141
|
options: ((_this$expressDateInst3 = _this.expressDateInstance) === null || _this$expressDateInst3 === void 0 ? void 0 : _this$expressDateInst3.getExpressData()) || []
|
|
@@ -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, getSkxColumns } from "@kmkf-fe-packages/basic-components";
|
|
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({}, system()), bs({
|
|
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,
|
|
@@ -26,6 +26,8 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
26
26
|
text: text
|
|
27
27
|
})), getKmColumns({
|
|
28
28
|
disabled: true
|
|
29
|
+
})), getJyColumns({
|
|
30
|
+
disabled: true
|
|
29
31
|
})), getSkxColumns({})), {}, {
|
|
30
32
|
default: defaultColumns({
|
|
31
33
|
text: text
|
|
Binary file
|
|
@@ -31,7 +31,7 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
31
31
|
index: number;
|
|
32
32
|
}) => React.JSX.Element;
|
|
33
33
|
export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
|
|
34
|
-
export declare const BsGoodPic: (list: string[]) => React.JSX.Element
|
|
34
|
+
export declare const BsGoodPic: (list: string[]) => React.JSX.Element;
|
|
35
35
|
export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
|
|
36
36
|
list: any[];
|
|
37
37
|
showHeader: (string | ShowHeaderObjType)[];
|
|
@@ -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, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
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, 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
|
var Paragraph = Typography.Paragraph;
|
|
@@ -448,12 +448,17 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
448
448
|
};
|
|
449
449
|
//bs图片展示
|
|
450
450
|
export var BsGoodPic = function BsGoodPic(list) {
|
|
451
|
-
return list.map(function (t) {
|
|
452
|
-
|
|
451
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, list.map(function (t) {
|
|
452
|
+
var finalSrc = t !== null && t !== void 0 && t.startsWith("http") ? t : "https://kefu.kuaimai.com/".concat(t);
|
|
453
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
454
|
+
onClick: function onClick(e) {
|
|
455
|
+
return e.stopPropagation();
|
|
456
|
+
}
|
|
457
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
453
458
|
width: 60,
|
|
454
|
-
src:
|
|
455
|
-
});
|
|
456
|
-
});
|
|
459
|
+
src: finalSrc
|
|
460
|
+
}));
|
|
461
|
+
}));
|
|
457
462
|
};
|
|
458
463
|
export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
459
464
|
var list = _ref11.list,
|
|
@@ -771,7 +776,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
771
776
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
772
777
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
773
778
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
774
|
-
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
|
|
779
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
780
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
775
781
|
};
|
|
776
782
|
var rowKeyMap = {
|
|
777
783
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -780,7 +786,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
780
786
|
WDT_SYSTEM_ORDER: "billNo",
|
|
781
787
|
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
782
788
|
GY_SYSTEM_ORDER: "billNo",
|
|
783
|
-
JST_SYSTEM_ORDER: "oId"
|
|
789
|
+
JST_SYSTEM_ORDER: "oId",
|
|
790
|
+
JY_SYSTEM_ORDER: "tradeNo"
|
|
784
791
|
};
|
|
785
792
|
var rowSelection = {
|
|
786
793
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
@@ -987,11 +987,11 @@ var GoodHeaderMap = {
|
|
|
987
987
|
name: "总金额",
|
|
988
988
|
transformValue: function transformValue(val, record, parentName) {
|
|
989
989
|
if (!record) return "--";
|
|
990
|
-
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
990
|
+
return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
|
|
991
991
|
},
|
|
992
992
|
renderExport: function renderExport(val, record, parentName) {
|
|
993
993
|
if (!record) return "--";
|
|
994
|
-
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
994
|
+
return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
|
|
995
995
|
}
|
|
996
996
|
},
|
|
997
997
|
batchId: "批次号",
|
|
@@ -1083,11 +1083,11 @@ var GoodHeaderMap = {
|
|
|
1083
1083
|
name: "总金额",
|
|
1084
1084
|
transformValue: function transformValue(val, record, parentName) {
|
|
1085
1085
|
if (!record) return "--";
|
|
1086
|
-
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1086
|
+
return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
|
|
1087
1087
|
},
|
|
1088
1088
|
renderExport: function renderExport(val, record, parentName) {
|
|
1089
1089
|
if (!record) return "--";
|
|
1090
|
-
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1090
|
+
return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
|
|
1091
1091
|
}
|
|
1092
1092
|
},
|
|
1093
1093
|
batchId: "批次号",
|
|
@@ -1353,6 +1353,216 @@ var GoodHeaderMap = {
|
|
|
1353
1353
|
},
|
|
1354
1354
|
moneyKey: "money"
|
|
1355
1355
|
},
|
|
1356
|
+
JY_GOODS: {
|
|
1357
|
+
headerMap: {
|
|
1358
|
+
goodsName: {
|
|
1359
|
+
component: BsHeaderChild,
|
|
1360
|
+
name: "货品名称",
|
|
1361
|
+
key: "goodsName",
|
|
1362
|
+
width: 150
|
|
1363
|
+
},
|
|
1364
|
+
goodsCode: {
|
|
1365
|
+
component: BsHeaderChild,
|
|
1366
|
+
name: "货品编号",
|
|
1367
|
+
key: "goodsCode",
|
|
1368
|
+
width: 200
|
|
1369
|
+
},
|
|
1370
|
+
goodsId: {
|
|
1371
|
+
component: BsHeaderChild,
|
|
1372
|
+
name: "货品ID",
|
|
1373
|
+
key: "goodsId",
|
|
1374
|
+
width: 150
|
|
1375
|
+
},
|
|
1376
|
+
goodsClass: {
|
|
1377
|
+
component: BsHeaderChild,
|
|
1378
|
+
name: "货品分类",
|
|
1379
|
+
key: "goodsClass",
|
|
1380
|
+
width: 150
|
|
1381
|
+
},
|
|
1382
|
+
code: {
|
|
1383
|
+
component: BsHeaderChild,
|
|
1384
|
+
name: "条码",
|
|
1385
|
+
key: "code",
|
|
1386
|
+
width: 150
|
|
1387
|
+
},
|
|
1388
|
+
specName: {
|
|
1389
|
+
component: BsHeaderChild,
|
|
1390
|
+
name: "规格名称",
|
|
1391
|
+
key: "specName",
|
|
1392
|
+
width: 200
|
|
1393
|
+
},
|
|
1394
|
+
specCode: {
|
|
1395
|
+
component: BsHeaderChild,
|
|
1396
|
+
name: "规格编号",
|
|
1397
|
+
key: "specCode",
|
|
1398
|
+
width: 150
|
|
1399
|
+
},
|
|
1400
|
+
specId: {
|
|
1401
|
+
component: BsHeaderChild,
|
|
1402
|
+
name: "规格ID",
|
|
1403
|
+
key: "specId",
|
|
1404
|
+
width: 150
|
|
1405
|
+
},
|
|
1406
|
+
productName: {
|
|
1407
|
+
component: BsHeaderChild,
|
|
1408
|
+
name: "系统商品名称",
|
|
1409
|
+
key: "productName",
|
|
1410
|
+
width: 150
|
|
1411
|
+
},
|
|
1412
|
+
productCode: {
|
|
1413
|
+
component: BsHeaderChild,
|
|
1414
|
+
name: "系统商品编码",
|
|
1415
|
+
key: "productCode",
|
|
1416
|
+
width: 150
|
|
1417
|
+
},
|
|
1418
|
+
productId: {
|
|
1419
|
+
component: BsHeaderChild,
|
|
1420
|
+
name: "系统商品ID",
|
|
1421
|
+
key: "productId",
|
|
1422
|
+
width: 150
|
|
1423
|
+
},
|
|
1424
|
+
skuName: {
|
|
1425
|
+
component: BsHeaderChild,
|
|
1426
|
+
name: "系统规格名称",
|
|
1427
|
+
key: "skuName",
|
|
1428
|
+
width: 150
|
|
1429
|
+
},
|
|
1430
|
+
skuCode: {
|
|
1431
|
+
component: BsHeaderChild,
|
|
1432
|
+
name: "系统规格编码",
|
|
1433
|
+
key: "skuCode",
|
|
1434
|
+
width: 150
|
|
1435
|
+
},
|
|
1436
|
+
mallProductName: {
|
|
1437
|
+
component: BsHeaderChild,
|
|
1438
|
+
name: "平台商品名称",
|
|
1439
|
+
key: "mallProductName",
|
|
1440
|
+
width: 150
|
|
1441
|
+
},
|
|
1442
|
+
mallProductOutCode: {
|
|
1443
|
+
component: BsHeaderChild,
|
|
1444
|
+
name: "平台商品编码",
|
|
1445
|
+
key: "mallProductOutCode",
|
|
1446
|
+
width: 150
|
|
1447
|
+
},
|
|
1448
|
+
mallProductId: {
|
|
1449
|
+
component: BsHeaderChild,
|
|
1450
|
+
name: "平台商品ID",
|
|
1451
|
+
key: "mallProductId",
|
|
1452
|
+
width: 150
|
|
1453
|
+
},
|
|
1454
|
+
mallSkuName: {
|
|
1455
|
+
component: BsHeaderChild,
|
|
1456
|
+
name: "平台规格名称",
|
|
1457
|
+
key: "mallSkuName",
|
|
1458
|
+
width: 150
|
|
1459
|
+
},
|
|
1460
|
+
mallSkuId: {
|
|
1461
|
+
component: BsHeaderChild,
|
|
1462
|
+
name: "平台规格ID",
|
|
1463
|
+
key: "mallSkuId",
|
|
1464
|
+
width: 150
|
|
1465
|
+
},
|
|
1466
|
+
sellcount: {
|
|
1467
|
+
component: BsHeaderChild,
|
|
1468
|
+
name: "数量",
|
|
1469
|
+
key: "sellcount",
|
|
1470
|
+
width: 100
|
|
1471
|
+
},
|
|
1472
|
+
sellPrice: {
|
|
1473
|
+
component: BsHeaderChild,
|
|
1474
|
+
name: "单价",
|
|
1475
|
+
key: "sellPrice",
|
|
1476
|
+
width: 150
|
|
1477
|
+
},
|
|
1478
|
+
mallSellingPrice: {
|
|
1479
|
+
component: BsHeaderChild,
|
|
1480
|
+
name: "平台商品价格",
|
|
1481
|
+
key: "mallSellingPrice",
|
|
1482
|
+
width: 150
|
|
1483
|
+
},
|
|
1484
|
+
sellTotal: {
|
|
1485
|
+
component: BsHeaderChild,
|
|
1486
|
+
name: "金额",
|
|
1487
|
+
key: "sellTotal",
|
|
1488
|
+
width: 150
|
|
1489
|
+
},
|
|
1490
|
+
settlementPrice: {
|
|
1491
|
+
component: BsHeaderChild,
|
|
1492
|
+
name: "结算价",
|
|
1493
|
+
key: "settlementPrice",
|
|
1494
|
+
width: 150
|
|
1495
|
+
},
|
|
1496
|
+
divideOrderFee: {
|
|
1497
|
+
component: BsHeaderChild,
|
|
1498
|
+
name: "分摊实付金额",
|
|
1499
|
+
key: "divideOrderFee",
|
|
1500
|
+
width: 150
|
|
1501
|
+
},
|
|
1502
|
+
bfit: {
|
|
1503
|
+
component: BsHeaderChild,
|
|
1504
|
+
name: "是否组合装",
|
|
1505
|
+
key: "bfit",
|
|
1506
|
+
width: 150
|
|
1507
|
+
},
|
|
1508
|
+
combinationName: {
|
|
1509
|
+
component: BsHeaderChild,
|
|
1510
|
+
name: "组合商品名称",
|
|
1511
|
+
key: "combinationName",
|
|
1512
|
+
width: 150
|
|
1513
|
+
},
|
|
1514
|
+
combinationCode: {
|
|
1515
|
+
component: BsHeaderChild,
|
|
1516
|
+
name: "组合商品编码",
|
|
1517
|
+
key: "combinationCode",
|
|
1518
|
+
width: 150
|
|
1519
|
+
},
|
|
1520
|
+
gift: {
|
|
1521
|
+
component: BsHeaderChild,
|
|
1522
|
+
name: "是否赠品",
|
|
1523
|
+
key: "gift",
|
|
1524
|
+
width: 150
|
|
1525
|
+
},
|
|
1526
|
+
skuNote: {
|
|
1527
|
+
component: BsHeaderChild,
|
|
1528
|
+
name: "商品备注",
|
|
1529
|
+
key: "skuNote",
|
|
1530
|
+
width: 150
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
itemKey: {
|
|
1534
|
+
goodsName: "货品名称",
|
|
1535
|
+
goodsCode: "货品编号",
|
|
1536
|
+
goodsId: "货品ID",
|
|
1537
|
+
goodsClass: "货品分类",
|
|
1538
|
+
code: "条码",
|
|
1539
|
+
specName: "规格名称",
|
|
1540
|
+
specCode: "规格编号",
|
|
1541
|
+
specId: "规格ID",
|
|
1542
|
+
productName: "系统商品名称",
|
|
1543
|
+
productCode: "系统商品编码",
|
|
1544
|
+
productId: "系统商品ID",
|
|
1545
|
+
skuName: "系统规格名称",
|
|
1546
|
+
skuCode: "系统规格编码",
|
|
1547
|
+
mallProductName: "平台商品名称",
|
|
1548
|
+
mallProductOutCode: "平台商品编码",
|
|
1549
|
+
mallProductId: "平台商品ID",
|
|
1550
|
+
mallSkuName: "平台规格名称",
|
|
1551
|
+
mallSkuId: "平台规格ID",
|
|
1552
|
+
sellcount: "数量",
|
|
1553
|
+
sellPrice: "单价",
|
|
1554
|
+
mallSellingPrice: "平台商品价格",
|
|
1555
|
+
sellTotal: "金额",
|
|
1556
|
+
settlementPrice: "结算价",
|
|
1557
|
+
divideOrderFee: "分摊实付金额",
|
|
1558
|
+
bfit: "是否组合装",
|
|
1559
|
+
combinationName: "组合商品名称",
|
|
1560
|
+
combinationCode: "组合商品编码",
|
|
1561
|
+
gift: "是否赠品",
|
|
1562
|
+
skuNote: "商品备注"
|
|
1563
|
+
},
|
|
1564
|
+
moneyKey: "sellTotal"
|
|
1565
|
+
},
|
|
1356
1566
|
SKX_GOODS: {
|
|
1357
1567
|
headerMap: {
|
|
1358
1568
|
skuEcode: {
|
|
@@ -1368,6 +1578,22 @@ var GoodHeaderMap = {
|
|
|
1368
1578
|
width: 200
|
|
1369
1579
|
}
|
|
1370
1580
|
}
|
|
1581
|
+
},
|
|
1582
|
+
SKX_RETURN_GOODS: {
|
|
1583
|
+
headerMap: {
|
|
1584
|
+
returnSkuEcode: {
|
|
1585
|
+
name: "[SKX]退货单明细-returnSkuEcode",
|
|
1586
|
+
width: 200
|
|
1587
|
+
},
|
|
1588
|
+
returnSubOrderId: {
|
|
1589
|
+
name: "[SKX]退货单-子订单号",
|
|
1590
|
+
width: 300
|
|
1591
|
+
},
|
|
1592
|
+
returnBillNo: {
|
|
1593
|
+
name: "[SKX]TH退换货单号",
|
|
1594
|
+
width: 200
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1371
1597
|
}
|
|
1372
1598
|
};
|
|
1373
1599
|
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
@@ -16,9 +16,11 @@ import GetFormItem from "../GetFormItem";
|
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
import reject from "../Common/img/reject.png";
|
|
18
18
|
import reminder from "../Common/img/reminder.png";
|
|
19
|
+
import ai from "../Common/img/ai.png";
|
|
19
20
|
var TAG_MAP = {
|
|
20
21
|
REMINDER: "催单",
|
|
21
|
-
REJECT: "驳回"
|
|
22
|
+
REJECT: "驳回",
|
|
23
|
+
AI_BUILD: "AI自动建单"
|
|
22
24
|
};
|
|
23
25
|
var TAG_ICON_MAP = {
|
|
24
26
|
REMINDER: /*#__PURE__*/React.createElement("img", {
|
|
@@ -32,6 +34,12 @@ var TAG_ICON_MAP = {
|
|
|
32
34
|
style: {
|
|
33
35
|
width: "16px"
|
|
34
36
|
}
|
|
37
|
+
}),
|
|
38
|
+
AI_BUILD: /*#__PURE__*/React.createElement("img", {
|
|
39
|
+
src: ai,
|
|
40
|
+
style: {
|
|
41
|
+
width: "16px"
|
|
42
|
+
}
|
|
35
43
|
})
|
|
36
44
|
};
|
|
37
45
|
var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
@@ -93,7 +101,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
|
|
|
93
101
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
94
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
95
103
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
96
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
104
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
97
105
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
98
106
|
placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
|
|
99
107
|
}))
|
|
@@ -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 { useGoodsSourceFormat } from "../../../Hooks";
|
|
19
20
|
var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -74,6 +75,7 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
|
74
75
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
76
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
76
77
|
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
78
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
77
79
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
78
80
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
81
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_REISSUE_GOODS: {
|
|
22
23
|
key: "gyReissueGoods",
|
|
@@ -105,6 +106,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
105
106
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
106
107
|
isGyReissue: true,
|
|
107
108
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
109
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
108
110
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
109
111
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
110
112
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
17
17
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
18
18
|
import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import { BsType, SystemOrderNo } from "../../BS/common/index";
|
|
20
|
+
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
GY_RETURN_GOODS: {
|
|
22
23
|
key: "gyReturnGoods",
|
|
@@ -101,6 +102,7 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
101
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
102
103
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
103
104
|
component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
|
|
105
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
104
106
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
105
107
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
106
108
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -70,6 +70,14 @@ var typeMap = {
|
|
|
70
70
|
sendName: "gySendName",
|
|
71
71
|
platformType: "gy",
|
|
72
72
|
dataType: "weakenArray"
|
|
73
|
+
},
|
|
74
|
+
JY_SEND_GOOD: {
|
|
75
|
+
key: "jySendGood",
|
|
76
|
+
name: "jy",
|
|
77
|
+
sendId: "jySendId",
|
|
78
|
+
sendName: "jySendName",
|
|
79
|
+
platformType: "jy",
|
|
80
|
+
dataType: "weakenArray"
|
|
73
81
|
}
|
|
74
82
|
};
|
|
75
83
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -176,7 +184,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
184
|
});
|
|
177
185
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
186
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
187
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
188
|
searchDefaultConditions: SYMBOL.in,
|
|
181
189
|
type: item.type,
|
|
182
190
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -106,7 +106,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
109
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
|
|
110
110
|
searchDefaultConditions: SYMBOL.in,
|
|
111
111
|
type: item.type,
|
|
112
112
|
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
@@ -39,10 +39,15 @@ var typeMap = {
|
|
|
39
39
|
label: "等待执行",
|
|
40
40
|
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: "
|
|
42
|
+
oldValue: "不满足条件,无需执行",
|
|
43
43
|
value: "不满足条件,无需执行",
|
|
44
44
|
label: "不满足条件,无需执行",
|
|
45
45
|
color: "#8A8A8A"
|
|
46
|
+
}, {
|
|
47
|
+
oldValue: "暂不满足条件,等待执行",
|
|
48
|
+
value: "暂不满足条件,等待执行",
|
|
49
|
+
label: "暂不满足条件,等待执行",
|
|
50
|
+
color: "#4D90F7"
|
|
46
51
|
}],
|
|
47
52
|
key: "msgStatusValues",
|
|
48
53
|
code: "msgStatus4Search",
|