kts-component-invoice-operate 3.2.219-chinaship → 3.2.220
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/README.md +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +1 -0
- package/dist/Invoice/ui/default/GoodsList/index.d.ts +1 -0
- package/dist/Invoice/ui/default/GoodsList/ui/AddRowButton/index.d.ts +1 -1
- package/dist/index.esm.js +360 -252
- package/dist/index.js +359 -251
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +22 -7
- package/src/Invoice/Invoice-digtal/index.md +10 -8
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +2 -0
- package/src/Invoice/_test/deduction/index.tsx +28 -6
- package/src/Invoice/index.md +4 -4
- package/src/Invoice/ui/default/GoodsList/index.tsx +3 -1
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +8 -1
- package/src/Invoice/ui/digtal/Architecture/index.tsx +1 -1
- package/src/Invoice/ui/digtal/FreightList/index.tsx +1 -1
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +12 -16
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +8 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +7 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +152 -102
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -22
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
11
|
-
import { DatePicker, Row as Row$1, Col as Col$1,
|
|
11
|
+
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2, Cascader, Select as Select$2 } from 'kts-components-antd-x4';
|
|
12
12
|
import { Input as Input$3, NumberPicker } from '@formily/antd-components';
|
|
13
13
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
14
14
|
|
|
@@ -1267,6 +1267,7 @@ var InvoiceControllerState = /*#__PURE__*/_createClass(function InvoiceControlle
|
|
|
1267
1267
|
this.autoComplete = new AutoComplete();
|
|
1268
1268
|
this.taxClassificationProps = void 0;
|
|
1269
1269
|
this.freightListState = new FreightListState();
|
|
1270
|
+
this.addGoodsCheck = void 0;
|
|
1270
1271
|
});
|
|
1271
1272
|
|
|
1272
1273
|
/**
|
|
@@ -10652,7 +10653,7 @@ var Statistics = (function () {
|
|
|
10652
10653
|
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === '' ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10653
10654
|
});
|
|
10654
10655
|
|
|
10655
|
-
var AddRowButton = (function () {
|
|
10656
|
+
var AddRowButton = (function (props) {
|
|
10656
10657
|
var controller = Invoice.useInvoiceController();
|
|
10657
10658
|
var model = controller.useMemo(function (s) {
|
|
10658
10659
|
return s.model;
|
|
@@ -10685,24 +10686,54 @@ var AddRowButton = (function () {
|
|
|
10685
10686
|
var disabled = React.useMemo(function () {
|
|
10686
10687
|
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
10687
10688
|
}, [goodMax, goodsNum, searchValue]);
|
|
10688
|
-
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
10689
|
-
return _regeneratorRuntime().wrap(function
|
|
10689
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
10690
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10690
10691
|
while (1) {
|
|
10691
|
-
switch (
|
|
10692
|
+
switch (_context2.prev = _context2.next) {
|
|
10692
10693
|
case 0:
|
|
10693
|
-
|
|
10694
|
-
return
|
|
10694
|
+
_context2.next = 2;
|
|
10695
|
+
return controller.run( /*#__PURE__*/function () {
|
|
10696
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10697
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10698
|
+
while (1) {
|
|
10699
|
+
switch (_context.prev = _context.next) {
|
|
10700
|
+
case 0:
|
|
10701
|
+
if (!s.addGoodsCheck) {
|
|
10702
|
+
_context.next = 3;
|
|
10703
|
+
break;
|
|
10704
|
+
}
|
|
10705
|
+
|
|
10706
|
+
_context.next = 3;
|
|
10707
|
+
return s.addGoodsCheck();
|
|
10708
|
+
|
|
10709
|
+
case 3:
|
|
10710
|
+
case "end":
|
|
10711
|
+
return _context.stop();
|
|
10712
|
+
}
|
|
10713
|
+
}
|
|
10714
|
+
}, _callee);
|
|
10715
|
+
}));
|
|
10716
|
+
|
|
10717
|
+
return function (_x) {
|
|
10718
|
+
return _ref2.apply(this, arguments);
|
|
10719
|
+
};
|
|
10720
|
+
}());
|
|
10695
10721
|
|
|
10696
10722
|
case 2:
|
|
10697
|
-
|
|
10723
|
+
console.log('continue');
|
|
10724
|
+
_context2.next = 5;
|
|
10725
|
+
return addGood$1(controller);
|
|
10726
|
+
|
|
10727
|
+
case 5:
|
|
10728
|
+
_context2.next = 7;
|
|
10698
10729
|
return rollBottom(controller, rootElement);
|
|
10699
10730
|
|
|
10700
|
-
case
|
|
10731
|
+
case 7:
|
|
10701
10732
|
case "end":
|
|
10702
|
-
return
|
|
10733
|
+
return _context2.stop();
|
|
10703
10734
|
}
|
|
10704
10735
|
}
|
|
10705
|
-
},
|
|
10736
|
+
}, _callee2);
|
|
10706
10737
|
})), [controller, rootElement]);
|
|
10707
10738
|
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10708
10739
|
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -10714,35 +10745,35 @@ var AddRowButton = (function () {
|
|
|
10714
10745
|
});
|
|
10715
10746
|
/** 添加一个空货物 */
|
|
10716
10747
|
|
|
10717
|
-
function addGood$1(
|
|
10748
|
+
function addGood$1(_x2) {
|
|
10718
10749
|
return _addGood.apply(this, arguments);
|
|
10719
10750
|
}
|
|
10720
10751
|
/** 货物列表,滚动到底部 */
|
|
10721
10752
|
|
|
10722
10753
|
|
|
10723
10754
|
function _addGood() {
|
|
10724
|
-
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
10725
|
-
return _regeneratorRuntime().wrap(function
|
|
10755
|
+
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
|
|
10756
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10726
10757
|
while (1) {
|
|
10727
|
-
switch (
|
|
10758
|
+
switch (_context4.prev = _context4.next) {
|
|
10728
10759
|
case 0:
|
|
10729
|
-
|
|
10760
|
+
_context4.next = 2;
|
|
10730
10761
|
return controller.saveEditGood();
|
|
10731
10762
|
|
|
10732
10763
|
case 2:
|
|
10733
|
-
|
|
10764
|
+
_context4.next = 4;
|
|
10734
10765
|
return controller.wait();
|
|
10735
10766
|
|
|
10736
10767
|
case 4:
|
|
10737
|
-
|
|
10768
|
+
_context4.next = 6;
|
|
10738
10769
|
return controller.run( /*#__PURE__*/function () {
|
|
10739
|
-
var
|
|
10740
|
-
return _regeneratorRuntime().wrap(function
|
|
10770
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
10771
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10741
10772
|
while (1) {
|
|
10742
|
-
switch (
|
|
10773
|
+
switch (_context3.prev = _context3.next) {
|
|
10743
10774
|
case 0:
|
|
10744
10775
|
if (!s.goodsListState.editGood) {
|
|
10745
|
-
|
|
10776
|
+
_context3.next = 3;
|
|
10746
10777
|
break;
|
|
10747
10778
|
}
|
|
10748
10779
|
|
|
@@ -10750,74 +10781,74 @@ function _addGood() {
|
|
|
10750
10781
|
content: '你正在编辑一个货物',
|
|
10751
10782
|
key: '你正在编辑一个货物'
|
|
10752
10783
|
});
|
|
10753
|
-
return
|
|
10784
|
+
return _context3.abrupt("return");
|
|
10754
10785
|
|
|
10755
10786
|
case 3:
|
|
10756
|
-
|
|
10787
|
+
_context3.next = 5;
|
|
10757
10788
|
return controller.addGood({
|
|
10758
10789
|
taxRate: s.goodsListState.defaultRate,
|
|
10759
10790
|
lineAttribute: LineAttributeType$1.正常
|
|
10760
10791
|
});
|
|
10761
10792
|
|
|
10762
10793
|
case 5:
|
|
10763
|
-
s.goodsListState.editGood =
|
|
10794
|
+
s.goodsListState.editGood = _context3.sent;
|
|
10764
10795
|
|
|
10765
10796
|
case 6:
|
|
10766
10797
|
case "end":
|
|
10767
|
-
return
|
|
10798
|
+
return _context3.stop();
|
|
10768
10799
|
}
|
|
10769
10800
|
}
|
|
10770
|
-
},
|
|
10801
|
+
}, _callee3);
|
|
10771
10802
|
}));
|
|
10772
10803
|
|
|
10773
|
-
return function (
|
|
10774
|
-
return
|
|
10804
|
+
return function (_x5) {
|
|
10805
|
+
return _ref3.apply(this, arguments);
|
|
10775
10806
|
};
|
|
10776
10807
|
}());
|
|
10777
10808
|
|
|
10778
10809
|
case 6:
|
|
10779
10810
|
case "end":
|
|
10780
|
-
return
|
|
10811
|
+
return _context4.stop();
|
|
10781
10812
|
}
|
|
10782
10813
|
}
|
|
10783
|
-
},
|
|
10814
|
+
}, _callee4);
|
|
10784
10815
|
}));
|
|
10785
10816
|
return _addGood.apply(this, arguments);
|
|
10786
10817
|
}
|
|
10787
10818
|
|
|
10788
|
-
function rollBottom(
|
|
10819
|
+
function rollBottom(_x3, _x4) {
|
|
10789
10820
|
return _rollBottom.apply(this, arguments);
|
|
10790
10821
|
}
|
|
10791
10822
|
|
|
10792
10823
|
function _rollBottom() {
|
|
10793
|
-
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
10824
|
+
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
|
|
10794
10825
|
var cont;
|
|
10795
|
-
return _regeneratorRuntime().wrap(function
|
|
10826
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
10796
10827
|
while (1) {
|
|
10797
|
-
switch (
|
|
10828
|
+
switch (_context5.prev = _context5.next) {
|
|
10798
10829
|
case 0:
|
|
10799
|
-
|
|
10830
|
+
_context5.next = 2;
|
|
10800
10831
|
return controller.wait();
|
|
10801
10832
|
|
|
10802
10833
|
case 2:
|
|
10803
10834
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
10804
10835
|
|
|
10805
10836
|
if (cont) {
|
|
10806
|
-
|
|
10837
|
+
_context5.next = 5;
|
|
10807
10838
|
break;
|
|
10808
10839
|
}
|
|
10809
10840
|
|
|
10810
|
-
return
|
|
10841
|
+
return _context5.abrupt("return");
|
|
10811
10842
|
|
|
10812
10843
|
case 5:
|
|
10813
10844
|
cont.scrollTop = cont.scrollHeight;
|
|
10814
10845
|
|
|
10815
10846
|
case 6:
|
|
10816
10847
|
case "end":
|
|
10817
|
-
return
|
|
10848
|
+
return _context5.stop();
|
|
10818
10849
|
}
|
|
10819
10850
|
}
|
|
10820
|
-
},
|
|
10851
|
+
}, _callee5);
|
|
10821
10852
|
}));
|
|
10822
10853
|
return _rollBottom.apply(this, arguments);
|
|
10823
10854
|
}
|
|
@@ -16603,7 +16634,9 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16603
16634
|
className: "kts-invoice-operate-goods-list-able"
|
|
16604
16635
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16605
16636
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16606
|
-
}, /*#__PURE__*/React.createElement(AddRowButton,
|
|
16637
|
+
}, /*#__PURE__*/React.createElement(AddRowButton, {
|
|
16638
|
+
addGoodsCheck: props.addGoodsCheck
|
|
16639
|
+
}), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
|
|
16607
16640
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16608
16641
|
}, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
16609
16642
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
@@ -17607,7 +17640,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17607
17640
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17608
17641
|
autoComplete: "off"
|
|
17609
17642
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17610
|
-
span: 10 +
|
|
17643
|
+
span: 10 + riskspanW,
|
|
17611
17644
|
style: {
|
|
17612
17645
|
display: isExpand ? undefined : 'none'
|
|
17613
17646
|
}
|
|
@@ -17624,7 +17657,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17624
17657
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17625
17658
|
autoComplete: "off"
|
|
17626
17659
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17627
|
-
span: 10 +
|
|
17660
|
+
span: 10 + riskspanW,
|
|
17628
17661
|
style: {
|
|
17629
17662
|
display: isExpand ? undefined : 'none'
|
|
17630
17663
|
}
|
|
@@ -17638,22 +17671,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17638
17671
|
readOnly: isReadOnly('buyerPhone'),
|
|
17639
17672
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17640
17673
|
autoComplete: "off"
|
|
17641
|
-
})))),
|
|
17642
|
-
span: 4,
|
|
17643
|
-
style: {
|
|
17644
|
-
display: isExpand ? undefined : 'none'
|
|
17645
|
-
}
|
|
17646
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17647
|
-
colon: false
|
|
17648
|
-
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17649
|
-
valuePropName: 'checked'
|
|
17650
|
-
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17651
|
-
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17652
|
-
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17653
|
-
style: {
|
|
17654
|
-
whiteSpace: 'nowrap'
|
|
17655
|
-
}
|
|
17656
|
-
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17674
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17657
17675
|
span: 10 + leqispanW,
|
|
17658
17676
|
style: {
|
|
17659
17677
|
display: isExpand ? undefined : 'none'
|
|
@@ -17745,7 +17763,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17745
17763
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17746
17764
|
autoComplete: "off"
|
|
17747
17765
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17748
|
-
span: 10 +
|
|
17766
|
+
span: 10 + riskspanW,
|
|
17749
17767
|
style: {
|
|
17750
17768
|
display: isExpand ? undefined : 'none'
|
|
17751
17769
|
}
|
|
@@ -17762,7 +17780,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17762
17780
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17763
17781
|
autoComplete: "off"
|
|
17764
17782
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17765
|
-
span: 10 +
|
|
17783
|
+
span: 10 + riskspanW,
|
|
17766
17784
|
style: {
|
|
17767
17785
|
display: isExpand ? undefined : 'none'
|
|
17768
17786
|
}
|
|
@@ -17776,22 +17794,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17776
17794
|
readOnly: isReadOnly('sellerPhone'),
|
|
17777
17795
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17778
17796
|
autoComplete: "off"
|
|
17779
|
-
})))),
|
|
17780
|
-
span: 4,
|
|
17781
|
-
style: {
|
|
17782
|
-
display: isExpand ? undefined : 'none'
|
|
17783
|
-
}
|
|
17784
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17785
|
-
colon: false
|
|
17786
|
-
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17787
|
-
valuePropName: 'checked'
|
|
17788
|
-
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17789
|
-
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17790
|
-
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17791
|
-
style: {
|
|
17792
|
-
whiteSpace: 'nowrap'
|
|
17793
|
-
}
|
|
17794
|
-
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17797
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17795
17798
|
span: 10 + leqispanW,
|
|
17796
17799
|
style: {
|
|
17797
17800
|
display: isExpand ? undefined : 'none'
|
|
@@ -19174,43 +19177,74 @@ function addGood$2(_x) {
|
|
|
19174
19177
|
|
|
19175
19178
|
|
|
19176
19179
|
function _addGood$1() {
|
|
19177
|
-
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19178
|
-
|
|
19180
|
+
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
|
|
19181
|
+
var _controller$formList$;
|
|
19182
|
+
|
|
19183
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
19179
19184
|
while (1) {
|
|
19180
|
-
switch (
|
|
19185
|
+
switch (_context5.prev = _context5.next) {
|
|
19181
19186
|
case 0:
|
|
19182
|
-
|
|
19183
|
-
return controller.
|
|
19187
|
+
_context5.next = 2;
|
|
19188
|
+
return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
|
|
19189
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
19190
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19191
|
+
while (1) {
|
|
19192
|
+
switch (_context2.prev = _context2.next) {
|
|
19193
|
+
case 0:
|
|
19194
|
+
if (!err) {
|
|
19195
|
+
_context2.next = 3;
|
|
19196
|
+
break;
|
|
19197
|
+
}
|
|
19198
|
+
|
|
19199
|
+
message$1.error('请先填写发票行信息,再添加新的行');
|
|
19200
|
+
return _context2.abrupt("return");
|
|
19201
|
+
|
|
19202
|
+
case 3:
|
|
19203
|
+
case "end":
|
|
19204
|
+
return _context2.stop();
|
|
19205
|
+
}
|
|
19206
|
+
}
|
|
19207
|
+
}, _callee2);
|
|
19208
|
+
}));
|
|
19209
|
+
|
|
19210
|
+
return function (_x4, _x5) {
|
|
19211
|
+
return _ref2.apply(this, arguments);
|
|
19212
|
+
};
|
|
19213
|
+
}());
|
|
19184
19214
|
|
|
19185
19215
|
case 2:
|
|
19186
|
-
|
|
19187
|
-
return controller.
|
|
19216
|
+
_context5.next = 4;
|
|
19217
|
+
return controller.saveEditGood();
|
|
19188
19218
|
|
|
19189
19219
|
case 4:
|
|
19190
|
-
|
|
19220
|
+
_context5.next = 6;
|
|
19221
|
+
return controller.wait();
|
|
19222
|
+
|
|
19223
|
+
case 6:
|
|
19224
|
+
_context5.next = 8;
|
|
19191
19225
|
return controller.run( /*#__PURE__*/function () {
|
|
19192
|
-
var
|
|
19226
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19193
19227
|
var _controller$state$goo;
|
|
19194
19228
|
|
|
19195
|
-
return _regeneratorRuntime().wrap(function
|
|
19229
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
19196
19230
|
while (1) {
|
|
19197
|
-
switch (
|
|
19231
|
+
switch (_context4.prev = _context4.next) {
|
|
19198
19232
|
case 0:
|
|
19199
19233
|
if (!s.goodsListState.editGood) {
|
|
19200
|
-
|
|
19234
|
+
_context4.next = 3;
|
|
19201
19235
|
break;
|
|
19202
19236
|
}
|
|
19203
19237
|
|
|
19204
|
-
|
|
19238
|
+
_context4.next = 3;
|
|
19205
19239
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
19206
|
-
var
|
|
19240
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
19207
19241
|
var firstError;
|
|
19208
|
-
return _regeneratorRuntime().wrap(function
|
|
19242
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19209
19243
|
while (1) {
|
|
19210
|
-
switch (
|
|
19244
|
+
switch (_context3.prev = _context3.next) {
|
|
19211
19245
|
case 0:
|
|
19212
19246
|
if (!err) {
|
|
19213
|
-
|
|
19247
|
+
_context3.next = 4;
|
|
19214
19248
|
break;
|
|
19215
19249
|
}
|
|
19216
19250
|
|
|
@@ -19219,50 +19253,50 @@ function _addGood$1() {
|
|
|
19219
19253
|
content: firstError.errors[0].message,
|
|
19220
19254
|
key: '你正在编辑一个货物'
|
|
19221
19255
|
});
|
|
19222
|
-
return
|
|
19256
|
+
return _context3.abrupt("return");
|
|
19223
19257
|
|
|
19224
19258
|
case 4:
|
|
19225
19259
|
case "end":
|
|
19226
|
-
return
|
|
19260
|
+
return _context3.stop();
|
|
19227
19261
|
}
|
|
19228
19262
|
}
|
|
19229
|
-
},
|
|
19263
|
+
}, _callee3);
|
|
19230
19264
|
}));
|
|
19231
19265
|
|
|
19232
|
-
return function (
|
|
19233
|
-
return
|
|
19266
|
+
return function (_x7, _x8) {
|
|
19267
|
+
return _ref4.apply(this, arguments);
|
|
19234
19268
|
};
|
|
19235
19269
|
}());
|
|
19236
19270
|
|
|
19237
19271
|
case 3:
|
|
19238
|
-
|
|
19272
|
+
_context4.next = 5;
|
|
19239
19273
|
return controller.addGood({
|
|
19240
19274
|
taxRate: s.goodsListState.defaultRate,
|
|
19241
19275
|
lineAttribute: LineAttributeType$1.正常
|
|
19242
19276
|
});
|
|
19243
19277
|
|
|
19244
19278
|
case 5:
|
|
19245
|
-
s.goodsListState.editGood =
|
|
19279
|
+
s.goodsListState.editGood = _context4.sent;
|
|
19246
19280
|
|
|
19247
19281
|
case 6:
|
|
19248
19282
|
case "end":
|
|
19249
|
-
return
|
|
19283
|
+
return _context4.stop();
|
|
19250
19284
|
}
|
|
19251
19285
|
}
|
|
19252
|
-
},
|
|
19286
|
+
}, _callee4);
|
|
19253
19287
|
}));
|
|
19254
19288
|
|
|
19255
|
-
return function (
|
|
19256
|
-
return
|
|
19289
|
+
return function (_x6) {
|
|
19290
|
+
return _ref3.apply(this, arguments);
|
|
19257
19291
|
};
|
|
19258
19292
|
}());
|
|
19259
19293
|
|
|
19260
|
-
case
|
|
19294
|
+
case 8:
|
|
19261
19295
|
case "end":
|
|
19262
|
-
return
|
|
19296
|
+
return _context5.stop();
|
|
19263
19297
|
}
|
|
19264
19298
|
}
|
|
19265
|
-
},
|
|
19299
|
+
}, _callee5);
|
|
19266
19300
|
}));
|
|
19267
19301
|
return _addGood$1.apply(this, arguments);
|
|
19268
19302
|
}
|
|
@@ -19272,34 +19306,34 @@ function rollBottom$1(_x2, _x3) {
|
|
|
19272
19306
|
}
|
|
19273
19307
|
|
|
19274
19308
|
function _rollBottom$1() {
|
|
19275
|
-
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19309
|
+
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
|
|
19276
19310
|
var cont;
|
|
19277
|
-
return _regeneratorRuntime().wrap(function
|
|
19311
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
19278
19312
|
while (1) {
|
|
19279
|
-
switch (
|
|
19313
|
+
switch (_context6.prev = _context6.next) {
|
|
19280
19314
|
case 0:
|
|
19281
|
-
|
|
19315
|
+
_context6.next = 2;
|
|
19282
19316
|
return controller.wait();
|
|
19283
19317
|
|
|
19284
19318
|
case 2:
|
|
19285
19319
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
19286
19320
|
|
|
19287
19321
|
if (cont) {
|
|
19288
|
-
|
|
19322
|
+
_context6.next = 5;
|
|
19289
19323
|
break;
|
|
19290
19324
|
}
|
|
19291
19325
|
|
|
19292
|
-
return
|
|
19326
|
+
return _context6.abrupt("return");
|
|
19293
19327
|
|
|
19294
19328
|
case 5:
|
|
19295
19329
|
cont.scrollTop = cont.scrollHeight;
|
|
19296
19330
|
|
|
19297
19331
|
case 6:
|
|
19298
19332
|
case "end":
|
|
19299
|
-
return
|
|
19333
|
+
return _context6.stop();
|
|
19300
19334
|
}
|
|
19301
19335
|
}
|
|
19302
|
-
},
|
|
19336
|
+
}, _callee6);
|
|
19303
19337
|
}));
|
|
19304
19338
|
return _rollBottom$1.apply(this, arguments);
|
|
19305
19339
|
}
|
|
@@ -21880,34 +21914,24 @@ var useColumns$1 = (function (form) {
|
|
|
21880
21914
|
while (1) {
|
|
21881
21915
|
switch (_context6.prev = _context6.next) {
|
|
21882
21916
|
case 0:
|
|
21883
|
-
|
|
21884
|
-
_context6.next = 10;
|
|
21885
|
-
break;
|
|
21886
|
-
}
|
|
21887
|
-
|
|
21888
|
-
_context6.next = 3;
|
|
21917
|
+
_context6.next = 2;
|
|
21889
21918
|
return controller.wait();
|
|
21890
21919
|
|
|
21891
|
-
case
|
|
21920
|
+
case 2:
|
|
21892
21921
|
isvalue = !!value || value === 0;
|
|
21893
21922
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21894
21923
|
|
|
21895
21924
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21896
|
-
_context6.next =
|
|
21925
|
+
_context6.next = 6;
|
|
21897
21926
|
break;
|
|
21898
21927
|
}
|
|
21899
21928
|
|
|
21900
21929
|
return _context6.abrupt("return");
|
|
21901
21930
|
|
|
21902
|
-
case
|
|
21931
|
+
case 6:
|
|
21903
21932
|
callback('请输入数量');
|
|
21904
|
-
_context6.next = 11;
|
|
21905
|
-
break;
|
|
21906
|
-
|
|
21907
|
-
case 10:
|
|
21908
|
-
callback();
|
|
21909
21933
|
|
|
21910
|
-
case
|
|
21934
|
+
case 7:
|
|
21911
21935
|
case "end":
|
|
21912
21936
|
return _context6.stop();
|
|
21913
21937
|
}
|
|
@@ -22196,7 +22220,7 @@ var useColumns$1 = (function (form) {
|
|
|
22196
22220
|
style: {
|
|
22197
22221
|
padding: '0 10px'
|
|
22198
22222
|
}
|
|
22199
|
-
},
|
|
22223
|
+
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22200
22224
|
}
|
|
22201
22225
|
}
|
|
22202
22226
|
}, {
|
|
@@ -22259,7 +22283,7 @@ var useColumns$1 = (function (form) {
|
|
|
22259
22283
|
style: {
|
|
22260
22284
|
padding: '0 10px'
|
|
22261
22285
|
}
|
|
22262
|
-
},
|
|
22286
|
+
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22263
22287
|
}
|
|
22264
22288
|
}
|
|
22265
22289
|
}, {
|
|
@@ -22371,7 +22395,7 @@ var useColumns$1 = (function (form) {
|
|
|
22371
22395
|
style: {
|
|
22372
22396
|
padding: '0 10px'
|
|
22373
22397
|
}
|
|
22374
|
-
}, isDutyFree$1(record) ? '***' :
|
|
22398
|
+
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22375
22399
|
}
|
|
22376
22400
|
}
|
|
22377
22401
|
}] // 含税不含税
|
|
@@ -24349,7 +24373,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
24349
24373
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
24350
24374
|
});
|
|
24351
24375
|
|
|
24352
|
-
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
24376
|
+
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row {\n border-bottom: 1px dashed #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row:last-child {\n border-bottom: none;\n}\n";
|
|
24353
24377
|
styleInject(css_248z$r);
|
|
24354
24378
|
|
|
24355
24379
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -24365,126 +24389,210 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24365
24389
|
}, []);
|
|
24366
24390
|
var readOnly = React.useMemo(function () {
|
|
24367
24391
|
return model === 'readOnly';
|
|
24368
|
-
}, [model]);
|
|
24392
|
+
}, [model]);
|
|
24393
|
+
var goodsList = controller.useMemo(function (s) {
|
|
24394
|
+
return s.goodsListState.goodsList;
|
|
24395
|
+
}, []);
|
|
24396
|
+
var indexRef = React.useRef([]);
|
|
24397
|
+
useEffect(function () {
|
|
24398
|
+
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24399
|
+
if (cur.lineAttribute !== 1) {
|
|
24400
|
+
acc.push(cur.$index);
|
|
24401
|
+
}
|
|
24402
|
+
|
|
24403
|
+
return acc;
|
|
24404
|
+
}, []);
|
|
24405
|
+
indexRef.current = dd;
|
|
24406
|
+
}, [goodsList, indexRef]); // 注册 form
|
|
24369
24407
|
|
|
24370
24408
|
controller.useForm('realEstateInfo', form);
|
|
24409
|
+
|
|
24410
|
+
var getList = function getList() {
|
|
24411
|
+
var decrease = indexRef.current.length > goodsList.length;
|
|
24412
|
+
|
|
24413
|
+
if (decrease) {
|
|
24414
|
+
//已删行列表
|
|
24415
|
+
var diff = indexRef.current.filter(function (item) {
|
|
24416
|
+
return !goodsList.find(function (i) {
|
|
24417
|
+
return i.$index === item;
|
|
24418
|
+
});
|
|
24419
|
+
});
|
|
24420
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
24421
|
+
|
|
24422
|
+
if (Array.isArray(formData) && diff.length > 0) {
|
|
24423
|
+
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
24424
|
+
return !diff.find(function (i) {
|
|
24425
|
+
return i === item.$index;
|
|
24426
|
+
});
|
|
24427
|
+
});
|
|
24428
|
+
form.setFieldsValue({
|
|
24429
|
+
realEstateDataDto: newForm
|
|
24430
|
+
});
|
|
24431
|
+
} else {
|
|
24432
|
+
form.setFieldsValue({
|
|
24433
|
+
realEstateDataDto: undefined
|
|
24434
|
+
});
|
|
24435
|
+
}
|
|
24436
|
+
}
|
|
24437
|
+
|
|
24438
|
+
console.log('goodsList', goodsList);
|
|
24439
|
+
return goodsList.filter(function (item) {
|
|
24440
|
+
return item.lineAttribute !== 1;
|
|
24441
|
+
}).map(function (item, index) {
|
|
24442
|
+
if (item.lineAttribute !== 1) {
|
|
24443
|
+
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24444
|
+
gutter: [17, 0]
|
|
24445
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24446
|
+
span: 6
|
|
24447
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24448
|
+
style: {
|
|
24449
|
+
display: 'none'
|
|
24450
|
+
}
|
|
24451
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
24452
|
+
initialValue: item.$index
|
|
24453
|
+
})( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
24454
|
+
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24455
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
24456
|
+
rules: readOnly ? [] : [{
|
|
24457
|
+
required: true,
|
|
24458
|
+
message: '请选择不动产地址'
|
|
24459
|
+
}]
|
|
24460
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24461
|
+
style: {
|
|
24462
|
+
width: '100%'
|
|
24463
|
+
},
|
|
24464
|
+
options: props.realEstateAddressOptions,
|
|
24465
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
24466
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24467
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24468
|
+
span: 6
|
|
24469
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24470
|
+
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24471
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
24472
|
+
rules: readOnly ? [] : [{
|
|
24473
|
+
required: true,
|
|
24474
|
+
message: '请输入详细地址'
|
|
24475
|
+
}, {
|
|
24476
|
+
max: 120,
|
|
24477
|
+
message: '详细地址最多120个字符'
|
|
24478
|
+
}, {
|
|
24479
|
+
validator: function () {
|
|
24480
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
24481
|
+
var pattern;
|
|
24482
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24483
|
+
while (1) {
|
|
24484
|
+
switch (_context.prev = _context.next) {
|
|
24485
|
+
case 0:
|
|
24486
|
+
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24487
|
+
|
|
24488
|
+
if (pattern.test(value)) {
|
|
24489
|
+
callback();
|
|
24490
|
+
} else {
|
|
24491
|
+
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24492
|
+
}
|
|
24493
|
+
|
|
24494
|
+
case 2:
|
|
24495
|
+
case "end":
|
|
24496
|
+
return _context.stop();
|
|
24497
|
+
}
|
|
24498
|
+
}
|
|
24499
|
+
}, _callee);
|
|
24500
|
+
}));
|
|
24501
|
+
|
|
24502
|
+
function validator(_x, _x2, _x3) {
|
|
24503
|
+
return _validator.apply(this, arguments);
|
|
24504
|
+
}
|
|
24505
|
+
|
|
24506
|
+
return validator;
|
|
24507
|
+
}()
|
|
24508
|
+
}]
|
|
24509
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24510
|
+
autoComplete: 'off',
|
|
24511
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24512
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24513
|
+
span: 6
|
|
24514
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24515
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24516
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
24517
|
+
rules: readOnly ? [] : [{
|
|
24518
|
+
required: true,
|
|
24519
|
+
message: '请输入租赁期'
|
|
24520
|
+
}]
|
|
24521
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24522
|
+
style: {
|
|
24523
|
+
width: '100%'
|
|
24524
|
+
}
|
|
24525
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24526
|
+
span: 6
|
|
24527
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24528
|
+
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24529
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
24530
|
+
rules: readOnly ? [] : [{
|
|
24531
|
+
required: true,
|
|
24532
|
+
message: '请选择跨地(市)标志'
|
|
24533
|
+
}]
|
|
24534
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24535
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24536
|
+
style: {
|
|
24537
|
+
width: '100%'
|
|
24538
|
+
}
|
|
24539
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24540
|
+
value: 'Y'
|
|
24541
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24542
|
+
value: 'N'
|
|
24543
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24544
|
+
span: 6
|
|
24545
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24546
|
+
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24547
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
24548
|
+
rules: readOnly ? [] : [{
|
|
24549
|
+
required: true,
|
|
24550
|
+
message: '请输入证书编号,若没有证书填写“无”'
|
|
24551
|
+
}, {
|
|
24552
|
+
max: 40,
|
|
24553
|
+
message: '证书编号最多40个字符'
|
|
24554
|
+
}]
|
|
24555
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24556
|
+
autoComplete: 'off',
|
|
24557
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24558
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24559
|
+
span: 6
|
|
24560
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24561
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24562
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
24563
|
+
rules: readOnly ? [] : [{
|
|
24564
|
+
required: true,
|
|
24565
|
+
message: '请选择面积单位'
|
|
24566
|
+
}]
|
|
24567
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24568
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24569
|
+
style: {
|
|
24570
|
+
width: '100%'
|
|
24571
|
+
}
|
|
24572
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24573
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24574
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24575
|
+
value: "\u5E73\u65B9\u7C73"
|
|
24576
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24577
|
+
value: "\u516C\u9877"
|
|
24578
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24579
|
+
value: "\u4EA9"
|
|
24580
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24581
|
+
value: "h\u33A1"
|
|
24582
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24583
|
+
value: "k\u33A1"
|
|
24584
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24585
|
+
value: "\u33A1"
|
|
24586
|
+
}, "\u33A1"))))));
|
|
24587
|
+
}
|
|
24588
|
+
});
|
|
24589
|
+
};
|
|
24590
|
+
|
|
24371
24591
|
return /*#__PURE__*/React.createElement("div", {
|
|
24372
24592
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24373
24593
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24374
24594
|
className: 'real-estate-info-digtal-label'
|
|
24375
|
-
}, "\u7279\
|
|
24376
|
-
gutter: [17, 0]
|
|
24377
|
-
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24378
|
-
span: 6
|
|
24379
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24380
|
-
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24381
|
-
}, getFieldDecorator('realEstateAddress', {
|
|
24382
|
-
rules: readOnly ? [] : [{
|
|
24383
|
-
required: true,
|
|
24384
|
-
message: '请选择不动产地址'
|
|
24385
|
-
}]
|
|
24386
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24387
|
-
style: {
|
|
24388
|
-
width: '100%'
|
|
24389
|
-
},
|
|
24390
|
-
options: props.realEstateAddressOptions,
|
|
24391
|
-
fieldNames: props.realEstateAddressFieldNames,
|
|
24392
|
-
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24393
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24394
|
-
span: 6
|
|
24395
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24396
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24397
|
-
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
24398
|
-
rules: readOnly ? [] : [{
|
|
24399
|
-
required: true,
|
|
24400
|
-
message: '请输入详细地址'
|
|
24401
|
-
}, {
|
|
24402
|
-
max: 120,
|
|
24403
|
-
message: '详细地址最多120个字符'
|
|
24404
|
-
}, {
|
|
24405
|
-
validator: function validator(_, value) {
|
|
24406
|
-
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24407
|
-
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24408
|
-
}
|
|
24409
|
-
}]
|
|
24410
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24411
|
-
autoComplete: 'off',
|
|
24412
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24413
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24414
|
-
span: 6
|
|
24415
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24416
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24417
|
-
}, getFieldDecorator('leaseTerm', {
|
|
24418
|
-
rules: readOnly ? [] : [{
|
|
24419
|
-
required: true,
|
|
24420
|
-
message: '请输入租赁期'
|
|
24421
|
-
}]
|
|
24422
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24423
|
-
style: {
|
|
24424
|
-
width: '100%'
|
|
24425
|
-
}
|
|
24426
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24427
|
-
span: 6
|
|
24428
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24429
|
-
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24430
|
-
}, getFieldDecorator('crossCitiesSign', {
|
|
24431
|
-
rules: readOnly ? [] : [{
|
|
24432
|
-
required: true,
|
|
24433
|
-
message: '请选择跨地(市)标志'
|
|
24434
|
-
}]
|
|
24435
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24436
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24437
|
-
style: {
|
|
24438
|
-
width: '100%'
|
|
24439
|
-
}
|
|
24440
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24441
|
-
value: 'Y'
|
|
24442
|
-
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24443
|
-
value: 'N'
|
|
24444
|
-
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24445
|
-
span: 6
|
|
24446
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24447
|
-
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24448
|
-
}, getFieldDecorator('realEstateNumber', {
|
|
24449
|
-
rules: readOnly ? [] : [{
|
|
24450
|
-
required: true,
|
|
24451
|
-
message: '请输入证书编号,若没有证书填写“无”'
|
|
24452
|
-
}, {
|
|
24453
|
-
max: 40,
|
|
24454
|
-
message: '证书编号最多40个字符'
|
|
24455
|
-
}]
|
|
24456
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24457
|
-
autoComplete: 'off',
|
|
24458
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24459
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24460
|
-
span: 6
|
|
24461
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24462
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24463
|
-
}, getFieldDecorator('realEstateUnit', {
|
|
24464
|
-
rules: readOnly ? [] : [{
|
|
24465
|
-
required: true,
|
|
24466
|
-
message: '请选择面积单位'
|
|
24467
|
-
}]
|
|
24468
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24469
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24470
|
-
style: {
|
|
24471
|
-
width: '100%'
|
|
24472
|
-
}
|
|
24473
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24474
|
-
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24475
|
-
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24476
|
-
value: "\u5E73\u65B9\u7C73"
|
|
24477
|
-
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24478
|
-
value: "\u516C\u9877"
|
|
24479
|
-
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24480
|
-
value: "\u4EA9"
|
|
24481
|
-
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24482
|
-
value: "h\u33A1"
|
|
24483
|
-
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24484
|
-
value: "k\u33A1"
|
|
24485
|
-
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24486
|
-
value: "\u33A1"
|
|
24487
|
-
}, "\u33A1")))))));
|
|
24595
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24488
24596
|
});
|
|
24489
24597
|
|
|
24490
24598
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24560,7 +24668,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24560
24668
|
color: '#9F603D',
|
|
24561
24669
|
fontWeight: 600
|
|
24562
24670
|
}
|
|
24563
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24671
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24564
24672
|
}
|
|
24565
24673
|
}]);
|
|
24566
24674
|
|
|
@@ -24612,7 +24720,7 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
24612
24720
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24613
24721
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24614
24722
|
className: 'real-estate-info-digtal-label'
|
|
24615
|
-
}, "\u7279\
|
|
24723
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
24616
24724
|
gutter: [17, 0]
|
|
24617
24725
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24618
24726
|
span: 6
|
|
@@ -26218,7 +26326,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
26218
26326
|
className: "kts-invoice-operate-freight"
|
|
26219
26327
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26220
26328
|
className: 'real-estate-info-digtal-label'
|
|
26221
|
-
}, "\u7279\
|
|
26329
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
26222
26330
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
26223
26331
|
onClick: function onClick(e) {
|
|
26224
26332
|
e.stopPropagation();
|