kts-component-invoice-operate 3.2.140 → 3.2.142
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/index.d.ts +1 -1
- package/dist/Invoice/ui/digtal/RealEstateInfo/index.d.ts +1 -2
- package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +2 -0
- package/dist/index.esm.js +6 -2
- package/dist/index.js +6 -2
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +1 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +9 -1
package/dist/Invoice/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
|
51
51
|
/** 落款(数电) */
|
|
52
52
|
static readonly SignDigtal: React.FunctionComponent<import("./ui/digtal/Sign").IBuyerProps>;
|
|
53
53
|
/** 特殊信息-不动产经营租赁服务(数电) */
|
|
54
|
-
static readonly RealEstateInfo: React.FunctionComponent<
|
|
54
|
+
static readonly RealEstateInfo: React.FunctionComponent<any>;
|
|
55
55
|
/** 货物列表(数电) */
|
|
56
56
|
static readonly GoodsListDigtal: typeof GoodsListDigtal;
|
|
57
57
|
/** 货物索引生成器 */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
3
2
|
import './index.less';
|
|
4
3
|
/** 特殊信息-不动产经营租赁服务 */
|
|
5
|
-
declare const _default: React.FunctionComponent<
|
|
4
|
+
declare const _default: React.FunctionComponent<any>;
|
|
6
5
|
export default _default;
|
package/dist/index.esm.js
CHANGED
|
@@ -16913,7 +16913,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16913
16913
|
_props$isVatNormal = props.isVatNormal,
|
|
16914
16914
|
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
16915
16915
|
|
|
16916
|
-
var _React$useState = React.useState(true),
|
|
16916
|
+
var _React$useState = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
16917
16917
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16918
16918
|
isExpand = _React$useState2[0],
|
|
16919
16919
|
setExpand = _React$useState2[1];
|
|
@@ -16946,7 +16946,11 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16946
16946
|
if (isReadOnly(field)) return [];
|
|
16947
16947
|
return rulesMap[field] || defaultRules;
|
|
16948
16948
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16949
|
-
controller.useForm('stakeholder', form);
|
|
16949
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
16950
|
+
|
|
16951
|
+
React.useEffect(function () {
|
|
16952
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
16953
|
+
}, [props.isExpand]);
|
|
16950
16954
|
return /*#__PURE__*/React.createElement("div", {
|
|
16951
16955
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16952
16956
|
readOnly: readOnly
|
package/dist/index.js
CHANGED
|
@@ -16923,7 +16923,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
16923
16923
|
_props$isVatNormal = props.isVatNormal,
|
|
16924
16924
|
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
16925
16925
|
|
|
16926
|
-
var _React$useState = React__default['default'].useState(true),
|
|
16926
|
+
var _React$useState = React__default['default'].useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
16927
16927
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16928
16928
|
isExpand = _React$useState2[0],
|
|
16929
16929
|
setExpand = _React$useState2[1];
|
|
@@ -16956,7 +16956,11 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
16956
16956
|
if (isReadOnly(field)) return [];
|
|
16957
16957
|
return rulesMap[field] || defaultRules;
|
|
16958
16958
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16959
|
-
controller.useForm('stakeholder', form);
|
|
16959
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
16960
|
+
|
|
16961
|
+
React__default['default'].useEffect(function () {
|
|
16962
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
16963
|
+
}, [props.isExpand]);
|
|
16960
16964
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16961
16965
|
className: classNames__default['default']("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16962
16966
|
readOnly: readOnly
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import { Cascader, Col, DatePicker, Input, Row, Select } from "kts-components-an
|
|
|
9
9
|
const { RangePicker } = DatePicker;
|
|
10
10
|
|
|
11
11
|
/** 特殊信息-不动产经营租赁服务 */
|
|
12
|
-
export default decorator<FormComponentProps>(Form.create())(props => {
|
|
12
|
+
export default decorator<any, FormComponentProps>(Form.create())(props => {
|
|
13
13
|
|
|
14
14
|
const { form } = props;
|
|
15
15
|
|
|
@@ -65,6 +65,9 @@ export interface IStakeholder {
|
|
|
65
65
|
|
|
66
66
|
/** 是否可以选择自然人 */
|
|
67
67
|
isNaturalPerson?: boolean;
|
|
68
|
+
|
|
69
|
+
/** 是否展开 */
|
|
70
|
+
isExpand?: boolean;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
/** 干系人 */
|
|
@@ -72,7 +75,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
72
75
|
|
|
73
76
|
const { form, isShowImportButton, onClickImportButton, isVatNormal = false } = props;
|
|
74
77
|
|
|
75
|
-
const [isExpand, setExpand] = React.useState(true);
|
|
78
|
+
const [isExpand, setExpand] = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
76
79
|
|
|
77
80
|
const { getFieldDecorator } = form;
|
|
78
81
|
|
|
@@ -101,6 +104,11 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
101
104
|
|
|
102
105
|
controller.useForm('stakeholder', form);
|
|
103
106
|
|
|
107
|
+
// props.isExpand 变化的时候更新
|
|
108
|
+
React.useEffect(() => {
|
|
109
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
110
|
+
}, [props.isExpand])
|
|
111
|
+
|
|
104
112
|
return (
|
|
105
113
|
<div className={classNames("kts-invoice-operate-invoice-digtal-stakeholder", { readOnly: readOnly })} >
|
|
106
114
|
<div>
|