kmkf-work-order-service-component 0.1.13 → 0.1.15-alpha.1
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 +3 -2
- package/dist/esm/Login/index.d.ts +8 -0
- package/dist/esm/Login/index.js +390 -0
- package/dist/esm/Login/index.module.less +45 -0
- package/dist/esm/WorkOrder/components/CustomizeFormModal/index.js +2 -2
- package/dist/esm/WorkOrder/components/DealWorkOrderModal/index.js +5 -5
- package/dist/esm/WorkOrder/components/DeleteCustomizeOrderModal/index.js +4 -4
- package/dist/esm/WorkOrder/components/DeletePaymentWorkOrderModal/index.js +5 -5
- package/dist/esm/WorkOrder/components/ExamineModal/index.js +5 -5
- package/dist/esm/WorkOrder/components/FlagPayModal/index.js +5 -5
- package/dist/esm/WorkOrder/components/ListOrderItem/index.js +4 -4
- package/dist/esm/WorkOrder/components/PayListOrderItem/ModifyModal.js +63 -12
- package/dist/esm/WorkOrder/components/PayListOrderItem/RecordModal.js +2 -2
- package/dist/esm/WorkOrder/components/PayListOrderItem/index.js +4 -4
- package/dist/esm/WorkOrder/components/RecordLog/index.js +2 -2
- package/dist/esm/WorkOrder/components/TransferOrderModal/index.js +3 -3
- package/dist/esm/WorkOrder/components/UnExamineModal/index.js +5 -5
- package/dist/esm/WorkOrder/components/Widget/OrdinaryHeader/index.js +1 -1
- package/dist/esm/WorkOrder/components/Widget/basic/Address/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/basic/Cascader/index.js +3 -3
- package/dist/esm/WorkOrder/components/Widget/basic/Picture/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +7 -5
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerNick/index.d.ts +1 -6
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerNick/index.js +9 -38
- package/dist/esm/WorkOrder/components/Widget/electricity/ELogistics/index.js +3 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EReceiverAddress/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/electricity/EReturnLogistics/index.js +3 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/electricity/Express/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/index.js +4 -0
- package/dist/esm/WorkOrder/components/Widget/third/Payment/index.d.ts +0 -2
- package/dist/esm/WorkOrder/components/Widget/third/Payment/index.js +5 -21
- package/dist/esm/WorkOrder/components/Widget/third/Status/CustomerService.js +3 -3
- package/dist/esm/WorkOrder/components/Widget/third/SystemOrderNo/index.d.ts +7 -0
- package/dist/esm/WorkOrder/components/Widget/third/SystemOrderNo/index.js +80 -0
- package/dist/esm/WorkOrder/index.js +9 -9
- package/dist/esm/assets/logo.svg +1 -0
- package/dist/esm/{WorkOrder/common → common}/cache/index.d.ts +1 -1
- package/dist/esm/{WorkOrder/common → common}/cache/index.js +2 -2
- package/dist/esm/{WorkOrder/common → common}/cache/type.d.ts +0 -0
- package/dist/esm/{WorkOrder/common → common}/cache/type.js +0 -0
- package/dist/esm/{WorkOrder/common → common}/constant.d.ts +0 -0
- package/dist/esm/{WorkOrder/common → common}/constant.js +0 -0
- package/dist/esm/common/imgs/default-img.png +0 -0
- package/dist/esm/{WorkOrder/common → common}/imgs/empty.png +0 -0
- package/dist/esm/{WorkOrder/common → common}/imgs/refresh.png +0 -0
- package/dist/esm/{WorkOrder/common → common}/styles/base.less +0 -0
- package/dist/esm/{WorkOrder/common → common}/styles/theme.less +0 -0
- package/dist/esm/{WorkOrder/common → common}/utils/express.d.ts +0 -0
- package/dist/esm/{WorkOrder/common → common}/utils/express.js +1 -1
- package/dist/esm/{WorkOrder/common → common}/utils/formatAddrData.d.ts +0 -0
- package/dist/esm/{WorkOrder/common → common}/utils/formatAddrData.js +2 -2
- package/dist/esm/{WorkOrder/common → common}/utils/tools.d.ts +0 -0
- package/dist/esm/{WorkOrder/common → common}/utils/tools.js +14 -9
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +4 -3
- package/dist/esm/{WorkOrder/model → model}/global.d.ts +1 -2
- package/dist/esm/{WorkOrder/model → model}/global.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/hooks.d.ts +0 -0
- package/dist/esm/{WorkOrder/model → model}/hooks.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/login.d.ts +1 -1
- package/dist/esm/{WorkOrder/model → model}/login.js +2 -2
- package/dist/esm/{WorkOrder/model → model}/servers/api.d.ts +0 -0
- package/dist/esm/{WorkOrder/model → model}/servers/api.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/servers/request.d.ts +0 -0
- package/dist/esm/{WorkOrder/model → model}/servers/request.js +2 -2
- package/dist/esm/{WorkOrder/model → model}/store.d.ts +1 -1
- package/dist/esm/{WorkOrder/model → model}/store.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/types/login.d.ts +0 -0
- package/dist/esm/{WorkOrder/model → model}/types/login.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/types/workOrder.d.ts +0 -0
- package/dist/esm/{WorkOrder/model → model}/types/workOrder.js +0 -0
- package/dist/esm/{WorkOrder/model → model}/workOrder.d.ts +1 -1
- package/dist/esm/{WorkOrder/model → model}/workOrder.js +3 -3
- package/package.json +3 -2
- package/dist/esm/WorkOrder/app/hooks.d.ts +0 -8
- package/dist/esm/WorkOrder/app/hooks.js +0 -6
- package/dist/esm/WorkOrder/app/store.d.ts +0 -5
- package/dist/esm/WorkOrder/app/store.js +0 -1
@@ -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 {
|
37
|
+
import { useAppSelector } from "../../../model/hooks";
|
38
|
+
import { decodeAlipayInfo, editRemitOrder, addPaymentOrder, getThirdOpenUidByOrderNo } from "../../../model/servers/api";
|
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, {}),
|
@@ -275,14 +334,6 @@ function ModifyModal(props, ref) {
|
|
275
334
|
message: '请输入买家昵称'
|
276
335
|
}],
|
277
336
|
children: /*#__PURE__*/_jsx(Input, {})
|
278
|
-
}), /*#__PURE__*/_jsx(Form.Item, {
|
279
|
-
label: "\u4E70\u5BB6\u6635\u79F0id",
|
280
|
-
name: "buyerOpenUid",
|
281
|
-
rules: [{
|
282
|
-
required: true,
|
283
|
-
message: '请输入买家昵称id'
|
284
|
-
}],
|
285
|
-
children: /*#__PURE__*/_jsx(Input, {})
|
286
337
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
287
338
|
label: "\u8BA2\u5355\u7F16\u53F7",
|
288
339
|
name: "tid",
|
@@ -23,13 +23,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
23
|
* @Author: litian
|
24
24
|
* @Date: 2022-09-09 16:58:00
|
25
25
|
* @LastEditors: litian
|
26
|
-
* @LastEditTime: 2022-11-
|
26
|
+
* @LastEditTime: 2022-11-24 14:13:33
|
27
27
|
*/
|
28
28
|
import React, { useImperativeHandle, forwardRef, useState } from 'react';
|
29
29
|
import { Drawer } from 'antd';
|
30
30
|
import { LeftOutlined } from '@ant-design/icons';
|
31
31
|
import moment from 'moment';
|
32
|
-
import { reportLogs } from "
|
32
|
+
import { reportLogs } from "../../../model/servers/api";
|
33
33
|
import styles from "./record.module.less";
|
34
34
|
import { jsx as _jsx } from "react/jsx-runtime";
|
35
35
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -9,8 +9,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
9
9
|
import React from 'react';
|
10
10
|
import { Divider, message } from 'antd';
|
11
11
|
import moment from 'moment';
|
12
|
-
import { useAppDispatch } from "
|
13
|
-
import { paymentOrder } from "
|
12
|
+
import { useAppDispatch } from "../../../model/hooks";
|
13
|
+
import { paymentOrder } from "../../../model/servers/api";
|
14
14
|
import styles from "../ListOrderItem/index.module.less";
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -254,7 +254,7 @@ function PayListOrderItem(props) {
|
|
254
254
|
};
|
255
255
|
|
256
256
|
var renderFormItem = function renderFormItem(items) {
|
257
|
-
return items.map(function (item) {
|
257
|
+
return items.map(function (item, index) {
|
258
258
|
return /*#__PURE__*/_jsxs("div", {
|
259
259
|
className: styles.orderItemView,
|
260
260
|
children: [/*#__PURE__*/_jsx("span", {
|
@@ -264,7 +264,7 @@ function PayListOrderItem(props) {
|
|
264
264
|
className: styles.itemViewRight,
|
265
265
|
children: item.value
|
266
266
|
})]
|
267
|
-
});
|
267
|
+
}, index);
|
268
268
|
});
|
269
269
|
};
|
270
270
|
|
@@ -39,8 +39,8 @@ import { LeftOutlined } from '@ant-design/icons';
|
|
39
39
|
import moment from 'moment';
|
40
40
|
import { get } from 'lodash';
|
41
41
|
import { factory } from "../Widget";
|
42
|
-
import { calcWorkOrderList, jsonParseSecurity } from "
|
43
|
-
import { reportLogs } from "
|
42
|
+
import { calcWorkOrderList, jsonParseSecurity } from "../../../common/utils/tools";
|
43
|
+
import { reportLogs } from "../../../model/servers/api";
|
44
44
|
import styles from "./index.module.less";
|
45
45
|
import { jsx as _jsx } from "react/jsx-runtime";
|
46
46
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -22,13 +22,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
* @Description:
|
23
23
|
* @Author: litian
|
24
24
|
* @Date: 2022-09-15 10:51:44
|
25
|
-
* @LastEditors:
|
26
|
-
* @LastEditTime: 2022-11-
|
25
|
+
* @LastEditors: litian
|
26
|
+
* @LastEditTime: 2022-11-24 14:13:49
|
27
27
|
*/
|
28
28
|
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
29
29
|
import { Modal, Form, Select } from 'antd';
|
30
30
|
import { get } from 'lodash';
|
31
|
-
import { querySubUsers } from "
|
31
|
+
import { querySubUsers } from "../../../model/servers/api";
|
32
32
|
import { jsx as _jsx } from "react/jsx-runtime";
|
33
33
|
|
34
34
|
var TransCustomerModal = function TransCustomerModal(props, ref) {
|
@@ -9,8 +9,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
9
9
|
/*
|
10
10
|
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
11
11
|
* @Date: 2022-11-03 16:01:49
|
12
|
-
* @LastEditors:
|
13
|
-
* @LastEditTime: 2022-11-
|
12
|
+
* @LastEditors: litian
|
13
|
+
* @LastEditTime: 2022-11-24 14:13:53
|
14
14
|
* @FilePath: /kmkf-work-order-service-component/src/WorkOrder/components/UnExamineModal/index.tsx
|
15
15
|
* @Description:
|
16
16
|
*
|
@@ -18,9 +18,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
18
18
|
*/
|
19
19
|
import React, { useCallback } from 'react';
|
20
20
|
import { Modal, message } from 'antd';
|
21
|
-
import { useAppSelector, useAppDispatch } from "
|
22
|
-
import { selectUnExamineModalVisible, selectCurrentRecord, fetchQueryPaymentWorkOrderList } from "
|
23
|
-
import { examinePaymentOrder } from "
|
21
|
+
import { useAppSelector, useAppDispatch } from "../../../model/hooks";
|
22
|
+
import { selectUnExamineModalVisible, selectCurrentRecord, fetchQueryPaymentWorkOrderList } from "../../../model/workOrder";
|
23
|
+
import { examinePaymentOrder } from "../../../model/servers/api";
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
26
26
|
|
@@ -26,7 +26,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
|
27
27
|
import React, { useState, useRef } from 'react';
|
28
28
|
import { Input, Button, message } from 'antd';
|
29
|
-
import request from "
|
29
|
+
import request from "../../../../model/servers/request";
|
30
30
|
import Popover from "../Popover";
|
31
31
|
import styles from "./index.module.less";
|
32
32
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -35,13 +35,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-07 17:58:35
|
37
37
|
* @LastEditors: litian
|
38
|
-
* @LastEditTime: 2022-
|
38
|
+
* @LastEditTime: 2022-11-24 14:04:21
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
42
42
|
import { ApaasAddress } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
43
43
|
import { getFormItem } from "../../common/formItemWrap";
|
44
|
-
import formatAddrData from "
|
44
|
+
import formatAddrData from "../../../../../common/utils/formatAddrData";
|
45
45
|
import { jsx as _jsx } from "react/jsx-runtime";
|
46
46
|
|
47
47
|
var BasicInput = /*#__PURE__*/function (_BasicComponent) {
|
@@ -34,14 +34,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
34
34
|
* @Description:
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-01 14:10:31
|
37
|
-
* @LastEditors:
|
38
|
-
* @LastEditTime: 2022-
|
37
|
+
* @LastEditors: litian
|
38
|
+
* @LastEditTime: 2022-11-24 14:51:46
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import { Cascader } from 'antd';
|
42
42
|
import BasicComponent from "../../BasicComponent";
|
43
43
|
import { getFormItem } from "../../common/formItemWrap";
|
44
|
-
import { findLabelBySelectValue, transMultSelectOptions } from "
|
44
|
+
import { findLabelBySelectValue, transMultSelectOptions } from "../../../../../common/utils/tools";
|
45
45
|
import { jsx as _jsx } from "react/jsx-runtime";
|
46
46
|
|
47
47
|
var BasicCascader = /*#__PURE__*/function (_BasicComponent) {
|
@@ -31,14 +31,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-09-07 17:58:35
|
33
33
|
* @LastEditors: litian
|
34
|
-
* @LastEditTime: 2022-
|
34
|
+
* @LastEditTime: 2022-11-24 14:53:50
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import BasicComponent from "../../BasicComponent";
|
38
38
|
import { getFormItem } from "../../common/formItemWrap";
|
39
39
|
import { ApaasUploadAsync } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
40
40
|
import { Image } from 'antd';
|
41
|
-
import { imgResize } from "
|
41
|
+
import { imgResize } from "../../../../../common/utils/tools";
|
42
42
|
import { jsx as _jsx } from "react/jsx-runtime";
|
43
43
|
|
44
44
|
var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
|
@@ -13,6 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { Form, Button, Modal, Tooltip } from 'antd';
|
14
14
|
import React, { useState } from 'react';
|
15
15
|
import styles from "./index.module.less";
|
16
|
+
import defaultImg from "../../../../common/imgs/default-img.png";
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
17
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
18
19
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -64,6 +65,7 @@ export var getFormItem = function getFormItem(_ref) {
|
|
64
65
|
export var showImage = function showImage(_ref2) {
|
65
66
|
var item = _ref2.item,
|
66
67
|
type = _ref2.type;
|
68
|
+
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
|
67
69
|
return /*#__PURE__*/_jsxs("div", {
|
68
70
|
className: styles.goodImgBox,
|
69
71
|
children: [(item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/_jsx("a", {
|
@@ -75,7 +77,7 @@ export var showImage = function showImage(_ref2) {
|
|
75
77
|
height: '40px',
|
76
78
|
objectFit: 'contain'
|
77
79
|
},
|
78
|
-
src:
|
80
|
+
src: picUrl
|
79
81
|
})
|
80
82
|
}) : /*#__PURE__*/_jsx("img", {
|
81
83
|
style: {
|
@@ -83,7 +85,7 @@ export var showImage = function showImage(_ref2) {
|
|
83
85
|
height: '40px',
|
84
86
|
objectFit: 'contain'
|
85
87
|
},
|
86
|
-
src:
|
88
|
+
src: picUrl
|
87
89
|
}), /*#__PURE__*/_jsxs("div", {
|
88
90
|
className: styles.options,
|
89
91
|
children: [type === 'itemId' && /*#__PURE__*/_jsx(TextTool, {
|
@@ -154,7 +156,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
154
156
|
display: 'flex',
|
155
157
|
flexWrap: 'wrap'
|
156
158
|
},
|
157
|
-
children: allImage.map(function (i) {
|
159
|
+
children: allImage.map(function (i, index) {
|
158
160
|
return /*#__PURE__*/_jsxs("div", {
|
159
161
|
style: {
|
160
162
|
width: '50%'
|
@@ -171,7 +173,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
171
173
|
},
|
172
174
|
children: /*#__PURE__*/_jsx("img", {
|
173
175
|
alt: "",
|
174
|
-
src: i.picUrl,
|
176
|
+
src: i.picUrl || defaultImg,
|
175
177
|
style: {
|
176
178
|
width: '72px',
|
177
179
|
height: '72px',
|
@@ -196,7 +198,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
196
198
|
text: i.propertiesName
|
197
199
|
})]
|
198
200
|
})]
|
199
|
-
});
|
201
|
+
}, index);
|
200
202
|
})
|
201
203
|
})
|
202
204
|
})]
|
@@ -1,10 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import BasicComponent from '../../BasicComponent';
|
3
|
-
import EBuyerName from '../EBuyerName';
|
4
|
-
import EBuyerOpenUid from '../EBuyerOpenUid';
|
5
3
|
declare class EBuyerNick extends BasicComponent {
|
6
|
-
buyerNick: EBuyerName;
|
7
|
-
buyerOpenUid: EBuyerOpenUid;
|
8
4
|
constructor(options: any);
|
9
5
|
customRules: (config: any) => {
|
10
6
|
validator: (_: any, value: {
|
@@ -12,8 +8,7 @@ declare class EBuyerNick extends BasicComponent {
|
|
12
8
|
buyerOpenUid: any;
|
13
9
|
}) => Promise<void>;
|
14
10
|
}[];
|
15
|
-
render: () =>
|
11
|
+
render: (value: any, record: any) => JSX.Element;
|
16
12
|
editRender: (value: any) => JSX.Element;
|
17
|
-
getColumns: () => any;
|
18
13
|
}
|
19
14
|
export default EBuyerNick;
|
@@ -31,13 +31,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-06-30 17:30:05
|
33
33
|
* @LastEditors: litian
|
34
|
-
* @LastEditTime: 2022-
|
34
|
+
* @LastEditTime: 2022-11-30 14:34:16
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import { BuyerNick } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
38
38
|
import BasicComponent from "../../BasicComponent";
|
39
|
-
import EBuyerName from "../EBuyerName";
|
40
|
-
import EBuyerOpenUid from "../EBuyerOpenUid";
|
41
39
|
import { getFormItem } from "../../common/formItemWrap";
|
42
40
|
import { jsx as _jsx } from "react/jsx-runtime";
|
43
41
|
|
@@ -55,10 +53,6 @@ var EBuyerNick = /*#__PURE__*/function (_BasicComponent) {
|
|
55
53
|
|
56
54
|
_this = _super.call(this, options);
|
57
55
|
|
58
|
-
_defineProperty(_assertThisInitialized(_this), "buyerNick", void 0);
|
59
|
-
|
60
|
-
_defineProperty(_assertThisInitialized(_this), "buyerOpenUid", void 0);
|
61
|
-
|
62
56
|
_defineProperty(_assertThisInitialized(_this), "customRules", function (config) {
|
63
57
|
return [{
|
64
58
|
validator: function validator(_, value) {
|
@@ -66,53 +60,30 @@ var EBuyerNick = /*#__PURE__*/function (_BasicComponent) {
|
|
66
60
|
return Promise.reject(new Error('请输入买家旺旺'));
|
67
61
|
}
|
68
62
|
|
69
|
-
var _this$componentConfig = _this.componentConfig,
|
70
|
-
shopList = _this$componentConfig.shopList,
|
71
|
-
shopId = _this$componentConfig.shopId;
|
72
|
-
var isTaoBao = shopList.some(function (item) {
|
73
|
-
return item.shopId === shopId && item.shopSourceStr === 'TAOBAO';
|
74
|
-
});
|
75
|
-
|
76
|
-
if (isTaoBao && !(value !== null && value !== void 0 && value.buyerOpenUid)) {
|
77
|
-
return Promise.reject(new Error('请输入买家旺旺id'));
|
78
|
-
}
|
79
|
-
|
80
63
|
return Promise.resolve();
|
81
64
|
}
|
82
65
|
}];
|
83
66
|
});
|
84
67
|
|
85
|
-
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
86
|
-
return
|
68
|
+
_defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
|
69
|
+
return /*#__PURE__*/_jsx("span", {
|
70
|
+
children: value === null || value === void 0 ? void 0 : value.buyerNick
|
71
|
+
});
|
87
72
|
});
|
88
73
|
|
89
74
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
90
|
-
var _this$
|
75
|
+
var _this$componentConfig, _this$componentConfig2;
|
91
76
|
|
92
77
|
return getFormItem(_objectSpread({
|
93
78
|
title: _this.name,
|
94
79
|
name: _this.id,
|
95
|
-
rules: (_this$
|
96
|
-
required: (_this$
|
80
|
+
rules: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? _this.customRules(_this.componentConfig) : [],
|
81
|
+
required: (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required,
|
97
82
|
component: /*#__PURE__*/_jsx(BuyerNick, _objectSpread({}, _this.componentConfig))
|
98
83
|
}, value));
|
99
84
|
});
|
100
85
|
|
101
|
-
|
102
|
-
return {
|
103
|
-
title: _this.name,
|
104
|
-
children: [_this.buyerNick.getColumns(), _this.buyerOpenUid.getColumns()],
|
105
|
-
canHidden: _this.canHidden,
|
106
|
-
dataIndex: _this.id
|
107
|
-
};
|
108
|
-
});
|
109
|
-
|
110
|
-
_this.buyerNick = new EBuyerName(_objectSpread(_objectSpread({}, options), {}, {
|
111
|
-
name: '买家旺旺'
|
112
|
-
}));
|
113
|
-
_this.buyerOpenUid = new EBuyerOpenUid(_objectSpread(_objectSpread({}, options), {}, {
|
114
|
-
name: '买家旺旺id'
|
115
|
-
}));
|
86
|
+
_this.canFilter = true;
|
116
87
|
_this.canHidden = true;
|
117
88
|
_this.effects = options.effects;
|
118
89
|
_this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
@@ -30,8 +30,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
30
30
|
* @Description:
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-09-07 17:58:35
|
33
|
-
* @LastEditors:
|
34
|
-
* @LastEditTime: 2022-
|
33
|
+
* @LastEditors: litian
|
34
|
+
* @LastEditTime: 2022-11-24 14:05:01
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import BasicComponent from "../../BasicComponent";
|
@@ -39,7 +39,7 @@ import { ExpressLogistics } from '@raycloud-apaas-fe-setup/apaas-react-basics-wi
|
|
39
39
|
import Express from "../Express";
|
40
40
|
import ExpressCode from "../ExpressCode";
|
41
41
|
import { getFormItem } from "../../common/formItemWrap";
|
42
|
-
import expressApi from "
|
42
|
+
import expressApi from "../../../../../common/utils/express";
|
43
43
|
import { jsx as _jsx } from "react/jsx-runtime";
|
44
44
|
|
45
45
|
var ELogistics = /*#__PURE__*/function (_BasicComponent) {
|
@@ -35,13 +35,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-09-07 17:58:35
|
37
37
|
* @LastEditors: litian
|
38
|
-
* @LastEditTime: 2022-
|
38
|
+
* @LastEditTime: 2022-11-24 14:05:21
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
42
42
|
import { Address } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
43
43
|
import { getFormItem } from "../../common/formItemWrap";
|
44
|
-
import formatAddrData from "
|
44
|
+
import formatAddrData from "../../../../../common/utils/formatAddrData";
|
45
45
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
46
46
|
import { jsx as _jsx } from "react/jsx-runtime";
|
47
47
|
|
@@ -30,13 +30,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
30
30
|
* @Description:
|
31
31
|
* @Author: litian
|
32
32
|
* @Date: 2022-09-07 17:58:35
|
33
|
-
* @LastEditors:
|
34
|
-
* @LastEditTime: 2022-
|
33
|
+
* @LastEditors: litian
|
34
|
+
* @LastEditTime: 2022-11-24 14:05:45
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import BasicComponent from "../../BasicComponent";
|
38
38
|
import { ReturnLogistics } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
39
|
-
import expressApi from "
|
39
|
+
import expressApi from "../../../../../common/utils/express";
|
40
40
|
import Express from "../Express";
|
41
41
|
import ExpressCode from "../ExpressCode";
|
42
42
|
import { getFormItem } from "../../common/formItemWrap";
|
@@ -37,13 +37,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
37
37
|
* @Author: litian
|
38
38
|
* @Date: 2022-06-30 17:30:05
|
39
39
|
* @LastEditors: litian
|
40
|
-
* @LastEditTime: 2022-11-
|
40
|
+
* @LastEditTime: 2022-11-24 14:54:02
|
41
41
|
*/
|
42
42
|
import React from 'react';
|
43
43
|
import Input from "../../basic/Input";
|
44
44
|
import { TradeId } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
|
45
45
|
import { getFormItem } from "../../common/formItemWrap";
|
46
|
-
import { orderBack } from "
|
46
|
+
import { orderBack } from "../../../../../common/utils/tools";
|
47
47
|
import { jsx as _jsx } from "react/jsx-runtime";
|
48
48
|
|
49
49
|
var ETradeId = /*#__PURE__*/function (_Input) {
|
@@ -35,12 +35,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
35
35
|
* @Author: litian
|
36
36
|
* @Date: 2022-06-21 21:20:47
|
37
37
|
* @LastEditors: litian
|
38
|
-
* @LastEditTime: 2022-
|
38
|
+
* @LastEditTime: 2022-11-24 14:06:10
|
39
39
|
*/
|
40
40
|
import React from 'react';
|
41
41
|
import BasicComponent from "../../BasicComponent";
|
42
42
|
import { getFormItem } from "../../common/formItemWrap";
|
43
|
-
import express from "
|
43
|
+
import express from "../../../../../common/utils/express";
|
44
44
|
import ExpressCompany from "../ExpressCompany";
|
45
45
|
import { jsx as _jsx } from "react/jsx-runtime";
|
46
46
|
|
@@ -28,6 +28,7 @@ import Status from "../Widget/third/Status";
|
|
28
28
|
import Ordinary from "../Widget/third/Ordinary";
|
29
29
|
import ItemSelectThird from "../Widget/third/ItemSelect";
|
30
30
|
import Payment from "../Widget/third/Payment";
|
31
|
+
import SystemOrderNo from "../Widget/third/SystemOrderNo";
|
31
32
|
export var factory = function factory(type, options) {
|
32
33
|
switch (type) {
|
33
34
|
case 'INPUT':
|
@@ -123,6 +124,9 @@ export var factory = function factory(type, options) {
|
|
123
124
|
case 'ENTERPRISE_PAYMENT':
|
124
125
|
return new Payment(options);
|
125
126
|
|
127
|
+
case 'SYSTEM_ORDER_NO':
|
128
|
+
return new SystemOrderNo(options);
|
129
|
+
|
126
130
|
default:
|
127
131
|
return new BasicInput(options);
|
128
132
|
}
|
@@ -4,7 +4,6 @@ import AlipayNick from './AlipayNick';
|
|
4
4
|
import PaymentStatus from './PaymentStatus';
|
5
5
|
import PaymentAmount from './PaymentAmount';
|
6
6
|
import BuyerNick from './BuyerNick';
|
7
|
-
import BuyerOpenUid from './BuyerOpenUid';
|
8
7
|
import PaymentTid from './PaymentTid';
|
9
8
|
import AlipayNo from './AlipayNo';
|
10
9
|
import PayTime from './PayTime';
|
@@ -13,7 +12,6 @@ declare class Payment extends BasicComponent {
|
|
13
12
|
paymentStatus: PaymentStatus;
|
14
13
|
paymentAmount: PaymentAmount;
|
15
14
|
buyerNick: BuyerNick;
|
16
|
-
buyerOpenUid: BuyerOpenUid;
|
17
15
|
paymentTid: PaymentTid;
|
18
16
|
alipayNo: AlipayNo;
|
19
17
|
payTime: PayTime;
|
@@ -40,11 +40,10 @@ import AlipayNick from "./AlipayNick";
|
|
40
40
|
import PaymentStatus from "./PaymentStatus";
|
41
41
|
import PaymentAmount from "./PaymentAmount";
|
42
42
|
import BuyerNick from "./BuyerNick";
|
43
|
-
import BuyerOpenUid from "./BuyerOpenUid";
|
44
43
|
import PaymentTid from "./PaymentTid";
|
45
44
|
import AlipayNo from "./AlipayNo";
|
46
45
|
import PayTime from "./PayTime";
|
47
|
-
import { orderBack } from "
|
46
|
+
import { orderBack } from "../../../../../common/utils/tools";
|
48
47
|
import { jsx as _jsx } from "react/jsx-runtime";
|
49
48
|
|
50
49
|
var Payment = /*#__PURE__*/function (_BasicComponent) {
|
@@ -69,8 +68,6 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
|
|
69
68
|
|
70
69
|
_defineProperty(_assertThisInitialized(_this), "buyerNick", void 0);
|
71
70
|
|
72
|
-
_defineProperty(_assertThisInitialized(_this), "buyerOpenUid", void 0);
|
73
|
-
|
74
71
|
_defineProperty(_assertThisInitialized(_this), "paymentTid", void 0);
|
75
72
|
|
76
73
|
_defineProperty(_assertThisInitialized(_this), "alipayNo", void 0);
|
@@ -92,17 +89,6 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
|
|
92
89
|
return Promise.reject(new Error('请输入买家昵称'));
|
93
90
|
}
|
94
91
|
|
95
|
-
var _this$componentConfig = _this.componentConfig,
|
96
|
-
shopList = _this$componentConfig.shopList,
|
97
|
-
shopId = _this$componentConfig.shopId;
|
98
|
-
var isTaoBao = shopList.some(function (item) {
|
99
|
-
return item.shopId === shopId && item.shopSourceStr === 'TAOBAO';
|
100
|
-
});
|
101
|
-
|
102
|
-
if (config.required && isTaoBao && !(value !== null && value !== void 0 && value.enterprisePaymentBuyerOpenUid)) {
|
103
|
-
return Promise.reject(new Error('请输入买家昵称id'));
|
104
|
-
}
|
105
|
-
|
106
92
|
if (config.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
|
107
93
|
return Promise.reject(new Error('请输入订单编号'));
|
108
94
|
} else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
|
@@ -129,13 +115,13 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
|
|
129
115
|
});
|
130
116
|
|
131
117
|
_defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
|
132
|
-
var _this$
|
118
|
+
var _this$componentConfig;
|
133
119
|
|
134
120
|
return getFormItem(_objectSpread({
|
135
121
|
title: _this.name,
|
136
122
|
name: _this.id,
|
137
123
|
rules: _this.customRules(_this.componentConfig),
|
138
|
-
required: (_this$
|
124
|
+
required: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.required,
|
139
125
|
component: /*#__PURE__*/_jsx(ApaasPayment, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
|
140
126
|
onSearch: function onSearch(e) {
|
141
127
|
return _this.changeHandle(e.target.value);
|
@@ -147,7 +133,8 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
|
|
147
133
|
_defineProperty(_assertThisInitialized(_this), "getColumns", function () {
|
148
134
|
return {
|
149
135
|
title: _this.name,
|
150
|
-
children: [_this.paymentTid.getColumns(), _this.paymentStatus.getColumns(), _this.paymentAmount.getColumns(), _this.buyerNick.getColumns(),
|
136
|
+
children: [_this.paymentTid.getColumns(), _this.paymentStatus.getColumns(), _this.paymentAmount.getColumns(), _this.buyerNick.getColumns(), // this.buyerOpenUid.getColumns(),
|
137
|
+
_this.alipayNick.getColumns(), _this.alipayNo.getColumns(), _this.payTime.getColumns()],
|
151
138
|
canHidden: _this.canHidden,
|
152
139
|
dataIndex: _this.id
|
153
140
|
};
|
@@ -162,9 +149,6 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
|
|
162
149
|
_this.buyerNick = new BuyerNick(_objectSpread(_objectSpread({}, options), {}, {
|
163
150
|
name: '买家昵称'
|
164
151
|
}));
|
165
|
-
_this.buyerOpenUid = new BuyerOpenUid(_objectSpread(_objectSpread({}, options), {}, {
|
166
|
-
name: '买家昵称id'
|
167
|
-
}));
|
168
152
|
_this.paymentTid = new PaymentTid(_objectSpread(_objectSpread({}, options), {}, {
|
169
153
|
name: '订单编号'
|
170
154
|
}));
|