kts-component-invoice-operate 3.2.49 → 3.2.51
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
|
@@ -10072,7 +10072,8 @@ function ItemCodeInput(props) {
|
|
|
10072
10072
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10073
10073
|
}, /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
10074
10074
|
onSearch: onSearch,
|
|
10075
|
-
|
|
10075
|
+
defaultValue: props.value,
|
|
10076
|
+
value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
|
|
10076
10077
|
options: options.map(function (e) {
|
|
10077
10078
|
return {
|
|
10078
10079
|
value: e.itemCode
|
|
@@ -10084,6 +10085,7 @@ function ItemCodeInput(props) {
|
|
|
10084
10085
|
height: '100%',
|
|
10085
10086
|
border: 'none'
|
|
10086
10087
|
},
|
|
10088
|
+
value: props.value,
|
|
10087
10089
|
onChange: onChange
|
|
10088
10090
|
})));
|
|
10089
10091
|
}
|
|
@@ -14392,7 +14394,7 @@ var RULES = {
|
|
|
14392
14394
|
required: true,
|
|
14393
14395
|
message: "".concat(label, "\u5FC5\u586B")
|
|
14394
14396
|
}, {
|
|
14395
|
-
max:
|
|
14397
|
+
max: 100,
|
|
14396
14398
|
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
14397
14399
|
}];
|
|
14398
14400
|
},
|
package/dist/index.js
CHANGED
|
@@ -10082,7 +10082,8 @@ function ItemCodeInput(props) {
|
|
|
10082
10082
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10083
10083
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoComplete, {
|
|
10084
10084
|
onSearch: onSearch,
|
|
10085
|
-
|
|
10085
|
+
defaultValue: props.value,
|
|
10086
|
+
value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
|
|
10086
10087
|
options: options.map(function (e) {
|
|
10087
10088
|
return {
|
|
10088
10089
|
value: e.itemCode
|
|
@@ -10094,6 +10095,7 @@ function ItemCodeInput(props) {
|
|
|
10094
10095
|
height: '100%',
|
|
10095
10096
|
border: 'none'
|
|
10096
10097
|
},
|
|
10098
|
+
value: props.value,
|
|
10097
10099
|
onChange: onChange
|
|
10098
10100
|
})));
|
|
10099
10101
|
}
|
|
@@ -14402,7 +14404,7 @@ var RULES = {
|
|
|
14402
14404
|
required: true,
|
|
14403
14405
|
message: "".concat(label, "\u5FC5\u586B")
|
|
14404
14406
|
}, {
|
|
14405
|
-
max:
|
|
14407
|
+
max: 100,
|
|
14406
14408
|
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
14407
14409
|
}];
|
|
14408
14410
|
},
|
package/package.json
CHANGED
|
@@ -50,8 +50,8 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
52
|
<div className='kts-invoice-operate-goods-list-itemCode-input'>
|
|
53
|
-
<AutoComplete onSearch={onSearch}
|
|
54
|
-
<Input style={{ height: '100%', border: 'none' }} onChange={onChange} />
|
|
53
|
+
<AutoComplete onSearch={onSearch} defaultValue={props.value} value={editGood?.itemCode} options={options.map(e => ({ value: e.itemCode }))} onChange={onChangeAutoComplete} >
|
|
54
|
+
<Input style={{ height: '100%', border: 'none' }} value={props.value} onChange={onChange} />
|
|
55
55
|
</AutoComplete>
|
|
56
56
|
</div>
|
|
57
57
|
)
|
|
@@ -18,7 +18,7 @@ import classNames from 'classnames';
|
|
|
18
18
|
const RULES = {
|
|
19
19
|
companyName: (label: string) => [
|
|
20
20
|
{ required: true, message: `${label}必填` },
|
|
21
|
-
{ max:
|
|
21
|
+
{ max: 100, message: `${label}内容超长` }
|
|
22
22
|
],
|
|
23
23
|
taxId: (label: string) => [
|
|
24
24
|
{ max: 20, message: `${label}内容超长` },
|