kts-component-invoice-operate 3.1.19 → 3.2.0
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 +5 -5
- package/dist/Invoice/Invoice-digtal/_test/disabled/index.d.ts +4 -0
- package/dist/Invoice/Invoice-digtal/_test/easiest/index.d.ts +4 -0
- package/dist/Invoice/Invoice-digtal/_test/header/index.d.ts +4 -0
- package/dist/Invoice/Invoice-digtal/_test/readOnly/index.d.ts +4 -0
- package/dist/Invoice/Invoice-digtal/_test/stakeholder/index.d.ts +4 -0
- package/dist/Invoice/Invoice-digtal/_test/typeSelection/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.d.ts +10 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/addGoodDiscountV2.d.ts +12 -0
- package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/index.d.ts +2 -0
- package/dist/Invoice/index.d.ts +25 -12
- package/dist/Invoice/tools/mounting/index.d.ts +3 -0
- package/dist/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.d.ts +1 -1
- package/dist/Invoice/ui/{Buyer → default/Buyer}/index.d.ts +1 -1
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.d.ts +2 -2
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +0 -1
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -1
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -1
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -1
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useDeduction/index.d.ts +8 -0
- package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.d.ts +1 -1
- package/dist/Invoice/ui/default/GoodsList/hook/useWindowClick/index.d.ts +8 -0
- package/dist/Invoice/ui/{Seller → default/Seller}/index.d.ts +1 -1
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.d.ts +35 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +17 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +5 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +5 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.d.ts +5 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/Search/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/Statistics/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TableRow/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.d.ts +35 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.d.ts +7 -0
- package/dist/Invoice/ui/{GoodsList/hook/useColumns/ui/RowMenu → digtal/GoodsList.o/hook/useColumns/ui/RowEditButton}/index.d.ts +0 -1
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/index.d.ts +20 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/InvoiceHeader/index.d.ts +14 -0
- package/dist/Invoice/ui/digtal/Sign/index.d.ts +10 -0
- package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +7 -0
- package/dist/InvoiceTypeModal/_test/easiest/index.d.ts +3 -0
- package/dist/InvoiceTypeModal/index.d.ts +34 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +10107 -2821
- package/dist/index.js +10101 -2814
- package/docs/index.md +5 -5
- package/docs-dist/404.html +33 -33
- package/docs-dist/index.html +33 -33
- package/docs-dist/umi.css +19 -19
- package/index.html +12 -12
- package/package.json +60 -60
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -0
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +5 -0
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +17 -0
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -0
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -0
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -0
- package/src/Invoice/Invoice-digtal/index.md +19 -0
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +94 -94
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +93 -93
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +75 -75
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +5 -5
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +94 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +11 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +56 -48
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +125 -125
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +84 -0
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -43
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +23 -23
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -23
- 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 +65 -61
- package/src/Invoice/_test/buyerNameSearch/index.tsx +41 -41
- 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 +1095 -1095
- 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 +515 -515
- 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 +22 -22
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +30 -12
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +164 -109
- package/src/Invoice/tools/calculate/index.ts +112 -112
- 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 +14 -0
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.ts +8 -8
- package/src/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.tsx +149 -149
- package/src/Invoice/ui/{Buyer → default/Buyer}/index.less +219 -219
- package/src/Invoice/ui/{Buyer → default/Buyer}/index.tsx +114 -114
- package/src/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.less +8 -8
- package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.tsx +431 -431
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.ts +519 -519
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.tsx +620 -620
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.tsx +19 -19
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -35
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -0
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.tsx +111 -111
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -0
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.less +177 -177
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.tsx +177 -177
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.tsx +65 -61
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -66
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +58 -58
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.less +10 -10
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.tsx +109 -109
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.tsx +27 -27
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.tsx +75 -75
- package/src/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.tsx +170 -170
- package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.less +68 -68
- package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.tsx +246 -246
- package/src/Invoice/ui/{Seller → default/Seller}/index.less +113 -113
- package/src/Invoice/ui/{Seller → default/Seller}/index.tsx +98 -98
- package/src/Invoice/ui/{Sign → default/Sign}/index.less +14 -14
- package/src/Invoice/ui/{Sign → default/Sign}/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +520 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +623 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +10 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +19 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/spot.svg +1 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +112 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -0
- package/src/Invoice/ui/digtal/GoodsList/index.less +57 -0
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +181 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +66 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +321 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +12 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +56 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +37 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/icon/magnifier.svg +1 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +12 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +54 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +12 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +28 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +39 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +109 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.ts +520 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.tsx +624 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.less +10 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.tsx +19 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.less +13 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.tsx +98 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/spot.svg +1 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.tsx +20 -0
- package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.tsx +39 -0
- package/src/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.tsx +112 -0
- package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList.o/index.less +7 -0
- package/src/Invoice/ui/digtal/GoodsList.o/index.tsx +132 -0
- package/src/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.tsx +66 -0
- package/src/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.tsx +28 -0
- package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.less +43 -0
- package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.tsx +109 -0
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +58 -0
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -0
- package/src/Invoice/ui/digtal/Sign/index.less +49 -0
- package/src/Invoice/ui/digtal/Sign/index.tsx +90 -0
- package/src/Invoice/ui/digtal/Stakeholder/index.less +57 -0
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +237 -0
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +3 -0
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +3 -0
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +32 -0
- package/src/InvoiceTypeModal/index.less +8 -0
- package/src/InvoiceTypeModal/index.md +6 -0
- package/src/InvoiceTypeModal/index.tsx +123 -0
- package/src/index.ts +9 -6
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
- package/yarn.o.lock +14800 -14800
- /package/dist/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.d.ts +0 -0
- /package/dist/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.d.ts +0 -0
- /package/dist/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{Sign → default/Sign}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.d.ts +0 -0
- /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.d.ts +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/spot.svg +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/icon/magnifier.svg +0 -0
- /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/auto.svg +0 -0
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Input } from 'kts-components-antd-x3';
|
|
3
|
-
import { Invoice } from '
|
|
4
|
-
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
|
|
8
|
-
const renderExpand = React.useCallback((form: WrappedFormUtils<any>) => {
|
|
9
|
-
return (
|
|
10
|
-
<div style={{ textAlign: 'right' }} >
|
|
11
|
-
<label>收票邮箱:</label>
|
|
12
|
-
{form.getFieldDecorator('email', {
|
|
13
|
-
})(
|
|
14
|
-
<Input style={{ width: 200 }} size="small" />
|
|
15
|
-
)}
|
|
16
|
-
</div>
|
|
17
|
-
)
|
|
18
|
-
}, [])
|
|
19
|
-
|
|
20
|
-
// 配置 发票种类
|
|
21
|
-
const typeOption = React.useMemo(() => {
|
|
22
|
-
return [
|
|
23
|
-
{
|
|
24
|
-
title: '发票1',
|
|
25
|
-
value: [
|
|
26
|
-
{ id: 'buyerName', label: '购买方名称', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
27
|
-
{ id: 'buyerNo', label: '购买方纳税人识别号', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
28
|
-
{ id: 'buyerAddress', label: '购买方地址及电话', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
29
|
-
{ id: 'buyerBank', label: '购买方开户行及账号', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
title: '发票2',
|
|
34
|
-
value: [
|
|
35
|
-
{ id: 'buyerName', label: '购买方名称', node: <Input size="small" />, options: { rules: [] } },
|
|
36
|
-
{ id: 'buyerNo', label: '购买方纳税人识别号', node: <Input size="small" />, options: { rules: [] } },
|
|
37
|
-
{ id: 'buyerAddress', label: '购买方地址及电话', node: <Input size="small" />, options: { rules: [] } },
|
|
38
|
-
{ id: 'buyerBank', label: '购买方开户行及账号', node: <Input size="small" />, options: { rules: [] } },
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
}, [])
|
|
43
|
-
|
|
44
|
-
// 选中的 种类索引
|
|
45
|
-
const [index, setIndex] = React.useState(1);
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<Invoice
|
|
49
|
-
invoiceHeader={
|
|
50
|
-
<Invoice.InvoiceHeader
|
|
51
|
-
renderExpand={renderExpand}
|
|
52
|
-
typeOptionIndex={index}
|
|
53
|
-
typeOption={typeOption}
|
|
54
|
-
onChangeTypeOption={e => { setIndex(e) }}
|
|
55
|
-
/>}
|
|
56
|
-
buyer={<Invoice.Buyer formItem={typeOption[index].value} />}
|
|
57
|
-
/>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Input } from 'kts-components-antd-x3';
|
|
3
|
+
import { Invoice } from '../../../..';
|
|
4
|
+
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
5
|
+
|
|
6
|
+
export default () => {
|
|
7
|
+
|
|
8
|
+
const renderExpand = React.useCallback((form: WrappedFormUtils<any>) => {
|
|
9
|
+
return (
|
|
10
|
+
<div style={{ textAlign: 'right' }} >
|
|
11
|
+
<label>收票邮箱:</label>
|
|
12
|
+
{form.getFieldDecorator('email', {
|
|
13
|
+
})(
|
|
14
|
+
<Input style={{ width: 200 }} size="small" />
|
|
15
|
+
)}
|
|
16
|
+
</div>
|
|
17
|
+
)
|
|
18
|
+
}, [])
|
|
19
|
+
|
|
20
|
+
// 配置 发票种类
|
|
21
|
+
const typeOption = React.useMemo(() => {
|
|
22
|
+
return [
|
|
23
|
+
{
|
|
24
|
+
title: '发票1',
|
|
25
|
+
value: [
|
|
26
|
+
{ id: 'buyerName', label: '购买方名称', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
27
|
+
{ id: 'buyerNo', label: '购买方纳税人识别号', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
28
|
+
{ id: 'buyerAddress', label: '购买方地址及电话', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
29
|
+
{ id: 'buyerBank', label: '购买方开户行及账号', node: <Input size="small" />, options: { rules: [{ required: true, message: '不能为空' }] } },
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: '发票2',
|
|
34
|
+
value: [
|
|
35
|
+
{ id: 'buyerName', label: '购买方名称', node: <Input size="small" />, options: { rules: [] } },
|
|
36
|
+
{ id: 'buyerNo', label: '购买方纳税人识别号', node: <Input size="small" />, options: { rules: [] } },
|
|
37
|
+
{ id: 'buyerAddress', label: '购买方地址及电话', node: <Input size="small" />, options: { rules: [] } },
|
|
38
|
+
{ id: 'buyerBank', label: '购买方开户行及账号', node: <Input size="small" />, options: { rules: [] } },
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
}, [])
|
|
43
|
+
|
|
44
|
+
// 选中的 种类索引
|
|
45
|
+
const [index, setIndex] = React.useState(1);
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<Invoice
|
|
49
|
+
invoiceHeader={
|
|
50
|
+
<Invoice.InvoiceHeader
|
|
51
|
+
renderExpand={renderExpand}
|
|
52
|
+
typeOptionIndex={index}
|
|
53
|
+
typeOption={typeOption}
|
|
54
|
+
onChangeTypeOption={e => { setIndex(e) }}
|
|
55
|
+
/>}
|
|
56
|
+
buyer={<Invoice.Buyer formItem={typeOption[index].value} />}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Invoice from '../../';
|
|
3
|
-
|
|
4
|
-
const InvoiceHeader = Invoice.InvoiceHeader;
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
return (
|
|
8
|
-
<Invoice
|
|
9
|
-
invoiceHeader={<InvoiceHeader isInvoiceNo={false} />} // 隐藏发票单据编号
|
|
10
|
-
/>
|
|
11
|
-
);
|
|
12
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../';
|
|
3
|
+
|
|
4
|
+
const InvoiceHeader = Invoice.InvoiceHeader;
|
|
5
|
+
|
|
6
|
+
export default () => {
|
|
7
|
+
return (
|
|
8
|
+
<Invoice
|
|
9
|
+
invoiceHeader={<InvoiceHeader isInvoiceNo={false} />} // 隐藏发票单据编号
|
|
10
|
+
/>
|
|
11
|
+
);
|
|
12
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from 'kts-components-antd-x3';
|
|
3
|
-
import Invoice from '../../';
|
|
4
|
-
|
|
5
|
-
const useInvoiceController = Invoice.useInvoiceController;
|
|
6
|
-
|
|
7
|
-
export default () => {
|
|
8
|
-
return <Invoice invoiceHeader={<InvoiceHeader />} />;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const InvoiceHeader = () => {
|
|
12
|
-
const controller = useInvoiceController();
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div>
|
|
16
|
-
新的表头
|
|
17
|
-
<Button type="link">
|
|
18
|
-
更新
|
|
19
|
-
</Button>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from 'kts-components-antd-x3';
|
|
3
|
+
import Invoice from '../../';
|
|
4
|
+
|
|
5
|
+
const useInvoiceController = Invoice.useInvoiceController;
|
|
6
|
+
|
|
7
|
+
export default () => {
|
|
8
|
+
return <Invoice invoiceHeader={<InvoiceHeader />} />;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const InvoiceHeader = () => {
|
|
12
|
+
const controller = useInvoiceController();
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div>
|
|
16
|
+
新的表头
|
|
17
|
+
<Button type="link">
|
|
18
|
+
更新
|
|
19
|
+
</Button>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Button } from 'kts-components-antd-x3';
|
|
4
|
-
import Invoice from '../../';
|
|
5
|
-
|
|
6
|
-
const Buyer = Invoice.Buyer
|
|
7
|
-
|
|
8
|
-
export default () => {
|
|
9
|
-
|
|
10
|
-
const controller = React.useMemo(() => new Invoice.InvoiceController, [])
|
|
11
|
-
|
|
12
|
-
const onClick = React.useCallback(async () => {
|
|
13
|
-
console.log('===> 当前组件状态', await controller.validateFields());
|
|
14
|
-
}, []);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div>
|
|
18
|
-
<Button onClick={onClick} style={{ marginBottom: 10 }}>获取数据</Button>
|
|
19
|
-
<Invoice controller={controller}/>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from 'kts-components-antd-x3';
|
|
4
|
+
import Invoice from '../../';
|
|
5
|
+
|
|
6
|
+
const Buyer = Invoice.Buyer
|
|
7
|
+
|
|
8
|
+
export default () => {
|
|
9
|
+
|
|
10
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController, [])
|
|
11
|
+
|
|
12
|
+
const onClick = React.useCallback(async () => {
|
|
13
|
+
console.log('===> 当前组件状态', await controller.validateFields());
|
|
14
|
+
}, []);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div>
|
|
18
|
+
<Button onClick={onClick} style={{ marginBottom: 10 }}>获取数据</Button>
|
|
19
|
+
<Invoice controller={controller}/>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AutoComplete, Input, Icon } from 'kts-components-antd-x3';
|
|
3
|
-
import { Invoice } from '
|
|
4
|
-
|
|
5
|
-
export default () => {
|
|
6
|
-
|
|
7
|
-
const formRender = React.useMemo(() => {
|
|
8
|
-
return new Map([
|
|
9
|
-
['sellerBank', () => {
|
|
10
|
-
return (
|
|
11
|
-
<AutoComplete
|
|
12
|
-
size="small"
|
|
13
|
-
style={{ width: '100%' }}
|
|
14
|
-
dataSource={['销售方开户行及账号1', '销售方开户行及账号2', '销售方开户行及账号3']}
|
|
15
|
-
>
|
|
16
|
-
<Input suffix={<Icon type="down" />} />
|
|
17
|
-
</AutoComplete>
|
|
18
|
-
)
|
|
19
|
-
}]
|
|
20
|
-
])
|
|
21
|
-
}, [])
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div>
|
|
25
|
-
<Invoice seller={<Invoice.Seller formRender={formRender} />} />
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutoComplete, Input, Icon } from 'kts-components-antd-x3';
|
|
3
|
+
import { Invoice } from '../../../..';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
|
|
7
|
+
const formRender = React.useMemo(() => {
|
|
8
|
+
return new Map([
|
|
9
|
+
['sellerBank', () => {
|
|
10
|
+
return (
|
|
11
|
+
<AutoComplete
|
|
12
|
+
size="small"
|
|
13
|
+
style={{ width: '100%' }}
|
|
14
|
+
dataSource={['销售方开户行及账号1', '销售方开户行及账号2', '销售方开户行及账号3']}
|
|
15
|
+
>
|
|
16
|
+
<Input suffix={<Icon type="down" />} />
|
|
17
|
+
</AutoComplete>
|
|
18
|
+
)
|
|
19
|
+
}]
|
|
20
|
+
])
|
|
21
|
+
}, [])
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<div>
|
|
25
|
+
<Invoice seller={<Invoice.Seller formRender={formRender} />} />
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Invoice } from '
|
|
3
|
-
|
|
4
|
-
const InvoiceController = Invoice.InvoiceController;
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
const controller = React.useMemo(() => new MyInvoiceController(), []);
|
|
8
|
-
return (
|
|
9
|
-
<div>
|
|
10
|
-
<Invoice controller={controller} />
|
|
11
|
-
</div>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* 继承 InvoiceController 并重写需要重写的方法
|
|
17
|
-
*/
|
|
18
|
-
class MyInvoiceController extends InvoiceController {
|
|
19
|
-
updateInvoiceNo = this.pipeline(async s => {
|
|
20
|
-
return '--';
|
|
21
|
-
})
|
|
22
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Invoice } from '../../../..';
|
|
3
|
+
|
|
4
|
+
const InvoiceController = Invoice.InvoiceController;
|
|
5
|
+
|
|
6
|
+
export default () => {
|
|
7
|
+
const controller = React.useMemo(() => new MyInvoiceController(), []);
|
|
8
|
+
return (
|
|
9
|
+
<div>
|
|
10
|
+
<Invoice controller={controller} />
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 继承 InvoiceController 并重写需要重写的方法
|
|
17
|
+
*/
|
|
18
|
+
class MyInvoiceController extends InvoiceController {
|
|
19
|
+
updateInvoiceNo = this.pipeline(async s => {
|
|
20
|
+
return '--';
|
|
21
|
+
})
|
|
22
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Invoice } from '
|
|
3
|
-
|
|
4
|
-
export default () => {
|
|
5
|
-
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
6
|
-
|
|
7
|
-
React.useEffect(() => {
|
|
8
|
-
controller.pipeline(async (s) => {
|
|
9
|
-
s.goodsListState.unitList = ['个', '吨', '米'];
|
|
10
|
-
s.goodsListState.taxRateList = [1, 2, 3, 4, 5, 80];
|
|
11
|
-
})();
|
|
12
|
-
}, []);
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div>
|
|
16
|
-
<Invoice controller={controller} />
|
|
17
|
-
</div>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Invoice } from '../../../..';
|
|
3
|
+
|
|
4
|
+
export default () => {
|
|
5
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
6
|
+
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
controller.pipeline(async (s) => {
|
|
9
|
+
s.goodsListState.unitList = ['个', '吨', '米'];
|
|
10
|
+
s.goodsListState.taxRateList = [1, 2, 3, 4, 5, 80];
|
|
11
|
+
})();
|
|
12
|
+
}, []);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div>
|
|
16
|
+
<Invoice controller={controller} />
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
};
|
package/src/Invoice/index.less
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
.kts-invoice-operate {
|
|
2
|
-
border: 1px solid #dcdcdc;
|
|
3
|
-
font-size: 12px;
|
|
4
|
-
|
|
5
|
-
&>* {
|
|
6
|
-
border-bottom: 1px solid #dcdcdc;
|
|
7
|
-
|
|
8
|
-
&:last-child {
|
|
9
|
-
border-bottom: none;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
.kts-invoice-operate {
|
|
2
|
+
border : 1px solid #dcdcdc;
|
|
3
|
+
font-size: 12px;
|
|
4
|
+
|
|
5
|
+
&>* {
|
|
6
|
+
border-bottom: 1px solid #dcdcdc;
|
|
7
|
+
|
|
8
|
+
&:last-child {
|
|
9
|
+
border-bottom: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.kts-invoice-operate-digtal {
|
|
15
|
+
|
|
16
|
+
font-family: PingFang SC;
|
|
17
|
+
font-size : 14px;
|
|
18
|
+
|
|
19
|
+
.kts-invoice-operate-digtal-cont {
|
|
20
|
+
border: 2px solid #9F613E;
|
|
21
|
+
|
|
22
|
+
&>* {
|
|
23
|
+
border-bottom: 2px solid #9F613E;
|
|
24
|
+
|
|
25
|
+
&:last-child {
|
|
26
|
+
border-bottom: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/Invoice/index.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
## 简单用法
|
|
4
|
-
<code src="./_test/easiest/index.tsx"></code>
|
|
5
|
-
|
|
6
|
-
## 设置为草稿,设置默认参数 扩展按钮
|
|
7
|
-
<code src="./_test/draft/index.tsx" title="类似的操作,请查看API" ></code>
|
|
8
|
-
|
|
9
|
-
## 设置购买方名称搜索
|
|
10
|
-
<code src="./_test/buyerNameSearch/index.tsx"></code>
|
|
11
|
-
|
|
12
|
-
## 设置扣除额(差额征税)
|
|
13
|
-
<code src="./_test/deduction/index.tsx"></code>
|
|
14
|
-
|
|
15
|
-
## 设置单位列表、税率列表
|
|
16
|
-
<code src="./_test/unit/index.tsx" ></code>
|
|
17
|
-
|
|
18
|
-
## 发票头类型设置和购买方信息配置
|
|
19
|
-
<code src="./_test/invoiceType/index.tsx" ></code>
|
|
20
|
-
|
|
21
|
-
## 隐藏发票单据编号
|
|
22
|
-
<code src="./_test/isInvoiceNo/index.tsx" title="通过InvoiceHeader.isInvoiceNo" ></code>
|
|
23
|
-
|
|
24
|
-
## 替换发票头 UI
|
|
25
|
-
<code src="./_test/replaceHead/index.tsx" title="其他UI的替换类型,请查看API" ></code>
|
|
26
|
-
|
|
27
|
-
## 销售方 预设、自动补全、禁用
|
|
28
|
-
<code src="./_test/seller/index.tsx"></code>
|
|
29
|
-
|
|
30
|
-
## 点击按钮获取方法
|
|
31
|
-
<code src="./_test/retrieveData/index.tsx" title="查看 Console" ></code>
|
|
32
|
-
|
|
33
|
-
## 扩展货物操作按钮
|
|
34
|
-
<code src="./_test/goodsMenuExpand/index.tsx" title="查看 Console" ></code>
|
|
35
|
-
|
|
36
|
-
## 设置数据源 获取发票单据编号
|
|
37
|
-
<code src="./_test/setDataSource/index.tsx" ></code>
|
|
38
|
-
|
|
39
|
-
## 设置数据源 导入购买方
|
|
40
|
-
<code src="./_test/importBuyer/index.tsx"></code>
|
|
41
|
-
|
|
42
|
-
## 设置数据源 导入货物
|
|
43
|
-
<code src="./_test/importGoods/index.tsx"></code>
|
|
44
|
-
|
|
45
|
-
## 设置数据源 赋码 税收分类编码列表
|
|
46
|
-
<code src="./_test/endowCode/index.tsx"></code>
|
|
47
|
-
|
|
48
|
-
<API name="Invoice 发票组件 API" exports='["default"]' src="./index.tsx" ></API>
|
|
49
|
-
<API name="InvoiceHeader 发票头 API" exports='["default"]' src="./ui/InvoiceHeader/index.tsx"></API>
|
|
50
|
-
<API name="GoodsList 商品列表 API" exports='["default"]' src="./ui/GoodsList/index.tsx"></API>
|
|
51
|
-
<API name="Buyer 购买方 API" exports='["default"]' src="./ui/Buyer/index.tsx"></API>
|
|
52
|
-
<API name="Seller 销售方 API" exports='["default"]' src="./ui/Seller/index.tsx"></API>
|
|
53
|
-
<API name="Sign 落款 API" exports='["default"]' src="./ui/Sign/index.tsx"></API>
|
|
1
|
+
# 默认
|
|
2
|
+
|
|
3
|
+
## 简单用法
|
|
4
|
+
<code src="./_test/easiest/index.tsx"></code>
|
|
5
|
+
|
|
6
|
+
## 设置为草稿,设置默认参数 扩展按钮
|
|
7
|
+
<code src="./_test/draft/index.tsx" title="类似的操作,请查看API" ></code>
|
|
8
|
+
|
|
9
|
+
## 设置购买方名称搜索
|
|
10
|
+
<code src="./_test/buyerNameSearch/index.tsx"></code>
|
|
11
|
+
|
|
12
|
+
## 设置扣除额(差额征税)
|
|
13
|
+
<code src="./_test/deduction/index.tsx"></code>
|
|
14
|
+
|
|
15
|
+
## 设置单位列表、税率列表
|
|
16
|
+
<code src="./_test/unit/index.tsx" ></code>
|
|
17
|
+
|
|
18
|
+
## 发票头类型设置和购买方信息配置
|
|
19
|
+
<code src="./_test/invoiceType/index.tsx" ></code>
|
|
20
|
+
|
|
21
|
+
## 隐藏发票单据编号
|
|
22
|
+
<code src="./_test/isInvoiceNo/index.tsx" title="通过InvoiceHeader.isInvoiceNo" ></code>
|
|
23
|
+
|
|
24
|
+
## 替换发票头 UI
|
|
25
|
+
<code src="./_test/replaceHead/index.tsx" title="其他UI的替换类型,请查看API" ></code>
|
|
26
|
+
|
|
27
|
+
## 销售方 预设、自动补全、禁用
|
|
28
|
+
<code src="./_test/seller/index.tsx"></code>
|
|
29
|
+
|
|
30
|
+
## 点击按钮获取方法
|
|
31
|
+
<code src="./_test/retrieveData/index.tsx" title="查看 Console" ></code>
|
|
32
|
+
|
|
33
|
+
## 扩展货物操作按钮
|
|
34
|
+
<code src="./_test/goodsMenuExpand/index.tsx" title="查看 Console" ></code>
|
|
35
|
+
|
|
36
|
+
## 设置数据源 获取发票单据编号
|
|
37
|
+
<code src="./_test/setDataSource/index.tsx" ></code>
|
|
38
|
+
|
|
39
|
+
## 设置数据源 导入购买方
|
|
40
|
+
<code src="./_test/importBuyer/index.tsx"></code>
|
|
41
|
+
|
|
42
|
+
## 设置数据源 导入货物
|
|
43
|
+
<code src="./_test/importGoods/index.tsx"></code>
|
|
44
|
+
|
|
45
|
+
## 设置数据源 赋码 税收分类编码列表
|
|
46
|
+
<code src="./_test/endowCode/index.tsx"></code>
|
|
47
|
+
|
|
48
|
+
<API name="Invoice 发票组件 API" exports='["default"]' src="./index.tsx" ></API>
|
|
49
|
+
<API name="InvoiceHeader 发票头 API" exports='["default"]' src="./ui/default/InvoiceHeader/index.tsx"></API>
|
|
50
|
+
<API name="GoodsList 商品列表 API" exports='["default"]' src="./ui/default/GoodsList/index.tsx"></API>
|
|
51
|
+
<API name="Buyer 购买方 API" exports='["default"]' src="./ui/default/Buyer/index.tsx"></API>
|
|
52
|
+
<API name="Seller 销售方 API" exports='["default"]' src="./ui/default/Seller/index.tsx"></API>
|
|
53
|
+
<API name="Sign 落款 API" exports='["default"]' src="./ui/default/Sign/index.tsx"></API>
|