kmkf-work-order-service-component 0.3.0-alpha.7 → 0.3.0-alpha.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.
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/CustomizeFormModal/index.js +2 -4
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/DealerSelectModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/DeleteCustomizeOrderModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/StatusSelectModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/DeletePaymentWorkOrderModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/ExamineModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/FlagPayModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/PaymentFormModal/index.js +2 -2
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/UnExamineModal/index.js +2 -1
- package/dist/esm/WorkOrder/components/PaymentWorkOrderList/index.js +6 -6
- package/dist/esm/WorkOrder/index.js +5 -5
- package/package.json +1 -1
package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/CustomizeFormModal/index.js
CHANGED
@@ -36,7 +36,7 @@ import React, { useState, useMemo, useCallback, useEffect } from 'react';
|
|
36
36
|
import { useSelector, useDispatch } from 'react-redux';
|
37
37
|
import { Drawer, Form, Spin, ConfigProvider, Button, message, Space } from 'antd';
|
38
38
|
import { LeftOutlined } from '@ant-design/icons';
|
39
|
-
import { get, find, some, set } from 'lodash';
|
39
|
+
import { get, find, some, set, debounce } from 'lodash';
|
40
40
|
import zhCN from 'antd/es/locale/zh_CN';
|
41
41
|
import moment from 'moment';
|
42
42
|
import 'moment/locale/zh-cn';
|
@@ -477,9 +477,7 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
|
|
477
477
|
children: "\u53D6\u6D88"
|
478
478
|
}), /*#__PURE__*/_jsx(Button, {
|
479
479
|
type: "primary",
|
480
|
-
onClick:
|
481
|
-
return handleSubmit();
|
482
|
-
},
|
480
|
+
onClick: debounce(handleSubmit, 300),
|
483
481
|
children: "\u786E\u5B9A"
|
484
482
|
})]
|
485
483
|
});
|
package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/DealerSelectModal/index.js
CHANGED
@@ -9,6 +9,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
9
9
|
import React, { useEffect } from 'react';
|
10
10
|
import { Modal, Select, message } from 'antd';
|
11
11
|
import { useSelector, useDispatch } from 'react-redux';
|
12
|
+
import { debounce } from 'lodash';
|
12
13
|
import { setSelectedUserList, setDealerModalVisible, setCurrentCustomizeRecord } from "../../../../../model/customizeWorkOrder";
|
13
14
|
import { selectorDealerModalVisible, selectorCompanyUserList, selectorSelectedCompanyUserList, selectorCurrentCustomizeRecord } from "../../../../../model/customizeWorkOrder/selector";
|
14
15
|
import { fetchQueryWorkOrder } from "../../../../../model/workOrder";
|
@@ -97,7 +98,7 @@ var DealerSelectModal = function DealerSelectModal() {
|
|
97
98
|
okText: "\u786E\u5B9A",
|
98
99
|
cancelText: "\u53D6\u6D88",
|
99
100
|
onCancel: handleCancel,
|
100
|
-
onOk: handleAppointTo,
|
101
|
+
onOk: debounce(handleAppointTo, 300),
|
101
102
|
children: /*#__PURE__*/_jsx(Select, {
|
102
103
|
mode: "multiple",
|
103
104
|
allowClear: true,
|
@@ -25,6 +25,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
25
25
|
import React, { useCallback } from 'react';
|
26
26
|
import { Modal } from 'antd';
|
27
27
|
import { useSelector } from 'react-redux';
|
28
|
+
import { debounce } from 'lodash';
|
28
29
|
import { useAppSelector, useAppDispatch } from "../../../../../model/hooks";
|
29
30
|
import { fetchDeleteWorkOrder } from "../../../../../model/workOrder";
|
30
31
|
import { setCurrentCustomizeRecord } from "../../../../../model/customizeWorkOrder";
|
@@ -95,7 +96,7 @@ var DeleteCustomizeOrderModal = function DeleteCustomizeOrderModal() {
|
|
95
96
|
open: deleteCustomizeWorkOrderModalVisible,
|
96
97
|
okText: "\u786E\u5B9A",
|
97
98
|
cancelText: "\u53D6\u6D88",
|
98
|
-
onOk: onDelete,
|
99
|
+
onOk: debounce(onDelete, 300),
|
99
100
|
onCancel: handleCancel,
|
100
101
|
children: /*#__PURE__*/_jsxs("div", {
|
101
102
|
children: [/*#__PURE__*/_jsx("span", {
|
package/dist/esm/WorkOrder/components/CustomizeWorkOrderList/components/StatusSelectModal/index.js
CHANGED
@@ -21,6 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
import React, { useState, useEffect } from 'react';
|
22
22
|
import { Modal, Select, Form, message } from 'antd';
|
23
23
|
import { useSelector, useDispatch } from 'react-redux';
|
24
|
+
import { debounce } from 'lodash';
|
24
25
|
import { selectorModalVisible, selectorCurrentCustomizeRecord } from "../../../../../model/customizeWorkOrder/selector";
|
25
26
|
import { setStatusSelectModalVisible, setCurrentCustomizeRecord } from "../../../../../model/customizeWorkOrder";
|
26
27
|
import { fetchQueryWorkOrder } from "../../../../../model/workOrder";
|
@@ -150,7 +151,7 @@ var StatusSelectModal = function StatusSelectModal() {
|
|
150
151
|
okText: "\u786E\u5B9A",
|
151
152
|
cancelText: "\u53D6\u6D88",
|
152
153
|
onCancel: handleCancel,
|
153
|
-
onOk: handleAppointTo,
|
154
|
+
onOk: debounce(handleAppointTo, 300),
|
154
155
|
children: /*#__PURE__*/_jsx(Form.Item, {
|
155
156
|
label: "\u8BF7\u8BBE\u7F6E\u5DE5\u5355\u72B6\u6001",
|
156
157
|
children: /*#__PURE__*/_jsx(Select, {
|
@@ -19,6 +19,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
19
19
|
import React, { useCallback } from 'react';
|
20
20
|
import { Modal, message } from 'antd';
|
21
21
|
import { useDispatch, useSelector } from 'react-redux';
|
22
|
+
import { debounce } from 'lodash';
|
22
23
|
import { fetchQueryPaymentWorkOrderList } from "../../../../../model/workOrder";
|
23
24
|
import { setCurrentPaymentRecord, setDeletePaymentWorkOrderVisible } from "../../../../../model/paymentWorkOrder";
|
24
25
|
import { selectDeletePaymentWorkOrderVisible, selectCurrentPaymentRecord } from "../../../../../model/paymentWorkOrder/selector";
|
@@ -89,7 +90,7 @@ var DeletePaymentWorkOrderModal = function DeletePaymentWorkOrderModal() {
|
|
89
90
|
open: visible,
|
90
91
|
okText: "\u786E\u5B9A",
|
91
92
|
cancelText: "\u53D6\u6D88",
|
92
|
-
onOk: handleOk,
|
93
|
+
onOk: debounce(handleOk, 300),
|
93
94
|
onCancel: handleCancel,
|
94
95
|
children: /*#__PURE__*/_jsxs("div", {
|
95
96
|
children: [/*#__PURE__*/_jsx("span", {
|
@@ -19,6 +19,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
19
19
|
import React, { useCallback } from 'react';
|
20
20
|
import { Modal, message } from 'antd';
|
21
21
|
import { useSelector, useDispatch } from 'react-redux';
|
22
|
+
import { debounce } from 'lodash';
|
22
23
|
import { fetchQueryPaymentWorkOrderList } from "../../../../../model/workOrder";
|
23
24
|
import { setPaymentWorkOrderExamineModalVisible, setCurrentPaymentRecord } from "../../../../../model/paymentWorkOrder";
|
24
25
|
import { selectPaymentWorkOrderExamineModalVisible, selectCurrentPaymentRecord } from "../../../../../model/paymentWorkOrder/selector";
|
@@ -90,7 +91,7 @@ var ExamineModal = function ExamineModal() {
|
|
90
91
|
open: paymentWorkOrderModalVisible,
|
91
92
|
okText: "\u786E\u5B9A",
|
92
93
|
cancelText: "\u53D6\u6D88",
|
93
|
-
onOk: handleOk,
|
94
|
+
onOk: debounce(handleOk, 300),
|
94
95
|
onCancel: handleCancel,
|
95
96
|
children: /*#__PURE__*/_jsxs("div", {
|
96
97
|
children: [/*#__PURE__*/_jsx("span", {
|
@@ -19,6 +19,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
19
19
|
import React, { useCallback } from 'react';
|
20
20
|
import { Modal, message } from 'antd';
|
21
21
|
import { useDispatch, useSelector } from 'react-redux';
|
22
|
+
import { debounce } from 'lodash';
|
22
23
|
import { fetchQueryPaymentWorkOrderList } from "../../../../../model/workOrder";
|
23
24
|
import { paymentOrder } from "../../../../../model/servers/api";
|
24
25
|
import { selectFlagPayModalVisible, selectCurrentPaymentRecord } from "../../../../../model/paymentWorkOrder/selector";
|
@@ -90,7 +91,7 @@ var FlagPayModal = function FlagPayModal() {
|
|
90
91
|
open: visible,
|
91
92
|
okText: "\u786E\u5B9A",
|
92
93
|
cancelText: "\u53D6\u6D88",
|
93
|
-
onOk: handleOk,
|
94
|
+
onOk: debounce(handleOk, 300),
|
94
95
|
onCancel: handleCancel,
|
95
96
|
children: /*#__PURE__*/_jsxs("div", {
|
96
97
|
children: [/*#__PURE__*/_jsx("span", {
|
package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/PaymentFormModal/index.js
CHANGED
@@ -33,7 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
33
|
import React, { useState, memo, useRef, useEffect } from 'react';
|
34
34
|
import { Drawer, Form, Spin, Input, Space, Button, message } from 'antd';
|
35
35
|
import { LeftOutlined } from '@ant-design/icons';
|
36
|
-
import { get } from 'lodash';
|
36
|
+
import { get, debounce } from 'lodash';
|
37
37
|
import { useDispatch, useSelector } from 'react-redux';
|
38
38
|
import { useAppSelector } from "../../../../../model/hooks";
|
39
39
|
import { decodeAlipayInfo, editRemitOrder, addPaymentOrder, getThirdOpenUidByOrderNo } from "../../../../../model/servers/api";
|
@@ -294,7 +294,7 @@ function ModifyModal(props) {
|
|
294
294
|
children: "\u53D6\u6D88"
|
295
295
|
}), /*#__PURE__*/_jsx(Button, {
|
296
296
|
type: "primary",
|
297
|
-
onClick: handleOk,
|
297
|
+
onClick: debounce(handleOk, 300),
|
298
298
|
children: "\u786E\u5B9A"
|
299
299
|
})]
|
300
300
|
}),
|
package/dist/esm/WorkOrder/components/PaymentWorkOrderList/components/UnExamineModal/index.js
CHANGED
@@ -19,6 +19,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
19
19
|
import React, { useCallback } from 'react';
|
20
20
|
import { Modal, message } from 'antd';
|
21
21
|
import { useDispatch, useSelector } from 'react-redux';
|
22
|
+
import { debounce } from 'lodash';
|
22
23
|
import { fetchQueryPaymentWorkOrderList } from "../../../../../model/workOrder";
|
23
24
|
import { examinePaymentOrder } from "../../../../../model/servers/api";
|
24
25
|
import { setCurrentPaymentRecord, setPaymentWorkOrderUnExamineModalVisible } from "../../../../../model/paymentWorkOrder";
|
@@ -90,7 +91,7 @@ var UnExamineModal = function UnExamineModal() {
|
|
90
91
|
open: visible,
|
91
92
|
okText: "\u786E\u5B9A",
|
92
93
|
cancelText: "\u53D6\u6D88",
|
93
|
-
onOk: handleOk,
|
94
|
+
onOk: debounce(handleOk, 300),
|
94
95
|
onCancel: handleCancel,
|
95
96
|
children: /*#__PURE__*/_jsxs("div", {
|
96
97
|
children: [/*#__PURE__*/_jsx("span", {
|
@@ -6,8 +6,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
6
6
|
|
7
7
|
import React, { useEffect } from 'react';
|
8
8
|
import { Select, Pagination, DatePicker, Space, Checkbox, message } from 'antd';
|
9
|
-
import { useAppSelector, useAppDispatch } from "
|
10
|
-
import { fetchQueryPaymentWorkOrderList } from "
|
9
|
+
import { useAppSelector, useAppDispatch } from "../../../model/hooks";
|
10
|
+
import { fetchQueryPaymentWorkOrderList } from "../../../model/workOrder";
|
11
11
|
import PaymentWorkOrderCard from "./components/PaymentWorkOrderCard";
|
12
12
|
import RecordModal from "./components/LogModal";
|
13
13
|
import ExamineModal from "./components/ExamineModal";
|
@@ -15,10 +15,10 @@ import UnExamineModal from "./components/UnExamineModal";
|
|
15
15
|
import DeletePaymentWorkOrderModal from "./components/DeletePaymentWorkOrderModal";
|
16
16
|
import FlagPayModal from "./components/FlagPayModal";
|
17
17
|
import PaymentFormModal from "./components/PaymentFormModal";
|
18
|
-
import refreshImg from "
|
19
|
-
import emptyImg from "
|
20
|
-
import { PAY_STATUS } from "
|
21
|
-
import { setPaymentFormModalVisible, setCurrentPaymentRecord } from "
|
18
|
+
import refreshImg from "../../../common/imgs/refresh.png";
|
19
|
+
import emptyImg from "../../../common/imgs/empty.png";
|
20
|
+
import { PAY_STATUS } from "../../../common/constant";
|
21
|
+
import { setPaymentFormModalVisible, setCurrentPaymentRecord } from "../../../model/paymentWorkOrder";
|
22
22
|
import moment from 'moment';
|
23
23
|
import { PlatForm } from "../../types";
|
24
24
|
import "./index.less";
|
@@ -29,11 +29,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
import React, { useState, useEffect, useLayoutEffect, useMemo } from 'react';
|
30
30
|
import { Spin } from 'antd';
|
31
31
|
import { Provider } from 'react-redux';
|
32
|
-
import { useAppSelector, useAppDispatch } from "
|
33
|
-
import { fetchQueryGroupCustomTemplate, fetchQueryCurrentCompanyUser } from "
|
34
|
-
import express from "
|
35
|
-
import formatAddrData from "
|
36
|
-
import store from "
|
32
|
+
import { useAppSelector, useAppDispatch } from "../model/hooks";
|
33
|
+
import { fetchQueryGroupCustomTemplate, fetchQueryCurrentCompanyUser } from "../model/workOrder";
|
34
|
+
import express from "../common/utils/express";
|
35
|
+
import formatAddrData from "../common/utils/formatAddrData";
|
36
|
+
import store from "../model/store";
|
37
37
|
import OrderList from "./components/CustomizeWorkOrderList";
|
38
38
|
import PaymentWorkOrderList from "./components/PaymentWorkOrderList";
|
39
39
|
import Reminder from "./components/Reminder";
|