kmkf-work-order-service-component 0.1.5 → 0.1.7
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.
@@ -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: wangzhenggui jianjia.wzg@raycloud.com
|
31
|
-
* @LastEditTime: 2022-10-25
|
31
|
+
* @LastEditTime: 2022-10-25 15:27:24
|
32
32
|
* @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
|
33
33
|
* @Description:
|
34
34
|
*
|
@@ -76,11 +76,6 @@ var WorkOrder = function WorkOrder(props) {
|
|
76
76
|
buyerId = props.buyerId,
|
77
77
|
orderNo = props.orderNo;
|
78
78
|
var dispatch = useAppDispatch();
|
79
|
-
var platformInfo = useAppSelector(function (state) {
|
80
|
-
var _state$global;
|
81
|
-
|
82
|
-
return (_state$global = state.global) === null || _state$global === void 0 ? void 0 : _state$global.platformInfo;
|
83
|
-
});
|
84
79
|
var loading = useAppSelector(function (state) {
|
85
80
|
var _state$workOrder;
|
86
81
|
|
@@ -132,7 +127,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
132
127
|
return /*#__PURE__*/_jsx(Spin, {
|
133
128
|
spinning: loading,
|
134
129
|
children: /*#__PURE__*/_jsxs("div", {
|
135
|
-
className: "order_container",
|
130
|
+
className: "order_container ".concat(platform === PlatForm.FXG ? '' : 'order_container_padding_bottom'),
|
136
131
|
children: [/*#__PURE__*/_jsx("header", {
|
137
132
|
className: "order_header",
|
138
133
|
children: /*#__PURE__*/_jsxs("div", {
|
@@ -183,7 +178,8 @@ var OrderList = function OrderList(_ref) {
|
|
183
178
|
return state.global.platformInfo;
|
184
179
|
});
|
185
180
|
var buyerNick = platformInfo.buyerNick,
|
186
|
-
buyerId = platformInfo.buyerId
|
181
|
+
buyerId = platformInfo.buyerId,
|
182
|
+
platform = platformInfo.platform;
|
187
183
|
var recordLogRef = useRef();
|
188
184
|
var transferRef = useRef();
|
189
185
|
var customizeFormRef = useRef();
|
@@ -462,9 +458,9 @@ var OrderList = function OrderList(_ref) {
|
|
462
458
|
alt: ""
|
463
459
|
})
|
464
460
|
})]
|
465
|
-
}), /*#__PURE__*/
|
466
|
-
className: "custom_box_main",
|
467
|
-
children:
|
461
|
+
}), /*#__PURE__*/_jsx("main", {
|
462
|
+
className: "custom_box_main ".concat(platform === PlatForm.FXG ? 'custom_box_main_feige' : 'custom_box_main_other'),
|
463
|
+
children: orderList.length ? orderList.map(function (item) {
|
468
464
|
return /*#__PURE__*/_jsx(ListOrderItem, {
|
469
465
|
item: item,
|
470
466
|
onEdit: onEdit,
|
@@ -483,20 +479,20 @@ var OrderList = function OrderList(_ref) {
|
|
483
479
|
children: "\u6682\u65E0\u6570\u636E"
|
484
480
|
})]
|
485
481
|
})
|
486
|
-
})
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
})
|
482
|
+
})
|
483
|
+
}), total > 0 && /*#__PURE__*/_jsx("div", {
|
484
|
+
className: "custom_box_page",
|
485
|
+
children: /*#__PURE__*/_jsx(Pagination, {
|
486
|
+
showSizeChanger: false,
|
487
|
+
showQuickJumper: true,
|
488
|
+
showTotal: function showTotal(total) {
|
489
|
+
return "\u5171".concat(total, "\u6761");
|
490
|
+
},
|
491
|
+
current: customSearch.pageNo,
|
492
|
+
pageSize: customSearch.pageSize,
|
493
|
+
total: total,
|
494
|
+
onChange: onChangePage
|
495
|
+
})
|
500
496
|
}), /*#__PURE__*/_jsx(RecordLog, {
|
501
497
|
ref: recordLogRef
|
502
498
|
}), /*#__PURE__*/_jsx(TransferOrderModal, {
|
@@ -540,15 +536,16 @@ var PayOrderList = function PayOrderList(_ref5) {
|
|
540
536
|
return state.workOrder.paySearch;
|
541
537
|
});
|
542
538
|
var platformInfo = useAppSelector(function (state) {
|
543
|
-
var _state$
|
539
|
+
var _state$global;
|
544
540
|
|
545
|
-
return (_state$
|
541
|
+
return (_state$global = state.global) === null || _state$global === void 0 ? void 0 : _state$global.platformInfo;
|
546
542
|
});
|
547
543
|
var shopList = useAppSelector(function (state) {
|
548
544
|
return state.workOrder.userInfo.shopList;
|
549
545
|
});
|
550
546
|
var buyerNick = platformInfo.buyerNick,
|
551
|
-
buyerId = platformInfo.buyerId
|
547
|
+
buyerId = platformInfo.buyerId,
|
548
|
+
platform = platformInfo.platform;
|
552
549
|
var logRef = useRef();
|
553
550
|
var payOrderRef = useRef();
|
554
551
|
var PAY_STATUS = [{
|
@@ -718,9 +715,9 @@ var PayOrderList = function PayOrderList(_ref5) {
|
|
718
715
|
alt: ""
|
719
716
|
})
|
720
717
|
})]
|
721
|
-
}), /*#__PURE__*/
|
722
|
-
className: "payment_box_main",
|
723
|
-
children:
|
718
|
+
}), /*#__PURE__*/_jsx("div", {
|
719
|
+
className: "payment_box_main ".concat(platform === PlatForm.FXG ? 'payment_box_main_feige' : 'payment_box_main_other'),
|
720
|
+
children: payOrderList.length ? payOrderList.map(function (item) {
|
724
721
|
return /*#__PURE__*/_jsx(PayListOrderItem, {
|
725
722
|
record: item,
|
726
723
|
onRefresh: onSearch,
|
@@ -741,20 +738,20 @@ var PayOrderList = function PayOrderList(_ref5) {
|
|
741
738
|
children: "\u6682\u65E0\u6570\u636E"
|
742
739
|
})]
|
743
740
|
})
|
744
|
-
})
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
})
|
741
|
+
})
|
742
|
+
}), /*#__PURE__*/_jsx("div", {
|
743
|
+
className: "custom_box_page",
|
744
|
+
children: /*#__PURE__*/_jsx(Pagination, {
|
745
|
+
showQuickJumper: true,
|
746
|
+
showSizeChanger: false,
|
747
|
+
showTotal: function showTotal(total) {
|
748
|
+
return "\u5171".concat(total, "\u6761");
|
749
|
+
},
|
750
|
+
current: paySearch.pageNo,
|
751
|
+
pageSize: paySearch.pageSize,
|
752
|
+
total: total,
|
753
|
+
onChange: onChangePage
|
754
|
+
})
|
758
755
|
}), /*#__PURE__*/_jsx(RecordModal, {
|
759
756
|
ref: logRef
|
760
757
|
}), /*#__PURE__*/_jsx(PayOrderModal, {
|
@@ -31,7 +31,7 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
.custom_box {
|
34
|
-
height: calc(100% - 58px);
|
34
|
+
// height: calc(100% - 58px);
|
35
35
|
|
36
36
|
.custom_box_header {
|
37
37
|
padding: 0 16px 16px 16px;
|
@@ -138,11 +138,18 @@
|
|
138
138
|
}
|
139
139
|
|
140
140
|
.custom_box_main {
|
141
|
-
height: calc(100vh - 273px);
|
142
141
|
overflow: auto;
|
143
142
|
background-color: #fafafa;
|
144
143
|
}
|
145
144
|
|
145
|
+
.custom_box_main_other {
|
146
|
+
height: calc(100vh - 338px);
|
147
|
+
}
|
148
|
+
|
149
|
+
.custom_box_main_feige {
|
150
|
+
height: calc(100vh - 446px);
|
151
|
+
}
|
152
|
+
|
146
153
|
.custom_box_main_empty {
|
147
154
|
display: flex;
|
148
155
|
align-items: center;
|
@@ -154,11 +161,18 @@
|
|
154
161
|
}
|
155
162
|
|
156
163
|
.payment_box_main {
|
157
|
-
height: calc(100% - 173px);
|
158
164
|
overflow: auto;
|
159
165
|
background-color: #fafafa;
|
160
166
|
}
|
161
167
|
|
168
|
+
.payment_box_main_feige {
|
169
|
+
height: calc(100vh - 340px);
|
170
|
+
}
|
171
|
+
|
172
|
+
.payment_box_main_other {
|
173
|
+
height: calc(100vh - 236px);
|
174
|
+
}
|
175
|
+
|
162
176
|
.custom_box_page {
|
163
177
|
display: flex;
|
164
178
|
justify-content: flex-end;
|
@@ -9,7 +9,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
9
9
|
* @Author: litian
|
10
10
|
* @Date: 2022-09-06 09:29:34
|
11
11
|
* @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
|
12
|
-
* @LastEditTime: 2022-10-
|
12
|
+
* @LastEditTime: 2022-10-25 14:36:13
|
13
13
|
*/
|
14
14
|
import { extend } from 'umi-request';
|
15
15
|
import { message } from 'antd';
|