kts-component-invoice-operate 3.2.233 → 3.2.235-fuling
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 +0 -4
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +0 -1
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.d.ts +0 -2
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +0 -2
- package/dist/Invoice/ui/default/GoodsList/index.d.ts +0 -1
- package/dist/Invoice/ui/default/GoodsList/ui/AddRowButton/index.d.ts +1 -1
- package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +0 -1
- package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -4
- package/dist/index.esm.js +266 -706
- package/dist/index.js +265 -705
- 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 +7 -69
- package/src/Invoice/Invoice-digtal/index.md +9 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +0 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +0 -3
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +0 -3
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
- package/src/Invoice/_test/deduction/index.tsx +6 -28
- package/src/Invoice/index.md +4 -4
- package/src/Invoice/ui/default/GoodsList/index.tsx +1 -3
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +1 -8
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +1 -4
- 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 +23 -37
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +1 -3
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +10 -20
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +6 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +2 -5
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +0 -7
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +104 -363
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +26 -17
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -22
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
11
|
-
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2,
|
|
11
|
+
import { DatePicker, Row as Row$1, Col as Col$1, Cascader, Input as Input$2, 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,7 +981,6 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
|
981
981
|
this.dataSource = [];
|
|
982
982
|
this.pagination = {};
|
|
983
983
|
this.isVisibleDrawer = false;
|
|
984
|
-
this.filter = {};
|
|
985
984
|
this.topExpand = void 0;
|
|
986
985
|
|
|
987
986
|
this.verifyFn = /*#__PURE__*/function () {
|
|
@@ -1175,7 +1174,6 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1175
1174
|
this.isSalesGifts = false;
|
|
1176
1175
|
this.addComparisonIndex = void 0;
|
|
1177
1176
|
this.drag = new Drag();
|
|
1178
|
-
this.isValidateGood = true;
|
|
1179
1177
|
});
|
|
1180
1178
|
|
|
1181
1179
|
var FreightListState = /*#__PURE__*/_createClass(function FreightListState() {
|
|
@@ -2219,7 +2217,7 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
2219
2217
|
switch (_context.prev = _context.next) {
|
|
2220
2218
|
case 0:
|
|
2221
2219
|
editGood = state.goodsListState.editGood;
|
|
2222
|
-
form = state.goodsListState.form;
|
|
2220
|
+
form = state.goodsListState.form;
|
|
2223
2221
|
|
|
2224
2222
|
if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
|
|
2225
2223
|
_context.next = 4;
|
|
@@ -10969,7 +10967,7 @@ var Statistics = (function () {
|
|
|
10969
10967
|
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === '' ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10970
10968
|
});
|
|
10971
10969
|
|
|
10972
|
-
var AddRowButton = (function (
|
|
10970
|
+
var AddRowButton = (function () {
|
|
10973
10971
|
var controller = Invoice.useInvoiceController();
|
|
10974
10972
|
var model = controller.useMemo(function (s) {
|
|
10975
10973
|
return s.model;
|
|
@@ -11002,54 +11000,24 @@ var AddRowButton = (function (props) {
|
|
|
11002
11000
|
var disabled = React.useMemo(function () {
|
|
11003
11001
|
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
11004
11002
|
}, [goodMax, goodsNum, searchValue]);
|
|
11005
|
-
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11006
|
-
return _regeneratorRuntime().wrap(function
|
|
11003
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11004
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11007
11005
|
while (1) {
|
|
11008
|
-
switch (
|
|
11006
|
+
switch (_context.prev = _context.next) {
|
|
11009
11007
|
case 0:
|
|
11010
|
-
|
|
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
|
-
}());
|
|
11037
|
-
|
|
11038
|
-
case 2:
|
|
11039
|
-
console.log('continue');
|
|
11040
|
-
_context2.next = 5;
|
|
11008
|
+
_context.next = 2;
|
|
11041
11009
|
return addGood$1(controller);
|
|
11042
11010
|
|
|
11043
|
-
case
|
|
11044
|
-
|
|
11011
|
+
case 2:
|
|
11012
|
+
_context.next = 4;
|
|
11045
11013
|
return rollBottom(controller, rootElement);
|
|
11046
11014
|
|
|
11047
|
-
case
|
|
11015
|
+
case 4:
|
|
11048
11016
|
case "end":
|
|
11049
|
-
return
|
|
11017
|
+
return _context.stop();
|
|
11050
11018
|
}
|
|
11051
11019
|
}
|
|
11052
|
-
},
|
|
11020
|
+
}, _callee);
|
|
11053
11021
|
})), [controller, rootElement]);
|
|
11054
11022
|
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
11055
11023
|
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -11061,35 +11029,35 @@ var AddRowButton = (function (props) {
|
|
|
11061
11029
|
});
|
|
11062
11030
|
/** 添加一个空货物 */
|
|
11063
11031
|
|
|
11064
|
-
function addGood$1(
|
|
11032
|
+
function addGood$1(_x) {
|
|
11065
11033
|
return _addGood.apply(this, arguments);
|
|
11066
11034
|
}
|
|
11067
11035
|
/** 货物列表,滚动到底部 */
|
|
11068
11036
|
|
|
11069
11037
|
|
|
11070
11038
|
function _addGood() {
|
|
11071
|
-
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11072
|
-
return _regeneratorRuntime().wrap(function
|
|
11039
|
+
_addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(controller) {
|
|
11040
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11073
11041
|
while (1) {
|
|
11074
|
-
switch (
|
|
11042
|
+
switch (_context3.prev = _context3.next) {
|
|
11075
11043
|
case 0:
|
|
11076
|
-
|
|
11044
|
+
_context3.next = 2;
|
|
11077
11045
|
return controller.saveEditGood();
|
|
11078
11046
|
|
|
11079
11047
|
case 2:
|
|
11080
|
-
|
|
11048
|
+
_context3.next = 4;
|
|
11081
11049
|
return controller.wait();
|
|
11082
11050
|
|
|
11083
11051
|
case 4:
|
|
11084
|
-
|
|
11052
|
+
_context3.next = 6;
|
|
11085
11053
|
return controller.run( /*#__PURE__*/function () {
|
|
11086
|
-
var
|
|
11087
|
-
return _regeneratorRuntime().wrap(function
|
|
11054
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
11055
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11088
11056
|
while (1) {
|
|
11089
|
-
switch (
|
|
11057
|
+
switch (_context2.prev = _context2.next) {
|
|
11090
11058
|
case 0:
|
|
11091
11059
|
if (!s.goodsListState.editGood) {
|
|
11092
|
-
|
|
11060
|
+
_context2.next = 3;
|
|
11093
11061
|
break;
|
|
11094
11062
|
}
|
|
11095
11063
|
|
|
@@ -11097,74 +11065,74 @@ function _addGood() {
|
|
|
11097
11065
|
content: '你正在编辑一个货物',
|
|
11098
11066
|
key: '你正在编辑一个货物'
|
|
11099
11067
|
});
|
|
11100
|
-
return
|
|
11068
|
+
return _context2.abrupt("return");
|
|
11101
11069
|
|
|
11102
11070
|
case 3:
|
|
11103
|
-
|
|
11071
|
+
_context2.next = 5;
|
|
11104
11072
|
return controller.addGood({
|
|
11105
11073
|
taxRate: s.goodsListState.defaultRate,
|
|
11106
11074
|
lineAttribute: LineAttributeType$1.正常
|
|
11107
11075
|
});
|
|
11108
11076
|
|
|
11109
11077
|
case 5:
|
|
11110
|
-
s.goodsListState.editGood =
|
|
11078
|
+
s.goodsListState.editGood = _context2.sent;
|
|
11111
11079
|
|
|
11112
11080
|
case 6:
|
|
11113
11081
|
case "end":
|
|
11114
|
-
return
|
|
11082
|
+
return _context2.stop();
|
|
11115
11083
|
}
|
|
11116
11084
|
}
|
|
11117
|
-
},
|
|
11085
|
+
}, _callee2);
|
|
11118
11086
|
}));
|
|
11119
11087
|
|
|
11120
|
-
return function (
|
|
11121
|
-
return
|
|
11088
|
+
return function (_x4) {
|
|
11089
|
+
return _ref2.apply(this, arguments);
|
|
11122
11090
|
};
|
|
11123
11091
|
}());
|
|
11124
11092
|
|
|
11125
11093
|
case 6:
|
|
11126
11094
|
case "end":
|
|
11127
|
-
return
|
|
11095
|
+
return _context3.stop();
|
|
11128
11096
|
}
|
|
11129
11097
|
}
|
|
11130
|
-
},
|
|
11098
|
+
}, _callee3);
|
|
11131
11099
|
}));
|
|
11132
11100
|
return _addGood.apply(this, arguments);
|
|
11133
11101
|
}
|
|
11134
11102
|
|
|
11135
|
-
function rollBottom(
|
|
11103
|
+
function rollBottom(_x2, _x3) {
|
|
11136
11104
|
return _rollBottom.apply(this, arguments);
|
|
11137
11105
|
}
|
|
11138
11106
|
|
|
11139
11107
|
function _rollBottom() {
|
|
11140
|
-
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11108
|
+
_rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller, rootElement) {
|
|
11141
11109
|
var cont;
|
|
11142
|
-
return _regeneratorRuntime().wrap(function
|
|
11110
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11143
11111
|
while (1) {
|
|
11144
|
-
switch (
|
|
11112
|
+
switch (_context4.prev = _context4.next) {
|
|
11145
11113
|
case 0:
|
|
11146
|
-
|
|
11114
|
+
_context4.next = 2;
|
|
11147
11115
|
return controller.wait();
|
|
11148
11116
|
|
|
11149
11117
|
case 2:
|
|
11150
11118
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
11151
11119
|
|
|
11152
11120
|
if (cont) {
|
|
11153
|
-
|
|
11121
|
+
_context4.next = 5;
|
|
11154
11122
|
break;
|
|
11155
11123
|
}
|
|
11156
11124
|
|
|
11157
|
-
return
|
|
11125
|
+
return _context4.abrupt("return");
|
|
11158
11126
|
|
|
11159
11127
|
case 5:
|
|
11160
11128
|
cont.scrollTop = cont.scrollHeight;
|
|
11161
11129
|
|
|
11162
11130
|
case 6:
|
|
11163
11131
|
case "end":
|
|
11164
|
-
return
|
|
11132
|
+
return _context4.stop();
|
|
11165
11133
|
}
|
|
11166
11134
|
}
|
|
11167
|
-
},
|
|
11135
|
+
}, _callee4);
|
|
11168
11136
|
}));
|
|
11169
11137
|
return _rollBottom.apply(this, arguments);
|
|
11170
11138
|
}
|
|
@@ -16950,9 +16918,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16950
16918
|
className: "kts-invoice-operate-goods-list-able"
|
|
16951
16919
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16952
16920
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
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", {
|
|
16921
|
+
}, /*#__PURE__*/React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
|
|
16956
16922
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16957
16923
|
}, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
16958
16924
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
@@ -17956,7 +17922,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17956
17922
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17957
17923
|
autoComplete: "off"
|
|
17958
17924
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17959
|
-
span: 10 +
|
|
17925
|
+
span: 10 + riskspanW,
|
|
17960
17926
|
style: {
|
|
17961
17927
|
display: isExpand ? undefined : 'none'
|
|
17962
17928
|
}
|
|
@@ -17973,7 +17939,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17973
17939
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17974
17940
|
autoComplete: "off"
|
|
17975
17941
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17976
|
-
span: 10 +
|
|
17942
|
+
span: 10 + riskspanW,
|
|
17977
17943
|
style: {
|
|
17978
17944
|
display: isExpand ? undefined : 'none'
|
|
17979
17945
|
}
|
|
@@ -17987,22 +17953,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17987
17953
|
readOnly: isReadOnly('buyerPhone'),
|
|
17988
17954
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17989
17955
|
autoComplete: "off"
|
|
17990
|
-
})))),
|
|
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, {
|
|
17956
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18006
17957
|
span: 10 + leqispanW,
|
|
18007
17958
|
style: {
|
|
18008
17959
|
display: isExpand ? undefined : 'none'
|
|
@@ -18094,7 +18045,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18094
18045
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18095
18046
|
autoComplete: "off"
|
|
18096
18047
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18097
|
-
span: 10 +
|
|
18048
|
+
span: 10 + riskspanW,
|
|
18098
18049
|
style: {
|
|
18099
18050
|
display: isExpand ? undefined : 'none'
|
|
18100
18051
|
}
|
|
@@ -18111,7 +18062,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18111
18062
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
18112
18063
|
autoComplete: "off"
|
|
18113
18064
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18114
|
-
span: 10 +
|
|
18065
|
+
span: 10 + riskspanW,
|
|
18115
18066
|
style: {
|
|
18116
18067
|
display: isExpand ? undefined : 'none'
|
|
18117
18068
|
}
|
|
@@ -18125,22 +18076,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
18125
18076
|
readOnly: isReadOnly('sellerPhone'),
|
|
18126
18077
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
18127
18078
|
autoComplete: "off"
|
|
18128
|
-
})))),
|
|
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, {
|
|
18079
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18144
18080
|
span: 10 + leqispanW,
|
|
18145
18081
|
style: {
|
|
18146
18082
|
display: isExpand ? undefined : 'none'
|
|
@@ -19257,10 +19193,18 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
|
19257
19193
|
value: "238"
|
|
19258
19194
|
}];
|
|
19259
19195
|
|
|
19196
|
+
function getLable(value) {
|
|
19197
|
+
var _option$find;
|
|
19198
|
+
|
|
19199
|
+
return ((_option$find = option.find(function (e) {
|
|
19200
|
+
return e.value === value;
|
|
19201
|
+
})) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
|
|
19202
|
+
}
|
|
19203
|
+
|
|
19260
19204
|
if (props.readOnly) {
|
|
19261
19205
|
return /*#__PURE__*/React.createElement("span", {
|
|
19262
19206
|
className: 'digtal-stakeholder-form-text'
|
|
19263
|
-
}, props.value);
|
|
19207
|
+
}, getLable(props.value));
|
|
19264
19208
|
} else {
|
|
19265
19209
|
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
19266
19210
|
style: {
|
|
@@ -20030,10 +19974,18 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
20030
19974
|
label: "科索沃"
|
|
20031
19975
|
}];
|
|
20032
19976
|
|
|
19977
|
+
function getLable(value) {
|
|
19978
|
+
var _option$find2;
|
|
19979
|
+
|
|
19980
|
+
return ((_option$find2 = option.find(function (e) {
|
|
19981
|
+
return e.value === value;
|
|
19982
|
+
})) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
|
|
19983
|
+
}
|
|
19984
|
+
|
|
20033
19985
|
if (props.readOnly) {
|
|
20034
19986
|
return /*#__PURE__*/React.createElement("span", {
|
|
20035
19987
|
className: 'digtal-stakeholder-form-text'
|
|
20036
|
-
}, props.value);
|
|
19988
|
+
}, getLable(props.value));
|
|
20037
19989
|
} else {
|
|
20038
19990
|
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
20039
19991
|
options: option
|
|
@@ -20172,7 +20124,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
|
|
|
20172
20124
|
styleInject(css_248z$j);
|
|
20173
20125
|
|
|
20174
20126
|
function TableVirtual$1 (props) {
|
|
20175
|
-
var _props$
|
|
20127
|
+
var _props$dataSource2;
|
|
20176
20128
|
|
|
20177
20129
|
var _React$useState = React.useState(null),
|
|
20178
20130
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -20214,10 +20166,8 @@ function TableVirtual$1 (props) {
|
|
|
20214
20166
|
}, [self, tableBody]); // 设置占位dom的搞
|
|
20215
20167
|
|
|
20216
20168
|
var placeholderHeight = React.useMemo(function () {
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
20220
|
-
var placeholderHeight = rowHeight * dataSource.length;
|
|
20169
|
+
if (!self || !rowHeight || !props.dataSource || !placeholder) return;
|
|
20170
|
+
var placeholderHeight = rowHeight * props.dataSource.length;
|
|
20221
20171
|
placeholder.style.height = "".concat(placeholderHeight, "px");
|
|
20222
20172
|
return placeholderHeight;
|
|
20223
20173
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -20229,12 +20179,12 @@ function TableVirtual$1 (props) {
|
|
|
20229
20179
|
}, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
|
|
20230
20180
|
|
|
20231
20181
|
var dataSource = React.useMemo(function () {
|
|
20232
|
-
var _props$
|
|
20182
|
+
var _props$dataSource;
|
|
20233
20183
|
|
|
20234
20184
|
if (!props.dataSource) return [];
|
|
20235
20185
|
if (props.dataSource.length < 10) return props.dataSource;
|
|
20236
20186
|
if (!rowSize) return [props.dataSource[0]];
|
|
20237
|
-
return (_props$
|
|
20187
|
+
return (_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.slice(pointer, pointer + 2 * rowSize);
|
|
20238
20188
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
20239
20189
|
|
|
20240
20190
|
React.useEffect(function () {
|
|
@@ -20253,24 +20203,17 @@ function TableVirtual$1 (props) {
|
|
|
20253
20203
|
}, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
|
|
20254
20204
|
|
|
20255
20205
|
React.useEffect(function () {
|
|
20256
|
-
var _props$dataSource3;
|
|
20257
|
-
|
|
20258
20206
|
if (!self) return;
|
|
20259
20207
|
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
20260
20208
|
if (!table) return;
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
table.style.top = '0px';
|
|
20264
|
-
} else {
|
|
20265
|
-
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
20266
|
-
}
|
|
20267
|
-
}, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
|
|
20209
|
+
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
20210
|
+
}, [pointer, self, rowHeight]);
|
|
20268
20211
|
React.useEffect(function () {
|
|
20269
20212
|
if (!self) return;
|
|
20270
20213
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
20271
20214
|
if (!cont) return;
|
|
20272
20215
|
cont.scrollTop = 0;
|
|
20273
|
-
}, [(_props$
|
|
20216
|
+
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
20274
20217
|
return /*#__PURE__*/React.createElement("span", {
|
|
20275
20218
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
20276
20219
|
ref: function ref(e) {
|
|
@@ -20513,86 +20456,43 @@ function addGood$2(_x) {
|
|
|
20513
20456
|
|
|
20514
20457
|
|
|
20515
20458
|
function _addGood$1() {
|
|
20516
|
-
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
20459
|
+
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
|
|
20460
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
20520
20461
|
while (1) {
|
|
20521
|
-
switch (
|
|
20462
|
+
switch (_context4.prev = _context4.next) {
|
|
20522
20463
|
case 0:
|
|
20523
|
-
|
|
20524
|
-
return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
|
|
20525
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
20526
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20527
|
-
while (1) {
|
|
20528
|
-
switch (_context2.prev = _context2.next) {
|
|
20529
|
-
case 0:
|
|
20530
|
-
if (!err) {
|
|
20531
|
-
_context2.next = 3;
|
|
20532
|
-
break;
|
|
20533
|
-
}
|
|
20534
|
-
|
|
20535
|
-
message$1.error('请先填写发票行信息,再添加新的行');
|
|
20536
|
-
return _context2.abrupt("return");
|
|
20537
|
-
|
|
20538
|
-
case 3:
|
|
20539
|
-
case "end":
|
|
20540
|
-
return _context2.stop();
|
|
20541
|
-
}
|
|
20542
|
-
}
|
|
20543
|
-
}, _callee2);
|
|
20544
|
-
}));
|
|
20545
|
-
|
|
20546
|
-
return function (_x4, _x5) {
|
|
20547
|
-
return _ref2.apply(this, arguments);
|
|
20548
|
-
};
|
|
20549
|
-
}());
|
|
20550
|
-
|
|
20551
|
-
case 2:
|
|
20552
|
-
_context5.next = 4;
|
|
20464
|
+
_context4.next = 2;
|
|
20553
20465
|
return controller.saveEditGood();
|
|
20554
20466
|
|
|
20555
|
-
case
|
|
20556
|
-
|
|
20467
|
+
case 2:
|
|
20468
|
+
_context4.next = 4;
|
|
20557
20469
|
return controller.wait();
|
|
20558
20470
|
|
|
20559
|
-
case
|
|
20560
|
-
|
|
20471
|
+
case 4:
|
|
20472
|
+
_context4.next = 6;
|
|
20561
20473
|
return controller.run( /*#__PURE__*/function () {
|
|
20562
|
-
var
|
|
20563
|
-
var
|
|
20474
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20475
|
+
var _controller$state$goo;
|
|
20564
20476
|
|
|
20565
|
-
return _regeneratorRuntime().wrap(function
|
|
20477
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20566
20478
|
while (1) {
|
|
20567
|
-
switch (
|
|
20479
|
+
switch (_context3.prev = _context3.next) {
|
|
20568
20480
|
case 0:
|
|
20569
20481
|
if (!s.goodsListState.editGood) {
|
|
20570
|
-
|
|
20571
|
-
break;
|
|
20572
|
-
}
|
|
20573
|
-
|
|
20574
|
-
// message.error({
|
|
20575
|
-
// content: '你正在编辑一个货物',
|
|
20576
|
-
// key: '你正在编辑一个货物',
|
|
20577
|
-
// });
|
|
20578
|
-
// return;
|
|
20579
|
-
isValidateGood = controller.state.goodsListState.isValidateGood;
|
|
20580
|
-
|
|
20581
|
-
if (!isValidateGood) {
|
|
20582
|
-
_context4.next = 5;
|
|
20482
|
+
_context3.next = 3;
|
|
20583
20483
|
break;
|
|
20584
20484
|
}
|
|
20585
20485
|
|
|
20586
|
-
|
|
20486
|
+
_context3.next = 3;
|
|
20587
20487
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
20588
|
-
var
|
|
20488
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
20589
20489
|
var firstError;
|
|
20590
|
-
return _regeneratorRuntime().wrap(function
|
|
20490
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20591
20491
|
while (1) {
|
|
20592
|
-
switch (
|
|
20492
|
+
switch (_context2.prev = _context2.next) {
|
|
20593
20493
|
case 0:
|
|
20594
20494
|
if (!err) {
|
|
20595
|
-
|
|
20495
|
+
_context2.next = 4;
|
|
20596
20496
|
break;
|
|
20597
20497
|
}
|
|
20598
20498
|
|
|
@@ -20601,50 +20501,50 @@ function _addGood$1() {
|
|
|
20601
20501
|
content: firstError.errors[0].message,
|
|
20602
20502
|
key: '你正在编辑一个货物'
|
|
20603
20503
|
});
|
|
20604
|
-
return
|
|
20504
|
+
return _context2.abrupt("return");
|
|
20605
20505
|
|
|
20606
20506
|
case 4:
|
|
20607
20507
|
case "end":
|
|
20608
|
-
return
|
|
20508
|
+
return _context2.stop();
|
|
20609
20509
|
}
|
|
20610
20510
|
}
|
|
20611
|
-
},
|
|
20511
|
+
}, _callee2);
|
|
20612
20512
|
}));
|
|
20613
20513
|
|
|
20614
|
-
return function (
|
|
20615
|
-
return
|
|
20514
|
+
return function (_x5, _x6) {
|
|
20515
|
+
return _ref3.apply(this, arguments);
|
|
20616
20516
|
};
|
|
20617
20517
|
}());
|
|
20618
20518
|
|
|
20619
|
-
case
|
|
20620
|
-
|
|
20519
|
+
case 3:
|
|
20520
|
+
_context3.next = 5;
|
|
20621
20521
|
return controller.addGood({
|
|
20622
20522
|
taxRate: s.goodsListState.defaultRate,
|
|
20623
20523
|
lineAttribute: LineAttributeType$1.正常
|
|
20624
20524
|
});
|
|
20625
20525
|
|
|
20626
|
-
case
|
|
20627
|
-
s.goodsListState.editGood =
|
|
20526
|
+
case 5:
|
|
20527
|
+
s.goodsListState.editGood = _context3.sent;
|
|
20628
20528
|
|
|
20629
|
-
case
|
|
20529
|
+
case 6:
|
|
20630
20530
|
case "end":
|
|
20631
|
-
return
|
|
20531
|
+
return _context3.stop();
|
|
20632
20532
|
}
|
|
20633
20533
|
}
|
|
20634
|
-
},
|
|
20534
|
+
}, _callee3);
|
|
20635
20535
|
}));
|
|
20636
20536
|
|
|
20637
|
-
return function (
|
|
20638
|
-
return
|
|
20537
|
+
return function (_x4) {
|
|
20538
|
+
return _ref2.apply(this, arguments);
|
|
20639
20539
|
};
|
|
20640
20540
|
}());
|
|
20641
20541
|
|
|
20642
|
-
case
|
|
20542
|
+
case 6:
|
|
20643
20543
|
case "end":
|
|
20644
|
-
return
|
|
20544
|
+
return _context4.stop();
|
|
20645
20545
|
}
|
|
20646
20546
|
}
|
|
20647
|
-
},
|
|
20547
|
+
}, _callee4);
|
|
20648
20548
|
}));
|
|
20649
20549
|
return _addGood$1.apply(this, arguments);
|
|
20650
20550
|
}
|
|
@@ -20654,34 +20554,34 @@ function rollBottom$1(_x2, _x3) {
|
|
|
20654
20554
|
}
|
|
20655
20555
|
|
|
20656
20556
|
function _rollBottom$1() {
|
|
20657
|
-
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
20557
|
+
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
|
|
20658
20558
|
var cont;
|
|
20659
|
-
return _regeneratorRuntime().wrap(function
|
|
20559
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
20660
20560
|
while (1) {
|
|
20661
|
-
switch (
|
|
20561
|
+
switch (_context5.prev = _context5.next) {
|
|
20662
20562
|
case 0:
|
|
20663
|
-
|
|
20563
|
+
_context5.next = 2;
|
|
20664
20564
|
return controller.wait();
|
|
20665
20565
|
|
|
20666
20566
|
case 2:
|
|
20667
20567
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
20668
20568
|
|
|
20669
20569
|
if (cont) {
|
|
20670
|
-
|
|
20570
|
+
_context5.next = 5;
|
|
20671
20571
|
break;
|
|
20672
20572
|
}
|
|
20673
20573
|
|
|
20674
|
-
return
|
|
20574
|
+
return _context5.abrupt("return");
|
|
20675
20575
|
|
|
20676
20576
|
case 5:
|
|
20677
20577
|
cont.scrollTop = cont.scrollHeight;
|
|
20678
20578
|
|
|
20679
20579
|
case 6:
|
|
20680
20580
|
case "end":
|
|
20681
|
-
return
|
|
20581
|
+
return _context5.stop();
|
|
20682
20582
|
}
|
|
20683
20583
|
}
|
|
20684
|
-
},
|
|
20584
|
+
}, _callee5);
|
|
20685
20585
|
}));
|
|
20686
20586
|
return _rollBottom$1.apply(this, arguments);
|
|
20687
20587
|
}
|
|
@@ -22008,7 +21908,7 @@ var onChangeSwitchTax$1 = /*#__PURE__*/function () {
|
|
|
22008
21908
|
};
|
|
22009
21909
|
}();
|
|
22010
21910
|
|
|
22011
|
-
var TaxIncludedSwitch$1 = (function (
|
|
21911
|
+
var TaxIncludedSwitch$1 = (function () {
|
|
22012
21912
|
var controller = Invoice.useInvoiceController();
|
|
22013
21913
|
/** 是否含税 */
|
|
22014
21914
|
|
|
@@ -22027,9 +21927,8 @@ var TaxIncludedSwitch$1 = (function (props) {
|
|
|
22027
21927
|
switch (_context.prev = _context.next) {
|
|
22028
21928
|
case 0:
|
|
22029
21929
|
onChangeSwitchTax$1(controller, e);
|
|
22030
|
-
props.onChange && props.onChange(e);
|
|
22031
21930
|
|
|
22032
|
-
case
|
|
21931
|
+
case 1:
|
|
22033
21932
|
case "end":
|
|
22034
21933
|
return _context.stop();
|
|
22035
21934
|
}
|
|
@@ -22934,9 +22833,6 @@ var useColumns$1 = (function (form) {
|
|
|
22934
22833
|
var changeField = controller.useMemo(function (e) {
|
|
22935
22834
|
return e.calculatingField;
|
|
22936
22835
|
}, []);
|
|
22937
|
-
var isValidateGood = controller.useMemo(function (s) {
|
|
22938
|
-
return s.goodsListState.isValidateGood;
|
|
22939
|
-
}, []);
|
|
22940
22836
|
/** 计算中启动字段 */
|
|
22941
22837
|
|
|
22942
22838
|
var setChangeField = React.useCallback(function (value) {
|
|
@@ -23031,37 +22927,25 @@ var useColumns$1 = (function (form) {
|
|
|
23031
22927
|
while (1) {
|
|
23032
22928
|
switch (_context2.prev = _context2.next) {
|
|
23033
22929
|
case 0:
|
|
23034
|
-
|
|
23035
|
-
_context2.next = 11;
|
|
23036
|
-
break;
|
|
23037
|
-
}
|
|
23038
|
-
|
|
23039
|
-
_context2.next = 3;
|
|
22930
|
+
_context2.next = 2;
|
|
23040
22931
|
return controller.wait();
|
|
23041
22932
|
|
|
23042
|
-
case
|
|
22933
|
+
case 2:
|
|
23043
22934
|
value = controller.state.goodsListState.editGood;
|
|
23044
22935
|
|
|
23045
22936
|
if (!(!(value === null || value === void 0 ? void 0 : value.itemName) && !(value === null || value === void 0 ? void 0 : value.itemNameSelf))) {
|
|
23046
|
-
_context2.next =
|
|
22937
|
+
_context2.next = 7;
|
|
23047
22938
|
break;
|
|
23048
22939
|
}
|
|
23049
22940
|
|
|
23050
22941
|
callback('项目名称不能为空');
|
|
23051
|
-
_context2.next =
|
|
22942
|
+
_context2.next = 8;
|
|
23052
22943
|
break;
|
|
23053
22944
|
|
|
23054
|
-
case
|
|
22945
|
+
case 7:
|
|
23055
22946
|
return _context2.abrupt("return");
|
|
23056
22947
|
|
|
23057
|
-
case
|
|
23058
|
-
_context2.next = 12;
|
|
23059
|
-
break;
|
|
23060
|
-
|
|
23061
|
-
case 11:
|
|
23062
|
-
callback();
|
|
23063
|
-
|
|
23064
|
-
case 12:
|
|
22948
|
+
case 8:
|
|
23065
22949
|
case "end":
|
|
23066
22950
|
return _context2.stop();
|
|
23067
22951
|
}
|
|
@@ -23262,34 +23146,24 @@ var useColumns$1 = (function (form) {
|
|
|
23262
23146
|
while (1) {
|
|
23263
23147
|
switch (_context6.prev = _context6.next) {
|
|
23264
23148
|
case 0:
|
|
23265
|
-
|
|
23266
|
-
_context6.next = 10;
|
|
23267
|
-
break;
|
|
23268
|
-
}
|
|
23269
|
-
|
|
23270
|
-
_context6.next = 3;
|
|
23149
|
+
_context6.next = 2;
|
|
23271
23150
|
return controller.wait();
|
|
23272
23151
|
|
|
23273
|
-
case
|
|
23152
|
+
case 2:
|
|
23274
23153
|
isvalue = !!value || value === 0;
|
|
23275
23154
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
23276
23155
|
|
|
23277
23156
|
if (!(isvalue || isPrice === isvalue)) {
|
|
23278
|
-
_context6.next =
|
|
23157
|
+
_context6.next = 6;
|
|
23279
23158
|
break;
|
|
23280
23159
|
}
|
|
23281
23160
|
|
|
23282
23161
|
return _context6.abrupt("return");
|
|
23283
23162
|
|
|
23284
|
-
case
|
|
23163
|
+
case 6:
|
|
23285
23164
|
callback('请输入数量');
|
|
23286
|
-
_context6.next = 11;
|
|
23287
|
-
break;
|
|
23288
23165
|
|
|
23289
|
-
case
|
|
23290
|
-
callback();
|
|
23291
|
-
|
|
23292
|
-
case 11:
|
|
23166
|
+
case 7:
|
|
23293
23167
|
case "end":
|
|
23294
23168
|
return _context6.stop();
|
|
23295
23169
|
}
|
|
@@ -23507,7 +23381,7 @@ var useColumns$1 = (function (form) {
|
|
|
23507
23381
|
initialValue: editGood.lineAmountIncludeTax,
|
|
23508
23382
|
getValueFromEvent: onNumberValueChange,
|
|
23509
23383
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
23510
|
-
required:
|
|
23384
|
+
required: true,
|
|
23511
23385
|
message: '金额不能为空'
|
|
23512
23386
|
}, {
|
|
23513
23387
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23578,7 +23452,7 @@ var useColumns$1 = (function (form) {
|
|
|
23578
23452
|
style: {
|
|
23579
23453
|
padding: '0 10px'
|
|
23580
23454
|
}
|
|
23581
|
-
},
|
|
23455
|
+
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23582
23456
|
}
|
|
23583
23457
|
}
|
|
23584
23458
|
}, {
|
|
@@ -23595,7 +23469,7 @@ var useColumns$1 = (function (form) {
|
|
|
23595
23469
|
initialValue: editGood.lineAmountExcludeTax,
|
|
23596
23470
|
getValueFromEvent: onNumberValueChange,
|
|
23597
23471
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
23598
|
-
required:
|
|
23472
|
+
required: true,
|
|
23599
23473
|
message: '金额不能为空'
|
|
23600
23474
|
}, {
|
|
23601
23475
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23641,7 +23515,7 @@ var useColumns$1 = (function (form) {
|
|
|
23641
23515
|
style: {
|
|
23642
23516
|
padding: '0 10px'
|
|
23643
23517
|
}
|
|
23644
|
-
},
|
|
23518
|
+
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
23645
23519
|
}
|
|
23646
23520
|
}
|
|
23647
23521
|
}, {
|
|
@@ -23657,7 +23531,7 @@ var useColumns$1 = (function (form) {
|
|
|
23657
23531
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
23658
23532
|
initialValue: editGood.taxRate,
|
|
23659
23533
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
23660
|
-
required:
|
|
23534
|
+
required: true,
|
|
23661
23535
|
message: '请选择税率'
|
|
23662
23536
|
}, {
|
|
23663
23537
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -23684,15 +23558,11 @@ var useColumns$1 = (function (form) {
|
|
|
23684
23558
|
}, e, "%");
|
|
23685
23559
|
}))));
|
|
23686
23560
|
} else {
|
|
23687
|
-
|
|
23688
|
-
|
|
23689
|
-
|
|
23690
|
-
|
|
23691
|
-
|
|
23692
|
-
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
23693
|
-
} else {
|
|
23694
|
-
return '';
|
|
23695
|
-
}
|
|
23561
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23562
|
+
style: {
|
|
23563
|
+
padding: '0 10px'
|
|
23564
|
+
}
|
|
23565
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
23696
23566
|
}
|
|
23697
23567
|
}
|
|
23698
23568
|
}, {
|
|
@@ -23708,7 +23578,7 @@ var useColumns$1 = (function (form) {
|
|
|
23708
23578
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxAmount', {
|
|
23709
23579
|
initialValue: editGood.taxAmount,
|
|
23710
23580
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxAmount')), [{
|
|
23711
|
-
required:
|
|
23581
|
+
required: true,
|
|
23712
23582
|
message: '税额不能为空'
|
|
23713
23583
|
}, {
|
|
23714
23584
|
validator: function validator(rule, value, callback) {
|
|
@@ -23753,7 +23623,7 @@ var useColumns$1 = (function (form) {
|
|
|
23753
23623
|
style: {
|
|
23754
23624
|
padding: '0 10px'
|
|
23755
23625
|
}
|
|
23756
|
-
}, isDutyFree$1(record) ? '***' :
|
|
23626
|
+
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
23757
23627
|
}
|
|
23758
23628
|
}
|
|
23759
23629
|
}] // 含税不含税
|
|
@@ -25698,9 +25568,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
25698
25568
|
}
|
|
25699
25569
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25700
25570
|
className: "kts-invoice-operate-goods-list-able"
|
|
25701
|
-
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, {
|
|
25702
|
-
onChange: props.onTaxSwitchChange
|
|
25703
|
-
}), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
|
|
25571
|
+
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, null), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
|
|
25704
25572
|
style: {
|
|
25705
25573
|
flex: 1
|
|
25706
25574
|
}
|
|
@@ -25731,7 +25599,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
25731
25599
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
25732
25600
|
});
|
|
25733
25601
|
|
|
25734
|
-
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
|
|
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";
|
|
25735
25603
|
styleInject(css_248z$r);
|
|
25736
25604
|
|
|
25737
25605
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -25747,272 +25615,126 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
25747
25615
|
}, []);
|
|
25748
25616
|
var readOnly = React.useMemo(function () {
|
|
25749
25617
|
return model === 'readOnly';
|
|
25750
|
-
}, [model]);
|
|
25751
|
-
var goodsList = controller.useMemo(function (s) {
|
|
25752
|
-
return s.goodsListState.goodsList;
|
|
25753
|
-
}, []); //outcome-104 任务 https://wiki.dev.kingxunlian.com/pages/viewpage.action?pageId=180355189
|
|
25754
|
-
//商品和服务税收分类合并编码为“3040502020200000000”时,视为停车费业务,针对停车费业务,蓝字发票增加以下判断:
|
|
25755
|
-
// 单位必须为“平方米”;
|
|
25756
|
-
// 项目名称必须为“车辆停放服务”;
|
|
25757
|
-
// 车牌号必填,最多支持填写3个车牌号;除该场景车牌号必须为空;
|
|
25758
|
-
// 租赁期起止格式必须为“yyyy-MM-dd HH:mm(租赁期起)”+“空格”+“yyyy-MM-dd HH:mm(租赁期止)。
|
|
25759
|
-
|
|
25760
|
-
var isParkFee = React.useCallback(function (taxClassificationCode) {
|
|
25761
|
-
if (taxClassificationCode === '3040502020200000000') {
|
|
25762
|
-
return true;
|
|
25763
|
-
} else {
|
|
25764
|
-
return false;
|
|
25765
|
-
}
|
|
25766
|
-
}, []);
|
|
25767
|
-
var indexRef = React.useRef([]);
|
|
25768
|
-
useEffect(function () {
|
|
25769
|
-
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
25770
|
-
if (cur.lineAttribute !== 1) {
|
|
25771
|
-
acc.push(cur.$index);
|
|
25772
|
-
}
|
|
25773
|
-
|
|
25774
|
-
return acc;
|
|
25775
|
-
}, []);
|
|
25776
|
-
indexRef.current = dd;
|
|
25777
|
-
}, [goodsList, indexRef]); // 注册 form
|
|
25618
|
+
}, [model]); // 注册 form
|
|
25778
25619
|
|
|
25779
25620
|
controller.useForm('realEstateInfo', form);
|
|
25780
|
-
|
|
25781
|
-
var getList = function getList() {
|
|
25782
|
-
var decrease = indexRef.current.length > goodsList.length;
|
|
25783
|
-
|
|
25784
|
-
if (decrease) {
|
|
25785
|
-
//已删行列表
|
|
25786
|
-
var diff = indexRef.current.filter(function (item) {
|
|
25787
|
-
return !goodsList.find(function (i) {
|
|
25788
|
-
return i.$index === item;
|
|
25789
|
-
});
|
|
25790
|
-
});
|
|
25791
|
-
var formData = form.getFieldValue('realEstateDataDto');
|
|
25792
|
-
|
|
25793
|
-
if (Array.isArray(formData) && diff.length > 0) {
|
|
25794
|
-
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
25795
|
-
return !diff.find(function (i) {
|
|
25796
|
-
return i === item.$index;
|
|
25797
|
-
});
|
|
25798
|
-
});
|
|
25799
|
-
form.setFieldsValue({
|
|
25800
|
-
realEstateDataDto: newForm
|
|
25801
|
-
});
|
|
25802
|
-
} else {
|
|
25803
|
-
form.setFieldsValue({
|
|
25804
|
-
realEstateDataDto: undefined
|
|
25805
|
-
});
|
|
25806
|
-
}
|
|
25807
|
-
}
|
|
25808
|
-
|
|
25809
|
-
return goodsList.filter(function (item) {
|
|
25810
|
-
return item.lineAttribute !== 1;
|
|
25811
|
-
}).map(function (item, index) {
|
|
25812
|
-
if (item.lineAttribute !== 1) {
|
|
25813
|
-
var isParkFeeItem = isParkFee(item.taxClassificationCode);
|
|
25814
|
-
return /*#__PURE__*/React.createElement(Row$1, {
|
|
25815
|
-
gutter: [17, 0]
|
|
25816
|
-
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
25817
|
-
span: 6
|
|
25818
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25819
|
-
style: {
|
|
25820
|
-
display: 'none'
|
|
25821
|
-
}
|
|
25822
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
25823
|
-
initialValue: item.$index
|
|
25824
|
-
})( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
25825
|
-
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
25826
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
25827
|
-
rules: readOnly ? [] : [{
|
|
25828
|
-
required: true,
|
|
25829
|
-
message: '请选择不动产地址'
|
|
25830
|
-
}]
|
|
25831
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
25832
|
-
style: {
|
|
25833
|
-
width: '100%'
|
|
25834
|
-
},
|
|
25835
|
-
options: props.realEstateAddressOptions,
|
|
25836
|
-
fieldNames: props.realEstateAddressFieldNames,
|
|
25837
|
-
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
25838
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25839
|
-
span: 6
|
|
25840
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25841
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
25842
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
25843
|
-
rules: readOnly ? [] : [{
|
|
25844
|
-
required: true,
|
|
25845
|
-
message: '请输入详细地址'
|
|
25846
|
-
}, {
|
|
25847
|
-
max: 120,
|
|
25848
|
-
message: '详细地址最多120个字符'
|
|
25849
|
-
}, {
|
|
25850
|
-
validator: function () {
|
|
25851
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
25852
|
-
var pattern;
|
|
25853
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25854
|
-
while (1) {
|
|
25855
|
-
switch (_context.prev = _context.next) {
|
|
25856
|
-
case 0:
|
|
25857
|
-
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
25858
|
-
|
|
25859
|
-
if (pattern.test(value)) {
|
|
25860
|
-
callback();
|
|
25861
|
-
} else {
|
|
25862
|
-
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
25863
|
-
}
|
|
25864
|
-
|
|
25865
|
-
case 2:
|
|
25866
|
-
case "end":
|
|
25867
|
-
return _context.stop();
|
|
25868
|
-
}
|
|
25869
|
-
}
|
|
25870
|
-
}, _callee);
|
|
25871
|
-
}));
|
|
25872
|
-
|
|
25873
|
-
function validator(_x, _x2, _x3) {
|
|
25874
|
-
return _validator.apply(this, arguments);
|
|
25875
|
-
}
|
|
25876
|
-
|
|
25877
|
-
return validator;
|
|
25878
|
-
}()
|
|
25879
|
-
}]
|
|
25880
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
25881
|
-
autoComplete: 'off',
|
|
25882
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
25883
|
-
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
25884
|
-
span: 6
|
|
25885
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25886
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
25887
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
25888
|
-
rules: readOnly ? [] : [{
|
|
25889
|
-
required: true,
|
|
25890
|
-
message: '请输入租赁期'
|
|
25891
|
-
}]
|
|
25892
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
25893
|
-
style: {
|
|
25894
|
-
width: '100%'
|
|
25895
|
-
}
|
|
25896
|
-
})))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
25897
|
-
span: 6
|
|
25898
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25899
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
25900
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
25901
|
-
rules: readOnly ? [] : [{
|
|
25902
|
-
required: true,
|
|
25903
|
-
message: '请输入租赁期'
|
|
25904
|
-
}]
|
|
25905
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMomentTime, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
25906
|
-
style: {
|
|
25907
|
-
width: '100%'
|
|
25908
|
-
},
|
|
25909
|
-
showTime: {
|
|
25910
|
-
format: 'HH:mm'
|
|
25911
|
-
},
|
|
25912
|
-
format: "YYYY-MM-DD HH:mm"
|
|
25913
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25914
|
-
span: 6
|
|
25915
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25916
|
-
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
25917
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
25918
|
-
rules: readOnly ? [] : [{
|
|
25919
|
-
required: true,
|
|
25920
|
-
message: '请选择跨地(市)标志'
|
|
25921
|
-
}]
|
|
25922
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
25923
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
25924
|
-
style: {
|
|
25925
|
-
width: '100%'
|
|
25926
|
-
}
|
|
25927
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25928
|
-
value: 'Y'
|
|
25929
|
-
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25930
|
-
value: 'N'
|
|
25931
|
-
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
25932
|
-
span: 6
|
|
25933
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25934
|
-
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
25935
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
25936
|
-
rules: readOnly ? [] : [{
|
|
25937
|
-
required: true,
|
|
25938
|
-
message: '请输入证书编号,若没有证书填写“无”'
|
|
25939
|
-
}, {
|
|
25940
|
-
max: 40,
|
|
25941
|
-
message: '证书编号最多40个字符'
|
|
25942
|
-
}]
|
|
25943
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
25944
|
-
autoComplete: 'off',
|
|
25945
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
25946
|
-
})))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
25947
|
-
span: 6
|
|
25948
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25949
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
25950
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
25951
|
-
rules: readOnly ? [] : [{
|
|
25952
|
-
required: true,
|
|
25953
|
-
message: '请选择面积单位'
|
|
25954
|
-
}]
|
|
25955
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
25956
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
25957
|
-
style: {
|
|
25958
|
-
width: '100%'
|
|
25959
|
-
}
|
|
25960
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25961
|
-
value: "\u5E73\u65B9\u5343\u7C73"
|
|
25962
|
-
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25963
|
-
value: "\u5E73\u65B9\u7C73"
|
|
25964
|
-
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25965
|
-
value: "\u516C\u9877"
|
|
25966
|
-
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25967
|
-
value: "\u4EA9"
|
|
25968
|
-
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25969
|
-
value: "h\u33A1"
|
|
25970
|
-
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25971
|
-
value: "k\u33A1"
|
|
25972
|
-
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25973
|
-
value: "\u33A1"
|
|
25974
|
-
}, "\u33A1"))))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
|
|
25975
|
-
span: 6
|
|
25976
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
25977
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
25978
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
25979
|
-
rules: readOnly ? [] : [{
|
|
25980
|
-
required: true,
|
|
25981
|
-
message: '请选择面积单位'
|
|
25982
|
-
}]
|
|
25983
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
25984
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
25985
|
-
style: {
|
|
25986
|
-
width: '100%'
|
|
25987
|
-
}
|
|
25988
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
25989
|
-
value: "\u5E73\u65B9\u7C73"
|
|
25990
|
-
}, "\u5E73\u65B9\u7C73"))))), isParkFeeItem && /*#__PURE__*/React.createElement(LicensePlateNumber, {
|
|
25991
|
-
form: form,
|
|
25992
|
-
index: index,
|
|
25993
|
-
cd: item.cd,
|
|
25994
|
-
readOnly: readOnly
|
|
25995
|
-
}) // <Col span={6} >
|
|
25996
|
-
// <Form.Item label='车牌号' >
|
|
25997
|
-
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
25998
|
-
// rules: readOnly ? [] : [{ required: true, message: '请选择面积单位' }]
|
|
25999
|
-
// })(
|
|
26000
|
-
// readOnly
|
|
26001
|
-
// ? <MyDiv />
|
|
26002
|
-
// : <LicensePlateNumber form={form}/>
|
|
26003
|
-
// )}
|
|
26004
|
-
// </Form.Item>
|
|
26005
|
-
// </Col>
|
|
26006
|
-
);
|
|
26007
|
-
}
|
|
26008
|
-
});
|
|
26009
|
-
};
|
|
26010
|
-
|
|
26011
25621
|
return /*#__PURE__*/React.createElement("div", {
|
|
26012
25622
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
26013
25623
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26014
25624
|
className: 'real-estate-info-digtal-label'
|
|
26015
|
-
}, "\u7279\
|
|
25625
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
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")))))));
|
|
26016
25738
|
});
|
|
26017
25739
|
|
|
26018
25740
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -26088,52 +25810,22 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
26088
25810
|
color: '#9F603D',
|
|
26089
25811
|
fontWeight: 600
|
|
26090
25812
|
}
|
|
26091
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
25813
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
26092
25814
|
}
|
|
26093
25815
|
}]);
|
|
26094
25816
|
|
|
26095
25817
|
return MyArrMoment;
|
|
26096
25818
|
}(React.Component);
|
|
26097
25819
|
|
|
26098
|
-
var
|
|
26099
|
-
_inherits(
|
|
26100
|
-
|
|
26101
|
-
var _super4 = _createSuper(MyArrMomentTime);
|
|
26102
|
-
|
|
26103
|
-
function MyArrMomentTime() {
|
|
26104
|
-
_classCallCheck(this, MyArrMomentTime);
|
|
26105
|
-
|
|
26106
|
-
return _super4.apply(this, arguments);
|
|
26107
|
-
}
|
|
26108
|
-
|
|
26109
|
-
_createClass(MyArrMomentTime, [{
|
|
26110
|
-
key: "render",
|
|
26111
|
-
value: function render() {
|
|
26112
|
-
var _this$props$value3 = this.props.value,
|
|
26113
|
-
value = _this$props$value3 === void 0 ? [] : _this$props$value3;
|
|
26114
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26115
|
-
style: this.props.style
|
|
26116
|
-
}, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD HH:mm')), /*#__PURE__*/React.createElement("span", {
|
|
26117
|
-
style: {
|
|
26118
|
-
color: '#9F603D',
|
|
26119
|
-
fontWeight: 600
|
|
26120
|
-
}
|
|
26121
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD HH:mm')));
|
|
26122
|
-
}
|
|
26123
|
-
}]);
|
|
26124
|
-
|
|
26125
|
-
return MyArrMomentTime;
|
|
26126
|
-
}(React.Component);
|
|
26127
|
-
|
|
26128
|
-
var MyNY = /*#__PURE__*/function (_React$Component5) {
|
|
26129
|
-
_inherits(MyNY, _React$Component5);
|
|
25820
|
+
var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
25821
|
+
_inherits(MyNY, _React$Component4);
|
|
26130
25822
|
|
|
26131
|
-
var
|
|
25823
|
+
var _super4 = _createSuper(MyNY);
|
|
26132
25824
|
|
|
26133
25825
|
function MyNY() {
|
|
26134
25826
|
_classCallCheck(this, MyNY);
|
|
26135
25827
|
|
|
26136
|
-
return
|
|
25828
|
+
return _super4.apply(this, arguments);
|
|
26137
25829
|
}
|
|
26138
25830
|
|
|
26139
25831
|
_createClass(MyNY, [{
|
|
@@ -26148,137 +25840,6 @@ var MyNY = /*#__PURE__*/function (_React$Component5) {
|
|
|
26148
25840
|
return MyNY;
|
|
26149
25841
|
}(React.Component);
|
|
26150
25842
|
|
|
26151
|
-
var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
26152
|
-
var _formData$props$index2;
|
|
26153
|
-
|
|
26154
|
-
var form = props.form,
|
|
26155
|
-
readOnly = props.readOnly;
|
|
26156
|
-
var getFieldDecorator = form.getFieldDecorator;
|
|
26157
|
-
var licenceLimit = 3; // 最多支持填写3个车牌号
|
|
26158
|
-
|
|
26159
|
-
var formData = form.getFieldValue('realEstateDataDto');
|
|
26160
|
-
|
|
26161
|
-
var _React$useState = React.useState(new Array(props.cd || 1).fill('')),
|
|
26162
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26163
|
-
value = _React$useState2[0],
|
|
26164
|
-
setVal = _React$useState2[1];
|
|
26165
|
-
|
|
26166
|
-
var cd = React.useMemo(function () {
|
|
26167
|
-
var _formData$props$index;
|
|
26168
|
-
|
|
26169
|
-
return (_formData$props$index = formData[props.index]) === null || _formData$props$index === void 0 ? void 0 : _formData$props$index.cd;
|
|
26170
|
-
}, [(_formData$props$index2 = formData[props.index]) === null || _formData$props$index2 === void 0 ? void 0 : _formData$props$index2.cd]); // useEffect(() => {
|
|
26171
|
-
// if (cd) {
|
|
26172
|
-
// const dd = value.concat(new Array(cd.length-1).fill(''))
|
|
26173
|
-
// setVal(dd);
|
|
26174
|
-
// }
|
|
26175
|
-
// }, [cd])
|
|
26176
|
-
|
|
26177
|
-
var onAdd = function onAdd() {
|
|
26178
|
-
if (value.length < licenceLimit) {
|
|
26179
|
-
setVal([].concat(_toConsumableArray(value), ['']));
|
|
26180
|
-
} else {
|
|
26181
|
-
message.warn('最多支持填写3个车牌号');
|
|
26182
|
-
}
|
|
26183
|
-
}; // 删除车牌号
|
|
26184
|
-
|
|
26185
|
-
|
|
26186
|
-
var onDelete = function onDelete() {
|
|
26187
|
-
if (value.length > 0) {
|
|
26188
|
-
var dd = value.slice(0, -1);
|
|
26189
|
-
setVal(dd);
|
|
26190
|
-
}
|
|
26191
|
-
};
|
|
26192
|
-
|
|
26193
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
|
|
26194
|
-
return /*#__PURE__*/React.createElement(Col$1, {
|
|
26195
|
-
span: 6
|
|
26196
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26197
|
-
label: "\u8F66\u724C\u53F7",
|
|
26198
|
-
key: key
|
|
26199
|
-
}, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
|
|
26200
|
-
rules: readOnly ? [] : [{
|
|
26201
|
-
required: true,
|
|
26202
|
-
message: '请输入车牌号,最多20位'
|
|
26203
|
-
}]
|
|
26204
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
26205
|
-
style: {
|
|
26206
|
-
width: '100%'
|
|
26207
|
-
},
|
|
26208
|
-
maxLength: 20,
|
|
26209
|
-
autoComplete: 'off',
|
|
26210
|
-
placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
|
|
26211
|
-
}))));
|
|
26212
|
-
}), !readOnly && /*#__PURE__*/React.createElement(Col$1, {
|
|
26213
|
-
span: 6
|
|
26214
|
-
}, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
26215
|
-
style: {
|
|
26216
|
-
color: 'white'
|
|
26217
|
-
}
|
|
26218
|
-
}, "1"), /*#__PURE__*/React.createElement("a", {
|
|
26219
|
-
style: {
|
|
26220
|
-
marginRight: 10
|
|
26221
|
-
},
|
|
26222
|
-
onClick: onAdd
|
|
26223
|
-
}, "\u6DFB\u52A0\u8F66\u724C\u53F7"), value.length > 1 && /*#__PURE__*/React.createElement("a", {
|
|
26224
|
-
onClick: onDelete
|
|
26225
|
-
}, "\u5220\u9664"))));
|
|
26226
|
-
}; // const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
|
|
26227
|
-
// const { form } = props;
|
|
26228
|
-
// const { getFieldDecorator } = form;
|
|
26229
|
-
// const licenceLimit = 3; // 最多支持填写3个车牌号
|
|
26230
|
-
// // const { value = [] } = this.props;
|
|
26231
|
-
// const [value, setVal] = React.useState(props.value || ['']);
|
|
26232
|
-
// // const newArr = value.filter(e => !!e);
|
|
26233
|
-
// const newArrLength = value.length;
|
|
26234
|
-
// console.log(value, newArrLength)
|
|
26235
|
-
// // 新增车牌号
|
|
26236
|
-
// const onAdd = () => {
|
|
26237
|
-
// if (newArrLength < licenceLimit) {
|
|
26238
|
-
// setVal([...value, '']);
|
|
26239
|
-
// props.onChange?.([...value, ''])
|
|
26240
|
-
// }
|
|
26241
|
-
// }
|
|
26242
|
-
// // 删除车牌号
|
|
26243
|
-
// const onDelete = () => {
|
|
26244
|
-
// if (newArrLength > 0) {
|
|
26245
|
-
// const dd = value.slice(0, -1)
|
|
26246
|
-
// setVal(dd);
|
|
26247
|
-
// props.onChange?.(dd)
|
|
26248
|
-
// }
|
|
26249
|
-
// }
|
|
26250
|
-
// const onInputChange = (e: React.ChangeEvent<HTMLInputElement>, index: number) => {
|
|
26251
|
-
// console.log(e.target.value);
|
|
26252
|
-
// const dd = value.map((item, i) => {
|
|
26253
|
-
// if (i === index) {
|
|
26254
|
-
// return e.target.value
|
|
26255
|
-
// }
|
|
26256
|
-
// return item
|
|
26257
|
-
// })
|
|
26258
|
-
// setVal(dd);
|
|
26259
|
-
// props.onChange?.(dd)
|
|
26260
|
-
// }
|
|
26261
|
-
// return (
|
|
26262
|
-
// <>
|
|
26263
|
-
// {newArrLength > 0 && value.map((item, index) => {
|
|
26264
|
-
// return
|
|
26265
|
-
// <Form.Item label='车牌号' >
|
|
26266
|
-
// {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
|
|
26267
|
-
// rules: [{ required: true, }]
|
|
26268
|
-
// })(
|
|
26269
|
-
// <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
26270
|
-
// )}
|
|
26271
|
-
// </Form.Item>
|
|
26272
|
-
// // <Col span={6} >
|
|
26273
|
-
// // <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
|
|
26274
|
-
// // </Col>
|
|
26275
|
-
// })}
|
|
26276
|
-
// <Button type="link" onClick={onAdd}>添加车牌号</Button>
|
|
26277
|
-
// {newArrLength > 1 && <Button type="link" onClick={onDelete}>删除</Button>}
|
|
26278
|
-
// </>
|
|
26279
|
-
// )
|
|
26280
|
-
// }
|
|
26281
|
-
|
|
26282
25843
|
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";
|
|
26283
25844
|
styleInject(css_248z$s);
|
|
26284
25845
|
|
|
@@ -26301,7 +25862,7 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26301
25862
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
26302
25863
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26303
25864
|
className: 'real-estate-info-digtal-label'
|
|
26304
|
-
}, "\u7279\
|
|
25865
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
26305
25866
|
gutter: [17, 0]
|
|
26306
25867
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
26307
25868
|
span: 6
|
|
@@ -27907,7 +27468,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
27907
27468
|
className: "kts-invoice-operate-freight"
|
|
27908
27469
|
}, /*#__PURE__*/React.createElement("div", {
|
|
27909
27470
|
className: 'real-estate-info-digtal-label'
|
|
27910
|
-
}, "\u7279\
|
|
27471
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
27911
27472
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
27912
27473
|
onClick: function onClick(e) {
|
|
27913
27474
|
e.stopPropagation();
|
|
@@ -29370,10 +28931,9 @@ var ImportGoodsDrawer = (function () {
|
|
|
29370
28931
|
while (1) {
|
|
29371
28932
|
switch (_context.prev = _context.next) {
|
|
29372
28933
|
case 0:
|
|
29373
|
-
s.goodsListState.importGoods.filter = {};
|
|
29374
28934
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
29375
28935
|
|
|
29376
|
-
case
|
|
28936
|
+
case 1:
|
|
29377
28937
|
case "end":
|
|
29378
28938
|
return _context.stop();
|
|
29379
28939
|
}
|