kmkf-work-order-service-component 0.2.0-alpha.1 → 0.2.0-alpha.2

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.
Files changed (73) hide show
  1. package/README.md +3 -2
  2. package/dist/esm/Login/index.d.ts +8 -0
  3. package/dist/esm/Login/index.js +390 -0
  4. package/dist/esm/Login/index.module.less +45 -0
  5. package/dist/esm/WorkOrder/components/CustomizeFormModal/index.js +2 -2
  6. package/dist/esm/WorkOrder/components/DealWorkOrderModal/index.js +5 -5
  7. package/dist/esm/WorkOrder/components/DeleteCustomizeOrderModal/index.js +4 -4
  8. package/dist/esm/WorkOrder/components/DeletePaymentWorkOrderModal/index.js +5 -5
  9. package/dist/esm/WorkOrder/components/ExamineModal/index.js +5 -5
  10. package/dist/esm/WorkOrder/components/FlagPayModal/index.js +5 -5
  11. package/dist/esm/WorkOrder/components/ListOrderItem/index.js +4 -4
  12. package/dist/esm/WorkOrder/components/PayListOrderItem/ModifyModal.js +2 -2
  13. package/dist/esm/WorkOrder/components/PayListOrderItem/RecordModal.js +2 -2
  14. package/dist/esm/WorkOrder/components/PayListOrderItem/index.js +4 -4
  15. package/dist/esm/WorkOrder/components/RecordLog/index.js +2 -2
  16. package/dist/esm/WorkOrder/components/TransferOrderModal/index.js +3 -3
  17. package/dist/esm/WorkOrder/components/UnExamineModal/index.js +5 -5
  18. package/dist/esm/WorkOrder/components/Widget/OrdinaryHeader/index.js +1 -1
  19. package/dist/esm/WorkOrder/components/Widget/basic/Address/index.js +2 -2
  20. package/dist/esm/WorkOrder/components/Widget/basic/Cascader/index.js +3 -3
  21. package/dist/esm/WorkOrder/components/Widget/basic/Picture/index.js +2 -2
  22. package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +7 -5
  23. package/dist/esm/WorkOrder/components/Widget/electricity/ELogistics/index.js +3 -3
  24. package/dist/esm/WorkOrder/components/Widget/electricity/EReceiverAddress/index.js +2 -2
  25. package/dist/esm/WorkOrder/components/Widget/electricity/EReturnLogistics/index.js +3 -3
  26. package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.js +2 -2
  27. package/dist/esm/WorkOrder/components/Widget/electricity/Express/index.js +2 -2
  28. package/dist/esm/WorkOrder/components/Widget/third/Payment/index.js +1 -1
  29. package/dist/esm/WorkOrder/components/Widget/third/Status/CustomerService.js +3 -3
  30. package/dist/esm/WorkOrder/index.js +9 -9
  31. package/dist/esm/assets/logo.svg +1 -0
  32. package/dist/esm/{WorkOrder/common → common}/cache/index.d.ts +1 -1
  33. package/dist/esm/{WorkOrder/common → common}/cache/index.js +2 -2
  34. package/dist/esm/{WorkOrder/common → common}/cache/type.d.ts +0 -0
  35. package/dist/esm/{WorkOrder/common → common}/cache/type.js +0 -0
  36. package/dist/esm/{WorkOrder/common → common}/constant.d.ts +0 -0
  37. package/dist/esm/{WorkOrder/common → common}/constant.js +0 -0
  38. package/dist/esm/common/imgs/default-img.png +0 -0
  39. package/dist/esm/{WorkOrder/common → common}/imgs/empty.png +0 -0
  40. package/dist/esm/{WorkOrder/common → common}/imgs/refresh.png +0 -0
  41. package/dist/esm/{WorkOrder/common → common}/styles/base.less +0 -0
  42. package/dist/esm/{WorkOrder/common → common}/styles/theme.less +0 -0
  43. package/dist/esm/{WorkOrder/common → common}/utils/express.d.ts +0 -0
  44. package/dist/esm/{WorkOrder/common → common}/utils/express.js +1 -1
  45. package/dist/esm/{WorkOrder/common → common}/utils/formatAddrData.d.ts +0 -0
  46. package/dist/esm/{WorkOrder/common → common}/utils/formatAddrData.js +2 -2
  47. package/dist/esm/{WorkOrder/common → common}/utils/tools.d.ts +0 -0
  48. package/dist/esm/{WorkOrder/common → common}/utils/tools.js +0 -0
  49. package/dist/esm/index.d.ts +1 -0
  50. package/dist/esm/index.js +4 -3
  51. package/dist/esm/{WorkOrder/model → model}/global.d.ts +1 -2
  52. package/dist/esm/{WorkOrder/model → model}/global.js +0 -0
  53. package/dist/esm/{WorkOrder/model → model}/hooks.d.ts +0 -0
  54. package/dist/esm/{WorkOrder/model → model}/hooks.js +0 -0
  55. package/dist/esm/{WorkOrder/model → model}/login.d.ts +1 -1
  56. package/dist/esm/{WorkOrder/model → model}/login.js +2 -2
  57. package/dist/esm/{WorkOrder/model → model}/servers/api.d.ts +0 -0
  58. package/dist/esm/{WorkOrder/model → model}/servers/api.js +0 -0
  59. package/dist/esm/{WorkOrder/model → model}/servers/request.d.ts +0 -0
  60. package/dist/esm/{WorkOrder/model → model}/servers/request.js +2 -2
  61. package/dist/esm/{WorkOrder/model → model}/store.d.ts +1 -1
  62. package/dist/esm/{WorkOrder/model → model}/store.js +0 -0
  63. package/dist/esm/{WorkOrder/model → model}/types/login.d.ts +0 -0
  64. package/dist/esm/{WorkOrder/model → model}/types/login.js +0 -0
  65. package/dist/esm/{WorkOrder/model → model}/types/workOrder.d.ts +0 -0
  66. package/dist/esm/{WorkOrder/model → model}/types/workOrder.js +0 -0
  67. package/dist/esm/{WorkOrder/model → model}/workOrder.d.ts +1 -1
  68. package/dist/esm/{WorkOrder/model → model}/workOrder.js +3 -3
  69. package/package.json +2 -1
  70. package/dist/esm/WorkOrder/app/hooks.d.ts +0 -8
  71. package/dist/esm/WorkOrder/app/hooks.js +0 -6
  72. package/dist/esm/WorkOrder/app/store.d.ts +0 -5
  73. package/dist/esm/WorkOrder/app/store.js +0 -1
@@ -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-07 16:10:03
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 "../../model/servers/api";
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 "../../model/hooks";
13
- import { paymentOrder } from "../../model/servers/api";
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 "../../common/utils/tools";
43
- import { reportLogs } from "../../model/servers/api";
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: wangzhenggui jianjia.wzg@raycloud.com
26
- * @LastEditTime: 2022-11-03 14:52:14
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 "../../model/servers/api";
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: wangzhenggui jianjia.wzg@raycloud.com
13
- * @LastEditTime: 2022-11-04 09:48:42
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 "../../model/hooks";
22
- import { selectUnExamineModalVisible, selectCurrentRecord, fetchQueryPaymentWorkOrderList } from "../../model/workOrder";
23
- import { examinePaymentOrder } from "../../model/servers/api";
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 "../../../model/servers/request";
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-09-21 10:35:08
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 "../../../../common/utils/formatAddrData";
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: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:40:05
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 "../../../../common/utils/tools";
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-10-10 17:21:00
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 "../../../../common/utils/tools";
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: (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg'
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: (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg'
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
  })]
@@ -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: wangzhenggui jianjia.wzg@raycloud.com
34
- * @LastEditTime: 2022-09-16 16:40:41
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 "../../../../common/utils/express";
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-09-21 13:35:19
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 "../../../../common/utils/formatAddrData";
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: wangzhenggui jianjia.wzg@raycloud.com
34
- * @LastEditTime: 2022-09-16 16:40:49
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 "../../../../common/utils/express";
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-10 10:08:12
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 "../../../../common/utils/tools";
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-09-20 18:02:27
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 "../../../../common/utils/express";
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
 
@@ -44,7 +44,7 @@ import BuyerOpenUid from "./BuyerOpenUid";
44
44
  import PaymentTid from "./PaymentTid";
45
45
  import AlipayNo from "./AlipayNo";
46
46
  import PayTime from "./PayTime";
47
- import { orderBack } from "../../../../common/utils/tools";
47
+ import { orderBack } from "../../../../../common/utils/tools";
48
48
  import { jsx as _jsx } from "react/jsx-runtime";
49
49
 
50
50
  var Payment = /*#__PURE__*/function (_BasicComponent) {
@@ -52,14 +52,14 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
52
52
  * @Description:
53
53
  * @Author: litian
54
54
  * @Date: 2022-09-07 17:58:35
55
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
56
- * @LastEditTime: 2022-09-16 16:41:32
55
+ * @LastEditors: litian
56
+ * @LastEditTime: 2022-11-23 16:23:47
57
57
  */
58
58
  import React from 'react';
59
59
  import { useState, useEffect } from 'react';
60
60
  import { Select } from 'antd';
61
61
  import { get } from 'lodash';
62
- import request from "../../../../model/servers/request";
62
+ import request from "../../../../../model/servers/request";
63
63
  import BasicComponent from "../../BasicComponent";
64
64
  import { getFormItem } from "../../common/formItemWrap";
65
65
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -28,7 +28,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
29
29
  * @Date: 2022-09-16 11:19:43
30
30
  * @LastEditors: litian
31
- * @LastEditTime: 2022-11-07 16:09:48
31
+ * @LastEditTime: 2022-11-24 14:11:47
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -36,12 +36,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
36
36
  */
37
37
  import React, { useState, useEffect, useRef, useLayoutEffect } from 'react';
38
38
  import { Tabs, Select, Pagination, Cascader, DatePicker, Space, Checkbox, Spin, message } from 'antd';
39
- import { useAppSelector, useAppDispatch } from "./model/hooks";
40
- import { fetchQueryGroupCustomTemplate, fetchQueryWorkOrder, fetchQueryCurrentCompanyUser, fetchQueryPaymentWorkOrderList } from "./model/workOrder";
39
+ import { useAppSelector, useAppDispatch } from "../model/hooks";
40
+ import { fetchQueryGroupCustomTemplate, fetchQueryWorkOrder, fetchQueryCurrentCompanyUser, fetchQueryPaymentWorkOrderList } from "../model/workOrder";
41
41
  import CustomizeFormModal from "./components/CustomizeFormModal";
42
42
  import PayOrderModal from "./components/PayListOrderItem/ModifyModal";
43
- import express from "./common/utils/express";
44
- import formatAddrData from "./common/utils/formatAddrData";
43
+ import express from "../common/utils/express";
44
+ import formatAddrData from "../common/utils/formatAddrData";
45
45
  import ListOrderItem from "./components/ListOrderItem";
46
46
  import PayListOrderItem from "./components/PayListOrderItem";
47
47
  import RecordModal from "./components/PayListOrderItem/RecordModal";
@@ -53,12 +53,12 @@ import DeletePaymentWorkOrderModal from "./components/DeletePaymentWorkOrderModa
53
53
  import FlagPayModal from "./components/FlagPayModal";
54
54
  import RecordLog from "./components/RecordLog";
55
55
  import TransferOrderModal from "./components/TransferOrderModal";
56
- import store from "./model/store";
56
+ import store from "../model/store";
57
57
  import { Provider } from 'react-redux';
58
- import { transferWorkOrder } from "./model/servers/api";
58
+ import { transferWorkOrder } from "../model/servers/api";
59
59
  import get from 'lodash/get';
60
- import refreshImg from "./common/imgs/refresh.png";
61
- import emptyImg from "./common/imgs/empty.png";
60
+ import refreshImg from "../common/imgs/refresh.png";
61
+ import emptyImg from "../common/imgs/empty.png";
62
62
  import moment from 'moment';
63
63
  import "./index.less";
64
64
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="167" height="46" viewBox="0 0 167 46"><g style="mix-blend-mode:passthrough"><g style="mix-blend-mode:passthrough"><g style="mix-blend-mode:passthrough"><g><path d="M22.5005,41.8589C12.3272,41.8589,4.05063,33.399,4.05063,23.0003C4.05063,12.601,12.3272,4.14111,22.5005,4.14111C32.6733,4.14111,40.9494,12.601,40.9494,23.0003C40.9494,33.399,32.6733,41.8589,22.5005,41.8589ZM22.5005,0C10.0935,0,0,10.3182,0,23.0003C0,35.6824,10.0935,46,22.5005,46C34.907,46,45,35.6824,45,23.0003C45,10.3182,34.907,0,22.5005,0Z" fill-rule="evenodd" fill="#1966FF" fill-opacity="1"/></g><g><path d="M30.789380178222657,30.66666816040039C30.789380178222657,32.62061816040039,29.198920178222657,34.20512816040039,27.236500178222656,34.20512816040039C25.274590178222656,34.20512816040039,23.684120178222656,32.62061816040039,23.684120178222656,30.66666816040039C23.684120178222656,28.712718160400392,25.274590178222656,27.12820816040039,27.236500178222656,27.12820816040039C29.198920178222657,27.12820816040039,30.789380178222657,28.712718160400392,30.789380178222657,30.66666816040039Z" fill-rule="evenodd" fill="#1966FF" fill-opacity="1"/></g><g><path d="M31.327865853881836,12.974349975585938L28.219765853881835,12.974349975585938C27.603465853881836,12.974349975585938,27.020565853881834,13.247869975585937,26.634665853881835,13.718221975585937L19.800675853881835,22.037319975585937L19.800675853881835,13.720266975585938C19.800675853881835,13.327113975585938,19.475305853881835,13.008603275585937,19.073675853881838,13.008603275585937L16.122295853881838,13.008603275585937C15.720664853881836,13.008603275585937,15.394765853881836,13.327113975585938,15.394765853881836,13.720266975585938L15.394765853881836,33.493949975585934C15.394765853881836,33.88664997558594,15.720664853881836,34.20514997558594,16.122295853881838,34.20514997558594L19.073675853881838,34.20514997558594C19.475305853881835,34.20514997558594,19.800675853881835,33.88664997558594,19.800675853881835,33.493949975585934L19.800675853881835,28.76744997558594L31.831765853881837,13.999409975585937C32.16866585388183,13.585807975585938,31.867865853881835,12.974349975585938,31.327865853881836,12.974349975585938Z" fill-rule="evenodd" fill="#1966FF" fill-opacity="1"/></g></g></g><g style="mix-blend-mode:passthrough"><path d="M67.3325,14.26422L67.3325,16.72538L72.1147,16.72538L72.1147,18.91609C72.1147,20.1872,72.0233,21.4043,71.8587,22.5673L66.20781,22.5673L66.20781,25.1456L71.3283,25.1456C70.2037,28.9681,67.9543,31.7628,64.58022,33.5118L66.20781,35.675399999999996C69.8105,33.620000000000005,72.2519,30.5458,73.5686,26.3897C75.315,30.077,77.985,33.178200000000004,81.5237,35.675399999999996L83.3159,33.5929C79.7772,31.4383,77.1987,28.6075,75.50710000000001,25.1456L82.5935,25.1456L82.5935,22.5673L80.6825,22.5673L80.6825,14.26422L74.6933,14.26422L74.6933,10.297503L72.1147,10.297503L72.1147,14.26422L67.3325,14.26422ZM74.6933,16.72538L78.09479999999999,16.72538L78.09479999999999,22.5673L74.419,22.5673C74.5835,21.242,74.6933,19.82663,74.6933,18.3301L74.6933,16.72538ZM58.00582,15.6706C57.923524,18.276,57.585204,20.7732,57,23.1262L59.157939999999996,23.7302C59.69742,21.242,59.99917,18.582520000000002,60.06318,15.81484L58.00582,15.6706ZM65.59518,14.98544L63.62926,15.61651C64.3882,17.55478,65.00083000000001,19.55617,65.44888,21.6297L67.616,21.1068C67.0308,18.80791,66.35412,16.75243,65.59518,14.98544ZM60.959270000000004,10.324549L60.959270000000004,35.7025L63.5744,35.7025L63.5744,10.324549L60.959270000000004,10.324549ZM96.9127,10.108183L96.9127,12.32594L87.394,12.32594L87.394,14.705960000000001L96.9127,14.705960000000001L96.9127,16.56311L88.7107,16.56311L88.7107,18.80791L96.9127,18.80791L96.9127,20.6019L85.87610000000001,20.6019L85.87610000000001,22.982L93.3741,22.982C91.9111,25.037399999999998,89.60679999999999,26.8044,86.4613,28.3641L88.23519999999999,30.6269C89.60679999999999,29.8516,90.87780000000001,29.0222,92.0299,28.1117C93.1455,29.2476,94.4439,30.2663,95.90690000000001,31.1859C93.03569999999999,32.2947,89.7257,33.07,86.0133,33.538799999999995L87.2477,36C91.60929999999999,35.314800000000005,95.4223,34.206,98.6866,32.7094C101.7224,34.1519,105.3433,35.1976,109.5312,35.8648L110.7656,33.3495C107.2818,32.871700000000004,104.19120000000001,32.1505,101.5486,31.1859C103.6243,29.9147,105.3982,28.3911,106.916,26.6692L106.916,24.541600000000003L95.3949,24.541600000000003C95.7332,24.0368,96.0715,23.5409,96.38239999999999,22.982L110.6559,22.982L110.6559,20.6019L99.6101,20.6019L99.6101,18.80791L107.8121,18.80791L107.8121,16.56311L99.6101,16.56311L99.6101,14.705960000000001L109.1106,14.705960000000001L109.1106,12.32594L99.6101,12.32594L99.6101,10.108183L96.9127,10.108183ZM94.2702,26.9757L103.2585,26.9757C101.9144,28.0846,100.3965,29.0763,98.7141,29.9688C96.995,29.1033,95.5137,28.1117,94.2702,26.9757ZM125.0299,14.705960000000001L125.0299,31.5465L113.79220000000001,31.5465L113.79220000000001,34.0888L138.9377,34.0888L138.9377,31.5465L127.7273,31.5465L127.7273,14.705960000000001L137.16379999999998,14.705960000000001L137.16379999999998,12.18169L115.6209,12.18169L115.6209,14.705960000000001L125.0299,14.705960000000001ZM144.4422,14.39945L144.4422,26.2816L153.1197,26.2816L153.1197,28.4723L141.882,28.4723L141.882,30.9605L153.1197,30.9605L153.1197,35.9189L155.76229999999998,35.9189L155.76229999999998,30.9605L167,30.9605L167,28.4723L155.76229999999998,28.4723L155.76229999999998,26.2816L164.44,26.2816L164.44,14.39945L159.328,14.39945C160.115,13.344660000000001,160.81900000000002,12.18169,161.441,10.910541L158.853,10C158.204,11.55062,157.445,13.011099999999999,156.5486,14.39945L150.8703,14.39945L152.56189999999998,13.57004C151.7207,12.29889,150.8155,11.16297,149.86450000000002,10.135229L147.64260000000002,11.190010000000001C148.5112,12.127600000000001,149.325,13.20943,150.1205,14.39945L144.4422,14.39945ZM161.861,23.9556L155.76229999999998,23.9556L155.76229999999998,21.4043L161.861,21.4043L161.861,23.9556ZM153.1197,23.9556L147.0299,23.9556L147.0299,21.4043L153.1197,21.4043L153.1197,23.9556ZM147.0299,19.19556L147.0299,16.69833L153.1197,16.69833L153.1197,19.19556L147.0299,19.19556ZM155.76229999999998,16.69833L161.861,16.69833L161.861,19.19556L155.76229999999998,19.19556L155.76229999999998,16.69833Z" fill="#1966FF" fill-opacity="1"/></g></g></svg>
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  getAllFormatExpressData: () => any;
11
11
  setHistoryList: (data?: historyListType[]) => void;
12
12
  getHistoryList: () => historyListType[];
13
- setGrayEnv: (isGray: string) => void;
13
+ setGrayEnv: (isGray: number) => void;
14
14
  getGrayEnv: () => string | null;
15
15
  setHost: (host: string) => void;
16
16
  getHost: () => any;
@@ -2,7 +2,7 @@
2
2
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
3
3
  * @Date: 2022-09-14 15:05:38
4
4
  * @LastEditors: litian
5
- * @LastEditTime: 2022-09-21 10:06:27
5
+ * @LastEditTime: 2022-11-23 17:33:59
6
6
  * @FilePath: /dy-work-order/src/common/cache/index.ts
7
7
  * @Description:
8
8
  *
@@ -54,7 +54,7 @@ var getHistoryList = function getHistoryList() {
54
54
 
55
55
 
56
56
  var setGrayEnv = function setGrayEnv(isGray) {
57
- localStorage.setItem('grayEnv', isGray);
57
+ localStorage.setItem('grayEnv', isGray + '');
58
58
  };
59
59
 
60
60
  var getGrayEnv = function getGrayEnv() {
@@ -3,7 +3,7 @@
3
3
  * @Author: litian
4
4
  * @Date: 2022-06-21 21:20:47
5
5
  * @LastEditors: litian
6
- * @LastEditTime: 2022-09-08 15:14:44
6
+ * @LastEditTime: 2022-11-24 14:10:38
7
7
  */
8
8
  import request from "../../model/servers/request";
9
9
  var express = {
@@ -11,7 +11,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
11
11
  * @Author: litian
12
12
  * @Date: 2022-09-07 18:12:23
13
13
  * @LastEditors: litian
14
- * @LastEditTime: 2022-09-21 10:34:39
14
+ * @LastEditTime: 2022-11-28 16:38:15
15
15
  */
16
16
 
17
17
  /*处理省市区*/
@@ -128,7 +128,7 @@ var formatAddrData = {
128
128
  }
129
129
  },
130
130
  getNameByCode: function getNameByCode(code) {
131
- console.log('getNameByCode', code, ((this.addrData || {})[code] || [])[0]);
131
+ // console.log('getNameByCode', code, ((this.addrData || {})[code] || [])[0]);
132
132
  return ((this.addrData || {})[code] || [])[0];
133
133
  }
134
134
  };
@@ -1 +1,2 @@
1
1
  export { default as WorkOrder } from './WorkOrder';
2
+ export { default as Login } from './Login';
package/dist/esm/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  /*
2
2
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
3
3
  * @Date: 2022-09-16 11:18:28
4
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
5
- * @LastEditTime: 2022-09-16 14:03:30
4
+ * @LastEditors: litian
5
+ * @LastEditTime: 2022-11-23 17:12:29
6
6
  * @FilePath: /kmkf-work-order-service-component/src/index.ts
7
7
  * @Description:
8
8
  *
9
9
  * Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
10
10
  */
11
- export { default as WorkOrder } from "./WorkOrder";
11
+ export { default as WorkOrder } from "./WorkOrder";
12
+ export { default as Login } from "./Login";
@@ -1,4 +1,3 @@
1
- import { RootState } from '../app/store';
2
1
  export interface GlobalState {
3
2
  platformInfo: any;
4
3
  top: number;
@@ -14,6 +13,6 @@ export declare const globalSlice: import("@reduxjs/toolkit").Slice<GlobalState,
14
13
  }) => void;
15
14
  }, "global">;
16
15
  export declare const setState: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
17
- export declare const selectTop: (state: RootState) => number;
16
+ export declare const selectTop: (state: RootState) => any;
18
17
  declare const _default: import("redux").Reducer<GlobalState, import("redux").AnyAction>;
19
18
  export default _default;
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { RootState } from '../app/store';
1
+ import { RootState } from './store';
2
2
  import { Shop, LoginResultData } from './types/login';
3
3
  import { LoginParams, fetchGrayWhiteListParams } from './servers/api';
4
4
  export interface GlobalState {
@@ -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-09-13 14:14:48
12
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
13
- * @LastEditTime: 2022-09-16 14:02:48
12
+ * @LastEditors: litian
13
+ * @LastEditTime: 2022-11-23 17:51:47
14
14
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/model/login.ts
15
15
  * @Description:
16
16
  *
@@ -2,8 +2,8 @@
2
2
  * @Description:
3
3
  * @Author: litian
4
4
  * @Date: 2022-09-06 09:29:34
5
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
6
- * @LastEditTime: 2022-11-04 16:58:58
5
+ * @LastEditors: litian
6
+ * @LastEditTime: 2022-11-24 09:11:45
7
7
  */
8
8
  import { extend } from 'umi-request';
9
9
  import { message } from 'antd';
@@ -2,7 +2,7 @@ declare const store: import("@reduxjs/toolkit").EnhancedStore<{
2
2
  login: import("./login").GlobalState;
3
3
  global: import("./global").GlobalState;
4
4
  workOrder: any;
5
- }, import("redux").AnyAction, [import("redux-thunk").ThunkMiddleware<{
5
+ }, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<{
6
6
  login: import("./login").GlobalState;
7
7
  global: import("./global").GlobalState;
8
8
  workOrder: any;
File without changes
@@ -1,4 +1,4 @@
1
- import { RootState } from '../app/store';
1
+ import { RootState } from './store';
2
2
  export interface WorkOrderState {
3
3
  groupAllList: [];
4
4
  groupTemplateList: any[];