kts-component-invoice-operate 3.2.164 → 3.2.166
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/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.d.ts +4 -4
- package/dist/TaxClassificationCodeModal/index.d.ts +4 -0
- package/dist/index.esm.js +798 -699
- package/dist/index.js +797 -698
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +40 -40
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +868 -868
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +18 -18
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +19 -19
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +55 -55
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +21 -21
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +34 -34
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +26 -26
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +87 -87
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +81 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +131 -131
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +87 -87
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/children/index.tsx +214 -214
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +31 -31
- package/src/Invoice/index.md +56 -56
- package/src/Invoice/index.tsx +183 -183
- package/src/Invoice/tools/calculate/index.ts +132 -132
- package/src/Invoice/tools/coolingFn/index.ts +17 -17
- package/src/Invoice/tools/evaluate/index.ts +7 -7
- package/src/Invoice/tools/idGenerator/index.ts +2 -2
- package/src/Invoice/tools/itemName/index.ts +55 -55
- package/src/Invoice/tools/lazyFn/index.ts +19 -19
- package/src/Invoice/tools/mounting/index.ts +13 -13
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
- package/src/Invoice/tools/utils/index.ts +1 -1
- package/src/Invoice/tools/utils/money/index.ts +20 -20
- package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
- package/src/Invoice/ui/default/Buyer/index.less +219 -219
- package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +592 -586
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +647 -647
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +711 -711
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +49 -49
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +99 -99
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +120 -120
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +185 -185
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +94 -94
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +40 -40
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +71 -71
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +130 -130
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +639 -639
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +660 -660
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +87 -87
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +51 -51
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +67 -67
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +340 -340
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +14 -14
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +192 -192
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +99 -99
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +436 -436
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +396 -396
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +161 -161
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +184 -177
- package/src/TaxClassificationCodeModal/index.less +5 -0
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +141 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +0 -14331
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import GreyReactBox, { decorator } from 'grey-react-box';
|
|
|
4
4
|
import { chain as chain$1, bignumber, format as format$1, create, all, equal } from 'mathjs';
|
|
5
5
|
import { message, Form, Input, Icon as Icon$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';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
|
-
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Row, Col, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Input as Input$1, Select as Select$1, Spin as Spin$1, Menu as Menu$1, Form as Form$1, Drawer as Drawer$1, Space, Radio, InputNumber, Popconfirm, Modal, Tree as Tree$1 } from 'kts-xui';
|
|
7
|
+
import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete$1, Popover, Button as Button$1, Dropdown as Dropdown$1, Row, Col, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Input as Input$1, Select as Select$1, Spin as Spin$1, Menu as Menu$1, Form as Form$1, Drawer as Drawer$1, Space, Radio, InputNumber, Popconfirm, Modal, Tree as Tree$1, Card, FormReadOnly } from 'kts-xui';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
@@ -1002,6 +1002,20 @@ var EndowCode = /*#__PURE__*/_createClass(function EndowCode() {
|
|
|
1002
1002
|
}, _callee);
|
|
1003
1003
|
}));
|
|
1004
1004
|
this.getTaxCategoryCodeTree = void 0;
|
|
1005
|
+
this.onLoadTaxClassificationCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1006
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1007
|
+
while (1) {
|
|
1008
|
+
switch (_context2.prev = _context2.next) {
|
|
1009
|
+
case 0:
|
|
1010
|
+
return _context2.abrupt("return", []);
|
|
1011
|
+
|
|
1012
|
+
case 1:
|
|
1013
|
+
case "end":
|
|
1014
|
+
return _context2.stop();
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}, _callee2);
|
|
1018
|
+
}));
|
|
1005
1019
|
this.getReadOnlyTaxRate = void 0;
|
|
1006
1020
|
this.getReadOnlyFavouredPolicy = void 0;
|
|
1007
1021
|
this.getDefaultValue = void 0;
|
|
@@ -1022,21 +1036,7 @@ var EndowCode = /*#__PURE__*/_createClass(function EndowCode() {
|
|
|
1022
1036
|
value: 3
|
|
1023
1037
|
}];
|
|
1024
1038
|
this.cache = {};
|
|
1025
|
-
this.onSearchTaxClassificationCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1026
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1027
|
-
while (1) {
|
|
1028
|
-
switch (_context2.prev = _context2.next) {
|
|
1029
|
-
case 0:
|
|
1030
|
-
return _context2.abrupt("return", []);
|
|
1031
|
-
|
|
1032
|
-
case 1:
|
|
1033
|
-
case "end":
|
|
1034
|
-
return _context2.stop();
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}, _callee2);
|
|
1038
|
-
}));
|
|
1039
|
-
this.onLoadTaxClassificationCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
1039
|
+
this.onSearchTaxClassificationCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
1040
1040
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1041
1041
|
while (1) {
|
|
1042
1042
|
switch (_context3.prev = _context3.next) {
|
|
@@ -9870,7 +9870,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9870
9870
|
render: function render(form) {
|
|
9871
9871
|
return form.getFieldDecorator('code', {
|
|
9872
9872
|
initialValue: props.defaultCode
|
|
9873
|
-
})(
|
|
9873
|
+
})(React.createElement(FormSpanString, null));
|
|
9874
9874
|
}
|
|
9875
9875
|
});
|
|
9876
9876
|
}
|
|
@@ -9883,7 +9883,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9883
9883
|
render: function render(form) {
|
|
9884
9884
|
return form.getFieldDecorator('no', {
|
|
9885
9885
|
initialValue: props.defaultNo
|
|
9886
|
-
})(
|
|
9886
|
+
})(React.createElement(FormSpanString, null));
|
|
9887
9887
|
}
|
|
9888
9888
|
});
|
|
9889
9889
|
}
|
|
@@ -9894,7 +9894,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9894
9894
|
render: function render(form) {
|
|
9895
9895
|
return form.getFieldDecorator('invoicingDate', {
|
|
9896
9896
|
initialValue: props.defaultInvoicingDate
|
|
9897
|
-
})(
|
|
9897
|
+
})(React.createElement(FormSpanString, null));
|
|
9898
9898
|
}
|
|
9899
9899
|
});
|
|
9900
9900
|
}
|
|
@@ -9905,7 +9905,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9905
9905
|
render: function render(form) {
|
|
9906
9906
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9907
9907
|
initialValue: props.defaultValidationCode
|
|
9908
|
-
})(
|
|
9908
|
+
})(React.createElement(FormSpanString, null));
|
|
9909
9909
|
}
|
|
9910
9910
|
});
|
|
9911
9911
|
}
|
|
@@ -9925,21 +9925,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9925
9925
|
React.useEffect(function () {
|
|
9926
9926
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9927
9927
|
}, [props.typeOption]);
|
|
9928
|
-
return
|
|
9928
|
+
return React.createElement("div", {
|
|
9929
9929
|
className: "kts-invoice-operate-invoice-header"
|
|
9930
|
-
},
|
|
9930
|
+
}, React.createElement("div", {
|
|
9931
9931
|
className: "invoice-header-title"
|
|
9932
|
-
}, title),
|
|
9932
|
+
}, title), React.createElement("div", {
|
|
9933
9933
|
className: "invoice-header-no"
|
|
9934
|
-
}, isInvoiceNo ?
|
|
9934
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9935
9935
|
initialValue: props.defaultId
|
|
9936
|
-
})(
|
|
9936
|
+
})(React.createElement(Input, {
|
|
9937
9937
|
disabled: readOnlyInvoiceNo,
|
|
9938
9938
|
style: {
|
|
9939
9939
|
width: 230
|
|
9940
9940
|
},
|
|
9941
9941
|
size: "small",
|
|
9942
|
-
suffix: controller.updateInvoiceNo &&
|
|
9942
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9943
9943
|
style: {
|
|
9944
9944
|
cursor: 'pointer'
|
|
9945
9945
|
},
|
|
@@ -9983,15 +9983,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9983
9983
|
return onClick;
|
|
9984
9984
|
}()
|
|
9985
9985
|
})
|
|
9986
|
-
}))) :
|
|
9986
|
+
}))) : React.createElement("div", {
|
|
9987
9987
|
style: {
|
|
9988
9988
|
height: 20
|
|
9989
9989
|
}
|
|
9990
|
-
}), tag &&
|
|
9990
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9991
9991
|
className: "invoice-header-type"
|
|
9992
9992
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9993
9993
|
initialValue: typeIndex
|
|
9994
|
-
})(
|
|
9994
|
+
})(React.createElement(Select, {
|
|
9995
9995
|
size: "small",
|
|
9996
9996
|
style: {
|
|
9997
9997
|
width: 230
|
|
@@ -10000,20 +10000,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
10000
10000
|
setTypeIndex(e);
|
|
10001
10001
|
}
|
|
10002
10002
|
}, props.typeOption.map(function (e, i) {
|
|
10003
|
-
return
|
|
10003
|
+
return React.createElement(Select.Option, {
|
|
10004
10004
|
key: i,
|
|
10005
10005
|
value: i
|
|
10006
10006
|
}, e.title);
|
|
10007
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
10007
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
10008
10008
|
style: {
|
|
10009
10009
|
marginTop: 10
|
|
10010
10010
|
}
|
|
10011
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
10011
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
10012
10012
|
className: "invoice-header-property"
|
|
10013
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
10013
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
10014
10014
|
className: 'invoice-header-property-fieldExpand'
|
|
10015
10015
|
}, fieldExpand.map(function (e) {
|
|
10016
|
-
return
|
|
10016
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
10017
10017
|
}))));
|
|
10018
10018
|
});
|
|
10019
10019
|
|
|
@@ -10032,7 +10032,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10032
10032
|
key: "render",
|
|
10033
10033
|
value: function render() {
|
|
10034
10034
|
// return <span>{this.props.value}</span>;
|
|
10035
|
-
return
|
|
10035
|
+
return React.createElement(Input, {
|
|
10036
10036
|
size: "small",
|
|
10037
10037
|
disabled: true,
|
|
10038
10038
|
value: this.props.value
|
|
@@ -10171,12 +10171,12 @@ function TableVirtual (props) {
|
|
|
10171
10171
|
cont.scrollTop = 0;
|
|
10172
10172
|
}, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]); // console.log('===> pointer', pointer, dataSource);
|
|
10173
10173
|
|
|
10174
|
-
return
|
|
10174
|
+
return React.createElement("span", {
|
|
10175
10175
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10176
10176
|
ref: function ref(e) {
|
|
10177
10177
|
setSelf(e);
|
|
10178
10178
|
}
|
|
10179
|
-
},
|
|
10179
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10180
10180
|
dataSource: dataSource,
|
|
10181
10181
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10182
10182
|
tableComponent: Table
|
|
@@ -10268,57 +10268,57 @@ var Statistics = (function () {
|
|
|
10268
10268
|
});
|
|
10269
10269
|
return sum.done().toNumber();
|
|
10270
10270
|
}, []);
|
|
10271
|
-
return
|
|
10271
|
+
return React.createElement("div", {
|
|
10272
10272
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10273
|
-
},
|
|
10273
|
+
}, React.createElement("div", {
|
|
10274
10274
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10275
|
-
},
|
|
10275
|
+
}, React.createElement("div", {
|
|
10276
10276
|
style: {
|
|
10277
10277
|
width: 45.92
|
|
10278
10278
|
}
|
|
10279
|
-
}),
|
|
10279
|
+
}), React.createElement("div", {
|
|
10280
10280
|
style: {
|
|
10281
10281
|
flex: 1
|
|
10282
10282
|
}
|
|
10283
|
-
},
|
|
10283
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10284
10284
|
style: {
|
|
10285
10285
|
width: 119,
|
|
10286
10286
|
textAlign: 'right',
|
|
10287
10287
|
border: 'none'
|
|
10288
10288
|
}
|
|
10289
|
-
},
|
|
10289
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10290
10290
|
style: {
|
|
10291
10291
|
width: 70,
|
|
10292
10292
|
border: 'none'
|
|
10293
10293
|
}
|
|
10294
|
-
}),
|
|
10294
|
+
}), React.createElement("div", {
|
|
10295
10295
|
style: {
|
|
10296
10296
|
width: 119,
|
|
10297
10297
|
textAlign: 'right',
|
|
10298
10298
|
border: 'none'
|
|
10299
10299
|
}
|
|
10300
|
-
},
|
|
10300
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10301
10301
|
style: {
|
|
10302
10302
|
width: 111,
|
|
10303
10303
|
border: 'none'
|
|
10304
10304
|
}
|
|
10305
|
-
})),
|
|
10305
|
+
})), React.createElement("div", {
|
|
10306
10306
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10307
|
-
},
|
|
10307
|
+
}, React.createElement("div", {
|
|
10308
10308
|
style: {
|
|
10309
10309
|
width: 45.92
|
|
10310
10310
|
}
|
|
10311
|
-
}),
|
|
10311
|
+
}), React.createElement("div", {
|
|
10312
10312
|
style: {
|
|
10313
10313
|
flex: 5,
|
|
10314
10314
|
border: 'none'
|
|
10315
10315
|
}
|
|
10316
|
-
},
|
|
10316
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10317
10317
|
style: {
|
|
10318
10318
|
flex: 5,
|
|
10319
10319
|
border: 'none'
|
|
10320
10320
|
}
|
|
10321
|
-
},
|
|
10321
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10322
10322
|
});
|
|
10323
10323
|
|
|
10324
10324
|
var AddRowButton = (function () {
|
|
@@ -10373,10 +10373,10 @@ var AddRowButton = (function () {
|
|
|
10373
10373
|
}
|
|
10374
10374
|
}, _callee);
|
|
10375
10375
|
})), [controller, rootElement]);
|
|
10376
|
-
if (isAddRow === false) return
|
|
10377
|
-
if (model === 'prefab') return
|
|
10378
|
-
if (model === 'readOnly') return
|
|
10379
|
-
return
|
|
10376
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10377
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10378
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10379
|
+
return React.createElement(Button, {
|
|
10380
10380
|
onClick: onClick,
|
|
10381
10381
|
disabled: disabled
|
|
10382
10382
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10506,11 +10506,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10506
10506
|
var onChange = React.useCallback(function (e) {
|
|
10507
10507
|
onChangeSwitchTax(controller, e);
|
|
10508
10508
|
}, []);
|
|
10509
|
-
return
|
|
10509
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10510
10510
|
style: {
|
|
10511
10511
|
marginRight: 2
|
|
10512
10512
|
}
|
|
10513
|
-
}, "\u542B\u7A0E:"),
|
|
10513
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10514
10514
|
disabled: isSwitchTax === false,
|
|
10515
10515
|
checked: isTaxIncluded,
|
|
10516
10516
|
defaultChecked: true,
|
|
@@ -10548,19 +10548,19 @@ var DescribeSwitch = (function () {
|
|
|
10548
10548
|
};
|
|
10549
10549
|
}());
|
|
10550
10550
|
}, []);
|
|
10551
|
-
if (!productComparison.onComply) return
|
|
10552
|
-
return
|
|
10551
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10552
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10553
10553
|
style: {
|
|
10554
10554
|
marginRight: 2
|
|
10555
10555
|
}
|
|
10556
|
-
},
|
|
10556
|
+
}, React.createElement(Tooltip, {
|
|
10557
10557
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10558
|
-
},
|
|
10558
|
+
}, React.createElement(Icon$1, {
|
|
10559
10559
|
style: {
|
|
10560
10560
|
marginRight: 3
|
|
10561
10561
|
},
|
|
10562
10562
|
type: "info-circle"
|
|
10563
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10563
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10564
10564
|
checked: isMyShow,
|
|
10565
10565
|
checkedChildren: "\u6211\u65B9",
|
|
10566
10566
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10660,13 +10660,13 @@ function Search() {
|
|
|
10660
10660
|
};
|
|
10661
10661
|
}());
|
|
10662
10662
|
}, [value, controller]);
|
|
10663
|
-
return
|
|
10663
|
+
return React.createElement(Input, {
|
|
10664
10664
|
size: "small",
|
|
10665
10665
|
readOnly: readOnly,
|
|
10666
10666
|
value: value,
|
|
10667
10667
|
className: "kts-invoice-operate-goods-list-search",
|
|
10668
10668
|
placeholder: "\u8BF7\u60A8\u8F93\u5165".concat(columnshide.includes('itemCode') ? '' : '商品编码、', "\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(").concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
10669
|
-
prefix:
|
|
10669
|
+
prefix: React.createElement(Icon$1, {
|
|
10670
10670
|
component: SvgMagnifier,
|
|
10671
10671
|
style: {
|
|
10672
10672
|
color: "#b8b8b8"
|
|
@@ -10736,13 +10736,13 @@ function TableRow(props) {
|
|
|
10736
10736
|
}).indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded-level-1';
|
|
10737
10737
|
return undefined;
|
|
10738
10738
|
}, [rowKey, expandedRowKeys, good]);
|
|
10739
|
-
return rowKey === current && current ?
|
|
10739
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10740
10740
|
style: {
|
|
10741
10741
|
height: 32.67,
|
|
10742
10742
|
borderBottom: '1px solid #E6E6E6',
|
|
10743
10743
|
position: 'relative'
|
|
10744
10744
|
}
|
|
10745
|
-
},
|
|
10745
|
+
}, React.createElement("div", {
|
|
10746
10746
|
style: {
|
|
10747
10747
|
height: 1,
|
|
10748
10748
|
width: '100%',
|
|
@@ -10750,7 +10750,7 @@ function TableRow(props) {
|
|
|
10750
10750
|
position: 'absolute',
|
|
10751
10751
|
bottom: 0
|
|
10752
10752
|
}
|
|
10753
|
-
})) :
|
|
10753
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10754
10754
|
className: classNames(props.className, discount, expandedRow, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10755
10755
|
}));
|
|
10756
10756
|
}
|
|
@@ -11158,7 +11158,7 @@ var RowMenu = (function (props) {
|
|
|
11158
11158
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11159
11159
|
|
|
11160
11160
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11161
|
-
arr.unshift(
|
|
11161
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11162
11162
|
key: "divider-1"
|
|
11163
11163
|
}));
|
|
11164
11164
|
|
|
@@ -11174,17 +11174,17 @@ var RowMenu = (function (props) {
|
|
|
11174
11174
|
return undefined;
|
|
11175
11175
|
}
|
|
11176
11176
|
|
|
11177
|
-
return
|
|
11178
|
-
return
|
|
11177
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11178
|
+
return React.createElement(Menu.Item, {
|
|
11179
11179
|
key: e.key,
|
|
11180
11180
|
onClick: e.onClick
|
|
11181
|
-
},
|
|
11181
|
+
}, React.createElement(Text$1, {
|
|
11182
11182
|
strong: true
|
|
11183
11183
|
}, e.title));
|
|
11184
11184
|
}));
|
|
11185
11185
|
}, [itemList]);
|
|
11186
11186
|
var buttonList = React.useMemo(function () {
|
|
11187
|
-
return
|
|
11187
|
+
return React.createElement("div", {
|
|
11188
11188
|
style: {
|
|
11189
11189
|
flex: 1,
|
|
11190
11190
|
textAlign: 'left',
|
|
@@ -11192,7 +11192,7 @@ var RowMenu = (function (props) {
|
|
|
11192
11192
|
gap: 10
|
|
11193
11193
|
}
|
|
11194
11194
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11195
|
-
return
|
|
11195
|
+
return React.createElement(Button, {
|
|
11196
11196
|
key: e.key,
|
|
11197
11197
|
type: 'link',
|
|
11198
11198
|
onClick: e.onClick,
|
|
@@ -11204,25 +11204,25 @@ var RowMenu = (function (props) {
|
|
|
11204
11204
|
}, [itemList]);
|
|
11205
11205
|
|
|
11206
11206
|
if (props.goods.level && props.goods.level > 0) {
|
|
11207
|
-
return
|
|
11207
|
+
return React.createElement(React.Fragment, null);
|
|
11208
11208
|
}
|
|
11209
11209
|
|
|
11210
11210
|
if (itemList.length === 0) {
|
|
11211
|
-
return
|
|
11211
|
+
return React.createElement(React.Fragment, null);
|
|
11212
11212
|
}
|
|
11213
11213
|
|
|
11214
|
-
return
|
|
11214
|
+
return React.createElement("span", {
|
|
11215
11215
|
style: {
|
|
11216
11216
|
padding: '0 0 0 10px',
|
|
11217
11217
|
display: 'flex'
|
|
11218
11218
|
}
|
|
11219
|
-
}, buttonList, overlay &&
|
|
11219
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11220
11220
|
overlay: overlay,
|
|
11221
11221
|
trigger: ['click']
|
|
11222
|
-
},
|
|
11222
|
+
}, React.createElement(Button, {
|
|
11223
11223
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11224
11224
|
type: "link"
|
|
11225
|
-
},
|
|
11225
|
+
}, React.createElement(Icon$1, {
|
|
11226
11226
|
component: SvgSpot
|
|
11227
11227
|
}))));
|
|
11228
11228
|
});
|
|
@@ -11236,9 +11236,9 @@ var TitleText = (function (props) {
|
|
|
11236
11236
|
return !!e.required;
|
|
11237
11237
|
})) || props.required;
|
|
11238
11238
|
}, [rules, props.required]);
|
|
11239
|
-
return
|
|
11239
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11240
11240
|
type: "danger"
|
|
11241
|
-
}, "*") :
|
|
11241
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11242
11242
|
});
|
|
11243
11243
|
|
|
11244
11244
|
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n";
|
|
@@ -11432,14 +11432,14 @@ function ItemNameInput(props) {
|
|
|
11432
11432
|
React.useEffect(function () {
|
|
11433
11433
|
setValue(props.value);
|
|
11434
11434
|
}, [props.value]);
|
|
11435
|
-
return
|
|
11435
|
+
return React.createElement("div", {
|
|
11436
11436
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11437
|
-
}, props.shorthand &&
|
|
11437
|
+
}, props.shorthand && React.createElement("span", {
|
|
11438
11438
|
style: {
|
|
11439
11439
|
alignSelf: 'center',
|
|
11440
11440
|
fontSize: 12
|
|
11441
11441
|
}
|
|
11442
|
-
}, "*", props.shorthand, "*"),
|
|
11442
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11443
11443
|
onSearch: onSearch,
|
|
11444
11444
|
value: props.value,
|
|
11445
11445
|
options: options.map(function (e) {
|
|
@@ -11452,7 +11452,7 @@ function ItemNameInput(props) {
|
|
|
11452
11452
|
return rootElement || document.body;
|
|
11453
11453
|
},
|
|
11454
11454
|
onSelect: onChangeAutoComplete
|
|
11455
|
-
},
|
|
11455
|
+
}, React.createElement(Input, {
|
|
11456
11456
|
style: {
|
|
11457
11457
|
height: '100%',
|
|
11458
11458
|
border: 'none'
|
|
@@ -11564,9 +11564,9 @@ function ItemCodeInput(props) {
|
|
|
11564
11564
|
return _ref2.apply(this, arguments);
|
|
11565
11565
|
};
|
|
11566
11566
|
}(), [options, controller]);
|
|
11567
|
-
return
|
|
11567
|
+
return React.createElement("div", {
|
|
11568
11568
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11569
|
-
},
|
|
11569
|
+
}, React.createElement(AutoComplete$1, {
|
|
11570
11570
|
onSearch: onSearch,
|
|
11571
11571
|
value: props.value,
|
|
11572
11572
|
options: options.map(function (e) {
|
|
@@ -11578,7 +11578,7 @@ function ItemCodeInput(props) {
|
|
|
11578
11578
|
return rootElement || document.body;
|
|
11579
11579
|
},
|
|
11580
11580
|
onSelect: onChangeAutoComplete
|
|
11581
|
-
},
|
|
11581
|
+
}, React.createElement(Input, {
|
|
11582
11582
|
style: {
|
|
11583
11583
|
height: '100%',
|
|
11584
11584
|
border: 'none'
|
|
@@ -12759,7 +12759,7 @@ function Drag$1(props) {
|
|
|
12759
12759
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12760
12760
|
return e.$index === record.$index;
|
|
12761
12761
|
})[0];
|
|
12762
|
-
mounting(
|
|
12762
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12763
12763
|
rowList.forEach(function (e) {
|
|
12764
12764
|
e.addEventListener('mousemove', onMousemove);
|
|
12765
12765
|
});
|
|
@@ -12920,7 +12920,7 @@ function Drag$1(props) {
|
|
|
12920
12920
|
|
|
12921
12921
|
|
|
12922
12922
|
function insert() {
|
|
12923
|
-
mounting(
|
|
12923
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12924
12924
|
controller.run( /*#__PURE__*/function () {
|
|
12925
12925
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12926
12926
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12999,7 +12999,7 @@ function Drag$1(props) {
|
|
|
12999
12999
|
}
|
|
13000
13000
|
}, [controller, record, disabled]);
|
|
13001
13001
|
var renderButton = React.useMemo(function () {
|
|
13002
|
-
return
|
|
13002
|
+
return React.createElement(Button, {
|
|
13003
13003
|
type: 'link',
|
|
13004
13004
|
style: {
|
|
13005
13005
|
padding: 0
|
|
@@ -13010,13 +13010,13 @@ function Drag$1(props) {
|
|
|
13010
13010
|
},
|
|
13011
13011
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
13012
13012
|
onMouseOver: controller.saveEditGood
|
|
13013
|
-
},
|
|
13013
|
+
}, React.createElement(Icon, {
|
|
13014
13014
|
component: SvgI001
|
|
13015
13015
|
}));
|
|
13016
13016
|
}, [onMouseDown, controller]);
|
|
13017
13017
|
|
|
13018
13018
|
if (disabled) {
|
|
13019
|
-
return
|
|
13019
|
+
return React.createElement(Popover, {
|
|
13020
13020
|
content: '您还有未编辑完成的商品',
|
|
13021
13021
|
trigger: 'focus'
|
|
13022
13022
|
}, renderButton);
|
|
@@ -13056,13 +13056,13 @@ function DragDiv(props) {
|
|
|
13056
13056
|
window.removeEventListener('mousemove', onMousemove);
|
|
13057
13057
|
};
|
|
13058
13058
|
});
|
|
13059
|
-
return
|
|
13059
|
+
return React.createElement("div", {
|
|
13060
13060
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
13061
13061
|
style: {
|
|
13062
13062
|
top: y,
|
|
13063
13063
|
left: x
|
|
13064
13064
|
}
|
|
13065
|
-
},
|
|
13065
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
13066
13066
|
}
|
|
13067
13067
|
|
|
13068
13068
|
function Expand(props) {
|
|
@@ -13079,7 +13079,7 @@ function Expand(props) {
|
|
|
13079
13079
|
|
|
13080
13080
|
if ((_goodsMap$get = goodsMap.get(record.$index)) === null || _goodsMap$get === void 0 ? void 0 : _goodsMap$get.children) {
|
|
13081
13081
|
if (expandedRowKeys.includes(record.$index)) {
|
|
13082
|
-
return
|
|
13082
|
+
return React.createElement(Button$1, {
|
|
13083
13083
|
type: 'text',
|
|
13084
13084
|
style: {
|
|
13085
13085
|
width: 'auto',
|
|
@@ -13112,7 +13112,7 @@ function Expand(props) {
|
|
|
13112
13112
|
}())
|
|
13113
13113
|
}, "\u6536\u8D77");
|
|
13114
13114
|
} else {
|
|
13115
|
-
return
|
|
13115
|
+
return React.createElement(Button$1, {
|
|
13116
13116
|
type: 'text',
|
|
13117
13117
|
style: {
|
|
13118
13118
|
width: 'auto',
|
|
@@ -13144,7 +13144,7 @@ function Expand(props) {
|
|
|
13144
13144
|
}, "\u5C55\u5F00");
|
|
13145
13145
|
}
|
|
13146
13146
|
} else {
|
|
13147
|
-
return
|
|
13147
|
+
return React.createElement(React.Fragment, null);
|
|
13148
13148
|
}
|
|
13149
13149
|
}
|
|
13150
13150
|
|
|
@@ -13279,7 +13279,7 @@ var useColumns = (function (form) {
|
|
|
13279
13279
|
width: 40,
|
|
13280
13280
|
align: 'center',
|
|
13281
13281
|
render: function render(_, record) {
|
|
13282
|
-
return
|
|
13282
|
+
return React.createElement(Drag$1, {
|
|
13283
13283
|
record: record
|
|
13284
13284
|
});
|
|
13285
13285
|
}
|
|
@@ -13289,7 +13289,7 @@ var useColumns = (function (form) {
|
|
|
13289
13289
|
width: 50,
|
|
13290
13290
|
align: 'center',
|
|
13291
13291
|
render: function render(_, record) {
|
|
13292
|
-
return
|
|
13292
|
+
return React.createElement(Expand, {
|
|
13293
13293
|
record: record
|
|
13294
13294
|
});
|
|
13295
13295
|
}
|
|
@@ -13299,7 +13299,7 @@ var useColumns = (function (form) {
|
|
|
13299
13299
|
dataIndex: 'serialNo',
|
|
13300
13300
|
width: 50,
|
|
13301
13301
|
render: function render(e) {
|
|
13302
|
-
return
|
|
13302
|
+
return React.createElement("span", {
|
|
13303
13303
|
style: {
|
|
13304
13304
|
padding: '0 10px'
|
|
13305
13305
|
}
|
|
@@ -13311,13 +13311,13 @@ var useColumns = (function (form) {
|
|
|
13311
13311
|
width: 119,
|
|
13312
13312
|
render: function render(_, record) {
|
|
13313
13313
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13314
|
-
return
|
|
13314
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13315
13315
|
initialValue: editGood.itemCode,
|
|
13316
13316
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13317
13317
|
pattern: /^.{1,19}$/,
|
|
13318
13318
|
message: '商品编码长度不能超过19位'
|
|
13319
13319
|
}])
|
|
13320
|
-
})(
|
|
13320
|
+
})(React.createElement(ItemCodeInput, {
|
|
13321
13321
|
onChange: function () {
|
|
13322
13322
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13323
13323
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13343,7 +13343,7 @@ var useColumns = (function (form) {
|
|
|
13343
13343
|
}()
|
|
13344
13344
|
})));
|
|
13345
13345
|
} else {
|
|
13346
|
-
return
|
|
13346
|
+
return React.createElement("span", {
|
|
13347
13347
|
style: {
|
|
13348
13348
|
padding: '0 10px'
|
|
13349
13349
|
}
|
|
@@ -13351,13 +13351,13 @@ var useColumns = (function (form) {
|
|
|
13351
13351
|
}
|
|
13352
13352
|
}
|
|
13353
13353
|
}, {
|
|
13354
|
-
title:
|
|
13354
|
+
title: React.createElement(TitleText, {
|
|
13355
13355
|
required: true
|
|
13356
13356
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13357
13357
|
key: 'itemName',
|
|
13358
13358
|
render: function render(_, record) {
|
|
13359
13359
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13360
|
-
return
|
|
13360
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13361
13361
|
style: {
|
|
13362
13362
|
display: 'flex'
|
|
13363
13363
|
}
|
|
@@ -13404,17 +13404,17 @@ var useColumns = (function (form) {
|
|
|
13404
13404
|
return validator;
|
|
13405
13405
|
}()
|
|
13406
13406
|
}])
|
|
13407
|
-
})(
|
|
13407
|
+
})(React.createElement(ItemNameInput, {
|
|
13408
13408
|
editGood: editGood,
|
|
13409
13409
|
shorthand: editGood.shorthand,
|
|
13410
13410
|
onChange: function onChange() {
|
|
13411
13411
|
onChangeItemName(controller, form, record);
|
|
13412
13412
|
}
|
|
13413
|
-
})),
|
|
13413
|
+
})), React.createElement("div", {
|
|
13414
13414
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13415
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13415
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13416
13416
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13417
|
-
},
|
|
13417
|
+
}, React.createElement(Button, {
|
|
13418
13418
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13419
13419
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13420
13420
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13439,7 +13439,7 @@ var useColumns = (function (form) {
|
|
|
13439
13439
|
icon: "plus-circle"
|
|
13440
13440
|
})))));
|
|
13441
13441
|
} else {
|
|
13442
|
-
return
|
|
13442
|
+
return React.createElement(MyItemNameDiv, {
|
|
13443
13443
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13444
13444
|
shorthand: record.shorthand,
|
|
13445
13445
|
full: record.itemNameSelf || ''
|
|
@@ -13453,17 +13453,17 @@ var useColumns = (function (form) {
|
|
|
13453
13453
|
}
|
|
13454
13454
|
}
|
|
13455
13455
|
}, {
|
|
13456
|
-
title:
|
|
13456
|
+
title: React.createElement(TitleText, {
|
|
13457
13457
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13458
13458
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13459
13459
|
key: 'itemModelName',
|
|
13460
13460
|
width: 119,
|
|
13461
13461
|
render: function render(_, record) {
|
|
13462
13462
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13463
|
-
return
|
|
13463
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13464
13464
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13465
13465
|
rules: getReplenishRules('itemModelName')
|
|
13466
|
-
})(
|
|
13466
|
+
})(React.createElement(MyInput, {
|
|
13467
13467
|
onChange: function () {
|
|
13468
13468
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13469
13469
|
var key, value;
|
|
@@ -13496,7 +13496,7 @@ var useColumns = (function (form) {
|
|
|
13496
13496
|
}()
|
|
13497
13497
|
})));
|
|
13498
13498
|
} else {
|
|
13499
|
-
return
|
|
13499
|
+
return React.createElement(MyItemNameDiv, {
|
|
13500
13500
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13501
13501
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13502
13502
|
isMyShow: isMyShow
|
|
@@ -13504,17 +13504,17 @@ var useColumns = (function (form) {
|
|
|
13504
13504
|
}
|
|
13505
13505
|
}
|
|
13506
13506
|
}, {
|
|
13507
|
-
title:
|
|
13507
|
+
title: React.createElement(TitleText, {
|
|
13508
13508
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13509
13509
|
}, "\u5355\u4F4D"),
|
|
13510
13510
|
key: 'unit',
|
|
13511
13511
|
width: 70,
|
|
13512
13512
|
render: function render(_, record) {
|
|
13513
13513
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13514
|
-
return
|
|
13514
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13515
13515
|
initialValue: editGood.unit,
|
|
13516
13516
|
rules: getReplenishRules('unit')
|
|
13517
|
-
})(
|
|
13517
|
+
})(React.createElement(AutoComplete$2, {
|
|
13518
13518
|
style: {
|
|
13519
13519
|
width: '100%'
|
|
13520
13520
|
},
|
|
@@ -13552,7 +13552,7 @@ var useColumns = (function (form) {
|
|
|
13552
13552
|
}()
|
|
13553
13553
|
})));
|
|
13554
13554
|
} else {
|
|
13555
|
-
return
|
|
13555
|
+
return React.createElement("span", {
|
|
13556
13556
|
style: {
|
|
13557
13557
|
padding: '0 10px'
|
|
13558
13558
|
}
|
|
@@ -13560,7 +13560,7 @@ var useColumns = (function (form) {
|
|
|
13560
13560
|
}
|
|
13561
13561
|
}
|
|
13562
13562
|
}, {
|
|
13563
|
-
title:
|
|
13563
|
+
title: React.createElement(TitleText, {
|
|
13564
13564
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13565
13565
|
}, "\u6570\u91CF"),
|
|
13566
13566
|
dataIndex: 'quantity',
|
|
@@ -13569,7 +13569,7 @@ var useColumns = (function (form) {
|
|
|
13569
13569
|
width: 149,
|
|
13570
13570
|
render: function render(value, record) {
|
|
13571
13571
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13572
|
-
return
|
|
13572
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13573
13573
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13574
13574
|
getValueFromEvent: onNumberValueChange,
|
|
13575
13575
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13615,7 +13615,7 @@ var useColumns = (function (form) {
|
|
|
13615
13615
|
return validator;
|
|
13616
13616
|
}()
|
|
13617
13617
|
}])
|
|
13618
|
-
})(
|
|
13618
|
+
})(React.createElement(MyInput, {
|
|
13619
13619
|
style: {
|
|
13620
13620
|
textAlign: 'right'
|
|
13621
13621
|
},
|
|
@@ -13647,7 +13647,7 @@ var useColumns = (function (form) {
|
|
|
13647
13647
|
}()
|
|
13648
13648
|
})));
|
|
13649
13649
|
} else {
|
|
13650
|
-
return
|
|
13650
|
+
return React.createElement("span", {
|
|
13651
13651
|
style: {
|
|
13652
13652
|
padding: '0 10px'
|
|
13653
13653
|
}
|
|
@@ -13655,7 +13655,7 @@ var useColumns = (function (form) {
|
|
|
13655
13655
|
}
|
|
13656
13656
|
}
|
|
13657
13657
|
}, {
|
|
13658
|
-
title:
|
|
13658
|
+
title: React.createElement(TitleText, {
|
|
13659
13659
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13660
13660
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13661
13661
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13664,7 +13664,7 @@ var useColumns = (function (form) {
|
|
|
13664
13664
|
width: 149,
|
|
13665
13665
|
render: function render(value, record) {
|
|
13666
13666
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13667
|
-
return
|
|
13667
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13668
13668
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13669
13669
|
getValueFromEvent: onNumberValueChange,
|
|
13670
13670
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13710,7 +13710,7 @@ var useColumns = (function (form) {
|
|
|
13710
13710
|
return validator;
|
|
13711
13711
|
}()
|
|
13712
13712
|
}])
|
|
13713
|
-
})(
|
|
13713
|
+
})(React.createElement(MyInput, {
|
|
13714
13714
|
style: {
|
|
13715
13715
|
textAlign: 'right'
|
|
13716
13716
|
},
|
|
@@ -13722,7 +13722,7 @@ var useColumns = (function (form) {
|
|
|
13722
13722
|
}
|
|
13723
13723
|
})));
|
|
13724
13724
|
} else {
|
|
13725
|
-
return
|
|
13725
|
+
return React.createElement("span", {
|
|
13726
13726
|
style: {
|
|
13727
13727
|
padding: '0 10px'
|
|
13728
13728
|
}
|
|
@@ -13730,7 +13730,7 @@ var useColumns = (function (form) {
|
|
|
13730
13730
|
}
|
|
13731
13731
|
}
|
|
13732
13732
|
}, {
|
|
13733
|
-
title:
|
|
13733
|
+
title: React.createElement(TitleText, {
|
|
13734
13734
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13735
13735
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13736
13736
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13739,7 +13739,7 @@ var useColumns = (function (form) {
|
|
|
13739
13739
|
width: 149,
|
|
13740
13740
|
render: function render(value, record) {
|
|
13741
13741
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13742
|
-
return
|
|
13742
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13743
13743
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13744
13744
|
getValueFromEvent: onNumberValueChange,
|
|
13745
13745
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13785,7 +13785,7 @@ var useColumns = (function (form) {
|
|
|
13785
13785
|
return validator;
|
|
13786
13786
|
}()
|
|
13787
13787
|
}])
|
|
13788
|
-
})(
|
|
13788
|
+
})(React.createElement(MyInput, {
|
|
13789
13789
|
style: {
|
|
13790
13790
|
textAlign: 'right'
|
|
13791
13791
|
},
|
|
@@ -13797,7 +13797,7 @@ var useColumns = (function (form) {
|
|
|
13797
13797
|
}
|
|
13798
13798
|
})));
|
|
13799
13799
|
} else {
|
|
13800
|
-
return
|
|
13800
|
+
return React.createElement("span", {
|
|
13801
13801
|
style: {
|
|
13802
13802
|
padding: '0 10px'
|
|
13803
13803
|
}
|
|
@@ -13805,7 +13805,7 @@ var useColumns = (function (form) {
|
|
|
13805
13805
|
}
|
|
13806
13806
|
}
|
|
13807
13807
|
}, {
|
|
13808
|
-
title:
|
|
13808
|
+
title: React.createElement(TitleText, {
|
|
13809
13809
|
required: true
|
|
13810
13810
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13811
13811
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13814,7 +13814,7 @@ var useColumns = (function (form) {
|
|
|
13814
13814
|
align: 'right',
|
|
13815
13815
|
render: function render(value, record) {
|
|
13816
13816
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13817
|
-
return
|
|
13817
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13818
13818
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13819
13819
|
getValueFromEvent: onNumberValueChange,
|
|
13820
13820
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13874,7 +13874,7 @@ var useColumns = (function (form) {
|
|
|
13874
13874
|
return validator;
|
|
13875
13875
|
}()
|
|
13876
13876
|
}])
|
|
13877
|
-
})(
|
|
13877
|
+
})(React.createElement(MyInput, {
|
|
13878
13878
|
style: {
|
|
13879
13879
|
textAlign: 'right'
|
|
13880
13880
|
},
|
|
@@ -13885,7 +13885,7 @@ var useColumns = (function (form) {
|
|
|
13885
13885
|
}
|
|
13886
13886
|
})));
|
|
13887
13887
|
} else {
|
|
13888
|
-
return
|
|
13888
|
+
return React.createElement("span", {
|
|
13889
13889
|
style: {
|
|
13890
13890
|
padding: '0 10px'
|
|
13891
13891
|
}
|
|
@@ -13893,7 +13893,7 @@ var useColumns = (function (form) {
|
|
|
13893
13893
|
}
|
|
13894
13894
|
}
|
|
13895
13895
|
}, {
|
|
13896
|
-
title:
|
|
13896
|
+
title: React.createElement(TitleText, {
|
|
13897
13897
|
required: true
|
|
13898
13898
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13899
13899
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13902,7 +13902,7 @@ var useColumns = (function (form) {
|
|
|
13902
13902
|
width: 119,
|
|
13903
13903
|
render: function render(value, record) {
|
|
13904
13904
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13905
|
-
return
|
|
13905
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13906
13906
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13907
13907
|
getValueFromEvent: onNumberValueChange,
|
|
13908
13908
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13937,7 +13937,7 @@ var useColumns = (function (form) {
|
|
|
13937
13937
|
return validator;
|
|
13938
13938
|
}()
|
|
13939
13939
|
}])
|
|
13940
|
-
})(
|
|
13940
|
+
})(React.createElement(MyInput, {
|
|
13941
13941
|
style: {
|
|
13942
13942
|
textAlign: 'right'
|
|
13943
13943
|
},
|
|
@@ -13948,7 +13948,7 @@ var useColumns = (function (form) {
|
|
|
13948
13948
|
}
|
|
13949
13949
|
})));
|
|
13950
13950
|
} else {
|
|
13951
|
-
return
|
|
13951
|
+
return React.createElement("span", {
|
|
13952
13952
|
style: {
|
|
13953
13953
|
padding: '0 10px'
|
|
13954
13954
|
}
|
|
@@ -13956,7 +13956,7 @@ var useColumns = (function (form) {
|
|
|
13956
13956
|
}
|
|
13957
13957
|
}
|
|
13958
13958
|
}, {
|
|
13959
|
-
title:
|
|
13959
|
+
title: React.createElement(TitleText, {
|
|
13960
13960
|
required: true
|
|
13961
13961
|
}, "\u7A0E\u7387"),
|
|
13962
13962
|
dataIndex: 'taxRate',
|
|
@@ -13965,7 +13965,7 @@ var useColumns = (function (form) {
|
|
|
13965
13965
|
width: 75,
|
|
13966
13966
|
render: function render(value, record) {
|
|
13967
13967
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !(model === 'prefab' && calculateType === '3')) {
|
|
13968
|
-
return
|
|
13968
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13969
13969
|
initialValue: editGood.taxRate,
|
|
13970
13970
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13971
13971
|
required: true,
|
|
@@ -13974,7 +13974,7 @@ var useColumns = (function (form) {
|
|
|
13974
13974
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13975
13975
|
message: '请选择正确税率'
|
|
13976
13976
|
}])
|
|
13977
|
-
})(
|
|
13977
|
+
})(React.createElement(Select, {
|
|
13978
13978
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13979
13979
|
dropdownMenuStyle: {
|
|
13980
13980
|
textAlign: "right"
|
|
@@ -13991,13 +13991,13 @@ var useColumns = (function (form) {
|
|
|
13991
13991
|
onChangeTaxRate(controller, form, record);
|
|
13992
13992
|
}
|
|
13993
13993
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
13994
|
-
return
|
|
13994
|
+
return React.createElement(Select.Option, {
|
|
13995
13995
|
key: i,
|
|
13996
13996
|
value: e
|
|
13997
13997
|
}, e, "%");
|
|
13998
13998
|
}))));
|
|
13999
13999
|
} else {
|
|
14000
|
-
return
|
|
14000
|
+
return React.createElement("span", {
|
|
14001
14001
|
style: {
|
|
14002
14002
|
padding: '0 10px'
|
|
14003
14003
|
}
|
|
@@ -14005,7 +14005,7 @@ var useColumns = (function (form) {
|
|
|
14005
14005
|
}
|
|
14006
14006
|
}
|
|
14007
14007
|
}, {
|
|
14008
|
-
title:
|
|
14008
|
+
title: React.createElement(TitleText, {
|
|
14009
14009
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
14010
14010
|
}, "\u7A0E\u989D"),
|
|
14011
14011
|
dataIndex: 'taxAmount',
|
|
@@ -14017,11 +14017,11 @@ var useColumns = (function (form) {
|
|
|
14017
14017
|
return getFieldDecorator('taxAmount', {
|
|
14018
14018
|
initialValue: editGood.taxAmount,
|
|
14019
14019
|
rules: getReplenishRules('taxAmount')
|
|
14020
|
-
})(
|
|
14020
|
+
})(React.createElement(MyDiv, {
|
|
14021
14021
|
loading: isCipher(changeField, 'taxAmount')
|
|
14022
14022
|
}));
|
|
14023
14023
|
} else {
|
|
14024
|
-
return
|
|
14024
|
+
return React.createElement("span", {
|
|
14025
14025
|
style: {
|
|
14026
14026
|
padding: '0 10px'
|
|
14027
14027
|
}
|
|
@@ -14036,42 +14036,42 @@ var useColumns = (function (form) {
|
|
|
14036
14036
|
render: function render(e) {
|
|
14037
14037
|
switch (e) {
|
|
14038
14038
|
case LineAttributeType$1.折扣行:
|
|
14039
|
-
return
|
|
14039
|
+
return React.createElement("span", {
|
|
14040
14040
|
style: {
|
|
14041
14041
|
padding: '0 10px'
|
|
14042
14042
|
}
|
|
14043
14043
|
}, "\u6298\u6263\u884C");
|
|
14044
14044
|
|
|
14045
14045
|
case LineAttributeType$1.被折扣行:
|
|
14046
|
-
return
|
|
14046
|
+
return React.createElement("span", {
|
|
14047
14047
|
style: {
|
|
14048
14048
|
padding: '0 10px'
|
|
14049
14049
|
}
|
|
14050
14050
|
}, "\u88AB\u6298\u6263\u884C");
|
|
14051
14051
|
|
|
14052
14052
|
case LineAttributeType$1.赠品行:
|
|
14053
|
-
return
|
|
14053
|
+
return React.createElement("span", {
|
|
14054
14054
|
style: {
|
|
14055
14055
|
padding: '0 10px'
|
|
14056
14056
|
}
|
|
14057
14057
|
}, "\u8D60\u54C1\u884C");
|
|
14058
14058
|
|
|
14059
14059
|
case LineAttributeType$1.折让行:
|
|
14060
|
-
return
|
|
14060
|
+
return React.createElement("span", {
|
|
14061
14061
|
style: {
|
|
14062
14062
|
padding: '0 10px'
|
|
14063
14063
|
}
|
|
14064
14064
|
}, "\u6298\u8BA9\u884C");
|
|
14065
14065
|
|
|
14066
14066
|
case LineAttributeType$1.正常:
|
|
14067
|
-
return
|
|
14067
|
+
return React.createElement("span", {
|
|
14068
14068
|
style: {
|
|
14069
14069
|
padding: '0 10px'
|
|
14070
14070
|
}
|
|
14071
14071
|
}, "\u6B63\u5E38\u884C");
|
|
14072
14072
|
|
|
14073
14073
|
default:
|
|
14074
|
-
return
|
|
14074
|
+
return React.createElement("span", {
|
|
14075
14075
|
style: {
|
|
14076
14076
|
padding: '0 10px'
|
|
14077
14077
|
}
|
|
@@ -14085,7 +14085,7 @@ var useColumns = (function (form) {
|
|
|
14085
14085
|
width: 130,
|
|
14086
14086
|
fixed: 'right',
|
|
14087
14087
|
render: function render(_value, record) {
|
|
14088
|
-
return
|
|
14088
|
+
return React.createElement(RowMenu, {
|
|
14089
14089
|
key: record.lineAttribute,
|
|
14090
14090
|
goods: record
|
|
14091
14091
|
});
|
|
@@ -14145,13 +14145,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
14145
14145
|
key: "render",
|
|
14146
14146
|
value: function render() {
|
|
14147
14147
|
if (this.props.loading) {
|
|
14148
|
-
return
|
|
14148
|
+
return React.createElement(Spin, {
|
|
14149
14149
|
size: "small"
|
|
14150
|
-
},
|
|
14150
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14151
14151
|
autoComplete: "off"
|
|
14152
14152
|
})));
|
|
14153
14153
|
} else {
|
|
14154
|
-
return
|
|
14154
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14155
14155
|
autoComplete: "off"
|
|
14156
14156
|
}));
|
|
14157
14157
|
}
|
|
@@ -14176,15 +14176,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
14176
14176
|
key: "render",
|
|
14177
14177
|
value: function render() {
|
|
14178
14178
|
if (this.props.loading) {
|
|
14179
|
-
return
|
|
14179
|
+
return React.createElement(Spin, {
|
|
14180
14180
|
size: "small"
|
|
14181
|
-
},
|
|
14181
|
+
}, React.createElement("span", {
|
|
14182
14182
|
style: {
|
|
14183
14183
|
padding: '0 10px'
|
|
14184
14184
|
}
|
|
14185
14185
|
}, this.props.value));
|
|
14186
14186
|
} else {
|
|
14187
|
-
return
|
|
14187
|
+
return React.createElement("span", {
|
|
14188
14188
|
style: {
|
|
14189
14189
|
padding: '0 10px'
|
|
14190
14190
|
}
|
|
@@ -14217,9 +14217,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14217
14217
|
|
|
14218
14218
|
if (isMyShow) {
|
|
14219
14219
|
if (valueT) {
|
|
14220
|
-
return
|
|
14220
|
+
return React.createElement(Tooltip, {
|
|
14221
14221
|
title: valueT
|
|
14222
|
-
},
|
|
14222
|
+
}, React.createElement("span", {
|
|
14223
14223
|
style: {
|
|
14224
14224
|
padding: '0 10px',
|
|
14225
14225
|
color: '#0074ff',
|
|
@@ -14230,9 +14230,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14230
14230
|
}
|
|
14231
14231
|
}, valueT));
|
|
14232
14232
|
} else {
|
|
14233
|
-
return
|
|
14233
|
+
return React.createElement(Tooltip, {
|
|
14234
14234
|
title: valueF
|
|
14235
|
-
},
|
|
14235
|
+
}, React.createElement("span", {
|
|
14236
14236
|
style: {
|
|
14237
14237
|
padding: '0 10px',
|
|
14238
14238
|
display: 'block',
|
|
@@ -14244,9 +14244,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14244
14244
|
}
|
|
14245
14245
|
} else {
|
|
14246
14246
|
if (valueF) {
|
|
14247
|
-
return
|
|
14247
|
+
return React.createElement(Tooltip, {
|
|
14248
14248
|
title: valueF
|
|
14249
|
-
},
|
|
14249
|
+
}, React.createElement("span", {
|
|
14250
14250
|
style: {
|
|
14251
14251
|
padding: '0 10px',
|
|
14252
14252
|
display: 'block',
|
|
@@ -14256,9 +14256,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14256
14256
|
}
|
|
14257
14257
|
}, valueF));
|
|
14258
14258
|
} else {
|
|
14259
|
-
return
|
|
14259
|
+
return React.createElement(Tooltip, {
|
|
14260
14260
|
title: valueT
|
|
14261
|
-
},
|
|
14261
|
+
}, React.createElement("span", {
|
|
14262
14262
|
style: {
|
|
14263
14263
|
padding: '0 10px',
|
|
14264
14264
|
color: '#0074ff',
|
|
@@ -14285,7 +14285,7 @@ function formatSearch(value, search) {
|
|
|
14285
14285
|
return dcoding(e);
|
|
14286
14286
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14287
14287
|
|
|
14288
|
-
return
|
|
14288
|
+
return React.createElement("span", {
|
|
14289
14289
|
dangerouslySetInnerHTML: {
|
|
14290
14290
|
__html: __html
|
|
14291
14291
|
}
|
|
@@ -14740,7 +14740,7 @@ var useRowSelection = (function () {
|
|
|
14740
14740
|
};
|
|
14741
14741
|
}(), [controller]);
|
|
14742
14742
|
var columnTitle = React.useMemo(function () {
|
|
14743
|
-
return
|
|
14743
|
+
return React.createElement(Checkbox, {
|
|
14744
14744
|
onChange: onClickSelectAll,
|
|
14745
14745
|
indeterminate: indeterminate,
|
|
14746
14746
|
checked: isAll
|
|
@@ -14950,16 +14950,16 @@ var useEndowCodeButton = (function () {
|
|
|
14950
14950
|
}, _callee2);
|
|
14951
14951
|
})), [controller]);
|
|
14952
14952
|
var menuItem = React.useMemo(function () {
|
|
14953
|
-
if (model === 'readOnly') return
|
|
14954
|
-
return
|
|
14953
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14954
|
+
return React.createElement(Menu.Item, {
|
|
14955
14955
|
key: "2",
|
|
14956
14956
|
onClick: onClick,
|
|
14957
14957
|
disabled: disabled
|
|
14958
14958
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14959
14959
|
}, [onClick, disabled, model]);
|
|
14960
14960
|
var button = React.useMemo(function () {
|
|
14961
|
-
if (model === 'readOnly') return
|
|
14962
|
-
return
|
|
14961
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14962
|
+
return React.createElement(Button, {
|
|
14963
14963
|
onClick: onClick,
|
|
14964
14964
|
disabled: disabled
|
|
14965
14965
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -15025,19 +15025,19 @@ var useDelRowButton = (function () {
|
|
|
15025
15025
|
}())();
|
|
15026
15026
|
}, [controller]);
|
|
15027
15027
|
var menuItem = React.useMemo(function () {
|
|
15028
|
-
if (model === 'prefab') return
|
|
15029
|
-
if (model === 'readOnly') return
|
|
15030
|
-
return
|
|
15028
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15029
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15030
|
+
return React.createElement(Menu.Item, {
|
|
15031
15031
|
key: "1",
|
|
15032
15032
|
onClick: onClick,
|
|
15033
15033
|
disabled: disabled
|
|
15034
15034
|
}, " \u5220\u9664\u884C ");
|
|
15035
15035
|
}, [model, onClick, disabled]);
|
|
15036
15036
|
var button = React.useMemo(function () {
|
|
15037
|
-
if (isRemRow === false) return
|
|
15038
|
-
if (model === 'prefab') return
|
|
15039
|
-
if (model === 'readOnly') return
|
|
15040
|
-
return
|
|
15037
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
15038
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15039
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15040
|
+
return React.createElement(Button, {
|
|
15041
15041
|
onClick: onClick,
|
|
15042
15042
|
disabled: disabled
|
|
15043
15043
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -15232,14 +15232,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
15232
15232
|
}, _callee3);
|
|
15233
15233
|
})), [controller]);
|
|
15234
15234
|
var menuItem = React.useMemo(function () {
|
|
15235
|
-
return model === 'prefab' ?
|
|
15235
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
15236
15236
|
key: "0",
|
|
15237
15237
|
onClick: onClick,
|
|
15238
15238
|
disabled: disabled
|
|
15239
15239
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
15240
15240
|
}, [isAddDiscount, disabled, onClick]);
|
|
15241
15241
|
var drawer = React.useMemo(function () {
|
|
15242
|
-
return
|
|
15242
|
+
return React.createElement(Drawer, {
|
|
15243
15243
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
15244
15244
|
width: 540,
|
|
15245
15245
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15247,7 +15247,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15247
15247
|
destroyOnClose: true,
|
|
15248
15248
|
onClose: onClose,
|
|
15249
15249
|
visible: visible
|
|
15250
|
-
},
|
|
15250
|
+
}, React.createElement(DrawerBody, null));
|
|
15251
15251
|
}, [visible, onClose]);
|
|
15252
15252
|
return {
|
|
15253
15253
|
menuItem: menuItem,
|
|
@@ -15364,13 +15364,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15364
15364
|
});
|
|
15365
15365
|
});
|
|
15366
15366
|
}, 300), [form, lineAmountSum]);
|
|
15367
|
-
return
|
|
15367
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15368
15368
|
className: "add-discount-row-body"
|
|
15369
|
-
},
|
|
15369
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15370
15370
|
type: "danger"
|
|
15371
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15371
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15372
15372
|
type: "danger"
|
|
15373
|
-
}, lineAmountSum.toFixed(2))),
|
|
15373
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15374
15374
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15375
15375
|
}, getFieldDecorator('discount', {
|
|
15376
15376
|
rules: [{
|
|
@@ -15400,11 +15400,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15400
15400
|
callback();
|
|
15401
15401
|
}
|
|
15402
15402
|
}]
|
|
15403
|
-
})(
|
|
15403
|
+
})(React.createElement(Input, {
|
|
15404
15404
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15405
15405
|
suffix: "%",
|
|
15406
15406
|
onChange: onChangeDiscount
|
|
15407
|
-
}))),
|
|
15407
|
+
}))), React.createElement(Form.Item, {
|
|
15408
15408
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15409
15409
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15410
15410
|
rules: [{
|
|
@@ -15434,19 +15434,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15434
15434
|
callback();
|
|
15435
15435
|
}
|
|
15436
15436
|
}]
|
|
15437
|
-
})(
|
|
15437
|
+
})(React.createElement(Input, {
|
|
15438
15438
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15439
15439
|
suffix: "\xA5",
|
|
15440
15440
|
onChange: onChangeDiscolineAmountunt
|
|
15441
|
-
})))),
|
|
15441
|
+
})))), React.createElement("div", {
|
|
15442
15442
|
className: "add-discount-row-footer"
|
|
15443
|
-
},
|
|
15443
|
+
}, React.createElement(Button, {
|
|
15444
15444
|
block: true,
|
|
15445
15445
|
style: {
|
|
15446
15446
|
marginBottom: 12
|
|
15447
15447
|
},
|
|
15448
15448
|
onClick: onClose
|
|
15449
|
-
}, "\u53D6\u6D88"),
|
|
15449
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15450
15450
|
type: "primary",
|
|
15451
15451
|
block: true,
|
|
15452
15452
|
onClick: onClickSave
|
|
@@ -15543,13 +15543,13 @@ function useMergeDetails() {
|
|
|
15543
15543
|
}];
|
|
15544
15544
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15545
15545
|
var button = React.useMemo(function () {
|
|
15546
|
-
if (!isMergeDetails) return
|
|
15547
|
-
return
|
|
15546
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15547
|
+
return React.createElement(Dropdown$1, {
|
|
15548
15548
|
menu: {
|
|
15549
15549
|
items: items
|
|
15550
15550
|
},
|
|
15551
15551
|
trigger: ['click']
|
|
15552
|
-
},
|
|
15552
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15553
15553
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15554
15554
|
return {
|
|
15555
15555
|
/** 按钮 */
|
|
@@ -15635,8 +15635,8 @@ function useMergeDiscount() {
|
|
|
15635
15635
|
}, _callee);
|
|
15636
15636
|
})), [controller]);
|
|
15637
15637
|
var button = React.useMemo(function () {
|
|
15638
|
-
if (!isMergeDiscount) return
|
|
15639
|
-
return
|
|
15638
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15639
|
+
return React.createElement(Button, {
|
|
15640
15640
|
onClick: onClick,
|
|
15641
15641
|
disabled: goodsList.length <= 1
|
|
15642
15642
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15814,8 +15814,8 @@ function useSalesDiscount() {
|
|
|
15814
15814
|
}).length <= 0;
|
|
15815
15815
|
}, [goodsList]);
|
|
15816
15816
|
var button = React.useMemo(function () {
|
|
15817
|
-
if (!isSalesDiscount) return
|
|
15818
|
-
return
|
|
15817
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15818
|
+
return React.createElement(Button, {
|
|
15819
15819
|
onClick: onClick,
|
|
15820
15820
|
disabled: disabled
|
|
15821
15821
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -16018,12 +16018,12 @@ function useSalesGifts() {
|
|
|
16018
16018
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
16019
16019
|
var button = React.useMemo(function () {
|
|
16020
16020
|
if (!isSalesGifts) return;
|
|
16021
|
-
return
|
|
16021
|
+
return React.createElement(Dropdown$1, {
|
|
16022
16022
|
menu: {
|
|
16023
16023
|
items: items
|
|
16024
16024
|
},
|
|
16025
16025
|
trigger: ['click']
|
|
16026
|
-
},
|
|
16026
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
16027
16027
|
}, [items, isSalesGifts]);
|
|
16028
16028
|
return {
|
|
16029
16029
|
/** 按钮 */
|
|
@@ -16061,7 +16061,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
16061
16061
|
_createClass(GoodsList, [{
|
|
16062
16062
|
key: "render",
|
|
16063
16063
|
value: function render() {
|
|
16064
|
-
return
|
|
16064
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
16065
16065
|
}
|
|
16066
16066
|
}]);
|
|
16067
16067
|
|
|
@@ -16263,22 +16263,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16263
16263
|
};
|
|
16264
16264
|
}())();
|
|
16265
16265
|
}, [controller, props.isSwitchTax]);
|
|
16266
|
-
return
|
|
16266
|
+
return React.createElement("div", {
|
|
16267
16267
|
className: "kts-invoice-operate-goods-list",
|
|
16268
16268
|
onClick: function onClick(e) {
|
|
16269
16269
|
e.stopPropagation();
|
|
16270
16270
|
}
|
|
16271
|
-
},
|
|
16271
|
+
}, React.createElement("div", {
|
|
16272
16272
|
className: "kts-invoice-operate-goods-list-able"
|
|
16273
|
-
},
|
|
16273
|
+
}, React.createElement("div", {
|
|
16274
16274
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16275
|
-
},
|
|
16275
|
+
}, React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, React.createElement(Search, null)), React.createElement("div", {
|
|
16276
16276
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16277
|
-
}, props.menuExpansion,
|
|
16277
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16278
16278
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16279
16279
|
'kts-invoice-operate-prefab': isprefab
|
|
16280
16280
|
})
|
|
16281
|
-
},
|
|
16281
|
+
}, React.createElement(TableVirtual, {
|
|
16282
16282
|
bordered: true,
|
|
16283
16283
|
size: "small",
|
|
16284
16284
|
rowKey: "$index",
|
|
@@ -16301,7 +16301,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16301
16301
|
}
|
|
16302
16302
|
};
|
|
16303
16303
|
}
|
|
16304
|
-
})),
|
|
16304
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16305
16305
|
});
|
|
16306
16306
|
|
|
16307
16307
|
var css_248z$c = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
@@ -16326,7 +16326,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16326
16326
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16327
16327
|
|
|
16328
16328
|
_this.render = function () {
|
|
16329
|
-
return
|
|
16329
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16330
16330
|
};
|
|
16331
16331
|
|
|
16332
16332
|
return _this;
|
|
@@ -16357,7 +16357,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16357
16357
|
return [{
|
|
16358
16358
|
id: 'sellerName',
|
|
16359
16359
|
label: '销售方名称',
|
|
16360
|
-
node:
|
|
16360
|
+
node: React.createElement(Input, {
|
|
16361
16361
|
readOnly: model === 'prefab',
|
|
16362
16362
|
size: "small"
|
|
16363
16363
|
}),
|
|
@@ -16370,7 +16370,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16370
16370
|
}, {
|
|
16371
16371
|
id: 'sellerNo',
|
|
16372
16372
|
label: '销售方纳税人识别号',
|
|
16373
|
-
node:
|
|
16373
|
+
node: React.createElement(Input, {
|
|
16374
16374
|
readOnly: model === 'prefab',
|
|
16375
16375
|
size: "small"
|
|
16376
16376
|
}),
|
|
@@ -16383,7 +16383,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16383
16383
|
}, {
|
|
16384
16384
|
id: 'sellerAddress',
|
|
16385
16385
|
label: '销售方地址及电话',
|
|
16386
|
-
node:
|
|
16386
|
+
node: React.createElement(Input, {
|
|
16387
16387
|
readOnly: model === 'prefab',
|
|
16388
16388
|
size: "small"
|
|
16389
16389
|
}),
|
|
@@ -16396,7 +16396,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16396
16396
|
}, {
|
|
16397
16397
|
id: 'sellerBank',
|
|
16398
16398
|
label: '销售方开户行及账号',
|
|
16399
|
-
node:
|
|
16399
|
+
node: React.createElement(Input, {
|
|
16400
16400
|
readOnly: model === 'prefab',
|
|
16401
16401
|
size: "small"
|
|
16402
16402
|
}),
|
|
@@ -16422,31 +16422,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16422
16422
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16423
16423
|
}
|
|
16424
16424
|
}, [props.formRender]);
|
|
16425
|
-
return
|
|
16425
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16426
16426
|
className: "kts-invoice-operate-seller"
|
|
16427
|
-
},
|
|
16427
|
+
}, React.createElement("div", {
|
|
16428
16428
|
className: "kts-invoice-operate-seller-message"
|
|
16429
|
-
},
|
|
16429
|
+
}, React.createElement("div", {
|
|
16430
16430
|
className: "kts-invoice-operate-seller-title"
|
|
16431
|
-
},
|
|
16431
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16432
16432
|
className: "kts-invoice-operate-seller-message-list",
|
|
16433
16433
|
size: "small",
|
|
16434
16434
|
column: 1,
|
|
16435
16435
|
bordered: true
|
|
16436
16436
|
}, formItem.map(function (e, i) {
|
|
16437
|
-
return
|
|
16437
|
+
return React.createElement(Descriptions.Item, {
|
|
16438
16438
|
key: i,
|
|
16439
16439
|
label: e.label
|
|
16440
|
-
},
|
|
16441
|
-
}))),
|
|
16440
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16441
|
+
}))), React.createElement("div", {
|
|
16442
16442
|
className: "kts-invoice-operate-seller-remarks"
|
|
16443
|
-
},
|
|
16443
|
+
}, React.createElement("div", {
|
|
16444
16444
|
className: "kts-invoice-operate-seller-title"
|
|
16445
|
-
},
|
|
16445
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16446
16446
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16447
16447
|
}, getFieldDecorator('remarks', {
|
|
16448
16448
|
initialValue: props.defaultsellerRemarks
|
|
16449
|
-
})(
|
|
16449
|
+
})(React.createElement(TextArea, null))))));
|
|
16450
16450
|
});
|
|
16451
16451
|
|
|
16452
16452
|
var ImportBuyerButton = (function () {
|
|
@@ -16473,7 +16473,7 @@ var ImportBuyerButton = (function () {
|
|
|
16473
16473
|
};
|
|
16474
16474
|
}())();
|
|
16475
16475
|
}, [controller]);
|
|
16476
|
-
return
|
|
16476
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16477
16477
|
type: "link",
|
|
16478
16478
|
icon: "plus-circle",
|
|
16479
16479
|
onClick: onClick
|
|
@@ -16512,29 +16512,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16512
16512
|
var content = React.useMemo(function () {
|
|
16513
16513
|
var _dataSource$recent;
|
|
16514
16514
|
|
|
16515
|
-
return
|
|
16515
|
+
return React.createElement("div", {
|
|
16516
16516
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16517
|
-
}, loading ?
|
|
16517
|
+
}, loading ? React.createElement("div", {
|
|
16518
16518
|
style: {
|
|
16519
16519
|
textAlign: 'center'
|
|
16520
16520
|
}
|
|
16521
|
-
},
|
|
16521
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16522
16522
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16523
16523
|
style: {
|
|
16524
16524
|
padding: '14px 10px'
|
|
16525
16525
|
}
|
|
16526
|
-
},
|
|
16526
|
+
}, React.createElement("label", {
|
|
16527
16527
|
style: {
|
|
16528
16528
|
marginBottom: 10
|
|
16529
16529
|
}
|
|
16530
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16530
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16531
16531
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16532
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16532
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16533
16533
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16534
16534
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16535
16535
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16536
16536
|
|
|
16537
|
-
return
|
|
16537
|
+
return React.createElement("li", {
|
|
16538
16538
|
key: i,
|
|
16539
16539
|
onClick: function onClick() {
|
|
16540
16540
|
onClickItem(e);
|
|
@@ -16542,37 +16542,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16542
16542
|
style: {
|
|
16543
16543
|
marginBottom: interval(i, (_dataSource$recent$le = (_dataSource$recent2 = dataSource.recent) === null || _dataSource$recent2 === void 0 ? void 0 : _dataSource$recent2.length) !== null && _dataSource$recent$le !== void 0 ? _dataSource$recent$le : 0)
|
|
16544
16544
|
}
|
|
16545
|
-
},
|
|
16546
|
-
}))),
|
|
16545
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16546
|
+
}))), React.createElement(Divider, {
|
|
16547
16547
|
style: {
|
|
16548
16548
|
margin: "0 6px"
|
|
16549
16549
|
}
|
|
16550
|
-
}),
|
|
16550
|
+
}), React.createElement("div", {
|
|
16551
16551
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16552
16552
|
style: {
|
|
16553
16553
|
padding: '14px 10px 4px'
|
|
16554
16554
|
}
|
|
16555
|
-
},
|
|
16555
|
+
}, React.createElement("label", {
|
|
16556
16556
|
style: {
|
|
16557
16557
|
padding: '0 10px'
|
|
16558
16558
|
}
|
|
16559
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16559
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16560
16560
|
style: {
|
|
16561
16561
|
maxHeight: 200,
|
|
16562
16562
|
overflow: "auto"
|
|
16563
16563
|
}
|
|
16564
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16564
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16565
16565
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16566
16566
|
}) : dataSource.list.map(function (e, i) {
|
|
16567
|
-
return
|
|
16567
|
+
return React.createElement("ul", {
|
|
16568
16568
|
key: i,
|
|
16569
16569
|
onClick: function onClick() {
|
|
16570
16570
|
onClickItem(e);
|
|
16571
16571
|
},
|
|
16572
16572
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16573
|
-
},
|
|
16573
|
+
}, React.createElement("li", {
|
|
16574
16574
|
title: e.buyerName
|
|
16575
|
-
}, e.buyerName),
|
|
16575
|
+
}, e.buyerName), React.createElement("li", {
|
|
16576
16576
|
title: e.buyerNo
|
|
16577
16577
|
}, e.buyerNo));
|
|
16578
16578
|
})))));
|
|
@@ -16613,7 +16613,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16613
16613
|
}, [visible, props.value]);
|
|
16614
16614
|
|
|
16615
16615
|
if (model === 'prefab' || !autoContainer) {
|
|
16616
|
-
return
|
|
16616
|
+
return React.createElement(Input, {
|
|
16617
16617
|
size: "small",
|
|
16618
16618
|
autoComplete: "off",
|
|
16619
16619
|
value: props.value,
|
|
@@ -16624,14 +16624,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16624
16624
|
});
|
|
16625
16625
|
}
|
|
16626
16626
|
|
|
16627
|
-
return
|
|
16627
|
+
return React.createElement(Popover$1, {
|
|
16628
16628
|
onVisibleChange: setVisible,
|
|
16629
16629
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16630
16630
|
placement: "bottomLeft",
|
|
16631
16631
|
trigger: "click",
|
|
16632
16632
|
visible: visible,
|
|
16633
16633
|
content: content
|
|
16634
|
-
},
|
|
16634
|
+
}, React.createElement(Input, {
|
|
16635
16635
|
size: "small",
|
|
16636
16636
|
autoComplete: "off",
|
|
16637
16637
|
value: props.value,
|
|
@@ -16709,7 +16709,7 @@ function useDataSource() {
|
|
|
16709
16709
|
}
|
|
16710
16710
|
|
|
16711
16711
|
function MyTag(props) {
|
|
16712
|
-
return
|
|
16712
|
+
return React.createElement("span", {
|
|
16713
16713
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16714
16714
|
title: props.children
|
|
16715
16715
|
}, props.children);
|
|
@@ -16745,7 +16745,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16745
16745
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16746
16746
|
|
|
16747
16747
|
_this.render = function () {
|
|
16748
|
-
return
|
|
16748
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16749
16749
|
};
|
|
16750
16750
|
|
|
16751
16751
|
return _this;
|
|
@@ -16776,7 +16776,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16776
16776
|
return [{
|
|
16777
16777
|
id: 'buyerName',
|
|
16778
16778
|
label: '购买方名称',
|
|
16779
|
-
node:
|
|
16779
|
+
node: React.createElement(Input, {
|
|
16780
16780
|
size: "small",
|
|
16781
16781
|
autoComplete: "off",
|
|
16782
16782
|
readOnly: model === 'prefab'
|
|
@@ -16790,7 +16790,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16790
16790
|
}, {
|
|
16791
16791
|
id: 'buyerNo',
|
|
16792
16792
|
label: '购买方纳税人识别号',
|
|
16793
|
-
node:
|
|
16793
|
+
node: React.createElement(Input, {
|
|
16794
16794
|
size: "small",
|
|
16795
16795
|
autoComplete: "off",
|
|
16796
16796
|
readOnly: model === 'prefab'
|
|
@@ -16804,7 +16804,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16804
16804
|
}, {
|
|
16805
16805
|
id: 'buyerAddress',
|
|
16806
16806
|
label: '购买方地址及电话',
|
|
16807
|
-
node:
|
|
16807
|
+
node: React.createElement(Input, {
|
|
16808
16808
|
size: "small",
|
|
16809
16809
|
autoComplete: "off",
|
|
16810
16810
|
readOnly: model === 'prefab'
|
|
@@ -16818,7 +16818,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16818
16818
|
}, {
|
|
16819
16819
|
id: 'buyerBank',
|
|
16820
16820
|
label: '购买方开户行及账号',
|
|
16821
|
-
node:
|
|
16821
|
+
node: React.createElement(Input, {
|
|
16822
16822
|
size: "small",
|
|
16823
16823
|
autoComplete: "off",
|
|
16824
16824
|
readOnly: model === 'prefab'
|
|
@@ -16840,7 +16840,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16840
16840
|
if (e.options.rules.some(function (e) {
|
|
16841
16841
|
return e.required;
|
|
16842
16842
|
})) {
|
|
16843
|
-
return
|
|
16843
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16844
16844
|
type: "danger"
|
|
16845
16845
|
}, "*"), e.label);
|
|
16846
16846
|
} else {
|
|
@@ -16850,29 +16850,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16850
16850
|
return e.label;
|
|
16851
16851
|
}
|
|
16852
16852
|
}, []);
|
|
16853
|
-
return
|
|
16853
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16854
16854
|
className: "kts-invoice-operate-buyer"
|
|
16855
|
-
},
|
|
16855
|
+
}, React.createElement("div", {
|
|
16856
16856
|
className: "kts-invoice-operate-buyer-message"
|
|
16857
|
-
},
|
|
16857
|
+
}, React.createElement("div", {
|
|
16858
16858
|
className: "kts-invoice-operate-buyer-title"
|
|
16859
|
-
},
|
|
16859
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16860
16860
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16861
|
-
}, model !== 'prefab' &&
|
|
16861
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16862
16862
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16863
16863
|
size: "small",
|
|
16864
16864
|
column: 1,
|
|
16865
16865
|
bordered: true
|
|
16866
16866
|
}, formItem.map(function (item, i) {
|
|
16867
|
-
return
|
|
16867
|
+
return React.createElement(Descriptions.Item, {
|
|
16868
16868
|
key: i,
|
|
16869
16869
|
label: getlabel(item)
|
|
16870
|
-
},
|
|
16871
|
-
}))),
|
|
16870
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16871
|
+
}))), React.createElement("div", {
|
|
16872
16872
|
className: "kts-invoice-operate-buyer-password"
|
|
16873
|
-
},
|
|
16873
|
+
}, React.createElement("div", {
|
|
16874
16874
|
className: "kts-invoice-operate-buyer-title"
|
|
16875
|
-
},
|
|
16875
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16876
16876
|
});
|
|
16877
16877
|
|
|
16878
16878
|
var css_248z$e = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
@@ -16889,21 +16889,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16889
16889
|
}, []); // 注册 form
|
|
16890
16890
|
|
|
16891
16891
|
controller.useForm('sign', form);
|
|
16892
|
-
return
|
|
16892
|
+
return React.createElement("div", {
|
|
16893
16893
|
className: "kts-invoice-operate-sign"
|
|
16894
|
-
},
|
|
16894
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16895
16895
|
label: "\u6536\u6B3E\u4EBA"
|
|
16896
16896
|
}, getFieldDecorator('payee', {
|
|
16897
16897
|
initialValue: props.defaultPayee
|
|
16898
|
-
})(
|
|
16898
|
+
})(React.createElement(Input, {
|
|
16899
16899
|
size: "small"
|
|
16900
|
-
})))),
|
|
16900
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16901
16901
|
label: "\u590D\u6838\u4EBA"
|
|
16902
16902
|
}, getFieldDecorator('reviewer', {
|
|
16903
16903
|
initialValue: props.defaultReviewer
|
|
16904
|
-
})(
|
|
16904
|
+
})(React.createElement(Input, {
|
|
16905
16905
|
size: "small"
|
|
16906
|
-
})))),
|
|
16906
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16907
16907
|
label: "\u5F00\u7968\u4EBA"
|
|
16908
16908
|
}, getFieldDecorator('issuer', {
|
|
16909
16909
|
initialValue: props.defaultIssuer,
|
|
@@ -16911,7 +16911,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16911
16911
|
required: true,
|
|
16912
16912
|
message: '请输入开票人'
|
|
16913
16913
|
}]
|
|
16914
|
-
})(
|
|
16914
|
+
})(React.createElement(Input, {
|
|
16915
16915
|
size: "small"
|
|
16916
16916
|
}))))));
|
|
16917
16917
|
});
|
|
@@ -16940,21 +16940,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16940
16940
|
return '电子发票(增值税专用发票)';
|
|
16941
16941
|
}, [props.title]);
|
|
16942
16942
|
controller.useForm('invoiceHeader', form);
|
|
16943
|
-
return
|
|
16943
|
+
return React.createElement("div", {
|
|
16944
16944
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16945
|
-
},
|
|
16945
|
+
}, React.createElement("div", {
|
|
16946
16946
|
className: "digtal-header-title"
|
|
16947
16947
|
}, title), form.getFieldDecorator('tag', {
|
|
16948
16948
|
initialValue: props.defaultTag
|
|
16949
|
-
})(
|
|
16949
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16950
16950
|
className: "digtal-header-fields"
|
|
16951
16951
|
}, form.getFieldDecorator('no', {
|
|
16952
16952
|
initialValue: props.defaultNo
|
|
16953
|
-
})(
|
|
16953
|
+
})(React.createElement(Field, {
|
|
16954
16954
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16955
16955
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16956
16956
|
initialValue: props.defaultInvoicingDate
|
|
16957
|
-
})(
|
|
16957
|
+
})(React.createElement(Field, {
|
|
16958
16958
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16959
16959
|
}))));
|
|
16960
16960
|
});
|
|
@@ -16979,15 +16979,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16979
16979
|
value = _this$props.value;
|
|
16980
16980
|
|
|
16981
16981
|
if (value) {
|
|
16982
|
-
return
|
|
16982
|
+
return React.createElement("div", {
|
|
16983
16983
|
className: "digtal-header-field"
|
|
16984
|
-
},
|
|
16984
|
+
}, React.createElement("div", {
|
|
16985
16985
|
className: "digtal-header-field-title"
|
|
16986
|
-
}, title),
|
|
16986
|
+
}, title), React.createElement("div", {
|
|
16987
16987
|
className: "digtal-header-field-value"
|
|
16988
16988
|
}, value));
|
|
16989
16989
|
} else {
|
|
16990
|
-
return
|
|
16990
|
+
return React.createElement(React.Fragment, null);
|
|
16991
16991
|
}
|
|
16992
16992
|
}
|
|
16993
16993
|
}]);
|
|
@@ -17009,9 +17009,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
17009
17009
|
_createClass(Tag, [{
|
|
17010
17010
|
key: "render",
|
|
17011
17011
|
value: function render() {
|
|
17012
|
-
return this.props.value ?
|
|
17012
|
+
return this.props.value ? React.createElement("div", {
|
|
17013
17013
|
className: "digtal-header-tag"
|
|
17014
|
-
}, this.props.value) :
|
|
17014
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
17015
17015
|
}
|
|
17016
17016
|
}]);
|
|
17017
17017
|
|
|
@@ -17191,59 +17191,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17191
17191
|
React.useEffect(function () {
|
|
17192
17192
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17193
17193
|
}, [props.isExpand]);
|
|
17194
|
-
return
|
|
17194
|
+
return React.createElement("div", {
|
|
17195
17195
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17196
17196
|
readOnly: readOnly
|
|
17197
17197
|
})
|
|
17198
|
-
},
|
|
17199
|
-
return
|
|
17200
|
-
}), !readOnly &&
|
|
17198
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17199
|
+
return React.createElement("span", null, e);
|
|
17200
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17201
17201
|
className: "digtal-stakeholder-expand-button",
|
|
17202
17202
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17203
17203
|
onClick: onExpand
|
|
17204
|
-
})),
|
|
17204
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
17205
17205
|
style: {
|
|
17206
17206
|
marginTop: 20
|
|
17207
17207
|
},
|
|
17208
17208
|
className: 'natural-person-flag'
|
|
17209
|
-
}, props.isNaturalPerson === true &&
|
|
17209
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
17210
17210
|
colon: false
|
|
17211
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
17211
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
17212
17212
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17213
|
-
})))),
|
|
17213
|
+
})))), React.createElement(Form, {
|
|
17214
17214
|
className: "digtal-stakeholder-form"
|
|
17215
|
-
},
|
|
17215
|
+
}, React.createElement(Row, {
|
|
17216
17216
|
gutter: [16, 0]
|
|
17217
|
-
},
|
|
17217
|
+
}, React.createElement(Col, {
|
|
17218
17218
|
span: 24
|
|
17219
|
-
},
|
|
17219
|
+
}, React.createElement(Form.Item, {
|
|
17220
17220
|
label: "\u540D\u79F0",
|
|
17221
17221
|
colon: false
|
|
17222
17222
|
}, getFieldDecorator('buyerName', {
|
|
17223
17223
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
17224
|
-
})(
|
|
17224
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17225
17225
|
myform: form,
|
|
17226
17226
|
fieldName: 'buyerName',
|
|
17227
17227
|
readOnly: isReadOnly('buyerName'),
|
|
17228
17228
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17229
17229
|
autoComplete: "off",
|
|
17230
|
-
suffix: isShowImportButton === true &&
|
|
17230
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17231
17231
|
type: 'link',
|
|
17232
17232
|
style: {
|
|
17233
17233
|
padding: 0,
|
|
17234
17234
|
width: 20,
|
|
17235
17235
|
height: '100%'
|
|
17236
17236
|
},
|
|
17237
|
-
icon:
|
|
17237
|
+
icon: React.createElement(Icon, {
|
|
17238
17238
|
component: SvgPlus
|
|
17239
17239
|
}),
|
|
17240
17240
|
onClick: function onClick() {
|
|
17241
17241
|
onClickImportButton && onClickImportButton(controller);
|
|
17242
17242
|
}
|
|
17243
17243
|
})
|
|
17244
|
-
})))),
|
|
17244
|
+
})))), React.createElement(Col, {
|
|
17245
17245
|
span: 24
|
|
17246
|
-
},
|
|
17246
|
+
}, React.createElement(Form.Item, {
|
|
17247
17247
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17248
17248
|
colon: false
|
|
17249
17249
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17251,18 +17251,18 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17251
17251
|
required: !isVatNormal,
|
|
17252
17252
|
message: '购买方纳税人识别号必填'
|
|
17253
17253
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17254
|
-
})(
|
|
17254
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17255
17255
|
myform: form,
|
|
17256
17256
|
fieldName: 'buyerTaxId',
|
|
17257
17257
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17258
17258
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17259
17259
|
autoComplete: "off"
|
|
17260
|
-
})))),
|
|
17260
|
+
})))), React.createElement(Col, {
|
|
17261
17261
|
span: 14,
|
|
17262
17262
|
style: {
|
|
17263
17263
|
display: isExpand ? undefined : 'none'
|
|
17264
17264
|
}
|
|
17265
|
-
},
|
|
17265
|
+
}, React.createElement(Form.Item, {
|
|
17266
17266
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17267
17267
|
colon: false
|
|
17268
17268
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17270,90 +17270,90 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17270
17270
|
max: 100,
|
|
17271
17271
|
message: '购买方地址内容超长'
|
|
17272
17272
|
}])
|
|
17273
|
-
})(
|
|
17273
|
+
})(React.createElement(MyInput$1, {
|
|
17274
17274
|
readOnly: isReadOnly('buyerAddress'),
|
|
17275
17275
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17276
17276
|
autoComplete: "off"
|
|
17277
|
-
})))),
|
|
17277
|
+
})))), React.createElement(Col, {
|
|
17278
17278
|
span: 10,
|
|
17279
17279
|
style: {
|
|
17280
17280
|
display: isExpand ? undefined : 'none'
|
|
17281
17281
|
}
|
|
17282
|
-
},
|
|
17282
|
+
}, React.createElement(Form.Item, {
|
|
17283
17283
|
label: "\u7535\u8BDD",
|
|
17284
17284
|
colon: false,
|
|
17285
17285
|
className: 'telephone'
|
|
17286
17286
|
}, getFieldDecorator('buyerPhone', {
|
|
17287
17287
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17288
|
-
})(
|
|
17288
|
+
})(React.createElement(MyInput$1, {
|
|
17289
17289
|
readOnly: isReadOnly('buyerPhone'),
|
|
17290
17290
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17291
17291
|
autoComplete: "off"
|
|
17292
|
-
})))),
|
|
17292
|
+
})))), React.createElement(Col, {
|
|
17293
17293
|
span: 14,
|
|
17294
17294
|
style: {
|
|
17295
17295
|
display: isExpand ? undefined : 'none'
|
|
17296
17296
|
}
|
|
17297
|
-
},
|
|
17297
|
+
}, React.createElement(Form.Item, {
|
|
17298
17298
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17299
17299
|
colon: false
|
|
17300
17300
|
}, getFieldDecorator('buyerBank', {
|
|
17301
17301
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17302
|
-
})(
|
|
17302
|
+
})(React.createElement(MyInput$1, {
|
|
17303
17303
|
readOnly: isReadOnly('buyerBank'),
|
|
17304
17304
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17305
17305
|
autoComplete: "off"
|
|
17306
|
-
})))),
|
|
17306
|
+
})))), React.createElement(Col, {
|
|
17307
17307
|
span: 10,
|
|
17308
17308
|
style: {
|
|
17309
17309
|
display: isExpand ? undefined : 'none'
|
|
17310
17310
|
}
|
|
17311
|
-
},
|
|
17311
|
+
}, React.createElement(Form.Item, {
|
|
17312
17312
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17313
17313
|
colon: false
|
|
17314
17314
|
}, getFieldDecorator('buyerAccount', {
|
|
17315
17315
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17316
|
-
})(
|
|
17316
|
+
})(React.createElement(MyInput$1, {
|
|
17317
17317
|
readOnly: isReadOnly('buyerAccount'),
|
|
17318
17318
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17319
17319
|
autoComplete: "off"
|
|
17320
|
-
}))))))),
|
|
17321
|
-
return
|
|
17322
|
-
}), !readOnly &&
|
|
17320
|
+
}))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17321
|
+
return React.createElement("span", null, e);
|
|
17322
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17323
17323
|
className: "digtal-stakeholder-expand-button",
|
|
17324
17324
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17325
17325
|
onClick: onExpand
|
|
17326
|
-
})),
|
|
17326
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17327
17327
|
style: {
|
|
17328
17328
|
marginTop: 20
|
|
17329
17329
|
}
|
|
17330
|
-
},
|
|
17330
|
+
}, React.createElement(Tooltip$1, {
|
|
17331
17331
|
trigger: "click",
|
|
17332
17332
|
title: props.lineCredit
|
|
17333
|
-
},
|
|
17333
|
+
}, React.createElement(Button$1, {
|
|
17334
17334
|
type: "link",
|
|
17335
17335
|
style: {
|
|
17336
17336
|
padding: "0px 8px"
|
|
17337
17337
|
}
|
|
17338
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17338
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17339
17339
|
className: "digtal-stakeholder-form"
|
|
17340
|
-
},
|
|
17340
|
+
}, React.createElement(Row, {
|
|
17341
17341
|
gutter: [16, 0]
|
|
17342
|
-
},
|
|
17342
|
+
}, React.createElement(Col, {
|
|
17343
17343
|
span: 24
|
|
17344
|
-
},
|
|
17344
|
+
}, React.createElement(Form.Item, {
|
|
17345
17345
|
label: "\u540D\u79F0",
|
|
17346
17346
|
colon: false
|
|
17347
17347
|
}, getFieldDecorator('supplierName', {
|
|
17348
17348
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17349
17349
|
getValueFromEvent: formatCompanyName
|
|
17350
|
-
})(
|
|
17350
|
+
})(React.createElement(MyInput$1, {
|
|
17351
17351
|
readOnly: isReadOnly('supplierName'),
|
|
17352
17352
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17353
17353
|
autoComplete: "off"
|
|
17354
|
-
})))),
|
|
17354
|
+
})))), React.createElement(Col, {
|
|
17355
17355
|
span: 24
|
|
17356
|
-
},
|
|
17356
|
+
}, React.createElement(Form.Item, {
|
|
17357
17357
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17358
17358
|
colon: false
|
|
17359
17359
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17361,16 +17361,16 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17361
17361
|
required: true,
|
|
17362
17362
|
message: '销售方纳税人识别号必填'
|
|
17363
17363
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17364
|
-
})(
|
|
17364
|
+
})(React.createElement(MyInput$1, {
|
|
17365
17365
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17366
17366
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17367
17367
|
autoComplete: "off"
|
|
17368
|
-
})))),
|
|
17368
|
+
})))), React.createElement(Col, {
|
|
17369
17369
|
span: 12,
|
|
17370
17370
|
style: {
|
|
17371
17371
|
display: isExpand ? undefined : 'none'
|
|
17372
17372
|
}
|
|
17373
|
-
},
|
|
17373
|
+
}, React.createElement(Form.Item, {
|
|
17374
17374
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17375
17375
|
colon: false
|
|
17376
17376
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17378,50 +17378,50 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17378
17378
|
max: 300,
|
|
17379
17379
|
message: '销售方地址内容超长'
|
|
17380
17380
|
}])
|
|
17381
|
-
})(
|
|
17381
|
+
})(React.createElement(MyInput$1, {
|
|
17382
17382
|
readOnly: isReadOnly('sellerAddress'),
|
|
17383
17383
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17384
17384
|
autoComplete: "off"
|
|
17385
|
-
})))),
|
|
17385
|
+
})))), React.createElement(Col, {
|
|
17386
17386
|
span: 12,
|
|
17387
17387
|
style: {
|
|
17388
17388
|
display: isExpand ? undefined : 'none'
|
|
17389
17389
|
}
|
|
17390
|
-
},
|
|
17390
|
+
}, React.createElement(Form.Item, {
|
|
17391
17391
|
label: "\u7535\u8BDD",
|
|
17392
17392
|
colon: false,
|
|
17393
17393
|
className: 'telephone'
|
|
17394
17394
|
}, getFieldDecorator('sellerPhone', {
|
|
17395
17395
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17396
|
-
})(
|
|
17396
|
+
})(React.createElement(MyInput$1, {
|
|
17397
17397
|
readOnly: isReadOnly('sellerPhone'),
|
|
17398
17398
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17399
17399
|
autoComplete: "off"
|
|
17400
|
-
})))),
|
|
17400
|
+
})))), React.createElement(Col, {
|
|
17401
17401
|
span: 12,
|
|
17402
17402
|
style: {
|
|
17403
17403
|
display: isExpand ? undefined : 'none'
|
|
17404
17404
|
}
|
|
17405
|
-
},
|
|
17405
|
+
}, React.createElement(Form.Item, {
|
|
17406
17406
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17407
17407
|
colon: false
|
|
17408
17408
|
}, getFieldDecorator('sellerBank', {
|
|
17409
17409
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17410
|
-
})(
|
|
17410
|
+
})(React.createElement(MyInput$1, {
|
|
17411
17411
|
readOnly: isReadOnly('sellerBank'),
|
|
17412
17412
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17413
17413
|
autoComplete: "off"
|
|
17414
|
-
})))),
|
|
17414
|
+
})))), React.createElement(Col, {
|
|
17415
17415
|
span: 12,
|
|
17416
17416
|
style: {
|
|
17417
17417
|
display: isExpand ? undefined : 'none'
|
|
17418
17418
|
}
|
|
17419
|
-
},
|
|
17419
|
+
}, React.createElement(Form.Item, {
|
|
17420
17420
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17421
17421
|
colon: false
|
|
17422
17422
|
}, getFieldDecorator('sellerAccount', {
|
|
17423
17423
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17424
|
-
})(
|
|
17424
|
+
})(React.createElement(MyInput$1, {
|
|
17425
17425
|
readOnly: isReadOnly('sellerAccount'),
|
|
17426
17426
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17427
17427
|
autoComplete: "off"
|
|
@@ -17442,7 +17442,7 @@ function NaturalPersonFlag(props) {
|
|
|
17442
17442
|
React.useEffect(function () {
|
|
17443
17443
|
setValue(props.value || 'COMPANY');
|
|
17444
17444
|
}, [props.value]);
|
|
17445
|
-
return
|
|
17445
|
+
return React.createElement(Checkbox$1, {
|
|
17446
17446
|
disabled: props.readOnly,
|
|
17447
17447
|
checked: value === 'NATURAL',
|
|
17448
17448
|
onChange: onChange
|
|
@@ -17548,10 +17548,10 @@ function BuyerNameInput$1(props) {
|
|
|
17548
17548
|
return _ref.apply(this, arguments);
|
|
17549
17549
|
};
|
|
17550
17550
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17551
|
-
if (props.readOnly) return
|
|
17551
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17552
17552
|
className: 'digtal-stakeholder-form-text'
|
|
17553
17553
|
}, props.value);
|
|
17554
|
-
return
|
|
17554
|
+
return React.createElement(AutoComplete$1, {
|
|
17555
17555
|
onSearch: onSearch,
|
|
17556
17556
|
options: options.map(function (e) {
|
|
17557
17557
|
return {
|
|
@@ -17566,7 +17566,7 @@ function BuyerNameInput$1(props) {
|
|
|
17566
17566
|
style: {
|
|
17567
17567
|
width: '100%'
|
|
17568
17568
|
}
|
|
17569
|
-
},
|
|
17569
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17570
17570
|
style: _objectSpread2({
|
|
17571
17571
|
width: '100%'
|
|
17572
17572
|
}, props.style)
|
|
@@ -17590,11 +17590,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17590
17590
|
var props = this.props;
|
|
17591
17591
|
|
|
17592
17592
|
if (props.readOnly) {
|
|
17593
|
-
return
|
|
17593
|
+
return React.createElement("span", {
|
|
17594
17594
|
className: 'digtal-stakeholder-form-text'
|
|
17595
17595
|
}, props.value);
|
|
17596
17596
|
} else {
|
|
17597
|
-
return
|
|
17597
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17598
17598
|
}
|
|
17599
17599
|
}
|
|
17600
17600
|
}]);
|
|
@@ -17779,60 +17779,60 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17779
17779
|
React.useEffect(function () {
|
|
17780
17780
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17781
17781
|
}, [props.isExpand]);
|
|
17782
|
-
return
|
|
17782
|
+
return React.createElement("div", {
|
|
17783
17783
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17784
17784
|
readOnly: readOnly
|
|
17785
17785
|
})
|
|
17786
|
-
},
|
|
17787
|
-
return
|
|
17788
|
-
}), !readOnly &&
|
|
17786
|
+
}, React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17787
|
+
return React.createElement("span", null, e);
|
|
17788
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17789
17789
|
className: "digtal-stakeholder-expand-button",
|
|
17790
17790
|
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17791
17791
|
onClick: onExpand
|
|
17792
|
-
})),
|
|
17792
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
17793
17793
|
style: {
|
|
17794
17794
|
marginTop: 20
|
|
17795
17795
|
},
|
|
17796
17796
|
className: 'natural-person-flag'
|
|
17797
|
-
}, props.isNaturalPerson === true &&
|
|
17797
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
17798
17798
|
colon: false
|
|
17799
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
17799
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag$1, {
|
|
17800
17800
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17801
|
-
})))),
|
|
17801
|
+
})))), React.createElement(Form, {
|
|
17802
17802
|
className: "digtal-stakeholder-form"
|
|
17803
|
-
},
|
|
17803
|
+
}, React.createElement(Row, {
|
|
17804
17804
|
gutter: [16, 0]
|
|
17805
|
-
},
|
|
17805
|
+
}, React.createElement(Col, {
|
|
17806
17806
|
span: 24
|
|
17807
|
-
},
|
|
17807
|
+
}, React.createElement(Form.Item, {
|
|
17808
17808
|
label: "\u540D\u79F0",
|
|
17809
17809
|
colon: false
|
|
17810
17810
|
}, getFieldDecorator('supplierName', {
|
|
17811
17811
|
rules: getRules('supplierName', RULES$1.companyName('销售方名称')) // getValueFromEvent: formatCompanyName
|
|
17812
17812
|
|
|
17813
|
-
})(
|
|
17813
|
+
})(React.createElement(BuyerNameInput$2, {
|
|
17814
17814
|
myform: form,
|
|
17815
17815
|
fieldName: 'supplierName',
|
|
17816
17816
|
readOnly: isReadOnly('supplierName'),
|
|
17817
17817
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17818
17818
|
autoComplete: "off",
|
|
17819
|
-
suffix: isShowImportButton === true &&
|
|
17819
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17820
17820
|
type: 'link',
|
|
17821
17821
|
style: {
|
|
17822
17822
|
padding: 0,
|
|
17823
17823
|
width: 20,
|
|
17824
17824
|
height: '100%'
|
|
17825
17825
|
},
|
|
17826
|
-
icon:
|
|
17826
|
+
icon: React.createElement(Icon, {
|
|
17827
17827
|
component: SvgPlus$1
|
|
17828
17828
|
}),
|
|
17829
17829
|
onClick: function onClick() {
|
|
17830
17830
|
onClickImportButton && onClickImportButton(controller);
|
|
17831
17831
|
}
|
|
17832
17832
|
})
|
|
17833
|
-
})))),
|
|
17833
|
+
})))), React.createElement(Col, {
|
|
17834
17834
|
span: 24
|
|
17835
|
-
},
|
|
17835
|
+
}, React.createElement(Form.Item, {
|
|
17836
17836
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17837
17837
|
colon: false
|
|
17838
17838
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17840,18 +17840,18 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17840
17840
|
required: true,
|
|
17841
17841
|
message: '销售方纳税人识别号必填'
|
|
17842
17842
|
}].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
|
|
17843
|
-
})(
|
|
17843
|
+
})(React.createElement(BuyerNameInput$2, {
|
|
17844
17844
|
myform: form,
|
|
17845
17845
|
fieldName: 'supplierTaxId',
|
|
17846
17846
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17847
17847
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17848
17848
|
autoComplete: "off"
|
|
17849
|
-
})))),
|
|
17849
|
+
})))), React.createElement(Col, {
|
|
17850
17850
|
span: 12,
|
|
17851
17851
|
style: {
|
|
17852
17852
|
display: isExpand ? undefined : 'none'
|
|
17853
17853
|
}
|
|
17854
|
-
},
|
|
17854
|
+
}, React.createElement(Form.Item, {
|
|
17855
17855
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17856
17856
|
colon: false
|
|
17857
17857
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17859,105 +17859,105 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17859
17859
|
max: 300,
|
|
17860
17860
|
message: '销售方地址内容超长'
|
|
17861
17861
|
}])
|
|
17862
|
-
})(
|
|
17862
|
+
})(React.createElement(MyInput$2, {
|
|
17863
17863
|
readOnly: isReadOnly('sellerAddress'),
|
|
17864
17864
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17865
17865
|
autoComplete: "off"
|
|
17866
|
-
})))),
|
|
17866
|
+
})))), React.createElement(Col, {
|
|
17867
17867
|
span: 12,
|
|
17868
17868
|
style: {
|
|
17869
17869
|
display: isExpand ? undefined : 'none'
|
|
17870
17870
|
}
|
|
17871
|
-
},
|
|
17871
|
+
}, React.createElement(Form.Item, {
|
|
17872
17872
|
label: "\u7535\u8BDD",
|
|
17873
17873
|
colon: false,
|
|
17874
17874
|
className: 'telephone'
|
|
17875
17875
|
}, getFieldDecorator('sellerPhone', {
|
|
17876
17876
|
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17877
|
-
})(
|
|
17877
|
+
})(React.createElement(MyInput$2, {
|
|
17878
17878
|
readOnly: isReadOnly('sellerPhone'),
|
|
17879
17879
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17880
17880
|
autoComplete: "off"
|
|
17881
|
-
})))),
|
|
17881
|
+
})))), React.createElement(Col, {
|
|
17882
17882
|
span: 12,
|
|
17883
17883
|
style: {
|
|
17884
17884
|
display: isExpand ? undefined : 'none'
|
|
17885
17885
|
}
|
|
17886
|
-
},
|
|
17886
|
+
}, React.createElement(Form.Item, {
|
|
17887
17887
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17888
17888
|
colon: false
|
|
17889
17889
|
}, getFieldDecorator('sellerBank', {
|
|
17890
17890
|
rules: getRules('sellerBank', RULES$1.bankName('销售方开户银行'))
|
|
17891
|
-
})(
|
|
17891
|
+
})(React.createElement(MyInput$2, {
|
|
17892
17892
|
readOnly: isReadOnly('sellerBank'),
|
|
17893
17893
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17894
17894
|
autoComplete: "off"
|
|
17895
|
-
})))),
|
|
17895
|
+
})))), React.createElement(Col, {
|
|
17896
17896
|
span: 12,
|
|
17897
17897
|
style: {
|
|
17898
17898
|
display: isExpand ? undefined : 'none'
|
|
17899
17899
|
}
|
|
17900
|
-
},
|
|
17900
|
+
}, React.createElement(Form.Item, {
|
|
17901
17901
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17902
17902
|
colon: false
|
|
17903
17903
|
}, getFieldDecorator('sellerAccount', {
|
|
17904
17904
|
rules: getRules('sellerAccount', RULES$1.bankAccount('销售方银行账号'))
|
|
17905
|
-
})(
|
|
17905
|
+
})(React.createElement(MyInput$2, {
|
|
17906
17906
|
readOnly: isReadOnly('sellerAccount'),
|
|
17907
17907
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17908
17908
|
autoComplete: "off"
|
|
17909
|
-
}))))))),
|
|
17910
|
-
return
|
|
17911
|
-
}), !readOnly &&
|
|
17909
|
+
}))))))), React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17910
|
+
return React.createElement("span", null, e);
|
|
17911
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17912
17912
|
className: "digtal-stakeholder-expand-button",
|
|
17913
17913
|
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17914
17914
|
onClick: onExpand
|
|
17915
|
-
})),
|
|
17915
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17916
17916
|
style: {
|
|
17917
17917
|
marginTop: 20
|
|
17918
17918
|
}
|
|
17919
|
-
},
|
|
17919
|
+
}, React.createElement(Tooltip$1, {
|
|
17920
17920
|
trigger: "click",
|
|
17921
17921
|
title: props.lineCredit
|
|
17922
|
-
},
|
|
17922
|
+
}, React.createElement(Button$1, {
|
|
17923
17923
|
type: "link",
|
|
17924
17924
|
style: {
|
|
17925
17925
|
padding: "0px 8px"
|
|
17926
17926
|
}
|
|
17927
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17927
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17928
17928
|
className: "digtal-stakeholder-form"
|
|
17929
|
-
},
|
|
17929
|
+
}, React.createElement(Row, {
|
|
17930
17930
|
gutter: [16, 0]
|
|
17931
|
-
},
|
|
17931
|
+
}, React.createElement(Col, {
|
|
17932
17932
|
span: 24
|
|
17933
|
-
},
|
|
17933
|
+
}, React.createElement(Form.Item, {
|
|
17934
17934
|
label: "\u540D\u79F0",
|
|
17935
17935
|
colon: false
|
|
17936
17936
|
}, getFieldDecorator('buyerName', {
|
|
17937
17937
|
rules: getRules('buyerName', RULES$1.companyName('购买方名称'))
|
|
17938
|
-
})(
|
|
17938
|
+
})(React.createElement(BuyerNameInput$2, {
|
|
17939
17939
|
myform: form,
|
|
17940
17940
|
fieldName: 'buyerName',
|
|
17941
17941
|
readOnly: isReadOnly('buyerName'),
|
|
17942
17942
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17943
17943
|
autoComplete: "off",
|
|
17944
|
-
suffix: isShowImportButton === true &&
|
|
17944
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17945
17945
|
type: 'link',
|
|
17946
17946
|
style: {
|
|
17947
17947
|
padding: 0,
|
|
17948
17948
|
width: 20,
|
|
17949
17949
|
height: '100%'
|
|
17950
17950
|
},
|
|
17951
|
-
icon:
|
|
17951
|
+
icon: React.createElement(Icon, {
|
|
17952
17952
|
component: SvgPlus$1
|
|
17953
17953
|
}),
|
|
17954
17954
|
onClick: function onClick() {
|
|
17955
17955
|
onClickImportButton && onClickImportButton(controller);
|
|
17956
17956
|
}
|
|
17957
17957
|
})
|
|
17958
|
-
})))),
|
|
17958
|
+
})))), React.createElement(Col, {
|
|
17959
17959
|
span: 24
|
|
17960
|
-
},
|
|
17960
|
+
}, React.createElement(Form.Item, {
|
|
17961
17961
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17962
17962
|
colon: false
|
|
17963
17963
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17965,18 +17965,18 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17965
17965
|
required: !isVatNormal,
|
|
17966
17966
|
message: '购买方纳税人识别号必填'
|
|
17967
17967
|
}].concat(_toConsumableArray(RULES$1.taxId('购买方纳税人识别号'))))
|
|
17968
|
-
})(
|
|
17968
|
+
})(React.createElement(BuyerNameInput$2, {
|
|
17969
17969
|
myform: form,
|
|
17970
17970
|
fieldName: 'buyerTaxId',
|
|
17971
17971
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17972
17972
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17973
17973
|
autoComplete: "off"
|
|
17974
|
-
})))),
|
|
17974
|
+
})))), React.createElement(Col, {
|
|
17975
17975
|
span: 14,
|
|
17976
17976
|
style: {
|
|
17977
17977
|
display: isExpand ? undefined : 'none'
|
|
17978
17978
|
}
|
|
17979
|
-
},
|
|
17979
|
+
}, React.createElement(Form.Item, {
|
|
17980
17980
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17981
17981
|
colon: false
|
|
17982
17982
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17984,50 +17984,50 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
17984
17984
|
max: 100,
|
|
17985
17985
|
message: '购买方地址内容超长'
|
|
17986
17986
|
}])
|
|
17987
|
-
})(
|
|
17987
|
+
})(React.createElement(MyInput$2, {
|
|
17988
17988
|
readOnly: isReadOnly('buyerAddress'),
|
|
17989
17989
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17990
17990
|
autoComplete: "off"
|
|
17991
|
-
})))),
|
|
17991
|
+
})))), React.createElement(Col, {
|
|
17992
17992
|
span: 10,
|
|
17993
17993
|
style: {
|
|
17994
17994
|
display: isExpand ? undefined : 'none'
|
|
17995
17995
|
}
|
|
17996
|
-
},
|
|
17996
|
+
}, React.createElement(Form.Item, {
|
|
17997
17997
|
label: "\u7535\u8BDD",
|
|
17998
17998
|
colon: false,
|
|
17999
17999
|
className: 'telephone'
|
|
18000
18000
|
}, getFieldDecorator('buyerPhone', {
|
|
18001
18001
|
rules: getRules('buyerPhone', RULES$1.buyerTelPhone('购买方电话'))
|
|
18002
|
-
})(
|
|
18002
|
+
})(React.createElement(MyInput$2, {
|
|
18003
18003
|
readOnly: isReadOnly('buyerPhone'),
|
|
18004
18004
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
18005
18005
|
autoComplete: "off"
|
|
18006
|
-
})))),
|
|
18006
|
+
})))), React.createElement(Col, {
|
|
18007
18007
|
span: 14,
|
|
18008
18008
|
style: {
|
|
18009
18009
|
display: isExpand ? undefined : 'none'
|
|
18010
18010
|
}
|
|
18011
|
-
},
|
|
18011
|
+
}, React.createElement(Form.Item, {
|
|
18012
18012
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18013
18013
|
colon: false
|
|
18014
18014
|
}, getFieldDecorator('buyerBank', {
|
|
18015
18015
|
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18016
|
-
})(
|
|
18016
|
+
})(React.createElement(MyInput$2, {
|
|
18017
18017
|
readOnly: isReadOnly('buyerBank'),
|
|
18018
18018
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18019
18019
|
autoComplete: "off"
|
|
18020
|
-
})))),
|
|
18020
|
+
})))), React.createElement(Col, {
|
|
18021
18021
|
span: 10,
|
|
18022
18022
|
style: {
|
|
18023
18023
|
display: isExpand ? undefined : 'none'
|
|
18024
18024
|
}
|
|
18025
|
-
},
|
|
18025
|
+
}, React.createElement(Form.Item, {
|
|
18026
18026
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18027
18027
|
colon: false
|
|
18028
18028
|
}, getFieldDecorator('buyerAccount', {
|
|
18029
18029
|
rules: getRules('buyerAccount', RULES$1.bankAccount('购买方银行账号'))
|
|
18030
|
-
})(
|
|
18030
|
+
})(React.createElement(MyInput$2, {
|
|
18031
18031
|
readOnly: isReadOnly('buyerAccount'),
|
|
18032
18032
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
18033
18033
|
autoComplete: "off"
|
|
@@ -18048,7 +18048,7 @@ function NaturalPersonFlag$1(props) {
|
|
|
18048
18048
|
React.useEffect(function () {
|
|
18049
18049
|
setValue(props.value || 'COMPANY');
|
|
18050
18050
|
}, [props.value]);
|
|
18051
|
-
return
|
|
18051
|
+
return React.createElement(Checkbox$1, {
|
|
18052
18052
|
disabled: props.readOnly,
|
|
18053
18053
|
checked: value === 'NATURAL',
|
|
18054
18054
|
onChange: onChange
|
|
@@ -18200,10 +18200,10 @@ function BuyerNameInput$2(props) {
|
|
|
18200
18200
|
return _ref.apply(this, arguments);
|
|
18201
18201
|
};
|
|
18202
18202
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
18203
|
-
if (props.readOnly) return
|
|
18203
|
+
if (props.readOnly) return React.createElement("span", {
|
|
18204
18204
|
className: 'digtal-stakeholder-form-text'
|
|
18205
18205
|
}, props.value);
|
|
18206
|
-
return
|
|
18206
|
+
return React.createElement(AutoComplete$1, {
|
|
18207
18207
|
onSearch: onSearch,
|
|
18208
18208
|
options: options.map(function (e) {
|
|
18209
18209
|
return {
|
|
@@ -18218,7 +18218,7 @@ function BuyerNameInput$2(props) {
|
|
|
18218
18218
|
style: {
|
|
18219
18219
|
width: '100%'
|
|
18220
18220
|
}
|
|
18221
|
-
},
|
|
18221
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18222
18222
|
style: _objectSpread2({
|
|
18223
18223
|
width: '100%'
|
|
18224
18224
|
}, props.style)
|
|
@@ -18242,11 +18242,11 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
18242
18242
|
var props = this.props;
|
|
18243
18243
|
|
|
18244
18244
|
if (props.readOnly) {
|
|
18245
|
-
return
|
|
18245
|
+
return React.createElement("span", {
|
|
18246
18246
|
className: 'digtal-stakeholder-form-text'
|
|
18247
18247
|
}, props.value);
|
|
18248
18248
|
} else {
|
|
18249
|
-
return
|
|
18249
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
18250
18250
|
}
|
|
18251
18251
|
}
|
|
18252
18252
|
}]);
|
|
@@ -18303,48 +18303,48 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
18303
18303
|
controller.useForm('sign', form);
|
|
18304
18304
|
|
|
18305
18305
|
if (readOnly) {
|
|
18306
|
-
return
|
|
18306
|
+
return React.createElement("div", {
|
|
18307
18307
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
18308
|
-
},
|
|
18308
|
+
}, React.createElement("div", {
|
|
18309
18309
|
className: 'sign-digtal-readOnly-cont'
|
|
18310
|
-
},
|
|
18310
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
18311
18311
|
initialValue: props.defaultRemark
|
|
18312
|
-
})(isEnables('remarks') ?
|
|
18312
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
18313
18313
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
18314
18314
|
style: {
|
|
18315
18315
|
height: '100%'
|
|
18316
18316
|
}
|
|
18317
|
-
}) :
|
|
18317
|
+
}) : React.createElement(MyDiv$1, {
|
|
18318
18318
|
style: {
|
|
18319
18319
|
whiteSpace: 'pre-wrap',
|
|
18320
18320
|
wordBreak: 'break-all'
|
|
18321
18321
|
}
|
|
18322
|
-
})))),
|
|
18322
|
+
})))), React.createElement(Form, {
|
|
18323
18323
|
layout: 'inline',
|
|
18324
18324
|
className: 'digtal-readOnly-form'
|
|
18325
|
-
},
|
|
18325
|
+
}, React.createElement(Form.Item, {
|
|
18326
18326
|
label: "\u5F00\u7968\u4EBA"
|
|
18327
18327
|
}, getFieldDecorator('drawer', {
|
|
18328
18328
|
initialValue: props.defaultRemark
|
|
18329
|
-
})(
|
|
18329
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
18330
18330
|
} else {
|
|
18331
|
-
return
|
|
18331
|
+
return React.createElement("div", {
|
|
18332
18332
|
className: "kts-invoice-operate-sign-digtal"
|
|
18333
|
-
},
|
|
18333
|
+
}, React.createElement("div", {
|
|
18334
18334
|
className: 'sign-digtal-label'
|
|
18335
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
18335
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
18336
18336
|
label: "\u5907\u6CE8"
|
|
18337
18337
|
}, getFieldDecorator('remarks', {
|
|
18338
18338
|
initialValue: props.defaultRemark
|
|
18339
|
-
})(
|
|
18339
|
+
})(React.createElement(Input$1.TextArea, {
|
|
18340
18340
|
readOnly: isReadOnly('remarks'),
|
|
18341
18341
|
autoSize: true,
|
|
18342
18342
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
18343
|
-
}))),
|
|
18343
|
+
}))), React.createElement(Form.Item, {
|
|
18344
18344
|
label: "\u5F00\u7968\u4EBA"
|
|
18345
18345
|
}, getFieldDecorator('drawer', {
|
|
18346
18346
|
initialValue: props.defaultIssuer
|
|
18347
|
-
})(
|
|
18347
|
+
})(React.createElement(Input$1, {
|
|
18348
18348
|
readOnly: isReadOnly('drawer'),
|
|
18349
18349
|
style: {
|
|
18350
18350
|
width: 313
|
|
@@ -18368,7 +18368,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18368
18368
|
_createClass(MyDiv, [{
|
|
18369
18369
|
key: "render",
|
|
18370
18370
|
value: function render() {
|
|
18371
|
-
return
|
|
18371
|
+
return React.createElement("div", {
|
|
18372
18372
|
style: this.props.style
|
|
18373
18373
|
}, this.props.value);
|
|
18374
18374
|
}
|
|
@@ -18471,12 +18471,12 @@ function TableVirtual$1 (props) {
|
|
|
18471
18471
|
if (!cont) return;
|
|
18472
18472
|
cont.scrollTop = 0;
|
|
18473
18473
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
18474
|
-
return
|
|
18474
|
+
return React.createElement("span", {
|
|
18475
18475
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
18476
18476
|
ref: function ref(e) {
|
|
18477
18477
|
setSelf(e);
|
|
18478
18478
|
}
|
|
18479
|
-
},
|
|
18479
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18480
18480
|
dataSource: dataSource,
|
|
18481
18481
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
18482
18482
|
tableComponent: Table
|
|
@@ -18587,54 +18587,54 @@ var Statistics$1 = (function () {
|
|
|
18587
18587
|
});
|
|
18588
18588
|
return sum.done().toNumber();
|
|
18589
18589
|
}, []);
|
|
18590
|
-
return
|
|
18590
|
+
return React.createElement("div", {
|
|
18591
18591
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
18592
|
-
},
|
|
18592
|
+
}, React.createElement("div", {
|
|
18593
18593
|
className: 'statistics-digtal-total'
|
|
18594
|
-
},
|
|
18594
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
18595
18595
|
style: {
|
|
18596
18596
|
flex: 1
|
|
18597
18597
|
}
|
|
18598
|
-
}),
|
|
18598
|
+
}), React.createElement("div", {
|
|
18599
18599
|
style: {
|
|
18600
18600
|
minWidth: 119,
|
|
18601
18601
|
maxWidth: 300,
|
|
18602
18602
|
textAlign: 'right',
|
|
18603
18603
|
paddingRight: 15
|
|
18604
18604
|
}
|
|
18605
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
18605
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
18606
18606
|
style: {
|
|
18607
18607
|
minWidth: 119,
|
|
18608
18608
|
maxWidth: 300,
|
|
18609
18609
|
textAlign: 'right',
|
|
18610
18610
|
paddingRight: 15
|
|
18611
18611
|
}
|
|
18612
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
18612
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
18613
18613
|
className: 'statistics-digtal-total-tax'
|
|
18614
|
-
},
|
|
18614
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
18615
18615
|
style: {
|
|
18616
18616
|
paddingLeft: 30
|
|
18617
18617
|
}
|
|
18618
|
-
},
|
|
18618
|
+
}, React.createElement(Icon, {
|
|
18619
18619
|
style: {
|
|
18620
18620
|
fontSize: 16
|
|
18621
18621
|
},
|
|
18622
18622
|
component: SvgFork
|
|
18623
|
-
}),
|
|
18623
|
+
}), React.createElement("span", {
|
|
18624
18624
|
style: {
|
|
18625
18625
|
fontWeight: 'bold',
|
|
18626
18626
|
marginLeft: 4
|
|
18627
18627
|
}
|
|
18628
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
18628
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
18629
18629
|
style: {
|
|
18630
18630
|
flex: 1
|
|
18631
18631
|
}
|
|
18632
|
-
}),
|
|
18632
|
+
}), React.createElement("div", {
|
|
18633
18633
|
style: {
|
|
18634
18634
|
width: 90,
|
|
18635
18635
|
color: '#9F613E'
|
|
18636
18636
|
}
|
|
18637
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
18637
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
18638
18638
|
style: {
|
|
18639
18639
|
minWidth: 119,
|
|
18640
18640
|
maxWidth: 300
|
|
@@ -18694,10 +18694,10 @@ var AddRowButton$1 = (function () {
|
|
|
18694
18694
|
}
|
|
18695
18695
|
}, _callee);
|
|
18696
18696
|
})), [controller, rootElement]);
|
|
18697
|
-
if (isAddRow === false) return
|
|
18698
|
-
if (model === 'prefab') return
|
|
18699
|
-
if (model === 'readOnly') return
|
|
18700
|
-
return
|
|
18697
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
18698
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
18699
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
18700
|
+
return React.createElement(Button$1, {
|
|
18701
18701
|
size: 'small',
|
|
18702
18702
|
type: 'primary',
|
|
18703
18703
|
onClick: onClick,
|
|
@@ -20080,11 +20080,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
20080
20080
|
return _ref.apply(this, arguments);
|
|
20081
20081
|
};
|
|
20082
20082
|
}(), []);
|
|
20083
|
-
return
|
|
20083
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
20084
20084
|
style: {
|
|
20085
20085
|
marginRight: 2
|
|
20086
20086
|
}
|
|
20087
|
-
}, "\u542B\u7A0E"),
|
|
20087
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
20088
20088
|
disabled: isSwitchTax === false,
|
|
20089
20089
|
checked: isTaxIncluded,
|
|
20090
20090
|
defaultChecked: true,
|
|
@@ -20180,12 +20180,12 @@ function Search$1() {
|
|
|
20180
20180
|
};
|
|
20181
20181
|
}());
|
|
20182
20182
|
}, [value, controller]);
|
|
20183
|
-
return
|
|
20183
|
+
return React.createElement(Input$1, {
|
|
20184
20184
|
readOnly: readOnly,
|
|
20185
20185
|
value: value,
|
|
20186
20186
|
className: "kts-invoice-operate-goods-list-search",
|
|
20187
20187
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
20188
|
-
prefix:
|
|
20188
|
+
prefix: React.createElement(Icon$1, {
|
|
20189
20189
|
component: SvgMagnifier$1,
|
|
20190
20190
|
style: {
|
|
20191
20191
|
color: "#b8b8b8"
|
|
@@ -20230,12 +20230,12 @@ function TableRow$1(props) {
|
|
|
20230
20230
|
return undefined;
|
|
20231
20231
|
}
|
|
20232
20232
|
}, [rowKey, goodsMap]);
|
|
20233
|
-
return rowKey === current && current ?
|
|
20233
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
20234
20234
|
style: {
|
|
20235
20235
|
height: 50,
|
|
20236
20236
|
position: 'relative'
|
|
20237
20237
|
}
|
|
20238
|
-
},
|
|
20238
|
+
}, React.createElement("div", {
|
|
20239
20239
|
style: {
|
|
20240
20240
|
height: 0.5,
|
|
20241
20241
|
width: '100%',
|
|
@@ -20243,9 +20243,7 @@ function TableRow$1(props) {
|
|
|
20243
20243
|
position: 'absolute',
|
|
20244
20244
|
bottom: 0
|
|
20245
20245
|
}
|
|
20246
|
-
})) :
|
|
20247
|
-
/*#__PURE__*/
|
|
20248
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
20246
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
20249
20247
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
20250
20248
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
20251
20249
|
}));
|
|
@@ -20285,9 +20283,9 @@ var TitleText$1 = (function (props) {
|
|
|
20285
20283
|
return !!e.required;
|
|
20286
20284
|
})) || props.required;
|
|
20287
20285
|
}, [rules, props.required]);
|
|
20288
|
-
return
|
|
20286
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
20289
20287
|
type: "danger"
|
|
20290
|
-
}, "*") :
|
|
20288
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
20291
20289
|
});
|
|
20292
20290
|
|
|
20293
20291
|
var css_248z$n = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
@@ -20471,14 +20469,14 @@ function ItemNameInput$1(props) {
|
|
|
20471
20469
|
return _ref3.apply(this, arguments);
|
|
20472
20470
|
};
|
|
20473
20471
|
}(), [autoComplete.onItemNameSearch]);
|
|
20474
|
-
return
|
|
20472
|
+
return React.createElement("div", {
|
|
20475
20473
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
20476
|
-
}, props.shorthand &&
|
|
20474
|
+
}, props.shorthand && React.createElement("span", {
|
|
20477
20475
|
style: {
|
|
20478
20476
|
alignSelf: 'center',
|
|
20479
20477
|
fontSize: 12
|
|
20480
20478
|
}
|
|
20481
|
-
}, "*", props.shorthand, "*"),
|
|
20479
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
20482
20480
|
onSearch: onSearch,
|
|
20483
20481
|
value: props.value,
|
|
20484
20482
|
options: options.map(function (e) {
|
|
@@ -20491,7 +20489,7 @@ function ItemNameInput$1(props) {
|
|
|
20491
20489
|
return rootElement || document.body;
|
|
20492
20490
|
},
|
|
20493
20491
|
onSelect: onChangeAutoComplete
|
|
20494
|
-
},
|
|
20492
|
+
}, React.createElement(Input$1, {
|
|
20495
20493
|
style: {
|
|
20496
20494
|
height: '100%'
|
|
20497
20495
|
},
|
|
@@ -20561,7 +20559,7 @@ function Drag$2(props) {
|
|
|
20561
20559
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
20562
20560
|
return e.$index === record.$index;
|
|
20563
20561
|
})[0];
|
|
20564
|
-
mounting(
|
|
20562
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
20565
20563
|
rowList.forEach(function (e) {
|
|
20566
20564
|
e.addEventListener('mousemove', onMousemove);
|
|
20567
20565
|
});
|
|
@@ -20722,7 +20720,7 @@ function Drag$2(props) {
|
|
|
20722
20720
|
|
|
20723
20721
|
|
|
20724
20722
|
function insert() {
|
|
20725
|
-
mounting(
|
|
20723
|
+
mounting(React.createElement(React.Fragment, null));
|
|
20726
20724
|
controller.run( /*#__PURE__*/function () {
|
|
20727
20725
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20728
20726
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -20801,7 +20799,7 @@ function Drag$2(props) {
|
|
|
20801
20799
|
}
|
|
20802
20800
|
}, [controller, record, disabled]);
|
|
20803
20801
|
var renderButton = React.useMemo(function () {
|
|
20804
|
-
return
|
|
20802
|
+
return React.createElement(Button, {
|
|
20805
20803
|
type: 'link',
|
|
20806
20804
|
style: {
|
|
20807
20805
|
padding: 0
|
|
@@ -20812,13 +20810,13 @@ function Drag$2(props) {
|
|
|
20812
20810
|
},
|
|
20813
20811
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20814
20812
|
onMouseOver: controller.saveEditGood
|
|
20815
|
-
},
|
|
20813
|
+
}, React.createElement(Icon, {
|
|
20816
20814
|
component: SvgI001$1
|
|
20817
20815
|
}));
|
|
20818
20816
|
}, [onMouseDown, controller]);
|
|
20819
20817
|
|
|
20820
20818
|
if (disabled) {
|
|
20821
|
-
return
|
|
20819
|
+
return React.createElement(Popover, {
|
|
20822
20820
|
content: '您还有未编辑完成的商品',
|
|
20823
20821
|
trigger: 'focus'
|
|
20824
20822
|
}, renderButton);
|
|
@@ -20858,13 +20856,13 @@ function DragDiv$1(props) {
|
|
|
20858
20856
|
window.removeEventListener('mousemove', onMousemove);
|
|
20859
20857
|
};
|
|
20860
20858
|
});
|
|
20861
|
-
return
|
|
20859
|
+
return React.createElement("div", {
|
|
20862
20860
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
20863
20861
|
style: {
|
|
20864
20862
|
top: y,
|
|
20865
20863
|
left: x
|
|
20866
20864
|
}
|
|
20867
|
-
},
|
|
20865
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
20868
20866
|
}
|
|
20869
20867
|
|
|
20870
20868
|
var useColumns$1 = (function (form) {
|
|
@@ -20993,7 +20991,7 @@ var useColumns$1 = (function (form) {
|
|
|
20993
20991
|
width: 40,
|
|
20994
20992
|
align: 'center',
|
|
20995
20993
|
render: function render(_, record) {
|
|
20996
|
-
return
|
|
20994
|
+
return React.createElement(Drag$2, {
|
|
20997
20995
|
record: record
|
|
20998
20996
|
});
|
|
20999
20997
|
}
|
|
@@ -21003,20 +21001,20 @@ var useColumns$1 = (function (form) {
|
|
|
21003
21001
|
dataIndex: 'serialNo',
|
|
21004
21002
|
width: 50,
|
|
21005
21003
|
render: function render(e) {
|
|
21006
|
-
return
|
|
21004
|
+
return React.createElement("span", {
|
|
21007
21005
|
style: {
|
|
21008
21006
|
padding: '0 10px'
|
|
21009
21007
|
}
|
|
21010
21008
|
}, e);
|
|
21011
21009
|
}
|
|
21012
21010
|
}, {
|
|
21013
|
-
title:
|
|
21011
|
+
title: React.createElement(TitleText$1, {
|
|
21014
21012
|
required: true
|
|
21015
21013
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
21016
21014
|
key: 'itemName',
|
|
21017
21015
|
render: function render(_, record) {
|
|
21018
21016
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemName') && model !== 'prefab') {
|
|
21019
|
-
return
|
|
21017
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
21020
21018
|
style: {
|
|
21021
21019
|
display: 'flex'
|
|
21022
21020
|
}
|
|
@@ -21063,12 +21061,12 @@ var useColumns$1 = (function (form) {
|
|
|
21063
21061
|
return validator;
|
|
21064
21062
|
}()
|
|
21065
21063
|
}])
|
|
21066
|
-
})(
|
|
21064
|
+
})(React.createElement(ItemNameInput$1, {
|
|
21067
21065
|
editGood: editGood,
|
|
21068
21066
|
shorthand: editGood.shorthand,
|
|
21069
|
-
suffix:
|
|
21067
|
+
suffix: React.createElement(Tooltip$1, {
|
|
21070
21068
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
21071
|
-
},
|
|
21069
|
+
}, React.createElement(Button$1, {
|
|
21072
21070
|
type: "link",
|
|
21073
21071
|
style: {
|
|
21074
21072
|
padding: 0,
|
|
@@ -21076,7 +21074,7 @@ var useColumns$1 = (function (form) {
|
|
|
21076
21074
|
fontSize: 20,
|
|
21077
21075
|
fill: '#0074ff'
|
|
21078
21076
|
},
|
|
21079
|
-
icon:
|
|
21077
|
+
icon: React.createElement(SvgPlus$2, null),
|
|
21080
21078
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
21081
21079
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
21082
21080
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -21103,9 +21101,9 @@ var useColumns$1 = (function (form) {
|
|
|
21103
21101
|
}
|
|
21104
21102
|
}))));
|
|
21105
21103
|
} else {
|
|
21106
|
-
return
|
|
21104
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
21107
21105
|
className: 'goods-list-digtal-discount-tag'
|
|
21108
|
-
}, "\u6298\u6263") :
|
|
21106
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
21109
21107
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
21110
21108
|
shorthand: record.shorthand,
|
|
21111
21109
|
full: record.itemNameSelf || ''
|
|
@@ -21119,17 +21117,17 @@ var useColumns$1 = (function (form) {
|
|
|
21119
21117
|
}
|
|
21120
21118
|
}
|
|
21121
21119
|
}, {
|
|
21122
|
-
title:
|
|
21120
|
+
title: React.createElement(TitleText$1, {
|
|
21123
21121
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
21124
21122
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
21125
21123
|
key: 'itemModelName',
|
|
21126
21124
|
width: 119,
|
|
21127
21125
|
render: function render(_, record) {
|
|
21128
21126
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemModelName') && model !== 'prefab') {
|
|
21129
|
-
return
|
|
21127
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
21130
21128
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
21131
21129
|
rules: getReplenishRules('itemModelName')
|
|
21132
|
-
})(
|
|
21130
|
+
})(React.createElement(MyInput$3, {
|
|
21133
21131
|
onChange: function () {
|
|
21134
21132
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
21135
21133
|
var key, value;
|
|
@@ -21162,7 +21160,7 @@ var useColumns$1 = (function (form) {
|
|
|
21162
21160
|
}()
|
|
21163
21161
|
})));
|
|
21164
21162
|
} else {
|
|
21165
|
-
return
|
|
21163
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
21166
21164
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
21167
21165
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
21168
21166
|
isMyShow: isMyShow
|
|
@@ -21170,17 +21168,17 @@ var useColumns$1 = (function (form) {
|
|
|
21170
21168
|
}
|
|
21171
21169
|
}
|
|
21172
21170
|
}, {
|
|
21173
|
-
title:
|
|
21171
|
+
title: React.createElement(TitleText$1, {
|
|
21174
21172
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
21175
21173
|
}, "\u5355\u4F4D"),
|
|
21176
21174
|
key: 'unit',
|
|
21177
21175
|
width: 70,
|
|
21178
21176
|
render: function render(_, record) {
|
|
21179
21177
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('unit') && model !== 'prefab') {
|
|
21180
|
-
return
|
|
21178
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
21181
21179
|
initialValue: editGood.unit,
|
|
21182
21180
|
rules: getReplenishRules('unit')
|
|
21183
|
-
})(
|
|
21181
|
+
})(React.createElement(AutoComplete$1, {
|
|
21184
21182
|
style: {
|
|
21185
21183
|
width: '100%'
|
|
21186
21184
|
},
|
|
@@ -21218,7 +21216,7 @@ var useColumns$1 = (function (form) {
|
|
|
21218
21216
|
}()
|
|
21219
21217
|
})));
|
|
21220
21218
|
} else {
|
|
21221
|
-
return
|
|
21219
|
+
return React.createElement("span", {
|
|
21222
21220
|
style: {
|
|
21223
21221
|
padding: '0 10px'
|
|
21224
21222
|
}
|
|
@@ -21226,7 +21224,7 @@ var useColumns$1 = (function (form) {
|
|
|
21226
21224
|
}
|
|
21227
21225
|
}
|
|
21228
21226
|
}, {
|
|
21229
|
-
title:
|
|
21227
|
+
title: React.createElement(TitleText$1, {
|
|
21230
21228
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
21231
21229
|
}, "\u6570\u91CF"),
|
|
21232
21230
|
dataIndex: 'quantity',
|
|
@@ -21235,7 +21233,7 @@ var useColumns$1 = (function (form) {
|
|
|
21235
21233
|
width: 149,
|
|
21236
21234
|
render: function render(value, record) {
|
|
21237
21235
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('quantity') && model !== 'prefab') {
|
|
21238
|
-
return
|
|
21236
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
21239
21237
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
21240
21238
|
getValueFromEvent: onNumberValueChange,
|
|
21241
21239
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -21281,7 +21279,7 @@ var useColumns$1 = (function (form) {
|
|
|
21281
21279
|
return validator;
|
|
21282
21280
|
}()
|
|
21283
21281
|
}])
|
|
21284
|
-
})(
|
|
21282
|
+
})(React.createElement(MyInput$3, {
|
|
21285
21283
|
style: {
|
|
21286
21284
|
textAlign: 'right'
|
|
21287
21285
|
},
|
|
@@ -21313,7 +21311,7 @@ var useColumns$1 = (function (form) {
|
|
|
21313
21311
|
}()
|
|
21314
21312
|
})));
|
|
21315
21313
|
} else {
|
|
21316
|
-
return
|
|
21314
|
+
return React.createElement("span", {
|
|
21317
21315
|
style: {
|
|
21318
21316
|
padding: '0 10px'
|
|
21319
21317
|
}
|
|
@@ -21321,7 +21319,7 @@ var useColumns$1 = (function (form) {
|
|
|
21321
21319
|
}
|
|
21322
21320
|
}
|
|
21323
21321
|
}, {
|
|
21324
|
-
title:
|
|
21322
|
+
title: React.createElement(TitleText$1, {
|
|
21325
21323
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
21326
21324
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
21327
21325
|
dataIndex: 'priceIncludeTax',
|
|
@@ -21330,7 +21328,7 @@ var useColumns$1 = (function (form) {
|
|
|
21330
21328
|
width: 149,
|
|
21331
21329
|
render: function render(value, record) {
|
|
21332
21330
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceIncludeTax') && model !== 'prefab') {
|
|
21333
|
-
return
|
|
21331
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
21334
21332
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
21335
21333
|
getValueFromEvent: onNumberValueChange,
|
|
21336
21334
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -21376,7 +21374,7 @@ var useColumns$1 = (function (form) {
|
|
|
21376
21374
|
return validator;
|
|
21377
21375
|
}()
|
|
21378
21376
|
}])
|
|
21379
|
-
})(
|
|
21377
|
+
})(React.createElement(MyInput$3, {
|
|
21380
21378
|
style: {
|
|
21381
21379
|
textAlign: 'right'
|
|
21382
21380
|
},
|
|
@@ -21388,7 +21386,7 @@ var useColumns$1 = (function (form) {
|
|
|
21388
21386
|
}
|
|
21389
21387
|
})));
|
|
21390
21388
|
} else {
|
|
21391
|
-
return
|
|
21389
|
+
return React.createElement("span", {
|
|
21392
21390
|
style: {
|
|
21393
21391
|
padding: '0 10px'
|
|
21394
21392
|
}
|
|
@@ -21396,7 +21394,7 @@ var useColumns$1 = (function (form) {
|
|
|
21396
21394
|
}
|
|
21397
21395
|
}
|
|
21398
21396
|
}, {
|
|
21399
|
-
title:
|
|
21397
|
+
title: React.createElement(TitleText$1, {
|
|
21400
21398
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
21401
21399
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
21402
21400
|
dataIndex: 'priceExcludeTax',
|
|
@@ -21405,7 +21403,7 @@ var useColumns$1 = (function (form) {
|
|
|
21405
21403
|
width: 149,
|
|
21406
21404
|
render: function render(value, record) {
|
|
21407
21405
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceExcludeTax') && model !== 'prefab') {
|
|
21408
|
-
return
|
|
21406
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
21409
21407
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
21410
21408
|
getValueFromEvent: onNumberValueChange,
|
|
21411
21409
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -21451,7 +21449,7 @@ var useColumns$1 = (function (form) {
|
|
|
21451
21449
|
return validator;
|
|
21452
21450
|
}()
|
|
21453
21451
|
}])
|
|
21454
|
-
})(
|
|
21452
|
+
})(React.createElement(MyInput$3, {
|
|
21455
21453
|
style: {
|
|
21456
21454
|
textAlign: 'right'
|
|
21457
21455
|
},
|
|
@@ -21463,7 +21461,7 @@ var useColumns$1 = (function (form) {
|
|
|
21463
21461
|
}
|
|
21464
21462
|
})));
|
|
21465
21463
|
} else {
|
|
21466
|
-
return
|
|
21464
|
+
return React.createElement("span", {
|
|
21467
21465
|
style: {
|
|
21468
21466
|
padding: '0 10px'
|
|
21469
21467
|
}
|
|
@@ -21471,7 +21469,7 @@ var useColumns$1 = (function (form) {
|
|
|
21471
21469
|
}
|
|
21472
21470
|
}
|
|
21473
21471
|
}, {
|
|
21474
|
-
title:
|
|
21472
|
+
title: React.createElement(TitleText$1, {
|
|
21475
21473
|
required: true
|
|
21476
21474
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
21477
21475
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -21480,7 +21478,7 @@ var useColumns$1 = (function (form) {
|
|
|
21480
21478
|
align: 'right',
|
|
21481
21479
|
render: function render(value, record) {
|
|
21482
21480
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountIncludeTax') && model !== 'prefab') {
|
|
21483
|
-
return
|
|
21481
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
21484
21482
|
initialValue: editGood.lineAmountIncludeTax,
|
|
21485
21483
|
getValueFromEvent: onNumberValueChange,
|
|
21486
21484
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -21540,7 +21538,7 @@ var useColumns$1 = (function (form) {
|
|
|
21540
21538
|
return validator;
|
|
21541
21539
|
}()
|
|
21542
21540
|
}])
|
|
21543
|
-
})(
|
|
21541
|
+
})(React.createElement(MyInput$3, {
|
|
21544
21542
|
style: {
|
|
21545
21543
|
textAlign: 'right'
|
|
21546
21544
|
},
|
|
@@ -21551,7 +21549,7 @@ var useColumns$1 = (function (form) {
|
|
|
21551
21549
|
}
|
|
21552
21550
|
})));
|
|
21553
21551
|
} else {
|
|
21554
|
-
return
|
|
21552
|
+
return React.createElement("span", {
|
|
21555
21553
|
style: {
|
|
21556
21554
|
padding: '0 10px'
|
|
21557
21555
|
}
|
|
@@ -21559,7 +21557,7 @@ var useColumns$1 = (function (form) {
|
|
|
21559
21557
|
}
|
|
21560
21558
|
}
|
|
21561
21559
|
}, {
|
|
21562
|
-
title:
|
|
21560
|
+
title: React.createElement(TitleText$1, {
|
|
21563
21561
|
required: true
|
|
21564
21562
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
21565
21563
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -21568,7 +21566,7 @@ var useColumns$1 = (function (form) {
|
|
|
21568
21566
|
width: 119,
|
|
21569
21567
|
render: function render(value, record) {
|
|
21570
21568
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountExcludeTax') && model !== 'prefab') {
|
|
21571
|
-
return
|
|
21569
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
21572
21570
|
initialValue: editGood.lineAmountExcludeTax,
|
|
21573
21571
|
getValueFromEvent: onNumberValueChange,
|
|
21574
21572
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -21603,7 +21601,7 @@ var useColumns$1 = (function (form) {
|
|
|
21603
21601
|
return validator;
|
|
21604
21602
|
}()
|
|
21605
21603
|
}])
|
|
21606
|
-
})(
|
|
21604
|
+
})(React.createElement(MyInput$3, {
|
|
21607
21605
|
style: {
|
|
21608
21606
|
textAlign: 'right'
|
|
21609
21607
|
},
|
|
@@ -21614,7 +21612,7 @@ var useColumns$1 = (function (form) {
|
|
|
21614
21612
|
}
|
|
21615
21613
|
})));
|
|
21616
21614
|
} else {
|
|
21617
|
-
return
|
|
21615
|
+
return React.createElement("span", {
|
|
21618
21616
|
style: {
|
|
21619
21617
|
padding: '0 10px'
|
|
21620
21618
|
}
|
|
@@ -21622,7 +21620,7 @@ var useColumns$1 = (function (form) {
|
|
|
21622
21620
|
}
|
|
21623
21621
|
}
|
|
21624
21622
|
}, {
|
|
21625
|
-
title:
|
|
21623
|
+
title: React.createElement(TitleText$1, {
|
|
21626
21624
|
required: true
|
|
21627
21625
|
}, "\u7A0E\u7387"),
|
|
21628
21626
|
dataIndex: 'taxRate',
|
|
@@ -21631,7 +21629,7 @@ var useColumns$1 = (function (form) {
|
|
|
21631
21629
|
width: 70,
|
|
21632
21630
|
render: function render(value, record) {
|
|
21633
21631
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('taxRate') && !(model === 'prefab' && calculateType === '3')) {
|
|
21634
|
-
return
|
|
21632
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
21635
21633
|
initialValue: editGood.taxRate,
|
|
21636
21634
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
21637
21635
|
required: true,
|
|
@@ -21640,7 +21638,7 @@ var useColumns$1 = (function (form) {
|
|
|
21640
21638
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
21641
21639
|
message: '请选择正确税率'
|
|
21642
21640
|
}])
|
|
21643
|
-
})(
|
|
21641
|
+
})(React.createElement(Select$1, {
|
|
21644
21642
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
21645
21643
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
21646
21644
|
showArrow: false,
|
|
@@ -21655,13 +21653,13 @@ var useColumns$1 = (function (form) {
|
|
|
21655
21653
|
onChangeTaxRate$1(controller, form, record);
|
|
21656
21654
|
}
|
|
21657
21655
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
21658
|
-
return
|
|
21656
|
+
return React.createElement(Select$1.Option, {
|
|
21659
21657
|
key: i,
|
|
21660
21658
|
value: e
|
|
21661
21659
|
}, e, "%");
|
|
21662
21660
|
}))));
|
|
21663
21661
|
} else {
|
|
21664
|
-
return
|
|
21662
|
+
return React.createElement("span", {
|
|
21665
21663
|
style: {
|
|
21666
21664
|
padding: '0 10px'
|
|
21667
21665
|
}
|
|
@@ -21669,7 +21667,7 @@ var useColumns$1 = (function (form) {
|
|
|
21669
21667
|
}
|
|
21670
21668
|
}
|
|
21671
21669
|
}, {
|
|
21672
|
-
title:
|
|
21670
|
+
title: React.createElement(TitleText$1, {
|
|
21673
21671
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
21674
21672
|
}, "\u7A0E\u989D"),
|
|
21675
21673
|
dataIndex: 'taxAmount',
|
|
@@ -21681,11 +21679,11 @@ var useColumns$1 = (function (form) {
|
|
|
21681
21679
|
return getFieldDecorator('taxAmount', {
|
|
21682
21680
|
initialValue: editGood.taxAmount,
|
|
21683
21681
|
rules: getReplenishRules('taxAmount')
|
|
21684
|
-
})(
|
|
21682
|
+
})(React.createElement(MyDiv$2, {
|
|
21685
21683
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
21686
21684
|
}));
|
|
21687
21685
|
} else {
|
|
21688
|
-
return
|
|
21686
|
+
return React.createElement("span", {
|
|
21689
21687
|
style: {
|
|
21690
21688
|
padding: '0 10px'
|
|
21691
21689
|
}
|
|
@@ -21752,13 +21750,13 @@ var MyInput$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
21752
21750
|
key: "render",
|
|
21753
21751
|
value: function render() {
|
|
21754
21752
|
if (this.props.loading) {
|
|
21755
|
-
return
|
|
21753
|
+
return React.createElement(Spin$1, {
|
|
21756
21754
|
size: "small"
|
|
21757
|
-
},
|
|
21755
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21758
21756
|
autoComplete: "off"
|
|
21759
21757
|
})));
|
|
21760
21758
|
} else {
|
|
21761
|
-
return
|
|
21759
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21762
21760
|
autoComplete: "off"
|
|
21763
21761
|
}));
|
|
21764
21762
|
}
|
|
@@ -21783,15 +21781,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
21783
21781
|
key: "render",
|
|
21784
21782
|
value: function render() {
|
|
21785
21783
|
if (this.props.loading) {
|
|
21786
|
-
return
|
|
21784
|
+
return React.createElement(Spin$1, {
|
|
21787
21785
|
size: "small"
|
|
21788
|
-
},
|
|
21786
|
+
}, React.createElement("span", {
|
|
21789
21787
|
style: {
|
|
21790
21788
|
padding: '0 10px'
|
|
21791
21789
|
}
|
|
21792
21790
|
}, this.props.value));
|
|
21793
21791
|
} else {
|
|
21794
|
-
return
|
|
21792
|
+
return React.createElement("span", {
|
|
21795
21793
|
style: {
|
|
21796
21794
|
padding: '0 10px'
|
|
21797
21795
|
}
|
|
@@ -21824,32 +21822,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
21824
21822
|
|
|
21825
21823
|
if (isMyShow) {
|
|
21826
21824
|
if (valueT) {
|
|
21827
|
-
return
|
|
21825
|
+
return React.createElement(Tooltip$1, {
|
|
21828
21826
|
title: valueT
|
|
21829
|
-
},
|
|
21827
|
+
}, React.createElement("span", {
|
|
21830
21828
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21831
21829
|
color: '#0074ff'
|
|
21832
21830
|
})
|
|
21833
21831
|
}, valueT));
|
|
21834
21832
|
} else {
|
|
21835
|
-
return
|
|
21833
|
+
return React.createElement(Tooltip$1, {
|
|
21836
21834
|
title: valueF
|
|
21837
|
-
},
|
|
21835
|
+
}, React.createElement("span", {
|
|
21838
21836
|
style: MyItemNameStyle
|
|
21839
21837
|
}, valueF));
|
|
21840
21838
|
}
|
|
21841
21839
|
} else {
|
|
21842
21840
|
if (valueF) {
|
|
21843
|
-
return
|
|
21841
|
+
return React.createElement(Tooltip$1, {
|
|
21844
21842
|
title: valueF
|
|
21845
|
-
},
|
|
21843
|
+
}, React.createElement("span", {
|
|
21846
21844
|
style: MyItemNameStyle
|
|
21847
21845
|
}, valueF));
|
|
21848
21846
|
} else {
|
|
21849
|
-
return
|
|
21847
|
+
return React.createElement(Tooltip$1, {
|
|
21850
21848
|
title: valueT,
|
|
21851
21849
|
style: MyItemNameStyle
|
|
21852
|
-
},
|
|
21850
|
+
}, React.createElement("span", {
|
|
21853
21851
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21854
21852
|
color: '#0074ff'
|
|
21855
21853
|
})
|
|
@@ -21871,7 +21869,7 @@ function formatSearch$1(value, search) {
|
|
|
21871
21869
|
return dcoding$1(e);
|
|
21872
21870
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
21873
21871
|
|
|
21874
|
-
return
|
|
21872
|
+
return React.createElement("span", {
|
|
21875
21873
|
dangerouslySetInnerHTML: {
|
|
21876
21874
|
__html: __html
|
|
21877
21875
|
}
|
|
@@ -22281,7 +22279,7 @@ var useRowSelection$1 = (function () {
|
|
|
22281
22279
|
};
|
|
22282
22280
|
}(), [controller]);
|
|
22283
22281
|
var columnTitle = React.useMemo(function () {
|
|
22284
|
-
return
|
|
22282
|
+
return React.createElement(Checkbox, {
|
|
22285
22283
|
onChange: onClickSelectAll,
|
|
22286
22284
|
indeterminate: indeterminate,
|
|
22287
22285
|
checked: isAll
|
|
@@ -22430,19 +22428,19 @@ var useDelRowButton$1 = (function () {
|
|
|
22430
22428
|
}, _callee2);
|
|
22431
22429
|
})), []);
|
|
22432
22430
|
var menuItem = React.useMemo(function () {
|
|
22433
|
-
if (model === 'prefab') return
|
|
22434
|
-
if (model === 'readOnly') return
|
|
22435
|
-
return
|
|
22431
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22432
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22433
|
+
return React.createElement(Menu$1.Item, {
|
|
22436
22434
|
key: "1",
|
|
22437
22435
|
onClick: onClick,
|
|
22438
22436
|
disabled: disabled
|
|
22439
22437
|
}, " \u5220\u9664\u884C ");
|
|
22440
22438
|
}, [model, onClick, disabled]);
|
|
22441
22439
|
var button = React.useMemo(function () {
|
|
22442
|
-
if (isRemRow === false) return
|
|
22443
|
-
if (model === 'prefab') return
|
|
22444
|
-
if (model === 'readOnly') return
|
|
22445
|
-
return
|
|
22440
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
22441
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22442
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22443
|
+
return React.createElement(Button$1, {
|
|
22446
22444
|
size: 'small',
|
|
22447
22445
|
onClick: onClick,
|
|
22448
22446
|
disabled: disabled
|
|
@@ -22673,16 +22671,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
22673
22671
|
}, [isAddDiscount, model]);
|
|
22674
22672
|
var button = React.useMemo(function () {
|
|
22675
22673
|
if (isEnable) {
|
|
22676
|
-
return
|
|
22674
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22677
22675
|
size: 'small',
|
|
22678
22676
|
onClick: onOpen,
|
|
22679
22677
|
disabled: disabled
|
|
22680
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
22678
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
22681
22679
|
open: open,
|
|
22682
22680
|
onClose: onClose
|
|
22683
22681
|
}));
|
|
22684
22682
|
} else {
|
|
22685
|
-
return
|
|
22683
|
+
return React.createElement(React.Fragment, null);
|
|
22686
22684
|
}
|
|
22687
22685
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
22688
22686
|
return {
|
|
@@ -22863,35 +22861,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
22863
22861
|
discolineValue: undefined
|
|
22864
22862
|
}));
|
|
22865
22863
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
22866
|
-
return
|
|
22864
|
+
return React.createElement(Drawer$1, {
|
|
22867
22865
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
22868
22866
|
placement: "right",
|
|
22869
22867
|
width: 350,
|
|
22870
22868
|
onClose: onClose,
|
|
22871
22869
|
open: open,
|
|
22872
|
-
footer:
|
|
22870
|
+
footer: React.createElement(Space, {
|
|
22873
22871
|
size: "middle",
|
|
22874
22872
|
style: {
|
|
22875
22873
|
display: 'flex',
|
|
22876
22874
|
justifyContent: 'end'
|
|
22877
22875
|
}
|
|
22878
|
-
},
|
|
22876
|
+
}, React.createElement(Button$1, {
|
|
22879
22877
|
onClick: onDefine,
|
|
22880
22878
|
type: 'primary'
|
|
22881
|
-
}, "\u786E\u5B9A"),
|
|
22879
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
22882
22880
|
onClick: onClose
|
|
22883
22881
|
}, "\u53D6\u6D88"))
|
|
22884
|
-
},
|
|
22882
|
+
}, React.createElement(Form$1, {
|
|
22885
22883
|
form: form,
|
|
22886
22884
|
layout: 'vertical',
|
|
22887
22885
|
onChange: onChangeForm
|
|
22888
|
-
},
|
|
22886
|
+
}, React.createElement(Form$1.Item, {
|
|
22889
22887
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
22890
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
22888
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
22891
22889
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
22892
22890
|
name: 'discolineType',
|
|
22893
22891
|
initialValue: '1'
|
|
22894
|
-
},
|
|
22892
|
+
}, React.createElement(Radio.Group, {
|
|
22895
22893
|
options: [{
|
|
22896
22894
|
label: '按金额折扣',
|
|
22897
22895
|
value: '1'
|
|
@@ -22899,7 +22897,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22899
22897
|
label: '按比例折扣',
|
|
22900
22898
|
value: '2'
|
|
22901
22899
|
}]
|
|
22902
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ?
|
|
22900
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? React.createElement(Form$1.Item, {
|
|
22903
22901
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22904
22902
|
name: 'discolineValue',
|
|
22905
22903
|
rules: [{
|
|
@@ -22950,11 +22948,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
22950
22948
|
return validator;
|
|
22951
22949
|
}()
|
|
22952
22950
|
}]
|
|
22953
|
-
},
|
|
22951
|
+
}, React.createElement(InputNumber, {
|
|
22954
22952
|
style: {
|
|
22955
22953
|
width: '100%'
|
|
22956
22954
|
}
|
|
22957
|
-
})) :
|
|
22955
|
+
})) : React.createElement(Form$1.Item, {
|
|
22958
22956
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22959
22957
|
name: 'discolineValue',
|
|
22960
22958
|
rules: [{
|
|
@@ -23005,7 +23003,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
23005
23003
|
return validator;
|
|
23006
23004
|
}()
|
|
23007
23005
|
}]
|
|
23008
|
-
},
|
|
23006
|
+
}, React.createElement(InputNumber, {
|
|
23009
23007
|
style: {
|
|
23010
23008
|
width: '100%'
|
|
23011
23009
|
}
|
|
@@ -23149,16 +23147,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
23149
23147
|
}, _callee2);
|
|
23150
23148
|
})), [controller]);
|
|
23151
23149
|
var menuItem = React.useMemo(function () {
|
|
23152
|
-
if (model === 'readOnly') return
|
|
23153
|
-
return
|
|
23150
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
23151
|
+
return React.createElement(Menu$1.Item, {
|
|
23154
23152
|
key: "2",
|
|
23155
23153
|
onClick: onClick,
|
|
23156
23154
|
disabled: disabled
|
|
23157
23155
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
23158
23156
|
}, [onClick, disabled, model]);
|
|
23159
23157
|
var button = React.useMemo(function () {
|
|
23160
|
-
if (model === 'readOnly') return
|
|
23161
|
-
return
|
|
23158
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
23159
|
+
return React.createElement(Button$1, {
|
|
23162
23160
|
onClick: onClick,
|
|
23163
23161
|
disabled: disabled,
|
|
23164
23162
|
size: 'small'
|
|
@@ -23220,14 +23218,14 @@ var useEmptyRefill = (function () {
|
|
|
23220
23218
|
}());
|
|
23221
23219
|
}, [controller]);
|
|
23222
23220
|
var button = React.useMemo(function () {
|
|
23223
|
-
if (model === 'readOnly') return
|
|
23224
|
-
if (model === 'prefab') return
|
|
23225
|
-
return
|
|
23221
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
23222
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
23223
|
+
return React.createElement(Popconfirm, {
|
|
23226
23224
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
23227
23225
|
onConfirm: confirm,
|
|
23228
23226
|
okText: "\u786E\u5B9A",
|
|
23229
23227
|
cancelText: "\u53D6\u6D88"
|
|
23230
|
-
},
|
|
23228
|
+
}, React.createElement(Button$1, {
|
|
23231
23229
|
size: 'small'
|
|
23232
23230
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
23233
23231
|
}, [model, confirm]);
|
|
@@ -23301,14 +23299,14 @@ function InvoiceTypeModal(props) {
|
|
|
23301
23299
|
setValues(values);
|
|
23302
23300
|
}
|
|
23303
23301
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
23304
|
-
return
|
|
23302
|
+
return React.createElement(Modal, {
|
|
23305
23303
|
title: props.modalTitle || "选择开具信息",
|
|
23306
23304
|
open: props.open,
|
|
23307
23305
|
onOk: onConfirm,
|
|
23308
23306
|
onCancel: props.onCancel,
|
|
23309
23307
|
okText: "\u786E\u5B9A",
|
|
23310
23308
|
cancelText: "\u53D6\u6D88"
|
|
23311
|
-
},
|
|
23309
|
+
}, React.createElement(Form$1, {
|
|
23312
23310
|
form: form,
|
|
23313
23311
|
layout: "vertical",
|
|
23314
23312
|
style: {
|
|
@@ -23317,13 +23315,13 @@ function InvoiceTypeModal(props) {
|
|
|
23317
23315
|
onValuesChange: function onValuesChange(_, e) {
|
|
23318
23316
|
setValues(e);
|
|
23319
23317
|
}
|
|
23320
|
-
},
|
|
23318
|
+
}, React.createElement(Row, {
|
|
23321
23319
|
gutter: [16, 16]
|
|
23322
|
-
},
|
|
23320
|
+
}, React.createElement(Col, {
|
|
23323
23321
|
span: 24
|
|
23324
|
-
},
|
|
23322
|
+
}, React.createElement(Form$1.Item, {
|
|
23325
23323
|
name: 'billingType'
|
|
23326
|
-
},
|
|
23324
|
+
}, React.createElement(Radio.Group, {
|
|
23327
23325
|
size: 'large',
|
|
23328
23326
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
23329
23327
|
optionType: "button",
|
|
@@ -23336,28 +23334,28 @@ function InvoiceTypeModal(props) {
|
|
|
23336
23334
|
label: '税控发票',
|
|
23337
23335
|
value: 'taxation'
|
|
23338
23336
|
}]
|
|
23339
|
-
}))),
|
|
23337
|
+
}))), React.createElement(Col, {
|
|
23340
23338
|
span: 12
|
|
23341
|
-
},
|
|
23339
|
+
}, React.createElement(Form$1.Item, {
|
|
23342
23340
|
name: 'invoiceType',
|
|
23343
23341
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
23344
23342
|
rules: [{
|
|
23345
23343
|
required: true,
|
|
23346
23344
|
message: '选择票类必填'
|
|
23347
23345
|
}]
|
|
23348
|
-
},
|
|
23346
|
+
}, React.createElement(Select$1, {
|
|
23349
23347
|
size: 'large',
|
|
23350
23348
|
allowClear: true,
|
|
23351
23349
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
23352
23350
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
23353
23351
|
options: props.invoiceTypeOptions,
|
|
23354
23352
|
onChange: onInvoiceTypeChange
|
|
23355
|
-
}))),
|
|
23353
|
+
}))), React.createElement(Col, {
|
|
23356
23354
|
span: 12
|
|
23357
|
-
},
|
|
23355
|
+
}, React.createElement(Form$1.Item, {
|
|
23358
23356
|
name: 'business',
|
|
23359
23357
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
23360
|
-
},
|
|
23358
|
+
}, React.createElement(Select$1, {
|
|
23361
23359
|
size: 'large',
|
|
23362
23360
|
allowClear: true,
|
|
23363
23361
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -23402,11 +23400,11 @@ var useReselectInvoiceType = (function () {
|
|
|
23402
23400
|
return true;
|
|
23403
23401
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
23404
23402
|
var button = React.useMemo(function () {
|
|
23405
|
-
if (isEnable === false) return
|
|
23406
|
-
return
|
|
23403
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
23404
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
23407
23405
|
size: 'small',
|
|
23408
23406
|
onClick: onOpen
|
|
23409
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
23407
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
23410
23408
|
open: open,
|
|
23411
23409
|
onCancel: onClose,
|
|
23412
23410
|
onOk: onOk
|
|
@@ -23434,7 +23432,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
23434
23432
|
_createClass(GoodsList, [{
|
|
23435
23433
|
key: "render",
|
|
23436
23434
|
value: function render() {
|
|
23437
|
-
return
|
|
23435
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
23438
23436
|
}
|
|
23439
23437
|
}]);
|
|
23440
23438
|
|
|
@@ -23635,20 +23633,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
23635
23633
|
};
|
|
23636
23634
|
}())();
|
|
23637
23635
|
}, [controller, props.isSwitchTax]);
|
|
23638
|
-
return
|
|
23636
|
+
return React.createElement("div", {
|
|
23639
23637
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
23640
23638
|
onClick: function onClick(e) {
|
|
23641
23639
|
e.stopPropagation();
|
|
23642
23640
|
}
|
|
23643
|
-
},
|
|
23641
|
+
}, React.createElement("div", {
|
|
23644
23642
|
className: "kts-invoice-operate-goods-list-able"
|
|
23645
|
-
},
|
|
23643
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
23646
23644
|
style: {
|
|
23647
23645
|
flex: 1
|
|
23648
23646
|
}
|
|
23649
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
23647
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
23650
23648
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
23651
|
-
},
|
|
23649
|
+
}, React.createElement(TableVirtual$1, {
|
|
23652
23650
|
size: "small",
|
|
23653
23651
|
rowKey: "$index",
|
|
23654
23652
|
pagination: false,
|
|
@@ -23670,7 +23668,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
23670
23668
|
}
|
|
23671
23669
|
};
|
|
23672
23670
|
}
|
|
23673
|
-
})),
|
|
23671
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
23674
23672
|
});
|
|
23675
23673
|
|
|
23676
23674
|
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";
|
|
@@ -23692,31 +23690,31 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23692
23690
|
}, [model]); // 注册 form
|
|
23693
23691
|
|
|
23694
23692
|
controller.useForm('realEstateInfo', form);
|
|
23695
|
-
return
|
|
23693
|
+
return React.createElement("div", {
|
|
23696
23694
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
23697
|
-
},
|
|
23695
|
+
}, React.createElement("div", {
|
|
23698
23696
|
className: 'real-estate-info-digtal-label'
|
|
23699
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"),
|
|
23697
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), React.createElement(Row$1, {
|
|
23700
23698
|
gutter: [17, 0]
|
|
23701
|
-
},
|
|
23699
|
+
}, React.createElement(Col$1, {
|
|
23702
23700
|
span: 6
|
|
23703
|
-
},
|
|
23701
|
+
}, React.createElement(Form.Item, {
|
|
23704
23702
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
23705
23703
|
}, getFieldDecorator('realEstateAddress', {
|
|
23706
23704
|
rules: readOnly ? [] : [{
|
|
23707
23705
|
required: true,
|
|
23708
23706
|
message: '请选择不动产地址'
|
|
23709
23707
|
}]
|
|
23710
|
-
})(readOnly ?
|
|
23708
|
+
})(readOnly ? React.createElement(MyArrString, null) : React.createElement(Cascader, {
|
|
23711
23709
|
style: {
|
|
23712
23710
|
width: '100%'
|
|
23713
23711
|
},
|
|
23714
23712
|
options: props.realEstateAddressOptions,
|
|
23715
23713
|
fieldNames: props.realEstateAddressFieldNames,
|
|
23716
23714
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
23717
|
-
})))),
|
|
23715
|
+
})))), React.createElement(Col$1, {
|
|
23718
23716
|
span: 6
|
|
23719
|
-
},
|
|
23717
|
+
}, React.createElement(Form.Item, {
|
|
23720
23718
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
23721
23719
|
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
23722
23720
|
rules: readOnly ? [] : [{
|
|
@@ -23731,43 +23729,43 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23731
23729
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
23732
23730
|
}
|
|
23733
23731
|
}]
|
|
23734
|
-
})(readOnly ?
|
|
23732
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23735
23733
|
autoComplete: 'off',
|
|
23736
23734
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
23737
|
-
})))),
|
|
23735
|
+
})))), React.createElement(Col$1, {
|
|
23738
23736
|
span: 6
|
|
23739
|
-
},
|
|
23737
|
+
}, React.createElement(Form.Item, {
|
|
23740
23738
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
23741
23739
|
}, getFieldDecorator('leaseTerm', {
|
|
23742
23740
|
rules: readOnly ? [] : [{
|
|
23743
23741
|
required: true,
|
|
23744
23742
|
message: '请输入租赁期'
|
|
23745
23743
|
}]
|
|
23746
|
-
})(readOnly ?
|
|
23744
|
+
})(readOnly ? React.createElement(MyArrMoment, null) : React.createElement(RangePicker, {
|
|
23747
23745
|
style: {
|
|
23748
23746
|
width: '100%'
|
|
23749
23747
|
}
|
|
23750
|
-
})))),
|
|
23748
|
+
})))), React.createElement(Col$1, {
|
|
23751
23749
|
span: 6
|
|
23752
|
-
},
|
|
23750
|
+
}, React.createElement(Form.Item, {
|
|
23753
23751
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
23754
23752
|
}, getFieldDecorator('crossCitiesSign', {
|
|
23755
23753
|
rules: readOnly ? [] : [{
|
|
23756
23754
|
required: true,
|
|
23757
23755
|
message: '请选择跨地(市)标志'
|
|
23758
23756
|
}]
|
|
23759
|
-
})(readOnly ?
|
|
23757
|
+
})(readOnly ? React.createElement(MyNY, null) : React.createElement(Select$2, {
|
|
23760
23758
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23761
23759
|
style: {
|
|
23762
23760
|
width: '100%'
|
|
23763
23761
|
}
|
|
23764
|
-
},
|
|
23762
|
+
}, React.createElement(Select$2.Option, {
|
|
23765
23763
|
value: 'Y'
|
|
23766
|
-
}, "\u662F"),
|
|
23764
|
+
}, "\u662F"), React.createElement(Select$2.Option, {
|
|
23767
23765
|
value: 'N'
|
|
23768
|
-
}, "\u5426"))))),
|
|
23766
|
+
}, "\u5426"))))), React.createElement(Col$1, {
|
|
23769
23767
|
span: 6
|
|
23770
|
-
},
|
|
23768
|
+
}, React.createElement(Form.Item, {
|
|
23771
23769
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
23772
23770
|
}, getFieldDecorator('realEstateNumber', {
|
|
23773
23771
|
rules: readOnly ? [] : [{
|
|
@@ -23777,36 +23775,36 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23777
23775
|
max: 40,
|
|
23778
23776
|
message: '证书编号最多40个字符'
|
|
23779
23777
|
}]
|
|
23780
|
-
})(readOnly ?
|
|
23778
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23781
23779
|
autoComplete: 'off',
|
|
23782
23780
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
23783
|
-
})))),
|
|
23781
|
+
})))), React.createElement(Col$1, {
|
|
23784
23782
|
span: 6
|
|
23785
|
-
},
|
|
23783
|
+
}, React.createElement(Form.Item, {
|
|
23786
23784
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
23787
23785
|
}, getFieldDecorator('realEstateUnit', {
|
|
23788
23786
|
rules: readOnly ? [] : [{
|
|
23789
23787
|
required: true,
|
|
23790
23788
|
message: '请选择面积单位'
|
|
23791
23789
|
}]
|
|
23792
|
-
})(readOnly ?
|
|
23790
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Select$2, {
|
|
23793
23791
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23794
23792
|
style: {
|
|
23795
23793
|
width: '100%'
|
|
23796
23794
|
}
|
|
23797
|
-
},
|
|
23795
|
+
}, React.createElement(Select$2.Option, {
|
|
23798
23796
|
value: "\u5E73\u65B9\u5343\u7C73"
|
|
23799
|
-
}, "\u5E73\u65B9\u5343\u7C73"),
|
|
23797
|
+
}, "\u5E73\u65B9\u5343\u7C73"), React.createElement(Select$2.Option, {
|
|
23800
23798
|
value: "\u5E73\u65B9\u7C73"
|
|
23801
|
-
}, "\u5E73\u65B9\u7C73"),
|
|
23799
|
+
}, "\u5E73\u65B9\u7C73"), React.createElement(Select$2.Option, {
|
|
23802
23800
|
value: "\u516C\u9877"
|
|
23803
|
-
}, "\u516C\u9877"),
|
|
23801
|
+
}, "\u516C\u9877"), React.createElement(Select$2.Option, {
|
|
23804
23802
|
value: "\u4EA9"
|
|
23805
|
-
}, "\u4EA9"),
|
|
23803
|
+
}, "\u4EA9"), React.createElement(Select$2.Option, {
|
|
23806
23804
|
value: "h\u33A1"
|
|
23807
|
-
}, "h\u33A1"),
|
|
23805
|
+
}, "h\u33A1"), React.createElement(Select$2.Option, {
|
|
23808
23806
|
value: "k\u33A1"
|
|
23809
|
-
}, "k\u33A1"),
|
|
23807
|
+
}, "k\u33A1"), React.createElement(Select$2.Option, {
|
|
23810
23808
|
value: "\u33A1"
|
|
23811
23809
|
}, "\u33A1")))))));
|
|
23812
23810
|
});
|
|
@@ -23825,7 +23823,7 @@ var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
23825
23823
|
_createClass(MyDiv, [{
|
|
23826
23824
|
key: "render",
|
|
23827
23825
|
value: function render() {
|
|
23828
|
-
return
|
|
23826
|
+
return React.createElement("div", {
|
|
23829
23827
|
style: this.props.style
|
|
23830
23828
|
}, this.props.value);
|
|
23831
23829
|
}
|
|
@@ -23850,7 +23848,7 @@ var MyArrString = /*#__PURE__*/function (_React$Component2) {
|
|
|
23850
23848
|
value: function render() {
|
|
23851
23849
|
var _this$props$value;
|
|
23852
23850
|
|
|
23853
|
-
return
|
|
23851
|
+
return React.createElement("div", {
|
|
23854
23852
|
style: this.props.style
|
|
23855
23853
|
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
23856
23854
|
return !!e;
|
|
@@ -23877,14 +23875,14 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
23877
23875
|
value: function render() {
|
|
23878
23876
|
var _this$props$value2 = this.props.value,
|
|
23879
23877
|
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
23880
|
-
return
|
|
23878
|
+
return React.createElement("div", {
|
|
23881
23879
|
style: this.props.style
|
|
23882
|
-
},
|
|
23880
|
+
}, React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), React.createElement("span", {
|
|
23883
23881
|
style: {
|
|
23884
23882
|
color: '#9F603D',
|
|
23885
23883
|
fontWeight: 600
|
|
23886
23884
|
}
|
|
23887
|
-
}, " - "),
|
|
23885
|
+
}, " - "), React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23888
23886
|
}
|
|
23889
23887
|
}]);
|
|
23890
23888
|
|
|
@@ -23905,7 +23903,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
23905
23903
|
_createClass(MyNY, [{
|
|
23906
23904
|
key: "render",
|
|
23907
23905
|
value: function render() {
|
|
23908
|
-
return
|
|
23906
|
+
return React.createElement("div", {
|
|
23909
23907
|
style: this.props.style
|
|
23910
23908
|
}, this.props.value === 'Y' ? '是' : '否');
|
|
23911
23909
|
}
|
|
@@ -23945,7 +23943,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23945
23943
|
};
|
|
23946
23944
|
}())();
|
|
23947
23945
|
}, [controller]);
|
|
23948
|
-
return
|
|
23946
|
+
return React.createElement(Drawer, {
|
|
23949
23947
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
23950
23948
|
placement: "right",
|
|
23951
23949
|
// closable={false}
|
|
@@ -23953,7 +23951,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23953
23951
|
width: 983,
|
|
23954
23952
|
onClose: onClose,
|
|
23955
23953
|
visible: visible
|
|
23956
|
-
}, topExpand,
|
|
23954
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
23957
23955
|
});
|
|
23958
23956
|
|
|
23959
23957
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -23974,7 +23972,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
23974
23972
|
}
|
|
23975
23973
|
});
|
|
23976
23974
|
}, [controller]);
|
|
23977
|
-
return
|
|
23975
|
+
return React.createElement(Table$1, {
|
|
23978
23976
|
bordered: true,
|
|
23979
23977
|
size: "small",
|
|
23980
23978
|
columns: columns,
|
|
@@ -24074,7 +24072,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
24074
24072
|
};
|
|
24075
24073
|
}())();
|
|
24076
24074
|
}, [controller]);
|
|
24077
|
-
return
|
|
24075
|
+
return React.createElement(Drawer, {
|
|
24078
24076
|
title: "\u5546\u54C1\u5217\u8868",
|
|
24079
24077
|
placement: "right",
|
|
24080
24078
|
// closable={false}
|
|
@@ -24082,11 +24080,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
24082
24080
|
width: 983,
|
|
24083
24081
|
onClose: onClose,
|
|
24084
24082
|
visible: visible
|
|
24085
|
-
}, topExpand &&
|
|
24083
|
+
}, topExpand && React.createElement("div", {
|
|
24086
24084
|
style: {
|
|
24087
24085
|
marginBottom: 10
|
|
24088
24086
|
}
|
|
24089
|
-
}, topExpand),
|
|
24087
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
24090
24088
|
});
|
|
24091
24089
|
|
|
24092
24090
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -24108,7 +24106,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
24108
24106
|
}
|
|
24109
24107
|
});
|
|
24110
24108
|
}, [controller]);
|
|
24111
|
-
return
|
|
24109
|
+
return React.createElement(Table$1, {
|
|
24112
24110
|
bordered: true,
|
|
24113
24111
|
size: "small",
|
|
24114
24112
|
columns: columns,
|
|
@@ -24416,7 +24414,7 @@ var EndowCodeDrawer = (function () {
|
|
|
24416
24414
|
setDefaultValue(undefined);
|
|
24417
24415
|
}
|
|
24418
24416
|
}, [visible]);
|
|
24419
|
-
return
|
|
24417
|
+
return React.createElement(Drawer, {
|
|
24420
24418
|
title: "\u8D4B\u7801",
|
|
24421
24419
|
placement: "right",
|
|
24422
24420
|
destroyOnClose: true,
|
|
@@ -24424,7 +24422,7 @@ var EndowCodeDrawer = (function () {
|
|
|
24424
24422
|
width: 383,
|
|
24425
24423
|
onClose: onClose,
|
|
24426
24424
|
visible: visible
|
|
24427
|
-
}, defaultValue &&
|
|
24425
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
24428
24426
|
defaultValue: defaultValue
|
|
24429
24427
|
}));
|
|
24430
24428
|
});
|
|
@@ -24574,7 +24572,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24574
24572
|
};
|
|
24575
24573
|
}());
|
|
24576
24574
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
24577
|
-
return
|
|
24575
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
24578
24576
|
showSearch: true,
|
|
24579
24577
|
showArrow: false,
|
|
24580
24578
|
notFoundContent: null,
|
|
@@ -24582,7 +24580,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24582
24580
|
onSearch: onSearch,
|
|
24583
24581
|
onChange: onChange
|
|
24584
24582
|
}), dataSource.map(function (e) {
|
|
24585
|
-
return
|
|
24583
|
+
return React.createElement(Select.Option, {
|
|
24586
24584
|
key: e.value,
|
|
24587
24585
|
value: e.value
|
|
24588
24586
|
}, e.label);
|
|
@@ -24612,14 +24610,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24612
24610
|
|
|
24613
24611
|
|
|
24614
24612
|
var createTreeNode = React.useCallback(function () {
|
|
24615
|
-
if (!list) return
|
|
24613
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
24616
24614
|
return ctn(list);
|
|
24617
24615
|
|
|
24618
24616
|
function title(label) {
|
|
24619
24617
|
if (!filter) return label;
|
|
24620
24618
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
24621
24619
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
24622
|
-
return
|
|
24620
|
+
return React.createElement("span", {
|
|
24623
24621
|
dangerouslySetInnerHTML: {
|
|
24624
24622
|
__html: label
|
|
24625
24623
|
}
|
|
@@ -24628,11 +24626,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24628
24626
|
|
|
24629
24627
|
function ctn(l) {
|
|
24630
24628
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
24631
|
-
if (!l || !l.length) return [
|
|
24629
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
24632
24630
|
return l.filter(function (e) {
|
|
24633
24631
|
return e.pid === p;
|
|
24634
24632
|
}).map(function (e) {
|
|
24635
|
-
return
|
|
24633
|
+
return React.createElement(TreeNode, {
|
|
24636
24634
|
title: title(e.label),
|
|
24637
24635
|
key: e.id
|
|
24638
24636
|
}, ctn(l, e.id));
|
|
@@ -24745,46 +24743,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24745
24743
|
setList([]);
|
|
24746
24744
|
}
|
|
24747
24745
|
}, [visible]);
|
|
24748
|
-
return
|
|
24746
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24749
24747
|
readOnly: true,
|
|
24750
24748
|
value: props.value,
|
|
24751
|
-
addonAfter:
|
|
24749
|
+
addonAfter: React.createElement(Button, {
|
|
24752
24750
|
size: "small",
|
|
24753
24751
|
type: "link",
|
|
24754
24752
|
onClick: function onClick() {
|
|
24755
24753
|
setVisible(true);
|
|
24756
24754
|
}
|
|
24757
24755
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
24758
|
-
}),
|
|
24756
|
+
}), React.createElement(Drawer, {
|
|
24759
24757
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24760
24758
|
visible: visible,
|
|
24761
24759
|
width: 500,
|
|
24762
24760
|
onClose: function onClose() {
|
|
24763
24761
|
setVisible(false);
|
|
24764
24762
|
}
|
|
24765
|
-
},
|
|
24763
|
+
}, React.createElement(Form, {
|
|
24766
24764
|
key: "".concat(visible)
|
|
24767
|
-
},
|
|
24765
|
+
}, React.createElement(Form.Item, {
|
|
24768
24766
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
24769
|
-
},
|
|
24767
|
+
}, React.createElement(Input, {
|
|
24770
24768
|
onChange: function onChange(e) {
|
|
24771
24769
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24772
24770
|
val: e.target.value
|
|
24773
24771
|
}));
|
|
24774
24772
|
}
|
|
24775
|
-
})),
|
|
24773
|
+
})), React.createElement(Form.Item, {
|
|
24776
24774
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
24777
|
-
},
|
|
24775
|
+
}, React.createElement(Input, {
|
|
24778
24776
|
onChange: function onChange(e) {
|
|
24779
24777
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24780
24778
|
taxCategoryCode: e.target.value
|
|
24781
24779
|
}));
|
|
24782
24780
|
}
|
|
24783
|
-
}))), list && list.length > 0 ?
|
|
24781
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
24784
24782
|
defaultExpandAll: true,
|
|
24785
24783
|
selectedKeys: [],
|
|
24786
24784
|
onSelect: onSelect
|
|
24787
|
-
}, createTreeNode()) :
|
|
24785
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
24788
24786
|
style: {
|
|
24789
24787
|
color: '#00000073'
|
|
24790
24788
|
}
|
|
@@ -24908,7 +24906,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24908
24906
|
}
|
|
24909
24907
|
}, _callee11);
|
|
24910
24908
|
})), []);
|
|
24911
|
-
var
|
|
24909
|
+
var onSubmit = React.useCallback(function (key, info) {
|
|
24912
24910
|
// 根据税编改变税率列表
|
|
24913
24911
|
// 如果只有一个,默认选中,有多个时,置空,用户手选
|
|
24914
24912
|
if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
|
|
@@ -24996,8 +24994,10 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24996
24994
|
return function (_x10) {
|
|
24997
24995
|
return _ref14.apply(this, arguments);
|
|
24998
24996
|
};
|
|
24999
|
-
}());
|
|
25000
|
-
|
|
24997
|
+
}()); // setOpen(false);
|
|
24998
|
+
}, [controller, actions]);
|
|
24999
|
+
var onSelect = React.useCallback(function (key, info) {
|
|
25000
|
+
setInfo(info.node); // setOpen(false);
|
|
25001
25001
|
}, [controller, actions]);
|
|
25002
25002
|
|
|
25003
25003
|
var optimizeTreeData = function optimizeTreeData(data) {
|
|
@@ -25029,14 +25029,21 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25029
25029
|
return data;
|
|
25030
25030
|
};
|
|
25031
25031
|
|
|
25032
|
-
|
|
25032
|
+
var _React$useState19 = React.useState({}),
|
|
25033
|
+
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
25034
|
+
info = _React$useState20[0],
|
|
25035
|
+
setInfo = _React$useState20[1];
|
|
25036
|
+
|
|
25037
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
25033
25038
|
readOnly: true,
|
|
25034
25039
|
onClick: onClick,
|
|
25035
25040
|
value: props.value
|
|
25036
|
-
}),
|
|
25041
|
+
}), React.createElement(TaxClassificationModal, {
|
|
25037
25042
|
list: list,
|
|
25038
25043
|
open: open,
|
|
25044
|
+
info: info,
|
|
25039
25045
|
onSelect: onSelect,
|
|
25046
|
+
onSubmit: onSubmit,
|
|
25040
25047
|
onCancel: function onCancel() {
|
|
25041
25048
|
setOpen(false);
|
|
25042
25049
|
},
|
|
@@ -25045,10 +25052,10 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25045
25052
|
}));
|
|
25046
25053
|
}, [controller, actions]); // 是否享受优惠政策
|
|
25047
25054
|
|
|
25048
|
-
var _React$
|
|
25049
|
-
_React$
|
|
25050
|
-
favouredPolicyMark = _React$
|
|
25051
|
-
setFavouredPolicyMark = _React$
|
|
25055
|
+
var _React$useState21 = React.useState(0),
|
|
25056
|
+
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
25057
|
+
favouredPolicyMark = _React$useState22[0],
|
|
25058
|
+
setFavouredPolicyMark = _React$useState22[1]; // 确定
|
|
25052
25059
|
|
|
25053
25060
|
|
|
25054
25061
|
var onSubmit = React.useCallback(function (values) {
|
|
@@ -25155,14 +25162,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25155
25162
|
React.useEffect(function () {
|
|
25156
25163
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
25157
25164
|
}, [controller]);
|
|
25158
|
-
return
|
|
25165
|
+
return React.createElement(SchemaForm, {
|
|
25159
25166
|
actions: actions,
|
|
25160
25167
|
previewPlaceholder: " ",
|
|
25161
25168
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
25162
25169
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
25163
25170
|
}),
|
|
25164
25171
|
effects: effects
|
|
25165
|
-
},
|
|
25172
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
25166
25173
|
name: "taxClassificationCode",
|
|
25167
25174
|
type: "showSearch",
|
|
25168
25175
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -25172,13 +25179,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25172
25179
|
message: '请选择税收分类编码',
|
|
25173
25180
|
required: true
|
|
25174
25181
|
}]
|
|
25175
|
-
}),
|
|
25182
|
+
}), React.createElement(SchemaMarkupField, {
|
|
25176
25183
|
name: "shorthand",
|
|
25177
25184
|
type: "string",
|
|
25178
25185
|
readOnly: true,
|
|
25179
25186
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
25180
25187
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
25181
|
-
}),
|
|
25188
|
+
}), React.createElement(SchemaMarkupField, {
|
|
25182
25189
|
name: "taxRate",
|
|
25183
25190
|
type: "string",
|
|
25184
25191
|
title: "\u7A0E\u7387",
|
|
@@ -25191,7 +25198,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25191
25198
|
message: '请选择税率',
|
|
25192
25199
|
required: true
|
|
25193
25200
|
}]
|
|
25194
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
25201
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
25195
25202
|
name: "taxFreeType",
|
|
25196
25203
|
type: "string",
|
|
25197
25204
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -25204,7 +25211,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25204
25211
|
message: '请选择免税类型',
|
|
25205
25212
|
required: true
|
|
25206
25213
|
}]
|
|
25207
|
-
}),
|
|
25214
|
+
}), React.createElement(SchemaMarkupField, {
|
|
25208
25215
|
name: "favouredPolicyMark",
|
|
25209
25216
|
type: "number",
|
|
25210
25217
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -25223,7 +25230,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25223
25230
|
message: '请选择是否享受优惠政策',
|
|
25224
25231
|
required: true
|
|
25225
25232
|
}]
|
|
25226
|
-
}), favouredPolicyMark === 1 &&
|
|
25233
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
25227
25234
|
name: "favouredPolicyName",
|
|
25228
25235
|
type: "string",
|
|
25229
25236
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -25236,14 +25243,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
25236
25243
|
message: '请选择是否享受优惠政策',
|
|
25237
25244
|
required: true
|
|
25238
25245
|
}]
|
|
25239
|
-
})),
|
|
25246
|
+
})), React.createElement("span", {
|
|
25240
25247
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
25241
|
-
},
|
|
25248
|
+
}, React.createElement(Button, {
|
|
25242
25249
|
onClick: function onClick() {
|
|
25243
25250
|
actions.submit(onSubmit);
|
|
25244
25251
|
},
|
|
25245
25252
|
type: "primary"
|
|
25246
|
-
}, "\u786E\u5B9A"),
|
|
25253
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
25247
25254
|
onClick: function onClick() {
|
|
25248
25255
|
controller.pipeline( /*#__PURE__*/function () {
|
|
25249
25256
|
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
@@ -25403,53 +25410,53 @@ function AddComparisonDrawer() {
|
|
|
25403
25410
|
}));
|
|
25404
25411
|
}
|
|
25405
25412
|
}, [good]);
|
|
25406
|
-
return
|
|
25413
|
+
return React.createElement(Drawer$1, {
|
|
25407
25414
|
width: 500,
|
|
25408
25415
|
onClose: onClose,
|
|
25409
25416
|
placement: "right",
|
|
25410
25417
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
25411
25418
|
visible: !!good,
|
|
25412
|
-
footer:
|
|
25419
|
+
footer: React.createElement("div", {
|
|
25413
25420
|
style: {
|
|
25414
25421
|
display: 'flex',
|
|
25415
25422
|
justifyContent: 'flex-end',
|
|
25416
25423
|
gap: 10
|
|
25417
25424
|
}
|
|
25418
|
-
},
|
|
25425
|
+
}, React.createElement(Button, {
|
|
25419
25426
|
type: "primary",
|
|
25420
25427
|
onClick: onSubmit
|
|
25421
|
-
}, "\u63D0\u4EA4"),
|
|
25428
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
25422
25429
|
onClick: onClose
|
|
25423
25430
|
}, "\u53D6\u6D88"))
|
|
25424
|
-
}, !!good &&
|
|
25431
|
+
}, !!good && React.createElement(Form$1, {
|
|
25425
25432
|
layout: "vertical",
|
|
25426
25433
|
style: {
|
|
25427
25434
|
flex: 1
|
|
25428
25435
|
},
|
|
25429
25436
|
form: form
|
|
25430
|
-
},
|
|
25437
|
+
}, React.createElement(Row$2, {
|
|
25431
25438
|
gutter: [8, 8]
|
|
25432
|
-
},
|
|
25439
|
+
}, React.createElement(Col$2, {
|
|
25433
25440
|
span: 12
|
|
25434
|
-
},
|
|
25441
|
+
}, React.createElement(Form$1.Item, {
|
|
25435
25442
|
name: "itemNameSelf",
|
|
25436
25443
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
25437
|
-
},
|
|
25444
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25438
25445
|
span: 12
|
|
25439
|
-
},
|
|
25446
|
+
}, React.createElement(Form$1.Item, {
|
|
25440
25447
|
name: "itemName",
|
|
25441
25448
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
25442
|
-
},
|
|
25449
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25443
25450
|
span: 12
|
|
25444
|
-
},
|
|
25451
|
+
}, React.createElement(Form$1.Item, {
|
|
25445
25452
|
name: 'itemModelNameSelf',
|
|
25446
25453
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
25447
|
-
},
|
|
25454
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25448
25455
|
span: 12
|
|
25449
|
-
},
|
|
25456
|
+
}, React.createElement(Form$1.Item, {
|
|
25450
25457
|
name: "itemModelName",
|
|
25451
25458
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
25452
|
-
},
|
|
25459
|
+
}, React.createElement(Input, null))))));
|
|
25453
25460
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
25454
25461
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
25455
25462
|
// form.validateFields((err, values) => {
|
|
@@ -25460,7 +25467,7 @@ function AddComparisonDrawer() {
|
|
|
25460
25467
|
|
|
25461
25468
|
/** 发票组件的上下文 */
|
|
25462
25469
|
|
|
25463
|
-
var InvoiceContext =
|
|
25470
|
+
var InvoiceContext = React.createContext(undefined);
|
|
25464
25471
|
|
|
25465
25472
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
25466
25473
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -25509,9 +25516,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25509
25516
|
/** 获取控制器钩子 */
|
|
25510
25517
|
function render() {
|
|
25511
25518
|
if (this.props.invoiceType === 'digtal') {
|
|
25512
|
-
return
|
|
25519
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
25513
25520
|
} else {
|
|
25514
|
-
return
|
|
25521
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
25515
25522
|
}
|
|
25516
25523
|
}
|
|
25517
25524
|
}]);
|
|
@@ -25555,10 +25562,10 @@ var Main$4 = function Main(props) {
|
|
|
25555
25562
|
React.useEffect(function () {
|
|
25556
25563
|
setKey(key + 1);
|
|
25557
25564
|
}, [controller]);
|
|
25558
|
-
return
|
|
25565
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
25559
25566
|
key: key,
|
|
25560
25567
|
value: controller
|
|
25561
|
-
},
|
|
25568
|
+
}, React.createElement("div", {
|
|
25562
25569
|
className: "kts-invoice-operate",
|
|
25563
25570
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
25564
25571
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -25580,17 +25587,17 @@ var Main$4 = function Main(props) {
|
|
|
25580
25587
|
return _ref.apply(this, arguments);
|
|
25581
25588
|
};
|
|
25582
25589
|
}())
|
|
25583
|
-
}, props.invoiceHeader ||
|
|
25590
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
25584
25591
|
/** 发票头 */
|
|
25585
|
-
, props.buyer ||
|
|
25592
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
25586
25593
|
/** 购买方 */
|
|
25587
|
-
, props.goodsList ||
|
|
25594
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
25588
25595
|
/** 货物列表 */
|
|
25589
|
-
, props.seller ||
|
|
25596
|
+
, props.seller || React.createElement(Buyer, null)
|
|
25590
25597
|
/** 销售方 */
|
|
25591
|
-
, props.sign ||
|
|
25598
|
+
, props.sign || React.createElement(Sign, null)
|
|
25592
25599
|
/** 落款 */
|
|
25593
|
-
, props.footExpand),
|
|
25600
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
25594
25601
|
};
|
|
25595
25602
|
/** 数电 */
|
|
25596
25603
|
|
|
@@ -25609,10 +25616,10 @@ var Digtal = function Digtal(props) {
|
|
|
25609
25616
|
React.useEffect(function () {
|
|
25610
25617
|
setKey(key + 1);
|
|
25611
25618
|
}, [controller]);
|
|
25612
|
-
return
|
|
25619
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
25613
25620
|
key: key,
|
|
25614
25621
|
value: controller
|
|
25615
|
-
},
|
|
25622
|
+
}, React.createElement("div", {
|
|
25616
25623
|
className: "kts-invoice-operate-digtal",
|
|
25617
25624
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
25618
25625
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -25634,22 +25641,27 @@ var Digtal = function Digtal(props) {
|
|
|
25634
25641
|
return _ref2.apply(this, arguments);
|
|
25635
25642
|
};
|
|
25636
25643
|
}())
|
|
25637
|
-
}, props.invoiceHeader ||
|
|
25644
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
25638
25645
|
/** 发票头 */
|
|
25639
|
-
,
|
|
25646
|
+
, React.createElement("div", {
|
|
25640
25647
|
className: 'kts-invoice-operate-digtal-cont'
|
|
25641
|
-
}, props.stakeholder ||
|
|
25648
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
25642
25649
|
/** 干系人 */
|
|
25643
|
-
, props.goodsList ||
|
|
25650
|
+
, props.goodsList || React.createElement(GoodsList$1, null)
|
|
25644
25651
|
/** 货物列表 */
|
|
25645
25652
|
), props.specialInfor
|
|
25646
25653
|
/** 特殊信息 */
|
|
25647
|
-
, props.sign ||
|
|
25654
|
+
, props.sign || React.createElement(SignDigtal, null)
|
|
25648
25655
|
/** 落款 */
|
|
25649
|
-
),
|
|
25656
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
25650
25657
|
};
|
|
25651
25658
|
|
|
25659
|
+
var css_248z$t = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n";
|
|
25660
|
+
styleInject(css_248z$t);
|
|
25661
|
+
|
|
25652
25662
|
function TaxClassificationModal(props) {
|
|
25663
|
+
var _props$info2, _props$info3;
|
|
25664
|
+
|
|
25653
25665
|
var _Form$useForm = Form$1.useForm(),
|
|
25654
25666
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
25655
25667
|
form = _Form$useForm2[0];
|
|
@@ -25686,30 +25698,117 @@ function TaxClassificationModal(props) {
|
|
|
25686
25698
|
form.resetFields();
|
|
25687
25699
|
}, 500);
|
|
25688
25700
|
}
|
|
25689
|
-
}, [form, props.open]);
|
|
25690
|
-
|
|
25701
|
+
}, [form, props.open]); // const [childrenDrawer, setChildrenDrawer] = React.useState(false);
|
|
25702
|
+
|
|
25703
|
+
var showChildrenDrawer = function showChildrenDrawer(key, info) {
|
|
25704
|
+
if (props.onSelect) {
|
|
25705
|
+
props.onSelect(key, info);
|
|
25706
|
+
} // setChildrenDrawer(true);
|
|
25707
|
+
|
|
25708
|
+
};
|
|
25709
|
+
|
|
25710
|
+
var onChildrenDrawerClose = function onChildrenDrawerClose() {
|
|
25711
|
+
// setChildrenDrawer(false);
|
|
25712
|
+
if (props.onCancel) {
|
|
25713
|
+
props.onCancel();
|
|
25714
|
+
}
|
|
25715
|
+
};
|
|
25716
|
+
|
|
25717
|
+
var layout = {
|
|
25718
|
+
labelCol: {
|
|
25719
|
+
span: 8
|
|
25720
|
+
},
|
|
25721
|
+
wrapperCol: {
|
|
25722
|
+
span: 16
|
|
25723
|
+
}
|
|
25724
|
+
};
|
|
25725
|
+
|
|
25726
|
+
var sureTaxCodeSubmit = function sureTaxCodeSubmit() {
|
|
25727
|
+
if (props.onCancel) {
|
|
25728
|
+
props.onCancel();
|
|
25729
|
+
}
|
|
25730
|
+
|
|
25731
|
+
onChildrenDrawerClose();
|
|
25732
|
+
|
|
25733
|
+
if (props.onSubmit) {
|
|
25734
|
+
var _props$info;
|
|
25735
|
+
|
|
25736
|
+
props.onSubmit((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.key, props.info);
|
|
25737
|
+
}
|
|
25738
|
+
};
|
|
25739
|
+
|
|
25740
|
+
return React.createElement(Drawer$1, {
|
|
25691
25741
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25692
25742
|
placement: "right",
|
|
25693
25743
|
open: props.open,
|
|
25694
|
-
width:
|
|
25695
|
-
onClose: props.onCancel
|
|
25696
|
-
|
|
25744
|
+
width: 703,
|
|
25745
|
+
onClose: props.onCancel,
|
|
25746
|
+
footer: React.createElement("div", {
|
|
25747
|
+
style: {
|
|
25748
|
+
textAlign: 'right'
|
|
25749
|
+
}
|
|
25750
|
+
}, React.createElement(Button$1, {
|
|
25751
|
+
onClick: onChildrenDrawerClose,
|
|
25752
|
+
style: {
|
|
25753
|
+
marginRight: 8
|
|
25754
|
+
}
|
|
25755
|
+
}, "\u53D6\u6D88"), React.createElement(Button$1, {
|
|
25756
|
+
onClick: sureTaxCodeSubmit,
|
|
25757
|
+
type: "primary"
|
|
25758
|
+
}, "\u786E\u5B9A"))
|
|
25759
|
+
}, React.createElement("div", {
|
|
25760
|
+
className: "taxdetailsbox"
|
|
25761
|
+
}, React.createElement(Form$1, {
|
|
25762
|
+
style: {
|
|
25763
|
+
width: 330
|
|
25764
|
+
},
|
|
25697
25765
|
form: form
|
|
25698
|
-
},
|
|
25766
|
+
}, React.createElement(Form$1.Item, {
|
|
25699
25767
|
name: 'search'
|
|
25700
|
-
},
|
|
25768
|
+
}, React.createElement(Input$1, {
|
|
25701
25769
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
25702
25770
|
onChange: searchTax
|
|
25703
|
-
})),
|
|
25771
|
+
})), React.createElement(Form$1.Item, {
|
|
25704
25772
|
name: 'tree'
|
|
25705
|
-
},
|
|
25706
|
-
onSelect:
|
|
25773
|
+
}, React.createElement(Tree$1, {
|
|
25774
|
+
onSelect: function onSelect(key, info) {
|
|
25775
|
+
showChildrenDrawer(key, info);
|
|
25776
|
+
},
|
|
25707
25777
|
loadData: props.onLoad,
|
|
25708
25778
|
treeData: props.list,
|
|
25709
|
-
switcherIcon:
|
|
25779
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
25710
25780
|
type: "down"
|
|
25711
25781
|
})
|
|
25712
|
-
})))
|
|
25782
|
+
}))), React.createElement(Card, {
|
|
25783
|
+
style: {
|
|
25784
|
+
width: 360
|
|
25785
|
+
}
|
|
25786
|
+
}, React.createElement(Form$1, _objectSpread2(_objectSpread2({
|
|
25787
|
+
key: props === null || props === void 0 ? void 0 : (_props$info2 = props.info) === null || _props$info2 === void 0 ? void 0 : _props$info2.key
|
|
25788
|
+
}, layout), {}, {
|
|
25789
|
+
initialValues: props.info
|
|
25790
|
+
}), React.createElement(Form$1.Item, {
|
|
25791
|
+
initialValue: (_props$info3 = props.info) === null || _props$info3 === void 0 ? void 0 : _props$info3.taxCategoryCode,
|
|
25792
|
+
name: "taxCategoryCode",
|
|
25793
|
+
label: "\u7F16\u7801"
|
|
25794
|
+
}, React.createElement(FormReadOnly, null)), React.createElement(Form$1.Item, {
|
|
25795
|
+
name: "productName",
|
|
25796
|
+
label: "\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",
|
|
25797
|
+
rules: [{
|
|
25798
|
+
type: 'email'
|
|
25799
|
+
}]
|
|
25800
|
+
}, React.createElement(FormReadOnly, null)), React.createElement(Form$1.Item, {
|
|
25801
|
+
name: "shorthand",
|
|
25802
|
+
label: "\u7B80\u79F0",
|
|
25803
|
+
rules: [{
|
|
25804
|
+
type: 'number',
|
|
25805
|
+
min: 0,
|
|
25806
|
+
max: 99
|
|
25807
|
+
}]
|
|
25808
|
+
}, React.createElement(FormReadOnly, null)), React.createElement(Form$1.Item, {
|
|
25809
|
+
name: "desc",
|
|
25810
|
+
label: "\u8BF4\u660E"
|
|
25811
|
+
}, React.createElement(FormReadOnly, null))))));
|
|
25713
25812
|
}
|
|
25714
25813
|
|
|
25715
25814
|
export { Invoice, InvoiceController, InvoiceTypeModal, TaxClassificationModal };
|