@kmkf-fe-packages/kmkf-utils 2.2.31-beta.59 → 2.2.31-beta.64
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
112311133111121
|
|
@@ -85,7 +85,7 @@ export default (function (_ref) {
|
|
|
85
85
|
_ref$fromQNCreateWork = _ref.fromQNCreateWorkOrderByOrderNo,
|
|
86
86
|
fromQNCreateWorkOrderByOrderNo = _ref$fromQNCreateWork === void 0 ? false : _ref$fromQNCreateWork;
|
|
87
87
|
var orderValues = !_get_order_fail_ ? ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
|
|
88
|
-
var _next$componentConfig, _next$componentConfig2, _next$componentConfig3;
|
|
88
|
+
var _next$componentConfig, _ref2, _detail$expressLogist, _detail$returnLogisti, _next$componentConfig2, _next$componentConfig3, _next$componentConfig4;
|
|
89
89
|
var uniqueKey = next.uniqueKey;
|
|
90
90
|
var config = next.componentConfig;
|
|
91
91
|
var city = null,
|
|
@@ -94,7 +94,7 @@ export default (function (_ref) {
|
|
|
94
94
|
|
|
95
95
|
switch (next.workOrderComponentType) {
|
|
96
96
|
case "TRADE_ID_INPUT":
|
|
97
|
-
prv[uniqueKey] = order_no || detail["orderNo"];
|
|
97
|
+
prv[uniqueKey] = (_next$componentConfig = next.componentConfig) !== null && _next$componentConfig !== void 0 && _next$componentConfig.toUpperCase ? (_ref2 = order_no || detail["orderNo"]) === null || _ref2 === void 0 ? void 0 : _ref2.toUpperCase() : order_no || detail["orderNo"];
|
|
98
98
|
break;
|
|
99
99
|
case "BUYER_NICK_INPUT":
|
|
100
100
|
prv[uniqueKey] = {
|
|
@@ -143,13 +143,13 @@ export default (function (_ref) {
|
|
|
143
143
|
case "EXPRESS_LOGISTICS_SELECT":
|
|
144
144
|
prv[uniqueKey] = {
|
|
145
145
|
company: config.isSingle && config.showField === "EXPRESS_COMPANY" || !config.isSingle ? ExpressData.getInstance().getExpressCodeByName(detail["expressLogisticsCompany"]) : "",
|
|
146
|
-
order: config.isSingle && config.showField === "EXPRESS_WAYBILL_CODE" || !config.isSingle ? detail["expressLogisticsCode"] : ""
|
|
146
|
+
order: config.isSingle && config.showField === "EXPRESS_WAYBILL_CODE" || !config.isSingle ? config !== null && config !== void 0 && config.toUpperCase ? (_detail$expressLogist = detail["expressLogisticsCode"]) === null || _detail$expressLogist === void 0 ? void 0 : _detail$expressLogist.toUpperCase() : detail["expressLogisticsCode"] : ""
|
|
147
147
|
};
|
|
148
148
|
break;
|
|
149
149
|
case "RETURN_LOGISTICS_SELECT":
|
|
150
150
|
prv[uniqueKey] = {
|
|
151
151
|
company: ExpressData.getInstance().getExpressCodeByName(detail["returnLogisticsCompany"]),
|
|
152
|
-
order: detail["returnLogisticsCode"]
|
|
152
|
+
order: config !== null && config !== void 0 && config.toUpperCase ? (_detail$returnLogisti = detail["returnLogisticsCode"]) === null || _detail$returnLogisti === void 0 ? void 0 : _detail$returnLogisti.toUpperCase() : detail["returnLogisticsCode"]
|
|
153
153
|
};
|
|
154
154
|
break;
|
|
155
155
|
case "ALI_PAY_INPUT":
|
|
@@ -166,7 +166,7 @@ export default (function (_ref) {
|
|
|
166
166
|
break;
|
|
167
167
|
case "REMARK_INPUT":
|
|
168
168
|
// 淘宝平台的备注信息如果设置了默认值 初始化的时候不需要订单反填
|
|
169
|
-
if (!fromQNCreateWorkOrderByOrderNo || !((_next$
|
|
169
|
+
if (!fromQNCreateWorkOrderByOrderNo || !((_next$componentConfig2 = next.componentConfig) !== null && _next$componentConfig2 !== void 0 && _next$componentConfig2.flag || ((_next$componentConfig3 = next.componentConfig) === null || _next$componentConfig3 === void 0 ? void 0 : _next$componentConfig3.flag) === 0 || (_next$componentConfig4 = next.componentConfig) !== null && _next$componentConfig4 !== void 0 && _next$componentConfig4.remark)) {
|
|
170
170
|
prv[uniqueKey] = {
|
|
171
171
|
remark: detail["remark"] || "",
|
|
172
172
|
flag: detail["flag"] ? Number(detail["flag"]) : detail["flag"]
|
|
@@ -36,11 +36,12 @@ export var skxOrderBackFormValues = function skxOrderBackFormValues() {
|
|
|
36
36
|
initValue.erpShopName = detail === null || detail === void 0 ? void 0 : detail.erpShopName;
|
|
37
37
|
}
|
|
38
38
|
return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
|
|
39
|
+
var _detail$onBillNo;
|
|
39
40
|
var uniqueKey = next.uniqueKey;
|
|
40
41
|
var config = next.componentConfig;
|
|
41
42
|
switch (next.workOrderComponentType) {
|
|
42
43
|
case "SKX_OUTBOUND_NOTICE_NO":
|
|
43
|
-
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.onBillNo;
|
|
44
|
+
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : (_detail$onBillNo = detail.onBillNo) === null || _detail$onBillNo === void 0 ? void 0 : _detail$onBillNo.toUpperCase();
|
|
44
45
|
break;
|
|
45
46
|
case "SKX_LOGISTICS":
|
|
46
47
|
prv[uniqueKey] = updateSkxItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.skxLogistics, "logistics", config);
|
|
@@ -143,6 +144,9 @@ var updateSkxItemListByConfigHandle = function updateSkxItemListByConfigHandle(l
|
|
|
143
144
|
}
|
|
144
145
|
if (!["logisticsCode", ""].includes(showField || "")) {
|
|
145
146
|
next.logisticsCode = undefined;
|
|
147
|
+
} else {
|
|
148
|
+
var _next$logisticsCode;
|
|
149
|
+
next.logisticsCode = next === null || next === void 0 ? void 0 : (_next$logisticsCode = next.logisticsCode) === null || _next$logisticsCode === void 0 ? void 0 : _next$logisticsCode.toUpperCase();
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
152
|
prv.push(next);
|
|
@@ -30,11 +30,12 @@ export var skxReturnOrderBackFormValues = function skxReturnOrderBackFormValues(
|
|
|
30
30
|
var detail = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
31
31
|
var templateDetail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
32
32
|
return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
|
|
33
|
+
var _detail$skxReturnBill;
|
|
33
34
|
var uniqueKey = next.uniqueKey;
|
|
34
35
|
var config = next.componentConfig;
|
|
35
36
|
switch (next.workOrderComponentType) {
|
|
36
37
|
case "SKX_RETURN_BILL_NO":
|
|
37
|
-
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.skxReturnBillNo;
|
|
38
|
+
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : (_detail$skxReturnBill = detail.skxReturnBillNo) === null || _detail$skxReturnBill === void 0 ? void 0 : _detail$skxReturnBill.toUpperCase();
|
|
38
39
|
break;
|
|
39
40
|
case "SKX_REFUND_BILL_NO":
|
|
40
41
|
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.skxRefundBillNo;
|
|
@@ -127,6 +128,9 @@ var updateSkxItemListByConfigHandle = function updateSkxItemListByConfigHandle(l
|
|
|
127
128
|
}
|
|
128
129
|
if (!["logisticsCode", ""].includes(showField || "")) {
|
|
129
130
|
next.logisticsCode = undefined;
|
|
131
|
+
} else {
|
|
132
|
+
var _next$logisticsCode;
|
|
133
|
+
next.logisticsCode = next === null || next === void 0 ? void 0 : (_next$logisticsCode = next.logisticsCode) === null || _next$logisticsCode === void 0 ? void 0 : _next$logisticsCode.toUpperCase();
|
|
130
134
|
}
|
|
131
135
|
}
|
|
132
136
|
prv.push(next);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "2.2.31-beta.
|
|
3
|
+
"version": "2.2.31-beta.64",
|
|
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": "dd0e2617f4be1c8fe0e6acfa74a13a167243b748",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|