kmkf-work-order-service-component 0.1.13 → 0.1.14
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.
@@ -786,23 +786,23 @@ export var orderBack = /*#__PURE__*/function () {
|
|
786
786
|
enterprisePaymentTid: order_no
|
787
787
|
});
|
788
788
|
}
|
789
|
-
}
|
789
|
+
} // console.log('detailsValue++', formValue, detailsValue);
|
790
|
+
|
790
791
|
|
791
|
-
console.log('detailsValue++', formValue, detailsValue);
|
792
792
|
form.setFieldsValue(_objectSpread(_objectSpread({}, formValue), detailsValue));
|
793
|
-
_context.next =
|
793
|
+
_context.next = 30;
|
794
794
|
break;
|
795
795
|
|
796
|
-
case
|
797
|
-
_context.prev =
|
796
|
+
case 28:
|
797
|
+
_context.prev = 28;
|
798
798
|
_context.t0 = _context["catch"](2);
|
799
799
|
|
800
|
-
case
|
800
|
+
case 30:
|
801
801
|
case "end":
|
802
802
|
return _context.stop();
|
803
803
|
}
|
804
804
|
}
|
805
|
-
}, _callee, null, [[2,
|
805
|
+
}, _callee, null, [[2, 28]]);
|
806
806
|
}));
|
807
807
|
|
808
808
|
return function orderBack(_x) {
|
@@ -877,7 +877,9 @@ var getComponentsValue = function getComponentsValue() {
|
|
877
877
|
ITEM_SELECT: 'itemList',
|
878
878
|
REMARK_INPUT: 'remark',
|
879
879
|
ITEM_ID: 'goodId',
|
880
|
-
ITEM_ENCODE: 'goodSerial'
|
880
|
+
ITEM_ENCODE: 'goodSerial',
|
881
|
+
BUYER_NICK_INPUT: 'buyer',
|
882
|
+
ENTERPRISE_PAYMENT: 'payBuyer'
|
881
883
|
};
|
882
884
|
return list.reduce(function (prv, next) {
|
883
885
|
if (mapList[next.workOrderComponentType]) {
|
@@ -30,11 +30,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
30
30
|
|
31
31
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
32
32
|
|
33
|
-
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
33
|
+
import React, { useState, useImperativeHandle, forwardRef, useRef } from 'react';
|
34
34
|
import { Drawer, Form, Spin, Input, Space, Button, message } from 'antd';
|
35
35
|
import { LeftOutlined } from '@ant-design/icons';
|
36
36
|
import { get } from 'lodash';
|
37
|
-
import { decodeAlipayInfo, editRemitOrder, addPaymentOrder } from "../../model/servers/api";
|
37
|
+
import { decodeAlipayInfo, editRemitOrder, addPaymentOrder, getThirdOpenUidByOrderNo } from "../../model/servers/api";
|
38
|
+
import { useAppSelector } from "../../model/hooks";
|
38
39
|
import { jsx as _jsx } from "react/jsx-runtime";
|
39
40
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
40
41
|
|
@@ -57,6 +58,9 @@ function ModifyModal(props, ref) {
|
|
57
58
|
}
|
58
59
|
};
|
59
60
|
});
|
61
|
+
var platformInfo = useAppSelector(function (state) {
|
62
|
+
return state.global.platformInfo;
|
63
|
+
});
|
60
64
|
|
61
65
|
var _useState = useState(false),
|
62
66
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -92,6 +96,8 @@ function ModifyModal(props, ref) {
|
|
92
96
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
93
97
|
form = _Form$useForm2[0];
|
94
98
|
|
99
|
+
var time = useRef(null);
|
100
|
+
|
95
101
|
var handleOk = function handleOk() {
|
96
102
|
form.validateFields().then( /*#__PURE__*/function () {
|
97
103
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
|
@@ -218,8 +224,61 @@ function ModifyModal(props, ref) {
|
|
218
224
|
}();
|
219
225
|
|
220
226
|
var TidChangeHandle = function TidChangeHandle(e) {
|
221
|
-
|
222
|
-
|
227
|
+
var _shopList$find2;
|
228
|
+
|
229
|
+
var order_no = e.target.value;
|
230
|
+
var taobaoId = (_shopList$find2 = shopList.find(function (item) {
|
231
|
+
return item.shopSourceStr === 'TAOBAO' && item.shopId == platformInfo.shopId;
|
232
|
+
})) === null || _shopList$find2 === void 0 ? void 0 : _shopList$find2.taobaoId; //淘宝订单买家id返填
|
233
|
+
|
234
|
+
if (taobaoId) {
|
235
|
+
clearTimeout(time.current);
|
236
|
+
time.current = setTimeout(function () {
|
237
|
+
getThirdUid(order_no, taobaoId);
|
238
|
+
}, 1000);
|
239
|
+
}
|
240
|
+
}; //获取买家信息
|
241
|
+
|
242
|
+
|
243
|
+
var getThirdUid = /*#__PURE__*/function () {
|
244
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(order_no, taobaoId) {
|
245
|
+
var buyer, buyerInfo;
|
246
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
247
|
+
while (1) {
|
248
|
+
switch (_context3.prev = _context3.next) {
|
249
|
+
case 0:
|
250
|
+
_context3.prev = 0;
|
251
|
+
_context3.next = 3;
|
252
|
+
return getThirdOpenUidByOrderNo({
|
253
|
+
orderNo: order_no,
|
254
|
+
toAppKey: '21819818',
|
255
|
+
platform: 'tb',
|
256
|
+
taobaoId: taobaoId
|
257
|
+
});
|
258
|
+
|
259
|
+
case 3:
|
260
|
+
buyer = _context3.sent;
|
261
|
+
buyerInfo = buyer === null || buyer === void 0 ? void 0 : buyer.data;
|
262
|
+
form.setFieldsValue(_objectSpread({}, buyerInfo || {}));
|
263
|
+
_context3.next = 10;
|
264
|
+
break;
|
265
|
+
|
266
|
+
case 8:
|
267
|
+
_context3.prev = 8;
|
268
|
+
_context3.t0 = _context3["catch"](0);
|
269
|
+
|
270
|
+
case 10:
|
271
|
+
case "end":
|
272
|
+
return _context3.stop();
|
273
|
+
}
|
274
|
+
}
|
275
|
+
}, _callee3, null, [[0, 8]]);
|
276
|
+
}));
|
277
|
+
|
278
|
+
return function getThirdUid(_x3, _x4) {
|
279
|
+
return _ref3.apply(this, arguments);
|
280
|
+
};
|
281
|
+
}();
|
223
282
|
|
224
283
|
return /*#__PURE__*/_jsx(Drawer, {
|
225
284
|
closeIcon: /*#__PURE__*/_jsx(LeftOutlined, {}),
|