kts-component-invoice-operate 3.2.225 → 3.2.227
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/dist/index.esm.js
CHANGED
|
@@ -24909,6 +24909,8 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24909
24909
|
var onAdd = function onAdd() {
|
|
24910
24910
|
if (value.length < licenceLimit) {
|
|
24911
24911
|
setVal([].concat(_toConsumableArray(value), ['']));
|
|
24912
|
+
} else {
|
|
24913
|
+
message.warn('最多支持填写3个车牌号');
|
|
24912
24914
|
}
|
|
24913
24915
|
}; // 删除车牌号
|
|
24914
24916
|
|
|
@@ -24920,7 +24922,6 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24920
24922
|
}
|
|
24921
24923
|
};
|
|
24922
24924
|
|
|
24923
|
-
console.log(value.length);
|
|
24924
24925
|
return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
24925
24926
|
return /*#__PURE__*/React.createElement(Col$1, {
|
|
24926
24927
|
span: 6
|
|
@@ -24930,12 +24931,13 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24930
24931
|
}, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
|
|
24931
24932
|
rules: readOnly ? [] : [{
|
|
24932
24933
|
required: true,
|
|
24933
|
-
message: '
|
|
24934
|
+
message: '请输入车牌号,最多20位'
|
|
24934
24935
|
}]
|
|
24935
24936
|
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24936
24937
|
style: {
|
|
24937
24938
|
width: '100%'
|
|
24938
24939
|
},
|
|
24940
|
+
maxLength: 20,
|
|
24939
24941
|
autoComplete: 'off',
|
|
24940
24942
|
placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
|
|
24941
24943
|
}))));
|
package/dist/index.js
CHANGED
|
@@ -24919,6 +24919,8 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24919
24919
|
var onAdd = function onAdd() {
|
|
24920
24920
|
if (value.length < licenceLimit) {
|
|
24921
24921
|
setVal([].concat(_toConsumableArray(value), ['']));
|
|
24922
|
+
} else {
|
|
24923
|
+
ktsComponentsAntdX3.message.warn('最多支持填写3个车牌号');
|
|
24922
24924
|
}
|
|
24923
24925
|
}; // 删除车牌号
|
|
24924
24926
|
|
|
@@ -24930,7 +24932,6 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24930
24932
|
}
|
|
24931
24933
|
};
|
|
24932
24934
|
|
|
24933
|
-
console.log(value.length);
|
|
24934
24935
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
24935
24936
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24936
24937
|
span: 6
|
|
@@ -24940,12 +24941,13 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
24940
24941
|
}, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
|
|
24941
24942
|
rules: readOnly ? [] : [{
|
|
24942
24943
|
required: true,
|
|
24943
|
-
message: '
|
|
24944
|
+
message: '请输入车牌号,最多20位'
|
|
24944
24945
|
}]
|
|
24945
24946
|
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$3, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24946
24947
|
style: {
|
|
24947
24948
|
width: '100%'
|
|
24948
24949
|
},
|
|
24950
|
+
maxLength: 20,
|
|
24949
24951
|
autoComplete: 'off',
|
|
24950
24952
|
placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
|
|
24951
24953
|
}))));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { useEffect } from "react";
|
|
3
3
|
import { decorator } from 'grey-react-box';
|
|
4
|
-
import { Form } from 'kts-components-antd-x3';
|
|
4
|
+
import { Form, message } from 'kts-components-antd-x3';
|
|
5
5
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
6
6
|
import Invoice from '../../..';
|
|
7
7
|
import './index.less';
|
|
@@ -336,6 +336,8 @@ const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
|
336
336
|
const onAdd = () => {
|
|
337
337
|
if (value.length < licenceLimit) {
|
|
338
338
|
setVal([...value, '']);
|
|
339
|
+
}else{
|
|
340
|
+
message.warn('最多支持填写3个车牌号')
|
|
339
341
|
}
|
|
340
342
|
}
|
|
341
343
|
// 删除车牌号
|
|
@@ -346,18 +348,17 @@ const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
350
|
|
|
349
|
-
console.log(value.length)
|
|
350
351
|
return <>
|
|
351
352
|
{
|
|
352
353
|
value.length > 0 && value.map((item: string[], key: number) => {
|
|
353
354
|
|
|
354
355
|
return <Col span={6} ><Form.Item label='车牌号' key={key}>
|
|
355
356
|
{getFieldDecorator(`realEstateDataDto[${props.index}].cphList[${key}]`, {
|
|
356
|
-
rules: readOnly ? [] : [{ required: true, message: '
|
|
357
|
+
rules: readOnly ? [] : [{ required: true, message: '请输入车牌号,最多20位' }]
|
|
357
358
|
})(
|
|
358
359
|
readOnly
|
|
359
360
|
? <MyDiv /> :
|
|
360
|
-
<Input style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
361
|
+
<Input style={{ width: '100%' }} maxLength={20} autoComplete='off' placeholder="请输入车牌号" />
|
|
361
362
|
)}
|
|
362
363
|
</Form.Item>
|
|
363
364
|
</Col>
|