@kmkf-fe-packages/services-components 2.0.3 → 2.0.8
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/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +3 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +55 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +3 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +109 -30
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +1 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +1 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +3 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +79 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +3 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +80 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +3 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +78 -0
- package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
- package/dist/esm/components/BS/BsLogistics/index.js +22 -9
- package/dist/esm/components/BS/common/expressCode.js +3 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/Common/dist/index.js +1019 -0
- package/dist/esm/components/PostIng/index.js +10 -18
- package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Reissue/Logistics/index.js +6 -2
- package/dist/esm/components/StatusSelect/constants.d.ts +18 -0
- package/dist/esm/components/StatusSelect/constants.js +23 -0
- package/dist/esm/components/StatusSelect/index.d.ts +10 -6
- package/dist/esm/components/StatusSelect/index.js +49 -110
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +3 -0
- package/dist/esm/service/api.d.ts +1 -1
- package/dist/esm/service/api.js +52 -66
- package/package.json +4 -4
|
@@ -24,35 +24,48 @@ var typeMap = {
|
|
|
24
24
|
name: "bs",
|
|
25
25
|
company: "bsLogisticsCompany",
|
|
26
26
|
code: "bsLogisticsCode",
|
|
27
|
-
platformType: "default"
|
|
27
|
+
platformType: "default",
|
|
28
|
+
companyDataType: "arrayObject"
|
|
28
29
|
},
|
|
29
30
|
BS_E3_LOGISTICS: {
|
|
30
31
|
key: "bsE3LogisticsList",
|
|
31
32
|
name: "bsE3",
|
|
32
33
|
company: "bsE3LogisticsCompany",
|
|
33
34
|
code: "bsE3LogisticsCode",
|
|
34
|
-
platformType: "bsE3"
|
|
35
|
+
platformType: "bsE3",
|
|
36
|
+
companyDataType: "arrayObject"
|
|
35
37
|
},
|
|
36
38
|
WLN_LOGISTICS: {
|
|
37
39
|
key: "wlnLogisticsList",
|
|
38
40
|
name: "万里牛",
|
|
39
41
|
company: "wlnLogisticsCompany",
|
|
40
42
|
code: "wlnLogisticsCode",
|
|
41
|
-
platformType: "wln"
|
|
43
|
+
platformType: "wln",
|
|
44
|
+
companyDataType: "arrayObject"
|
|
42
45
|
},
|
|
43
46
|
WDT_LOGISTICS: {
|
|
44
47
|
key: "wdtLogisticsList",
|
|
45
48
|
name: "旺店通",
|
|
46
49
|
company: "wdtLogisticsCompany",
|
|
47
50
|
code: "wdtLogisticsCode",
|
|
48
|
-
platformType: "wdt"
|
|
51
|
+
platformType: "wdt",
|
|
52
|
+
companyDataType: "arrayObject"
|
|
49
53
|
},
|
|
50
54
|
JST_LOGISTICS: {
|
|
51
55
|
key: "jstItemList",
|
|
52
56
|
name: "聚水潭",
|
|
53
57
|
company: "logisticsCompany",
|
|
54
58
|
code: "logisticsCode",
|
|
55
|
-
platformType:
|
|
59
|
+
platformType: "jst",
|
|
60
|
+
companyDataType: "arrayObject"
|
|
61
|
+
},
|
|
62
|
+
KM_LOGISTICS: {
|
|
63
|
+
key: "kmLogisticsList",
|
|
64
|
+
name: "快麦",
|
|
65
|
+
company: "kmLogisticsCompany",
|
|
66
|
+
code: "kmLogisticsCode",
|
|
67
|
+
platformType: "km",
|
|
68
|
+
companyDataType: "whetherItIncludes"
|
|
56
69
|
}
|
|
57
70
|
};
|
|
58
71
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -103,13 +116,13 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
103
116
|
name: "物流公司",
|
|
104
117
|
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
105
118
|
options: _this.expressDateInstance.getExpressData(),
|
|
106
|
-
dataType:
|
|
107
|
-
disabled: type ===
|
|
119
|
+
dataType: typeMap[options.type].companyDataType,
|
|
120
|
+
disabled: type === "logisticsCode"
|
|
108
121
|
}, {
|
|
109
122
|
name: "物流单号",
|
|
110
123
|
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
111
124
|
dataType: "arrayObject",
|
|
112
|
-
disabled: type ===
|
|
125
|
+
disabled: type === "logisticsCompany"
|
|
113
126
|
}];
|
|
114
127
|
});
|
|
115
128
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -148,7 +161,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
148
161
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
149
162
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
150
163
|
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,
|
|
151
|
-
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 :
|
|
164
|
+
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 : "",
|
|
152
165
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
153
166
|
type: 1,
|
|
154
167
|
platformType: _this.platformType,
|