kts-component-invoice-operate 3.2.181-1 → 3.2.181-3
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/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.d.ts +1 -0
- package/dist/index.esm.js +38 -14
- package/dist/index.js +37 -13
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +7 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +1 -1
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +2 -1
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +2 -4
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +1 -1
- package/src/Invoice/ui/digtal/Sign/index.tsx +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +28 -17
- package/src/TaxClassificationCodeModal/index.tsx +1 -4
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,
|
|
7
|
+
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Row, Col, Input as Input$1, Checkbox as Checkbox$1, Tooltip as Tooltip$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, Cascader as Cascader$1, Tree as Tree$1, Card, FormReadOnly } 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';
|
|
@@ -1180,6 +1180,10 @@ var BuyerState = /*#__PURE__*/_createClass(function BuyerState() {
|
|
|
1180
1180
|
title: '公司名称',
|
|
1181
1181
|
dataIndex: 'buyerName',
|
|
1182
1182
|
key: 'buyerName'
|
|
1183
|
+
}, {
|
|
1184
|
+
title: '客户代码',
|
|
1185
|
+
dataIndex: 'customerCode',
|
|
1186
|
+
key: 'customerCode'
|
|
1183
1187
|
}, {
|
|
1184
1188
|
title: '纳税人识别号',
|
|
1185
1189
|
dataIndex: 'buyerNo',
|
|
@@ -16939,6 +16943,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16939
16943
|
onBuyNameChange(e.target.value);
|
|
16940
16944
|
}, [dataSource]);
|
|
16941
16945
|
React.useEffect(function () {
|
|
16946
|
+
console.log('aaaaaaaaa1');
|
|
16942
16947
|
visible && onBuyNameChange(props.value);
|
|
16943
16948
|
}, [visible, props.value]);
|
|
16944
16949
|
|
|
@@ -17549,18 +17554,41 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17549
17554
|
className: "digtal-stakeholder-expand-button",
|
|
17550
17555
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17551
17556
|
onClick: onExpand
|
|
17552
|
-
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
17557
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form, {
|
|
17558
|
+
className: "digtal-stakeholder-form"
|
|
17559
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17560
|
+
gutter: [16, 0],
|
|
17561
|
+
className: 'natural-person-flag',
|
|
17553
17562
|
style: {
|
|
17554
|
-
|
|
17555
|
-
}
|
|
17556
|
-
|
|
17563
|
+
paddingRight: 0
|
|
17564
|
+
}
|
|
17565
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17566
|
+
span: 24,
|
|
17567
|
+
style: {
|
|
17568
|
+
display: 'flex',
|
|
17569
|
+
marginBottom: '15px'
|
|
17570
|
+
}
|
|
17557
17571
|
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
17558
17572
|
colon: false
|
|
17559
17573
|
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
|
|
17560
17574
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17561
|
-
})))
|
|
17562
|
-
|
|
17563
|
-
|
|
17575
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
17576
|
+
style: {
|
|
17577
|
+
flex: 1
|
|
17578
|
+
}
|
|
17579
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17580
|
+
label: "\u5BA2\u6237\u4EE3\u7801",
|
|
17581
|
+
colon: false
|
|
17582
|
+
}, getFieldDecorator('buyerCode', {
|
|
17583
|
+
rules: [{
|
|
17584
|
+
required: true,
|
|
17585
|
+
message: '客户代码必填'
|
|
17586
|
+
}]
|
|
17587
|
+
})( /*#__PURE__*/React.createElement(Input$1, {
|
|
17588
|
+
style: {
|
|
17589
|
+
width: '100%'
|
|
17590
|
+
}
|
|
17591
|
+
})))))), /*#__PURE__*/React.createElement(Row, {
|
|
17564
17592
|
gutter: [16, 0]
|
|
17565
17593
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
17566
17594
|
span: 24
|
|
@@ -27423,8 +27451,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
27423
27451
|
}); // 赋码
|
|
27424
27452
|
|
|
27425
27453
|
endowCodeGood.forEach(function (good) {
|
|
27426
|
-
if (!good) return;
|
|
27427
|
-
console.log('aassssssss', defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.taxClassificationCode, good.itemName, values); // values:
|
|
27454
|
+
if (!good) return; // values:
|
|
27428
27455
|
// favouredPolicyMark: 0
|
|
27429
27456
|
// shorthand: "卷烟"
|
|
27430
27457
|
// taxClassificationCode: "1030402040101010131"
|
|
@@ -28123,10 +28150,7 @@ function TaxClassificationModal(props) {
|
|
|
28123
28150
|
// if(!values.taxCategoryCode){
|
|
28124
28151
|
// message.warn('请选择税收分类编码');
|
|
28125
28152
|
// return;
|
|
28126
|
-
// }
|
|
28127
|
-
values.taxCategoryCode = '1030402040101010131';
|
|
28128
|
-
values.productName = '恒大(记忆1949中支)';
|
|
28129
|
-
values.shorthand = '卷烟';
|
|
28153
|
+
// }
|
|
28130
28154
|
onChildrenDrawerClose();
|
|
28131
28155
|
props.onSubmit && props.onSubmit((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.key, _objectSpread2(_objectSpread2({}, props.info), values));
|
|
28132
28156
|
}).catch(function (errorInfo) {
|
package/dist/index.js
CHANGED
|
@@ -1190,6 +1190,10 @@ var BuyerState = /*#__PURE__*/_createClass(function BuyerState() {
|
|
|
1190
1190
|
title: '公司名称',
|
|
1191
1191
|
dataIndex: 'buyerName',
|
|
1192
1192
|
key: 'buyerName'
|
|
1193
|
+
}, {
|
|
1194
|
+
title: '客户代码',
|
|
1195
|
+
dataIndex: 'customerCode',
|
|
1196
|
+
key: 'customerCode'
|
|
1193
1197
|
}, {
|
|
1194
1198
|
title: '纳税人识别号',
|
|
1195
1199
|
dataIndex: 'buyerNo',
|
|
@@ -16949,6 +16953,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16949
16953
|
onBuyNameChange(e.target.value);
|
|
16950
16954
|
}, [dataSource]);
|
|
16951
16955
|
React__default['default'].useEffect(function () {
|
|
16956
|
+
console.log('aaaaaaaaa1');
|
|
16952
16957
|
visible && onBuyNameChange(props.value);
|
|
16953
16958
|
}, [visible, props.value]);
|
|
16954
16959
|
|
|
@@ -17559,18 +17564,41 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17559
17564
|
className: "digtal-stakeholder-expand-button",
|
|
17560
17565
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17561
17566
|
onClick: onExpand
|
|
17562
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(
|
|
17567
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
|
|
17568
|
+
className: "digtal-stakeholder-form"
|
|
17569
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
|
|
17570
|
+
gutter: [16, 0],
|
|
17571
|
+
className: 'natural-person-flag',
|
|
17563
17572
|
style: {
|
|
17564
|
-
|
|
17565
|
-
}
|
|
17566
|
-
|
|
17573
|
+
paddingRight: 0
|
|
17574
|
+
}
|
|
17575
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17576
|
+
span: 24,
|
|
17577
|
+
style: {
|
|
17578
|
+
display: 'flex',
|
|
17579
|
+
marginBottom: '15px'
|
|
17580
|
+
}
|
|
17567
17581
|
}, props.isNaturalPerson === true && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17568
17582
|
colon: false
|
|
17569
17583
|
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React__default['default'].createElement(NaturalPersonFlag, {
|
|
17570
17584
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17571
|
-
})))
|
|
17572
|
-
|
|
17573
|
-
|
|
17585
|
+
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17586
|
+
style: {
|
|
17587
|
+
flex: 1
|
|
17588
|
+
}
|
|
17589
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17590
|
+
label: "\u5BA2\u6237\u4EE3\u7801",
|
|
17591
|
+
colon: false
|
|
17592
|
+
}, getFieldDecorator('buyerCode', {
|
|
17593
|
+
rules: [{
|
|
17594
|
+
required: true,
|
|
17595
|
+
message: '客户代码必填'
|
|
17596
|
+
}]
|
|
17597
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, {
|
|
17598
|
+
style: {
|
|
17599
|
+
width: '100%'
|
|
17600
|
+
}
|
|
17601
|
+
})))))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
|
|
17574
17602
|
gutter: [16, 0]
|
|
17575
17603
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17576
17604
|
span: 24
|
|
@@ -27433,8 +27461,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
27433
27461
|
}); // 赋码
|
|
27434
27462
|
|
|
27435
27463
|
endowCodeGood.forEach(function (good) {
|
|
27436
|
-
if (!good) return;
|
|
27437
|
-
console.log('aassssssss', defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.taxClassificationCode, good.itemName, values); // values:
|
|
27464
|
+
if (!good) return; // values:
|
|
27438
27465
|
// favouredPolicyMark: 0
|
|
27439
27466
|
// shorthand: "卷烟"
|
|
27440
27467
|
// taxClassificationCode: "1030402040101010131"
|
|
@@ -28133,10 +28160,7 @@ function TaxClassificationModal(props) {
|
|
|
28133
28160
|
// if(!values.taxCategoryCode){
|
|
28134
28161
|
// message.warn('请选择税收分类编码');
|
|
28135
28162
|
// return;
|
|
28136
|
-
// }
|
|
28137
|
-
values.taxCategoryCode = '1030402040101010131';
|
|
28138
|
-
values.productName = '恒大(记忆1949中支)';
|
|
28139
|
-
values.shorthand = '卷烟';
|
|
28163
|
+
// }
|
|
28140
28164
|
onChildrenDrawerClose();
|
|
28141
28165
|
props.onSubmit && props.onSubmit((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.key, _objectSpread2(_objectSpread2({}, props.info), values));
|
|
28142
28166
|
}).catch(function (errorInfo) {
|
package/package.json
CHANGED
|
@@ -28,6 +28,8 @@ export interface IBuyerInfo {
|
|
|
28
28
|
|
|
29
29
|
/** 购买方开户行及账号 */
|
|
30
30
|
buyerBank?: string;
|
|
31
|
+
|
|
32
|
+
customerCode?: string;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
/** 自动填充 */
|
|
@@ -46,6 +48,11 @@ export default class BuyerState {
|
|
|
46
48
|
dataIndex: 'buyerName',
|
|
47
49
|
key: 'buyerName',
|
|
48
50
|
},
|
|
51
|
+
{
|
|
52
|
+
title: '客户代码',
|
|
53
|
+
dataIndex: 'customerCode',
|
|
54
|
+
key: 'customerCode',
|
|
55
|
+
},
|
|
49
56
|
{
|
|
50
57
|
title: '纳税人识别号',
|
|
51
58
|
dataIndex: 'buyerNo',
|
|
@@ -87,6 +87,7 @@ export default (props: IBuyerNameInputProps) => {
|
|
|
87
87
|
}, [dataSource])
|
|
88
88
|
|
|
89
89
|
React.useEffect(() => {
|
|
90
|
+
console.log('aaaaaaaaa1');
|
|
90
91
|
visible && onBuyNameChange(props.value)
|
|
91
92
|
}, [visible, props.value])
|
|
92
93
|
|
|
@@ -134,7 +135,7 @@ function useDataSource() {
|
|
|
134
135
|
const autoContainer = controller.useMemo(s => s.buyerState.autoContainer, []);
|
|
135
136
|
|
|
136
137
|
const onBuyNameChange = React.useCallback(async (e?: string | undefined) => {
|
|
137
|
-
if (!autoContainer) return;
|
|
138
|
+
if (!autoContainer) return;
|
|
138
139
|
setLoading(true);
|
|
139
140
|
setDataSource(await autoContainer.onBuyNameChange(e));
|
|
140
141
|
setLoading(false);
|
|
@@ -476,8 +476,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
476
476
|
const addProductionByTax = async (params: any) => {
|
|
477
477
|
if (controller.addProductionByTax) {
|
|
478
478
|
controller.addProductionByTax(params)
|
|
479
|
-
};
|
|
480
|
-
// const goodsTaxRateList = await controller.getGoodsTaxRateList(good.taxClassificationCode);
|
|
479
|
+
};
|
|
481
480
|
}
|
|
482
481
|
// 确定
|
|
483
482
|
const onSubmit = React.useCallback(values => {
|
|
@@ -487,8 +486,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
487
486
|
|
|
488
487
|
// 赋码
|
|
489
488
|
endowCodeGood.forEach(good => {
|
|
490
|
-
if (!good) return;
|
|
491
|
-
console.log('aassssssss', defaultValue?.taxClassificationCode,good.itemName, values);
|
|
489
|
+
if (!good) return;
|
|
492
490
|
// values:
|
|
493
491
|
// favouredPolicyMark: 0
|
|
494
492
|
// shorthand: "卷烟"
|
|
@@ -60,7 +60,7 @@ const DrawerBody = () => {
|
|
|
60
60
|
onRow={(record) => {
|
|
61
61
|
return {
|
|
62
62
|
onClick: async () => {
|
|
63
|
-
const re = await controller.state.buyerState.onRowClick(record);
|
|
63
|
+
const re = await controller.state.buyerState.onRowClick(record);
|
|
64
64
|
if (re) {
|
|
65
65
|
controller.formList.get('buyer')?.setFieldsValue(re);
|
|
66
66
|
controller.pipeline(async (s) => {
|
|
@@ -13,7 +13,8 @@ export interface IBuyerProps {
|
|
|
13
13
|
defaultRemark?: string;
|
|
14
14
|
|
|
15
15
|
/** 默认开票人 */
|
|
16
|
-
defaultIssuer?: string;
|
|
16
|
+
defaultIssuer?: string;
|
|
17
|
+
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export default decorator<IBuyerProps, IBuyerProps & FormComponentProps>(Form.create())((props) => {
|
|
@@ -79,7 +80,6 @@ export default decorator<IBuyerProps, IBuyerProps & FormComponentProps>(Form.cre
|
|
|
79
80
|
initialValue: props.defaultRemark
|
|
80
81
|
})(<Input.TextArea readOnly={isReadOnly('remarks')} autoSize placeholder='请输入' />)}
|
|
81
82
|
</Form.Item>
|
|
82
|
-
|
|
83
83
|
<Form.Item label="开票人" >
|
|
84
84
|
{getFieldDecorator('drawer', {
|
|
85
85
|
initialValue: props.defaultIssuer
|
|
@@ -146,7 +146,10 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
146
146
|
}
|
|
147
147
|
</div>
|
|
148
148
|
<div>
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
<Form className="digtal-stakeholder-form" >
|
|
151
|
+
<Row gutter={[16, 0]} className='natural-person-flag' style={{paddingRight: 0}} >
|
|
152
|
+
<Col span={24} style={{ display: 'flex', marginBottom: '15px' }} >
|
|
150
153
|
{
|
|
151
154
|
props.isNaturalPerson === true &&
|
|
152
155
|
<Form.Item colon={false}>
|
|
@@ -156,8 +159,17 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
156
159
|
)}
|
|
157
160
|
</Form.Item>
|
|
158
161
|
}
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
<div style={{flex: 1}}>
|
|
163
|
+
<Form.Item label='客户代码' colon={false}>
|
|
164
|
+
{getFieldDecorator('buyerCode', {
|
|
165
|
+
rules: [{ required: true, message: '客户代码必填' }],
|
|
166
|
+
})(
|
|
167
|
+
<Input style={{width: '100%'}} />
|
|
168
|
+
)}
|
|
169
|
+
</Form.Item>
|
|
170
|
+
</div>
|
|
171
|
+
</Col>
|
|
172
|
+
</Row>
|
|
161
173
|
<Row gutter={[16, 0]}>
|
|
162
174
|
<Col span={24} >
|
|
163
175
|
<Form.Item label='名称' colon={false}>
|
|
@@ -200,7 +212,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
200
212
|
</Form.Item>
|
|
201
213
|
</Col>
|
|
202
214
|
|
|
203
|
-
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
215
|
+
<Col span={10 + riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
204
216
|
<Form.Item label='购买方地址' colon={false}>
|
|
205
217
|
{getFieldDecorator('buyerAddress', {
|
|
206
218
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -208,7 +220,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
208
220
|
</Form.Item>
|
|
209
221
|
</Col>
|
|
210
222
|
|
|
211
|
-
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
223
|
+
<Col span={10 + riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
212
224
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
213
225
|
{getFieldDecorator('buyerPhone', {
|
|
214
226
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
@@ -232,10 +244,10 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
232
244
|
</Col>
|
|
233
245
|
{(props.leqi) &&
|
|
234
246
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
235
|
-
<Form.Item
|
|
247
|
+
<Form.Item colon={false}>
|
|
236
248
|
{getFieldDecorator('buyerBankAccountFlag', {
|
|
237
249
|
valuePropName: 'checked',
|
|
238
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')}
|
|
250
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
239
251
|
</Form.Item>
|
|
240
252
|
</Col>
|
|
241
253
|
}
|
|
@@ -281,7 +293,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
281
293
|
</Form.Item>
|
|
282
294
|
</Col>
|
|
283
295
|
|
|
284
|
-
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
296
|
+
<Col span={10 + riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
285
297
|
<Form.Item label='销售方地址' colon={false}>
|
|
286
298
|
{getFieldDecorator('sellerAddress', {
|
|
287
299
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -289,7 +301,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
289
301
|
</Form.Item>
|
|
290
302
|
</Col>
|
|
291
303
|
|
|
292
|
-
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
304
|
+
<Col span={10 + riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
293
305
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
294
306
|
{getFieldDecorator('sellerPhone', {
|
|
295
307
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
@@ -311,12 +323,12 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
311
323
|
})(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
312
324
|
</Form.Item>
|
|
313
325
|
</Col>
|
|
314
|
-
{(props.leqi
|
|
326
|
+
{(props.leqi) &&
|
|
315
327
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
316
328
|
<Form.Item colon={false}>
|
|
317
329
|
{getFieldDecorator('sellerBankAccountFlag', {
|
|
318
|
-
|
|
319
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
330
|
+
valuePropName: 'checked',
|
|
331
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
320
332
|
</Form.Item>
|
|
321
333
|
</Col>
|
|
322
334
|
}
|
|
@@ -353,7 +365,7 @@ function NaturalPersonFlag(props: {
|
|
|
353
365
|
onChange={onChange}
|
|
354
366
|
>
|
|
355
367
|
是否开票给自然人
|
|
356
|
-
</Checkbox>
|
|
368
|
+
</Checkbox>
|
|
357
369
|
)
|
|
358
370
|
}
|
|
359
371
|
|
|
@@ -371,14 +383,13 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
371
383
|
|
|
372
384
|
const onChangeAutoComplete = React.useCallback(value => {
|
|
373
385
|
const record = options.filter(e => e[fieldName] === value)[0] as any;
|
|
374
|
-
if (!record || !form) return;
|
|
375
|
-
|
|
386
|
+
if (!record || !form) return;
|
|
376
387
|
form.setFieldsValue(record);
|
|
377
388
|
setOptions([])
|
|
378
389
|
}, [options, fieldName, form])
|
|
379
390
|
|
|
380
391
|
const onSearch = React.useCallback(async (searchText: string) => {
|
|
381
|
-
await Discontinue.start();
|
|
392
|
+
await Discontinue.start();
|
|
382
393
|
try {
|
|
383
394
|
if (fieldName === 'buyerName') {
|
|
384
395
|
if (autoComplete.onBuyerNameSearch) {
|
|
@@ -389,7 +400,7 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
389
400
|
setOptions(await autoComplete.onBuyerTaxIdSearch(searchText));
|
|
390
401
|
}
|
|
391
402
|
}
|
|
392
|
-
|
|
403
|
+
|
|
393
404
|
} catch (error) {
|
|
394
405
|
setOptions([]);
|
|
395
406
|
throw error;
|
|
@@ -72,10 +72,7 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
|
|
|
72
72
|
// if(!values.taxCategoryCode){
|
|
73
73
|
// message.warn('请选择税收分类编码');
|
|
74
74
|
// return;
|
|
75
|
-
// }
|
|
76
|
-
values.taxCategoryCode = '1030402040101010131';
|
|
77
|
-
values.productName = '恒大(记忆1949中支)';
|
|
78
|
-
values.shorthand = '卷烟';
|
|
75
|
+
// }
|
|
79
76
|
onChildrenDrawerClose();
|
|
80
77
|
props.onSubmit && props.onSubmit(props.info?.key, {...props.info,...values});
|
|
81
78
|
}).catch(errorInfo => {
|