@kmkf-fe-packages/kmkf-utils 0.24.2-beta.6 → 0.24.2-beta.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.
|
@@ -222,7 +222,8 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
|
|
|
222
222
|
interceptReceiverName: undefined,
|
|
223
223
|
interceptReceiverMobile: undefined,
|
|
224
224
|
interceptStatus: undefined,
|
|
225
|
-
interceptOther: undefined
|
|
225
|
+
interceptOther: undefined,
|
|
226
|
+
interceptLogisticsSnapshot: undefined
|
|
226
227
|
});
|
|
227
228
|
return p;
|
|
228
229
|
}, []);
|
|
@@ -209,7 +209,8 @@ export default (function (_ref) {
|
|
|
209
209
|
interceptReceiverName: undefined,
|
|
210
210
|
interceptReceiverMobile: undefined,
|
|
211
211
|
interceptStatus: undefined,
|
|
212
|
-
interceptOther: undefined
|
|
212
|
+
interceptOther: undefined,
|
|
213
|
+
interceptLogisticsSnapshot: undefined
|
|
213
214
|
}];
|
|
214
215
|
}
|
|
215
216
|
}
|
|
@@ -26,8 +26,8 @@ export default class WdtAddressData {
|
|
|
26
26
|
label: string;
|
|
27
27
|
value: string;
|
|
28
28
|
}[];
|
|
29
|
-
getProCodeByName: (proName: string) =>
|
|
30
|
-
getNameByCode: (code: string | number) => string
|
|
29
|
+
getProCodeByName: (proName: string) => number | undefined;
|
|
30
|
+
getNameByCode: (code: string | number) => string;
|
|
31
31
|
static getInstance(): WdtAddressData;
|
|
32
32
|
}
|
|
33
33
|
export declare type WdtAddressDataClass = WdtAddressData;
|
|
@@ -32,7 +32,7 @@ var WdtAddressData = /*#__PURE__*/function () {
|
|
|
32
32
|
}
|
|
33
33
|
_this.addrData = res;
|
|
34
34
|
_this.addrNameMap = map;
|
|
35
|
-
_this.addressOptions = toTree(list, 1
|
|
35
|
+
_this.addressOptions = toTree(list, 1);
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "parseData", function (addrCode) {
|
|
@@ -62,16 +62,15 @@ var WdtAddressData = /*#__PURE__*/function () {
|
|
|
62
62
|
return _this.parseData(countryIndex);
|
|
63
63
|
});
|
|
64
64
|
_defineProperty(this, "getProCodeByName", function (proName) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// }
|
|
65
|
+
for (var key in _this.addrData) {
|
|
66
|
+
if (_this.addrData[key][0] === proName) {
|
|
67
|
+
return Number(key);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
71
70
|
});
|
|
72
71
|
_defineProperty(this, "getNameByCode", function (code) {
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
var _ref;
|
|
73
|
+
return (_ref = (_this.addrData || {})[code] || []) === null || _ref === void 0 ? void 0 : _ref[0];
|
|
75
74
|
});
|
|
76
75
|
this.initData();
|
|
77
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "0.24.2-beta.
|
|
3
|
+
"version": "0.24.2-beta.8",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5dec779c16395ffafde2481d6c22c30593566be1",
|
|
44
44
|
"gitHooks": {
|
|
45
45
|
"pre-commit": "lint-staged"
|
|
46
46
|
}
|