kts-component-invoice-operate 3.2.141 → 3.2.143
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 +11 -1
- package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +2 -0
- package/dist/index.esm.js +64 -15
- package/dist/index.js +64 -15
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +1 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +68 -15
- 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<import("./ui/digtal/RealEstateInfo").RealEstateInfoProps>;
|
|
55
55
|
/** 货物列表(数电) */
|
|
56
56
|
static readonly GoodsListDigtal: typeof GoodsListDigtal;
|
|
57
57
|
/** 货物索引生成器 */
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
+
export interface RealEstateInfoProps {
|
|
4
|
+
/**
|
|
5
|
+
* 不动产地址数据
|
|
6
|
+
*/
|
|
7
|
+
realEstateAddressOptions: any[];
|
|
8
|
+
/**
|
|
9
|
+
* 不动产地址数据字段名
|
|
10
|
+
*/
|
|
11
|
+
realEstateAddressFieldNames: any;
|
|
12
|
+
}
|
|
3
13
|
/** 特殊信息-不动产经营租赁服务 */
|
|
4
|
-
declare const _default: React.FunctionComponent<
|
|
14
|
+
declare const _default: React.FunctionComponent<RealEstateInfoProps>;
|
|
5
15
|
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
|
|
@@ -22721,7 +22725,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22721
22725
|
span: 6
|
|
22722
22726
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22723
22727
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
22724
|
-
}, getFieldDecorator('
|
|
22728
|
+
}, getFieldDecorator('realEstateAddress', {
|
|
22725
22729
|
rules: [{
|
|
22726
22730
|
required: true,
|
|
22727
22731
|
message: '请选择不动产地址'
|
|
@@ -22730,16 +22734,25 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22730
22734
|
style: {
|
|
22731
22735
|
width: '100%'
|
|
22732
22736
|
},
|
|
22733
|
-
options:
|
|
22737
|
+
options: props.realEstateAddressOptions,
|
|
22738
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
22734
22739
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
22735
22740
|
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
22736
22741
|
span: 6
|
|
22737
22742
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22738
22743
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
22739
|
-
}, getFieldDecorator('
|
|
22744
|
+
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
22740
22745
|
rules: [{
|
|
22741
22746
|
required: true,
|
|
22742
22747
|
message: '请输入详细地址'
|
|
22748
|
+
}, {
|
|
22749
|
+
max: 120,
|
|
22750
|
+
message: '详细地址最多120个字符'
|
|
22751
|
+
}, {
|
|
22752
|
+
validator: function validator(_, value) {
|
|
22753
|
+
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
22754
|
+
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
22755
|
+
}
|
|
22743
22756
|
}]
|
|
22744
22757
|
})( /*#__PURE__*/React.createElement(Input$2, {
|
|
22745
22758
|
autoComplete: 'off',
|
|
@@ -22748,16 +22761,20 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22748
22761
|
span: 6
|
|
22749
22762
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22750
22763
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
22751
|
-
}, getFieldDecorator('
|
|
22764
|
+
}, getFieldDecorator('leaseTerm', {
|
|
22752
22765
|
rules: [{
|
|
22753
22766
|
required: true,
|
|
22754
|
-
message: '
|
|
22767
|
+
message: '请输入租赁期'
|
|
22755
22768
|
}]
|
|
22756
|
-
})( /*#__PURE__*/React.createElement(RangePicker,
|
|
22769
|
+
})( /*#__PURE__*/React.createElement(RangePicker, {
|
|
22770
|
+
style: {
|
|
22771
|
+
width: '100%'
|
|
22772
|
+
}
|
|
22773
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
22757
22774
|
span: 6
|
|
22758
22775
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22759
22776
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
22760
|
-
}, getFieldDecorator('
|
|
22777
|
+
}, getFieldDecorator('crossCitiesSign', {
|
|
22761
22778
|
rules: [{
|
|
22762
22779
|
required: true,
|
|
22763
22780
|
message: '请选择跨地(市)标志'
|
|
@@ -22768,15 +22785,20 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22768
22785
|
width: '100%'
|
|
22769
22786
|
}
|
|
22770
22787
|
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22771
|
-
value:
|
|
22772
|
-
}, "
|
|
22788
|
+
value: 'Y'
|
|
22789
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22790
|
+
value: 'N'
|
|
22791
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
22773
22792
|
span: 6
|
|
22774
22793
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22775
22794
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
22776
|
-
}, getFieldDecorator('
|
|
22795
|
+
}, getFieldDecorator('realEstateNumber', {
|
|
22777
22796
|
rules: [{
|
|
22778
22797
|
required: true,
|
|
22779
22798
|
message: '请输入证书编号,若没有证书填写“无”'
|
|
22799
|
+
}, {
|
|
22800
|
+
max: 40,
|
|
22801
|
+
message: '证书编号最多40个字符'
|
|
22780
22802
|
}]
|
|
22781
22803
|
})( /*#__PURE__*/React.createElement(Input$2, {
|
|
22782
22804
|
autoComplete: 'off',
|
|
@@ -22785,7 +22807,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22785
22807
|
span: 6
|
|
22786
22808
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22787
22809
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
22788
|
-
}, getFieldDecorator('
|
|
22810
|
+
}, getFieldDecorator('realEstateUnit', {
|
|
22789
22811
|
rules: [{
|
|
22790
22812
|
required: true,
|
|
22791
22813
|
message: '请选择面积单位'
|
|
@@ -22796,8 +22818,35 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
22796
22818
|
width: '100%'
|
|
22797
22819
|
}
|
|
22798
22820
|
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22799
|
-
value: "
|
|
22800
|
-
}, "
|
|
22821
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
22822
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22823
|
+
value: "\u5E73\u65B9\u7C73"
|
|
22824
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22825
|
+
value: "\u516C\u9877"
|
|
22826
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22827
|
+
value: "\u4EA9"
|
|
22828
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22829
|
+
value: "Hm2"
|
|
22830
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "Hm"), /*#__PURE__*/React.createElement("span", {
|
|
22831
|
+
style: {
|
|
22832
|
+
verticalAlign: 'super',
|
|
22833
|
+
fontSize: 'smaller'
|
|
22834
|
+
}
|
|
22835
|
+
}, "2"))), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22836
|
+
value: "Km2"
|
|
22837
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "Km"), /*#__PURE__*/React.createElement("span", {
|
|
22838
|
+
style: {
|
|
22839
|
+
verticalAlign: 'super',
|
|
22840
|
+
fontSize: 'smaller'
|
|
22841
|
+
}
|
|
22842
|
+
}, "2"))), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
22843
|
+
value: "m2"
|
|
22844
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "m"), /*#__PURE__*/React.createElement("span", {
|
|
22845
|
+
style: {
|
|
22846
|
+
verticalAlign: 'super',
|
|
22847
|
+
fontSize: 'smaller'
|
|
22848
|
+
}
|
|
22849
|
+
}, "2")))))))));
|
|
22801
22850
|
});
|
|
22802
22851
|
|
|
22803
22852
|
var ImportBuyerDrawer = (function () {
|
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
|
|
@@ -22731,7 +22735,7 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22731
22735
|
span: 6
|
|
22732
22736
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22733
22737
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
22734
|
-
}, getFieldDecorator('
|
|
22738
|
+
}, getFieldDecorator('realEstateAddress', {
|
|
22735
22739
|
rules: [{
|
|
22736
22740
|
required: true,
|
|
22737
22741
|
message: '请选择不动产地址'
|
|
@@ -22740,16 +22744,25 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22740
22744
|
style: {
|
|
22741
22745
|
width: '100%'
|
|
22742
22746
|
},
|
|
22743
|
-
options:
|
|
22747
|
+
options: props.realEstateAddressOptions,
|
|
22748
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
22744
22749
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
22745
22750
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
22746
22751
|
span: 6
|
|
22747
22752
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22748
22753
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
22749
|
-
}, getFieldDecorator('
|
|
22754
|
+
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
22750
22755
|
rules: [{
|
|
22751
22756
|
required: true,
|
|
22752
22757
|
message: '请输入详细地址'
|
|
22758
|
+
}, {
|
|
22759
|
+
max: 120,
|
|
22760
|
+
message: '详细地址最多120个字符'
|
|
22761
|
+
}, {
|
|
22762
|
+
validator: function validator(_, value) {
|
|
22763
|
+
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
22764
|
+
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
22765
|
+
}
|
|
22753
22766
|
}]
|
|
22754
22767
|
})( /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
22755
22768
|
autoComplete: 'off',
|
|
@@ -22758,16 +22771,20 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22758
22771
|
span: 6
|
|
22759
22772
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22760
22773
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
22761
|
-
}, getFieldDecorator('
|
|
22774
|
+
}, getFieldDecorator('leaseTerm', {
|
|
22762
22775
|
rules: [{
|
|
22763
22776
|
required: true,
|
|
22764
|
-
message: '
|
|
22777
|
+
message: '请输入租赁期'
|
|
22765
22778
|
}]
|
|
22766
|
-
})( /*#__PURE__*/React__default['default'].createElement(RangePicker,
|
|
22779
|
+
})( /*#__PURE__*/React__default['default'].createElement(RangePicker, {
|
|
22780
|
+
style: {
|
|
22781
|
+
width: '100%'
|
|
22782
|
+
}
|
|
22783
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
22767
22784
|
span: 6
|
|
22768
22785
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22769
22786
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
22770
|
-
}, getFieldDecorator('
|
|
22787
|
+
}, getFieldDecorator('crossCitiesSign', {
|
|
22771
22788
|
rules: [{
|
|
22772
22789
|
required: true,
|
|
22773
22790
|
message: '请选择跨地(市)标志'
|
|
@@ -22778,15 +22795,20 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22778
22795
|
width: '100%'
|
|
22779
22796
|
}
|
|
22780
22797
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22781
|
-
value:
|
|
22782
|
-
}, "
|
|
22798
|
+
value: 'Y'
|
|
22799
|
+
}, "\u662F"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22800
|
+
value: 'N'
|
|
22801
|
+
}, "\u5426"))))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
22783
22802
|
span: 6
|
|
22784
22803
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22785
22804
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
22786
|
-
}, getFieldDecorator('
|
|
22805
|
+
}, getFieldDecorator('realEstateNumber', {
|
|
22787
22806
|
rules: [{
|
|
22788
22807
|
required: true,
|
|
22789
22808
|
message: '请输入证书编号,若没有证书填写“无”'
|
|
22809
|
+
}, {
|
|
22810
|
+
max: 40,
|
|
22811
|
+
message: '证书编号最多40个字符'
|
|
22790
22812
|
}]
|
|
22791
22813
|
})( /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
22792
22814
|
autoComplete: 'off',
|
|
@@ -22795,7 +22817,7 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22795
22817
|
span: 6
|
|
22796
22818
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
22797
22819
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
22798
|
-
}, getFieldDecorator('
|
|
22820
|
+
}, getFieldDecorator('realEstateUnit', {
|
|
22799
22821
|
rules: [{
|
|
22800
22822
|
required: true,
|
|
22801
22823
|
message: '请选择面积单位'
|
|
@@ -22806,8 +22828,35 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
22806
22828
|
width: '100%'
|
|
22807
22829
|
}
|
|
22808
22830
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22809
|
-
value: "
|
|
22810
|
-
}, "
|
|
22831
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
22832
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22833
|
+
value: "\u5E73\u65B9\u7C73"
|
|
22834
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22835
|
+
value: "\u516C\u9877"
|
|
22836
|
+
}, "\u516C\u9877"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22837
|
+
value: "\u4EA9"
|
|
22838
|
+
}, "\u4EA9"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22839
|
+
value: "Hm2"
|
|
22840
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("span", null, "Hm"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
22841
|
+
style: {
|
|
22842
|
+
verticalAlign: 'super',
|
|
22843
|
+
fontSize: 'smaller'
|
|
22844
|
+
}
|
|
22845
|
+
}, "2"))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22846
|
+
value: "Km2"
|
|
22847
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("span", null, "Km"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
22848
|
+
style: {
|
|
22849
|
+
verticalAlign: 'super',
|
|
22850
|
+
fontSize: 'smaller'
|
|
22851
|
+
}
|
|
22852
|
+
}, "2"))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
22853
|
+
value: "m2"
|
|
22854
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("span", null, "m"), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
22855
|
+
style: {
|
|
22856
|
+
verticalAlign: 'super',
|
|
22857
|
+
fontSize: 'smaller'
|
|
22858
|
+
}
|
|
22859
|
+
}, "2")))))))));
|
|
22811
22860
|
});
|
|
22812
22861
|
|
|
22813
22862
|
var ImportBuyerDrawer = (function () {
|
package/package.json
CHANGED
|
@@ -8,8 +8,20 @@ import { Cascader, Col, DatePicker, Input, Row, Select } from "kts-components-an
|
|
|
8
8
|
|
|
9
9
|
const { RangePicker } = DatePicker;
|
|
10
10
|
|
|
11
|
+
export interface RealEstateInfoProps {
|
|
12
|
+
/**
|
|
13
|
+
* 不动产地址数据
|
|
14
|
+
*/
|
|
15
|
+
realEstateAddressOptions: any[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 不动产地址数据字段名
|
|
19
|
+
*/
|
|
20
|
+
realEstateAddressFieldNames: any;
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
/** 特殊信息-不动产经营租赁服务 */
|
|
12
|
-
export default decorator<
|
|
24
|
+
export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInfoProps>(Form.create())(props => {
|
|
13
25
|
|
|
14
26
|
const { form } = props;
|
|
15
27
|
|
|
@@ -21,52 +33,93 @@ export default decorator<any, FormComponentProps>(Form.create())(props => {
|
|
|
21
33
|
<Row gutter={[17, 0]}>
|
|
22
34
|
<Col span={6} >
|
|
23
35
|
<Form.Item label='不动产地址' >
|
|
24
|
-
{getFieldDecorator('
|
|
36
|
+
{getFieldDecorator('realEstateAddress', {
|
|
25
37
|
rules: [{ required: true, message: '请选择不动产地址' }]
|
|
26
38
|
})(
|
|
27
|
-
<Cascader
|
|
39
|
+
<Cascader
|
|
40
|
+
style={{ width: '100%' }}
|
|
41
|
+
options={props.realEstateAddressOptions}
|
|
42
|
+
fieldNames={props.realEstateAddressFieldNames}
|
|
43
|
+
placeholder="请选择省市区县"
|
|
44
|
+
/>
|
|
28
45
|
)}
|
|
29
46
|
</Form.Item>
|
|
30
47
|
</Col>
|
|
31
48
|
<Col span={6} >
|
|
32
49
|
<Form.Item label='详细地址' >
|
|
33
|
-
{getFieldDecorator('
|
|
34
|
-
rules: [
|
|
50
|
+
{getFieldDecorator('realEstateDetailedAddress', {
|
|
51
|
+
rules: [
|
|
52
|
+
{ required: true, message: '请输入详细地址' },
|
|
53
|
+
{ max: 120, message: '详细地址最多120个字符' },
|
|
54
|
+
{
|
|
55
|
+
validator: (_, value) => {
|
|
56
|
+
const pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
57
|
+
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
35
61
|
})(<Input autoComplete='off' placeholder="请输入详细地址" />)}
|
|
36
62
|
</Form.Item>
|
|
37
63
|
</Col>
|
|
38
64
|
<Col span={6} >
|
|
39
65
|
<Form.Item label='租赁期起止' >
|
|
40
|
-
{getFieldDecorator('
|
|
41
|
-
rules: [{ required: true, message: '
|
|
42
|
-
})(<RangePicker />)}
|
|
66
|
+
{getFieldDecorator('leaseTerm', {
|
|
67
|
+
rules: [{ required: true, message: '请输入租赁期' }]
|
|
68
|
+
})(<RangePicker style={{ width: '100%' }} />)}
|
|
43
69
|
</Form.Item>
|
|
44
70
|
</Col>
|
|
45
71
|
<Col span={6} >
|
|
46
72
|
<Form.Item label='跨地(市)标志' >
|
|
47
|
-
{getFieldDecorator('
|
|
48
|
-
rules: [
|
|
73
|
+
{getFieldDecorator('crossCitiesSign', {
|
|
74
|
+
rules: [
|
|
75
|
+
{ required: true, message: '请选择跨地(市)标志' }
|
|
76
|
+
]
|
|
49
77
|
})(
|
|
50
78
|
<Select placeholder='请选择' style={{ width: '100%' }} >
|
|
51
|
-
<Select.Option value=
|
|
79
|
+
<Select.Option value='Y'>是</Select.Option>
|
|
80
|
+
<Select.Option value='N'>否</Select.Option>
|
|
52
81
|
</Select>
|
|
53
82
|
)}
|
|
54
83
|
</Form.Item>
|
|
55
84
|
</Col>
|
|
56
85
|
<Col span={6} >
|
|
57
86
|
<Form.Item label='产权证书/不动产权证号' >
|
|
58
|
-
{getFieldDecorator('
|
|
59
|
-
rules: [
|
|
87
|
+
{getFieldDecorator('realEstateNumber', {
|
|
88
|
+
rules: [
|
|
89
|
+
{ required: true, message: '请输入证书编号,若没有证书填写“无”' },
|
|
90
|
+
{ max: 40, message: '证书编号最多40个字符' },
|
|
91
|
+
]
|
|
60
92
|
})(<Input autoComplete='off' placeholder="请输入证书编号,若没有证书填写“无”" />)}
|
|
61
93
|
</Form.Item>
|
|
62
94
|
</Col>
|
|
63
95
|
<Col span={6} >
|
|
64
96
|
<Form.Item label='面积单位' >
|
|
65
|
-
{getFieldDecorator('
|
|
97
|
+
{getFieldDecorator('realEstateUnit', {
|
|
66
98
|
rules: [{ required: true, message: '请选择面积单位' }]
|
|
67
99
|
})(
|
|
68
100
|
<Select placeholder='请选择' style={{ width: '100%' }} >
|
|
69
|
-
<Select.Option value="
|
|
101
|
+
<Select.Option value="平方千米">平方千米</Select.Option>
|
|
102
|
+
<Select.Option value="平方米">平方米</Select.Option>
|
|
103
|
+
<Select.Option value="公顷">公顷</Select.Option>
|
|
104
|
+
<Select.Option value="亩">亩</Select.Option>
|
|
105
|
+
<Select.Option value="Hm2">
|
|
106
|
+
<span>
|
|
107
|
+
<span>Hm</span>
|
|
108
|
+
<span style={{ verticalAlign: 'super', fontSize: 'smaller' }} >2</span>
|
|
109
|
+
</span>
|
|
110
|
+
</Select.Option>
|
|
111
|
+
<Select.Option value="Km2">
|
|
112
|
+
<span>
|
|
113
|
+
<span>Km</span>
|
|
114
|
+
<span style={{ verticalAlign: 'super', fontSize: 'smaller' }} >2</span>
|
|
115
|
+
</span>
|
|
116
|
+
</Select.Option>
|
|
117
|
+
<Select.Option value="m2">
|
|
118
|
+
<span>
|
|
119
|
+
<span>m</span>
|
|
120
|
+
<span style={{ verticalAlign: 'super', fontSize: 'smaller' }} >2</span>
|
|
121
|
+
</span>
|
|
122
|
+
</Select.Option>
|
|
70
123
|
</Select>
|
|
71
124
|
)}
|
|
72
125
|
</Form.Item>
|
|
@@ -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>
|