@kmkf-fe-packages/kmkf-work-order-service-component 2.2.13-beta.90 → 2.2.13-beta.91
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.
|
@@ -5,7 +5,7 @@ export declare const onBlurErpAfterSaleTradeId: ({ form, value, templateDetail,
|
|
|
5
5
|
templateDetail: any;
|
|
6
6
|
setKmLoading: (loading: boolean) => void;
|
|
7
7
|
}) => Promise<void>;
|
|
8
|
-
export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail, setKmLoading, componentOnBlur, onlyGetTid, needTradeIdOrderBack }: {
|
|
8
|
+
export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail, setKmLoading, componentOnBlur, onlyGetTid, needTradeIdOrderBack, }: {
|
|
9
9
|
form: FormInstance;
|
|
10
10
|
value: string;
|
|
11
11
|
templateDetail: any;
|
|
@@ -14,7 +14,7 @@ export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail,
|
|
|
14
14
|
onlyGetTid?: boolean | undefined;
|
|
15
15
|
needTradeIdOrderBack?: boolean | undefined;
|
|
16
16
|
}) => Promise<any>;
|
|
17
|
-
export declare const onBlurSkxOutboundNoticeNo: ({ form, value, templateDetail, componentOnBlur, onlyGetTid, needTradeIdOrderBack }: {
|
|
17
|
+
export declare const onBlurSkxOutboundNoticeNo: ({ form, value, templateDetail, componentOnBlur, onlyGetTid, needTradeIdOrderBack, }: {
|
|
18
18
|
form: FormInstance;
|
|
19
19
|
value: string;
|
|
20
20
|
templateDetail: any;
|
|
@@ -9,7 +9,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
9
9
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
10
|
import { orderBackKmVideoByLogisticsCode } from "../../../common/utils/orderBackKm";
|
|
11
11
|
import { isNull, skxSystemOrderBackValues, skxReturnSystemOrderBackValues } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
-
import { queryTidByOutSid } from "../../../model/servers/api";
|
|
12
|
+
import { queryTidByOutSid, queryTidByWdtOutSid } from "../../../model/servers/api";
|
|
13
13
|
import { servers } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
export var onBlurErpAfterSaleTradeId = /*#__PURE__*/function () {
|
|
15
15
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
@@ -47,7 +47,7 @@ export var onBlurErpAfterSaleTradeId = /*#__PURE__*/function () {
|
|
|
47
47
|
export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
|
|
48
48
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
49
49
|
var _kmErpVideoComponent$2;
|
|
50
|
-
var form, value, templateDetail, setKmLoading, componentOnBlur, _ref3$onlyGetTid, onlyGetTid, _ref3$needTradeIdOrde, needTradeIdOrderBack, hasTradeIdComponent, kmErpVideoComponent, _res$data, hasKm, userInfo, _userInfo$companyUser, _companyUserConfig$pl, _companyUserConfig, _companyUserConfig$pl2, _companyUserConfig$pl3, companyUserConfig, oldValue, res, tradeId, blurPromise;
|
|
50
|
+
var form, value, templateDetail, setKmLoading, componentOnBlur, _ref3$onlyGetTid, onlyGetTid, _ref3$needTradeIdOrde, needTradeIdOrderBack, hasTradeIdComponent, kmErpVideoComponent, _res$data, hasKm, hasWdt, userInfo, _userInfo$companyUser, _companyUserConfig$pl, _companyUserConfig, _companyUserConfig$pl2, _companyUserConfig$pl3, _companyUserConfig$pl4, _companyUserConfig2, _companyUserConfig2$p, _companyUserConfig2$p2, companyUserConfig, oldValue, res, tradeId, blurPromise;
|
|
51
51
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
52
52
|
while (1) switch (_context2.prev = _context2.next) {
|
|
53
53
|
case 0:
|
|
@@ -72,10 +72,11 @@ export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
|
|
|
72
72
|
});
|
|
73
73
|
case 6:
|
|
74
74
|
if (!hasTradeIdComponent) {
|
|
75
|
-
_context2.next =
|
|
75
|
+
_context2.next = 35;
|
|
76
76
|
break;
|
|
77
77
|
}
|
|
78
78
|
hasKm = false;
|
|
79
|
+
hasWdt = false;
|
|
79
80
|
try {
|
|
80
81
|
userInfo = JSON.parse(localStorage.getItem('reduxData_userInfo') || '{}');
|
|
81
82
|
if (isNull(userInfo)) {
|
|
@@ -86,6 +87,7 @@ export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
|
|
|
86
87
|
companyUserConfig = JSON.parse(companyUserConfig);
|
|
87
88
|
}
|
|
88
89
|
hasKm = (_companyUserConfig$pl = (_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl2 = _companyUserConfig.plugins) === null || _companyUserConfig$pl2 === void 0 ? void 0 : (_companyUserConfig$pl3 = _companyUserConfig$pl2.km) === null || _companyUserConfig$pl3 === void 0 ? void 0 : _companyUserConfig$pl3.show) !== null && _companyUserConfig$pl !== void 0 ? _companyUserConfig$pl : false;
|
|
90
|
+
hasWdt = (_companyUserConfig$pl4 = (_companyUserConfig2 = companyUserConfig) === null || _companyUserConfig2 === void 0 ? void 0 : (_companyUserConfig2$p = _companyUserConfig2.plugins) === null || _companyUserConfig2$p === void 0 ? void 0 : (_companyUserConfig2$p2 = _companyUserConfig2$p.wdt) === null || _companyUserConfig2$p2 === void 0 ? void 0 : _companyUserConfig2$p2.show) !== null && _companyUserConfig$pl4 !== void 0 ? _companyUserConfig$pl4 : false;
|
|
89
91
|
}
|
|
90
92
|
} catch (error) {
|
|
91
93
|
console.error(error);
|
|
@@ -98,50 +100,65 @@ export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
|
|
|
98
100
|
// hasKm,
|
|
99
101
|
// form,
|
|
100
102
|
// });
|
|
101
|
-
if (hasKm) {
|
|
102
|
-
_context2.next =
|
|
103
|
+
if (!(!hasKm && !hasWdt)) {
|
|
104
|
+
_context2.next = 12;
|
|
103
105
|
break;
|
|
104
106
|
}
|
|
105
107
|
return _context2.abrupt("return");
|
|
106
|
-
case
|
|
108
|
+
case 12:
|
|
107
109
|
oldValue = form.getFieldValue('0eVTfMGEyd');
|
|
108
|
-
|
|
110
|
+
if (!hasWdt) {
|
|
111
|
+
_context2.next = 19;
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
_context2.next = 16;
|
|
115
|
+
return queryTidByWdtOutSid({
|
|
116
|
+
outSid: value
|
|
117
|
+
});
|
|
118
|
+
case 16:
|
|
119
|
+
_context2.t0 = _context2.sent;
|
|
120
|
+
_context2.next = 22;
|
|
121
|
+
break;
|
|
122
|
+
case 19:
|
|
123
|
+
_context2.next = 21;
|
|
109
124
|
return queryTidByOutSid({
|
|
110
125
|
outSid: value
|
|
111
126
|
});
|
|
112
|
-
case
|
|
113
|
-
|
|
127
|
+
case 21:
|
|
128
|
+
_context2.t0 = _context2.sent;
|
|
129
|
+
case 22:
|
|
130
|
+
res = _context2.t0;
|
|
114
131
|
tradeId = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.tid;
|
|
115
132
|
if (!onlyGetTid) {
|
|
116
|
-
_context2.next =
|
|
133
|
+
_context2.next = 26;
|
|
117
134
|
break;
|
|
118
135
|
}
|
|
119
136
|
return _context2.abrupt("return", tradeId);
|
|
120
|
-
case
|
|
137
|
+
case 26:
|
|
121
138
|
if (tradeId) {
|
|
122
|
-
_context2.next =
|
|
139
|
+
_context2.next = 28;
|
|
123
140
|
break;
|
|
124
141
|
}
|
|
125
142
|
return _context2.abrupt("return");
|
|
126
|
-
case
|
|
143
|
+
case 28:
|
|
127
144
|
form.setFieldsValue({
|
|
128
145
|
m3ap1EvEyd: tradeId
|
|
129
146
|
});
|
|
130
147
|
if (!needTradeIdOrderBack) {
|
|
131
|
-
_context2.next =
|
|
148
|
+
_context2.next = 33;
|
|
132
149
|
break;
|
|
133
150
|
}
|
|
134
151
|
// 创建一个异步操作的Promise
|
|
135
152
|
blurPromise = componentOnBlur(tradeId, 'tradeId'); // 等待异步操作完成后再执行setTimeout
|
|
136
|
-
_context2.next =
|
|
153
|
+
_context2.next = 33;
|
|
137
154
|
return blurPromise;
|
|
138
|
-
case
|
|
155
|
+
case 33:
|
|
139
156
|
// 所有异步操作完成后执行
|
|
140
157
|
form.setFieldsValue({
|
|
141
158
|
'0eVTfMGEyd': oldValue
|
|
142
159
|
});
|
|
143
160
|
return _context2.abrupt("return", res.data);
|
|
144
|
-
case
|
|
161
|
+
case 35:
|
|
145
162
|
case "end":
|
|
146
163
|
return _context2.stop();
|
|
147
164
|
}
|
|
@@ -109,6 +109,7 @@ export declare const queryMemberLevel: (data: {
|
|
|
109
109
|
}) => Promise<serverProps<Array<string>>>;
|
|
110
110
|
export declare const queryShopByTid: (data: any) => Promise<any>;
|
|
111
111
|
export declare const queryTidByOutSid: (data: any) => Promise<any>;
|
|
112
|
+
export declare const queryTidByWdtOutSid: (data: any) => Promise<any>;
|
|
112
113
|
export declare const skqOrderDetail: (data: any) => Promise<any>;
|
|
113
114
|
export declare const nodeWorkOrderPending: (data: any) => Promise<any>;
|
|
114
115
|
export declare const jyOrderDetail: (data: any) => Promise<any>;
|
|
@@ -635,6 +635,14 @@ export var queryTidByOutSid = function queryTidByOutSid(data) {
|
|
|
635
635
|
data: data
|
|
636
636
|
});
|
|
637
637
|
};
|
|
638
|
+
//通过快递单号获取订单号--旺店通
|
|
639
|
+
export var queryTidByWdtOutSid = function queryTidByWdtOutSid(data) {
|
|
640
|
+
return request({
|
|
641
|
+
url: '/qy/gdfw/wdt/erp/queryTidByOutSid',
|
|
642
|
+
method: 'post',
|
|
643
|
+
data: data
|
|
644
|
+
});
|
|
645
|
+
};
|
|
638
646
|
|
|
639
647
|
// 获取skq订单商品详情
|
|
640
648
|
export var skqOrderDetail = function skqOrderDetail(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.91",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "2.2.13-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.2.13-beta.91",
|
|
36
36
|
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.87",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.13-beta.
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.13-beta.91",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "fafcb503a0efccb5d5f8219bea798faf6f392879",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|