kts-component-invoice-operate 3.2.185 → 3.2.187
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/ui/digtal/Stakeholder/index.d.ts +3 -0
- package/dist/index.esm.js +59 -12
- package/dist/index.js +58 -11
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +4 -1
- package/src/Invoice/Invoice-digtal/index.md +4 -4
- package/src/Invoice/ui/digtal/Architecture/index.tsx +2 -1
- package/src/Invoice/ui/digtal/FreightList/index.tsx +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +47 -12
|
@@ -14,6 +14,9 @@ export interface IStakeholder {
|
|
|
14
14
|
isNaturalPerson?: boolean;
|
|
15
15
|
/** 是否展开 */
|
|
16
16
|
isExpand?: boolean;
|
|
17
|
+
leqi?: boolean;
|
|
18
|
+
riskData?: any;
|
|
19
|
+
invoiceMarkCallback?: (value: any) => void;
|
|
17
20
|
}
|
|
18
21
|
/** 干系人 */
|
|
19
22
|
declare const _default: React.FunctionComponent<IStakeholder>;
|
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, Checkbox as Checkbox$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, 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';
|
|
@@ -17463,6 +17463,8 @@ var formatCompanyName = function formatCompanyName(e) {
|
|
|
17463
17463
|
|
|
17464
17464
|
|
|
17465
17465
|
var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
17466
|
+
var _props$riskData2, _props$riskData3;
|
|
17467
|
+
|
|
17466
17468
|
var form = props.form,
|
|
17467
17469
|
isShowImportButton = props.isShowImportButton,
|
|
17468
17470
|
onClickImportButton = props.onClickImportButton,
|
|
@@ -17485,6 +17487,26 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17485
17487
|
var rulesMap = controller.useMemo(function (s) {
|
|
17486
17488
|
return s.stakeholder.rulesMap || {};
|
|
17487
17489
|
}, []);
|
|
17490
|
+
/** 乐企 */
|
|
17491
|
+
|
|
17492
|
+
var leqispanW = React.useMemo(function () {
|
|
17493
|
+
if (props.leqi) {
|
|
17494
|
+
return -2;
|
|
17495
|
+
} else {
|
|
17496
|
+
return 2;
|
|
17497
|
+
}
|
|
17498
|
+
}, [props.leqi, props.riskData]);
|
|
17499
|
+
/** 直连 */
|
|
17500
|
+
|
|
17501
|
+
var riskspanW = React.useMemo(function () {
|
|
17502
|
+
var _props$riskData;
|
|
17503
|
+
|
|
17504
|
+
if (((_props$riskData = props.riskData) === null || _props$riskData === void 0 ? void 0 : _props$riskData.code) === 'success') {
|
|
17505
|
+
return -2;
|
|
17506
|
+
} else {
|
|
17507
|
+
return 2;
|
|
17508
|
+
}
|
|
17509
|
+
}, [props.leqi, props.riskData]);
|
|
17488
17510
|
var readOnly = React.useMemo(function () {
|
|
17489
17511
|
if (model === 'readOnly') return true;
|
|
17490
17512
|
if (model === 'prefab') return true;
|
|
@@ -17574,7 +17596,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17574
17596
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17575
17597
|
autoComplete: "off"
|
|
17576
17598
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17577
|
-
span:
|
|
17599
|
+
span: 10 + riskspanW,
|
|
17578
17600
|
style: {
|
|
17579
17601
|
display: isExpand ? undefined : 'none'
|
|
17580
17602
|
}
|
|
@@ -17591,7 +17613,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17591
17613
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17592
17614
|
autoComplete: "off"
|
|
17593
17615
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17594
|
-
span: 10,
|
|
17616
|
+
span: 10 + riskspanW,
|
|
17595
17617
|
style: {
|
|
17596
17618
|
display: isExpand ? undefined : 'none'
|
|
17597
17619
|
}
|
|
@@ -17606,7 +17628,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17606
17628
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17607
17629
|
autoComplete: "off"
|
|
17608
17630
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17609
|
-
span:
|
|
17631
|
+
span: 10 + leqispanW,
|
|
17610
17632
|
style: {
|
|
17611
17633
|
display: isExpand ? undefined : 'none'
|
|
17612
17634
|
}
|
|
@@ -17620,7 +17642,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17620
17642
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17621
17643
|
autoComplete: "off"
|
|
17622
17644
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17623
|
-
span: 10,
|
|
17645
|
+
span: 10 + leqispanW,
|
|
17624
17646
|
style: {
|
|
17625
17647
|
display: isExpand ? undefined : 'none'
|
|
17626
17648
|
}
|
|
@@ -17633,6 +17655,17 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17633
17655
|
readOnly: isReadOnly('buyerAccount'),
|
|
17634
17656
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17635
17657
|
autoComplete: "off"
|
|
17658
|
+
})))), (props.leqi || ((_props$riskData2 = props.riskData) === null || _props$riskData2 === void 0 ? void 0 : _props$riskData2.code) === 'success') && /*#__PURE__*/React.createElement(Col, {
|
|
17659
|
+
span: 4,
|
|
17660
|
+
style: {
|
|
17661
|
+
display: isExpand ? undefined : 'none'
|
|
17662
|
+
}
|
|
17663
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17664
|
+
label: "\u662F\u5426\u5C55\u793A",
|
|
17665
|
+
colon: false
|
|
17666
|
+
}, getFieldDecorator('buyerBankAccountFlag', {})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17667
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17668
|
+
disabled: isReadOnly('buyerBankAccountFlag')
|
|
17636
17669
|
}))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17637
17670
|
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17638
17671
|
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -17682,7 +17715,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17682
17715
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17683
17716
|
autoComplete: "off"
|
|
17684
17717
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17685
|
-
span:
|
|
17718
|
+
span: 10 + riskspanW,
|
|
17686
17719
|
style: {
|
|
17687
17720
|
display: isExpand ? undefined : 'none'
|
|
17688
17721
|
}
|
|
@@ -17699,7 +17732,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17699
17732
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17700
17733
|
autoComplete: "off"
|
|
17701
17734
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17702
|
-
span:
|
|
17735
|
+
span: 10 + riskspanW,
|
|
17703
17736
|
style: {
|
|
17704
17737
|
display: isExpand ? undefined : 'none'
|
|
17705
17738
|
}
|
|
@@ -17714,7 +17747,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17714
17747
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17715
17748
|
autoComplete: "off"
|
|
17716
17749
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17717
|
-
span:
|
|
17750
|
+
span: 10 + leqispanW,
|
|
17718
17751
|
style: {
|
|
17719
17752
|
display: isExpand ? undefined : 'none'
|
|
17720
17753
|
}
|
|
@@ -17728,7 +17761,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17728
17761
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17729
17762
|
autoComplete: "off"
|
|
17730
17763
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17731
|
-
span:
|
|
17764
|
+
span: 10 + leqispanW,
|
|
17732
17765
|
style: {
|
|
17733
17766
|
display: isExpand ? undefined : 'none'
|
|
17734
17767
|
}
|
|
@@ -17741,6 +17774,17 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17741
17774
|
readOnly: isReadOnly('sellerAccount'),
|
|
17742
17775
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17743
17776
|
autoComplete: "off"
|
|
17777
|
+
})))), (props.leqi || ((_props$riskData3 = props.riskData) === null || _props$riskData3 === void 0 ? void 0 : _props$riskData3.code) === 'success') && /*#__PURE__*/React.createElement(Col, {
|
|
17778
|
+
span: 4,
|
|
17779
|
+
style: {
|
|
17780
|
+
display: isExpand ? undefined : 'none'
|
|
17781
|
+
}
|
|
17782
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17783
|
+
label: "\u662F\u5426\u5C55\u793A",
|
|
17784
|
+
colon: false
|
|
17785
|
+
}, getFieldDecorator('sellerBankAccountFlag', {})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17786
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17787
|
+
disabled: isReadOnly('sellerBankAccountFlag')
|
|
17744
17788
|
}))))))));
|
|
17745
17789
|
});
|
|
17746
17790
|
|
|
@@ -24289,8 +24333,11 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
24289
24333
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24290
24334
|
}, getFieldDecorator('constructDetailAddress', {
|
|
24291
24335
|
rules: readOnly ? [] : [{
|
|
24292
|
-
|
|
24293
|
-
message: '
|
|
24336
|
+
required: true,
|
|
24337
|
+
message: '请输入详细地址'
|
|
24338
|
+
}, {
|
|
24339
|
+
max: 120,
|
|
24340
|
+
message: '详细地址最多120个字符'
|
|
24294
24341
|
}, {
|
|
24295
24342
|
validator: function validator(_, value) {
|
|
24296
24343
|
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
@@ -25825,7 +25872,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
25825
25872
|
className: "kts-invoice-operate-freight"
|
|
25826
25873
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25827
25874
|
className: 'real-estate-info-digtal-label'
|
|
25828
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\
|
|
25875
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
25829
25876
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
25830
25877
|
onClick: function onClick(e) {
|
|
25831
25878
|
e.stopPropagation();
|
package/dist/index.js
CHANGED
|
@@ -17473,6 +17473,8 @@ var formatCompanyName = function formatCompanyName(e) {
|
|
|
17473
17473
|
|
|
17474
17474
|
|
|
17475
17475
|
var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
17476
|
+
var _props$riskData2, _props$riskData3;
|
|
17477
|
+
|
|
17476
17478
|
var form = props.form,
|
|
17477
17479
|
isShowImportButton = props.isShowImportButton,
|
|
17478
17480
|
onClickImportButton = props.onClickImportButton,
|
|
@@ -17495,6 +17497,26 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17495
17497
|
var rulesMap = controller.useMemo(function (s) {
|
|
17496
17498
|
return s.stakeholder.rulesMap || {};
|
|
17497
17499
|
}, []);
|
|
17500
|
+
/** 乐企 */
|
|
17501
|
+
|
|
17502
|
+
var leqispanW = React__default['default'].useMemo(function () {
|
|
17503
|
+
if (props.leqi) {
|
|
17504
|
+
return -2;
|
|
17505
|
+
} else {
|
|
17506
|
+
return 2;
|
|
17507
|
+
}
|
|
17508
|
+
}, [props.leqi, props.riskData]);
|
|
17509
|
+
/** 直连 */
|
|
17510
|
+
|
|
17511
|
+
var riskspanW = React__default['default'].useMemo(function () {
|
|
17512
|
+
var _props$riskData;
|
|
17513
|
+
|
|
17514
|
+
if (((_props$riskData = props.riskData) === null || _props$riskData === void 0 ? void 0 : _props$riskData.code) === 'success') {
|
|
17515
|
+
return -2;
|
|
17516
|
+
} else {
|
|
17517
|
+
return 2;
|
|
17518
|
+
}
|
|
17519
|
+
}, [props.leqi, props.riskData]);
|
|
17498
17520
|
var readOnly = React__default['default'].useMemo(function () {
|
|
17499
17521
|
if (model === 'readOnly') return true;
|
|
17500
17522
|
if (model === 'prefab') return true;
|
|
@@ -17584,7 +17606,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17584
17606
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17585
17607
|
autoComplete: "off"
|
|
17586
17608
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17587
|
-
span:
|
|
17609
|
+
span: 10 + riskspanW,
|
|
17588
17610
|
style: {
|
|
17589
17611
|
display: isExpand ? undefined : 'none'
|
|
17590
17612
|
}
|
|
@@ -17601,7 +17623,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17601
17623
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17602
17624
|
autoComplete: "off"
|
|
17603
17625
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17604
|
-
span: 10,
|
|
17626
|
+
span: 10 + riskspanW,
|
|
17605
17627
|
style: {
|
|
17606
17628
|
display: isExpand ? undefined : 'none'
|
|
17607
17629
|
}
|
|
@@ -17616,7 +17638,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17616
17638
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17617
17639
|
autoComplete: "off"
|
|
17618
17640
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17619
|
-
span:
|
|
17641
|
+
span: 10 + leqispanW,
|
|
17620
17642
|
style: {
|
|
17621
17643
|
display: isExpand ? undefined : 'none'
|
|
17622
17644
|
}
|
|
@@ -17630,7 +17652,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17630
17652
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17631
17653
|
autoComplete: "off"
|
|
17632
17654
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17633
|
-
span: 10,
|
|
17655
|
+
span: 10 + leqispanW,
|
|
17634
17656
|
style: {
|
|
17635
17657
|
display: isExpand ? undefined : 'none'
|
|
17636
17658
|
}
|
|
@@ -17643,6 +17665,17 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17643
17665
|
readOnly: isReadOnly('buyerAccount'),
|
|
17644
17666
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17645
17667
|
autoComplete: "off"
|
|
17668
|
+
})))), (props.leqi || ((_props$riskData2 = props.riskData) === null || _props$riskData2 === void 0 ? void 0 : _props$riskData2.code) === 'success') && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17669
|
+
span: 4,
|
|
17670
|
+
style: {
|
|
17671
|
+
display: isExpand ? undefined : 'none'
|
|
17672
|
+
}
|
|
17673
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17674
|
+
label: "\u662F\u5426\u5C55\u793A",
|
|
17675
|
+
colon: false
|
|
17676
|
+
}, getFieldDecorator('buyerBankAccountFlag', {})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17677
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17678
|
+
disabled: isReadOnly('buyerBankAccountFlag')
|
|
17646
17679
|
}))))))), /*#__PURE__*/React__default['default'].createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17647
17680
|
return /*#__PURE__*/React__default['default'].createElement("span", null, e);
|
|
17648
17681
|
}), !readOnly && /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
@@ -17692,7 +17725,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17692
17725
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17693
17726
|
autoComplete: "off"
|
|
17694
17727
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17695
|
-
span:
|
|
17728
|
+
span: 10 + riskspanW,
|
|
17696
17729
|
style: {
|
|
17697
17730
|
display: isExpand ? undefined : 'none'
|
|
17698
17731
|
}
|
|
@@ -17709,7 +17742,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17709
17742
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17710
17743
|
autoComplete: "off"
|
|
17711
17744
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17712
|
-
span:
|
|
17745
|
+
span: 10 + riskspanW,
|
|
17713
17746
|
style: {
|
|
17714
17747
|
display: isExpand ? undefined : 'none'
|
|
17715
17748
|
}
|
|
@@ -17724,7 +17757,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17724
17757
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17725
17758
|
autoComplete: "off"
|
|
17726
17759
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17727
|
-
span:
|
|
17760
|
+
span: 10 + leqispanW,
|
|
17728
17761
|
style: {
|
|
17729
17762
|
display: isExpand ? undefined : 'none'
|
|
17730
17763
|
}
|
|
@@ -17738,7 +17771,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17738
17771
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17739
17772
|
autoComplete: "off"
|
|
17740
17773
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17741
|
-
span:
|
|
17774
|
+
span: 10 + leqispanW,
|
|
17742
17775
|
style: {
|
|
17743
17776
|
display: isExpand ? undefined : 'none'
|
|
17744
17777
|
}
|
|
@@ -17751,6 +17784,17 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17751
17784
|
readOnly: isReadOnly('sellerAccount'),
|
|
17752
17785
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17753
17786
|
autoComplete: "off"
|
|
17787
|
+
})))), (props.leqi || ((_props$riskData3 = props.riskData) === null || _props$riskData3 === void 0 ? void 0 : _props$riskData3.code) === 'success') && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17788
|
+
span: 4,
|
|
17789
|
+
style: {
|
|
17790
|
+
display: isExpand ? undefined : 'none'
|
|
17791
|
+
}
|
|
17792
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17793
|
+
label: "\u662F\u5426\u5C55\u793A",
|
|
17794
|
+
colon: false
|
|
17795
|
+
}, getFieldDecorator('sellerBankAccountFlag', {})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17796
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17797
|
+
disabled: isReadOnly('sellerBankAccountFlag')
|
|
17754
17798
|
}))))))));
|
|
17755
17799
|
});
|
|
17756
17800
|
|
|
@@ -24299,8 +24343,11 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24299
24343
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24300
24344
|
}, getFieldDecorator('constructDetailAddress', {
|
|
24301
24345
|
rules: readOnly ? [] : [{
|
|
24302
|
-
|
|
24303
|
-
message: '
|
|
24346
|
+
required: true,
|
|
24347
|
+
message: '请输入详细地址'
|
|
24348
|
+
}, {
|
|
24349
|
+
max: 120,
|
|
24350
|
+
message: '详细地址最多120个字符'
|
|
24304
24351
|
}, {
|
|
24305
24352
|
validator: function validator(_, value) {
|
|
24306
24353
|
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
@@ -25835,7 +25882,7 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
25835
25882
|
className: "kts-invoice-operate-freight"
|
|
25836
25883
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25837
25884
|
className: 'real-estate-info-digtal-label'
|
|
25838
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\
|
|
25885
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25839
25886
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
25840
25887
|
onClick: function onClick(e) {
|
|
25841
25888
|
e.stopPropagation();
|
package/package.json
CHANGED
|
@@ -3,10 +3,13 @@ import Invoice from '../../..';
|
|
|
3
3
|
import 'antd/dist/antd.css';
|
|
4
4
|
|
|
5
5
|
export default () => {
|
|
6
|
+
const callback = (e: any) => {
|
|
7
|
+
console.log(e.target.checked)
|
|
8
|
+
}
|
|
6
9
|
return (
|
|
7
10
|
<Invoice
|
|
8
11
|
invoiceType='digtal'
|
|
9
|
-
stakeholder={<Invoice.
|
|
12
|
+
stakeholder={<Invoice.Stakeholder isShowImportButton={true} leqi={true} invoiceMarkCallback={callback}/>}
|
|
10
13
|
invoiceHeader={
|
|
11
14
|
<Invoice.InvoiceHeader
|
|
12
15
|
title='自定义'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# 数电
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 简单用法
|
|
4
4
|
<code src="./_test/easiest/index.tsx"></code>
|
|
5
5
|
|
|
6
|
-
## 只读模式
|
|
6
|
+
<!-- ## 只读模式
|
|
7
7
|
<code src="./_test/readOnly/index.tsx"></code>
|
|
8
8
|
|
|
9
9
|
## 发票号码 & 开票日期 & 标签
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<code src="./_test/realEstateInfo/index.tsx"></code>
|
|
35
35
|
|
|
36
36
|
## 建筑服务
|
|
37
|
-
<code src="./_test/architecture/index.tsx"></code>
|
|
37
|
+
<code src="./_test/architecture/index.tsx"></code>
|
|
38
38
|
|
|
39
39
|
## 货物运输服务
|
|
40
|
-
<code src="./_test/freight/index.tsx"></code>
|
|
40
|
+
<code src="./_test/freight/index.tsx"></code> -->
|
|
@@ -77,7 +77,8 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
77
77
|
<Form.Item label='详细地址' >
|
|
78
78
|
{getFieldDecorator('constructDetailAddress', {
|
|
79
79
|
rules: readOnly ? [] : [
|
|
80
|
-
{
|
|
80
|
+
{ required: true, message: '请输入详细地址' },
|
|
81
|
+
{ max: 120, message: '详细地址最多120个字符' },
|
|
81
82
|
{
|
|
82
83
|
validator: (_, value) => {
|
|
83
84
|
const pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
@@ -94,7 +94,7 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
94
94
|
// controller.useForm('freightInfo', form);
|
|
95
95
|
return (
|
|
96
96
|
<div className="kts-invoice-operate-freight">
|
|
97
|
-
<div className='real-estate-info-digtal-label'
|
|
97
|
+
<div className='real-estate-info-digtal-label' >特殊信息-货物运输</div>
|
|
98
98
|
<div className="kts-invoice-operate-goods-list-digtal" onClick={(e) => { e.stopPropagation() }} >
|
|
99
99
|
<div className="kts-invoice-operate-freight-list-able">
|
|
100
100
|
{/* 添加行 */}
|
|
@@ -68,6 +68,12 @@ export interface IStakeholder {
|
|
|
68
68
|
|
|
69
69
|
/** 是否展开 */
|
|
70
70
|
isExpand?: boolean;
|
|
71
|
+
|
|
72
|
+
leqi?: boolean;
|
|
73
|
+
|
|
74
|
+
riskData?: any;
|
|
75
|
+
|
|
76
|
+
invoiceMarkCallback?: (value: any) => void;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
/** 干系人 */
|
|
@@ -86,7 +92,22 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
86
92
|
const disableds = controller.useMemo(s => s.stakeholder.disableds || [], []);
|
|
87
93
|
|
|
88
94
|
const rulesMap = controller.useMemo(s => s.stakeholder.rulesMap || {}, []);
|
|
89
|
-
|
|
95
|
+
/** 乐企 */
|
|
96
|
+
const leqispanW = React.useMemo(() => {
|
|
97
|
+
if (props.leqi) {
|
|
98
|
+
return -2;
|
|
99
|
+
} else {
|
|
100
|
+
return 2;
|
|
101
|
+
}
|
|
102
|
+
}, [props.leqi, props.riskData]);
|
|
103
|
+
/** 直连 */
|
|
104
|
+
const riskspanW = React.useMemo(() => {
|
|
105
|
+
if (props.riskData?.code === 'success') {
|
|
106
|
+
return -2;
|
|
107
|
+
} else {
|
|
108
|
+
return 2;
|
|
109
|
+
}
|
|
110
|
+
}, [props.leqi, props.riskData]);
|
|
90
111
|
const readOnly = React.useMemo(() => {
|
|
91
112
|
if (model === 'readOnly') return true;
|
|
92
113
|
if (model === 'prefab') return true;
|
|
@@ -177,7 +198,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
177
198
|
</Form.Item>
|
|
178
199
|
</Col>
|
|
179
200
|
|
|
180
|
-
<Col span={
|
|
201
|
+
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
181
202
|
<Form.Item label='购买方地址' colon={false}>
|
|
182
203
|
{getFieldDecorator('buyerAddress', {
|
|
183
204
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -185,15 +206,14 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
185
206
|
</Form.Item>
|
|
186
207
|
</Col>
|
|
187
208
|
|
|
188
|
-
<Col span={10} style={{ display: isExpand ? undefined : 'none' }} >
|
|
209
|
+
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
189
210
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
190
211
|
{getFieldDecorator('buyerPhone', {
|
|
191
212
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
192
213
|
})(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
193
214
|
</Form.Item>
|
|
194
215
|
</Col>
|
|
195
|
-
|
|
196
|
-
<Col span={14} style={{ display: isExpand ? undefined : 'none' }} >
|
|
216
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
197
217
|
<Form.Item label='购买方开户银行' colon={false}>
|
|
198
218
|
{getFieldDecorator('buyerBank', {
|
|
199
219
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
@@ -201,13 +221,21 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
201
221
|
</Form.Item>
|
|
202
222
|
</Col>
|
|
203
223
|
|
|
204
|
-
<Col span={10} style={{ display: isExpand ? undefined : 'none' }} >
|
|
224
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
205
225
|
<Form.Item label='银行账号' colon={false}>
|
|
206
226
|
{getFieldDecorator('buyerAccount', {
|
|
207
227
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
208
228
|
})(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
209
229
|
</Form.Item>
|
|
210
230
|
</Col>
|
|
231
|
+
{(props.leqi || props.riskData?.code === 'success') &&
|
|
232
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
233
|
+
<Form.Item label='是否展示' colon={false}>
|
|
234
|
+
{getFieldDecorator('buyerBankAccountFlag', {
|
|
235
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} ></Checkbox>)}
|
|
236
|
+
</Form.Item>
|
|
237
|
+
</Col>
|
|
238
|
+
}
|
|
211
239
|
</Row>
|
|
212
240
|
</Form>
|
|
213
241
|
</div>
|
|
@@ -250,7 +278,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
250
278
|
</Form.Item>
|
|
251
279
|
</Col>
|
|
252
280
|
|
|
253
|
-
<Col span={
|
|
281
|
+
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
254
282
|
<Form.Item label='销售方地址' colon={false}>
|
|
255
283
|
{getFieldDecorator('sellerAddress', {
|
|
256
284
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -258,15 +286,14 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
258
286
|
</Form.Item>
|
|
259
287
|
</Col>
|
|
260
288
|
|
|
261
|
-
<Col span={
|
|
289
|
+
<Col span={10+riskspanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
262
290
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
263
291
|
{getFieldDecorator('sellerPhone', {
|
|
264
292
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
265
293
|
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
266
294
|
</Form.Item>
|
|
267
295
|
</Col>
|
|
268
|
-
|
|
269
|
-
<Col span={12} style={{ display: isExpand ? undefined : 'none' }} >
|
|
296
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
270
297
|
<Form.Item label='销售方开户银行' colon={false}>
|
|
271
298
|
{getFieldDecorator('sellerBank', {
|
|
272
299
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
@@ -274,13 +301,21 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
274
301
|
</Form.Item>
|
|
275
302
|
</Col>
|
|
276
303
|
|
|
277
|
-
<Col span={
|
|
304
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
278
305
|
<Form.Item label='银行账号' colon={false}>
|
|
279
306
|
{getFieldDecorator('sellerAccount', {
|
|
280
307
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
281
308
|
})(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
|
|
282
309
|
</Form.Item>
|
|
283
310
|
</Col>
|
|
311
|
+
{(props.leqi || props.riskData?.code === 'success') &&
|
|
312
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
313
|
+
<Form.Item label='是否展示' colon={false}>
|
|
314
|
+
{getFieldDecorator('sellerBankAccountFlag', {
|
|
315
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} ></Checkbox>)}
|
|
316
|
+
</Form.Item>
|
|
317
|
+
</Col>
|
|
318
|
+
}
|
|
284
319
|
</Row>
|
|
285
320
|
</Form>
|
|
286
321
|
</div>
|
|
@@ -373,7 +408,7 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
373
408
|
)
|
|
374
409
|
}
|
|
375
410
|
|
|
376
|
-
class MyInput extends React.Component<InputProps>{
|
|
411
|
+
class MyInput extends React.Component<InputProps> {
|
|
377
412
|
render() {
|
|
378
413
|
const props = this.props;
|
|
379
414
|
if (props.readOnly) {
|