kts-component-invoice-operate 3.2.163 → 3.2.165
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/TaxClassificationCodeModal/index.d.ts +3 -0
- package/dist/index.esm.js +57 -4
- package/dist/index.js +56 -3
- package/package.json +1 -1
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +1 -1
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +13 -10
- package/src/TaxClassificationCodeModal/index.less +5 -0
- package/src/TaxClassificationCodeModal/index.tsx +54 -21
- package/yarn.e.lock +0 -14331
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
2
3
|
export interface TaxClassificationProps {
|
|
3
4
|
/** 是否开启 */
|
|
4
5
|
open?: boolean;
|
|
@@ -12,5 +13,7 @@ export interface TaxClassificationProps {
|
|
|
12
13
|
onLoad: (value: any) => Promise<any[]>;
|
|
13
14
|
/** 点击了搜索 */
|
|
14
15
|
onSearch?: (value?: any) => void;
|
|
16
|
+
/** 被选中的信息 */
|
|
17
|
+
info?: any;
|
|
15
18
|
}
|
|
16
19
|
export default function TaxClassificationModal(props: TaxClassificationProps): JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import GreyReactBox, { decorator } from 'grey-react-box';
|
|
|
4
4
|
import { chain as chain$1, bignumber, format as format$1, create, all, equal } from 'mathjs';
|
|
5
5
|
import { message, Form, Input, Icon as Icon$1, Tag as Tag$1, Select, Button, Tooltip, Switch as Switch$1, Typography, Menu, Dropdown, AutoComplete as AutoComplete$2, Spin, Checkbox, Drawer, Descriptions, Empty, Divider, Popover as Popover$1, Table as Table$1, Tree, Modal as Modal$1, Row as Row$2, Col as Col$2 } from 'kts-components-antd-x3';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
|
-
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Row, Col, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Input as Input$1, Select as Select$1, Spin as Spin$1, Menu as Menu$1, Form as Form$1, Drawer as Drawer$1, Space, Radio, InputNumber, Popconfirm, Modal, Tree as Tree$1 } from 'kts-xui';
|
|
7
|
+
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Row, Col, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Input as Input$1, Select as Select$1, Spin as Spin$1, Menu as Menu$1, Form as Form$1, Drawer as Drawer$1, Space, Radio, InputNumber, Popconfirm, Modal, Tree as Tree$1, Card } from 'kts-xui';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
@@ -17873,7 +17873,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17873
17873
|
colon: false,
|
|
17874
17874
|
className: 'telephone'
|
|
17875
17875
|
}, getFieldDecorator('sellerPhone', {
|
|
17876
|
-
rules: getRules('sellerPhone', RULES$1.
|
|
17876
|
+
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17877
17877
|
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17878
17878
|
readOnly: isReadOnly('sellerPhone'),
|
|
17879
17879
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
@@ -25649,7 +25649,12 @@ var Digtal = function Digtal(props) {
|
|
|
25649
25649
|
), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
25650
25650
|
};
|
|
25651
25651
|
|
|
25652
|
+
var css_248z$t = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n";
|
|
25653
|
+
styleInject(css_248z$t);
|
|
25654
|
+
|
|
25652
25655
|
function TaxClassificationModal(props) {
|
|
25656
|
+
var _props$info;
|
|
25657
|
+
|
|
25653
25658
|
var _Form$useForm = Form$1.useForm(),
|
|
25654
25659
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
25655
25660
|
form = _Form$useForm2[0];
|
|
@@ -25687,13 +25692,26 @@ function TaxClassificationModal(props) {
|
|
|
25687
25692
|
}, 500);
|
|
25688
25693
|
}
|
|
25689
25694
|
}, [form, props.open]);
|
|
25695
|
+
var layout = {
|
|
25696
|
+
labelCol: {
|
|
25697
|
+
span: 8
|
|
25698
|
+
},
|
|
25699
|
+
wrapperCol: {
|
|
25700
|
+
span: 16
|
|
25701
|
+
}
|
|
25702
|
+
};
|
|
25690
25703
|
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
25691
25704
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25692
25705
|
placement: "right",
|
|
25693
25706
|
open: props.open,
|
|
25694
|
-
width:
|
|
25707
|
+
width: 763,
|
|
25695
25708
|
onClose: props.onCancel
|
|
25709
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25710
|
+
className: "taxdetailsbox"
|
|
25696
25711
|
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
25712
|
+
style: {
|
|
25713
|
+
width: 340
|
|
25714
|
+
},
|
|
25697
25715
|
form: form
|
|
25698
25716
|
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25699
25717
|
name: 'search'
|
|
@@ -25709,7 +25727,42 @@ function TaxClassificationModal(props) {
|
|
|
25709
25727
|
switcherIcon: /*#__PURE__*/React.createElement(Icon$1, {
|
|
25710
25728
|
type: "down"
|
|
25711
25729
|
})
|
|
25712
|
-
})))
|
|
25730
|
+
}))), /*#__PURE__*/React.createElement(Card, {
|
|
25731
|
+
style: {
|
|
25732
|
+
width: 418
|
|
25733
|
+
}
|
|
25734
|
+
}, /*#__PURE__*/React.createElement(Form$1, _objectSpread2(_objectSpread2({}, layout), {}, {
|
|
25735
|
+
form: form,
|
|
25736
|
+
initialValues: props.info
|
|
25737
|
+
}), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25738
|
+
name: "taxCategoryCode",
|
|
25739
|
+
label: "\u7F16\u7801"
|
|
25740
|
+
}, /*#__PURE__*/React.createElement(Input$1, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25741
|
+
name: "productName",
|
|
25742
|
+
label: "\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",
|
|
25743
|
+
rules: [{
|
|
25744
|
+
type: 'email'
|
|
25745
|
+
}]
|
|
25746
|
+
}, /*#__PURE__*/React.createElement(Input$1, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25747
|
+
name: "shorthand",
|
|
25748
|
+
label: "\u7B80\u79F0",
|
|
25749
|
+
rules: [{
|
|
25750
|
+
type: 'number',
|
|
25751
|
+
min: 0,
|
|
25752
|
+
max: 99
|
|
25753
|
+
}]
|
|
25754
|
+
}, /*#__PURE__*/React.createElement(Input$1, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25755
|
+
name: "desc",
|
|
25756
|
+
label: "\u8BF4\u660E"
|
|
25757
|
+
}, /*#__PURE__*/React.createElement(Input$1.TextArea, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25758
|
+
wrapperCol: _objectSpread2(_objectSpread2({}, layout.wrapperCol), {}, {
|
|
25759
|
+
offset: 8
|
|
25760
|
+
})
|
|
25761
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
25762
|
+
disabled: !((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.id),
|
|
25763
|
+
type: "primary",
|
|
25764
|
+
onClick: props.onCancel
|
|
25765
|
+
}, "\u786E\u5B9A"))))));
|
|
25713
25766
|
}
|
|
25714
25767
|
|
|
25715
25768
|
export { Invoice, InvoiceController, InvoiceTypeModal, TaxClassificationModal };
|
package/dist/index.js
CHANGED
|
@@ -17883,7 +17883,7 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
17883
17883
|
colon: false,
|
|
17884
17884
|
className: 'telephone'
|
|
17885
17885
|
}, getFieldDecorator('sellerPhone', {
|
|
17886
|
-
rules: getRules('sellerPhone', RULES$1.
|
|
17886
|
+
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17887
17887
|
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17888
17888
|
readOnly: isReadOnly('sellerPhone'),
|
|
17889
17889
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
@@ -25659,7 +25659,12 @@ var Digtal = function Digtal(props) {
|
|
|
25659
25659
|
), /*#__PURE__*/React__default['default'].createElement(ImportGoodsDrawer, null), /*#__PURE__*/React__default['default'].createElement(EndowCodeDrawer, null));
|
|
25660
25660
|
};
|
|
25661
25661
|
|
|
25662
|
+
var css_248z$t = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n";
|
|
25663
|
+
styleInject(css_248z$t);
|
|
25664
|
+
|
|
25662
25665
|
function TaxClassificationModal(props) {
|
|
25666
|
+
var _props$info;
|
|
25667
|
+
|
|
25663
25668
|
var _Form$useForm = ktsXui.Form.useForm(),
|
|
25664
25669
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
25665
25670
|
form = _Form$useForm2[0];
|
|
@@ -25697,13 +25702,26 @@ function TaxClassificationModal(props) {
|
|
|
25697
25702
|
}, 500);
|
|
25698
25703
|
}
|
|
25699
25704
|
}, [form, props.open]);
|
|
25705
|
+
var layout = {
|
|
25706
|
+
labelCol: {
|
|
25707
|
+
span: 8
|
|
25708
|
+
},
|
|
25709
|
+
wrapperCol: {
|
|
25710
|
+
span: 16
|
|
25711
|
+
}
|
|
25712
|
+
};
|
|
25700
25713
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Drawer, {
|
|
25701
25714
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25702
25715
|
placement: "right",
|
|
25703
25716
|
open: props.open,
|
|
25704
|
-
width:
|
|
25717
|
+
width: 763,
|
|
25705
25718
|
onClose: props.onCancel
|
|
25719
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25720
|
+
className: "taxdetailsbox"
|
|
25706
25721
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Form, {
|
|
25722
|
+
style: {
|
|
25723
|
+
width: 340
|
|
25724
|
+
},
|
|
25707
25725
|
form: form
|
|
25708
25726
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25709
25727
|
name: 'search'
|
|
@@ -25719,7 +25737,42 @@ function TaxClassificationModal(props) {
|
|
|
25719
25737
|
switcherIcon: /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Icon, {
|
|
25720
25738
|
type: "down"
|
|
25721
25739
|
})
|
|
25722
|
-
})))
|
|
25740
|
+
}))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Card, {
|
|
25741
|
+
style: {
|
|
25742
|
+
width: 418
|
|
25743
|
+
}
|
|
25744
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Form, _objectSpread2(_objectSpread2({}, layout), {}, {
|
|
25745
|
+
form: form,
|
|
25746
|
+
initialValues: props.info
|
|
25747
|
+
}), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25748
|
+
name: "taxCategoryCode",
|
|
25749
|
+
label: "\u7F16\u7801"
|
|
25750
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25751
|
+
name: "productName",
|
|
25752
|
+
label: "\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",
|
|
25753
|
+
rules: [{
|
|
25754
|
+
type: 'email'
|
|
25755
|
+
}]
|
|
25756
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25757
|
+
name: "shorthand",
|
|
25758
|
+
label: "\u7B80\u79F0",
|
|
25759
|
+
rules: [{
|
|
25760
|
+
type: 'number',
|
|
25761
|
+
min: 0,
|
|
25762
|
+
max: 99
|
|
25763
|
+
}]
|
|
25764
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25765
|
+
name: "desc",
|
|
25766
|
+
label: "\u8BF4\u660E"
|
|
25767
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input.TextArea, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
|
|
25768
|
+
wrapperCol: _objectSpread2(_objectSpread2({}, layout.wrapperCol), {}, {
|
|
25769
|
+
offset: 8
|
|
25770
|
+
})
|
|
25771
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
25772
|
+
disabled: !((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.id),
|
|
25773
|
+
type: "primary",
|
|
25774
|
+
onClick: props.onCancel
|
|
25775
|
+
}, "\u786E\u5B9A"))))));
|
|
25723
25776
|
}
|
|
25724
25777
|
|
|
25725
25778
|
exports.Invoice = Invoice;
|
package/package.json
CHANGED
|
@@ -193,7 +193,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
193
193
|
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
194
194
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
195
195
|
{getFieldDecorator('sellerPhone', {
|
|
196
|
-
rules: getRules('sellerPhone', RULES.
|
|
196
|
+
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
197
197
|
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
198
198
|
</Form.Item>
|
|
199
199
|
</Col>
|
|
@@ -8,7 +8,9 @@ export default () => {
|
|
|
8
8
|
|
|
9
9
|
const [list, setList] = React.useState<any>([]);
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const [info, setInfo] = React.useState({});
|
|
12
|
+
|
|
13
|
+
const updateTreeData = (list: any, key: React.Key, children: any): any => {
|
|
12
14
|
const demo = list.map((node: any) => {
|
|
13
15
|
if (node.key === key) {
|
|
14
16
|
return {
|
|
@@ -27,7 +29,7 @@ export default () => {
|
|
|
27
29
|
setList(demo);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
const onSearch = React.useCallback(async (value: any = null) => {
|
|
32
|
+
const onSearch = React.useCallback(async (value: any = null) => {
|
|
31
33
|
const arr = [
|
|
32
34
|
{
|
|
33
35
|
"id": "3a4eae5278cd428f975d4da278fd18eb",
|
|
@@ -51,7 +53,7 @@ export default () => {
|
|
|
51
53
|
"updateTime": "Tue Jun 20 14:56:46 CST 2023"
|
|
52
54
|
},
|
|
53
55
|
{
|
|
54
|
-
"id": "
|
|
56
|
+
"id": "3a4eae5278cd428f975d4da278fd18db",
|
|
55
57
|
"taxCategoryCode": "410000000000000000",
|
|
56
58
|
"productName": "手机服务",
|
|
57
59
|
"shorthand": "手机服务",
|
|
@@ -88,7 +90,7 @@ export default () => {
|
|
|
88
90
|
setList(list);
|
|
89
91
|
}, []);
|
|
90
92
|
|
|
91
|
-
const onLoad = React.useCallback(async (value?: any) => {
|
|
93
|
+
const onLoad = React.useCallback(async (value?: any) => {
|
|
92
94
|
const arr = [
|
|
93
95
|
{
|
|
94
96
|
"id": "3a4eae5278cd428f975d4da278fd18eb",
|
|
@@ -112,8 +114,8 @@ export default () => {
|
|
|
112
114
|
"updateTime": "Tue Jun 20 14:56:46 CST 2023"
|
|
113
115
|
},
|
|
114
116
|
{
|
|
115
|
-
"id": "
|
|
116
|
-
"taxCategoryCode": "
|
|
117
|
+
"id": "3a4eae5278cd428f975d4da278fd18db",
|
|
118
|
+
"taxCategoryCode": "000002000000000001",
|
|
117
119
|
"productName": "子任务2",
|
|
118
120
|
"shorthand": "手机服务",
|
|
119
121
|
"specification": null,
|
|
@@ -140,8 +142,7 @@ export default () => {
|
|
|
140
142
|
key: item.taxCategoryCode,
|
|
141
143
|
selectable: false
|
|
142
144
|
}
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
+
});
|
|
145
146
|
if(value?.key) {
|
|
146
147
|
setList((origin: any)=> {
|
|
147
148
|
updateTreeData(origin, value.key, data)
|
|
@@ -157,8 +158,9 @@ export default () => {
|
|
|
157
158
|
setOpen(true);
|
|
158
159
|
}, []);
|
|
159
160
|
|
|
160
|
-
const onSelect = React.useCallback((key: any, info: any) => {
|
|
161
|
-
|
|
161
|
+
const onSelect = React.useCallback((key: any, info: any) => {
|
|
162
|
+
setInfo(info.node);
|
|
163
|
+
// setOpen(false);
|
|
162
164
|
}, []);
|
|
163
165
|
|
|
164
166
|
return (
|
|
@@ -167,6 +169,7 @@ export default () => {
|
|
|
167
169
|
<TaxClassificationModal
|
|
168
170
|
list={list}
|
|
169
171
|
open={open}
|
|
172
|
+
info={info}
|
|
170
173
|
onSelect={onSelect}
|
|
171
174
|
onCancel={()=> {setOpen(false)}}
|
|
172
175
|
onSearch={onSearch}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Drawer, Input, Tree, Form } from "kts-xui";
|
|
3
|
+
import { Drawer, Input, Tree, Form, Button, Card } from "kts-xui";
|
|
4
4
|
import { Icon } from "kts-components-antd-x3";
|
|
5
5
|
import {IFormValues} from "@/InvoiceTypeModal";
|
|
6
|
-
|
|
6
|
+
import './index.less';
|
|
7
7
|
export interface TaxClassificationProps {
|
|
8
8
|
|
|
9
9
|
/** 是否开启 */
|
|
@@ -23,6 +23,9 @@ export interface TaxClassificationProps {
|
|
|
23
23
|
|
|
24
24
|
/** 点击了搜索 */
|
|
25
25
|
onSearch?: (value?: any) => void;
|
|
26
|
+
|
|
27
|
+
/** 被选中的信息 */
|
|
28
|
+
info?: any;
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export default function TaxClassificationModal(props: TaxClassificationProps) {
|
|
@@ -43,32 +46,62 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
|
|
|
43
46
|
}
|
|
44
47
|
}, [form, props.open])
|
|
45
48
|
|
|
49
|
+
const layout = {
|
|
50
|
+
labelCol: { span: 8 },
|
|
51
|
+
wrapperCol: { span: 16 },
|
|
52
|
+
};
|
|
46
53
|
return (
|
|
47
54
|
<Drawer
|
|
48
55
|
title="商品和服务税收分类编码"
|
|
49
56
|
placement="right"
|
|
50
57
|
open={props.open}
|
|
51
|
-
width={
|
|
58
|
+
width={763}
|
|
52
59
|
onClose={props.onCancel}
|
|
53
60
|
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
<div className="taxdetailsbox">
|
|
62
|
+
<Form
|
|
63
|
+
style={{width: 340}}
|
|
64
|
+
form={form}
|
|
65
|
+
>
|
|
66
|
+
<Form.Item name='search'>
|
|
67
|
+
<Input
|
|
68
|
+
placeholder="请输入税收分类编码、税收分类名称进行检索"
|
|
69
|
+
onChange={searchTax}
|
|
70
|
+
/>
|
|
71
|
+
</Form.Item>
|
|
72
|
+
<Form.Item name='tree'>
|
|
73
|
+
<Tree
|
|
74
|
+
onSelect={props.onSelect}
|
|
75
|
+
loadData={props.onLoad}
|
|
76
|
+
treeData={props.list}
|
|
77
|
+
switcherIcon={<Icon type="down" />}
|
|
78
|
+
/>
|
|
79
|
+
</Form.Item>
|
|
80
|
+
</Form>
|
|
81
|
+
<Card
|
|
82
|
+
style={{ width: 418 }}
|
|
83
|
+
>
|
|
84
|
+
<Form {...layout} form={form} initialValues={props.info}>
|
|
85
|
+
<Form.Item name={"taxCategoryCode"} label="编码">
|
|
86
|
+
<Input />
|
|
87
|
+
</Form.Item>
|
|
88
|
+
<Form.Item name={"productName"} label="货物和劳务名称" rules={[{ type: 'email' }]}>
|
|
89
|
+
<Input />
|
|
90
|
+
</Form.Item>
|
|
91
|
+
<Form.Item name={"shorthand"} label="简称" rules={[{ type: 'number', min: 0, max: 99 }]}>
|
|
92
|
+
<Input />
|
|
93
|
+
</Form.Item>
|
|
94
|
+
<Form.Item name={"desc"} label="说明">
|
|
95
|
+
<Input.TextArea />
|
|
96
|
+
</Form.Item>
|
|
97
|
+
<Form.Item wrapperCol={{ ...layout.wrapperCol, offset: 8 }}>
|
|
98
|
+
<Button disabled={ !props.info?.id} type="primary" onClick={props.onCancel}>
|
|
99
|
+
确定
|
|
100
|
+
</Button>
|
|
101
|
+
</Form.Item>
|
|
102
|
+
</Form>
|
|
103
|
+
</Card>
|
|
104
|
+
</div>
|
|
72
105
|
</Drawer>
|
|
73
106
|
)
|
|
74
107
|
}
|