kts-component-invoice-operate 3.2.221 → 3.2.223
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/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +1 -0
- package/dist/index.esm.js +334 -37
- package/dist/index.js +334 -37
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +47 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +2 -0
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +18 -13
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +11 -6
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +239 -36
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +29 -15
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -4
package/dist/index.esm.js
CHANGED
|
@@ -1995,7 +1995,7 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
1995
1995
|
switch (_context.prev = _context.next) {
|
|
1996
1996
|
case 0:
|
|
1997
1997
|
editGood = state.goodsListState.editGood;
|
|
1998
|
-
form = state.goodsListState.form;
|
|
1998
|
+
form = state.goodsListState.form; // const isValidateGood = state.goodsListState.isValidateGood
|
|
1999
1999
|
|
|
2000
2000
|
if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
|
|
2001
2001
|
_context.next = 4;
|
|
@@ -17640,7 +17640,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17640
17640
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17641
17641
|
autoComplete: "off"
|
|
17642
17642
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17643
|
-
span: 10 +
|
|
17643
|
+
span: 10 + leqispanW,
|
|
17644
17644
|
style: {
|
|
17645
17645
|
display: isExpand ? undefined : 'none'
|
|
17646
17646
|
}
|
|
@@ -17657,7 +17657,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17657
17657
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17658
17658
|
autoComplete: "off"
|
|
17659
17659
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17660
|
-
span: 10 +
|
|
17660
|
+
span: 10 + leqispanW,
|
|
17661
17661
|
style: {
|
|
17662
17662
|
display: isExpand ? undefined : 'none'
|
|
17663
17663
|
}
|
|
@@ -17671,7 +17671,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17671
17671
|
readOnly: isReadOnly('buyerPhone'),
|
|
17672
17672
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17673
17673
|
autoComplete: "off"
|
|
17674
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17674
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17675
|
+
span: 4,
|
|
17676
|
+
style: {
|
|
17677
|
+
display: isExpand ? undefined : 'none'
|
|
17678
|
+
}
|
|
17679
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17680
|
+
colon: false
|
|
17681
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17682
|
+
valuePropName: 'checked'
|
|
17683
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17684
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17685
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17686
|
+
style: {
|
|
17687
|
+
whiteSpace: 'nowrap'
|
|
17688
|
+
}
|
|
17689
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17675
17690
|
span: 10 + leqispanW,
|
|
17676
17691
|
style: {
|
|
17677
17692
|
display: isExpand ? undefined : 'none'
|
|
@@ -17763,7 +17778,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17763
17778
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17764
17779
|
autoComplete: "off"
|
|
17765
17780
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17766
|
-
span: 10 +
|
|
17781
|
+
span: 10 + leqispanW,
|
|
17767
17782
|
style: {
|
|
17768
17783
|
display: isExpand ? undefined : 'none'
|
|
17769
17784
|
}
|
|
@@ -17780,7 +17795,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17780
17795
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17781
17796
|
autoComplete: "off"
|
|
17782
17797
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17783
|
-
span: 10 +
|
|
17798
|
+
span: 10 + leqispanW,
|
|
17784
17799
|
style: {
|
|
17785
17800
|
display: isExpand ? undefined : 'none'
|
|
17786
17801
|
}
|
|
@@ -17794,7 +17809,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17794
17809
|
readOnly: isReadOnly('sellerPhone'),
|
|
17795
17810
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17796
17811
|
autoComplete: "off"
|
|
17797
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17812
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17813
|
+
span: 4,
|
|
17814
|
+
style: {
|
|
17815
|
+
display: isExpand ? undefined : 'none'
|
|
17816
|
+
}
|
|
17817
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17818
|
+
colon: false
|
|
17819
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17820
|
+
valuePropName: 'checked'
|
|
17821
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17822
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17823
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17824
|
+
style: {
|
|
17825
|
+
whiteSpace: 'nowrap'
|
|
17826
|
+
}
|
|
17827
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17798
17828
|
span: 10 + leqispanW,
|
|
17799
17829
|
style: {
|
|
17800
17830
|
display: isExpand ? undefined : 'none'
|
|
@@ -18281,7 +18311,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18281
18311
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18282
18312
|
autoComplete: "off"
|
|
18283
18313
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18284
|
-
span: 10 +
|
|
18314
|
+
span: 10 + leqispanW,
|
|
18285
18315
|
style: {
|
|
18286
18316
|
display: isExpand ? undefined : 'none'
|
|
18287
18317
|
}
|
|
@@ -18298,7 +18328,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18298
18328
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
18299
18329
|
autoComplete: "off"
|
|
18300
18330
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18301
|
-
span: 10 +
|
|
18331
|
+
span: 10 + leqispanW,
|
|
18302
18332
|
style: {
|
|
18303
18333
|
display: isExpand ? undefined : 'none'
|
|
18304
18334
|
}
|
|
@@ -18326,7 +18356,22 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18326
18356
|
readOnly: isReadOnly('sellerBank'),
|
|
18327
18357
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18328
18358
|
autoComplete: "off"
|
|
18329
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18359
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
18360
|
+
span: 4,
|
|
18361
|
+
style: {
|
|
18362
|
+
display: isExpand ? undefined : 'none'
|
|
18363
|
+
}
|
|
18364
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18365
|
+
colon: false
|
|
18366
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
18367
|
+
valuePropName: 'checked'
|
|
18368
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18369
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
18370
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
18371
|
+
style: {
|
|
18372
|
+
whiteSpace: 'nowrap'
|
|
18373
|
+
}
|
|
18374
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
18330
18375
|
span: 10 + leqispanW,
|
|
18331
18376
|
style: {
|
|
18332
18377
|
display: isExpand ? undefined : 'none'
|
|
@@ -18421,7 +18466,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18421
18466
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18422
18467
|
autoComplete: "off"
|
|
18423
18468
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18424
|
-
span: 10 +
|
|
18469
|
+
span: 10 + leqispanW,
|
|
18425
18470
|
style: {
|
|
18426
18471
|
display: isExpand ? undefined : 'none'
|
|
18427
18472
|
}
|
|
@@ -18438,7 +18483,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18438
18483
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
18439
18484
|
autoComplete: "off"
|
|
18440
18485
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18441
|
-
span: 10 +
|
|
18486
|
+
span: 10 + leqispanW,
|
|
18442
18487
|
style: {
|
|
18443
18488
|
display: isExpand ? undefined : 'none'
|
|
18444
18489
|
}
|
|
@@ -18471,6 +18516,20 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18471
18516
|
style: {
|
|
18472
18517
|
display: isExpand ? undefined : 'none'
|
|
18473
18518
|
}
|
|
18519
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18520
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18521
|
+
colon: false
|
|
18522
|
+
}, getFieldDecorator('buyerBank', {
|
|
18523
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18524
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18525
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18526
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18527
|
+
autoComplete: "off"
|
|
18528
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18529
|
+
span: 10 + leqispanW,
|
|
18530
|
+
style: {
|
|
18531
|
+
display: isExpand ? undefined : 'none'
|
|
18532
|
+
}
|
|
18474
18533
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18475
18534
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18476
18535
|
colon: false
|
|
@@ -18845,7 +18904,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
|
|
|
18845
18904
|
styleInject(css_248z$j);
|
|
18846
18905
|
|
|
18847
18906
|
function TableVirtual$1 (props) {
|
|
18848
|
-
var _props$
|
|
18907
|
+
var _props$dataSource4, _props$dataSource5;
|
|
18849
18908
|
|
|
18850
18909
|
var _React$useState = React.useState(null),
|
|
18851
18910
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -18887,8 +18946,10 @@ function TableVirtual$1 (props) {
|
|
|
18887
18946
|
}, [self, tableBody]); // 设置占位dom的搞
|
|
18888
18947
|
|
|
18889
18948
|
var placeholderHeight = React.useMemo(function () {
|
|
18890
|
-
|
|
18891
|
-
|
|
18949
|
+
var _props$dataSource = props.dataSource,
|
|
18950
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
|
|
18951
|
+
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
18952
|
+
var placeholderHeight = rowHeight * dataSource.length;
|
|
18892
18953
|
placeholder.style.height = "".concat(placeholderHeight, "px");
|
|
18893
18954
|
return placeholderHeight;
|
|
18894
18955
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -18900,12 +18961,12 @@ function TableVirtual$1 (props) {
|
|
|
18900
18961
|
}, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
|
|
18901
18962
|
|
|
18902
18963
|
var dataSource = React.useMemo(function () {
|
|
18903
|
-
var _props$
|
|
18964
|
+
var _props$dataSource2;
|
|
18904
18965
|
|
|
18905
18966
|
if (!props.dataSource) return [];
|
|
18906
18967
|
if (props.dataSource.length < 10) return props.dataSource;
|
|
18907
18968
|
if (!rowSize) return [props.dataSource[0]];
|
|
18908
|
-
return (_props$
|
|
18969
|
+
return (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.slice(pointer, pointer + 2 * rowSize);
|
|
18909
18970
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
18910
18971
|
|
|
18911
18972
|
React.useEffect(function () {
|
|
@@ -18924,17 +18985,24 @@ function TableVirtual$1 (props) {
|
|
|
18924
18985
|
}, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
|
|
18925
18986
|
|
|
18926
18987
|
React.useEffect(function () {
|
|
18988
|
+
var _props$dataSource3;
|
|
18989
|
+
|
|
18927
18990
|
if (!self) return;
|
|
18928
18991
|
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
18929
18992
|
if (!table) return;
|
|
18930
|
-
|
|
18931
|
-
|
|
18993
|
+
|
|
18994
|
+
if ((((_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.length) || 0) < 10) {
|
|
18995
|
+
table.style.top = '0px';
|
|
18996
|
+
} else {
|
|
18997
|
+
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
18998
|
+
}
|
|
18999
|
+
}, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
|
|
18932
19000
|
React.useEffect(function () {
|
|
18933
19001
|
if (!self) return;
|
|
18934
19002
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
18935
19003
|
if (!cont) return;
|
|
18936
19004
|
cont.scrollTop = 0;
|
|
18937
|
-
}, [(_props$
|
|
19005
|
+
}, [(_props$dataSource5 = props.dataSource) === null || _props$dataSource5 === void 0 ? void 0 : _props$dataSource5.length]);
|
|
18938
19006
|
return /*#__PURE__*/React.createElement("span", {
|
|
18939
19007
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
18940
19008
|
ref: function ref(e) {
|
|
@@ -21926,24 +21994,34 @@ var useColumns$1 = (function (form) {
|
|
|
21926
21994
|
while (1) {
|
|
21927
21995
|
switch (_context6.prev = _context6.next) {
|
|
21928
21996
|
case 0:
|
|
21929
|
-
|
|
21997
|
+
if (!isValidateGood) {
|
|
21998
|
+
_context6.next = 10;
|
|
21999
|
+
break;
|
|
22000
|
+
}
|
|
22001
|
+
|
|
22002
|
+
_context6.next = 3;
|
|
21930
22003
|
return controller.wait();
|
|
21931
22004
|
|
|
21932
|
-
case
|
|
22005
|
+
case 3:
|
|
21933
22006
|
isvalue = !!value || value === 0;
|
|
21934
22007
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21935
22008
|
|
|
21936
22009
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21937
|
-
_context6.next =
|
|
22010
|
+
_context6.next = 7;
|
|
21938
22011
|
break;
|
|
21939
22012
|
}
|
|
21940
22013
|
|
|
21941
22014
|
return _context6.abrupt("return");
|
|
21942
22015
|
|
|
21943
|
-
case
|
|
22016
|
+
case 7:
|
|
21944
22017
|
callback('请输入数量');
|
|
22018
|
+
_context6.next = 11;
|
|
22019
|
+
break;
|
|
21945
22020
|
|
|
21946
|
-
case
|
|
22021
|
+
case 10:
|
|
22022
|
+
callback();
|
|
22023
|
+
|
|
22024
|
+
case 11:
|
|
21947
22025
|
case "end":
|
|
21948
22026
|
return _context6.stop();
|
|
21949
22027
|
}
|
|
@@ -22232,7 +22310,7 @@ var useColumns$1 = (function (form) {
|
|
|
22232
22310
|
style: {
|
|
22233
22311
|
padding: '0 10px'
|
|
22234
22312
|
}
|
|
22235
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22313
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22236
22314
|
}
|
|
22237
22315
|
}
|
|
22238
22316
|
}, {
|
|
@@ -22295,7 +22373,7 @@ var useColumns$1 = (function (form) {
|
|
|
22295
22373
|
style: {
|
|
22296
22374
|
padding: '0 10px'
|
|
22297
22375
|
}
|
|
22298
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22376
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22299
22377
|
}
|
|
22300
22378
|
}
|
|
22301
22379
|
}, {
|
|
@@ -22338,7 +22416,7 @@ var useColumns$1 = (function (form) {
|
|
|
22338
22416
|
}, e, "%");
|
|
22339
22417
|
}))));
|
|
22340
22418
|
} else {
|
|
22341
|
-
if (value || value === '0') {
|
|
22419
|
+
if (value || value === '0' || value === 0) {
|
|
22342
22420
|
return /*#__PURE__*/React.createElement("span", {
|
|
22343
22421
|
style: {
|
|
22344
22422
|
padding: '0 10px'
|
|
@@ -22407,7 +22485,7 @@ var useColumns$1 = (function (form) {
|
|
|
22407
22485
|
style: {
|
|
22408
22486
|
padding: '0 10px'
|
|
22409
22487
|
}
|
|
22410
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22488
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22411
22489
|
}
|
|
22412
22490
|
}
|
|
22413
22491
|
}] // 含税不含税
|
|
@@ -24404,6 +24482,19 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24404
24482
|
}, [model]);
|
|
24405
24483
|
var goodsList = controller.useMemo(function (s) {
|
|
24406
24484
|
return s.goodsListState.goodsList;
|
|
24485
|
+
}, []); //outcome-104 任务 https://wiki.dev.kingxunlian.com/pages/viewpage.action?pageId=180355189
|
|
24486
|
+
//商品和服务税收分类合并编码为“3040502020200000000”时,视为停车费业务,针对停车费业务,蓝字发票增加以下判断:
|
|
24487
|
+
// 单位必须为“平方米”;
|
|
24488
|
+
// 项目名称必须为“车辆停放服务”;
|
|
24489
|
+
// 车牌号必填,最多支持填写3个车牌号;除该场景车牌号必须为空;
|
|
24490
|
+
// 租赁期起止格式必须为“yyyy-MM-dd HH:mm(租赁期起)”+“空格”+“yyyy-MM-dd HH:mm(租赁期止)。
|
|
24491
|
+
|
|
24492
|
+
var isParkFee = React.useCallback(function (taxClassificationCode) {
|
|
24493
|
+
if (taxClassificationCode === '3040502020200000000') {
|
|
24494
|
+
return false;
|
|
24495
|
+
} else {
|
|
24496
|
+
return true;
|
|
24497
|
+
}
|
|
24407
24498
|
}, []);
|
|
24408
24499
|
var indexRef = React.useRef([]);
|
|
24409
24500
|
useEffect(function () {
|
|
@@ -24447,11 +24538,11 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24447
24538
|
}
|
|
24448
24539
|
}
|
|
24449
24540
|
|
|
24450
|
-
console.log('goodsList', goodsList);
|
|
24451
24541
|
return goodsList.filter(function (item) {
|
|
24452
24542
|
return item.lineAttribute !== 1;
|
|
24453
24543
|
}).map(function (item, index) {
|
|
24454
24544
|
if (item.lineAttribute !== 1) {
|
|
24545
|
+
var isParkFeeItem = isParkFee(item.taxClassificationCode);
|
|
24455
24546
|
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24456
24547
|
gutter: [17, 0]
|
|
24457
24548
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
@@ -24521,7 +24612,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24521
24612
|
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24522
24613
|
autoComplete: 'off',
|
|
24523
24614
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24524
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24615
|
+
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
24525
24616
|
span: 6
|
|
24526
24617
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24527
24618
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
@@ -24534,6 +24625,23 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24534
24625
|
style: {
|
|
24535
24626
|
width: '100%'
|
|
24536
24627
|
}
|
|
24628
|
+
})))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
24629
|
+
span: 6
|
|
24630
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24631
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24632
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
24633
|
+
rules: readOnly ? [] : [{
|
|
24634
|
+
required: true,
|
|
24635
|
+
message: '请输入租赁期'
|
|
24636
|
+
}]
|
|
24637
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMomentTime, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24638
|
+
style: {
|
|
24639
|
+
width: '100%'
|
|
24640
|
+
},
|
|
24641
|
+
showTime: {
|
|
24642
|
+
format: 'HH:mm'
|
|
24643
|
+
},
|
|
24644
|
+
format: "YYYY-MM-DD HH:mm"
|
|
24537
24645
|
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24538
24646
|
span: 6
|
|
24539
24647
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -24567,7 +24675,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24567
24675
|
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24568
24676
|
autoComplete: 'off',
|
|
24569
24677
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24570
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24678
|
+
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
24571
24679
|
span: 6
|
|
24572
24680
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24573
24681
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
@@ -24595,7 +24703,38 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24595
24703
|
value: "k\u33A1"
|
|
24596
24704
|
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24597
24705
|
value: "\u33A1"
|
|
24598
|
-
}, "\u33A1")))))
|
|
24706
|
+
}, "\u33A1"))))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
24707
|
+
span: 6
|
|
24708
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24709
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24710
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
24711
|
+
rules: readOnly ? [] : [{
|
|
24712
|
+
required: true,
|
|
24713
|
+
message: '请选择面积单位'
|
|
24714
|
+
}]
|
|
24715
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24716
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24717
|
+
style: {
|
|
24718
|
+
width: '100%'
|
|
24719
|
+
}
|
|
24720
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24721
|
+
value: "\u5E73\u65B9\u7C73"
|
|
24722
|
+
}, "\u5E73\u65B9\u7C73"))))), isParkFeeItem && /*#__PURE__*/React.createElement(LicensePlateNumber, {
|
|
24723
|
+
form: form,
|
|
24724
|
+
index: index,
|
|
24725
|
+
cd: item.cd
|
|
24726
|
+
}) // <Col span={6} >
|
|
24727
|
+
// <Form.Item label='车牌号' >
|
|
24728
|
+
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
24729
|
+
// rules: readOnly ? [] : [{ required: true, message: '请选择面积单位' }]
|
|
24730
|
+
// })(
|
|
24731
|
+
// readOnly
|
|
24732
|
+
// ? <MyDiv />
|
|
24733
|
+
// : <LicensePlateNumber form={form}/>
|
|
24734
|
+
// )}
|
|
24735
|
+
// </Form.Item>
|
|
24736
|
+
// </Col>
|
|
24737
|
+
);
|
|
24599
24738
|
}
|
|
24600
24739
|
});
|
|
24601
24740
|
};
|
|
@@ -24687,15 +24826,45 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24687
24826
|
return MyArrMoment;
|
|
24688
24827
|
}(React.Component);
|
|
24689
24828
|
|
|
24690
|
-
var
|
|
24691
|
-
_inherits(
|
|
24829
|
+
var MyArrMomentTime = /*#__PURE__*/function (_React$Component4) {
|
|
24830
|
+
_inherits(MyArrMomentTime, _React$Component4);
|
|
24692
24831
|
|
|
24693
|
-
var _super4 = _createSuper(
|
|
24832
|
+
var _super4 = _createSuper(MyArrMomentTime);
|
|
24833
|
+
|
|
24834
|
+
function MyArrMomentTime() {
|
|
24835
|
+
_classCallCheck(this, MyArrMomentTime);
|
|
24836
|
+
|
|
24837
|
+
return _super4.apply(this, arguments);
|
|
24838
|
+
}
|
|
24839
|
+
|
|
24840
|
+
_createClass(MyArrMomentTime, [{
|
|
24841
|
+
key: "render",
|
|
24842
|
+
value: function render() {
|
|
24843
|
+
var _this$props$value3 = this.props.value,
|
|
24844
|
+
value = _this$props$value3 === void 0 ? [] : _this$props$value3;
|
|
24845
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24846
|
+
style: this.props.style
|
|
24847
|
+
}, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD HH:mm')), /*#__PURE__*/React.createElement("span", {
|
|
24848
|
+
style: {
|
|
24849
|
+
color: '#9F603D',
|
|
24850
|
+
fontWeight: 600
|
|
24851
|
+
}
|
|
24852
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD HH:mm')));
|
|
24853
|
+
}
|
|
24854
|
+
}]);
|
|
24855
|
+
|
|
24856
|
+
return MyArrMomentTime;
|
|
24857
|
+
}(React.Component);
|
|
24858
|
+
|
|
24859
|
+
var MyNY = /*#__PURE__*/function (_React$Component5) {
|
|
24860
|
+
_inherits(MyNY, _React$Component5);
|
|
24861
|
+
|
|
24862
|
+
var _super5 = _createSuper(MyNY);
|
|
24694
24863
|
|
|
24695
24864
|
function MyNY() {
|
|
24696
24865
|
_classCallCheck(this, MyNY);
|
|
24697
24866
|
|
|
24698
|
-
return
|
|
24867
|
+
return _super5.apply(this, arguments);
|
|
24699
24868
|
}
|
|
24700
24869
|
|
|
24701
24870
|
_createClass(MyNY, [{
|
|
@@ -24710,6 +24879,134 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
24710
24879
|
return MyNY;
|
|
24711
24880
|
}(React.Component);
|
|
24712
24881
|
|
|
24882
|
+
var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
24883
|
+
var _formData$props$index2;
|
|
24884
|
+
|
|
24885
|
+
var form = props.form;
|
|
24886
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
24887
|
+
var licenceLimit = 3; // 最多支持填写3个车牌号
|
|
24888
|
+
|
|
24889
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
24890
|
+
|
|
24891
|
+
var _React$useState = React.useState(new Array(props.cd || 1).fill('')),
|
|
24892
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24893
|
+
value = _React$useState2[0],
|
|
24894
|
+
setVal = _React$useState2[1];
|
|
24895
|
+
|
|
24896
|
+
var cd = React.useMemo(function () {
|
|
24897
|
+
var _formData$props$index;
|
|
24898
|
+
|
|
24899
|
+
return (_formData$props$index = formData[props.index]) === null || _formData$props$index === void 0 ? void 0 : _formData$props$index.cd;
|
|
24900
|
+
}, [(_formData$props$index2 = formData[props.index]) === null || _formData$props$index2 === void 0 ? void 0 : _formData$props$index2.cd]); // useEffect(() => {
|
|
24901
|
+
// if (cd) {
|
|
24902
|
+
// const dd = value.concat(new Array(cd.length-1).fill(''))
|
|
24903
|
+
// setVal(dd);
|
|
24904
|
+
// }
|
|
24905
|
+
// }, [cd])
|
|
24906
|
+
|
|
24907
|
+
var onAdd = function onAdd() {
|
|
24908
|
+
if (value.length < licenceLimit) {
|
|
24909
|
+
setVal([].concat(_toConsumableArray(value), ['']));
|
|
24910
|
+
}
|
|
24911
|
+
}; // 删除车牌号
|
|
24912
|
+
|
|
24913
|
+
|
|
24914
|
+
var onDelete = function onDelete() {
|
|
24915
|
+
if (value.length > 0) {
|
|
24916
|
+
var dd = value.slice(0, -1);
|
|
24917
|
+
setVal(dd);
|
|
24918
|
+
}
|
|
24919
|
+
};
|
|
24920
|
+
|
|
24921
|
+
console.log(value.length);
|
|
24922
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
24923
|
+
return /*#__PURE__*/React.createElement(Col$1, {
|
|
24924
|
+
span: 6
|
|
24925
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24926
|
+
label: "\u8F66\u724C\u53F7",
|
|
24927
|
+
key: key
|
|
24928
|
+
}, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
|
|
24929
|
+
rules: [{
|
|
24930
|
+
required: true,
|
|
24931
|
+
message: '请输入车牌号'
|
|
24932
|
+
}]
|
|
24933
|
+
})( /*#__PURE__*/React.createElement(Input$2, {
|
|
24934
|
+
style: {
|
|
24935
|
+
width: '100%'
|
|
24936
|
+
},
|
|
24937
|
+
autoComplete: 'off',
|
|
24938
|
+
placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
|
|
24939
|
+
}))));
|
|
24940
|
+
}), /*#__PURE__*/React.createElement(Col$1, {
|
|
24941
|
+
span: 6
|
|
24942
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
24943
|
+
style: {
|
|
24944
|
+
color: 'white'
|
|
24945
|
+
}
|
|
24946
|
+
}, "1"), /*#__PURE__*/React.createElement("a", {
|
|
24947
|
+
style: {
|
|
24948
|
+
marginRight: 10
|
|
24949
|
+
},
|
|
24950
|
+
onClick: onAdd
|
|
24951
|
+
}, "\u6DFB\u52A0\u8F66\u724C\u53F7"), value.length > 1 && /*#__PURE__*/React.createElement("a", {
|
|
24952
|
+
onClick: onDelete
|
|
24953
|
+
}, "\u5220\u9664"))));
|
|
24954
|
+
}; // const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
24955
|
+
// const { form } = props;
|
|
24956
|
+
// const { getFieldDecorator } = form;
|
|
24957
|
+
// const licenceLimit = 3; // 最多支持填写3个车牌号
|
|
24958
|
+
// // const { value = [] } = this.props;
|
|
24959
|
+
// const [value, setVal] = React.useState(props.value || ['']);
|
|
24960
|
+
// // const newArr = value.filter(e => !!e);
|
|
24961
|
+
// const newArrLength = value.length;
|
|
24962
|
+
// console.log(value, newArrLength)
|
|
24963
|
+
// // 新增车牌号
|
|
24964
|
+
// const onAdd = () => {
|
|
24965
|
+
// if (newArrLength < licenceLimit) {
|
|
24966
|
+
// setVal([...value, '']);
|
|
24967
|
+
// props.onChange?.([...value, ''])
|
|
24968
|
+
// }
|
|
24969
|
+
// }
|
|
24970
|
+
// // 删除车牌号
|
|
24971
|
+
// const onDelete = () => {
|
|
24972
|
+
// if (newArrLength > 0) {
|
|
24973
|
+
// const dd = value.slice(0, -1)
|
|
24974
|
+
// setVal(dd);
|
|
24975
|
+
// props.onChange?.(dd)
|
|
24976
|
+
// }
|
|
24977
|
+
// }
|
|
24978
|
+
// const onInputChange = (e: React.ChangeEvent<HTMLInputElement>, index: number) => {
|
|
24979
|
+
// console.log(e.target.value);
|
|
24980
|
+
// const dd = value.map((item, i) => {
|
|
24981
|
+
// if (i === index) {
|
|
24982
|
+
// return e.target.value
|
|
24983
|
+
// }
|
|
24984
|
+
// return item
|
|
24985
|
+
// })
|
|
24986
|
+
// setVal(dd);
|
|
24987
|
+
// props.onChange?.(dd)
|
|
24988
|
+
// }
|
|
24989
|
+
// return (
|
|
24990
|
+
// <>
|
|
24991
|
+
// {newArrLength > 0 && value.map((item, index) => {
|
|
24992
|
+
// return
|
|
24993
|
+
// <Form.Item label='车牌号' >
|
|
24994
|
+
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
24995
|
+
// rules: [{ required: true, }]
|
|
24996
|
+
// })(
|
|
24997
|
+
// <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
24998
|
+
// )}
|
|
24999
|
+
// </Form.Item>
|
|
25000
|
+
// // <Col span={6} >
|
|
25001
|
+
// // <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
25002
|
+
// // </Col>
|
|
25003
|
+
// })}
|
|
25004
|
+
// <Button type="link" onClick={onAdd}>添加车牌号</Button>
|
|
25005
|
+
// {newArrLength > 1 && <Button type="link" onClick={onDelete}>删除</Button>}
|
|
25006
|
+
// </>
|
|
25007
|
+
// )
|
|
25008
|
+
// }
|
|
25009
|
+
|
|
24713
25010
|
var css_248z$s = ".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 .break-word {\n word-break: break-word;\n}\n";
|
|
24714
25011
|
styleInject(css_248z$s);
|
|
24715
25012
|
|