kmkf-work-order-service-component 0.1.2 → 0.1.4
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.
@@ -21,12 +21,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
* @Author: litian
|
22
22
|
* @Date: 2022-09-07 17:04:02
|
23
23
|
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
24
|
-
* @LastEditTime: 2022-10-
|
24
|
+
* @LastEditTime: 2022-10-25 11:26:29
|
25
25
|
*/
|
26
26
|
import React from 'react';
|
27
27
|
import { factory } from "../Widget";
|
28
28
|
import { calcWorkOrderList } from "../../common/utils/tools";
|
29
|
-
import { Modal, Divider
|
29
|
+
import { Modal, Divider } from 'antd';
|
30
30
|
import moment from 'moment';
|
31
31
|
import { dealWorkOrder } from "../../model/servers/api";
|
32
32
|
import { isEmpty } from 'lodash';
|
@@ -215,6 +215,24 @@ function ListOrderItem(props) {
|
|
215
215
|
});
|
216
216
|
}
|
217
217
|
});
|
218
|
+
};
|
219
|
+
|
220
|
+
var deleteHandle = function deleteHandle(record) {
|
221
|
+
Modal.confirm({
|
222
|
+
title: '删除工单',
|
223
|
+
icon: null,
|
224
|
+
content: /*#__PURE__*/_jsxs("div", {
|
225
|
+
children: [/*#__PURE__*/_jsx("span", {
|
226
|
+
className: styles.red,
|
227
|
+
children: "\u5220\u9664\u540E\u7684\u5DE5\u5355\u65E0\u6CD5\u6062\u590D"
|
228
|
+
}), "\uFF0C \u786E\u8BA4\u8981\u5220\u9664\u8BE5\u6761\u6570\u636E\u5417\uFF1F"]
|
229
|
+
}),
|
230
|
+
okText: '确认',
|
231
|
+
cancelText: '取消',
|
232
|
+
onOk: function onOk() {
|
233
|
+
return onDelete(record);
|
234
|
+
}
|
235
|
+
});
|
218
236
|
}; //转交
|
219
237
|
|
220
238
|
|
@@ -252,17 +270,12 @@ function ListOrderItem(props) {
|
|
252
270
|
return onEdit(item);
|
253
271
|
},
|
254
272
|
children: "\u4FEE\u6539"
|
255
|
-
}), /*#__PURE__*/_jsx(
|
256
|
-
|
257
|
-
|
258
|
-
return
|
273
|
+
}), /*#__PURE__*/_jsx("span", {
|
274
|
+
className: styles.orderItemOperate,
|
275
|
+
onClick: function onClick() {
|
276
|
+
return deleteHandle(item);
|
259
277
|
},
|
260
|
-
|
261
|
-
cancelText: "\u53D6\u6D88",
|
262
|
-
children: /*#__PURE__*/_jsx("span", {
|
263
|
-
className: styles.orderItemOperate,
|
264
|
-
children: "\u5220\u9664"
|
265
|
-
})
|
278
|
+
children: "\u5220\u9664"
|
266
279
|
}), /*#__PURE__*/_jsx("span", {
|
267
280
|
className: styles.orderItemOperate,
|
268
281
|
onClick: function onClick() {
|
@@ -1,7 +1,13 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import './index.less';
|
3
|
+
export declare enum PlatForm {
|
4
|
+
TB = "tb",
|
5
|
+
FXG = "fxg",
|
6
|
+
KS = "ks",
|
7
|
+
PDD = "pdd"
|
8
|
+
}
|
3
9
|
interface WorkOrderProps {
|
4
|
-
platform
|
10
|
+
platform?: PlatForm;
|
5
11
|
shopId?: string;
|
6
12
|
buyerNick?: string;
|
7
13
|
buyerId?: string;
|
@@ -27,8 +27,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
/*
|
28
28
|
* @Author: wangzhenggui jianjia.wzg@raycloud.com
|
29
29
|
* @Date: 2022-09-16 11:19:43
|
30
|
-
* @LastEditors:
|
31
|
-
* @LastEditTime: 2022-10-
|
30
|
+
* @LastEditors: litian
|
31
|
+
* @LastEditTime: 2022-10-25 13:33:56
|
32
32
|
* @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
|
33
33
|
* @Description:
|
34
34
|
*
|
@@ -59,6 +59,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
59
59
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
60
60
|
var Option = Select.Option;
|
61
61
|
var RangePicker = DatePicker.RangePicker;
|
62
|
+
export var PlatForm;
|
63
|
+
|
64
|
+
(function (PlatForm) {
|
65
|
+
PlatForm["TB"] = "tb";
|
66
|
+
PlatForm["FXG"] = "fxg";
|
67
|
+
PlatForm["KS"] = "ks";
|
68
|
+
PlatForm["PDD"] = "pdd";
|
69
|
+
})(PlatForm || (PlatForm = {}));
|
62
70
|
|
63
71
|
var WorkOrder = function WorkOrder(props) {
|
64
72
|
var platform = props.platform,
|
@@ -97,10 +105,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
97
105
|
}
|
98
106
|
}, [buyerId]);
|
99
107
|
useEffect(function () {
|
100
|
-
|
101
|
-
initHandle();
|
102
|
-
} //存储平台信息
|
103
|
-
|
108
|
+
initHandle(); //存储平台信息
|
104
109
|
|
105
110
|
dispatch({
|
106
111
|
type: 'global/setState',
|
@@ -114,7 +119,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
114
119
|
}
|
115
120
|
}
|
116
121
|
});
|
117
|
-
}, [
|
122
|
+
}, []);
|
118
123
|
|
119
124
|
var initHandle = function initHandle() {
|
120
125
|
dispatch(fetchQueryGroupCustomTemplate());
|
@@ -456,9 +461,9 @@ var OrderList = function OrderList(_ref) {
|
|
456
461
|
alt: ""
|
457
462
|
})
|
458
463
|
})]
|
459
|
-
}), /*#__PURE__*/
|
464
|
+
}), /*#__PURE__*/_jsxs("main", {
|
460
465
|
className: "custom_box_main",
|
461
|
-
children: orderList.length ? orderList.map(function (item) {
|
466
|
+
children: [orderList.length ? orderList.map(function (item) {
|
462
467
|
return /*#__PURE__*/_jsx(ListOrderItem, {
|
463
468
|
item: item,
|
464
469
|
onEdit: onEdit,
|
@@ -477,20 +482,20 @@ var OrderList = function OrderList(_ref) {
|
|
477
482
|
children: "\u6682\u65E0\u6570\u636E"
|
478
483
|
})]
|
479
484
|
})
|
480
|
-
})
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
})
|
485
|
+
}), total > 0 && /*#__PURE__*/_jsx("div", {
|
486
|
+
className: "custom_box_page",
|
487
|
+
children: /*#__PURE__*/_jsx(Pagination, {
|
488
|
+
showSizeChanger: false,
|
489
|
+
showQuickJumper: true,
|
490
|
+
showTotal: function showTotal(total) {
|
491
|
+
return "\u5171".concat(total, "\u6761");
|
492
|
+
},
|
493
|
+
current: customSearch.pageNo,
|
494
|
+
pageSize: customSearch.pageSize,
|
495
|
+
total: total,
|
496
|
+
onChange: onChangePage
|
497
|
+
})
|
498
|
+
})]
|
494
499
|
}), /*#__PURE__*/_jsx(RecordLog, {
|
495
500
|
ref: recordLogRef
|
496
501
|
}), /*#__PURE__*/_jsx(TransferOrderModal, {
|
@@ -712,9 +717,9 @@ var PayOrderList = function PayOrderList(_ref5) {
|
|
712
717
|
alt: ""
|
713
718
|
})
|
714
719
|
})]
|
715
|
-
}), /*#__PURE__*/
|
720
|
+
}), /*#__PURE__*/_jsxs("div", {
|
716
721
|
className: "payment_box_main",
|
717
|
-
children: payOrderList.length ? payOrderList.map(function (item) {
|
722
|
+
children: [payOrderList.length ? payOrderList.map(function (item) {
|
718
723
|
return /*#__PURE__*/_jsx(PayListOrderItem, {
|
719
724
|
record: item,
|
720
725
|
onRefresh: onSearch,
|
@@ -735,20 +740,20 @@ var PayOrderList = function PayOrderList(_ref5) {
|
|
735
740
|
children: "\u6682\u65E0\u6570\u636E"
|
736
741
|
})]
|
737
742
|
})
|
738
|
-
})
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
})
|
743
|
+
}), /*#__PURE__*/_jsx("div", {
|
744
|
+
className: "custom_box_page",
|
745
|
+
children: /*#__PURE__*/_jsx(Pagination, {
|
746
|
+
showQuickJumper: true,
|
747
|
+
showSizeChanger: false,
|
748
|
+
showTotal: function showTotal(total) {
|
749
|
+
return "\u5171".concat(total, "\u6761");
|
750
|
+
},
|
751
|
+
current: paySearch.pageNo,
|
752
|
+
pageSize: paySearch.pageSize,
|
753
|
+
total: total,
|
754
|
+
onChange: onChangePage
|
755
|
+
})
|
756
|
+
})]
|
752
757
|
}), /*#__PURE__*/_jsx(RecordModal, {
|
753
758
|
ref: logRef
|
754
759
|
}), /*#__PURE__*/_jsx(PayOrderModal, {
|
@@ -1,6 +1,3 @@
|
|
1
|
-
.order_container {
|
2
|
-
padding-bottom: 40px;
|
3
|
-
}
|
4
1
|
.order_header {
|
5
2
|
padding: 16px 16px 0 16px;
|
6
3
|
|
@@ -62,6 +59,7 @@
|
|
62
59
|
padding: 4px;
|
63
60
|
overflow: auto;
|
64
61
|
background-color: #fff;
|
62
|
+
|
65
63
|
&:hover {
|
66
64
|
height: 200px;
|
67
65
|
box-shadow: 3px 3px 5px #eee;
|
@@ -140,7 +138,7 @@
|
|
140
138
|
}
|
141
139
|
|
142
140
|
.custom_box_main {
|
143
|
-
height: calc(
|
141
|
+
height: calc(100vh - 273px);
|
144
142
|
overflow: auto;
|
145
143
|
background-color: #fafafa;
|
146
144
|
}
|
@@ -162,8 +160,6 @@
|
|
162
160
|
}
|
163
161
|
|
164
162
|
.custom_box_page {
|
165
|
-
position: fixed;
|
166
|
-
bottom: 0px;
|
167
163
|
display: flex;
|
168
164
|
justify-content: flex-end;
|
169
165
|
width: 100%;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "kmkf-work-order-service-component",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.4",
|
4
4
|
"scripts": {
|
5
5
|
"start": "dumi dev",
|
6
6
|
"docs:build": "dumi build",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"react-dom": "^17.0.2"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.0.22
|
40
|
+
"@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.0.22",
|
41
41
|
"@reduxjs/toolkit": "^1.8.5",
|
42
42
|
"react-redux": "^7.2.8",
|
43
43
|
"store2": "^2.14.2",
|