kmkf-work-order-service-component 0.1.6 → 0.1.8-alpha.1

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.
@@ -98,7 +98,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
98
98
  openModal: openModal,
99
99
  closeModal: closeModal
100
100
  };
101
- }, [shopList]);
101
+ }, []);
102
102
 
103
103
  var asyncDoSave = /*#__PURE__*/function () {
104
104
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workOrderDetail, templateDetail) {
@@ -292,13 +292,13 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
292
292
 
293
293
  var queryDetail = /*#__PURE__*/function () {
294
294
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
295
- var templateId, workOrderId, shopId, record, orderNo, buyerId, buyerNick, _workOrderDetail2, _workOrderDetail2$dat, _workOrderDetail2$dat2, _workOrderDetail, _templateDetail, _workOrderDetail3, _templateDetail$data, transData, _templateDetail$data2, _templateDetail$data3, jsonMap, _transData;
295
+ var templateId, workOrderId, shopId, shopList, record, orderNo, buyerId, buyerNick, _workOrderDetail2, _workOrderDetail2$dat, _workOrderDetail2$dat2, _workOrderDetail, _templateDetail, _workOrderDetail3, _templateDetail$data, transData, _templateDetail$data2, _templateDetail$data3, jsonMap, _transData;
296
296
 
297
297
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
298
298
  while (1) {
299
299
  switch (_context2.prev = _context2.next) {
300
300
  case 0:
301
- templateId = _ref2.templateId, workOrderId = _ref2.workOrderId, shopId = _ref2.shopId, record = _ref2.record, orderNo = _ref2.orderNo, buyerId = _ref2.buyerId, buyerNick = _ref2.buyerNick;
301
+ templateId = _ref2.templateId, workOrderId = _ref2.workOrderId, shopId = _ref2.shopId, shopList = _ref2.shopList, record = _ref2.record, orderNo = _ref2.orderNo, buyerId = _ref2.buyerId, buyerNick = _ref2.buyerNick;
302
302
  form.resetFields();
303
303
  _context2.prev = 2;
304
304
  setLoading(true);
@@ -407,6 +407,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
407
407
  var openModal = function openModal(_ref4) {
408
408
  var templateId = _ref4.templateId,
409
409
  shopId = _ref4.shopId,
410
+ shopList = _ref4.shopList,
410
411
  workOrderId = _ref4.workOrderId,
411
412
  _ref4$record = _ref4.record,
412
413
  record = _ref4$record === void 0 ? {} : _ref4$record,
@@ -421,6 +422,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
421
422
  templateId: templateId,
422
423
  workOrderId: workOrderId,
423
424
  shopId: shopId,
425
+ shopList: shopList,
424
426
  record: record,
425
427
  orderNo: orderNo,
426
428
  buyerId: buyerId,
@@ -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: wangzhenggui jianjia.wzg@raycloud.com
31
- * @LastEditTime: 2022-10-25 14:58:08
30
+ * @LastEditors: litian
31
+ * @LastEditTime: 2022-10-26 11:04:28
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -101,8 +101,7 @@ var WorkOrder = function WorkOrder(props) {
101
101
  }
102
102
  }, [buyerId]);
103
103
  useEffect(function () {
104
- initHandle(); //存储平台信息
105
-
104
+ //存储平台信息
106
105
  dispatch({
107
106
  type: 'global/setState',
108
107
  payload: {
@@ -115,6 +114,9 @@ var WorkOrder = function WorkOrder(props) {
115
114
  }
116
115
  }
117
116
  });
117
+ }, [platform, shopId, buyerNick, buyerId, orderNo]);
118
+ useEffect(function () {
119
+ initHandle();
118
120
  }, []);
119
121
 
120
122
  var initHandle = function initHandle() {
@@ -240,9 +242,11 @@ var OrderList = function OrderList(_ref) {
240
242
 
241
243
 
242
244
  var openCustomForm = function openCustomForm(id) {
245
+ console.log('platformInfo', platformInfo, shopList);
243
246
  customizeFormRef.current.openModal({
244
247
  templateId: id,
245
248
  shopId: platformInfo.shopId + '',
249
+ shopList: shopList,
246
250
  orderNo: platformInfo.orderNo,
247
251
  buyerId: platformInfo.buyerId,
248
252
  buyerNick: platformInfo.buyerNick
@@ -255,6 +259,7 @@ var OrderList = function OrderList(_ref) {
255
259
  templateId: item.templateDetailDto.uniqueKey,
256
260
  record: item,
257
261
  shopId: item.shopId,
262
+ shopList: shopList,
258
263
  workOrderId: item.id,
259
264
  buyerNick: platformInfo.buyerNick
260
265
  });
@@ -458,9 +463,9 @@ var OrderList = function OrderList(_ref) {
458
463
  alt: ""
459
464
  })
460
465
  })]
461
- }), /*#__PURE__*/_jsxs("main", {
466
+ }), /*#__PURE__*/_jsx("main", {
462
467
  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
+ children: orderList.length ? orderList.map(function (item) {
464
469
  return /*#__PURE__*/_jsx(ListOrderItem, {
465
470
  item: item,
466
471
  onEdit: onEdit,
@@ -479,20 +484,20 @@ var OrderList = function OrderList(_ref) {
479
484
  children: "\u6682\u65E0\u6570\u636E"
480
485
  })]
481
486
  })
482
- }), total > 0 && /*#__PURE__*/_jsx("div", {
483
- className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
484
- children: /*#__PURE__*/_jsx(Pagination, {
485
- showSizeChanger: false,
486
- showQuickJumper: true,
487
- showTotal: function showTotal(total) {
488
- return "\u5171".concat(total, "\u6761");
489
- },
490
- current: customSearch.pageNo,
491
- pageSize: customSearch.pageSize,
492
- total: total,
493
- onChange: onChangePage
494
- })
495
- })]
487
+ })
488
+ }), total > 0 && /*#__PURE__*/_jsx("div", {
489
+ className: "custom_box_page",
490
+ children: /*#__PURE__*/_jsx(Pagination, {
491
+ showSizeChanger: false,
492
+ showQuickJumper: true,
493
+ showTotal: function showTotal(total) {
494
+ return "\u5171".concat(total, "\u6761");
495
+ },
496
+ current: customSearch.pageNo,
497
+ pageSize: customSearch.pageSize,
498
+ total: total,
499
+ onChange: onChangePage
500
+ })
496
501
  }), /*#__PURE__*/_jsx(RecordLog, {
497
502
  ref: recordLogRef
498
503
  }), /*#__PURE__*/_jsx(TransferOrderModal, {
@@ -715,9 +720,9 @@ var PayOrderList = function PayOrderList(_ref5) {
715
720
  alt: ""
716
721
  })
717
722
  })]
718
- }), /*#__PURE__*/_jsxs("div", {
723
+ }), /*#__PURE__*/_jsx("div", {
719
724
  className: "payment_box_main ".concat(platform === PlatForm.FXG ? 'payment_box_main_feige' : 'payment_box_main_other'),
720
- children: [payOrderList.length ? payOrderList.map(function (item) {
725
+ children: payOrderList.length ? payOrderList.map(function (item) {
721
726
  return /*#__PURE__*/_jsx(PayListOrderItem, {
722
727
  record: item,
723
728
  onRefresh: onSearch,
@@ -738,20 +743,20 @@ var PayOrderList = function PayOrderList(_ref5) {
738
743
  children: "\u6682\u65E0\u6570\u636E"
739
744
  })]
740
745
  })
741
- }), /*#__PURE__*/_jsx("div", {
742
- className: "custom_box_page ".concat(platform === PlatForm.FXG ? '' : 'custom_box_page_layout'),
743
- children: /*#__PURE__*/_jsx(Pagination, {
744
- showQuickJumper: true,
745
- showSizeChanger: false,
746
- showTotal: function showTotal(total) {
747
- return "\u5171".concat(total, "\u6761");
748
- },
749
- current: paySearch.pageNo,
750
- pageSize: paySearch.pageSize,
751
- total: total,
752
- onChange: onChangePage
753
- })
754
- })]
746
+ })
747
+ }), /*#__PURE__*/_jsx("div", {
748
+ className: "custom_box_page",
749
+ children: /*#__PURE__*/_jsx(Pagination, {
750
+ showQuickJumper: true,
751
+ showSizeChanger: false,
752
+ showTotal: function showTotal(total) {
753
+ return "\u5171".concat(total, "\u6761");
754
+ },
755
+ current: paySearch.pageNo,
756
+ pageSize: paySearch.pageSize,
757
+ total: total,
758
+ onChange: onChangePage
759
+ })
755
760
  }), /*#__PURE__*/_jsx(RecordModal, {
756
761
  ref: logRef
757
762
  }), /*#__PURE__*/_jsx(PayOrderModal, {
@@ -1,6 +1,3 @@
1
- .order_container_padding_bottom {
2
- padding-bottom: 40px;
3
- }
4
1
  .order_header {
5
2
  padding: 16px 16px 0 16px;
6
3
 
@@ -34,7 +31,7 @@
34
31
  }
35
32
 
36
33
  .custom_box {
37
- height: calc(100% - 58px);
34
+ // height: calc(100% - 58px);
38
35
 
39
36
  .custom_box_header {
40
37
  padding: 0 16px 16px 16px;
@@ -144,11 +141,13 @@
144
141
  overflow: auto;
145
142
  background-color: #fafafa;
146
143
  }
144
+
147
145
  .custom_box_main_other {
148
146
  height: calc(100vh - 338px);
149
147
  }
148
+
150
149
  .custom_box_main_feige {
151
- height: calc(100vh - 298px);
150
+ height: calc(100vh - 446px);
152
151
  }
153
152
 
154
153
  .custom_box_main_empty {
@@ -165,9 +164,11 @@
165
164
  overflow: auto;
166
165
  background-color: #fafafa;
167
166
  }
167
+
168
168
  .payment_box_main_feige {
169
- height: calc(100vh - 196px);
169
+ height: calc(100vh - 340px);
170
170
  }
171
+
171
172
  .payment_box_main_other {
172
173
  height: calc(100vh - 236px);
173
174
  }
@@ -180,11 +181,6 @@
180
181
  padding: 0 16px;
181
182
  background-color: #fff;
182
183
  }
183
- .custom_box_page_layout {
184
- position: fixed;
185
- right: 0px;
186
- bottom: 0px;
187
- }
188
184
  }
189
185
 
190
186
  .footer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.1.6",
3
+ "version": "0.1.8-alpha.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",