kts-component-invoice-operate 3.2.34 → 3.2.35
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
|
@@ -4,7 +4,7 @@ import GreyReactBox, { decorator } from 'grey-react-box';
|
|
|
4
4
|
import { chain as chain$1, bignumber, create, all } 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, Table as Table$1, Tree, Modal as Modal$1, Row as Row$1, Col as Col$1 } from 'kts-components-antd-x3';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
|
-
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Row, Col, Button as Button$1, Tooltip as Tooltip$1,
|
|
7
|
+
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Row, Col, Button as Button$1, Tooltip as Tooltip$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 } 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';
|
|
@@ -15633,13 +15633,6 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
15633
15633
|
gutter: [16, 0]
|
|
15634
15634
|
}, React.createElement(Col, {
|
|
15635
15635
|
span: 24
|
|
15636
|
-
}, React.createElement(Form.Item, {
|
|
15637
|
-
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
15638
|
-
colon: false
|
|
15639
|
-
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
15640
|
-
readOnly: isReadOnly('naturalPersonFlag')
|
|
15641
|
-
})))), React.createElement(Col, {
|
|
15642
|
-
span: 24
|
|
15643
15636
|
}, React.createElement(Form.Item, {
|
|
15644
15637
|
label: "\u540D\u79F0",
|
|
15645
15638
|
colon: false
|
|
@@ -15822,27 +15815,6 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
15822
15815
|
})))))))));
|
|
15823
15816
|
});
|
|
15824
15817
|
|
|
15825
|
-
function NaturalPersonFlag(props) {
|
|
15826
|
-
var _React$useState3 = React.useState(props.value || 0),
|
|
15827
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
15828
|
-
value = _React$useState4[0],
|
|
15829
|
-
setValue = _React$useState4[1];
|
|
15830
|
-
|
|
15831
|
-
var onChange = React.useCallback(function (e) {
|
|
15832
|
-
if (props.readOnly) return;
|
|
15833
|
-
setValue(e.target.checked ? 1 : 0);
|
|
15834
|
-
props.onChange && props.onChange(e.target.checked ? 1 : 0);
|
|
15835
|
-
}, [props.onChange, props.readOnly]);
|
|
15836
|
-
React.useEffect(function () {
|
|
15837
|
-
setValue(props.value || 0);
|
|
15838
|
-
}, [props.value]);
|
|
15839
|
-
return React.createElement(Checkbox$1, {
|
|
15840
|
-
disabled: props.readOnly,
|
|
15841
|
-
checked: value === 1,
|
|
15842
|
-
onChange: onChange
|
|
15843
|
-
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
15844
|
-
}
|
|
15845
|
-
|
|
15846
15818
|
function BuyerNameInput$1(props) {
|
|
15847
15819
|
var fieldName = props.fieldName,
|
|
15848
15820
|
form = props.myform;
|
package/dist/index.js
CHANGED
|
@@ -15643,13 +15643,6 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
15643
15643
|
gutter: [16, 0]
|
|
15644
15644
|
}, React__default['default'].createElement(ktsXui.Col, {
|
|
15645
15645
|
span: 24
|
|
15646
|
-
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
15647
|
-
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
15648
|
-
colon: false
|
|
15649
|
-
}, getFieldDecorator('naturalPersonFlag', {})(React__default['default'].createElement(NaturalPersonFlag, {
|
|
15650
|
-
readOnly: isReadOnly('naturalPersonFlag')
|
|
15651
|
-
})))), React__default['default'].createElement(ktsXui.Col, {
|
|
15652
|
-
span: 24
|
|
15653
15646
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
15654
15647
|
label: "\u540D\u79F0",
|
|
15655
15648
|
colon: false
|
|
@@ -15832,27 +15825,6 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
15832
15825
|
})))))))));
|
|
15833
15826
|
});
|
|
15834
15827
|
|
|
15835
|
-
function NaturalPersonFlag(props) {
|
|
15836
|
-
var _React$useState3 = React__default['default'].useState(props.value || 0),
|
|
15837
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
15838
|
-
value = _React$useState4[0],
|
|
15839
|
-
setValue = _React$useState4[1];
|
|
15840
|
-
|
|
15841
|
-
var onChange = React__default['default'].useCallback(function (e) {
|
|
15842
|
-
if (props.readOnly) return;
|
|
15843
|
-
setValue(e.target.checked ? 1 : 0);
|
|
15844
|
-
props.onChange && props.onChange(e.target.checked ? 1 : 0);
|
|
15845
|
-
}, [props.onChange, props.readOnly]);
|
|
15846
|
-
React__default['default'].useEffect(function () {
|
|
15847
|
-
setValue(props.value || 0);
|
|
15848
|
-
}, [props.value]);
|
|
15849
|
-
return React__default['default'].createElement(ktsXui.Checkbox, {
|
|
15850
|
-
disabled: props.readOnly,
|
|
15851
|
-
checked: value === 1,
|
|
15852
|
-
onChange: onChange
|
|
15853
|
-
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
15854
|
-
}
|
|
15855
|
-
|
|
15856
15828
|
function BuyerNameInput$1(props) {
|
|
15857
15829
|
var fieldName = props.fieldName,
|
|
15858
15830
|
form = props.myform;
|
package/package.json
CHANGED
|
@@ -113,14 +113,14 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
113
113
|
<div>
|
|
114
114
|
<Form className="digtal-stakeholder-form" >
|
|
115
115
|
<Row gutter={[16, 0]}>
|
|
116
|
-
<Col span={24} >
|
|
116
|
+
{/* <Col span={24} >
|
|
117
117
|
<Form.Item label='购买方信息' colon={false}>
|
|
118
118
|
{getFieldDecorator('naturalPersonFlag', {
|
|
119
119
|
})(
|
|
120
120
|
<NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
|
|
121
121
|
)}
|
|
122
122
|
</Form.Item>
|
|
123
|
-
</Col>
|
|
123
|
+
</Col> */}
|
|
124
124
|
|
|
125
125
|
<Col span={24} >
|
|
126
126
|
<Form.Item label='名称' colon={false}>
|