kmkf-work-order-service-component 0.1.4 → 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.
@@ -4,7 +4,8 @@ export declare enum PlatForm {
4
4
  TB = "tb",
5
5
  FXG = "fxg",
6
6
  KS = "ks",
7
- PDD = "pdd"
7
+ PDD = "pdd",
8
+ XIAOZHI = "xiaozhi"
8
9
  }
9
10
  interface WorkOrderProps {
10
11
  platform?: PlatForm;
@@ -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: litian
31
- * @LastEditTime: 2022-10-25 13:33:56
30
+ * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
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
  *
@@ -66,6 +66,7 @@ export var PlatForm;
66
66
  PlatForm["FXG"] = "fxg";
67
67
  PlatForm["KS"] = "ks";
68
68
  PlatForm["PDD"] = "pdd";
69
+ PlatForm["XIAOZHI"] = "xiaozhi";
69
70
  })(PlatForm || (PlatForm = {}));
70
71
 
71
72
  var WorkOrder = function WorkOrder(props) {
@@ -75,11 +76,6 @@ var WorkOrder = function WorkOrder(props) {
75
76
  buyerId = props.buyerId,
76
77
  orderNo = props.orderNo;
77
78
  var dispatch = useAppDispatch();
78
- var platformInfo = useAppSelector(function (state) {
79
- var _state$global;
80
-
81
- return (_state$global = state.global) === null || _state$global === void 0 ? void 0 : _state$global.platformInfo;
82
- });
83
79
  var loading = useAppSelector(function (state) {
84
80
  var _state$workOrder;
85
81
 
@@ -131,7 +127,7 @@ var WorkOrder = function WorkOrder(props) {
131
127
  return /*#__PURE__*/_jsx(Spin, {
132
128
  spinning: loading,
133
129
  children: /*#__PURE__*/_jsxs("div", {
134
- className: "order_container",
130
+ className: "order_container ".concat(platform === PlatForm.FXG ? '' : 'order_container_padding_bottom'),
135
131
  children: [/*#__PURE__*/_jsx("header", {
136
132
  className: "order_header",
137
133
  children: /*#__PURE__*/_jsxs("div", {
@@ -182,7 +178,8 @@ var OrderList = function OrderList(_ref) {
182
178
  return state.global.platformInfo;
183
179
  });
184
180
  var buyerNick = platformInfo.buyerNick,
185
- buyerId = platformInfo.buyerId;
181
+ buyerId = platformInfo.buyerId,
182
+ platform = platformInfo.platform;
186
183
  var recordLogRef = useRef();
187
184
  var transferRef = useRef();
188
185
  var customizeFormRef = useRef();
@@ -462,7 +459,7 @@ var OrderList = function OrderList(_ref) {
462
459
  })
463
460
  })]
464
461
  }), /*#__PURE__*/_jsxs("main", {
465
- className: "custom_box_main",
462
+ className: "custom_box_main ".concat(platform === PlatForm.FXG ? 'custom_box_main_feige' : 'custom_box_main_other'),
466
463
  children: [orderList.length ? orderList.map(function (item) {
467
464
  return /*#__PURE__*/_jsx(ListOrderItem, {
468
465
  item: item,
@@ -483,7 +480,7 @@ var OrderList = function OrderList(_ref) {
483
480
  })]
484
481
  })
485
482
  }), total > 0 && /*#__PURE__*/_jsx("div", {
486
- className: "custom_box_page",
483
+ className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
487
484
  children: /*#__PURE__*/_jsx(Pagination, {
488
485
  showSizeChanger: false,
489
486
  showQuickJumper: true,
@@ -539,15 +536,16 @@ var PayOrderList = function PayOrderList(_ref5) {
539
536
  return state.workOrder.paySearch;
540
537
  });
541
538
  var platformInfo = useAppSelector(function (state) {
542
- var _state$global2;
539
+ var _state$global;
543
540
 
544
- 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;
545
542
  });
546
543
  var shopList = useAppSelector(function (state) {
547
544
  return state.workOrder.userInfo.shopList;
548
545
  });
549
546
  var buyerNick = platformInfo.buyerNick,
550
- buyerId = platformInfo.buyerId;
547
+ buyerId = platformInfo.buyerId,
548
+ platform = platformInfo.platform;
551
549
  var logRef = useRef();
552
550
  var payOrderRef = useRef();
553
551
  var PAY_STATUS = [{
@@ -718,7 +716,7 @@ var PayOrderList = function PayOrderList(_ref5) {
718
716
  })
719
717
  })]
720
718
  }), /*#__PURE__*/_jsxs("div", {
721
- className: "payment_box_main",
719
+ className: "payment_box_main ".concat(platform === PlatForm.FXG ? 'payment_box_main_feige' : 'payment_box_main_other'),
722
720
  children: [payOrderList.length ? payOrderList.map(function (item) {
723
721
  return /*#__PURE__*/_jsx(PayListOrderItem, {
724
722
  record: item,
@@ -741,7 +739,7 @@ var PayOrderList = function PayOrderList(_ref5) {
741
739
  })]
742
740
  })
743
741
  }), /*#__PURE__*/_jsx("div", {
744
- className: "custom_box_page",
742
+ className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
745
743
  children: /*#__PURE__*/_jsx(Pagination, {
746
744
  showQuickJumper: true,
747
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.4",
3
+ "version": "0.1.6",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",