kts-component-invoice-operate 3.2.235-fuling → 3.2.236
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/GoodsListState/IGood/index.d.ts +1 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -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/Invoice/ui/digtal/GoodsList/index.d.ts +1 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +4 -1
- package/dist/index.esm.js +970 -330
- package/dist/index.js +968 -328
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +69 -7
- package/src/Invoice/Invoice-digtal/index.md +2 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +2 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +3 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
- 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/default/ImportGoodsDrawer/index.tsx +4 -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 +37 -23
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +3 -1
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +20 -10
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +11 -6
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +5 -2
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +1 -1
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +7 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +363 -104
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +231 -72
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'kts-components-antd-x3/dist/kts-components-antd-x3.css';
|
|
2
|
-
import React, { createElement, createContext, useContext, useEffect, forwardRef, Children, isValidElement } from 'react';
|
|
2
|
+
import React, { createElement, createContext, useContext, useEffect, forwardRef, Children, isValidElement, useCallback } from 'react';
|
|
3
3
|
import GreyReactBox, { decorator } from 'grey-react-box';
|
|
4
4
|
import { chain as chain$1, bignumber, format as format$1, create, all, equal } from 'mathjs';
|
|
5
5
|
import { message, Form, Input, Icon as Icon$1, Tag as Tag$1, Select, Button, Tooltip, Switch as Switch$1, Typography, Menu, Dropdown, AutoComplete as AutoComplete$2, Spin, Checkbox, Drawer, Descriptions, Empty, Divider, Popover as Popover$1, Table as Table$1, Tree, Modal as Modal$1, Row as Row$2, Col as Col$2 } from 'kts-components-antd-x3';
|
|
@@ -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
|
|
|
@@ -981,6 +981,7 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
|
981
981
|
this.dataSource = [];
|
|
982
982
|
this.pagination = {};
|
|
983
983
|
this.isVisibleDrawer = false;
|
|
984
|
+
this.filter = {};
|
|
984
985
|
this.topExpand = void 0;
|
|
985
986
|
|
|
986
987
|
this.verifyFn = /*#__PURE__*/function () {
|
|
@@ -1174,6 +1175,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1174
1175
|
this.isSalesGifts = false;
|
|
1175
1176
|
this.addComparisonIndex = void 0;
|
|
1176
1177
|
this.drag = new Drag();
|
|
1178
|
+
this.isValidateGood = true;
|
|
1177
1179
|
});
|
|
1178
1180
|
|
|
1179
1181
|
var FreightListState = /*#__PURE__*/_createClass(function FreightListState() {
|
|
@@ -2217,7 +2219,7 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
2217
2219
|
switch (_context.prev = _context.next) {
|
|
2218
2220
|
case 0:
|
|
2219
2221
|
editGood = state.goodsListState.editGood;
|
|
2220
|
-
form = state.goodsListState.form;
|
|
2222
|
+
form = state.goodsListState.form; // const isValidateGood = state.goodsListState.isValidateGood
|
|
2221
2223
|
|
|
2222
2224
|
if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
|
|
2223
2225
|
_context.next = 4;
|
|
@@ -10967,7 +10969,7 @@ var Statistics = (function () {
|
|
|
10967
10969
|
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === '' ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10968
10970
|
});
|
|
10969
10971
|
|
|
10970
|
-
var AddRowButton = (function () {
|
|
10972
|
+
var AddRowButton = (function (props) {
|
|
10971
10973
|
var controller = Invoice.useInvoiceController();
|
|
10972
10974
|
var model = controller.useMemo(function (s) {
|
|
10973
10975
|
return s.model;
|
|
@@ -11000,24 +11002,54 @@ var AddRowButton = (function () {
|
|
|
11000
11002
|
var disabled = React.useMemo(function () {
|
|
11001
11003
|
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
11002
11004
|
}, [goodMax, goodsNum, searchValue]);
|
|
11003
|
-
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11004
|
-
return _regeneratorRuntime().wrap(function
|
|
11005
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
11006
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11005
11007
|
while (1) {
|
|
11006
|
-
switch (
|
|
11008
|
+
switch (_context2.prev = _context2.next) {
|
|
11007
11009
|
case 0:
|
|
11008
|
-
|
|
11009
|
-
return
|
|
11010
|
+
_context2.next = 2;
|
|
11011
|
+
return controller.run( /*#__PURE__*/function () {
|
|
11012
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11013
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11014
|
+
while (1) {
|
|
11015
|
+
switch (_context.prev = _context.next) {
|
|
11016
|
+
case 0:
|
|
11017
|
+
if (!s.addGoodsCheck) {
|
|
11018
|
+
_context.next = 3;
|
|
11019
|
+
break;
|
|
11020
|
+
}
|
|
11021
|
+
|
|
11022
|
+
_context.next = 3;
|
|
11023
|
+
return s.addGoodsCheck();
|
|
11024
|
+
|
|
11025
|
+
case 3:
|
|
11026
|
+
case "end":
|
|
11027
|
+
return _context.stop();
|
|
11028
|
+
}
|
|
11029
|
+
}
|
|
11030
|
+
}, _callee);
|
|
11031
|
+
}));
|
|
11032
|
+
|
|
11033
|
+
return function (_x) {
|
|
11034
|
+
return _ref2.apply(this, arguments);
|
|
11035
|
+
};
|
|
11036
|
+
}());
|
|
11010
11037
|
|
|
11011
11038
|
case 2:
|
|
11012
|
-
|
|
11039
|
+
console.log('continue');
|
|
11040
|
+
_context2.next = 5;
|
|
11041
|
+
return addGood$1(controller);
|
|
11042
|
+
|
|
11043
|
+
case 5:
|
|
11044
|
+
_context2.next = 7;
|
|
11013
11045
|
return rollBottom(controller, rootElement);
|
|
11014
11046
|
|
|
11015
|
-
case
|
|
11047
|
+
case 7:
|
|
11016
11048
|
case "end":
|
|
11017
|
-
return
|
|
11049
|
+
return _context2.stop();
|
|
11018
11050
|
}
|
|
11019
11051
|
}
|
|
11020
|
-
},
|
|
11052
|
+
}, _callee2);
|
|
11021
11053
|
})), [controller, rootElement]);
|
|
11022
11054
|
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
11023
11055
|
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -11029,35 +11061,35 @@ var AddRowButton = (function () {
|
|
|
11029
11061
|
});
|
|
11030
11062
|
/** 添加一个空货物 */
|
|
11031
11063
|
|
|
11032
|
-
function addGood$1(
|
|
11064
|
+
function addGood$1(_x2) {
|
|
11033
11065
|
return _addGood.apply(this, arguments);
|
|
11034
11066
|
}
|
|
11035
11067
|
/** 货物列表,滚动到底部 */
|
|
11036
11068
|
|
|
11037
11069
|
|
|
11038
11070
|
function _addGood() {
|
|
11039
|
-
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11040
|
-
return _regeneratorRuntime().wrap(function
|
|
11071
|
+
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
|
|
11072
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11041
11073
|
while (1) {
|
|
11042
|
-
switch (
|
|
11074
|
+
switch (_context4.prev = _context4.next) {
|
|
11043
11075
|
case 0:
|
|
11044
|
-
|
|
11076
|
+
_context4.next = 2;
|
|
11045
11077
|
return controller.saveEditGood();
|
|
11046
11078
|
|
|
11047
11079
|
case 2:
|
|
11048
|
-
|
|
11080
|
+
_context4.next = 4;
|
|
11049
11081
|
return controller.wait();
|
|
11050
11082
|
|
|
11051
11083
|
case 4:
|
|
11052
|
-
|
|
11084
|
+
_context4.next = 6;
|
|
11053
11085
|
return controller.run( /*#__PURE__*/function () {
|
|
11054
|
-
var
|
|
11055
|
-
return _regeneratorRuntime().wrap(function
|
|
11086
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
11087
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11056
11088
|
while (1) {
|
|
11057
|
-
switch (
|
|
11089
|
+
switch (_context3.prev = _context3.next) {
|
|
11058
11090
|
case 0:
|
|
11059
11091
|
if (!s.goodsListState.editGood) {
|
|
11060
|
-
|
|
11092
|
+
_context3.next = 3;
|
|
11061
11093
|
break;
|
|
11062
11094
|
}
|
|
11063
11095
|
|
|
@@ -11065,74 +11097,74 @@ function _addGood() {
|
|
|
11065
11097
|
content: '你正在编辑一个货物',
|
|
11066
11098
|
key: '你正在编辑一个货物'
|
|
11067
11099
|
});
|
|
11068
|
-
return
|
|
11100
|
+
return _context3.abrupt("return");
|
|
11069
11101
|
|
|
11070
11102
|
case 3:
|
|
11071
|
-
|
|
11103
|
+
_context3.next = 5;
|
|
11072
11104
|
return controller.addGood({
|
|
11073
11105
|
taxRate: s.goodsListState.defaultRate,
|
|
11074
11106
|
lineAttribute: LineAttributeType$1.正常
|
|
11075
11107
|
});
|
|
11076
11108
|
|
|
11077
11109
|
case 5:
|
|
11078
|
-
s.goodsListState.editGood =
|
|
11110
|
+
s.goodsListState.editGood = _context3.sent;
|
|
11079
11111
|
|
|
11080
11112
|
case 6:
|
|
11081
11113
|
case "end":
|
|
11082
|
-
return
|
|
11114
|
+
return _context3.stop();
|
|
11083
11115
|
}
|
|
11084
11116
|
}
|
|
11085
|
-
},
|
|
11117
|
+
}, _callee3);
|
|
11086
11118
|
}));
|
|
11087
11119
|
|
|
11088
|
-
return function (
|
|
11089
|
-
return
|
|
11120
|
+
return function (_x5) {
|
|
11121
|
+
return _ref3.apply(this, arguments);
|
|
11090
11122
|
};
|
|
11091
11123
|
}());
|
|
11092
11124
|
|
|
11093
11125
|
case 6:
|
|
11094
11126
|
case "end":
|
|
11095
|
-
return
|
|
11127
|
+
return _context4.stop();
|
|
11096
11128
|
}
|
|
11097
11129
|
}
|
|
11098
|
-
},
|
|
11130
|
+
}, _callee4);
|
|
11099
11131
|
}));
|
|
11100
11132
|
return _addGood.apply(this, arguments);
|
|
11101
11133
|
}
|
|
11102
11134
|
|
|
11103
|
-
function rollBottom(
|
|
11135
|
+
function rollBottom(_x3, _x4) {
|
|
11104
11136
|
return _rollBottom.apply(this, arguments);
|
|
11105
11137
|
}
|
|
11106
11138
|
|
|
11107
11139
|
function _rollBottom() {
|
|
11108
|
-
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11140
|
+
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
|
|
11109
11141
|
var cont;
|
|
11110
|
-
return _regeneratorRuntime().wrap(function
|
|
11142
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
11111
11143
|
while (1) {
|
|
11112
|
-
switch (
|
|
11144
|
+
switch (_context5.prev = _context5.next) {
|
|
11113
11145
|
case 0:
|
|
11114
|
-
|
|
11146
|
+
_context5.next = 2;
|
|
11115
11147
|
return controller.wait();
|
|
11116
11148
|
|
|
11117
11149
|
case 2:
|
|
11118
11150
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
11119
11151
|
|
|
11120
11152
|
if (cont) {
|
|
11121
|
-
|
|
11153
|
+
_context5.next = 5;
|
|
11122
11154
|
break;
|
|
11123
11155
|
}
|
|
11124
11156
|
|
|
11125
|
-
return
|
|
11157
|
+
return _context5.abrupt("return");
|
|
11126
11158
|
|
|
11127
11159
|
case 5:
|
|
11128
11160
|
cont.scrollTop = cont.scrollHeight;
|
|
11129
11161
|
|
|
11130
11162
|
case 6:
|
|
11131
11163
|
case "end":
|
|
11132
|
-
return
|
|
11164
|
+
return _context5.stop();
|
|
11133
11165
|
}
|
|
11134
11166
|
}
|
|
11135
|
-
},
|
|
11167
|
+
}, _callee5);
|
|
11136
11168
|
}));
|
|
11137
11169
|
return _rollBottom.apply(this, arguments);
|
|
11138
11170
|
}
|
|
@@ -16918,7 +16950,9 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16918
16950
|
className: "kts-invoice-operate-goods-list-able"
|
|
16919
16951
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16920
16952
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16921
|
-
}, /*#__PURE__*/React.createElement(AddRowButton,
|
|
16953
|
+
}, /*#__PURE__*/React.createElement(AddRowButton, {
|
|
16954
|
+
addGoodsCheck: props.addGoodsCheck
|
|
16955
|
+
}), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
|
|
16922
16956
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16923
16957
|
}, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
16924
16958
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
@@ -17922,7 +17956,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17922
17956
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17923
17957
|
autoComplete: "off"
|
|
17924
17958
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17925
|
-
span: 10 +
|
|
17959
|
+
span: 10 + leqispanW,
|
|
17926
17960
|
style: {
|
|
17927
17961
|
display: isExpand ? undefined : 'none'
|
|
17928
17962
|
}
|
|
@@ -17939,7 +17973,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17939
17973
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17940
17974
|
autoComplete: "off"
|
|
17941
17975
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17942
|
-
span: 10 +
|
|
17976
|
+
span: 10 + leqispanW,
|
|
17943
17977
|
style: {
|
|
17944
17978
|
display: isExpand ? undefined : 'none'
|
|
17945
17979
|
}
|
|
@@ -17953,7 +17987,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17953
17987
|
readOnly: isReadOnly('buyerPhone'),
|
|
17954
17988
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17955
17989
|
autoComplete: "off"
|
|
17956
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17990
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17991
|
+
span: 4,
|
|
17992
|
+
style: {
|
|
17993
|
+
display: isExpand ? undefined : 'none'
|
|
17994
|
+
}
|
|
17995
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17996
|
+
colon: false
|
|
17997
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17998
|
+
valuePropName: 'checked'
|
|
17999
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18000
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
18001
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
18002
|
+
style: {
|
|
18003
|
+
whiteSpace: 'nowrap'
|
|
18004
|
+
}
|
|
18005
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17957
18006
|
span: 10 + leqispanW,
|
|
17958
18007
|
style: {
|
|
17959
18008
|
display: isExpand ? undefined : 'none'
|
|
@@ -18045,7 +18094,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18045
18094
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18046
18095
|
autoComplete: "off"
|
|
18047
18096
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18048
|
-
span: 10 +
|
|
18097
|
+
span: 10 + leqispanW,
|
|
18049
18098
|
style: {
|
|
18050
18099
|
display: isExpand ? undefined : 'none'
|
|
18051
18100
|
}
|
|
@@ -18062,7 +18111,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18062
18111
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
18063
18112
|
autoComplete: "off"
|
|
18064
18113
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18065
|
-
span: 10 +
|
|
18114
|
+
span: 10 + leqispanW,
|
|
18066
18115
|
style: {
|
|
18067
18116
|
display: isExpand ? undefined : 'none'
|
|
18068
18117
|
}
|
|
@@ -18076,7 +18125,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18076
18125
|
readOnly: isReadOnly('sellerPhone'),
|
|
18077
18126
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
18078
18127
|
autoComplete: "off"
|
|
18079
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18128
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
18129
|
+
span: 4,
|
|
18130
|
+
style: {
|
|
18131
|
+
display: isExpand ? undefined : 'none'
|
|
18132
|
+
}
|
|
18133
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18134
|
+
colon: false
|
|
18135
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
18136
|
+
valuePropName: 'checked'
|
|
18137
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18138
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
18139
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
18140
|
+
style: {
|
|
18141
|
+
whiteSpace: 'nowrap'
|
|
18142
|
+
}
|
|
18143
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
18080
18144
|
span: 10 + leqispanW,
|
|
18081
18145
|
style: {
|
|
18082
18146
|
display: isExpand ? undefined : 'none'
|
|
@@ -18465,8 +18529,29 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18465
18529
|
var rulesMap = controller.useMemo(function (s) {
|
|
18466
18530
|
return s.stakeholder.rulesMap || {};
|
|
18467
18531
|
}, []);
|
|
18532
|
+
|
|
18533
|
+
var _React$useState3 = React.useState(''),
|
|
18534
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
18535
|
+
validateStatus = _React$useState4[0],
|
|
18536
|
+
setStatus = _React$useState4[1];
|
|
18537
|
+
|
|
18538
|
+
var _React$useState5 = React.useState(''),
|
|
18539
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
18540
|
+
errorInfo = _React$useState6[0],
|
|
18541
|
+
setInfo = _React$useState6[1];
|
|
18542
|
+
|
|
18543
|
+
var _React$useState7 = React.useState(''),
|
|
18544
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
18545
|
+
nation = _React$useState8[0],
|
|
18546
|
+
setNationStatue = _React$useState8[1];
|
|
18547
|
+
|
|
18548
|
+
var _React$useState9 = React.useState(''),
|
|
18549
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
18550
|
+
nationInfo = _React$useState10[0],
|
|
18551
|
+
setNation = _React$useState10[1];
|
|
18468
18552
|
/** 乐企 */
|
|
18469
18553
|
|
|
18554
|
+
|
|
18470
18555
|
var leqispanW = React.useMemo(function () {
|
|
18471
18556
|
if (props.leqi) {
|
|
18472
18557
|
return 0;
|
|
@@ -18507,6 +18592,200 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18507
18592
|
React.useEffect(function () {
|
|
18508
18593
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
18509
18594
|
}, [props.isExpand]);
|
|
18595
|
+
var onChangeType = useCallback(function (value) {
|
|
18596
|
+
console.log(value);
|
|
18597
|
+
|
|
18598
|
+
if (value === "201") {
|
|
18599
|
+
// 当“自然人证件类型”选择“201:居民身份证”时,校验是否为“156:中国’
|
|
18600
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
18601
|
+
nationality: "156"
|
|
18602
|
+
});
|
|
18603
|
+
var supplierTaxId = form === null || form === void 0 ? void 0 : form.getFieldValue("supplierTaxId");
|
|
18604
|
+
var certificateNumber = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
18605
|
+
|
|
18606
|
+
if (supplierTaxId !== certificateNumber) {
|
|
18607
|
+
setStatus('error');
|
|
18608
|
+
setInfo('证件号码应与销方税号保持一致');
|
|
18609
|
+
}
|
|
18610
|
+
} else if (value === "227") {
|
|
18611
|
+
// 当“自然人证件类型”选择“227:中华人民共和国护照”时,校验是否为“156:中国
|
|
18612
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
18613
|
+
nationality: "156"
|
|
18614
|
+
});
|
|
18615
|
+
} else if (value === "213" || value === "238") {
|
|
18616
|
+
// 当“自然人证件类型”选择“213:台湾居民来往大陆通行证”时,校验是否为”158:中国台湾”
|
|
18617
|
+
// 当“自然人证件类型”选择“238:中华人民共和国台湾居民居住证”时,校验是否为“ 158:中国台湾”
|
|
18618
|
+
form === null || form === void 0 ? void 0 : form.setFieldsValue({
|
|
18619
|
+
nationality: "158"
|
|
18620
|
+
});
|
|
18621
|
+
}
|
|
18622
|
+
}, [form]);
|
|
18623
|
+
/** 校验证件号码*/
|
|
18624
|
+
|
|
18625
|
+
var validateIDCode = useCallback(function (_, value) {
|
|
18626
|
+
if (!value) {
|
|
18627
|
+
return Promise.resolve();
|
|
18628
|
+
}
|
|
18629
|
+
|
|
18630
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType");
|
|
18631
|
+
var nationality = form === null || form === void 0 ? void 0 : form.getFieldValue("nationality");
|
|
18632
|
+
|
|
18633
|
+
if (idtype === "210") {
|
|
18634
|
+
// 当“自然人证件类型”选择“210:港澳居民来往内地通行证”时,
|
|
18635
|
+
if (value.startsWith("M")) {
|
|
18636
|
+
//如果“证件号码”以M开头,"国籍(或地区头,)”必须为“446:中国澳门”;校验证件号码必须以H或M开头
|
|
18637
|
+
if (nationality !== '446') {
|
|
18638
|
+
setNationStatue('error');
|
|
18639
|
+
setNation('请选择正确的国籍');
|
|
18640
|
+
} else {
|
|
18641
|
+
setNationStatue('');
|
|
18642
|
+
setNation('');
|
|
18643
|
+
}
|
|
18644
|
+
} else if (value.startsWith("H")) {
|
|
18645
|
+
//如果“证件号码”以H开国籍(或地区)”必须为“344:中国香港”;
|
|
18646
|
+
if (nationality !== '344') {
|
|
18647
|
+
setNationStatue('error');
|
|
18648
|
+
setNation('请选择正确的国籍');
|
|
18649
|
+
} else {
|
|
18650
|
+
setNationStatue('');
|
|
18651
|
+
setNation('');
|
|
18652
|
+
}
|
|
18653
|
+
} else {
|
|
18654
|
+
return Promise.reject("请输入正确的证件号码");
|
|
18655
|
+
}
|
|
18656
|
+
} else if (idtype === "237") {
|
|
18657
|
+
//当“自然人证件类型”选择“237:中华人民共和国港澳居民居住证”时,校验证件号码必须以810000或820000开头,如果“证件号码”以810000开头,必须为“344:中国香国籍(或地区))港”;如果“证件号码”以820000开头,国籍(或地区)必须为“446:中国澳门”
|
|
18658
|
+
if (value.startsWith("810000")) {
|
|
18659
|
+
if (nationality !== '344') {
|
|
18660
|
+
setNationStatue('error');
|
|
18661
|
+
setNation('请选择正确的国籍');
|
|
18662
|
+
} else {
|
|
18663
|
+
setNationStatue('');
|
|
18664
|
+
setNation('');
|
|
18665
|
+
}
|
|
18666
|
+
} else if (value.startsWith("820000")) {
|
|
18667
|
+
if (nationality !== '446') {
|
|
18668
|
+
setNationStatue('error');
|
|
18669
|
+
setNation('请选择正确的国籍');
|
|
18670
|
+
} else {
|
|
18671
|
+
setNationStatue('');
|
|
18672
|
+
setNation('');
|
|
18673
|
+
}
|
|
18674
|
+
} else {
|
|
18675
|
+
setStatus('error');
|
|
18676
|
+
setInfo('请输入正确的证件号码');
|
|
18677
|
+
return Promise.reject("请输入正确的证件号码");
|
|
18678
|
+
}
|
|
18679
|
+
} // 当“销售方自然人证件类型”填写“201:居民身份证”,“销售方纳税人识别号”必须与“销售方自然人证件号码”完全一致
|
|
18680
|
+
|
|
18681
|
+
|
|
18682
|
+
if (idtype === "201") {
|
|
18683
|
+
var supplierTaxId = form === null || form === void 0 ? void 0 : form.getFieldValue("supplierTaxId");
|
|
18684
|
+
|
|
18685
|
+
if (value !== supplierTaxId) {
|
|
18686
|
+
setStatus('error');
|
|
18687
|
+
setInfo('证件号码应与销方税号保持一致');
|
|
18688
|
+
return Promise.reject("证件号码应与销方税号保持一致");
|
|
18689
|
+
} else if (value === supplierTaxId) {
|
|
18690
|
+
setStatus('');
|
|
18691
|
+
setInfo('');
|
|
18692
|
+
}
|
|
18693
|
+
}
|
|
18694
|
+
|
|
18695
|
+
setStatus('');
|
|
18696
|
+
setInfo('');
|
|
18697
|
+
return Promise.resolve();
|
|
18698
|
+
}, [form]);
|
|
18699
|
+
var validateIDCode2 = useCallback(function (e) {
|
|
18700
|
+
var value = e.target.value; // if (!value) {
|
|
18701
|
+
// setStatus('');
|
|
18702
|
+
// setInfo('')
|
|
18703
|
+
// }
|
|
18704
|
+
|
|
18705
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType"); // // 当“销售方自然人证件类型”填写“201:居民身份证”,“销售方纳税人识别号”必须与“销售方自然人证件号码”完全一致
|
|
18706
|
+
|
|
18707
|
+
if (idtype === "201") {
|
|
18708
|
+
var certificateNumber = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
18709
|
+
console.log(value, certificateNumber);
|
|
18710
|
+
|
|
18711
|
+
if (value !== certificateNumber) {
|
|
18712
|
+
setStatus('error');
|
|
18713
|
+
setInfo('证件号码应与销方税号保持一致');
|
|
18714
|
+
} else {
|
|
18715
|
+
setStatus('');
|
|
18716
|
+
setInfo('');
|
|
18717
|
+
}
|
|
18718
|
+
}
|
|
18719
|
+
}, [form]);
|
|
18720
|
+
var validateNationality = useCallback(function (_, value) {
|
|
18721
|
+
if (!value) {
|
|
18722
|
+
return Promise.resolve();
|
|
18723
|
+
}
|
|
18724
|
+
|
|
18725
|
+
var idtype = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateType");
|
|
18726
|
+
var idcode = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
|
|
18727
|
+
console.log(value, idtype, idcode);
|
|
18728
|
+
|
|
18729
|
+
if (idtype === "201" || idtype === "227") {
|
|
18730
|
+
// 当“自然人证件类型”选择“201:居民身份证”时,校验是否为“156:中国’
|
|
18731
|
+
// 当“自然人证件类型”选择“227:中华人民共和国护照”时,校验是否为“156:中国
|
|
18732
|
+
if (value !== "156") {
|
|
18733
|
+
setNationStatue('error');
|
|
18734
|
+
setNation('请选择正确的国籍');
|
|
18735
|
+
return Promise.reject("请选择正确的国籍");
|
|
18736
|
+
}
|
|
18737
|
+
} else if (idtype === "213" || idtype === "238") {
|
|
18738
|
+
// 当“自然人证件类型”选择“213:台湾居民来往大陆通行证”时,校验是否为”158:中国台湾”
|
|
18739
|
+
// 当“自然人证件类型”选择“238:中华人民共和国台湾居民居住证”时,校验是否为“ 158:中国台湾”
|
|
18740
|
+
if (value !== "158") {
|
|
18741
|
+
setNationStatue('error');
|
|
18742
|
+
setNation('请选择正确的国籍');
|
|
18743
|
+
return Promise.reject("请选择正确的国籍");
|
|
18744
|
+
}
|
|
18745
|
+
} else if (idtype === "210") {
|
|
18746
|
+
//当“自然人证件类型”选择“210:港澳居民来往内地通行证”时,如果“证件号码”以H开国籍(或地区)”必须为“344:中国香港”;如果“证件号码”以M开头,"国籍(或地区头,)”必须为“446:中国澳门”;
|
|
18747
|
+
var r = false;
|
|
18748
|
+
|
|
18749
|
+
if (idcode) {
|
|
18750
|
+
if (idcode.startsWith("M") && value === "446") {
|
|
18751
|
+
r = true;
|
|
18752
|
+
} else if (idcode.startsWith("H") && value === "344") {
|
|
18753
|
+
r = true;
|
|
18754
|
+
}
|
|
18755
|
+
} else if (value === "344" || value === "446") {
|
|
18756
|
+
r = true;
|
|
18757
|
+
}
|
|
18758
|
+
|
|
18759
|
+
if (!r) {
|
|
18760
|
+
setNationStatue('error');
|
|
18761
|
+
setNation('请选择正确的国籍');
|
|
18762
|
+
return Promise.reject("请选择正确的国籍");
|
|
18763
|
+
}
|
|
18764
|
+
} else if (idtype === "237") {
|
|
18765
|
+
//当“自然人证件类型”选择“237:中华人民共和国港澳居民居住证”时,校验证件号码必须以810000或820000开头,如果“证件号码”以810000开头,必须为“344:中国香国籍(或地区))港”;如果“证件号码”以820000开头,国籍(或地区)必须为“446:中国澳门”
|
|
18766
|
+
var _r = false;
|
|
18767
|
+
|
|
18768
|
+
if (idcode) {
|
|
18769
|
+
if (idcode.startsWith("820000") && value === "446") {
|
|
18770
|
+
_r = true;
|
|
18771
|
+
} else if (idcode.startsWith("810000") && value === "344") {
|
|
18772
|
+
_r = true;
|
|
18773
|
+
}
|
|
18774
|
+
} else if (value === "344" || value === "446") {
|
|
18775
|
+
_r = true;
|
|
18776
|
+
}
|
|
18777
|
+
|
|
18778
|
+
if (!_r) {
|
|
18779
|
+
setNationStatue('error');
|
|
18780
|
+
setNation('请选择正确的国籍');
|
|
18781
|
+
return Promise.reject("请选择正确的国籍");
|
|
18782
|
+
}
|
|
18783
|
+
}
|
|
18784
|
+
|
|
18785
|
+
setNationStatue('');
|
|
18786
|
+
setNation('');
|
|
18787
|
+
return Promise.resolve();
|
|
18788
|
+
}, [form]);
|
|
18510
18789
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18511
18790
|
className: classnames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
18512
18791
|
readOnly: readOnly
|
|
@@ -18569,6 +18848,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18569
18848
|
message: '销售方纳税人识别号必填'
|
|
18570
18849
|
}].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
|
|
18571
18850
|
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
18851
|
+
onChange: validateIDCode2,
|
|
18572
18852
|
myform: form,
|
|
18573
18853
|
fieldName: 'supplierTaxId',
|
|
18574
18854
|
readOnly: isReadOnly('supplierTaxId'),
|
|
@@ -18843,6 +19123,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18843
19123
|
message: '数据必填'
|
|
18844
19124
|
}]
|
|
18845
19125
|
})( /*#__PURE__*/React.createElement(CardSelect, {
|
|
19126
|
+
onChange: onChangeType,
|
|
18846
19127
|
readOnly: isReadOnly('certificateType'),
|
|
18847
19128
|
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
18848
19129
|
autoComplete: "off"
|
|
@@ -18850,7 +19131,9 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18850
19131
|
span: 7
|
|
18851
19132
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18852
19133
|
label: "\u8BC1\u4EF6\u53F7\u7801",
|
|
18853
|
-
colon: false
|
|
19134
|
+
colon: false,
|
|
19135
|
+
validateStatus: validateStatus,
|
|
19136
|
+
help: errorInfo
|
|
18854
19137
|
}, getFieldDecorator('certificateNumber', {
|
|
18855
19138
|
rules: [{
|
|
18856
19139
|
required: true,
|
|
@@ -18858,6 +19141,8 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18858
19141
|
}, {
|
|
18859
19142
|
max: 30,
|
|
18860
19143
|
message: "\u5185\u5BB9\u8D85\u957F"
|
|
19144
|
+
}, {
|
|
19145
|
+
validator: validateIDCode
|
|
18861
19146
|
}]
|
|
18862
19147
|
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18863
19148
|
readOnly: isReadOnly('certificateNumber'),
|
|
@@ -18867,13 +19152,28 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18867
19152
|
span: 6
|
|
18868
19153
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18869
19154
|
label: "\u56FD\u7C4D(\u6216\u5730\u533A)",
|
|
18870
|
-
colon: false
|
|
19155
|
+
colon: false,
|
|
19156
|
+
validateStatus: nation,
|
|
19157
|
+
help: nationInfo
|
|
18871
19158
|
}, getFieldDecorator('nationality', {
|
|
18872
19159
|
rules: [{
|
|
18873
19160
|
required: true,
|
|
18874
19161
|
message: '数据必填'
|
|
19162
|
+
}, {
|
|
19163
|
+
validator: validateNationality
|
|
18875
19164
|
}]
|
|
18876
19165
|
})( /*#__PURE__*/React.createElement(NationalSelect, {
|
|
19166
|
+
showSearch: true,
|
|
19167
|
+
optionFilterProp: "children",
|
|
19168
|
+
filterOption: function filterOption(input, option) {
|
|
19169
|
+
if (option) {
|
|
19170
|
+
var _option$label;
|
|
19171
|
+
|
|
19172
|
+
return ((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.indexOf(input)) >= 0;
|
|
19173
|
+
}
|
|
19174
|
+
|
|
19175
|
+
return false;
|
|
19176
|
+
},
|
|
18877
19177
|
readOnly: isReadOnly('nationality'),
|
|
18878
19178
|
placeholder: "\u6570\u636E\u5FC5\u586B",
|
|
18879
19179
|
autoComplete: "off"
|
|
@@ -18881,10 +19181,10 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18881
19181
|
});
|
|
18882
19182
|
|
|
18883
19183
|
function NaturalPersonFlag$1(props) {
|
|
18884
|
-
var _React$
|
|
18885
|
-
_React$
|
|
18886
|
-
value = _React$
|
|
18887
|
-
setValue = _React$
|
|
19184
|
+
var _React$useState11 = React.useState(props.value || 'COMPANY'),
|
|
19185
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
19186
|
+
value = _React$useState12[0],
|
|
19187
|
+
setValue = _React$useState12[1];
|
|
18888
19188
|
|
|
18889
19189
|
var onChange = React.useCallback(function (e) {
|
|
18890
19190
|
if (props.readOnly) return;
|
|
@@ -18912,10 +19212,10 @@ function BuyerNameInput$2(props) {
|
|
|
18912
19212
|
return s.autoComplete;
|
|
18913
19213
|
}, []);
|
|
18914
19214
|
|
|
18915
|
-
var _React$
|
|
18916
|
-
_React$
|
|
18917
|
-
options = _React$
|
|
18918
|
-
setOptions = _React$
|
|
19215
|
+
var _React$useState13 = React.useState([]),
|
|
19216
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
19217
|
+
options = _React$useState14[0],
|
|
19218
|
+
setOptions = _React$useState14[1];
|
|
18919
19219
|
|
|
18920
19220
|
var onChangeAutoComplete = React.useCallback(function (value) {
|
|
18921
19221
|
var record = options.filter(function (e) {
|
|
@@ -19114,65 +19414,13 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
|
19114
19414
|
_createClass(CardSelect, [{
|
|
19115
19415
|
key: "render",
|
|
19116
19416
|
value: function render() {
|
|
19117
|
-
var props = this.props;
|
|
19118
|
-
// { label: '组织机构代码证', value: '101' },
|
|
19119
|
-
// { label: '营业执照', value: '102' },
|
|
19120
|
-
// { label: '税务登记证', value: '103' },
|
|
19121
|
-
// { label: '其他单位证件', value: '199' },
|
|
19122
|
-
// { label: '居民身份证', value: '201' },
|
|
19123
|
-
// { label: '军官证', value: '202' },
|
|
19124
|
-
// { label: '武警警官证', value: '203' },
|
|
19125
|
-
// { label: '士兵证', value: '204' },
|
|
19126
|
-
// { label: '军队离退休干部证', value: '205' },
|
|
19127
|
-
// { label: '残疾人证', value: '206' },
|
|
19128
|
-
// { label: '残疾军人证(1-8级)', value: '207' },
|
|
19129
|
-
// { label: '外国护照', value: '208', },
|
|
19130
|
-
// { label: '港澳同胞回乡证', value: '209', },
|
|
19131
|
-
// { label: '港澳居民来往内地通行证', value: '210', },
|
|
19132
|
-
// { label: '台胞证', value: '211', },
|
|
19133
|
-
// { label: '中华人民共和国往来港澳通行证', value: '212', },
|
|
19134
|
-
// { label: '台湾居民来往大陆通行证', value: '213', },
|
|
19135
|
-
// { label: '大陆居民往来台湾通行证', value: '214', },
|
|
19136
|
-
// { label: '外国人居留证', value: '215', },
|
|
19137
|
-
// { label: '外交官证', value: '216', },
|
|
19138
|
-
// { label: '使(领事)馆证', value: '217', },
|
|
19139
|
-
// { label: '海员证', value: '218', },
|
|
19140
|
-
// { label: '香港永久性居民身份证', value: '219', },
|
|
19141
|
-
// { label: '台湾身份证', value: '220', },
|
|
19142
|
-
// { label: '澳门特别行政区永久性居民身份证', value: '221', },
|
|
19143
|
-
// { label: '外国人身份证件', value: '222', },
|
|
19144
|
-
// { label: '高校毕业生自主创业证', value: '223', },
|
|
19145
|
-
// { label: '就业失业登记证', value: '224', },
|
|
19146
|
-
// { label: '退休证', value: '225', },
|
|
19147
|
-
// { label: '离休证', value: '226', },
|
|
19148
|
-
// { label: '中国护照', value: '227', },
|
|
19149
|
-
// { label: '城镇退役士兵自谋职业证', value: '228', },
|
|
19150
|
-
// { label: '随军家属身份证明', value: '229', },
|
|
19151
|
-
// { label: '中国护照', value: '230', },
|
|
19152
|
-
// { label: '中国人民解放军义务兵退出现役证', value: '231', },
|
|
19153
|
-
// { label: '中国人民解放军士官退出现役证', value: '232', },
|
|
19154
|
-
// { label: '外国人永久居留身份证', value: '233', },
|
|
19155
|
-
// { label: '就业创业证', value: '234', },
|
|
19156
|
-
// { label: '香港特别行政区护照', value: '235', },
|
|
19157
|
-
// { label: '澳门特别行政区护照', value: '236', },
|
|
19158
|
-
// { label: '中华人民共和国港澳居民居住证', value: '237', },
|
|
19159
|
-
// { label: '中华人民共和国台湾居民居住证', value: '238', },
|
|
19160
|
-
// { label: '《中华人民共和国外国人工作许可证》(A类)', value: '239', },
|
|
19161
|
-
// { label: '《中华人民共和国外国人工作许可证》(B类)', value: '240', },
|
|
19162
|
-
// { label: '《中华人民共和国外国人工作许可证》(C类)', value: '241', },
|
|
19163
|
-
// { label: '出生医学证明', value: '291', },
|
|
19164
|
-
// { label: '其他个人证件', value: '299', },
|
|
19165
|
-
// ]
|
|
19166
|
-
|
|
19417
|
+
var props = this.props;
|
|
19167
19418
|
var option = [{
|
|
19168
19419
|
label: "居民身份证",
|
|
19169
19420
|
value: "201"
|
|
19170
19421
|
}, {
|
|
19171
19422
|
label: "外国护照",
|
|
19172
19423
|
value: "208"
|
|
19173
|
-
}, {
|
|
19174
|
-
label: "港澳同胞回乡证",
|
|
19175
|
-
value: "209"
|
|
19176
19424
|
}, {
|
|
19177
19425
|
label: "港澳居民来往内地通行证",
|
|
19178
19426
|
value: "210"
|
|
@@ -19237,6 +19485,15 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
19237
19485
|
var option = [{
|
|
19238
19486
|
value: "156",
|
|
19239
19487
|
label: "中国"
|
|
19488
|
+
}, {
|
|
19489
|
+
value: "344",
|
|
19490
|
+
label: "中国香港"
|
|
19491
|
+
}, {
|
|
19492
|
+
value: "158",
|
|
19493
|
+
label: "中国台湾"
|
|
19494
|
+
}, {
|
|
19495
|
+
value: "446",
|
|
19496
|
+
label: "中国澳门"
|
|
19240
19497
|
}, {
|
|
19241
19498
|
value: "004",
|
|
19242
19499
|
label: "阿富汗"
|
|
@@ -19366,9 +19623,6 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
19366
19623
|
}, {
|
|
19367
19624
|
value: "152",
|
|
19368
19625
|
label: "智利"
|
|
19369
|
-
}, {
|
|
19370
|
-
value: "158",
|
|
19371
|
-
label: "中国台湾"
|
|
19372
19626
|
}, {
|
|
19373
19627
|
value: "162",
|
|
19374
19628
|
label: "圣诞岛"
|
|
@@ -19528,9 +19782,6 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
19528
19782
|
}, {
|
|
19529
19783
|
value: "340",
|
|
19530
19784
|
label: "洪都拉斯"
|
|
19531
|
-
}, {
|
|
19532
|
-
value: "344",
|
|
19533
|
-
label: "中国香港"
|
|
19534
19785
|
}, {
|
|
19535
19786
|
value: "348",
|
|
19536
19787
|
label: "匈牙利"
|
|
@@ -19615,9 +19866,6 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
19615
19866
|
}, {
|
|
19616
19867
|
value: "442",
|
|
19617
19868
|
label: "卢森堡"
|
|
19618
|
-
}, {
|
|
19619
|
-
value: "446",
|
|
19620
|
-
label: "中国澳门"
|
|
19621
19869
|
}, {
|
|
19622
19870
|
value: "450",
|
|
19623
19871
|
label: "马达加斯加"
|
|
@@ -20124,7 +20372,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
|
|
|
20124
20372
|
styleInject(css_248z$j);
|
|
20125
20373
|
|
|
20126
20374
|
function TableVirtual$1 (props) {
|
|
20127
|
-
var _props$
|
|
20375
|
+
var _props$dataSource4, _props$dataSource5;
|
|
20128
20376
|
|
|
20129
20377
|
var _React$useState = React.useState(null),
|
|
20130
20378
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -20166,8 +20414,10 @@ function TableVirtual$1 (props) {
|
|
|
20166
20414
|
}, [self, tableBody]); // 设置占位dom的搞
|
|
20167
20415
|
|
|
20168
20416
|
var placeholderHeight = React.useMemo(function () {
|
|
20169
|
-
|
|
20170
|
-
|
|
20417
|
+
var _props$dataSource = props.dataSource,
|
|
20418
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
|
|
20419
|
+
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
20420
|
+
var placeholderHeight = rowHeight * dataSource.length;
|
|
20171
20421
|
placeholder.style.height = "".concat(placeholderHeight, "px");
|
|
20172
20422
|
return placeholderHeight;
|
|
20173
20423
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -20179,12 +20429,12 @@ function TableVirtual$1 (props) {
|
|
|
20179
20429
|
}, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
|
|
20180
20430
|
|
|
20181
20431
|
var dataSource = React.useMemo(function () {
|
|
20182
|
-
var _props$
|
|
20432
|
+
var _props$dataSource2;
|
|
20183
20433
|
|
|
20184
20434
|
if (!props.dataSource) return [];
|
|
20185
20435
|
if (props.dataSource.length < 10) return props.dataSource;
|
|
20186
20436
|
if (!rowSize) return [props.dataSource[0]];
|
|
20187
|
-
return (_props$
|
|
20437
|
+
return (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.slice(pointer, pointer + 2 * rowSize);
|
|
20188
20438
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
20189
20439
|
|
|
20190
20440
|
React.useEffect(function () {
|
|
@@ -20203,17 +20453,24 @@ function TableVirtual$1 (props) {
|
|
|
20203
20453
|
}, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
|
|
20204
20454
|
|
|
20205
20455
|
React.useEffect(function () {
|
|
20456
|
+
var _props$dataSource3;
|
|
20457
|
+
|
|
20206
20458
|
if (!self) return;
|
|
20207
20459
|
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
20208
20460
|
if (!table) return;
|
|
20209
|
-
|
|
20210
|
-
|
|
20461
|
+
|
|
20462
|
+
if ((((_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.length) || 0) < 10) {
|
|
20463
|
+
table.style.top = '0px';
|
|
20464
|
+
} else {
|
|
20465
|
+
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
20466
|
+
}
|
|
20467
|
+
}, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
|
|
20211
20468
|
React.useEffect(function () {
|
|
20212
20469
|
if (!self) return;
|
|
20213
20470
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
20214
20471
|
if (!cont) return;
|
|
20215
20472
|
cont.scrollTop = 0;
|
|
20216
|
-
}, [(_props$
|
|
20473
|
+
}, [(_props$dataSource5 = props.dataSource) === null || _props$dataSource5 === void 0 ? void 0 : _props$dataSource5.length]);
|
|
20217
20474
|
return /*#__PURE__*/React.createElement("span", {
|
|
20218
20475
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
20219
20476
|
ref: function ref(e) {
|
|
@@ -20456,43 +20713,86 @@ function addGood$2(_x) {
|
|
|
20456
20713
|
|
|
20457
20714
|
|
|
20458
20715
|
function _addGood$1() {
|
|
20459
|
-
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
20460
|
-
|
|
20716
|
+
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
|
|
20717
|
+
var _controller$formList$;
|
|
20718
|
+
|
|
20719
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
20461
20720
|
while (1) {
|
|
20462
|
-
switch (
|
|
20721
|
+
switch (_context5.prev = _context5.next) {
|
|
20463
20722
|
case 0:
|
|
20464
|
-
|
|
20465
|
-
return controller.
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
_context4.next = 4;
|
|
20469
|
-
return controller.wait();
|
|
20470
|
-
|
|
20471
|
-
case 4:
|
|
20472
|
-
_context4.next = 6;
|
|
20473
|
-
return controller.run( /*#__PURE__*/function () {
|
|
20474
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20475
|
-
var _controller$state$goo;
|
|
20476
|
-
|
|
20477
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20723
|
+
_context5.next = 2;
|
|
20724
|
+
return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
|
|
20725
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
20726
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20478
20727
|
while (1) {
|
|
20479
|
-
switch (
|
|
20728
|
+
switch (_context2.prev = _context2.next) {
|
|
20480
20729
|
case 0:
|
|
20481
|
-
if (!
|
|
20482
|
-
|
|
20730
|
+
if (!err) {
|
|
20731
|
+
_context2.next = 3;
|
|
20483
20732
|
break;
|
|
20484
20733
|
}
|
|
20485
20734
|
|
|
20486
|
-
|
|
20487
|
-
return
|
|
20488
|
-
|
|
20735
|
+
message$1.error('请先填写发票行信息,再添加新的行');
|
|
20736
|
+
return _context2.abrupt("return");
|
|
20737
|
+
|
|
20738
|
+
case 3:
|
|
20739
|
+
case "end":
|
|
20740
|
+
return _context2.stop();
|
|
20741
|
+
}
|
|
20742
|
+
}
|
|
20743
|
+
}, _callee2);
|
|
20744
|
+
}));
|
|
20745
|
+
|
|
20746
|
+
return function (_x4, _x5) {
|
|
20747
|
+
return _ref2.apply(this, arguments);
|
|
20748
|
+
};
|
|
20749
|
+
}());
|
|
20750
|
+
|
|
20751
|
+
case 2:
|
|
20752
|
+
_context5.next = 4;
|
|
20753
|
+
return controller.saveEditGood();
|
|
20754
|
+
|
|
20755
|
+
case 4:
|
|
20756
|
+
_context5.next = 6;
|
|
20757
|
+
return controller.wait();
|
|
20758
|
+
|
|
20759
|
+
case 6:
|
|
20760
|
+
_context5.next = 8;
|
|
20761
|
+
return controller.run( /*#__PURE__*/function () {
|
|
20762
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20763
|
+
var isValidateGood, _controller$state$goo;
|
|
20764
|
+
|
|
20765
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
20766
|
+
while (1) {
|
|
20767
|
+
switch (_context4.prev = _context4.next) {
|
|
20768
|
+
case 0:
|
|
20769
|
+
if (!s.goodsListState.editGood) {
|
|
20770
|
+
_context4.next = 5;
|
|
20771
|
+
break;
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
// message.error({
|
|
20775
|
+
// content: '你正在编辑一个货物',
|
|
20776
|
+
// key: '你正在编辑一个货物',
|
|
20777
|
+
// });
|
|
20778
|
+
// return;
|
|
20779
|
+
isValidateGood = controller.state.goodsListState.isValidateGood;
|
|
20780
|
+
|
|
20781
|
+
if (!isValidateGood) {
|
|
20782
|
+
_context4.next = 5;
|
|
20783
|
+
break;
|
|
20784
|
+
}
|
|
20785
|
+
|
|
20786
|
+
_context4.next = 5;
|
|
20787
|
+
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
20788
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
20489
20789
|
var firstError;
|
|
20490
|
-
return _regeneratorRuntime().wrap(function
|
|
20790
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20491
20791
|
while (1) {
|
|
20492
|
-
switch (
|
|
20792
|
+
switch (_context3.prev = _context3.next) {
|
|
20493
20793
|
case 0:
|
|
20494
20794
|
if (!err) {
|
|
20495
|
-
|
|
20795
|
+
_context3.next = 4;
|
|
20496
20796
|
break;
|
|
20497
20797
|
}
|
|
20498
20798
|
|
|
@@ -20501,50 +20801,50 @@ function _addGood$1() {
|
|
|
20501
20801
|
content: firstError.errors[0].message,
|
|
20502
20802
|
key: '你正在编辑一个货物'
|
|
20503
20803
|
});
|
|
20504
|
-
return
|
|
20804
|
+
return _context3.abrupt("return");
|
|
20505
20805
|
|
|
20506
20806
|
case 4:
|
|
20507
20807
|
case "end":
|
|
20508
|
-
return
|
|
20808
|
+
return _context3.stop();
|
|
20509
20809
|
}
|
|
20510
20810
|
}
|
|
20511
|
-
},
|
|
20811
|
+
}, _callee3);
|
|
20512
20812
|
}));
|
|
20513
20813
|
|
|
20514
|
-
return function (
|
|
20515
|
-
return
|
|
20814
|
+
return function (_x7, _x8) {
|
|
20815
|
+
return _ref4.apply(this, arguments);
|
|
20516
20816
|
};
|
|
20517
20817
|
}());
|
|
20518
20818
|
|
|
20519
|
-
case
|
|
20520
|
-
|
|
20819
|
+
case 5:
|
|
20820
|
+
_context4.next = 7;
|
|
20521
20821
|
return controller.addGood({
|
|
20522
20822
|
taxRate: s.goodsListState.defaultRate,
|
|
20523
20823
|
lineAttribute: LineAttributeType$1.正常
|
|
20524
20824
|
});
|
|
20525
20825
|
|
|
20526
|
-
case
|
|
20527
|
-
s.goodsListState.editGood =
|
|
20826
|
+
case 7:
|
|
20827
|
+
s.goodsListState.editGood = _context4.sent;
|
|
20528
20828
|
|
|
20529
|
-
case
|
|
20829
|
+
case 8:
|
|
20530
20830
|
case "end":
|
|
20531
|
-
return
|
|
20831
|
+
return _context4.stop();
|
|
20532
20832
|
}
|
|
20533
20833
|
}
|
|
20534
|
-
},
|
|
20834
|
+
}, _callee4);
|
|
20535
20835
|
}));
|
|
20536
20836
|
|
|
20537
|
-
return function (
|
|
20538
|
-
return
|
|
20837
|
+
return function (_x6) {
|
|
20838
|
+
return _ref3.apply(this, arguments);
|
|
20539
20839
|
};
|
|
20540
20840
|
}());
|
|
20541
20841
|
|
|
20542
|
-
case
|
|
20842
|
+
case 8:
|
|
20543
20843
|
case "end":
|
|
20544
|
-
return
|
|
20844
|
+
return _context5.stop();
|
|
20545
20845
|
}
|
|
20546
20846
|
}
|
|
20547
|
-
},
|
|
20847
|
+
}, _callee5);
|
|
20548
20848
|
}));
|
|
20549
20849
|
return _addGood$1.apply(this, arguments);
|
|
20550
20850
|
}
|
|
@@ -20554,34 +20854,34 @@ function rollBottom$1(_x2, _x3) {
|
|
|
20554
20854
|
}
|
|
20555
20855
|
|
|
20556
20856
|
function _rollBottom$1() {
|
|
20557
|
-
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
20857
|
+
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
|
|
20558
20858
|
var cont;
|
|
20559
|
-
return _regeneratorRuntime().wrap(function
|
|
20859
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
20560
20860
|
while (1) {
|
|
20561
|
-
switch (
|
|
20861
|
+
switch (_context6.prev = _context6.next) {
|
|
20562
20862
|
case 0:
|
|
20563
|
-
|
|
20863
|
+
_context6.next = 2;
|
|
20564
20864
|
return controller.wait();
|
|
20565
20865
|
|
|
20566
20866
|
case 2:
|
|
20567
20867
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
20568
20868
|
|
|
20569
20869
|
if (cont) {
|
|
20570
|
-
|
|
20870
|
+
_context6.next = 5;
|
|
20571
20871
|
break;
|
|
20572
20872
|
}
|
|
20573
20873
|
|
|
20574
|
-
return
|
|
20874
|
+
return _context6.abrupt("return");
|
|
20575
20875
|
|
|
20576
20876
|
case 5:
|
|
20577
20877
|
cont.scrollTop = cont.scrollHeight;
|
|
20578
20878
|
|
|
20579
20879
|
case 6:
|
|
20580
20880
|
case "end":
|
|
20581
|
-
return
|
|
20881
|
+
return _context6.stop();
|
|
20582
20882
|
}
|
|
20583
20883
|
}
|
|
20584
|
-
},
|
|
20884
|
+
}, _callee6);
|
|
20585
20885
|
}));
|
|
20586
20886
|
return _rollBottom$1.apply(this, arguments);
|
|
20587
20887
|
}
|
|
@@ -21908,7 +22208,7 @@ var onChangeSwitchTax$1 = /*#__PURE__*/function () {
|
|
|
21908
22208
|
};
|
|
21909
22209
|
}();
|
|
21910
22210
|
|
|
21911
|
-
var TaxIncludedSwitch$1 = (function () {
|
|
22211
|
+
var TaxIncludedSwitch$1 = (function (props) {
|
|
21912
22212
|
var controller = Invoice.useInvoiceController();
|
|
21913
22213
|
/** 是否含税 */
|
|
21914
22214
|
|
|
@@ -21927,8 +22227,9 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
21927
22227
|
switch (_context.prev = _context.next) {
|
|
21928
22228
|
case 0:
|
|
21929
22229
|
onChangeSwitchTax$1(controller, e);
|
|
22230
|
+
props.onChange && props.onChange(e);
|
|
21930
22231
|
|
|
21931
|
-
case
|
|
22232
|
+
case 2:
|
|
21932
22233
|
case "end":
|
|
21933
22234
|
return _context.stop();
|
|
21934
22235
|
}
|
|
@@ -22833,6 +23134,9 @@ var useColumns$1 = (function (form) {
|
|
|
22833
23134
|
var changeField = controller.useMemo(function (e) {
|
|
22834
23135
|
return e.calculatingField;
|
|
22835
23136
|
}, []);
|
|
23137
|
+
var isValidateGood = controller.useMemo(function (s) {
|
|
23138
|
+
return s.goodsListState.isValidateGood;
|
|
23139
|
+
}, []);
|
|
22836
23140
|
/** 计算中启动字段 */
|
|
22837
23141
|
|
|
22838
23142
|
var setChangeField = React.useCallback(function (value) {
|
|
@@ -22927,25 +23231,37 @@ var useColumns$1 = (function (form) {
|
|
|
22927
23231
|
while (1) {
|
|
22928
23232
|
switch (_context2.prev = _context2.next) {
|
|
22929
23233
|
case 0:
|
|
22930
|
-
|
|
23234
|
+
if (!isValidateGood) {
|
|
23235
|
+
_context2.next = 11;
|
|
23236
|
+
break;
|
|
23237
|
+
}
|
|
23238
|
+
|
|
23239
|
+
_context2.next = 3;
|
|
22931
23240
|
return controller.wait();
|
|
22932
23241
|
|
|
22933
|
-
case
|
|
23242
|
+
case 3:
|
|
22934
23243
|
value = controller.state.goodsListState.editGood;
|
|
22935
23244
|
|
|
22936
23245
|
if (!(!(value === null || value === void 0 ? void 0 : value.itemName) && !(value === null || value === void 0 ? void 0 : value.itemNameSelf))) {
|
|
22937
|
-
_context2.next =
|
|
23246
|
+
_context2.next = 8;
|
|
22938
23247
|
break;
|
|
22939
23248
|
}
|
|
22940
23249
|
|
|
22941
23250
|
callback('项目名称不能为空');
|
|
22942
|
-
_context2.next =
|
|
23251
|
+
_context2.next = 9;
|
|
22943
23252
|
break;
|
|
22944
23253
|
|
|
22945
|
-
case
|
|
23254
|
+
case 8:
|
|
22946
23255
|
return _context2.abrupt("return");
|
|
22947
23256
|
|
|
22948
|
-
case
|
|
23257
|
+
case 9:
|
|
23258
|
+
_context2.next = 12;
|
|
23259
|
+
break;
|
|
23260
|
+
|
|
23261
|
+
case 11:
|
|
23262
|
+
callback();
|
|
23263
|
+
|
|
23264
|
+
case 12:
|
|
22949
23265
|
case "end":
|
|
22950
23266
|
return _context2.stop();
|
|
22951
23267
|
}
|
|
@@ -23146,24 +23462,34 @@ var useColumns$1 = (function (form) {
|
|
|
23146
23462
|
while (1) {
|
|
23147
23463
|
switch (_context6.prev = _context6.next) {
|
|
23148
23464
|
case 0:
|
|
23149
|
-
|
|
23465
|
+
if (!isValidateGood) {
|
|
23466
|
+
_context6.next = 10;
|
|
23467
|
+
break;
|
|
23468
|
+
}
|
|
23469
|
+
|
|
23470
|
+
_context6.next = 3;
|
|
23150
23471
|
return controller.wait();
|
|
23151
23472
|
|
|
23152
|
-
case
|
|
23473
|
+
case 3:
|
|
23153
23474
|
isvalue = !!value || value === 0;
|
|
23154
23475
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
23155
23476
|
|
|
23156
23477
|
if (!(isvalue || isPrice === isvalue)) {
|
|
23157
|
-
_context6.next =
|
|
23478
|
+
_context6.next = 7;
|
|
23158
23479
|
break;
|
|
23159
23480
|
}
|
|
23160
23481
|
|
|
23161
23482
|
return _context6.abrupt("return");
|
|
23162
23483
|
|
|
23163
|
-
case
|
|
23484
|
+
case 7:
|
|
23164
23485
|
callback('请输入数量');
|
|
23486
|
+
_context6.next = 11;
|
|
23487
|
+
break;
|
|
23165
23488
|
|
|
23166
|
-
case
|
|
23489
|
+
case 10:
|
|
23490
|
+
callback();
|
|
23491
|
+
|
|
23492
|
+
case 11:
|
|
23167
23493
|
case "end":
|
|
23168
23494
|
return _context6.stop();
|
|
23169
23495
|
}
|
|
@@ -23381,7 +23707,7 @@ var useColumns$1 = (function (form) {
|
|
|
23381
23707
|
initialValue: editGood.lineAmountIncludeTax,
|
|
23382
23708
|
getValueFromEvent: onNumberValueChange,
|
|
23383
23709
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
23384
|
-
required:
|
|
23710
|
+
required: isValidateGood,
|
|
23385
23711
|
message: '金额不能为空'
|
|
23386
23712
|
}, {
|
|
23387
23713
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23452,7 +23778,7 @@ var useColumns$1 = (function (form) {
|
|
|
23452
23778
|
style: {
|
|
23453
23779
|
padding: '0 10px'
|
|
23454
23780
|
}
|
|
23455
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23781
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23456
23782
|
}
|
|
23457
23783
|
}
|
|
23458
23784
|
}, {
|
|
@@ -23469,7 +23795,7 @@ var useColumns$1 = (function (form) {
|
|
|
23469
23795
|
initialValue: editGood.lineAmountExcludeTax,
|
|
23470
23796
|
getValueFromEvent: onNumberValueChange,
|
|
23471
23797
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
23472
|
-
required:
|
|
23798
|
+
required: isValidateGood,
|
|
23473
23799
|
message: '金额不能为空'
|
|
23474
23800
|
}, {
|
|
23475
23801
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23515,7 +23841,7 @@ var useColumns$1 = (function (form) {
|
|
|
23515
23841
|
style: {
|
|
23516
23842
|
padding: '0 10px'
|
|
23517
23843
|
}
|
|
23518
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23844
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23519
23845
|
}
|
|
23520
23846
|
}
|
|
23521
23847
|
}, {
|
|
@@ -23531,7 +23857,7 @@ var useColumns$1 = (function (form) {
|
|
|
23531
23857
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
23532
23858
|
initialValue: editGood.taxRate,
|
|
23533
23859
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
23534
|
-
required:
|
|
23860
|
+
required: isValidateGood,
|
|
23535
23861
|
message: '请选择税率'
|
|
23536
23862
|
}, {
|
|
23537
23863
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23558,11 +23884,15 @@ var useColumns$1 = (function (form) {
|
|
|
23558
23884
|
}, e, "%");
|
|
23559
23885
|
}))));
|
|
23560
23886
|
} else {
|
|
23561
|
-
|
|
23562
|
-
|
|
23563
|
-
|
|
23564
|
-
|
|
23565
|
-
|
|
23887
|
+
if (value || value === '0' || value === 0) {
|
|
23888
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23889
|
+
style: {
|
|
23890
|
+
padding: '0 10px'
|
|
23891
|
+
}
|
|
23892
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
23893
|
+
} else {
|
|
23894
|
+
return '';
|
|
23895
|
+
}
|
|
23566
23896
|
}
|
|
23567
23897
|
}
|
|
23568
23898
|
}, {
|
|
@@ -23578,7 +23908,7 @@ var useColumns$1 = (function (form) {
|
|
|
23578
23908
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxAmount', {
|
|
23579
23909
|
initialValue: editGood.taxAmount,
|
|
23580
23910
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxAmount')), [{
|
|
23581
|
-
required:
|
|
23911
|
+
required: isValidateGood,
|
|
23582
23912
|
message: '税额不能为空'
|
|
23583
23913
|
}, {
|
|
23584
23914
|
validator: function validator(rule, value, callback) {
|
|
@@ -23623,7 +23953,7 @@ var useColumns$1 = (function (form) {
|
|
|
23623
23953
|
style: {
|
|
23624
23954
|
padding: '0 10px'
|
|
23625
23955
|
}
|
|
23626
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
23956
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
23627
23957
|
}
|
|
23628
23958
|
}
|
|
23629
23959
|
}] // 含税不含税
|
|
@@ -25568,7 +25898,9 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
25568
25898
|
}
|
|
25569
25899
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25570
25900
|
className: "kts-invoice-operate-goods-list-able"
|
|
25571
|
-
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1,
|
|
25901
|
+
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, {
|
|
25902
|
+
onChange: props.onTaxSwitchChange
|
|
25903
|
+
}), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
|
|
25572
25904
|
style: {
|
|
25573
25905
|
flex: 1
|
|
25574
25906
|
}
|
|
@@ -25599,7 +25931,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
25599
25931
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
25600
25932
|
});
|
|
25601
25933
|
|
|
25602
|
-
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";
|
|
25934
|
+
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";
|
|
25603
25935
|
styleInject(css_248z$r);
|
|
25604
25936
|
|
|
25605
25937
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -25615,126 +25947,272 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
25615
25947
|
}, []);
|
|
25616
25948
|
var readOnly = React.useMemo(function () {
|
|
25617
25949
|
return model === 'readOnly';
|
|
25618
|
-
}, [model]);
|
|
25950
|
+
}, [model]);
|
|
25951
|
+
var goodsList = controller.useMemo(function (s) {
|
|
25952
|
+
return s.goodsListState.goodsList;
|
|
25953
|
+
}, []); //outcome-104 任务 https://wiki.dev.kingxunlian.com/pages/viewpage.action?pageId=180355189
|
|
25954
|
+
//商品和服务税收分类合并编码为“3040502020200000000”时,视为停车费业务,针对停车费业务,蓝字发票增加以下判断:
|
|
25955
|
+
// 单位必须为“平方米”;
|
|
25956
|
+
// 项目名称必须为“车辆停放服务”;
|
|
25957
|
+
// 车牌号必填,最多支持填写3个车牌号;除该场景车牌号必须为空;
|
|
25958
|
+
// 租赁期起止格式必须为“yyyy-MM-dd HH:mm(租赁期起)”+“空格”+“yyyy-MM-dd HH:mm(租赁期止)。
|
|
25959
|
+
|
|
25960
|
+
var isParkFee = React.useCallback(function (taxClassificationCode) {
|
|
25961
|
+
if (taxClassificationCode === '3040502020200000000') {
|
|
25962
|
+
return true;
|
|
25963
|
+
} else {
|
|
25964
|
+
return false;
|
|
25965
|
+
}
|
|
25966
|
+
}, []);
|
|
25967
|
+
var indexRef = React.useRef([]);
|
|
25968
|
+
useEffect(function () {
|
|
25969
|
+
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
25970
|
+
if (cur.lineAttribute !== 1) {
|
|
25971
|
+
acc.push(cur.$index);
|
|
25972
|
+
}
|
|
25973
|
+
|
|
25974
|
+
return acc;
|
|
25975
|
+
}, []);
|
|
25976
|
+
indexRef.current = dd;
|
|
25977
|
+
}, [goodsList, indexRef]); // 注册 form
|
|
25619
25978
|
|
|
25620
25979
|
controller.useForm('realEstateInfo', form);
|
|
25980
|
+
|
|
25981
|
+
var getList = function getList() {
|
|
25982
|
+
var decrease = indexRef.current.length > goodsList.length;
|
|
25983
|
+
|
|
25984
|
+
if (decrease) {
|
|
25985
|
+
//已删行列表
|
|
25986
|
+
var diff = indexRef.current.filter(function (item) {
|
|
25987
|
+
return !goodsList.find(function (i) {
|
|
25988
|
+
return i.$index === item;
|
|
25989
|
+
});
|
|
25990
|
+
});
|
|
25991
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
25992
|
+
|
|
25993
|
+
if (Array.isArray(formData) && diff.length > 0) {
|
|
25994
|
+
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
25995
|
+
return !diff.find(function (i) {
|
|
25996
|
+
return i === item.$index;
|
|
25997
|
+
});
|
|
25998
|
+
});
|
|
25999
|
+
form.setFieldsValue({
|
|
26000
|
+
realEstateDataDto: newForm
|
|
26001
|
+
});
|
|
26002
|
+
} else {
|
|
26003
|
+
form.setFieldsValue({
|
|
26004
|
+
realEstateDataDto: undefined
|
|
26005
|
+
});
|
|
26006
|
+
}
|
|
26007
|
+
}
|
|
26008
|
+
|
|
26009
|
+
return goodsList.filter(function (item) {
|
|
26010
|
+
return item.lineAttribute !== 1;
|
|
26011
|
+
}).map(function (item, index) {
|
|
26012
|
+
if (item.lineAttribute !== 1) {
|
|
26013
|
+
var isParkFeeItem = isParkFee(item.taxClassificationCode);
|
|
26014
|
+
return /*#__PURE__*/React.createElement(Row$1, {
|
|
26015
|
+
gutter: [17, 0]
|
|
26016
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
26017
|
+
span: 6
|
|
26018
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26019
|
+
style: {
|
|
26020
|
+
display: 'none'
|
|
26021
|
+
}
|
|
26022
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
26023
|
+
initialValue: item.$index
|
|
26024
|
+
})( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
26025
|
+
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
26026
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
26027
|
+
rules: readOnly ? [] : [{
|
|
26028
|
+
required: true,
|
|
26029
|
+
message: '请选择不动产地址'
|
|
26030
|
+
}]
|
|
26031
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
26032
|
+
style: {
|
|
26033
|
+
width: '100%'
|
|
26034
|
+
},
|
|
26035
|
+
options: props.realEstateAddressOptions,
|
|
26036
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
26037
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
26038
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26039
|
+
span: 6
|
|
26040
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26041
|
+
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
26042
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
26043
|
+
rules: readOnly ? [] : [{
|
|
26044
|
+
required: true,
|
|
26045
|
+
message: '请输入详细地址'
|
|
26046
|
+
}, {
|
|
26047
|
+
max: 120,
|
|
26048
|
+
message: '详细地址最多120个字符'
|
|
26049
|
+
}, {
|
|
26050
|
+
validator: function () {
|
|
26051
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
26052
|
+
var pattern;
|
|
26053
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26054
|
+
while (1) {
|
|
26055
|
+
switch (_context.prev = _context.next) {
|
|
26056
|
+
case 0:
|
|
26057
|
+
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
26058
|
+
|
|
26059
|
+
if (pattern.test(value)) {
|
|
26060
|
+
callback();
|
|
26061
|
+
} else {
|
|
26062
|
+
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
26063
|
+
}
|
|
26064
|
+
|
|
26065
|
+
case 2:
|
|
26066
|
+
case "end":
|
|
26067
|
+
return _context.stop();
|
|
26068
|
+
}
|
|
26069
|
+
}
|
|
26070
|
+
}, _callee);
|
|
26071
|
+
}));
|
|
26072
|
+
|
|
26073
|
+
function validator(_x, _x2, _x3) {
|
|
26074
|
+
return _validator.apply(this, arguments);
|
|
26075
|
+
}
|
|
26076
|
+
|
|
26077
|
+
return validator;
|
|
26078
|
+
}()
|
|
26079
|
+
}]
|
|
26080
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
26081
|
+
autoComplete: 'off',
|
|
26082
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
26083
|
+
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
26084
|
+
span: 6
|
|
26085
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26086
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
26087
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
26088
|
+
rules: readOnly ? [] : [{
|
|
26089
|
+
required: true,
|
|
26090
|
+
message: '请输入租赁期'
|
|
26091
|
+
}]
|
|
26092
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
26093
|
+
style: {
|
|
26094
|
+
width: '100%'
|
|
26095
|
+
}
|
|
26096
|
+
})))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
26097
|
+
span: 6
|
|
26098
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26099
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
26100
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
26101
|
+
rules: readOnly ? [] : [{
|
|
26102
|
+
required: true,
|
|
26103
|
+
message: '请输入租赁期'
|
|
26104
|
+
}]
|
|
26105
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMomentTime, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
26106
|
+
style: {
|
|
26107
|
+
width: '100%'
|
|
26108
|
+
},
|
|
26109
|
+
showTime: {
|
|
26110
|
+
format: 'HH:mm'
|
|
26111
|
+
},
|
|
26112
|
+
format: "YYYY-MM-DD HH:mm"
|
|
26113
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26114
|
+
span: 6
|
|
26115
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26116
|
+
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
26117
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
26118
|
+
rules: readOnly ? [] : [{
|
|
26119
|
+
required: true,
|
|
26120
|
+
message: '请选择跨地(市)标志'
|
|
26121
|
+
}]
|
|
26122
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
26123
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
26124
|
+
style: {
|
|
26125
|
+
width: '100%'
|
|
26126
|
+
}
|
|
26127
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26128
|
+
value: 'Y'
|
|
26129
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26130
|
+
value: 'N'
|
|
26131
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26132
|
+
span: 6
|
|
26133
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26134
|
+
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
26135
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
26136
|
+
rules: readOnly ? [] : [{
|
|
26137
|
+
required: true,
|
|
26138
|
+
message: '请输入证书编号,若没有证书填写“无”'
|
|
26139
|
+
}, {
|
|
26140
|
+
max: 40,
|
|
26141
|
+
message: '证书编号最多40个字符'
|
|
26142
|
+
}]
|
|
26143
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
26144
|
+
autoComplete: 'off',
|
|
26145
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
26146
|
+
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
26147
|
+
span: 6
|
|
26148
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26149
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
26150
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
26151
|
+
rules: readOnly ? [] : [{
|
|
26152
|
+
required: true,
|
|
26153
|
+
message: '请选择面积单位'
|
|
26154
|
+
}]
|
|
26155
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
26156
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
26157
|
+
style: {
|
|
26158
|
+
width: '100%'
|
|
26159
|
+
}
|
|
26160
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26161
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
26162
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26163
|
+
value: "\u5E73\u65B9\u7C73"
|
|
26164
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26165
|
+
value: "\u516C\u9877"
|
|
26166
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26167
|
+
value: "\u4EA9"
|
|
26168
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26169
|
+
value: "h\u33A1"
|
|
26170
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26171
|
+
value: "k\u33A1"
|
|
26172
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26173
|
+
value: "\u33A1"
|
|
26174
|
+
}, "\u33A1"))))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
26175
|
+
span: 6
|
|
26176
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26177
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
26178
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
26179
|
+
rules: readOnly ? [] : [{
|
|
26180
|
+
required: true,
|
|
26181
|
+
message: '请选择面积单位'
|
|
26182
|
+
}]
|
|
26183
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
26184
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
26185
|
+
style: {
|
|
26186
|
+
width: '100%'
|
|
26187
|
+
}
|
|
26188
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26189
|
+
value: "\u5E73\u65B9\u7C73"
|
|
26190
|
+
}, "\u5E73\u65B9\u7C73"))))), isParkFeeItem && /*#__PURE__*/React.createElement(LicensePlateNumber, {
|
|
26191
|
+
form: form,
|
|
26192
|
+
index: index,
|
|
26193
|
+
cd: item.cd,
|
|
26194
|
+
readOnly: readOnly
|
|
26195
|
+
}) // <Col span={6} >
|
|
26196
|
+
// <Form.Item label='车牌号' >
|
|
26197
|
+
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
26198
|
+
// rules: readOnly ? [] : [{ required: true, message: '请选择面积单位' }]
|
|
26199
|
+
// })(
|
|
26200
|
+
// readOnly
|
|
26201
|
+
// ? <MyDiv />
|
|
26202
|
+
// : <LicensePlateNumber form={form}/>
|
|
26203
|
+
// )}
|
|
26204
|
+
// </Form.Item>
|
|
26205
|
+
// </Col>
|
|
26206
|
+
);
|
|
26207
|
+
}
|
|
26208
|
+
});
|
|
26209
|
+
};
|
|
26210
|
+
|
|
25621
26211
|
return /*#__PURE__*/React.createElement("div", {
|
|
25622
26212
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
25623
26213
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25624
26214
|
className: 'real-estate-info-digtal-label'
|
|
25625
|
-
}, "\u7279\
|
|
25626
|
-
gutter: [17, 0]
|
|
25627
|
-
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
25628
|
-
span: 6
|
|
25629
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25630
|
-
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
25631
|
-
}, getFieldDecorator('realEstateAddress', {
|
|
25632
|
-
rules: readOnly ? [] : [{
|
|
25633
|
-
required: true,
|
|
25634
|
-
message: '请选择不动产地址'
|
|
25635
|
-
}]
|
|
25636
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
25637
|
-
style: {
|
|
25638
|
-
width: '100%'
|
|
25639
|
-
},
|
|
25640
|
-
options: props.realEstateAddressOptions,
|
|
25641
|
-
fieldNames: props.realEstateAddressFieldNames,
|
|
25642
|
-
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
25643
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25644
|
-
span: 6
|
|
25645
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25646
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
25647
|
-
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
25648
|
-
rules: readOnly ? [] : [{
|
|
25649
|
-
required: true,
|
|
25650
|
-
message: '请输入详细地址'
|
|
25651
|
-
}, {
|
|
25652
|
-
max: 120,
|
|
25653
|
-
message: '详细地址最多120个字符'
|
|
25654
|
-
}, {
|
|
25655
|
-
validator: function validator(_, value) {
|
|
25656
|
-
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
25657
|
-
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
25658
|
-
}
|
|
25659
|
-
}]
|
|
25660
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
25661
|
-
autoComplete: 'off',
|
|
25662
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
25663
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25664
|
-
span: 6
|
|
25665
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25666
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
25667
|
-
}, getFieldDecorator('leaseTerm', {
|
|
25668
|
-
rules: readOnly ? [] : [{
|
|
25669
|
-
required: true,
|
|
25670
|
-
message: '请输入租赁期'
|
|
25671
|
-
}]
|
|
25672
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
25673
|
-
style: {
|
|
25674
|
-
width: '100%'
|
|
25675
|
-
}
|
|
25676
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25677
|
-
span: 6
|
|
25678
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25679
|
-
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
25680
|
-
}, getFieldDecorator('crossCitiesSign', {
|
|
25681
|
-
rules: readOnly ? [] : [{
|
|
25682
|
-
required: true,
|
|
25683
|
-
message: '请选择跨地(市)标志'
|
|
25684
|
-
}]
|
|
25685
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
25686
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
25687
|
-
style: {
|
|
25688
|
-
width: '100%'
|
|
25689
|
-
}
|
|
25690
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25691
|
-
value: 'Y'
|
|
25692
|
-
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25693
|
-
value: 'N'
|
|
25694
|
-
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25695
|
-
span: 6
|
|
25696
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25697
|
-
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
25698
|
-
}, getFieldDecorator('realEstateNumber', {
|
|
25699
|
-
rules: readOnly ? [] : [{
|
|
25700
|
-
required: true,
|
|
25701
|
-
message: '请输入证书编号,若没有证书填写“无”'
|
|
25702
|
-
}, {
|
|
25703
|
-
max: 40,
|
|
25704
|
-
message: '证书编号最多40个字符'
|
|
25705
|
-
}]
|
|
25706
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
25707
|
-
autoComplete: 'off',
|
|
25708
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
25709
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25710
|
-
span: 6
|
|
25711
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25712
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
25713
|
-
}, getFieldDecorator('realEstateUnit', {
|
|
25714
|
-
rules: readOnly ? [] : [{
|
|
25715
|
-
required: true,
|
|
25716
|
-
message: '请选择面积单位'
|
|
25717
|
-
}]
|
|
25718
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
25719
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
25720
|
-
style: {
|
|
25721
|
-
width: '100%'
|
|
25722
|
-
}
|
|
25723
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25724
|
-
value: "\u5E73\u65B9\u5343\u7C73"
|
|
25725
|
-
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25726
|
-
value: "\u5E73\u65B9\u7C73"
|
|
25727
|
-
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25728
|
-
value: "\u516C\u9877"
|
|
25729
|
-
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25730
|
-
value: "\u4EA9"
|
|
25731
|
-
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25732
|
-
value: "h\u33A1"
|
|
25733
|
-
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25734
|
-
value: "k\u33A1"
|
|
25735
|
-
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25736
|
-
value: "\u33A1"
|
|
25737
|
-
}, "\u33A1")))))));
|
|
26215
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
25738
26216
|
});
|
|
25739
26217
|
|
|
25740
26218
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -25810,22 +26288,52 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
25810
26288
|
color: '#9F603D',
|
|
25811
26289
|
fontWeight: 600
|
|
25812
26290
|
}
|
|
25813
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
26291
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
25814
26292
|
}
|
|
25815
26293
|
}]);
|
|
25816
26294
|
|
|
25817
26295
|
return MyArrMoment;
|
|
25818
26296
|
}(React.Component);
|
|
25819
26297
|
|
|
25820
|
-
var
|
|
25821
|
-
_inherits(
|
|
26298
|
+
var MyArrMomentTime = /*#__PURE__*/function (_React$Component4) {
|
|
26299
|
+
_inherits(MyArrMomentTime, _React$Component4);
|
|
25822
26300
|
|
|
25823
|
-
var _super4 = _createSuper(
|
|
26301
|
+
var _super4 = _createSuper(MyArrMomentTime);
|
|
26302
|
+
|
|
26303
|
+
function MyArrMomentTime() {
|
|
26304
|
+
_classCallCheck(this, MyArrMomentTime);
|
|
26305
|
+
|
|
26306
|
+
return _super4.apply(this, arguments);
|
|
26307
|
+
}
|
|
26308
|
+
|
|
26309
|
+
_createClass(MyArrMomentTime, [{
|
|
26310
|
+
key: "render",
|
|
26311
|
+
value: function render() {
|
|
26312
|
+
var _this$props$value3 = this.props.value,
|
|
26313
|
+
value = _this$props$value3 === void 0 ? [] : _this$props$value3;
|
|
26314
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26315
|
+
style: this.props.style
|
|
26316
|
+
}, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD HH:mm')), /*#__PURE__*/React.createElement("span", {
|
|
26317
|
+
style: {
|
|
26318
|
+
color: '#9F603D',
|
|
26319
|
+
fontWeight: 600
|
|
26320
|
+
}
|
|
26321
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD HH:mm')));
|
|
26322
|
+
}
|
|
26323
|
+
}]);
|
|
26324
|
+
|
|
26325
|
+
return MyArrMomentTime;
|
|
26326
|
+
}(React.Component);
|
|
26327
|
+
|
|
26328
|
+
var MyNY = /*#__PURE__*/function (_React$Component5) {
|
|
26329
|
+
_inherits(MyNY, _React$Component5);
|
|
26330
|
+
|
|
26331
|
+
var _super5 = _createSuper(MyNY);
|
|
25824
26332
|
|
|
25825
26333
|
function MyNY() {
|
|
25826
26334
|
_classCallCheck(this, MyNY);
|
|
25827
26335
|
|
|
25828
|
-
return
|
|
26336
|
+
return _super5.apply(this, arguments);
|
|
25829
26337
|
}
|
|
25830
26338
|
|
|
25831
26339
|
_createClass(MyNY, [{
|
|
@@ -25840,6 +26348,137 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
25840
26348
|
return MyNY;
|
|
25841
26349
|
}(React.Component);
|
|
25842
26350
|
|
|
26351
|
+
var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
26352
|
+
var _formData$props$index2;
|
|
26353
|
+
|
|
26354
|
+
var form = props.form,
|
|
26355
|
+
readOnly = props.readOnly;
|
|
26356
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
26357
|
+
var licenceLimit = 3; // 最多支持填写3个车牌号
|
|
26358
|
+
|
|
26359
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
26360
|
+
|
|
26361
|
+
var _React$useState = React.useState(new Array(props.cd || 1).fill('')),
|
|
26362
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26363
|
+
value = _React$useState2[0],
|
|
26364
|
+
setVal = _React$useState2[1];
|
|
26365
|
+
|
|
26366
|
+
var cd = React.useMemo(function () {
|
|
26367
|
+
var _formData$props$index;
|
|
26368
|
+
|
|
26369
|
+
return (_formData$props$index = formData[props.index]) === null || _formData$props$index === void 0 ? void 0 : _formData$props$index.cd;
|
|
26370
|
+
}, [(_formData$props$index2 = formData[props.index]) === null || _formData$props$index2 === void 0 ? void 0 : _formData$props$index2.cd]); // useEffect(() => {
|
|
26371
|
+
// if (cd) {
|
|
26372
|
+
// const dd = value.concat(new Array(cd.length-1).fill(''))
|
|
26373
|
+
// setVal(dd);
|
|
26374
|
+
// }
|
|
26375
|
+
// }, [cd])
|
|
26376
|
+
|
|
26377
|
+
var onAdd = function onAdd() {
|
|
26378
|
+
if (value.length < licenceLimit) {
|
|
26379
|
+
setVal([].concat(_toConsumableArray(value), ['']));
|
|
26380
|
+
} else {
|
|
26381
|
+
message.warn('最多支持填写3个车牌号');
|
|
26382
|
+
}
|
|
26383
|
+
}; // 删除车牌号
|
|
26384
|
+
|
|
26385
|
+
|
|
26386
|
+
var onDelete = function onDelete() {
|
|
26387
|
+
if (value.length > 0) {
|
|
26388
|
+
var dd = value.slice(0, -1);
|
|
26389
|
+
setVal(dd);
|
|
26390
|
+
}
|
|
26391
|
+
};
|
|
26392
|
+
|
|
26393
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
26394
|
+
return /*#__PURE__*/React.createElement(Col$1, {
|
|
26395
|
+
span: 6
|
|
26396
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26397
|
+
label: "\u8F66\u724C\u53F7",
|
|
26398
|
+
key: key
|
|
26399
|
+
}, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
|
|
26400
|
+
rules: readOnly ? [] : [{
|
|
26401
|
+
required: true,
|
|
26402
|
+
message: '请输入车牌号,最多20位'
|
|
26403
|
+
}]
|
|
26404
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
26405
|
+
style: {
|
|
26406
|
+
width: '100%'
|
|
26407
|
+
},
|
|
26408
|
+
maxLength: 20,
|
|
26409
|
+
autoComplete: 'off',
|
|
26410
|
+
placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
|
|
26411
|
+
}))));
|
|
26412
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Col$1, {
|
|
26413
|
+
span: 6
|
|
26414
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
26415
|
+
style: {
|
|
26416
|
+
color: 'white'
|
|
26417
|
+
}
|
|
26418
|
+
}, "1"), /*#__PURE__*/React.createElement("a", {
|
|
26419
|
+
style: {
|
|
26420
|
+
marginRight: 10
|
|
26421
|
+
},
|
|
26422
|
+
onClick: onAdd
|
|
26423
|
+
}, "\u6DFB\u52A0\u8F66\u724C\u53F7"), value.length > 1 && /*#__PURE__*/React.createElement("a", {
|
|
26424
|
+
onClick: onDelete
|
|
26425
|
+
}, "\u5220\u9664"))));
|
|
26426
|
+
}; // const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
26427
|
+
// const { form } = props;
|
|
26428
|
+
// const { getFieldDecorator } = form;
|
|
26429
|
+
// const licenceLimit = 3; // 最多支持填写3个车牌号
|
|
26430
|
+
// // const { value = [] } = this.props;
|
|
26431
|
+
// const [value, setVal] = React.useState(props.value || ['']);
|
|
26432
|
+
// // const newArr = value.filter(e => !!e);
|
|
26433
|
+
// const newArrLength = value.length;
|
|
26434
|
+
// console.log(value, newArrLength)
|
|
26435
|
+
// // 新增车牌号
|
|
26436
|
+
// const onAdd = () => {
|
|
26437
|
+
// if (newArrLength < licenceLimit) {
|
|
26438
|
+
// setVal([...value, '']);
|
|
26439
|
+
// props.onChange?.([...value, ''])
|
|
26440
|
+
// }
|
|
26441
|
+
// }
|
|
26442
|
+
// // 删除车牌号
|
|
26443
|
+
// const onDelete = () => {
|
|
26444
|
+
// if (newArrLength > 0) {
|
|
26445
|
+
// const dd = value.slice(0, -1)
|
|
26446
|
+
// setVal(dd);
|
|
26447
|
+
// props.onChange?.(dd)
|
|
26448
|
+
// }
|
|
26449
|
+
// }
|
|
26450
|
+
// const onInputChange = (e: React.ChangeEvent<HTMLInputElement>, index: number) => {
|
|
26451
|
+
// console.log(e.target.value);
|
|
26452
|
+
// const dd = value.map((item, i) => {
|
|
26453
|
+
// if (i === index) {
|
|
26454
|
+
// return e.target.value
|
|
26455
|
+
// }
|
|
26456
|
+
// return item
|
|
26457
|
+
// })
|
|
26458
|
+
// setVal(dd);
|
|
26459
|
+
// props.onChange?.(dd)
|
|
26460
|
+
// }
|
|
26461
|
+
// return (
|
|
26462
|
+
// <>
|
|
26463
|
+
// {newArrLength > 0 && value.map((item, index) => {
|
|
26464
|
+
// return
|
|
26465
|
+
// <Form.Item label='车牌号' >
|
|
26466
|
+
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
26467
|
+
// rules: [{ required: true, }]
|
|
26468
|
+
// })(
|
|
26469
|
+
// <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
26470
|
+
// )}
|
|
26471
|
+
// </Form.Item>
|
|
26472
|
+
// // <Col span={6} >
|
|
26473
|
+
// // <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
26474
|
+
// // </Col>
|
|
26475
|
+
// })}
|
|
26476
|
+
// <Button type="link" onClick={onAdd}>添加车牌号</Button>
|
|
26477
|
+
// {newArrLength > 1 && <Button type="link" onClick={onDelete}>删除</Button>}
|
|
26478
|
+
// </>
|
|
26479
|
+
// )
|
|
26480
|
+
// }
|
|
26481
|
+
|
|
25843
26482
|
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";
|
|
25844
26483
|
styleInject(css_248z$s);
|
|
25845
26484
|
|
|
@@ -25862,7 +26501,7 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
25862
26501
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
25863
26502
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25864
26503
|
className: 'real-estate-info-digtal-label'
|
|
25865
|
-
}, "\u7279\
|
|
26504
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
25866
26505
|
gutter: [17, 0]
|
|
25867
26506
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
25868
26507
|
span: 6
|
|
@@ -27468,7 +28107,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
27468
28107
|
className: "kts-invoice-operate-freight"
|
|
27469
28108
|
}, /*#__PURE__*/React.createElement("div", {
|
|
27470
28109
|
className: 'real-estate-info-digtal-label'
|
|
27471
|
-
}, "\u7279\
|
|
28110
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
27472
28111
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
27473
28112
|
onClick: function onClick(e) {
|
|
27474
28113
|
e.stopPropagation();
|
|
@@ -27985,7 +28624,7 @@ var useColumns$3 = (function (form) {
|
|
|
27985
28624
|
message: '请输入'
|
|
27986
28625
|
}]
|
|
27987
28626
|
})( /*#__PURE__*/React.createElement(MyInput$5, {
|
|
27988
|
-
maxLength:
|
|
28627
|
+
maxLength: 40,
|
|
27989
28628
|
onChange: function () {
|
|
27990
28629
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
27991
28630
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -28931,9 +29570,10 @@ var ImportGoodsDrawer = (function () {
|
|
|
28931
29570
|
while (1) {
|
|
28932
29571
|
switch (_context.prev = _context.next) {
|
|
28933
29572
|
case 0:
|
|
29573
|
+
s.goodsListState.importGoods.filter = {};
|
|
28934
29574
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
28935
29575
|
|
|
28936
|
-
case
|
|
29576
|
+
case 2:
|
|
28937
29577
|
case "end":
|
|
28938
29578
|
return _context.stop();
|
|
28939
29579
|
}
|