kts-component-invoice-operate 3.2.260 → 3.2.261
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/components/CardSelect/index.d.ts +4 -0
- package/dist/Invoice/ui/components/NationalSelect/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +2 -0
- package/dist/index.esm.js +1287 -83
- package/dist/index.js +1286 -82
- package/package.json +1 -1
- package/src/Invoice/ui/components/CardSelect/index.tsx +35 -0
- package/src/Invoice/ui/components/NationalSelect/index.tsx +272 -0
- package/src/Invoice/ui/default/ImportPassengerDrawer/index.tsx +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +504 -187
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$2, 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, Checkbox as Checkbox$1, Tooltip as Tooltip$1, Input as Input$1,
|
|
7
|
+
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Select as Select$1, Row, Col, Checkbox as Checkbox$1, Tooltip as Tooltip$1, Input as Input$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, DatePicker as DatePicker$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';
|
|
@@ -18797,6 +18797,854 @@ function SvgPlus(props) {
|
|
|
18797
18797
|
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
18798
18798
|
styleInject(css_248z$g);
|
|
18799
18799
|
|
|
18800
|
+
var CardSelect = /*#__PURE__*/function (_React$Component) {
|
|
18801
|
+
_inherits(CardSelect, _React$Component);
|
|
18802
|
+
|
|
18803
|
+
var _super = _createSuper(CardSelect);
|
|
18804
|
+
|
|
18805
|
+
function CardSelect() {
|
|
18806
|
+
_classCallCheck(this, CardSelect);
|
|
18807
|
+
|
|
18808
|
+
return _super.apply(this, arguments);
|
|
18809
|
+
}
|
|
18810
|
+
|
|
18811
|
+
_createClass(CardSelect, [{
|
|
18812
|
+
key: "render",
|
|
18813
|
+
value: function render() {
|
|
18814
|
+
var props = this.props;
|
|
18815
|
+
var option = [{
|
|
18816
|
+
label: "居民身份证",
|
|
18817
|
+
value: "201"
|
|
18818
|
+
}, {
|
|
18819
|
+
label: "外国护照",
|
|
18820
|
+
value: "208"
|
|
18821
|
+
}, {
|
|
18822
|
+
label: "港澳居民来往内地通行证",
|
|
18823
|
+
value: "210"
|
|
18824
|
+
}, {
|
|
18825
|
+
label: "台湾居民来往大陆通行证",
|
|
18826
|
+
value: "213"
|
|
18827
|
+
}, {
|
|
18828
|
+
label: "中国护照",
|
|
18829
|
+
value: "227"
|
|
18830
|
+
}, {
|
|
18831
|
+
label: "外国人永久居留身份证",
|
|
18832
|
+
value: "233"
|
|
18833
|
+
}, {
|
|
18834
|
+
label: "中华人民共和国港澳居民居住证",
|
|
18835
|
+
value: "237"
|
|
18836
|
+
}, {
|
|
18837
|
+
label: "中华人民共和国台湾居民居住证",
|
|
18838
|
+
value: "238"
|
|
18839
|
+
}];
|
|
18840
|
+
|
|
18841
|
+
function getLable(value) {
|
|
18842
|
+
var _option$find;
|
|
18843
|
+
|
|
18844
|
+
return ((_option$find = option.find(function (e) {
|
|
18845
|
+
return e.value === value;
|
|
18846
|
+
})) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
|
|
18847
|
+
}
|
|
18848
|
+
|
|
18849
|
+
if (props.readOnly) {
|
|
18850
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
18851
|
+
className: 'digtal-stakeholder-form-text'
|
|
18852
|
+
}, getLable(props.value));
|
|
18853
|
+
} else {
|
|
18854
|
+
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
18855
|
+
style: {
|
|
18856
|
+
width: 200
|
|
18857
|
+
},
|
|
18858
|
+
options: option
|
|
18859
|
+
}, props));
|
|
18860
|
+
}
|
|
18861
|
+
}
|
|
18862
|
+
}]);
|
|
18863
|
+
|
|
18864
|
+
return CardSelect;
|
|
18865
|
+
}(React.Component);
|
|
18866
|
+
|
|
18867
|
+
var NationalSelect = /*#__PURE__*/function (_React$Component) {
|
|
18868
|
+
_inherits(NationalSelect, _React$Component);
|
|
18869
|
+
|
|
18870
|
+
var _super = _createSuper(NationalSelect);
|
|
18871
|
+
|
|
18872
|
+
function NationalSelect() {
|
|
18873
|
+
_classCallCheck(this, NationalSelect);
|
|
18874
|
+
|
|
18875
|
+
return _super.apply(this, arguments);
|
|
18876
|
+
}
|
|
18877
|
+
|
|
18878
|
+
_createClass(NationalSelect, [{
|
|
18879
|
+
key: "render",
|
|
18880
|
+
value: function render() {
|
|
18881
|
+
var props = this.props;
|
|
18882
|
+
var option = [{
|
|
18883
|
+
value: "156",
|
|
18884
|
+
label: "中国"
|
|
18885
|
+
}, {
|
|
18886
|
+
value: "344",
|
|
18887
|
+
label: "中国香港"
|
|
18888
|
+
}, {
|
|
18889
|
+
value: "158",
|
|
18890
|
+
label: "中国台湾"
|
|
18891
|
+
}, {
|
|
18892
|
+
value: "446",
|
|
18893
|
+
label: "中国澳门"
|
|
18894
|
+
}, {
|
|
18895
|
+
value: "004",
|
|
18896
|
+
label: "阿富汗"
|
|
18897
|
+
}, {
|
|
18898
|
+
value: "008",
|
|
18899
|
+
label: "阿尔巴尼亚"
|
|
18900
|
+
}, {
|
|
18901
|
+
value: "010",
|
|
18902
|
+
label: "南极洲"
|
|
18903
|
+
}, {
|
|
18904
|
+
value: "012",
|
|
18905
|
+
label: "阿尔及利亚"
|
|
18906
|
+
}, {
|
|
18907
|
+
value: "016",
|
|
18908
|
+
label: "美属萨摩亚"
|
|
18909
|
+
}, {
|
|
18910
|
+
value: "020",
|
|
18911
|
+
label: "安道尔"
|
|
18912
|
+
}, {
|
|
18913
|
+
value: "024",
|
|
18914
|
+
label: "安哥拉"
|
|
18915
|
+
}, {
|
|
18916
|
+
value: "028",
|
|
18917
|
+
label: "安提瓜和巴布达"
|
|
18918
|
+
}, {
|
|
18919
|
+
value: "031",
|
|
18920
|
+
label: "阿塞拜疆"
|
|
18921
|
+
}, {
|
|
18922
|
+
value: "032",
|
|
18923
|
+
label: "阿根廷"
|
|
18924
|
+
}, {
|
|
18925
|
+
value: "036",
|
|
18926
|
+
label: "澳大利亚"
|
|
18927
|
+
}, {
|
|
18928
|
+
value: "040",
|
|
18929
|
+
label: "奥地利"
|
|
18930
|
+
}, {
|
|
18931
|
+
value: "044",
|
|
18932
|
+
label: "巴哈马"
|
|
18933
|
+
}, {
|
|
18934
|
+
value: "048",
|
|
18935
|
+
label: "巴林"
|
|
18936
|
+
}, {
|
|
18937
|
+
value: "050",
|
|
18938
|
+
label: "孟加拉国"
|
|
18939
|
+
}, {
|
|
18940
|
+
value: "051",
|
|
18941
|
+
label: "亚美尼亚"
|
|
18942
|
+
}, {
|
|
18943
|
+
value: "052",
|
|
18944
|
+
label: "巴巴多斯"
|
|
18945
|
+
}, {
|
|
18946
|
+
value: "056",
|
|
18947
|
+
label: "比利时"
|
|
18948
|
+
}, {
|
|
18949
|
+
value: "060",
|
|
18950
|
+
label: "百慕大"
|
|
18951
|
+
}, {
|
|
18952
|
+
value: "064",
|
|
18953
|
+
label: "不丹"
|
|
18954
|
+
}, {
|
|
18955
|
+
value: "068",
|
|
18956
|
+
label: "玻利维亚"
|
|
18957
|
+
}, {
|
|
18958
|
+
value: "070",
|
|
18959
|
+
label: "波黑"
|
|
18960
|
+
}, {
|
|
18961
|
+
value: "072",
|
|
18962
|
+
label: "博茨瓦纳"
|
|
18963
|
+
}, {
|
|
18964
|
+
value: "074",
|
|
18965
|
+
label: "布维岛"
|
|
18966
|
+
}, {
|
|
18967
|
+
value: "076",
|
|
18968
|
+
label: "巴西"
|
|
18969
|
+
}, {
|
|
18970
|
+
value: "084",
|
|
18971
|
+
label: "伯利兹"
|
|
18972
|
+
}, {
|
|
18973
|
+
value: "086",
|
|
18974
|
+
label: "英属印度洋领地"
|
|
18975
|
+
}, {
|
|
18976
|
+
value: "090",
|
|
18977
|
+
label: "所罗门群岛"
|
|
18978
|
+
}, {
|
|
18979
|
+
value: "092",
|
|
18980
|
+
label: "英属维尔京群岛"
|
|
18981
|
+
}, {
|
|
18982
|
+
value: "096",
|
|
18983
|
+
label: "文莱"
|
|
18984
|
+
}, {
|
|
18985
|
+
value: "100",
|
|
18986
|
+
label: "保加利亚"
|
|
18987
|
+
}, {
|
|
18988
|
+
value: "104",
|
|
18989
|
+
label: "缅甸"
|
|
18990
|
+
}, {
|
|
18991
|
+
value: "108",
|
|
18992
|
+
label: "布隆迪"
|
|
18993
|
+
}, {
|
|
18994
|
+
value: "112",
|
|
18995
|
+
label: "白俄罗斯"
|
|
18996
|
+
}, {
|
|
18997
|
+
value: "116",
|
|
18998
|
+
label: "柬埔寨"
|
|
18999
|
+
}, {
|
|
19000
|
+
value: "120",
|
|
19001
|
+
label: "喀麦隆"
|
|
19002
|
+
}, {
|
|
19003
|
+
value: "124",
|
|
19004
|
+
label: "加拿大"
|
|
19005
|
+
}, {
|
|
19006
|
+
value: "132",
|
|
19007
|
+
label: "佛得角"
|
|
19008
|
+
}, {
|
|
19009
|
+
value: "136",
|
|
19010
|
+
label: "开曼群岛"
|
|
19011
|
+
}, {
|
|
19012
|
+
value: "140",
|
|
19013
|
+
label: "中非"
|
|
19014
|
+
}, {
|
|
19015
|
+
value: "144",
|
|
19016
|
+
label: "斯里兰卡"
|
|
19017
|
+
}, {
|
|
19018
|
+
value: "148",
|
|
19019
|
+
label: "乍得"
|
|
19020
|
+
}, {
|
|
19021
|
+
value: "152",
|
|
19022
|
+
label: "智利"
|
|
19023
|
+
}, {
|
|
19024
|
+
value: "162",
|
|
19025
|
+
label: "圣诞岛"
|
|
19026
|
+
}, {
|
|
19027
|
+
value: "166",
|
|
19028
|
+
label: "科科斯(基林)群岛"
|
|
19029
|
+
}, {
|
|
19030
|
+
value: "170",
|
|
19031
|
+
label: "哥伦比亚"
|
|
19032
|
+
}, {
|
|
19033
|
+
value: "174",
|
|
19034
|
+
label: "科摩罗"
|
|
19035
|
+
}, {
|
|
19036
|
+
value: "175",
|
|
19037
|
+
label: "马约特"
|
|
19038
|
+
}, {
|
|
19039
|
+
value: "178",
|
|
19040
|
+
label: "刚果(布)"
|
|
19041
|
+
}, {
|
|
19042
|
+
value: "180",
|
|
19043
|
+
label: "刚果(金)"
|
|
19044
|
+
}, {
|
|
19045
|
+
value: "184",
|
|
19046
|
+
label: "库克群岛"
|
|
19047
|
+
}, {
|
|
19048
|
+
value: "188",
|
|
19049
|
+
label: "哥斯达黎加"
|
|
19050
|
+
}, {
|
|
19051
|
+
value: "191",
|
|
19052
|
+
label: "克罗地亚"
|
|
19053
|
+
}, {
|
|
19054
|
+
value: "192",
|
|
19055
|
+
label: "古巴"
|
|
19056
|
+
}, {
|
|
19057
|
+
value: "196",
|
|
19058
|
+
label: "塞浦路斯"
|
|
19059
|
+
}, {
|
|
19060
|
+
value: "203",
|
|
19061
|
+
label: "捷克"
|
|
19062
|
+
}, {
|
|
19063
|
+
value: "204",
|
|
19064
|
+
label: "贝宁"
|
|
19065
|
+
}, {
|
|
19066
|
+
value: "208",
|
|
19067
|
+
label: "丹麦"
|
|
19068
|
+
}, {
|
|
19069
|
+
value: "212",
|
|
19070
|
+
label: "多米尼克"
|
|
19071
|
+
}, {
|
|
19072
|
+
value: "214",
|
|
19073
|
+
label: "多米尼加"
|
|
19074
|
+
}, {
|
|
19075
|
+
value: "218",
|
|
19076
|
+
label: "厄瓜多尔"
|
|
19077
|
+
}, {
|
|
19078
|
+
value: "222",
|
|
19079
|
+
label: "萨尔瓦多"
|
|
19080
|
+
}, {
|
|
19081
|
+
value: "226",
|
|
19082
|
+
label: "赤道几内亚"
|
|
19083
|
+
}, {
|
|
19084
|
+
value: "231",
|
|
19085
|
+
label: "埃塞俄比亚"
|
|
19086
|
+
}, {
|
|
19087
|
+
value: "232",
|
|
19088
|
+
label: "厄立特里亚"
|
|
19089
|
+
}, {
|
|
19090
|
+
value: "233",
|
|
19091
|
+
label: "爱沙尼亚"
|
|
19092
|
+
}, {
|
|
19093
|
+
value: "234",
|
|
19094
|
+
label: "法罗群岛"
|
|
19095
|
+
}, {
|
|
19096
|
+
value: "238",
|
|
19097
|
+
label: "福克兰群岛"
|
|
19098
|
+
}, {
|
|
19099
|
+
value: "239",
|
|
19100
|
+
label: "南乔治亚岛和南桑德韦奇岛"
|
|
19101
|
+
}, {
|
|
19102
|
+
value: "242",
|
|
19103
|
+
label: "斐济"
|
|
19104
|
+
}, {
|
|
19105
|
+
value: "246",
|
|
19106
|
+
label: "芬兰"
|
|
19107
|
+
}, {
|
|
19108
|
+
value: "250",
|
|
19109
|
+
label: "法国"
|
|
19110
|
+
}, {
|
|
19111
|
+
value: "254",
|
|
19112
|
+
label: "法属圭亚那"
|
|
19113
|
+
}, {
|
|
19114
|
+
value: "258",
|
|
19115
|
+
label: "法属波利尼西亚"
|
|
19116
|
+
}, {
|
|
19117
|
+
value: "260",
|
|
19118
|
+
label: "法属南部领地"
|
|
19119
|
+
}, {
|
|
19120
|
+
value: "262",
|
|
19121
|
+
label: "吉布提"
|
|
19122
|
+
}, {
|
|
19123
|
+
value: "266",
|
|
19124
|
+
label: "加蓬"
|
|
19125
|
+
}, {
|
|
19126
|
+
value: "268",
|
|
19127
|
+
label: "格鲁吉亚"
|
|
19128
|
+
}, {
|
|
19129
|
+
value: "270",
|
|
19130
|
+
label: "冈比亚"
|
|
19131
|
+
}, {
|
|
19132
|
+
value: "275",
|
|
19133
|
+
label: "巴勒斯坦"
|
|
19134
|
+
}, {
|
|
19135
|
+
value: "276",
|
|
19136
|
+
label: "德国"
|
|
19137
|
+
}, {
|
|
19138
|
+
value: "288",
|
|
19139
|
+
label: "加纳"
|
|
19140
|
+
}, {
|
|
19141
|
+
value: "292",
|
|
19142
|
+
label: "直布罗陀"
|
|
19143
|
+
}, {
|
|
19144
|
+
value: "296",
|
|
19145
|
+
label: "基里巴斯"
|
|
19146
|
+
}, {
|
|
19147
|
+
value: "300",
|
|
19148
|
+
label: "希腊"
|
|
19149
|
+
}, {
|
|
19150
|
+
value: "304",
|
|
19151
|
+
label: "格陵兰"
|
|
19152
|
+
}, {
|
|
19153
|
+
value: "308",
|
|
19154
|
+
label: "格林纳达"
|
|
19155
|
+
}, {
|
|
19156
|
+
value: "312",
|
|
19157
|
+
label: "瓜德罗普"
|
|
19158
|
+
}, {
|
|
19159
|
+
value: "316",
|
|
19160
|
+
label: "关岛"
|
|
19161
|
+
}, {
|
|
19162
|
+
value: "320",
|
|
19163
|
+
label: "危地马拉"
|
|
19164
|
+
}, {
|
|
19165
|
+
value: "324",
|
|
19166
|
+
label: "几内亚"
|
|
19167
|
+
}, {
|
|
19168
|
+
value: "328",
|
|
19169
|
+
label: "圭亚那"
|
|
19170
|
+
}, {
|
|
19171
|
+
value: "332",
|
|
19172
|
+
label: "海地"
|
|
19173
|
+
}, {
|
|
19174
|
+
value: "334",
|
|
19175
|
+
label: "赫德岛和麦克唐纳岛"
|
|
19176
|
+
}, {
|
|
19177
|
+
value: "336",
|
|
19178
|
+
label: "梵蒂冈"
|
|
19179
|
+
}, {
|
|
19180
|
+
value: "340",
|
|
19181
|
+
label: "洪都拉斯"
|
|
19182
|
+
}, {
|
|
19183
|
+
value: "348",
|
|
19184
|
+
label: "匈牙利"
|
|
19185
|
+
}, {
|
|
19186
|
+
value: "352",
|
|
19187
|
+
label: "冰岛"
|
|
19188
|
+
}, {
|
|
19189
|
+
value: "356",
|
|
19190
|
+
label: "印度"
|
|
19191
|
+
}, {
|
|
19192
|
+
value: "360",
|
|
19193
|
+
label: "印度尼西亚"
|
|
19194
|
+
}, {
|
|
19195
|
+
value: "364",
|
|
19196
|
+
label: "伊朗"
|
|
19197
|
+
}, {
|
|
19198
|
+
value: "368",
|
|
19199
|
+
label: "伊拉克"
|
|
19200
|
+
}, {
|
|
19201
|
+
value: "372",
|
|
19202
|
+
label: "爱尔兰"
|
|
19203
|
+
}, {
|
|
19204
|
+
value: "376",
|
|
19205
|
+
label: "以色列"
|
|
19206
|
+
}, {
|
|
19207
|
+
value: "380",
|
|
19208
|
+
label: "意大利"
|
|
19209
|
+
}, {
|
|
19210
|
+
value: "384",
|
|
19211
|
+
label: "科特迪瓦"
|
|
19212
|
+
}, {
|
|
19213
|
+
value: "388",
|
|
19214
|
+
label: "牙买加"
|
|
19215
|
+
}, {
|
|
19216
|
+
value: "392",
|
|
19217
|
+
label: "日本"
|
|
19218
|
+
}, {
|
|
19219
|
+
value: "398",
|
|
19220
|
+
label: "哈萨克斯坦"
|
|
19221
|
+
}, {
|
|
19222
|
+
value: "400",
|
|
19223
|
+
label: "约旦"
|
|
19224
|
+
}, {
|
|
19225
|
+
value: "404",
|
|
19226
|
+
label: "肯尼亚"
|
|
19227
|
+
}, {
|
|
19228
|
+
value: "408",
|
|
19229
|
+
label: "朝鲜"
|
|
19230
|
+
}, {
|
|
19231
|
+
value: "410",
|
|
19232
|
+
label: "韩国"
|
|
19233
|
+
}, {
|
|
19234
|
+
value: "414",
|
|
19235
|
+
label: "科威特"
|
|
19236
|
+
}, {
|
|
19237
|
+
value: "417",
|
|
19238
|
+
label: "吉尔吉斯斯坦"
|
|
19239
|
+
}, {
|
|
19240
|
+
value: "418",
|
|
19241
|
+
label: "老挝"
|
|
19242
|
+
}, {
|
|
19243
|
+
value: "422",
|
|
19244
|
+
label: "黎巴嫩"
|
|
19245
|
+
}, {
|
|
19246
|
+
value: "426",
|
|
19247
|
+
label: "莱索托"
|
|
19248
|
+
}, {
|
|
19249
|
+
value: "428",
|
|
19250
|
+
label: "拉脱维亚"
|
|
19251
|
+
}, {
|
|
19252
|
+
value: "430",
|
|
19253
|
+
label: "利比里亚"
|
|
19254
|
+
}, {
|
|
19255
|
+
value: "434",
|
|
19256
|
+
label: "利比亚"
|
|
19257
|
+
}, {
|
|
19258
|
+
value: "438",
|
|
19259
|
+
label: "列支敦士登"
|
|
19260
|
+
}, {
|
|
19261
|
+
value: "440",
|
|
19262
|
+
label: "立陶宛"
|
|
19263
|
+
}, {
|
|
19264
|
+
value: "442",
|
|
19265
|
+
label: "卢森堡"
|
|
19266
|
+
}, {
|
|
19267
|
+
value: "450",
|
|
19268
|
+
label: "马达加斯加"
|
|
19269
|
+
}, {
|
|
19270
|
+
value: "454",
|
|
19271
|
+
label: "马拉维"
|
|
19272
|
+
}, {
|
|
19273
|
+
value: "458",
|
|
19274
|
+
label: "马来西亚"
|
|
19275
|
+
}, {
|
|
19276
|
+
value: "462",
|
|
19277
|
+
label: "马尔代夫"
|
|
19278
|
+
}, {
|
|
19279
|
+
value: "466",
|
|
19280
|
+
label: "马里"
|
|
19281
|
+
}, {
|
|
19282
|
+
value: "470",
|
|
19283
|
+
label: "马耳他"
|
|
19284
|
+
}, {
|
|
19285
|
+
value: "474",
|
|
19286
|
+
label: "马提尼克"
|
|
19287
|
+
}, {
|
|
19288
|
+
value: "478",
|
|
19289
|
+
label: "毛里塔尼亚"
|
|
19290
|
+
}, {
|
|
19291
|
+
value: "480",
|
|
19292
|
+
label: "毛里求斯"
|
|
19293
|
+
}, {
|
|
19294
|
+
value: "484",
|
|
19295
|
+
label: "墨西哥"
|
|
19296
|
+
}, {
|
|
19297
|
+
value: "492",
|
|
19298
|
+
label: "摩纳哥"
|
|
19299
|
+
}, {
|
|
19300
|
+
value: "496",
|
|
19301
|
+
label: "蒙古"
|
|
19302
|
+
}, {
|
|
19303
|
+
value: "498",
|
|
19304
|
+
label: "摩尔多瓦"
|
|
19305
|
+
}, {
|
|
19306
|
+
value: "499",
|
|
19307
|
+
label: "黑山"
|
|
19308
|
+
}, {
|
|
19309
|
+
value: "500",
|
|
19310
|
+
label: "蒙特塞拉特"
|
|
19311
|
+
}, {
|
|
19312
|
+
value: "504",
|
|
19313
|
+
label: "摩洛哥"
|
|
19314
|
+
}, {
|
|
19315
|
+
value: "508",
|
|
19316
|
+
label: "莫桑比克"
|
|
19317
|
+
}, {
|
|
19318
|
+
value: "512",
|
|
19319
|
+
label: "阿曼"
|
|
19320
|
+
}, {
|
|
19321
|
+
value: "516",
|
|
19322
|
+
label: "纳米比亚"
|
|
19323
|
+
}, {
|
|
19324
|
+
value: "520",
|
|
19325
|
+
label: "瑙鲁"
|
|
19326
|
+
}, {
|
|
19327
|
+
value: "524",
|
|
19328
|
+
label: "尼泊尔"
|
|
19329
|
+
}, {
|
|
19330
|
+
value: "528",
|
|
19331
|
+
label: "荷兰"
|
|
19332
|
+
}, {
|
|
19333
|
+
value: "530",
|
|
19334
|
+
label: "荷属安的列斯"
|
|
19335
|
+
}, {
|
|
19336
|
+
value: "533",
|
|
19337
|
+
label: "阿鲁巴"
|
|
19338
|
+
}, {
|
|
19339
|
+
value: "540",
|
|
19340
|
+
label: "新喀里多尼亚"
|
|
19341
|
+
}, {
|
|
19342
|
+
value: "548",
|
|
19343
|
+
label: "瓦努阿图"
|
|
19344
|
+
}, {
|
|
19345
|
+
value: "554",
|
|
19346
|
+
label: "新西兰"
|
|
19347
|
+
}, {
|
|
19348
|
+
value: "558",
|
|
19349
|
+
label: "尼加拉瓜"
|
|
19350
|
+
}, {
|
|
19351
|
+
value: "562",
|
|
19352
|
+
label: "尼日尔"
|
|
19353
|
+
}, {
|
|
19354
|
+
value: "566",
|
|
19355
|
+
label: "尼日利亚"
|
|
19356
|
+
}, {
|
|
19357
|
+
value: "570",
|
|
19358
|
+
label: "纽埃"
|
|
19359
|
+
}, {
|
|
19360
|
+
value: "574",
|
|
19361
|
+
label: "诺福克岛"
|
|
19362
|
+
}, {
|
|
19363
|
+
value: "578",
|
|
19364
|
+
label: "挪威"
|
|
19365
|
+
}, {
|
|
19366
|
+
value: "580",
|
|
19367
|
+
label: "北马里亚纳"
|
|
19368
|
+
}, {
|
|
19369
|
+
value: "581",
|
|
19370
|
+
label: "美国本土外小岛屿"
|
|
19371
|
+
}, {
|
|
19372
|
+
value: "583",
|
|
19373
|
+
label: "密克罗尼西亚联邦"
|
|
19374
|
+
}, {
|
|
19375
|
+
value: "584",
|
|
19376
|
+
label: "马绍尔群岛"
|
|
19377
|
+
}, {
|
|
19378
|
+
value: "585",
|
|
19379
|
+
label: "帕劳"
|
|
19380
|
+
}, {
|
|
19381
|
+
value: "586",
|
|
19382
|
+
label: "巴基斯坦"
|
|
19383
|
+
}, {
|
|
19384
|
+
value: "591",
|
|
19385
|
+
label: "巴拿马"
|
|
19386
|
+
}, {
|
|
19387
|
+
value: "598",
|
|
19388
|
+
label: "巴布亚新几内亚"
|
|
19389
|
+
}, {
|
|
19390
|
+
value: "600",
|
|
19391
|
+
label: "巴拉圭"
|
|
19392
|
+
}, {
|
|
19393
|
+
value: "604",
|
|
19394
|
+
label: "秘鲁"
|
|
19395
|
+
}, {
|
|
19396
|
+
value: "608",
|
|
19397
|
+
label: "菲律宾"
|
|
19398
|
+
}, {
|
|
19399
|
+
value: "612",
|
|
19400
|
+
label: "皮特凯恩"
|
|
19401
|
+
}, {
|
|
19402
|
+
value: "616",
|
|
19403
|
+
label: "波兰"
|
|
19404
|
+
}, {
|
|
19405
|
+
value: "620",
|
|
19406
|
+
label: "葡萄牙"
|
|
19407
|
+
}, {
|
|
19408
|
+
value: "624",
|
|
19409
|
+
label: "几内亚比绍"
|
|
19410
|
+
}, {
|
|
19411
|
+
value: "626",
|
|
19412
|
+
label: "东帝汶"
|
|
19413
|
+
}, {
|
|
19414
|
+
value: "630",
|
|
19415
|
+
label: "波多黎各"
|
|
19416
|
+
}, {
|
|
19417
|
+
value: "634",
|
|
19418
|
+
label: "卡塔尔"
|
|
19419
|
+
}, {
|
|
19420
|
+
value: "638",
|
|
19421
|
+
label: "留尼汪"
|
|
19422
|
+
}, {
|
|
19423
|
+
value: "642",
|
|
19424
|
+
label: "罗马尼亚"
|
|
19425
|
+
}, {
|
|
19426
|
+
value: "643",
|
|
19427
|
+
label: "俄罗斯联邦"
|
|
19428
|
+
}, {
|
|
19429
|
+
value: "646",
|
|
19430
|
+
label: "卢旺达"
|
|
19431
|
+
}, {
|
|
19432
|
+
value: "654",
|
|
19433
|
+
label: "圣赫勒拿"
|
|
19434
|
+
}, {
|
|
19435
|
+
value: "659",
|
|
19436
|
+
label: "圣基茨和尼维斯"
|
|
19437
|
+
}, {
|
|
19438
|
+
value: "660",
|
|
19439
|
+
label: "安圭拉"
|
|
19440
|
+
}, {
|
|
19441
|
+
value: "662",
|
|
19442
|
+
label: "圣卢西亚"
|
|
19443
|
+
}, {
|
|
19444
|
+
value: "666",
|
|
19445
|
+
label: "圣皮埃尔和密克隆"
|
|
19446
|
+
}, {
|
|
19447
|
+
value: "670",
|
|
19448
|
+
label: "圣文森特和格林纳丁斯"
|
|
19449
|
+
}, {
|
|
19450
|
+
value: "674",
|
|
19451
|
+
label: "圣马力诺"
|
|
19452
|
+
}, {
|
|
19453
|
+
value: "678",
|
|
19454
|
+
label: "圣多美和普林西比"
|
|
19455
|
+
}, {
|
|
19456
|
+
value: "682",
|
|
19457
|
+
label: "沙特阿拉伯"
|
|
19458
|
+
}, {
|
|
19459
|
+
value: "686",
|
|
19460
|
+
label: "塞内加尔"
|
|
19461
|
+
}, {
|
|
19462
|
+
value: "688",
|
|
19463
|
+
label: "塞尔维亚"
|
|
19464
|
+
}, {
|
|
19465
|
+
value: "690",
|
|
19466
|
+
label: "塞舌尔"
|
|
19467
|
+
}, {
|
|
19468
|
+
value: "694",
|
|
19469
|
+
label: "塞拉利昂"
|
|
19470
|
+
}, {
|
|
19471
|
+
value: "702",
|
|
19472
|
+
label: "新加坡"
|
|
19473
|
+
}, {
|
|
19474
|
+
value: "703",
|
|
19475
|
+
label: "斯洛伐克"
|
|
19476
|
+
}, {
|
|
19477
|
+
value: "704",
|
|
19478
|
+
label: "越南"
|
|
19479
|
+
}, {
|
|
19480
|
+
value: "705",
|
|
19481
|
+
label: "斯洛文尼亚"
|
|
19482
|
+
}, {
|
|
19483
|
+
value: "706",
|
|
19484
|
+
label: "索马里"
|
|
19485
|
+
}, {
|
|
19486
|
+
value: "710",
|
|
19487
|
+
label: "南非"
|
|
19488
|
+
}, {
|
|
19489
|
+
value: "716",
|
|
19490
|
+
label: "津巴布韦"
|
|
19491
|
+
}, {
|
|
19492
|
+
value: "724",
|
|
19493
|
+
label: "西班牙"
|
|
19494
|
+
}, {
|
|
19495
|
+
value: "728",
|
|
19496
|
+
label: "南苏丹"
|
|
19497
|
+
}, {
|
|
19498
|
+
value: "732",
|
|
19499
|
+
label: "西撒哈拉"
|
|
19500
|
+
}, {
|
|
19501
|
+
value: "736",
|
|
19502
|
+
label: "苏丹"
|
|
19503
|
+
}, {
|
|
19504
|
+
value: "740",
|
|
19505
|
+
label: "苏里南"
|
|
19506
|
+
}, {
|
|
19507
|
+
value: "744",
|
|
19508
|
+
label: "斯瓦尔巴岛和扬马延岛"
|
|
19509
|
+
}, {
|
|
19510
|
+
value: "748",
|
|
19511
|
+
label: "斯威士兰"
|
|
19512
|
+
}, {
|
|
19513
|
+
value: "752",
|
|
19514
|
+
label: "瑞典"
|
|
19515
|
+
}, {
|
|
19516
|
+
value: "756",
|
|
19517
|
+
label: "瑞士"
|
|
19518
|
+
}, {
|
|
19519
|
+
value: "760",
|
|
19520
|
+
label: "叙利亚"
|
|
19521
|
+
}, {
|
|
19522
|
+
value: "762",
|
|
19523
|
+
label: "塔吉克斯坦"
|
|
19524
|
+
}, {
|
|
19525
|
+
value: "764",
|
|
19526
|
+
label: "泰国"
|
|
19527
|
+
}, {
|
|
19528
|
+
value: "768",
|
|
19529
|
+
label: "多哥"
|
|
19530
|
+
}, {
|
|
19531
|
+
value: "772",
|
|
19532
|
+
label: "托克劳"
|
|
19533
|
+
}, {
|
|
19534
|
+
value: "776",
|
|
19535
|
+
label: "汤加"
|
|
19536
|
+
}, {
|
|
19537
|
+
value: "780",
|
|
19538
|
+
label: "特立尼达和多巴哥"
|
|
19539
|
+
}, {
|
|
19540
|
+
value: "784",
|
|
19541
|
+
label: "阿联酋"
|
|
19542
|
+
}, {
|
|
19543
|
+
value: "788",
|
|
19544
|
+
label: "突尼斯"
|
|
19545
|
+
}, {
|
|
19546
|
+
value: "792",
|
|
19547
|
+
label: "土耳其"
|
|
19548
|
+
}, {
|
|
19549
|
+
value: "795",
|
|
19550
|
+
label: "土库曼斯坦"
|
|
19551
|
+
}, {
|
|
19552
|
+
value: "796",
|
|
19553
|
+
label: "特克斯和凯科斯群岛"
|
|
19554
|
+
}, {
|
|
19555
|
+
value: "798",
|
|
19556
|
+
label: "图瓦卢"
|
|
19557
|
+
}, {
|
|
19558
|
+
value: "800",
|
|
19559
|
+
label: "乌干达"
|
|
19560
|
+
}, {
|
|
19561
|
+
value: "804",
|
|
19562
|
+
label: "乌克兰"
|
|
19563
|
+
}, {
|
|
19564
|
+
value: "807",
|
|
19565
|
+
label: "前南马其顿"
|
|
19566
|
+
}, {
|
|
19567
|
+
value: "818",
|
|
19568
|
+
label: "埃及"
|
|
19569
|
+
}, {
|
|
19570
|
+
value: "826",
|
|
19571
|
+
label: "英国"
|
|
19572
|
+
}, {
|
|
19573
|
+
value: "831",
|
|
19574
|
+
label: "根西岛"
|
|
19575
|
+
}, {
|
|
19576
|
+
value: "832",
|
|
19577
|
+
label: "泽西岛"
|
|
19578
|
+
}, {
|
|
19579
|
+
value: "833",
|
|
19580
|
+
label: "马恩岛"
|
|
19581
|
+
}, {
|
|
19582
|
+
value: "834",
|
|
19583
|
+
label: "坦桑尼亚"
|
|
19584
|
+
}, {
|
|
19585
|
+
value: "840",
|
|
19586
|
+
label: "美国"
|
|
19587
|
+
}, {
|
|
19588
|
+
value: "850",
|
|
19589
|
+
label: "美属维尔京群岛"
|
|
19590
|
+
}, {
|
|
19591
|
+
value: "854",
|
|
19592
|
+
label: "布基纳法索"
|
|
19593
|
+
}, {
|
|
19594
|
+
value: "858",
|
|
19595
|
+
label: "乌拉圭"
|
|
19596
|
+
}, {
|
|
19597
|
+
value: "860",
|
|
19598
|
+
label: "乌兹别克斯坦"
|
|
19599
|
+
}, {
|
|
19600
|
+
value: "862",
|
|
19601
|
+
label: "委内瑞拉"
|
|
19602
|
+
}, {
|
|
19603
|
+
value: "876",
|
|
19604
|
+
label: "瓦利斯和富图纳"
|
|
19605
|
+
}, {
|
|
19606
|
+
value: "882",
|
|
19607
|
+
label: "萨摩亚"
|
|
19608
|
+
}, {
|
|
19609
|
+
value: "887",
|
|
19610
|
+
label: "也门"
|
|
19611
|
+
}, {
|
|
19612
|
+
value: "891",
|
|
19613
|
+
label: "南斯拉夫"
|
|
19614
|
+
}, {
|
|
19615
|
+
value: "894",
|
|
19616
|
+
label: "赞比亚"
|
|
19617
|
+
}, {
|
|
19618
|
+
value: "A00",
|
|
19619
|
+
label: "科索沃"
|
|
19620
|
+
}];
|
|
19621
|
+
|
|
19622
|
+
function getLable(value) {
|
|
19623
|
+
var _option$find;
|
|
19624
|
+
|
|
19625
|
+
return ((_option$find = option.find(function (e) {
|
|
19626
|
+
return e.value === value;
|
|
19627
|
+
})) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
|
|
19628
|
+
}
|
|
19629
|
+
|
|
19630
|
+
if (props.readOnly) {
|
|
19631
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
19632
|
+
className: 'digtal-stakeholder-form-text'
|
|
19633
|
+
}, getLable(props.value));
|
|
19634
|
+
} else {
|
|
19635
|
+
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
19636
|
+
style: {
|
|
19637
|
+
width: 100
|
|
19638
|
+
},
|
|
19639
|
+
options: option
|
|
19640
|
+
}, props));
|
|
19641
|
+
}
|
|
19642
|
+
}
|
|
19643
|
+
}]);
|
|
19644
|
+
|
|
19645
|
+
return NationalSelect;
|
|
19646
|
+
}(React.Component);
|
|
19647
|
+
|
|
18800
19648
|
var RULES = {
|
|
18801
19649
|
companyName: function companyName(label) {
|
|
18802
19650
|
return [{
|
|
@@ -18857,83 +19705,358 @@ var RULES = {
|
|
|
18857
19705
|
var formatCompanyName = function formatCompanyName(e) {
|
|
18858
19706
|
var _e$target;
|
|
18859
19707
|
|
|
18860
|
-
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
19708
|
+
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
19709
|
+
|
|
19710
|
+
if (value) {
|
|
19711
|
+
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
19712
|
+
}
|
|
19713
|
+
};
|
|
19714
|
+
/** 干系人 */
|
|
19715
|
+
|
|
19716
|
+
|
|
19717
|
+
var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
19718
|
+
var form = props.form,
|
|
19719
|
+
isShowImportButton = props.isShowImportButton,
|
|
19720
|
+
allowEditFlag = props.allowEditFlag,
|
|
19721
|
+
onClickImportButton = props.onClickImportButton,
|
|
19722
|
+
_props$isVatNormal = props.isVatNormal,
|
|
19723
|
+
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
19724
|
+
|
|
19725
|
+
var _React$useState = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
19726
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19727
|
+
isExpand = _React$useState2[0],
|
|
19728
|
+
setExpand = _React$useState2[1];
|
|
19729
|
+
|
|
19730
|
+
var _React$useState3 = React.useState(props.naturalPersonFlag ? props.naturalPersonFlag : 'COMPANY'),
|
|
19731
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
19732
|
+
naturalPersonFlag = _React$useState4[0],
|
|
19733
|
+
setNaturalPersonFlag = _React$useState4[1];
|
|
19734
|
+
|
|
19735
|
+
var _React$useState5 = React.useState(''),
|
|
19736
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
19737
|
+
validateStatus = _React$useState6[0],
|
|
19738
|
+
setStatus = _React$useState6[1];
|
|
19739
|
+
|
|
19740
|
+
var _React$useState7 = React.useState(''),
|
|
19741
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
19742
|
+
errorInfo = _React$useState8[0],
|
|
19743
|
+
setInfo = _React$useState8[1];
|
|
19744
|
+
|
|
19745
|
+
var _React$useState9 = React.useState(''),
|
|
19746
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
19747
|
+
nation = _React$useState10[0],
|
|
19748
|
+
setNationStatue = _React$useState10[1];
|
|
19749
|
+
|
|
19750
|
+
var _React$useState11 = React.useState(''),
|
|
19751
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
19752
|
+
nationInfo = _React$useState12[0],
|
|
19753
|
+
setNation = _React$useState12[1];
|
|
19754
|
+
|
|
19755
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
19756
|
+
var controller = Invoice.useInvoiceController();
|
|
19757
|
+
var model = controller.useMemo(function (s) {
|
|
19758
|
+
return s.model;
|
|
19759
|
+
}, []);
|
|
19760
|
+
var disableds = controller.useMemo(function (s) {
|
|
19761
|
+
return s.stakeholder.disableds || [];
|
|
19762
|
+
}, []);
|
|
19763
|
+
var rulesMap = controller.useMemo(function (s) {
|
|
19764
|
+
return s.stakeholder.rulesMap || {};
|
|
19765
|
+
}, []);
|
|
19766
|
+
/** 乐企 */
|
|
19767
|
+
|
|
19768
|
+
var leqispanW = React.useMemo(function () {
|
|
19769
|
+
if (props.leqi) {
|
|
19770
|
+
return 0;
|
|
19771
|
+
} else {
|
|
19772
|
+
return 2;
|
|
19773
|
+
}
|
|
19774
|
+
}, [props.leqi, props.riskData]);
|
|
19775
|
+
/** 直连 */
|
|
19776
|
+
|
|
19777
|
+
var riskspanW = React.useMemo(function () {
|
|
19778
|
+
if (props.riskData) {
|
|
19779
|
+
return 0;
|
|
19780
|
+
} else {
|
|
19781
|
+
return 2;
|
|
19782
|
+
}
|
|
19783
|
+
}, [props.leqi, props.riskData]);
|
|
19784
|
+
var readOnly = React.useMemo(function () {
|
|
19785
|
+
if (model === 'readOnly') return true;
|
|
19786
|
+
if (model === 'prefab') return true;
|
|
19787
|
+
return false;
|
|
19788
|
+
}, [model]);
|
|
19789
|
+
var onExpand = React.useCallback(function () {
|
|
19790
|
+
setExpand(function (e) {
|
|
19791
|
+
return !e;
|
|
19792
|
+
});
|
|
19793
|
+
}, []);
|
|
19794
|
+
var isReadOnly = React.useCallback(function (field) {
|
|
19795
|
+
return readOnly || disableds.indexOf(field) >= 0;
|
|
19796
|
+
}, [disableds, readOnly]);
|
|
19797
|
+
var isReadOnly2 = React.useCallback(function (field) {
|
|
19798
|
+
return model === 'readOnly' || model === 'prefab' && !allowEditFlag;
|
|
19799
|
+
}, [allowEditFlag, model]);
|
|
19800
|
+
var getRules = React.useCallback(function (field, defaultRules) {
|
|
19801
|
+
if (isReadOnly(field)) return [];
|
|
19802
|
+
return rulesMap[field] || defaultRules;
|
|
19803
|
+
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
19804
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
19805
|
+
|
|
19806
|
+
React.useEffect(function () {
|
|
19807
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
19808
|
+
}, [props.isExpand]);
|
|
19809
|
+
React.useEffect(function () {
|
|
19810
|
+
setNaturalPersonFlag(props.naturalPersonFlag ? props.naturalPersonFlag : 'COMPANY');
|
|
19811
|
+
}, [props.naturalPersonFlag]);
|
|
19812
|
+
var onChangeType = React.useCallback(function (value) {
|
|
19813
|
+
var buyerTaxId = form === null || form === void 0 ? void 0 : form.getFieldValue("buyerTaxId");
|
|
19814
|
+
var certificateNumber = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
19815
|
+
var nationality = form === null || form === void 0 ? void 0 : form.getFieldValue("nationality");
|
|
19816
|
+
|
|
19817
|
+
if (value === "201") {
|
|
19818
|
+
// 当“自然人证件类型”选择“201:居民身份证”时,校验是否为“156:中国’
|
|
19819
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
19820
|
+
nationality: "156"
|
|
19821
|
+
});
|
|
19822
|
+
setNationStatue('');
|
|
19823
|
+
setNation('');
|
|
19824
|
+
|
|
19825
|
+
if (buyerTaxId !== certificateNumber) {
|
|
19826
|
+
setStatus('error');
|
|
19827
|
+
setInfo('证件号码应与购方税号保持一致');
|
|
19828
|
+
}
|
|
19829
|
+
} else if (value === "210") {
|
|
19830
|
+
if (value.startsWith("M")) {
|
|
19831
|
+
//如果“证件号码”以M开头,"国籍(或地区头,)”必须为“446:中国澳门”;校验证件号码必须以H或M开头
|
|
19832
|
+
if (nationality !== '446') {
|
|
19833
|
+
setNationStatue('error');
|
|
19834
|
+
setNation('请选择正确的国籍');
|
|
19835
|
+
} else {
|
|
19836
|
+
setNationStatue('');
|
|
19837
|
+
setNation('');
|
|
19838
|
+
}
|
|
19839
|
+
} else if (value.startsWith("H")) {
|
|
19840
|
+
//如果“证件号码”以H开国籍(或地区)”必须为“344:中国香港”;
|
|
19841
|
+
if (nationality !== '344') {
|
|
19842
|
+
setNationStatue('error');
|
|
19843
|
+
setNation('请选择正确的国籍');
|
|
19844
|
+
} else {
|
|
19845
|
+
setNationStatue('');
|
|
19846
|
+
setNation('');
|
|
19847
|
+
}
|
|
19848
|
+
} else {
|
|
19849
|
+
setStatus('error');
|
|
19850
|
+
setInfo('请输入正确的证件号码');
|
|
19851
|
+
}
|
|
19852
|
+
} else if (value === "237") {
|
|
19853
|
+
if (value.startsWith("810000")) {
|
|
19854
|
+
if (nationality !== '344') {
|
|
19855
|
+
setNationStatue('error');
|
|
19856
|
+
setNation('请选择正确的国籍');
|
|
19857
|
+
} else {
|
|
19858
|
+
setNationStatue('');
|
|
19859
|
+
setNation('');
|
|
19860
|
+
}
|
|
19861
|
+
} else if (value.startsWith("820000")) {
|
|
19862
|
+
if (nationality !== '446') {
|
|
19863
|
+
setNationStatue('error');
|
|
19864
|
+
setNation('请选择正确的国籍');
|
|
19865
|
+
} else {
|
|
19866
|
+
setNationStatue('');
|
|
19867
|
+
setNation('');
|
|
19868
|
+
}
|
|
19869
|
+
} else {
|
|
19870
|
+
setStatus('error');
|
|
19871
|
+
setInfo('请输入正确的证件号码');
|
|
19872
|
+
return Promise.reject("请输入正确的证件号码");
|
|
19873
|
+
}
|
|
19874
|
+
} else if (value === "227") {
|
|
19875
|
+
// 当“自然人证件类型”选择“227:中华人民共和国护照”时,校验是否为“156:中国
|
|
19876
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
19877
|
+
nationality: "156"
|
|
19878
|
+
});
|
|
19879
|
+
} else if (value === "213" || value === "238") {
|
|
19880
|
+
// 当“自然人证件类型”选择“213:台湾居民来往大陆通行证”时,校验是否为”158:中国台湾”
|
|
19881
|
+
// 当“自然人证件类型”选择“238:中华人民共和国台湾居民居住证”时,校验是否为“ 158:中国台湾”
|
|
19882
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
19883
|
+
nationality: "158"
|
|
19884
|
+
});
|
|
19885
|
+
}
|
|
19886
|
+
}, [form]);
|
|
19887
|
+
/** 校验证件号码*/
|
|
19888
|
+
|
|
19889
|
+
var validateIDCode = useCallback(function (_, value) {
|
|
19890
|
+
if (!value) {
|
|
19891
|
+
setStatus('error');
|
|
19892
|
+
setInfo('请输入正确的证件号码');
|
|
19893
|
+
return Promise.resolve();
|
|
19894
|
+
}
|
|
19895
|
+
|
|
19896
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType");
|
|
19897
|
+
var nationality = form === null || form === void 0 ? void 0 : form.getFieldValue("nationality");
|
|
19898
|
+
|
|
19899
|
+
if (idtype === "210") {
|
|
19900
|
+
// 当“自然人证件类型”选择“210:港澳居民来往内地通行证”时,
|
|
19901
|
+
if (value.startsWith("M")) {
|
|
19902
|
+
//如果“证件号码”以M开头,"国籍(或地区头,)”必须为“446:中国澳门”;校验证件号码必须以H或M开头
|
|
19903
|
+
if (nationality !== '446') {
|
|
19904
|
+
setNationStatue('error');
|
|
19905
|
+
setNation('请选择正确的国籍');
|
|
19906
|
+
} else {
|
|
19907
|
+
setNationStatue('');
|
|
19908
|
+
setNation('');
|
|
19909
|
+
}
|
|
19910
|
+
} else if (value.startsWith("H")) {
|
|
19911
|
+
//如果“证件号码”以H开国籍(或地区)”必须为“344:中国香港”;
|
|
19912
|
+
if (nationality !== '344') {
|
|
19913
|
+
setNationStatue('error');
|
|
19914
|
+
setNation('请选择正确的国籍');
|
|
19915
|
+
} else {
|
|
19916
|
+
setNationStatue('');
|
|
19917
|
+
setNation('');
|
|
19918
|
+
}
|
|
19919
|
+
} else {
|
|
19920
|
+
setStatus('error');
|
|
19921
|
+
setInfo('请输入正确的证件号码');
|
|
19922
|
+
return Promise.reject("请输入正确的证件号码");
|
|
19923
|
+
}
|
|
19924
|
+
} else if (idtype === "237") {
|
|
19925
|
+
//当“自然人证件类型”选择“237:中华人民共和国港澳居民居住证”时,校验证件号码必须以810000或820000开头,如果“证件号码”以810000开头,必须为“344:中国香国籍(或地区))港”;如果“证件号码”以820000开头,国籍(或地区)必须为“446:中国澳门”
|
|
19926
|
+
if (value.startsWith("810000")) {
|
|
19927
|
+
if (nationality !== '344') {
|
|
19928
|
+
setNationStatue('error');
|
|
19929
|
+
setNation('请选择正确的国籍');
|
|
19930
|
+
} else {
|
|
19931
|
+
setNationStatue('');
|
|
19932
|
+
setNation('');
|
|
19933
|
+
}
|
|
19934
|
+
} else if (value.startsWith("820000")) {
|
|
19935
|
+
if (nationality !== '446') {
|
|
19936
|
+
setNationStatue('error');
|
|
19937
|
+
setNation('请选择正确的国籍');
|
|
19938
|
+
} else {
|
|
19939
|
+
setNationStatue('');
|
|
19940
|
+
setNation('');
|
|
19941
|
+
}
|
|
19942
|
+
} else {
|
|
19943
|
+
setStatus('error');
|
|
19944
|
+
setInfo('请输入正确的证件号码');
|
|
19945
|
+
return Promise.reject("请输入正确的证件号码");
|
|
19946
|
+
}
|
|
19947
|
+
} // 当“销售方自然人证件类型”填写“201:居民身份证”,“销售方纳税人识别号”必须与“销售方自然人证件号码”完全一致
|
|
19948
|
+
|
|
18861
19949
|
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
}
|
|
18865
|
-
};
|
|
18866
|
-
/** 干系人 */
|
|
19950
|
+
if (idtype === "201") {
|
|
19951
|
+
var buyerTaxId = form === null || form === void 0 ? void 0 : form.getFieldValue("buyerTaxId");
|
|
18867
19952
|
|
|
19953
|
+
if (value !== buyerTaxId) {
|
|
19954
|
+
setStatus('error');
|
|
19955
|
+
setInfo('证件号码应与购方税号保持一致');
|
|
19956
|
+
return Promise.reject("证件号码应与购方税号保持一致");
|
|
19957
|
+
} else if (value === buyerTaxId) {
|
|
19958
|
+
setStatus('');
|
|
19959
|
+
setInfo('');
|
|
19960
|
+
}
|
|
19961
|
+
}
|
|
18868
19962
|
|
|
18869
|
-
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
19963
|
+
setStatus('');
|
|
19964
|
+
setInfo('');
|
|
19965
|
+
return Promise.resolve();
|
|
19966
|
+
}, [form]);
|
|
19967
|
+
var validateIDCode2 = useCallback(function (e) {
|
|
19968
|
+
var value = e.target.value; // if (!value) {
|
|
19969
|
+
// setStatus('');
|
|
19970
|
+
// setInfo('')
|
|
19971
|
+
// }
|
|
18876
19972
|
|
|
18877
|
-
|
|
18878
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
18879
|
-
isExpand = _React$useState2[0],
|
|
18880
|
-
setExpand = _React$useState2[1];
|
|
19973
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType"); // // 当“自然人证件类型”填写“201:居民身份证”,“购买方纳税人识别号”必须与“自然人证件号码”完全一致
|
|
18881
19974
|
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
return s.model;
|
|
18886
|
-
}, []);
|
|
18887
|
-
var disableds = controller.useMemo(function (s) {
|
|
18888
|
-
return s.stakeholder.disableds || [];
|
|
18889
|
-
}, []);
|
|
18890
|
-
var rulesMap = controller.useMemo(function (s) {
|
|
18891
|
-
return s.stakeholder.rulesMap || {};
|
|
18892
|
-
}, []);
|
|
18893
|
-
/** 乐企 */
|
|
19975
|
+
if (idtype === "201") {
|
|
19976
|
+
var certificateNumber = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
19977
|
+
console.log(value, certificateNumber);
|
|
18894
19978
|
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
19979
|
+
if (value !== certificateNumber) {
|
|
19980
|
+
setStatus('error');
|
|
19981
|
+
setInfo('证件号码应与购方税号保持一致');
|
|
19982
|
+
} else {
|
|
19983
|
+
setStatus('');
|
|
19984
|
+
setInfo('');
|
|
19985
|
+
}
|
|
19986
|
+
}
|
|
19987
|
+
}, [form]);
|
|
19988
|
+
var validateNationality = useCallback(function (_, value) {
|
|
19989
|
+
if (!value) {
|
|
19990
|
+
setNationStatue('error');
|
|
19991
|
+
setNation('请选择正确的国籍');
|
|
19992
|
+
return Promise.resolve();
|
|
18900
19993
|
}
|
|
18901
|
-
}, [props.leqi, props.riskData]);
|
|
18902
|
-
/** 直连 */
|
|
18903
19994
|
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
19995
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType");
|
|
19996
|
+
var idcode = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
19997
|
+
console.log(value, idtype, idcode);
|
|
19998
|
+
|
|
19999
|
+
if (idtype === "201" || idtype === "227") {
|
|
20000
|
+
// 当“自然人证件类型”选择“201:居民身份证”时,校验是否为“156:中国’
|
|
20001
|
+
// 当“自然人证件类型”选择“227:中华人民共和国护照”时,校验是否为“156:中国
|
|
20002
|
+
if (value !== "156") {
|
|
20003
|
+
setNationStatue('error');
|
|
20004
|
+
setNation('请选择正确的国籍');
|
|
20005
|
+
return Promise.reject("请选择正确的国籍");
|
|
20006
|
+
}
|
|
20007
|
+
} else if (idtype === "213" || idtype === "238") {
|
|
20008
|
+
// 当“自然人证件类型”选择“213:台湾居民来往大陆通行证”时,校验是否为”158:中国台湾”
|
|
20009
|
+
// 当“自然人证件类型”选择“238:中华人民共和国台湾居民居住证”时,校验是否为“ 158:中国台湾”
|
|
20010
|
+
if (value !== "158") {
|
|
20011
|
+
setNationStatue('error');
|
|
20012
|
+
setNation('请选择正确的国籍');
|
|
20013
|
+
return Promise.reject("请选择正确的国籍");
|
|
20014
|
+
}
|
|
20015
|
+
} else if (idtype === "210") {
|
|
20016
|
+
//当“自然人证件类型”选择“210:港澳居民来往内地通行证”时,如果“证件号码”以H开国籍(或地区)”必须为“344:中国香港”;如果“证件号码”以M开头,"国籍(或地区头,)”必须为“446:中国澳门”;
|
|
20017
|
+
var r = false;
|
|
20018
|
+
|
|
20019
|
+
if (idcode) {
|
|
20020
|
+
if (idcode.startsWith("M") && value === "446") {
|
|
20021
|
+
r = true;
|
|
20022
|
+
} else if (idcode.startsWith("H") && value === "344") {
|
|
20023
|
+
r = true;
|
|
20024
|
+
}
|
|
20025
|
+
} else if (value === "344" || value === "446") {
|
|
20026
|
+
r = true;
|
|
20027
|
+
}
|
|
20028
|
+
|
|
20029
|
+
if (!r) {
|
|
20030
|
+
setNationStatue('error');
|
|
20031
|
+
setNation('请选择正确的国籍');
|
|
20032
|
+
return Promise.reject("请选择正确的国籍");
|
|
20033
|
+
}
|
|
20034
|
+
} else if (idtype === "237") {
|
|
20035
|
+
//当“自然人证件类型”选择“237:中华人民共和国港澳居民居住证”时,校验证件号码必须以810000或820000开头,如果“证件号码”以810000开头,必须为“344:中国香国籍(或地区))港”;如果“证件号码”以820000开头,国籍(或地区)必须为“446:中国澳门”
|
|
20036
|
+
var _r = false;
|
|
20037
|
+
|
|
20038
|
+
if (idcode) {
|
|
20039
|
+
if (idcode.startsWith("820000") && value === "446") {
|
|
20040
|
+
_r = true;
|
|
20041
|
+
} else if (idcode.startsWith("810000") && value === "344") {
|
|
20042
|
+
_r = true;
|
|
20043
|
+
}
|
|
20044
|
+
} else if (value === "344" || value === "446") {
|
|
20045
|
+
_r = true;
|
|
20046
|
+
}
|
|
20047
|
+
|
|
20048
|
+
if (!_r) {
|
|
20049
|
+
setNationStatue('error');
|
|
20050
|
+
setNation('请选择正确的国籍');
|
|
20051
|
+
return Promise.reject("请选择正确的国籍");
|
|
20052
|
+
}
|
|
18909
20053
|
}
|
|
18910
|
-
}, [props.leqi, props.riskData]);
|
|
18911
|
-
var readOnly = React.useMemo(function () {
|
|
18912
|
-
if (model === 'readOnly') return true;
|
|
18913
|
-
if (model === 'prefab') return true;
|
|
18914
|
-
return false;
|
|
18915
|
-
}, [model]);
|
|
18916
|
-
var onExpand = React.useCallback(function () {
|
|
18917
|
-
setExpand(function (e) {
|
|
18918
|
-
return !e;
|
|
18919
|
-
});
|
|
18920
|
-
}, []);
|
|
18921
|
-
var isReadOnly = React.useCallback(function (field) {
|
|
18922
|
-
return readOnly || disableds.indexOf(field) >= 0;
|
|
18923
|
-
}, [disableds, readOnly]);
|
|
18924
|
-
var isReadOnly2 = React.useCallback(function (field) {
|
|
18925
|
-
return model === 'readOnly' || model === 'prefab' && !allowEditFlag;
|
|
18926
|
-
}, [allowEditFlag, model]);
|
|
18927
|
-
var getRules = React.useCallback(function (field, defaultRules) {
|
|
18928
|
-
if (isReadOnly(field)) return [];
|
|
18929
|
-
return rulesMap[field] || defaultRules;
|
|
18930
|
-
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
18931
|
-
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
18932
20054
|
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
20055
|
+
setNationStatue('');
|
|
20056
|
+
setNation('');
|
|
20057
|
+
return Promise.resolve();
|
|
20058
|
+
}, [form]);
|
|
20059
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18937
20060
|
className: classnames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
18938
20061
|
readOnly: readOnly
|
|
18939
20062
|
})
|
|
@@ -18954,7 +20077,8 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18954
20077
|
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
18955
20078
|
colon: false
|
|
18956
20079
|
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
|
|
18957
|
-
readOnly: isReadOnly('naturalPersonFlag')
|
|
20080
|
+
readOnly: isReadOnly('naturalPersonFlag'),
|
|
20081
|
+
onChange: setNaturalPersonFlag
|
|
18958
20082
|
})))), /*#__PURE__*/React.createElement(Form, {
|
|
18959
20083
|
className: "digtal-stakeholder-form"
|
|
18960
20084
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
@@ -18998,6 +20122,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18998
20122
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
18999
20123
|
})( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
|
|
19000
20124
|
myform: form,
|
|
20125
|
+
onChange: validateIDCode2,
|
|
19001
20126
|
fieldName: 'buyerTaxId',
|
|
19002
20127
|
readOnly: isReadOnly('buyerTaxId'),
|
|
19003
20128
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
@@ -19233,14 +20358,93 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
19233
20358
|
style: {
|
|
19234
20359
|
whiteSpace: 'nowrap'
|
|
19235
20360
|
}
|
|
19236
|
-
}, "\u662F\u5426\u5C55\u793A"))))))))
|
|
20361
|
+
}, "\u662F\u5426\u5C55\u793A")))))))), naturalPersonFlag === 'NATURAL' && /*#__PURE__*/React.createElement("div", {
|
|
20362
|
+
className: 'kts-invoice-operate-invoice-digtal-payinfo'
|
|
20363
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
20364
|
+
className: "digtal-stakeholder-form",
|
|
20365
|
+
style: {
|
|
20366
|
+
width: '100%'
|
|
20367
|
+
}
|
|
20368
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
20369
|
+
gutter: [16, 0]
|
|
20370
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
20371
|
+
span: 5
|
|
20372
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
20373
|
+
label: "\u81EA\u7136\u4EBA\u8D2D\u4E70\u65B9\u8865\u5145\u4FE1\u606F",
|
|
20374
|
+
colon: false
|
|
20375
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
|
20376
|
+
span: 6
|
|
20377
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
20378
|
+
label: "\u8BC1\u4EF6\u7C7B\u578B",
|
|
20379
|
+
colon: false
|
|
20380
|
+
}, getFieldDecorator('certificateType', {
|
|
20381
|
+
rules: [{
|
|
20382
|
+
required: true,
|
|
20383
|
+
message: '数据必填'
|
|
20384
|
+
}]
|
|
20385
|
+
})( /*#__PURE__*/React.createElement(CardSelect, {
|
|
20386
|
+
onChange: onChangeType,
|
|
20387
|
+
readOnly: isReadOnly('certificateType'),
|
|
20388
|
+
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
20389
|
+
autoComplete: "off"
|
|
20390
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
20391
|
+
span: 7
|
|
20392
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
20393
|
+
label: "\u8BC1\u4EF6\u53F7\u7801",
|
|
20394
|
+
colon: false,
|
|
20395
|
+
validateStatus: validateStatus,
|
|
20396
|
+
help: errorInfo
|
|
20397
|
+
}, getFieldDecorator('certificateNumber', {
|
|
20398
|
+
rules: [{
|
|
20399
|
+
required: true,
|
|
20400
|
+
message: '数据必填'
|
|
20401
|
+
}, {
|
|
20402
|
+
max: 30,
|
|
20403
|
+
message: "\u5185\u5BB9\u8D85\u957F"
|
|
20404
|
+
}, {
|
|
20405
|
+
validator: validateIDCode
|
|
20406
|
+
}]
|
|
20407
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
20408
|
+
readOnly: isReadOnly('certificateNumber'),
|
|
20409
|
+
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
20410
|
+
autoComplete: "off"
|
|
20411
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
20412
|
+
span: 6
|
|
20413
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
20414
|
+
label: "\u56FD\u7C4D(\u6216\u5730\u533A)",
|
|
20415
|
+
colon: false,
|
|
20416
|
+
validateStatus: nation,
|
|
20417
|
+
help: nationInfo
|
|
20418
|
+
}, getFieldDecorator('nationality', {
|
|
20419
|
+
rules: [{
|
|
20420
|
+
required: true,
|
|
20421
|
+
message: '数据必填'
|
|
20422
|
+
}, {
|
|
20423
|
+
validator: validateNationality
|
|
20424
|
+
}]
|
|
20425
|
+
})( /*#__PURE__*/React.createElement(NationalSelect, {
|
|
20426
|
+
showSearch: true,
|
|
20427
|
+
optionFilterProp: "children",
|
|
20428
|
+
filterOption: function filterOption(input, option) {
|
|
20429
|
+
if (option) {
|
|
20430
|
+
var _option$label;
|
|
20431
|
+
|
|
20432
|
+
return ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.indexOf(input)) >= 0;
|
|
20433
|
+
}
|
|
20434
|
+
|
|
20435
|
+
return false;
|
|
20436
|
+
},
|
|
20437
|
+
readOnly: isReadOnly('nationality'),
|
|
20438
|
+
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
20439
|
+
autoComplete: "off"
|
|
20440
|
+
}))))))));
|
|
19237
20441
|
});
|
|
19238
20442
|
|
|
19239
20443
|
function NaturalPersonFlag(props) {
|
|
19240
|
-
var _React$
|
|
19241
|
-
_React$
|
|
19242
|
-
value = _React$
|
|
19243
|
-
setValue = _React$
|
|
20444
|
+
var _React$useState13 = React.useState(props.value || 'COMPANY'),
|
|
20445
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
20446
|
+
value = _React$useState14[0],
|
|
20447
|
+
setValue = _React$useState14[1];
|
|
19244
20448
|
|
|
19245
20449
|
var onChange = React.useCallback(function (e) {
|
|
19246
20450
|
if (props.readOnly) return;
|
|
@@ -19268,10 +20472,10 @@ function BuyerNameInput$1(props) {
|
|
|
19268
20472
|
return s.autoComplete;
|
|
19269
20473
|
}, []);
|
|
19270
20474
|
|
|
19271
|
-
var _React$
|
|
19272
|
-
_React$
|
|
19273
|
-
options = _React$
|
|
19274
|
-
setOptions = _React$
|
|
20475
|
+
var _React$useState15 = React.useState([]),
|
|
20476
|
+
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
20477
|
+
options = _React$useState16[0],
|
|
20478
|
+
setOptions = _React$useState16[1];
|
|
19275
20479
|
|
|
19276
20480
|
var onChangeAutoComplete = React.useCallback(function (value) {
|
|
19277
20481
|
var record = options.filter(function (e) {
|
|
@@ -20227,7 +21431,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
20227
21431
|
required: true,
|
|
20228
21432
|
message: '数据必填'
|
|
20229
21433
|
}]
|
|
20230
|
-
})( /*#__PURE__*/React.createElement(CardSelect, {
|
|
21434
|
+
})( /*#__PURE__*/React.createElement(CardSelect$1, {
|
|
20231
21435
|
onChange: onChangeType,
|
|
20232
21436
|
readOnly: isReadOnly('certificateType'),
|
|
20233
21437
|
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
@@ -20267,7 +21471,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
20267
21471
|
}, {
|
|
20268
21472
|
validator: validateNationality
|
|
20269
21473
|
}]
|
|
20270
|
-
})( /*#__PURE__*/React.createElement(NationalSelect, {
|
|
21474
|
+
})( /*#__PURE__*/React.createElement(NationalSelect$1, {
|
|
20271
21475
|
showSearch: true,
|
|
20272
21476
|
optionFilterProp: "children",
|
|
20273
21477
|
filterOption: function filterOption(input, option) {
|
|
@@ -20505,7 +21709,7 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20505
21709
|
return MyInput;
|
|
20506
21710
|
}(React.Component);
|
|
20507
21711
|
|
|
20508
|
-
var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
21712
|
+
var CardSelect$1 = /*#__PURE__*/function (_React$Component2) {
|
|
20509
21713
|
_inherits(CardSelect, _React$Component2);
|
|
20510
21714
|
|
|
20511
21715
|
var _super2 = _createSuper(CardSelect);
|
|
@@ -20572,7 +21776,7 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
|
20572
21776
|
return CardSelect;
|
|
20573
21777
|
}(React.Component);
|
|
20574
21778
|
|
|
20575
|
-
var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
21779
|
+
var NationalSelect$1 = /*#__PURE__*/function (_React$Component3) {
|
|
20576
21780
|
_inherits(NationalSelect, _React$Component3);
|
|
20577
21781
|
|
|
20578
21782
|
var _super3 = _createSuper(NationalSelect);
|
|
@@ -31635,7 +32839,7 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
31635
32839
|
color: '#1890ff',
|
|
31636
32840
|
borderColor: '#1890ff'
|
|
31637
32841
|
} : undefined
|
|
31638
|
-
}, fileName ? '重新选择' : "选择文件"))), dataSource && dataSource.length && /*#__PURE__*/React.createElement("div", {
|
|
32842
|
+
}, fileName ? '重新选择' : "选择文件"))), dataSource && dataSource.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
31639
32843
|
style: {
|
|
31640
32844
|
marginBottom: 20,
|
|
31641
32845
|
marginTop: 20
|