kmkf-work-order-service-component 0.1.5 → 0.1.6

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 14:00:49
31
+ * @LastEditTime: 2022-10-25 14:58:08
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();
@@ -463,7 +459,7 @@ var OrderList = function OrderList(_ref) {
463
459
  })
464
460
  })]
465
461
  }), /*#__PURE__*/_jsxs("main", {
466
- className: "custom_box_main",
462
+ className: "custom_box_main ".concat(platform === PlatForm.FXG ? 'custom_box_main_feige' : 'custom_box_main_other'),
467
463
  children: [orderList.length ? orderList.map(function (item) {
468
464
  return /*#__PURE__*/_jsx(ListOrderItem, {
469
465
  item: item,
@@ -484,7 +480,7 @@ var OrderList = function OrderList(_ref) {
484
480
  })]
485
481
  })
486
482
  }), total > 0 && /*#__PURE__*/_jsx("div", {
487
- className: "custom_box_page",
483
+ className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
488
484
  children: /*#__PURE__*/_jsx(Pagination, {
489
485
  showSizeChanger: false,
490
486
  showQuickJumper: true,
@@ -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$global2;
539
+ var _state$global;
544
540
 
545
- return (_state$global2 = state.global) === null || _state$global2 === void 0 ? void 0 : _state$global2.platformInfo;
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 = [{
@@ -719,7 +716,7 @@ var PayOrderList = function PayOrderList(_ref5) {
719
716
  })
720
717
  })]
721
718
  }), /*#__PURE__*/_jsxs("div", {
722
- className: "payment_box_main",
719
+ className: "payment_box_main ".concat(platform === PlatForm.FXG ? 'payment_box_main_feige' : 'payment_box_main_other'),
723
720
  children: [payOrderList.length ? payOrderList.map(function (item) {
724
721
  return /*#__PURE__*/_jsx(PayListOrderItem, {
725
722
  record: item,
@@ -742,7 +739,7 @@ var PayOrderList = function PayOrderList(_ref5) {
742
739
  })]
743
740
  })
744
741
  }), /*#__PURE__*/_jsx("div", {
745
- className: "custom_box_page",
742
+ className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
746
743
  children: /*#__PURE__*/_jsx(Pagination, {
747
744
  showQuickJumper: true,
748
745
  showSizeChanger: false,
@@ -1,3 +1,6 @@
1
+ .order_container_padding_bottom {
2
+ padding-bottom: 40px;
3
+ }
1
4
  .order_header {
2
5
  padding: 16px 16px 0 16px;
3
6
 
@@ -138,10 +141,15 @@
138
141
  }
139
142
 
140
143
  .custom_box_main {
141
- height: calc(100vh - 273px);
142
144
  overflow: auto;
143
145
  background-color: #fafafa;
144
146
  }
147
+ .custom_box_main_other {
148
+ height: calc(100vh - 338px);
149
+ }
150
+ .custom_box_main_feige {
151
+ height: calc(100vh - 298px);
152
+ }
145
153
 
146
154
  .custom_box_main_empty {
147
155
  display: flex;
@@ -154,10 +162,15 @@
154
162
  }
155
163
 
156
164
  .payment_box_main {
157
- height: calc(100% - 173px);
158
165
  overflow: auto;
159
166
  background-color: #fafafa;
160
167
  }
168
+ .payment_box_main_feige {
169
+ height: calc(100vh - 196px);
170
+ }
171
+ .payment_box_main_other {
172
+ height: calc(100vh - 236px);
173
+ }
161
174
 
162
175
  .custom_box_page {
163
176
  display: flex;
@@ -167,6 +180,11 @@
167
180
  padding: 0 16px;
168
181
  background-color: #fff;
169
182
  }
183
+ .custom_box_page_layout {
184
+ position: fixed;
185
+ right: 0px;
186
+ bottom: 0px;
187
+ }
170
188
  }
171
189
 
172
190
  .footer {
@@ -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-19 19:17:36
12
+ * @LastEditTime: 2022-10-25 14:36:13
13
13
  */
14
14
  import { extend } from 'umi-request';
15
15
  import { message } from 'antd';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",