kmkf-work-order-service-component 0.0.1-alpha.11 → 0.0.1-alpha.12

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.
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .orderItemLeftName {
35
- width: 115px;
35
+ // width: 115px;
36
36
  line-height: 16px;
37
37
  }
38
38
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import './index.less';
2
3
  interface WorkOrderProps {
3
4
  platform: string;
4
5
  shopId?: 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: litian
31
- * @LastEditTime: 2022-09-29 13:56:52
30
+ * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
31
+ * @LastEditTime: 2022-10-08 13:35:45
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -53,8 +53,9 @@ import { Provider } from 'react-redux';
53
53
  import { transferWorkOrder } from "./model/servers/api";
54
54
  import get from 'lodash/get';
55
55
  import refreshImg from "./common/imgs/refresh.png";
56
- import emptyImg from "./common/imgs/empty.png";
57
- import styles from "./index.module.less";
56
+ import emptyImg from "./common/imgs/empty.png"; // import styles from './index.module.less';
57
+
58
+ import "./index.less";
58
59
  import { jsx as _jsx } from "react/jsx-runtime";
59
60
  import { jsxs as _jsxs } from "react/jsx-runtime";
60
61
  var Option = Select.Option;
@@ -107,17 +108,17 @@ var WorkOrder = function WorkOrder(props) {
107
108
 
108
109
  return /*#__PURE__*/_jsxs(Wrapper, {
109
110
  children: [/*#__PURE__*/_jsx("header", {
110
- className: styles.order_header,
111
+ className: "order_header",
111
112
  children: /*#__PURE__*/_jsxs("div", {
112
- className: styles.order_header_tabs,
113
+ className: "order_header_tabs",
113
114
  children: [/*#__PURE__*/_jsx("div", {
114
- className: "".concat(styles.order_header_tabs_button, " ").concat(tabActive === 'custom' ? styles.active : ''),
115
+ className: "order_header_tabs_button ".concat(tabActive === 'custom' ? "active" : ''),
115
116
  onClick: function onClick() {
116
117
  return setTabActive('custom');
117
118
  },
118
119
  children: "\u81EA\u5B9A\u4E49\u5DE5\u5355"
119
120
  }), /*#__PURE__*/_jsx("div", {
120
- className: "".concat(styles.order_header_tabs_button, " ").concat(styles.border_left, " ").concat(tabActive === 'payment' ? styles.active : ''),
121
+ className: "order_header_tabs_button border_left ".concat(tabActive === 'payment' ? 'active' : ''),
121
122
  onClick: function onClick() {
122
123
  return setTabActive('payment');
123
124
  },
@@ -303,14 +304,14 @@ var OrderList = function OrderList(tabActive) {
303
304
  }();
304
305
 
305
306
  return /*#__PURE__*/_jsxs("div", {
306
- className: styles.custom_box,
307
+ className: "custom_box",
307
308
  style: {
308
309
  display: tabActive === 'custom' ? 'block' : 'none'
309
310
  },
310
311
  children: [/*#__PURE__*/_jsxs("div", {
311
- className: styles.custom_box_header,
312
+ className: "custom_box_header",
312
313
  children: [/*#__PURE__*/_jsx(Cascader, {
313
- className: styles.custom_box_header_cascader,
314
+ className: "custom_box_header_cascader",
314
315
  options: groupAllList,
315
316
  placeholder: "\u8BF7\u8F93\u5165\u6A21\u7248\u540D\u79F0",
316
317
  showSearch: true,
@@ -322,15 +323,15 @@ var OrderList = function OrderList(tabActive) {
322
323
  label: item.label,
323
324
  key: item.value + '',
324
325
  children: /*#__PURE__*/_jsx("div", {
325
- className: styles.custom_temp_box,
326
+ className: "custom_temp_box",
326
327
  children: /*#__PURE__*/_jsx("div", {
327
- className: styles.custom_temp_list,
328
+ className: "custom_temp_list",
328
329
  children: /*#__PURE__*/_jsx(Space, {
329
330
  size: [8, 8],
330
331
  wrap: true,
331
332
  children: item.children.map(function (t) {
332
333
  return /*#__PURE__*/_jsx("div", {
333
- className: styles.custom_temp_list_button,
334
+ className: "custom_temp_list_button",
334
335
  onClick: function onClick() {
335
336
  return openCustomForm(t.value);
336
337
  },
@@ -347,11 +348,11 @@ var OrderList = function OrderList(tabActive) {
347
348
  }
348
349
  })]
349
350
  }), /*#__PURE__*/_jsxs("div", {
350
- className: styles.custom_box_search,
351
+ className: "custom_box_search",
351
352
  children: [/*#__PURE__*/_jsxs("div", {
352
- className: styles.custom_box_search_box,
353
+ className: "custom_box_search_box",
353
354
  children: [/*#__PURE__*/_jsx(Select, {
354
- className: styles.custom_box_search_date,
355
+ className: "custom_box_search_date",
355
356
  value: customSearch.filterDay,
356
357
  onChange: function onChange(val) {
357
358
  return upDateState('filterDay', val);
@@ -363,7 +364,7 @@ var OrderList = function OrderList(tabActive) {
363
364
  }, item.name);
364
365
  })
365
366
  }), /*#__PURE__*/_jsx(Cascader, {
366
- className: styles.custom_box_search_cascader,
367
+ className: "custom_box_search_cascader",
367
368
  options: groupAllList,
368
369
  showSearch: true,
369
370
  onChange: function onChange(val) {
@@ -372,7 +373,7 @@ var OrderList = function OrderList(tabActive) {
372
373
  value: customSearch.tempSelect,
373
374
  allowClear: false
374
375
  }), /*#__PURE__*/_jsx(Checkbox, {
375
- className: styles.custom_box_search_buyer,
376
+ className: "custom_box_search_buyer",
376
377
  checked: customSearch.isBuyer,
377
378
  onChange: function onChange(e) {
378
379
  return upDateState('isBuyer', e.target.checked);
@@ -380,7 +381,7 @@ var OrderList = function OrderList(tabActive) {
380
381
  children: "\u5F53\u524D\u4E70\u5BB6"
381
382
  })]
382
383
  }), /*#__PURE__*/_jsx("div", {
383
- className: styles.custom_box_search_refresh,
384
+ className: "custom_box_search_refresh",
384
385
  onClick: onSearch,
385
386
  children: /*#__PURE__*/_jsx("img", {
386
387
  src: refreshImg,
@@ -388,7 +389,7 @@ var OrderList = function OrderList(tabActive) {
388
389
  })
389
390
  })]
390
391
  }), /*#__PURE__*/_jsx("main", {
391
- className: styles.custom_box_main,
392
+ className: "custom_box_main",
392
393
  children: orderList.length ? orderList.map(function (item) {
393
394
  return ListOrderItem({
394
395
  item: item,
@@ -398,7 +399,7 @@ var OrderList = function OrderList(tabActive) {
398
399
  onTransfer: onTransfer
399
400
  });
400
401
  }) : /*#__PURE__*/_jsx("div", {
401
- className: styles.custom_box_main_empty,
402
+ className: "custom_box_main_empty",
402
403
  children: /*#__PURE__*/_jsxs("div", {
403
404
  children: [/*#__PURE__*/_jsx("img", {
404
405
  src: emptyImg,
@@ -409,7 +410,7 @@ var OrderList = function OrderList(tabActive) {
409
410
  })
410
411
  })
411
412
  }), /*#__PURE__*/_jsx("div", {
412
- className: styles.custom_box_page,
413
+ className: "custom_box_page",
413
414
  children: /*#__PURE__*/_jsx(Pagination, {
414
415
  showSizeChanger: false,
415
416
  showQuickJumper: true,
@@ -529,17 +530,17 @@ var PayOrderList = function PayOrderList(tabActive) {
529
530
  };
530
531
 
531
532
  return /*#__PURE__*/_jsxs("div", {
532
- className: styles.custom_box,
533
+ className: "custom_box",
533
534
  style: {
534
535
  display: tabActive === 'payment' ? 'block' : 'none'
535
536
  },
536
537
  children: [/*#__PURE__*/_jsx("div", {
537
- className: styles.custom_box_header,
538
+ className: "custom_box_header",
538
539
  children: /*#__PURE__*/_jsx(Space, {
539
540
  size: [8, 8],
540
541
  wrap: true,
541
542
  children: /*#__PURE__*/_jsx("span", {
542
- className: styles.custom_temp_list_button,
543
+ className: "custom_temp_list_button",
543
544
  onClick: function onClick() {
544
545
  var _shopList$find;
545
546
 
@@ -556,11 +557,11 @@ var PayOrderList = function PayOrderList(tabActive) {
556
557
  })
557
558
  })
558
559
  }), /*#__PURE__*/_jsxs("div", {
559
- className: "".concat(styles.custom_box_search, " ").concat(styles.pay_search),
560
+ className: "custom_box_search pay_search",
560
561
  children: [/*#__PURE__*/_jsxs("div", {
561
- className: "".concat(styles.custom_box_search_box, " ").concat(styles.pay_search_box),
562
+ className: "custom_box_search_box pay_search_box",
562
563
  children: [/*#__PURE__*/_jsxs(Select, {
563
- className: styles.custom_box_search_date,
564
+ className: "custom_box_search_date",
564
565
  value: paySearch.timeType,
565
566
  onChange: function onChange(val) {
566
567
  return upDateState('timeType', val);
@@ -576,7 +577,7 @@ var PayOrderList = function PayOrderList(tabActive) {
576
577
  children: "\u6253\u6B3E\u65F6\u95F4"
577
578
  })]
578
579
  }), /*#__PURE__*/_jsx(Select, {
579
- className: styles.custom_box_search_cascader,
580
+ className: "custom_box_search_cascader",
580
581
  value: paySearch.workPayStatus,
581
582
  onChange: function onChange(val) {
582
583
  return upDateState('workPayStatus', val);
@@ -588,7 +589,7 @@ var PayOrderList = function PayOrderList(tabActive) {
588
589
  }, item.value);
589
590
  })
590
591
  }), /*#__PURE__*/_jsx(Checkbox, {
591
- className: styles.custom_box_search_buyer,
592
+ className: "custom_box_search_buyer",
592
593
  checked: paySearch.isBuyer,
593
594
  onChange: function onChange(e) {
594
595
  return upDateState('isBuyer', e.target.checked);
@@ -603,7 +604,7 @@ var PayOrderList = function PayOrderList(tabActive) {
603
604
  }
604
605
  })]
605
606
  }), /*#__PURE__*/_jsx("div", {
606
- className: styles.custom_box_search_refresh,
607
+ className: "custom_box_search_refresh",
607
608
  onClick: function onClick() {
608
609
  return onSearch();
609
610
  },
@@ -613,7 +614,7 @@ var PayOrderList = function PayOrderList(tabActive) {
613
614
  })
614
615
  })]
615
616
  }), /*#__PURE__*/_jsx("main", {
616
- className: styles.payment_box_main,
617
+ className: "payment_box_main",
617
618
  children: payOrderList.length ? payOrderList.map(function (item) {
618
619
  return PayListOrderItem({
619
620
  record: item,
@@ -628,7 +629,7 @@ var PayOrderList = function PayOrderList(tabActive) {
628
629
  onLog: handleOpenLog
629
630
  });
630
631
  }) : /*#__PURE__*/_jsx("div", {
631
- className: styles.custom_box_main_empty,
632
+ className: "custom_box_main_empty",
632
633
  children: /*#__PURE__*/_jsxs("div", {
633
634
  children: [/*#__PURE__*/_jsx("img", {
634
635
  src: emptyImg,
@@ -639,7 +640,7 @@ var PayOrderList = function PayOrderList(tabActive) {
639
640
  })
640
641
  })
641
642
  }), /*#__PURE__*/_jsx("div", {
642
- className: styles.custom_box_page,
643
+ className: "custom_box_page",
643
644
  children: /*#__PURE__*/_jsx(Pagination, {
644
645
  showQuickJumper: true,
645
646
  showSizeChanger: false,
@@ -58,6 +58,7 @@
58
58
  height: 70px;
59
59
  overflow: auto;
60
60
  background-color: #fff;
61
+ padding: 4px;
61
62
 
62
63
  &:hover {
63
64
  height: 200px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.0.1-alpha.11",
3
+ "version": "0.0.1-alpha.12",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",