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

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.
@@ -51,7 +51,8 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
51
51
  var shopList = props.shopList,
52
52
  onSuccess = props.onSuccess,
53
53
  look = props.look,
54
- title = props.title;
54
+ title = props.title,
55
+ width = props.width;
55
56
 
56
57
  var _useState = useState(false),
57
58
  _useState2 = _slicedToArray(_useState, 2),
@@ -471,7 +472,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
471
472
 
472
473
  return /*#__PURE__*/_jsx(Drawer, {
473
474
  title: (templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.name) || '工单录入',
474
- width: '90%',
475
+ width: width,
475
476
  open: visible,
476
477
  onClose: closeModal,
477
478
  footer: renderFooter(),
@@ -7,9 +7,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  /*
8
8
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
9
9
  * @Date: 2022-09-13 14:30:28
10
- * @LastEditors: litian
11
- * @LastEditTime: 2022-09-19 10:01:49
12
- * @FilePath: /dy-work-order/src/components/CustomizeFormModal/wrap.tsx
10
+ * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
11
+ * @LastEditTime: 2022-10-26 15:00:58
12
+ * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/components/CustomizeFormModal/wrap.tsx
13
13
  * @Description:
14
14
  *
15
15
  * Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
@@ -31,6 +31,7 @@ var openCustomizeWOrkOrder = function openCustomizeWOrkOrder(prefixParams) {
31
31
  function render() {
32
32
  reactRender( /*#__PURE__*/_jsx(CustomizeFormModal, {
33
33
  ref: ref,
34
+ width: "100%",
34
35
  onSuccess: function onSuccess(val) {
35
36
  if (typeof (prefixParams === null || prefixParams === void 0 ? void 0 : prefixParams.onSuccess) === 'function') {
36
37
  return prefixParams === null || prefixParams === void 0 ? void 0 : prefixParams.onSuccess(val);
@@ -38,7 +38,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
38
38
  import { jsxs as _jsxs } from "react/jsx-runtime";
39
39
 
40
40
  function ModifyModal(props, ref) {
41
- var afterSuccessUpdateWorkOrder = props.afterSuccessUpdateWorkOrder;
41
+ var afterSuccessUpdateWorkOrder = props.afterSuccessUpdateWorkOrder,
42
+ width = props.width;
42
43
  useImperativeHandle(ref, function () {
43
44
  return {
44
45
  openModal: function openModal(val, type) {
@@ -217,7 +218,7 @@ function ModifyModal(props, ref) {
217
218
 
218
219
  return /*#__PURE__*/_jsx(Drawer, {
219
220
  open: visible,
220
- width: '90%',
221
+ width: width,
221
222
  onClose: function onClose() {
222
223
  form.resetFields();
223
224
  setVisible(false);
@@ -23,7 +23,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  * @Author: litian
24
24
  * @Date: 2022-09-09 16:58:00
25
25
  * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
26
- * @LastEditTime: 2022-10-21 11:27:52
26
+ * @LastEditTime: 2022-10-26 15:06:21
27
27
  */
28
28
  import React, { useImperativeHandle, forwardRef, useState } from 'react';
29
29
  import { Drawer } from 'antd';
@@ -106,7 +106,7 @@ function RecordModal(props, ref) {
106
106
 
107
107
  return /*#__PURE__*/_jsx(Drawer, {
108
108
  title: "\u8BB0\u5F55",
109
- width: '90%',
109
+ width: props === null || props === void 0 ? void 0 : props.width,
110
110
  open: visible,
111
111
  onClose: function onClose() {
112
112
  return setVisible(false);
@@ -2,8 +2,8 @@
2
2
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
3
3
  * @Date: 2022-09-13 14:30:28
4
4
  * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
5
- * @LastEditTime: 2022-09-13 15:52:39
6
- * @FilePath: /dy-work-order/src/components/PayListOrderItem/wrap.tsx
5
+ * @LastEditTime: 2022-10-26 15:03:56
6
+ * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/components/PayListOrderItem/wrap.tsx
7
7
  * @Description:
8
8
  *
9
9
  * Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
@@ -22,6 +22,7 @@ var openPaymentWOrkOrder = function openPaymentWOrkOrder(record, type, cb) {
22
22
  function render() {
23
23
  reactRender( /*#__PURE__*/_jsx(ModifyModal, {
24
24
  ref: ref,
25
+ width: "100%",
25
26
  afterSuccessUpdateWorkOrder: cb
26
27
  }), container);
27
28
  setTimeout(function () {
@@ -120,7 +120,7 @@ var RecordLog = function RecordLog(props, ref) {
120
120
 
121
121
  return /*#__PURE__*/_jsx(Drawer, {
122
122
  open: visible,
123
- width: '90%',
123
+ width: props === null || props === void 0 ? void 0 : props.width,
124
124
  title: "\u64CD\u4F5C\u8BB0\u5F55",
125
125
  onClose: function onClose() {
126
126
  return setVisible(false);
@@ -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-26 11:04:28
30
+ * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
31
+ * @LastEditTime: 2022-10-27 14:22:52
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -499,13 +499,15 @@ var OrderList = function OrderList(_ref) {
499
499
  onChange: onChangePage
500
500
  })
501
501
  }), /*#__PURE__*/_jsx(RecordLog, {
502
- ref: recordLogRef
502
+ ref: recordLogRef,
503
+ width: platform === PlatForm.XIAOZHI ? '100%' : '90%'
503
504
  }), /*#__PURE__*/_jsx(TransferOrderModal, {
504
505
  ref: transferRef,
505
506
  handleTransCustomer: transCustomer
506
507
  }), /*#__PURE__*/_jsx(CustomizeFormModal, {
507
508
  ref: customizeFormRef,
508
509
  shopList: shopList,
510
+ width: platform === PlatForm.XIAOZHI ? '100%' : '90%',
509
511
  onSuccess: function onSuccess(_ref4) {
510
512
  var type = _ref4.type;
511
513
  onSearch();
@@ -586,7 +588,7 @@ var PayOrderList = function PayOrderList(_ref5) {
586
588
  color: 'rgba(156,156,156)'
587
589
  }];
588
590
  useEffect(function () {
589
- onSearch();
591
+ setTimeout(onSearch, 0); // TODO: 让请求在下一个任务中执行,前一个任务获取不到redux中的数据
590
592
  }, [paySearch, buyerNick, buyerId]);
591
593
 
592
594
  var onSearch = function onSearch() {
@@ -758,10 +760,12 @@ var PayOrderList = function PayOrderList(_ref5) {
758
760
  onChange: onChangePage
759
761
  })
760
762
  }), /*#__PURE__*/_jsx(RecordModal, {
761
- ref: logRef
763
+ ref: logRef,
764
+ width: platform === PlatForm.XIAOZHI ? '100%' : '90%'
762
765
  }), /*#__PURE__*/_jsx(PayOrderModal, {
763
766
  ref: payOrderRef,
764
- afterSuccessUpdateWorkOrder: onSearch
767
+ afterSuccessUpdateWorkOrder: onSearch,
768
+ width: platform === PlatForm.XIAOZHI ? '100%' : '90%'
765
769
  })]
766
770
  });
767
771
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.1.8-alpha.1",
3
+ "version": "0.1.9",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -12,7 +12,8 @@
12
12
  "test:coverage": "umi-test --coverage",
13
13
  "prepublishOnly": "npm run build",
14
14
  "async": "yarn build && yalc push",
15
- "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
15
+ "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'",
16
+ "publish": "npm publish --registry=https://registry.npmjs.org/"
16
17
  },
17
18
  "files": [
18
19
  "dist"