kts-component-invoice-operate 3.2.215 → 3.2.217
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 +13 -9
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +1 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +4 -1
- package/dist/index.esm.js +244 -136
- package/dist/index.js +243 -135
- package/docs/index.md +5 -5
- package/docs-dist/404.html +33 -33
- package/docs-dist/index.html +33 -33
- 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/docs-dist/umi.css +18 -18
- package/index.html +12 -12
- package/package.json +62 -62
- package/src/Invoice/Invoice-digtal/_test/architecture/index.tsx +21 -21
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +40 -40
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +182 -176
- package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +14574 -14574
- 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 +27 -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 +44 -42
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +105 -105
- 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/FreightListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IGood/index.ts +33 -33
- package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/ImportGoods/index.ts +81 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/index.ts +39 -39
- 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 +84 -84
- 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 +134 -131
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +71 -71
- package/src/Invoice/InvoiceController/fns/addFreight.ts +11 -11
- 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/delFreight.ts +38 -38
- 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/saveEditFreight.ts +24 -24
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditFreight.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setFreight.ts +10 -10
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +106 -106
- 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 +197 -197
- package/src/Invoice/tools/calculate/index.ts +144 -144
- 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 +10 -10
- 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 +612 -612
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +647 -647
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +712 -712
- 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/dist/index.js +32 -32
- 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 +201 -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/Architecture/index.less +18 -18
- package/src/Invoice/ui/digtal/Architecture/index.tsx +177 -177
- package/src/Invoice/ui/digtal/FreightList/hook/useColumns/dist/index.js +616 -616
- package/src/Invoice/ui/digtal/FreightList/hook/useColumns/index.tsx +246 -246
- package/src/Invoice/ui/digtal/FreightList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/FreightList/hook/useOnRow/index.tsx +37 -37
- package/src/Invoice/ui/digtal/FreightList/hook/useRowSelection/index.tsx +119 -119
- package/src/Invoice/ui/digtal/FreightList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/FreightList/index.less +72 -72
- package/src/Invoice/ui/digtal/FreightList/index.tsx +129 -129
- package/src/Invoice/ui/digtal/FreightList/ui/AddRowButton/index.tsx +74 -74
- package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +36 -36
- package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.tsx +20 -20
- package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +683 -683
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/dist/index.js +616 -616
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +712 -703
- 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 +181 -179
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +77 -77
- 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 +60 -60
- 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 +52 -52
- 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 +34 -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 +21 -14
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +242 -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 +477 -477
- 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 +435 -435
- 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/dist/index.js +92 -92
- 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 -184
- package/src/TaxClassificationCodeModal/index.less +17 -17
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +152 -152
- package/src/index.ts +13 -13
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
11
|
-
import { DatePicker, Row as Row$1, Col as Col$1,
|
|
11
|
+
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2, Cascader, Select as Select$2 } from 'kts-components-antd-x4';
|
|
12
12
|
import { Input as Input$3, NumberPicker } from '@formily/antd-components';
|
|
13
13
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
14
14
|
|
|
@@ -1152,6 +1152,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1152
1152
|
this.isSalesGifts = false;
|
|
1153
1153
|
this.addComparisonIndex = void 0;
|
|
1154
1154
|
this.drag = new Drag();
|
|
1155
|
+
this.isValidateGood = true;
|
|
1155
1156
|
});
|
|
1156
1157
|
|
|
1157
1158
|
var FreightListState = /*#__PURE__*/_createClass(function FreightListState() {
|
|
@@ -20595,7 +20596,7 @@ var onChangeSwitchTax$1 = /*#__PURE__*/function () {
|
|
|
20595
20596
|
};
|
|
20596
20597
|
}();
|
|
20597
20598
|
|
|
20598
|
-
var TaxIncludedSwitch$1 = (function () {
|
|
20599
|
+
var TaxIncludedSwitch$1 = (function (props) {
|
|
20599
20600
|
var controller = Invoice.useInvoiceController();
|
|
20600
20601
|
/** 是否含税 */
|
|
20601
20602
|
|
|
@@ -20614,8 +20615,9 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
20614
20615
|
switch (_context.prev = _context.next) {
|
|
20615
20616
|
case 0:
|
|
20616
20617
|
onChangeSwitchTax$1(controller, e);
|
|
20618
|
+
props.onChange && props.onChange(e);
|
|
20617
20619
|
|
|
20618
|
-
case
|
|
20620
|
+
case 2:
|
|
20619
20621
|
case "end":
|
|
20620
20622
|
return _context.stop();
|
|
20621
20623
|
}
|
|
@@ -21520,6 +21522,9 @@ var useColumns$1 = (function (form) {
|
|
|
21520
21522
|
var changeField = controller.useMemo(function (e) {
|
|
21521
21523
|
return e.calculatingField;
|
|
21522
21524
|
}, []);
|
|
21525
|
+
var isValidateGood = controller.useMemo(function (s) {
|
|
21526
|
+
return s.goodsListState.isValidateGood;
|
|
21527
|
+
}, []);
|
|
21523
21528
|
/** 计算中启动字段 */
|
|
21524
21529
|
|
|
21525
21530
|
var setChangeField = React.useCallback(function (value) {
|
|
@@ -21614,25 +21619,37 @@ var useColumns$1 = (function (form) {
|
|
|
21614
21619
|
while (1) {
|
|
21615
21620
|
switch (_context2.prev = _context2.next) {
|
|
21616
21621
|
case 0:
|
|
21617
|
-
|
|
21622
|
+
if (!isValidateGood) {
|
|
21623
|
+
_context2.next = 11;
|
|
21624
|
+
break;
|
|
21625
|
+
}
|
|
21626
|
+
|
|
21627
|
+
_context2.next = 3;
|
|
21618
21628
|
return controller.wait();
|
|
21619
21629
|
|
|
21620
|
-
case
|
|
21630
|
+
case 3:
|
|
21621
21631
|
value = controller.state.goodsListState.editGood;
|
|
21622
21632
|
|
|
21623
21633
|
if (!(!(value === null || value === void 0 ? void 0 : value.itemName) && !(value === null || value === void 0 ? void 0 : value.itemNameSelf))) {
|
|
21624
|
-
_context2.next =
|
|
21634
|
+
_context2.next = 8;
|
|
21625
21635
|
break;
|
|
21626
21636
|
}
|
|
21627
21637
|
|
|
21628
21638
|
callback('项目名称不能为空');
|
|
21629
|
-
_context2.next =
|
|
21639
|
+
_context2.next = 9;
|
|
21630
21640
|
break;
|
|
21631
21641
|
|
|
21632
|
-
case
|
|
21642
|
+
case 8:
|
|
21633
21643
|
return _context2.abrupt("return");
|
|
21634
21644
|
|
|
21635
|
-
case
|
|
21645
|
+
case 9:
|
|
21646
|
+
_context2.next = 12;
|
|
21647
|
+
break;
|
|
21648
|
+
|
|
21649
|
+
case 11:
|
|
21650
|
+
callback();
|
|
21651
|
+
|
|
21652
|
+
case 12:
|
|
21636
21653
|
case "end":
|
|
21637
21654
|
return _context2.stop();
|
|
21638
21655
|
}
|
|
@@ -22068,7 +22085,7 @@ var useColumns$1 = (function (form) {
|
|
|
22068
22085
|
initialValue: editGood.lineAmountIncludeTax,
|
|
22069
22086
|
getValueFromEvent: onNumberValueChange,
|
|
22070
22087
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
22071
|
-
required:
|
|
22088
|
+
required: isValidateGood,
|
|
22072
22089
|
message: '金额不能为空'
|
|
22073
22090
|
}, {
|
|
22074
22091
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -22156,7 +22173,7 @@ var useColumns$1 = (function (form) {
|
|
|
22156
22173
|
initialValue: editGood.lineAmountExcludeTax,
|
|
22157
22174
|
getValueFromEvent: onNumberValueChange,
|
|
22158
22175
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
22159
|
-
required:
|
|
22176
|
+
required: isValidateGood,
|
|
22160
22177
|
message: '金额不能为空'
|
|
22161
22178
|
}, {
|
|
22162
22179
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -22218,7 +22235,7 @@ var useColumns$1 = (function (form) {
|
|
|
22218
22235
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
22219
22236
|
initialValue: editGood.taxRate,
|
|
22220
22237
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
22221
|
-
required:
|
|
22238
|
+
required: isValidateGood,
|
|
22222
22239
|
message: '请选择税率'
|
|
22223
22240
|
}, {
|
|
22224
22241
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -22245,11 +22262,15 @@ var useColumns$1 = (function (form) {
|
|
|
22245
22262
|
}, e, "%");
|
|
22246
22263
|
}))));
|
|
22247
22264
|
} else {
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22265
|
+
if (value || value === '0') {
|
|
22266
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
22267
|
+
style: {
|
|
22268
|
+
padding: '0 10px'
|
|
22269
|
+
}
|
|
22270
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
22271
|
+
} else {
|
|
22272
|
+
return '';
|
|
22273
|
+
}
|
|
22253
22274
|
}
|
|
22254
22275
|
}
|
|
22255
22276
|
}, {
|
|
@@ -22265,7 +22286,7 @@ var useColumns$1 = (function (form) {
|
|
|
22265
22286
|
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxAmount', {
|
|
22266
22287
|
initialValue: editGood.taxAmount,
|
|
22267
22288
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxAmount')), [{
|
|
22268
|
-
required:
|
|
22289
|
+
required: isValidateGood,
|
|
22269
22290
|
message: '税额不能为空'
|
|
22270
22291
|
}, {
|
|
22271
22292
|
validator: function validator(rule, value, callback) {
|
|
@@ -24255,7 +24276,9 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
24255
24276
|
}
|
|
24256
24277
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24257
24278
|
className: "kts-invoice-operate-goods-list-able"
|
|
24258
|
-
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1,
|
|
24279
|
+
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, {
|
|
24280
|
+
onChange: props.onTaxSwitchChange
|
|
24281
|
+
}), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
|
|
24259
24282
|
style: {
|
|
24260
24283
|
flex: 1
|
|
24261
24284
|
}
|
|
@@ -24286,7 +24309,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
24286
24309
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
24287
24310
|
});
|
|
24288
24311
|
|
|
24289
|
-
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";
|
|
24312
|
+
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row {\n border-bottom: 1px dashed #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row:last-child {\n border-bottom: none;\n}\n";
|
|
24290
24313
|
styleInject(css_248z$r);
|
|
24291
24314
|
|
|
24292
24315
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -24302,126 +24325,210 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24302
24325
|
}, []);
|
|
24303
24326
|
var readOnly = React.useMemo(function () {
|
|
24304
24327
|
return model === 'readOnly';
|
|
24305
|
-
}, [model]);
|
|
24328
|
+
}, [model]);
|
|
24329
|
+
var goodsList = controller.useMemo(function (s) {
|
|
24330
|
+
return s.goodsListState.goodsList;
|
|
24331
|
+
}, []);
|
|
24332
|
+
var indexRef = React.useRef([]);
|
|
24333
|
+
useEffect(function () {
|
|
24334
|
+
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24335
|
+
if (cur.lineAttribute !== 1) {
|
|
24336
|
+
acc.push(cur.$index);
|
|
24337
|
+
}
|
|
24338
|
+
|
|
24339
|
+
return acc;
|
|
24340
|
+
}, []);
|
|
24341
|
+
indexRef.current = dd;
|
|
24342
|
+
}, [goodsList, indexRef]); // 注册 form
|
|
24306
24343
|
|
|
24307
24344
|
controller.useForm('realEstateInfo', form);
|
|
24345
|
+
|
|
24346
|
+
var getList = function getList() {
|
|
24347
|
+
var decrease = indexRef.current.length > goodsList.length;
|
|
24348
|
+
|
|
24349
|
+
if (decrease) {
|
|
24350
|
+
//已删行列表
|
|
24351
|
+
var diff = indexRef.current.filter(function (item) {
|
|
24352
|
+
return !goodsList.find(function (i) {
|
|
24353
|
+
return i.$index === item;
|
|
24354
|
+
});
|
|
24355
|
+
});
|
|
24356
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
24357
|
+
|
|
24358
|
+
if (Array.isArray(formData) && diff.length > 0) {
|
|
24359
|
+
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
24360
|
+
return !diff.find(function (i) {
|
|
24361
|
+
return i === item.$index;
|
|
24362
|
+
});
|
|
24363
|
+
});
|
|
24364
|
+
form.setFieldsValue({
|
|
24365
|
+
realEstateDataDto: newForm
|
|
24366
|
+
});
|
|
24367
|
+
} else {
|
|
24368
|
+
form.setFieldsValue({
|
|
24369
|
+
realEstateDataDto: undefined
|
|
24370
|
+
});
|
|
24371
|
+
}
|
|
24372
|
+
}
|
|
24373
|
+
|
|
24374
|
+
console.log('goodsList', goodsList);
|
|
24375
|
+
return goodsList.filter(function (item) {
|
|
24376
|
+
return item.lineAttribute !== 1;
|
|
24377
|
+
}).map(function (item, index) {
|
|
24378
|
+
if (item.lineAttribute !== 1) {
|
|
24379
|
+
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24380
|
+
gutter: [17, 0]
|
|
24381
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24382
|
+
span: 6
|
|
24383
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24384
|
+
style: {
|
|
24385
|
+
display: 'none'
|
|
24386
|
+
}
|
|
24387
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
24388
|
+
initialValue: item.$index
|
|
24389
|
+
})( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
24390
|
+
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24391
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
24392
|
+
rules: readOnly ? [] : [{
|
|
24393
|
+
required: true,
|
|
24394
|
+
message: '请选择不动产地址'
|
|
24395
|
+
}]
|
|
24396
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24397
|
+
style: {
|
|
24398
|
+
width: '100%'
|
|
24399
|
+
},
|
|
24400
|
+
options: props.realEstateAddressOptions,
|
|
24401
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
24402
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24403
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24404
|
+
span: 6
|
|
24405
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24406
|
+
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24407
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
24408
|
+
rules: readOnly ? [] : [{
|
|
24409
|
+
required: true,
|
|
24410
|
+
message: '请输入详细地址'
|
|
24411
|
+
}, {
|
|
24412
|
+
max: 120,
|
|
24413
|
+
message: '详细地址最多120个字符'
|
|
24414
|
+
}, {
|
|
24415
|
+
validator: function () {
|
|
24416
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
24417
|
+
var pattern;
|
|
24418
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24419
|
+
while (1) {
|
|
24420
|
+
switch (_context.prev = _context.next) {
|
|
24421
|
+
case 0:
|
|
24422
|
+
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24423
|
+
|
|
24424
|
+
if (pattern.test(value)) {
|
|
24425
|
+
callback();
|
|
24426
|
+
} else {
|
|
24427
|
+
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24428
|
+
}
|
|
24429
|
+
|
|
24430
|
+
case 2:
|
|
24431
|
+
case "end":
|
|
24432
|
+
return _context.stop();
|
|
24433
|
+
}
|
|
24434
|
+
}
|
|
24435
|
+
}, _callee);
|
|
24436
|
+
}));
|
|
24437
|
+
|
|
24438
|
+
function validator(_x, _x2, _x3) {
|
|
24439
|
+
return _validator.apply(this, arguments);
|
|
24440
|
+
}
|
|
24441
|
+
|
|
24442
|
+
return validator;
|
|
24443
|
+
}()
|
|
24444
|
+
}]
|
|
24445
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24446
|
+
autoComplete: 'off',
|
|
24447
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24448
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24449
|
+
span: 6
|
|
24450
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24451
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24452
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
24453
|
+
rules: readOnly ? [] : [{
|
|
24454
|
+
required: true,
|
|
24455
|
+
message: '请输入租赁期'
|
|
24456
|
+
}]
|
|
24457
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24458
|
+
style: {
|
|
24459
|
+
width: '100%'
|
|
24460
|
+
}
|
|
24461
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24462
|
+
span: 6
|
|
24463
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24464
|
+
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24465
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
24466
|
+
rules: readOnly ? [] : [{
|
|
24467
|
+
required: true,
|
|
24468
|
+
message: '请选择跨地(市)标志'
|
|
24469
|
+
}]
|
|
24470
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24471
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24472
|
+
style: {
|
|
24473
|
+
width: '100%'
|
|
24474
|
+
}
|
|
24475
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24476
|
+
value: 'Y'
|
|
24477
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24478
|
+
value: 'N'
|
|
24479
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24480
|
+
span: 6
|
|
24481
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24482
|
+
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24483
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
24484
|
+
rules: readOnly ? [] : [{
|
|
24485
|
+
required: true,
|
|
24486
|
+
message: '请输入证书编号,若没有证书填写“无”'
|
|
24487
|
+
}, {
|
|
24488
|
+
max: 40,
|
|
24489
|
+
message: '证书编号最多40个字符'
|
|
24490
|
+
}]
|
|
24491
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24492
|
+
autoComplete: 'off',
|
|
24493
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24494
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24495
|
+
span: 6
|
|
24496
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24497
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24498
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
24499
|
+
rules: readOnly ? [] : [{
|
|
24500
|
+
required: true,
|
|
24501
|
+
message: '请选择面积单位'
|
|
24502
|
+
}]
|
|
24503
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24504
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24505
|
+
style: {
|
|
24506
|
+
width: '100%'
|
|
24507
|
+
}
|
|
24508
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24509
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24510
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24511
|
+
value: "\u5E73\u65B9\u7C73"
|
|
24512
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24513
|
+
value: "\u516C\u9877"
|
|
24514
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24515
|
+
value: "\u4EA9"
|
|
24516
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24517
|
+
value: "h\u33A1"
|
|
24518
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24519
|
+
value: "k\u33A1"
|
|
24520
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24521
|
+
value: "\u33A1"
|
|
24522
|
+
}, "\u33A1"))))));
|
|
24523
|
+
}
|
|
24524
|
+
});
|
|
24525
|
+
};
|
|
24526
|
+
|
|
24308
24527
|
return /*#__PURE__*/React.createElement("div", {
|
|
24309
24528
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24310
24529
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24311
24530
|
className: 'real-estate-info-digtal-label'
|
|
24312
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"),
|
|
24313
|
-
gutter: [17, 0]
|
|
24314
|
-
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24315
|
-
span: 6
|
|
24316
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24317
|
-
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24318
|
-
}, getFieldDecorator('realEstateAddress', {
|
|
24319
|
-
rules: readOnly ? [] : [{
|
|
24320
|
-
required: true,
|
|
24321
|
-
message: '请选择不动产地址'
|
|
24322
|
-
}]
|
|
24323
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24324
|
-
style: {
|
|
24325
|
-
width: '100%'
|
|
24326
|
-
},
|
|
24327
|
-
options: props.realEstateAddressOptions,
|
|
24328
|
-
fieldNames: props.realEstateAddressFieldNames,
|
|
24329
|
-
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24330
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24331
|
-
span: 6
|
|
24332
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24333
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24334
|
-
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
24335
|
-
rules: readOnly ? [] : [{
|
|
24336
|
-
required: true,
|
|
24337
|
-
message: '请输入详细地址'
|
|
24338
|
-
}, {
|
|
24339
|
-
max: 120,
|
|
24340
|
-
message: '详细地址最多120个字符'
|
|
24341
|
-
}, {
|
|
24342
|
-
validator: function validator(_, value) {
|
|
24343
|
-
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24344
|
-
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24345
|
-
}
|
|
24346
|
-
}]
|
|
24347
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24348
|
-
autoComplete: 'off',
|
|
24349
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24350
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24351
|
-
span: 6
|
|
24352
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24353
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24354
|
-
}, getFieldDecorator('leaseTerm', {
|
|
24355
|
-
rules: readOnly ? [] : [{
|
|
24356
|
-
required: true,
|
|
24357
|
-
message: '请输入租赁期'
|
|
24358
|
-
}]
|
|
24359
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24360
|
-
style: {
|
|
24361
|
-
width: '100%'
|
|
24362
|
-
}
|
|
24363
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24364
|
-
span: 6
|
|
24365
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24366
|
-
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24367
|
-
}, getFieldDecorator('crossCitiesSign', {
|
|
24368
|
-
rules: readOnly ? [] : [{
|
|
24369
|
-
required: true,
|
|
24370
|
-
message: '请选择跨地(市)标志'
|
|
24371
|
-
}]
|
|
24372
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24373
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24374
|
-
style: {
|
|
24375
|
-
width: '100%'
|
|
24376
|
-
}
|
|
24377
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24378
|
-
value: 'Y'
|
|
24379
|
-
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24380
|
-
value: 'N'
|
|
24381
|
-
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24382
|
-
span: 6
|
|
24383
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24384
|
-
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24385
|
-
}, getFieldDecorator('realEstateNumber', {
|
|
24386
|
-
rules: readOnly ? [] : [{
|
|
24387
|
-
required: true,
|
|
24388
|
-
message: '请输入证书编号,若没有证书填写“无”'
|
|
24389
|
-
}, {
|
|
24390
|
-
max: 40,
|
|
24391
|
-
message: '证书编号最多40个字符'
|
|
24392
|
-
}]
|
|
24393
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24394
|
-
autoComplete: 'off',
|
|
24395
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24396
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24397
|
-
span: 6
|
|
24398
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24399
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24400
|
-
}, getFieldDecorator('realEstateUnit', {
|
|
24401
|
-
rules: readOnly ? [] : [{
|
|
24402
|
-
required: true,
|
|
24403
|
-
message: '请选择面积单位'
|
|
24404
|
-
}]
|
|
24405
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24406
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24407
|
-
style: {
|
|
24408
|
-
width: '100%'
|
|
24409
|
-
}
|
|
24410
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24411
|
-
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24412
|
-
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24413
|
-
value: "\u5E73\u65B9\u7C73"
|
|
24414
|
-
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24415
|
-
value: "\u516C\u9877"
|
|
24416
|
-
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24417
|
-
value: "\u4EA9"
|
|
24418
|
-
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24419
|
-
value: "h\u33A1"
|
|
24420
|
-
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24421
|
-
value: "k\u33A1"
|
|
24422
|
-
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24423
|
-
value: "\u33A1"
|
|
24424
|
-
}, "\u33A1")))))));
|
|
24531
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24425
24532
|
});
|
|
24426
24533
|
|
|
24427
24534
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24497,7 +24604,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24497
24604
|
color: '#9F603D',
|
|
24498
24605
|
fontWeight: 600
|
|
24499
24606
|
}
|
|
24500
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24607
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24501
24608
|
}
|
|
24502
24609
|
}]);
|
|
24503
24610
|
|
|
@@ -26338,9 +26445,10 @@ var ImportGoodsDrawer = (function () {
|
|
|
26338
26445
|
while (1) {
|
|
26339
26446
|
switch (_context.prev = _context.next) {
|
|
26340
26447
|
case 0:
|
|
26448
|
+
s.goodsListState.importGoods.filter = {};
|
|
26341
26449
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
26342
26450
|
|
|
26343
|
-
case
|
|
26451
|
+
case 2:
|
|
26344
26452
|
case "end":
|
|
26345
26453
|
return _context.stop();
|
|
26346
26454
|
}
|