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

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