kmkf-work-order-service-component 0.0.1-alpha.1 → 0.0.1-alpha.10
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.
- package/README.md +38 -0
- package/dist/esm/WorkOrder/common/cache/index.d.ts +4 -2
- package/dist/esm/WorkOrder/common/cache/index.js +31 -21
- package/dist/esm/WorkOrder/common/constant.js +2 -2
- package/dist/esm/WorkOrder/common/imgs/empty.png +0 -0
- package/dist/esm/WorkOrder/common/styles/base.less +2 -2
- package/dist/esm/WorkOrder/common/styles/theme.less +46 -1
- package/dist/esm/WorkOrder/common/utils/formatAddrData.js +6 -5
- package/dist/esm/WorkOrder/common/utils/tools.d.ts +2 -1
- package/dist/esm/WorkOrder/common/utils/tools.js +49 -33
- package/dist/esm/WorkOrder/components/CustomizeFormModal/index.js +60 -21
- package/dist/esm/WorkOrder/components/CustomizeFormModal/index.module.less +21 -11
- package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.d.ts +2 -2
- package/dist/esm/WorkOrder/components/CustomizeFormModal/wrap.js +3 -3
- package/dist/esm/WorkOrder/components/ListOrderItem/index.js +26 -10
- package/dist/esm/WorkOrder/components/ListOrderItem/index.module.less +18 -6
- package/dist/esm/WorkOrder/components/PayListOrderItem/ModifyModal.js +58 -16
- package/dist/esm/WorkOrder/components/PayListOrderItem/RecordModal.js +4 -4
- package/dist/esm/WorkOrder/components/PayListOrderItem/index.js +10 -4
- package/dist/esm/WorkOrder/components/PayListOrderItem/record.module.less +6 -0
- package/dist/esm/WorkOrder/components/RecordLog/index.js +3 -5
- package/dist/esm/WorkOrder/components/RecordLog/index.module.less +2 -0
- package/dist/esm/WorkOrder/components/TransferOrderModal/index.js +3 -2
- package/dist/esm/WorkOrder/components/Widget/basic/Address/index.js +2 -2
- package/dist/esm/WorkOrder/components/Widget/basic/Checkbox/index.js +2 -4
- package/dist/esm/WorkOrder/components/Widget/basic/Picture/index.js +11 -5
- package/dist/esm/WorkOrder/components/Widget/common/formItemWrap.js +3 -6
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerName/index.js +3 -4
- package/dist/esm/WorkOrder/components/Widget/electricity/EBuyerNick/index.js +2 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemEncode/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemId/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EItemSelect/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/electricity/EReceiverAddress/index.js +3 -4
- package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.d.ts +1 -0
- package/dist/esm/WorkOrder/components/Widget/electricity/ETradeId/index.js +21 -12
- package/dist/esm/WorkOrder/components/Widget/electricity/Express/index.js +1 -2
- package/dist/esm/WorkOrder/components/Widget/third/ItemSelect/index.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/third/Payment/PaymentAmount.js +4 -3
- package/dist/esm/WorkOrder/components/Widget/third/Payment/index.js +3 -4
- package/dist/esm/WorkOrder/index.d.ts +1 -1
- package/dist/esm/WorkOrder/index.js +182 -139
- package/dist/esm/WorkOrder/index.module.less +41 -8
- package/dist/esm/WorkOrder/model/servers/api.d.ts +1 -0
- package/dist/esm/WorkOrder/model/servers/api.js +11 -3
- package/dist/esm/WorkOrder/model/servers/request.js +10 -18
- package/dist/esm/WorkOrder/model/workOrder.js +8 -6
- package/package.json +5 -3
- package/dist/esm/WorkOrder/common/imgs/close.png +0 -0
- package/dist/esm/WorkOrder/common/imgs/kmgd.png +0 -0
- package/dist/esm/WorkOrder/common/imgs/logo.png +0 -0
- package/dist/esm/WorkOrder/components/Widget/common/utils.d.ts +0 -0
- 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
|
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
|
-
|
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'
|
@@ -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:
|
26
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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-
|
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 {
|
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(
|
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__*/
|
49
|
+
return /*#__PURE__*/_jsx("div", {
|
50
50
|
className: "form-item--wrap",
|
51
51
|
style: {
|
52
52
|
position: 'relative'
|
53
53
|
},
|
54
|
-
children:
|
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-
|
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
|
-
|
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:
|
34
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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
|
}
|
@@ -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:
|
40
|
-
* @LastEditTime: 2022-09-
|
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
|
-
|
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
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
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-
|
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:
|
38
|
-
* @LastEditTime: 2022-09-
|
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:
|
34
|
-
* @LastEditTime: 2022-09-
|
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
|
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:
|
130
|
-
required: (_this$
|
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);
|