@kmkf-fe-packages/services-components 2.2.13-beta.26 → 2.2.13-beta.28
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.
|
@@ -101,7 +101,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
101
101
|
});
|
|
102
102
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
103
103
|
var _this$expressDateInst, _this$expressDateInst2;
|
|
104
|
-
|
|
104
|
+
var name = (_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], false);
|
|
105
|
+
if (!name) {
|
|
106
|
+
var _typeMap$_this$type3, _items$find;
|
|
107
|
+
var _this$id$split3 = _this.id.split("_"),
|
|
108
|
+
_this$id$split4 = _slicedToArray(_this$id$split3, 3),
|
|
109
|
+
key = _this$id$split4[0],
|
|
110
|
+
parentKey = _this$id$split4[1],
|
|
111
|
+
childKey = _this$id$split4[2];
|
|
112
|
+
var items = record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
113
|
+
name = items === null || items === void 0 ? void 0 : (_items$find = items.find(function (item) {
|
|
114
|
+
return item.logisticsCompany === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
115
|
+
})) === null || _items$find === void 0 ? void 0 : _items$find.logisticsCompanyName;
|
|
116
|
+
}
|
|
117
|
+
return name || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
|
|
105
118
|
});
|
|
106
119
|
_defineProperty(this, "editRender", function () {
|
|
107
120
|
return null;
|
|
@@ -307,7 +307,7 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
307
307
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
308
308
|
var logisticsCompany = item.logisticsCompany,
|
|
309
309
|
logisticsCompanyName = item.logisticsCompanyName;
|
|
310
|
-
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName;
|
|
310
|
+
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
|
|
311
311
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
312
312
|
content: content(item, index),
|
|
313
313
|
overlayStyle: {
|
|
@@ -3,12 +3,15 @@ import React from "react";
|
|
|
3
3
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
4
|
declare const CONFIG_MAP: {
|
|
5
5
|
JST_GOODS: {
|
|
6
|
+
name: string;
|
|
6
7
|
key: string;
|
|
7
8
|
};
|
|
8
9
|
KM_GOODS: {
|
|
10
|
+
name: string;
|
|
9
11
|
key: string;
|
|
10
12
|
};
|
|
11
13
|
JY_GOODS: {
|
|
14
|
+
name: string;
|
|
12
15
|
key: string;
|
|
13
16
|
};
|
|
14
17
|
};
|
|
@@ -18,12 +18,15 @@ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
19
|
var CONFIG_MAP = {
|
|
20
20
|
JST_GOODS: {
|
|
21
|
+
name: "聚水潭",
|
|
21
22
|
key: "jstGoods"
|
|
22
23
|
},
|
|
23
24
|
KM_GOODS: {
|
|
25
|
+
name: "快麦ERP",
|
|
24
26
|
key: "kmGoods"
|
|
25
27
|
},
|
|
26
28
|
JY_GOODS: {
|
|
29
|
+
name: "巨益",
|
|
27
30
|
key: "jyGoods"
|
|
28
31
|
}
|
|
29
32
|
};
|
|
@@ -128,7 +131,8 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
|
128
131
|
validator: function validator(_, value) {
|
|
129
132
|
var _value$key;
|
|
130
133
|
if (!value || !(value !== null && value !== void 0 && (_value$key = value[key]) !== null && _value$key !== void 0 && _value$key.length)) {
|
|
131
|
-
|
|
134
|
+
var _CONFIG_MAP$_this$typ6;
|
|
135
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat((_CONFIG_MAP$_this$typ6 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ6 === void 0 ? void 0 : _CONFIG_MAP$_this$typ6.name, "\u5546\u54C1")));
|
|
132
136
|
}
|
|
133
137
|
return Promise.resolve();
|
|
134
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.28",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "c1c13d4dc64fc9343b6ffebf966b2bae17a63a46",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|