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

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.
Files changed (52) hide show
  1. package/README.md +38 -0
  2. package/dist/esm/WorkOrder/common/cache/index.d.ts +4 -2
  3. package/dist/esm/WorkOrder/common/cache/index.js +31 -21
  4. package/dist/esm/WorkOrder/common/constant.js +2 -2
  5. package/dist/esm/WorkOrder/common/imgs/empty.png +0 -0
  6. package/dist/esm/WorkOrder/common/styles/base.less +2 -2
  7. package/dist/esm/WorkOrder/common/styles/theme.less +46 -1
  8. package/dist/esm/WorkOrder/common/utils/formatAddrData.js +6 -5
  9. package/dist/esm/WorkOrder/common/utils/tools.d.ts +2 -1
  10. package/dist/esm/WorkOrder/common/utils/tools.js +67 -31
  11. package/dist/esm/WorkOrder/components/CustomizeFormModal/index.js +60 -21
  12. package/dist/esm/WorkOrder/components/CustomizeFormModal/index.module.less +21 -11
  13. package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.d.ts +2 -2
  14. package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.js +3 -3
  15. package/dist/esm/WorkOrder/components/ListOrderItem/index.js +26 -10
  16. package/dist/esm/WorkOrder/components/ListOrderItem/index.module.less +18 -6
  17. package/dist/esm/WorkOrder/components/PayListOrderItem/ModifyModal.js +58 -16
  18. package/dist/esm/WorkOrder/components/PayListOrderItem/RecordModal.js +4 -4
  19. package/dist/esm/WorkOrder/components/PayListOrderItem/index.js +10 -4
  20. package/dist/esm/WorkOrder/components/PayListOrderItem/record.module.less +6 -0
  21. package/dist/esm/WorkOrder/components/RecordLog/index.js +3 -5
  22. package/dist/esm/WorkOrder/components/RecordLog/index.module.less +2 -0
  23. package/dist/esm/WorkOrder/components/TransferOrderModal/index.js +3 -2
  24. package/dist/esm/WorkOrder/components/Widget/basic/Address/index.js +2 -2
  25. package/dist/esm/WorkOrder/components/Widget/basic/Checkbox/index.js +2 -4
  26. package/dist/esm/WorkOrder/components/Widget/basic/Picture/index.js +11 -5
  27. package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +3 -6
  28. package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerName/index.js +3 -4
  29. package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerNick/index.js +2 -3
  30. package/dist/esm/WorkOrder/components/Widget/electricity/EItemEncode/index.js +4 -3
  31. package/dist/esm/WorkOrder/components/Widget/electricity/EItemId/index.js +4 -3
  32. package/dist/esm/WorkOrder/components/Widget/electricity/EItemSelect/index.js +4 -3
  33. package/dist/esm/WorkOrder/components/Widget/electricity/EReceiverAddress/index.js +3 -4
  34. package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.d.ts +1 -0
  35. package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.js +21 -12
  36. package/dist/esm/WorkOrder/components/Widget/electricity/Express/index.js +1 -2
  37. package/dist/esm/WorkOrder/components/Widget/third/ItemSelect/index.js +4 -3
  38. package/dist/esm/WorkOrder/components/Widget/third/Payment/PaymentAmount.js +4 -3
  39. package/dist/esm/WorkOrder/components/Widget/third/Payment/index.js +3 -4
  40. package/dist/esm/WorkOrder/index.d.ts +1 -1
  41. package/dist/esm/WorkOrder/index.js +177 -139
  42. package/dist/esm/WorkOrder/index.module.less +41 -8
  43. package/dist/esm/WorkOrder/model/servers/api.d.ts +1 -0
  44. package/dist/esm/WorkOrder/model/servers/api.js +11 -3
  45. package/dist/esm/WorkOrder/model/servers/request.js +10 -18
  46. package/dist/esm/WorkOrder/model/workOrder.js +8 -6
  47. package/package.json +5 -3
  48. package/dist/esm/WorkOrder/common/imgs/close.png +0 -0
  49. package/dist/esm/WorkOrder/common/imgs/kmgd.png +0 -0
  50. package/dist/esm/WorkOrder/common/imgs/logo.png +0 -0
  51. package/dist/esm/WorkOrder/components/Widget/common/utils.d.ts +0 -0
  52. package/dist/esm/WorkOrder/components/Widget/common/utils.js +0 -98
@@ -102,11 +102,10 @@ var RecordLog = function RecordLog(props, ref) {
102
102
  case 2:
103
103
  _yield$reportLogs = _context.sent;
104
104
  result = _yield$reportLogs.data.result;
105
- console.log(result);
106
105
  setLogList(result);
107
106
  setVisible(true);
108
107
 
109
- case 7:
108
+ case 6:
110
109
  case "end":
111
110
  return _context.stop();
112
111
  }
@@ -121,7 +120,6 @@ var RecordLog = function RecordLog(props, ref) {
121
120
 
122
121
  return /*#__PURE__*/_jsx(Drawer, {
123
122
  visible: visible,
124
- width: 370,
125
123
  title: "\u64CD\u4F5C\u8BB0\u5F55",
126
124
  onClose: function onClose() {
127
125
  return setVisible(false);
@@ -203,8 +201,8 @@ var RecordLog = function RecordLog(props, ref) {
203
201
  var _record$operation;
204
202
 
205
203
  var newContent = get(calcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex));
206
- var oldContent = get(oldCalcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex));
207
- console.log(newContent, oldContent, calcContent);
204
+ var oldContent = get(oldCalcContent, "0.".concat(child === null || child === void 0 ? void 0 : child.dataIndex)); // console.log(newContent, oldContent, calcContent);
205
+
208
206
  return newContent || oldContent ? /*#__PURE__*/_jsxs("span", {
209
207
  style: {
210
208
  display: 'flex'
@@ -1,5 +1,7 @@
1
1
  .log_item {
2
2
  padding: 8px 0;
3
3
  color: rgba(0, 0, 0, 0.55);
4
+ word-wrap: break-word;
5
+ word-break: break-all;
4
6
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
5
7
  }
@@ -22,8 +22,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
  * @Description:
23
23
  * @Author: litian
24
24
  * @Date: 2022-09-15 10:51:44
25
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
26
- * @LastEditTime: 2022-09-16 13:37:53
25
+ * @LastEditors: litian
26
+ * @LastEditTime: 2022-09-28 13:55:39
27
27
  */
28
28
  import React, { useState, useImperativeHandle, forwardRef } from 'react';
29
29
  import { Modal, Form, Select } from 'antd';
@@ -117,6 +117,7 @@ var TransCustomerModal = function TransCustomerModal(props, ref) {
117
117
  title: "\u8F6C\u4EA4\u5BA2\u670D",
118
118
  centered: true,
119
119
  visible: visible,
120
+ width: 400,
120
121
  onCancel: closeModal,
121
122
  onOk: handleTransCustomer,
122
123
  children: /*#__PURE__*/_jsx(Form.Item, {
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-09-07 17:58:35
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:39:26
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-21 10:35:08
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-09-07 17:58:35
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:40:08
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-20 18:01:46
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -69,8 +69,6 @@ var BasicCheckBox = /*#__PURE__*/function (_BasicComponent) {
69
69
  validator: function validator(_, value) {
70
70
  var _value$value2;
71
71
 
72
- console.log(value);
73
-
74
72
  if (!(value !== null && value !== void 0 && (_value$value2 = value.value) !== null && _value$value2 !== void 0 && _value$value2.length)) {
75
73
  return Promise.reject(new Error('请选择'));
76
74
  }
@@ -31,13 +31,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
31
31
  * @Author: litian
32
32
  * @Date: 2022-09-07 17:58:35
33
33
  * @LastEditors: litian
34
- * @LastEditTime: 2022-09-15 17:10:14
34
+ * @LastEditTime: 2022-09-28 14:37:28
35
35
  */
36
36
  import React from 'react';
37
37
  import BasicComponent from "../../BasicComponent";
38
38
  import { getFormItem } from "../../common/formItemWrap";
39
- import { ApaasUpload } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
39
+ import { ApaasUploadAsync } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
40
40
  import { Image } from 'antd';
41
+ import { imgResize } from "../../../../common/utils/tools";
41
42
  import { jsx as _jsx } from "react/jsx-runtime";
42
43
 
43
44
  var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
@@ -53,7 +54,6 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
53
54
  _this = _super.call(this, options);
54
55
 
55
56
  _defineProperty(_assertThisInitialized(_this), "render", function (value) {
56
- // const host = localStorage.getItem('kmkf_kmgd_host') || 'https://kefu.kuaimai.com'
57
57
  return value === null || value === void 0 ? void 0 : value.map(function (pic) {
58
58
  return /*#__PURE__*/_jsx("div", {
59
59
  style: {
@@ -62,7 +62,10 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
62
62
  },
63
63
  children: /*#__PURE__*/_jsx(Image, {
64
64
  width: 32,
65
- src: pic
65
+ src: imgResize(pic || ''),
66
+ preview: {
67
+ src: pic
68
+ }
66
69
  })
67
70
  });
68
71
  });
@@ -76,7 +79,10 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
76
79
  name: _this.id,
77
80
  rules: [],
78
81
  required: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.required,
79
- component: /*#__PURE__*/_jsx(ApaasUpload, _objectSpread({}, _this.componentConfig))
82
+ component: /*#__PURE__*/_jsx(ApaasUploadAsync, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
83
+ uniqueKey: _this.id,
84
+ hostUrl: "https://kefu.kuaimai.com"
85
+ }))
80
86
  }, value));
81
87
  });
82
88
 
@@ -46,21 +46,18 @@ export var getFormItem = function getFormItem(_ref) {
46
46
  }
47
47
  }
48
48
 
49
- return /*#__PURE__*/_jsxs("div", {
49
+ return /*#__PURE__*/_jsx("div", {
50
50
  className: "form-item--wrap",
51
51
  style: {
52
52
  position: 'relative'
53
53
  },
54
- children: [/*#__PURE__*/_jsx("span", {
55
- className: "label-title--index",
56
- children: indexLabel
57
- }), /*#__PURE__*/_jsx(Form.Item, {
54
+ children: /*#__PURE__*/_jsx(Form.Item, {
58
55
  name: name,
59
56
  label: title,
60
57
  rules: newRules,
61
58
  className: formIndexClassName,
62
59
  children: component
63
- })]
60
+ })
64
61
  });
65
62
  }; //图片展示
66
63
 
@@ -43,7 +43,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
43
43
  * @Author: litian
44
44
  * @Date: 2022-08-01 09:36:35
45
45
  * @LastEditors: litian
46
- * @LastEditTime: 2022-09-07 19:21:13
46
+ * @LastEditTime: 2022-09-20 18:02:06
47
47
  */
48
48
  import React from 'react';
49
49
  import BasicComponent from "../../BasicComponent";
@@ -68,7 +68,6 @@ var EBuyerName = /*#__PURE__*/function (_BasicComponent) {
68
68
  _this = _super.call(this, options);
69
69
 
70
70
  _defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
71
- console.log(value, record);
72
71
  var buyerOpenUid = Object.keys(record).reduce(function (prv, next) {
73
72
  var _next$split = next.split('_'),
74
73
  _next$split2 = _slicedToArray(_next$split, 2),
@@ -80,8 +79,8 @@ var EBuyerName = /*#__PURE__*/function (_BasicComponent) {
80
79
  }
81
80
 
82
81
  return prv;
83
- }, '');
84
- console.log('buyername', value);
82
+ }, ''); // console.log('buyername', value);
83
+
85
84
  return /*#__PURE__*/_jsx("span", {
86
85
  children: value
87
86
  });
@@ -30,8 +30,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
30
30
  * @Description:
31
31
  * @Author: litian
32
32
  * @Date: 2022-06-30 17:30:05
33
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
34
- * @LastEditTime: 2022-09-16 16:40:28
33
+ * @LastEditors: litian
34
+ * @LastEditTime: 2022-09-20 18:02:16
35
35
  */
36
36
  import React from 'react';
37
37
  import { BuyerNick } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
@@ -99,7 +99,6 @@ var EBuyerNick = /*#__PURE__*/function (_BasicComponent) {
99
99
  });
100
100
 
101
101
  _defineProperty(_assertThisInitialized(_this), "getColumns", function () {
102
- console.log('this.buyerOpenUid', _this.buyerOpenUid);
103
102
  return {
104
103
  title: _this.name,
105
104
  children: [_this.buyerNick.getColumns(), _this.buyerOpenUid.getColumns()],
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-08-15 14:37:33
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:40:32
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-27 10:55:47
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -94,7 +94,8 @@ var EItemSelect = /*#__PURE__*/function (_BasicComponent) {
94
94
  required: false,
95
95
  component: /*#__PURE__*/_jsx(ItemEncode, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
96
96
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
97
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
97
+ shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
98
+ width: "90%"
98
99
  }))
99
100
  }, value));
100
101
  });
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-08-15 14:37:33
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:40:37
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-27 16:15:00
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -94,7 +94,8 @@ var EItemId = /*#__PURE__*/function (_BasicComponent) {
94
94
  required: false,
95
95
  component: /*#__PURE__*/_jsx(ItemId, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
96
96
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
97
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
97
+ shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
98
+ width: "90%"
98
99
  }))
99
100
  }, value));
100
101
  });
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description: 选择宝贝
35
35
  * @Author: litian
36
36
  * @Date: 2022-08-15 14:37:33
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:42:36
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-27 10:55:53
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -71,7 +71,8 @@ var EItemSelect = /*#__PURE__*/function (_BasicComponent) {
71
71
  required: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.required,
72
72
  component: /*#__PURE__*/_jsx(ItemSelect, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
73
73
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
74
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
74
+ shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
75
+ width: "90%"
75
76
  }))
76
77
  }, value));
77
78
  });
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-09-07 17:58:35
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:40:45
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-21 13:35:19
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -109,8 +109,7 @@ var ReceiverAddress = /*#__PURE__*/function (_BasicComponent) {
109
109
  validator: function validator(_, value) {
110
110
  var _value$address3;
111
111
 
112
- console.log('address', value);
113
-
112
+ // console.log('address', value);
114
113
  if (!(value !== null && value !== void 0 && (_value$address3 = value.address) !== null && _value$address3 !== void 0 && _value$address3.length)) {
115
114
  return Promise.reject(new Error('请选择地址'));
116
115
  }
@@ -6,6 +6,7 @@ declare class ETradeId extends Input {
6
6
  rules: never[];
7
7
  effects: any;
8
8
  componentConfig: any;
9
+ time: any;
9
10
  constructor(options: any);
10
11
  searchHandle(val: {
11
12
  buyerNick: any;
@@ -36,8 +36,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
36
36
  * @Description:
37
37
  * @Author: litian
38
38
  * @Date: 2022-06-30 17:30:05
39
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
40
- * @LastEditTime: 2022-09-16 13:40:06
39
+ * @LastEditors: litian
40
+ * @LastEditTime: 2022-09-20 09:24:55
41
41
  */
42
42
  import React from 'react';
43
43
  import Input from "../../basic/Input";
@@ -70,6 +70,8 @@ var ETradeId = /*#__PURE__*/function (_Input) {
70
70
 
71
71
  _defineProperty(_assertThisInitialized(_this), "componentConfig", void 0);
72
72
 
73
+ _defineProperty(_assertThisInitialized(_this), "time", void 0);
74
+
73
75
  _defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
74
76
  var _this$componentConfig;
75
77
 
@@ -98,7 +100,7 @@ var ETradeId = /*#__PURE__*/function (_Input) {
98
100
  shopList: options === null || options === void 0 ? void 0 : (_options$effects = options.effects) === null || _options$effects === void 0 ? void 0 : _options$effects.shopList,
99
101
  shopId: options === null || options === void 0 ? void 0 : (_options$effects2 = options.effects) === null || _options$effects2 === void 0 ? void 0 : _options$effects2.shopId
100
102
  });
101
- console.log('tradeid--------', options);
103
+ _this.time = null;
102
104
  return _this;
103
105
  }
104
106
 
@@ -131,15 +133,22 @@ var ETradeId = /*#__PURE__*/function (_Input) {
131
133
  switch (_context.prev = _context.next) {
132
134
  case 0:
133
135
  _this$effects = this.effects, form = _this$effects.form, shopId = _this$effects.shopId, shopList = _this$effects.shopList, templateDetail = _this$effects.templateDetail;
134
- orderBack({
135
- order_no: order_no,
136
- form: form,
137
- shopId: shopId,
138
- shopList: shopList,
139
- templateDetail: templateDetail
140
- });
141
-
142
- case 2:
136
+
137
+ if (this.time) {
138
+ clearTimeout(this.time);
139
+ }
140
+
141
+ this.time = setTimeout(function () {
142
+ orderBack({
143
+ order_no: order_no,
144
+ form: form,
145
+ shopId: shopId,
146
+ shopList: shopList,
147
+ templateDetail: templateDetail
148
+ });
149
+ }, 1000);
150
+
151
+ case 3:
143
152
  case "end":
144
153
  return _context.stop();
145
154
  }
@@ -35,7 +35,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
35
35
  * @Author: litian
36
36
  * @Date: 2022-06-21 21:20:47
37
37
  * @LastEditors: litian
38
- * @LastEditTime: 2022-09-07 19:41:29
38
+ * @LastEditTime: 2022-09-20 18:02:27
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -57,7 +57,6 @@ var Express = /*#__PURE__*/function (_BasicComponent) {
57
57
  _this = _super.call(this, options);
58
58
 
59
59
  _defineProperty(_assertThisInitialized(_this), "render", function (value, record) {
60
- console.log('express.getExpressNameByCode(value)', express.getExpressNameByCode(value));
61
60
  return /*#__PURE__*/_jsx("span", {
62
61
  children: express.getExpressNameByCode(value)
63
62
  });
@@ -34,8 +34,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
34
  * @Description:
35
35
  * @Author: litian
36
36
  * @Date: 2022-08-15 14:37:33
37
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
38
- * @LastEditTime: 2022-09-16 16:41:46
37
+ * @LastEditors: litian
38
+ * @LastEditTime: 2022-09-27 10:56:05
39
39
  */
40
40
  import React from 'react';
41
41
  import BasicComponent from "../../BasicComponent";
@@ -103,7 +103,8 @@ var ItemSelectThird = /*#__PURE__*/function (_BasicComponent) {
103
103
  component: /*#__PURE__*/_jsx(ItemEncode, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
104
104
  type: 4,
105
105
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
106
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList
106
+ shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
107
+ width: "90%"
107
108
  }))
108
109
  }, value));
109
110
  });
@@ -30,8 +30,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
30
30
  * @Description:
31
31
  * @Author: litian
32
32
  * @Date: 2022-09-07 17:58:35
33
- * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
34
- * @LastEditTime: 2022-09-16 16:05:22
33
+ * @LastEditors: litian
34
+ * @LastEditTime: 2022-09-23 10:53:34
35
35
  */
36
36
  import React from 'react';
37
37
  import BasicComponent from "../../BasicComponent";
@@ -64,7 +64,6 @@ var PaymentAmount = /*#__PURE__*/function (_BasicComponent) {
64
64
  _defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
65
65
  var _this$componentConfig;
66
66
 
67
- console.log('this', _assertThisInitialized(_this));
68
67
  return getFormItem(_objectSpread({
69
68
  title: _this.name,
70
69
  name: _this.id,
@@ -84,6 +83,8 @@ var PaymentAmount = /*#__PURE__*/function (_BasicComponent) {
84
83
  _this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
85
84
  _this.rules = [{
86
85
  validator: function validator(_, value) {
86
+ console.log(value);
87
+
87
88
  if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
88
89
  return Promise.resolve();
89
90
  }
@@ -120,14 +120,13 @@ var Payment = /*#__PURE__*/function (_BasicComponent) {
120
120
  });
121
121
 
122
122
  _defineProperty(_assertThisInitialized(_this), "editRender", function (value) {
123
- var _this$componentConfig2, _this$componentConfig3;
123
+ var _this$componentConfig2;
124
124
 
125
- console.log(_this.componentConfig);
126
125
  return getFormItem(_objectSpread({
127
126
  title: _this.name,
128
127
  name: _this.id,
129
- rules: (_this$componentConfig2 = _this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required || _this.componentConfig.zhiFubaoRequired ? _this.customRules(_this.componentConfig) : [],
130
- required: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required,
128
+ rules: _this.customRules(_this.componentConfig),
129
+ required: (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required,
131
130
  component: /*#__PURE__*/_jsx(ApaasPayment, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
132
131
  onSearch: function onSearch(val) {
133
132
  return _this.searchHandle(val);
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface WorkOrderProps {
3
3
  platform: string;
4
- shopId?: number;
4
+ shopId?: string;
5
5
  buyerNick?: string;
6
6
  buyerId?: string;
7
7
  orderNo?: string;