kts-component-invoice-operate 3.1.20 → 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/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/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 +6302 -189
- package/dist/index.js +6288 -174
- package/package.json +1 -1
- 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/InvoiceControllerState/Stakeholder/index.ts +11 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +8 -0
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +1 -1
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +84 -0
- package/src/Invoice/InvoiceController/fns/delGood.ts +26 -28
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -0
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/_test/buyerNameSearch/index.tsx +2 -2
- package/src/Invoice/_test/easiest/index.tsx +1 -1
- package/src/Invoice/_test/endowCode/index.tsx +4 -4
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +1 -1
- package/src/Invoice/_test/importBuyer/index.tsx +1 -1
- package/src/Invoice/_test/importGoods/index.tsx +1 -1
- package/src/Invoice/_test/invoiceType/index.tsx +1 -1
- package/src/Invoice/_test/seller/index.tsx +1 -1
- package/src/Invoice/_test/setDataSource/index.tsx +1 -1
- package/src/Invoice/_test/unit/index.tsx +1 -1
- package/src/Invoice/index.less +19 -1
- package/src/Invoice/index.md +6 -6
- package/src/Invoice/index.tsx +74 -19
- package/src/Invoice/tools/mounting/index.ts +14 -0
- package/src/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.ts +1 -1
- package/src/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.tsx +5 -5
- package/src/Invoice/ui/{Buyer → default/Buyer}/index.tsx +2 -2
- package/src/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.tsx +2 -2
- package/src/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.tsx +1 -1
- package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.tsx +5 -5
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.ts +4 -4
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.tsx +3 -3
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +3 -3
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.tsx +2 -2
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -0
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.tsx +3 -3
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.tsx +2 -2
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -0
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +4 -4
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.tsx +1 -1
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.tsx +1 -1
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.tsx +1 -1
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.tsx +2 -2
- package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.tsx +1 -1
- package/src/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.tsx +1 -1
- package/src/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.tsx +4 -4
- package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.tsx +1 -1
- package/src/Invoice/ui/{Seller → default/Seller}/index.tsx +2 -2
- package/src/Invoice/ui/{Sign → default/Sign}/index.tsx +1 -1
- 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/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/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 +3 -0
- /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/{Buyer → default/Buyer}/index.less +0 -0
- /package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/spot.svg +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/icon/magnifier.svg +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.tsx +0 -0
- /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/auto.svg +0 -0
- /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.less +0 -0
- /package/src/Invoice/ui/{Seller → default/Seller}/index.less +0 -0
- /package/src/Invoice/ui/{Sign → default/Sign}/index.less +0 -0
- /package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.tsx +0 -0
- /package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.tsx +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../..';
|
|
3
|
+
import 'antd/dist/antd.css';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
|
|
7
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
8
|
+
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
(async () => {
|
|
11
|
+
|
|
12
|
+
await controller.run(async s => {
|
|
13
|
+
s.stakeholder.disableds = [
|
|
14
|
+
'buyerName',
|
|
15
|
+
'buyerTaxId',
|
|
16
|
+
'remark',
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
controller.formList.get('stakeholder')?.setFieldsValue({
|
|
21
|
+
buyerName: 'buyerName',
|
|
22
|
+
buyerTaxId: 'buyerTaxId',
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
controller.formList.get('sign')?.setFieldsValue({
|
|
26
|
+
remark: 'remark',
|
|
27
|
+
})
|
|
28
|
+
})()
|
|
29
|
+
|
|
30
|
+
}, [controller])
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Invoice
|
|
34
|
+
invoiceType='digtal'
|
|
35
|
+
controller={controller}
|
|
36
|
+
/>
|
|
37
|
+
)
|
|
38
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../..';
|
|
3
|
+
import 'antd/dist/antd.css';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
return (
|
|
7
|
+
<Invoice
|
|
8
|
+
invoiceType='digtal'
|
|
9
|
+
invoiceHeader={
|
|
10
|
+
<Invoice.InvoiceHeaderDigtal
|
|
11
|
+
defaultNo='2029292029201920291029'
|
|
12
|
+
defaultInvoicingDate='2023年7月6日'
|
|
13
|
+
defaultTag="成品油"
|
|
14
|
+
/>}
|
|
15
|
+
/>
|
|
16
|
+
)
|
|
17
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../..';
|
|
3
|
+
import 'antd/dist/antd.css';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
|
|
7
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), [])
|
|
8
|
+
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
(async () => {
|
|
11
|
+
await controller.run(async s => { s.model = 'readOnly' }); // 设置只读
|
|
12
|
+
await controller.formList.get('invoiceHeader')?.setFieldsValue({
|
|
13
|
+
no: '2029292029201920291029',
|
|
14
|
+
invoicingDate: '2023年7月6日',
|
|
15
|
+
tag:'成品油',
|
|
16
|
+
})
|
|
17
|
+
await controller.formList.get('stakeholder')?.setFieldsValue({
|
|
18
|
+
buyerName: '购买方名称',
|
|
19
|
+
buyerTaxId: 'xxxxxxxxxx',
|
|
20
|
+
buyerAddress: '购买方地址',
|
|
21
|
+
buyerPhone: '15800000000',
|
|
22
|
+
buyerBank: '购买方开户银行',
|
|
23
|
+
buyerAccount: '银行账号',
|
|
24
|
+
|
|
25
|
+
supplierName: '销售方名称',
|
|
26
|
+
supplierTaxId: 'xxxxxxxxxxxx',
|
|
27
|
+
sellerAddress: '购买方地址',
|
|
28
|
+
sellerPhone: '15800000000',
|
|
29
|
+
sellerBank: '购买方开户银行',
|
|
30
|
+
sellerAccount: '银行账号',
|
|
31
|
+
})
|
|
32
|
+
await controller.formList.get('sign')?.setFieldsValue({
|
|
33
|
+
remark: '备注',
|
|
34
|
+
issuer: '张自豪',
|
|
35
|
+
})
|
|
36
|
+
})()
|
|
37
|
+
}, [controller])
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<Invoice invoiceType='digtal' controller={controller} />
|
|
41
|
+
)
|
|
42
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../..';
|
|
3
|
+
import 'antd/dist/antd.css';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
|
|
7
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<Invoice controller={controller} invoiceType='digtal' />
|
|
11
|
+
)
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Invoice from '../../..';
|
|
3
|
+
import 'antd/dist/antd.css';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
|
|
7
|
+
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
8
|
+
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
controller.run(async s => {
|
|
11
|
+
s.typeModalProps = {
|
|
12
|
+
businessOptions: [
|
|
13
|
+
{ label: '成品油', value: '1' }
|
|
14
|
+
],
|
|
15
|
+
invoiceTypeOptions: [
|
|
16
|
+
{ label: '类型1', value: '1' },
|
|
17
|
+
{ label: '类型2', value: '2' },
|
|
18
|
+
{ label: '类型3', value: '3' },
|
|
19
|
+
{ label: '类型4', value: '4' },
|
|
20
|
+
],
|
|
21
|
+
onOk: (e => { console.log(e) })
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}, [controller])
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<Invoice invoiceType='digtal' controller={controller} />
|
|
28
|
+
)
|
|
29
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 数电
|
|
2
|
+
|
|
3
|
+
## 简单用法
|
|
4
|
+
<code src="./_test/easiest/index.tsx"></code>
|
|
5
|
+
|
|
6
|
+
## 只读模式
|
|
7
|
+
<code src="./_test/readOnly/index.tsx"></code>
|
|
8
|
+
|
|
9
|
+
## 发票号码 & 开票日期 & 标签
|
|
10
|
+
<code src="./_test/header/index.tsx"></code>
|
|
11
|
+
|
|
12
|
+
## 导入关系人
|
|
13
|
+
<code src="./_test/stakeholder/index.tsx"></code>
|
|
14
|
+
|
|
15
|
+
## 类型选择
|
|
16
|
+
<code src="./_test/typeSelection/index.tsx"></code>
|
|
17
|
+
|
|
18
|
+
## 表单禁用
|
|
19
|
+
<code src="./_test/disabled/index.tsx"></code>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import GoodsListState from './GoodsListState';
|
|
2
2
|
import BuyerState from './BuyerState';
|
|
3
|
+
import Stakeholder from './Stakeholder';
|
|
4
|
+
import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
|
|
3
5
|
|
|
4
6
|
export default class InvoiceControllerState {
|
|
5
7
|
|
|
@@ -31,6 +33,9 @@ export default class InvoiceControllerState {
|
|
|
31
33
|
/** 购买方 */
|
|
32
34
|
buyerState = new BuyerState();
|
|
33
35
|
|
|
36
|
+
/** 干系人 相关-买方、卖方、备注、开票人 */
|
|
37
|
+
stakeholder = new Stakeholder();
|
|
38
|
+
|
|
34
39
|
/** 货物信息 */
|
|
35
40
|
goodsListState = new GoodsListState();
|
|
36
41
|
|
|
@@ -45,4 +50,7 @@ export default class InvoiceControllerState {
|
|
|
45
50
|
|
|
46
51
|
/** 组件根结构 */
|
|
47
52
|
rootElement?: HTMLDivElement | null = null;
|
|
53
|
+
|
|
54
|
+
/** 发票类型选择窗口 */
|
|
55
|
+
typeModalProps?: IInvoiceTypeModalProps;
|
|
48
56
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
import { bignumber, chain } from 'mathjs';
|
|
4
|
+
import { InvoiceControllerState, LineAttributeType } from '../';
|
|
5
|
+
import idGenerator from '../../tools/idGenerator';
|
|
6
|
+
|
|
7
|
+
export interface IOptions {
|
|
8
|
+
/** 需要添加的索引 */
|
|
9
|
+
$index: string;
|
|
10
|
+
|
|
11
|
+
/** 折扣 金额 */
|
|
12
|
+
discolineAmountunt: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 给一组货物添加折扣行
|
|
17
|
+
*/
|
|
18
|
+
export default async (state: InvoiceControllerState, options?: IOptions[]) => {
|
|
19
|
+
|
|
20
|
+
if (!options || options.length <= 0) return;
|
|
21
|
+
|
|
22
|
+
const discountGroup = uuidv4();
|
|
23
|
+
|
|
24
|
+
options.forEach(e => {
|
|
25
|
+
const goodsList = state.goodsListState.goodsList;
|
|
26
|
+
const goodsMap = state.goodsListState.goodsMap;
|
|
27
|
+
for (let i = 0; i < goodsList.length; i++) {
|
|
28
|
+
const good = goodsList[i];
|
|
29
|
+
if (good.$index !== e.$index) continue;
|
|
30
|
+
|
|
31
|
+
// 折扣行 税额
|
|
32
|
+
const lineAmountExcludeTax = getLineAmountExcludeTax(e.discolineAmountunt, good.taxRate);
|
|
33
|
+
const taxAmount = getTaxAmount(e.discolineAmountunt, lineAmountExcludeTax);
|
|
34
|
+
|
|
35
|
+
good.lineAttribute = LineAttributeType.被折扣行;
|
|
36
|
+
good.discountGroup = discountGroup;
|
|
37
|
+
|
|
38
|
+
const newGood = {
|
|
39
|
+
discountGroup,
|
|
40
|
+
$index: idGenerator(),
|
|
41
|
+
lineAttribute: LineAttributeType.折扣行,
|
|
42
|
+
taxRate: good.taxRate,
|
|
43
|
+
itemName: good.itemName,
|
|
44
|
+
|
|
45
|
+
taxAmount: -1 * taxAmount,
|
|
46
|
+
lineAmountExcludeTax: -1 * lineAmountExcludeTax,
|
|
47
|
+
lineAmountIncludeTax: -1 * e.discolineAmountunt,
|
|
48
|
+
|
|
49
|
+
taxFreeType: good.taxFreeType,
|
|
50
|
+
favouredPolicyMark: good.favouredPolicyMark,
|
|
51
|
+
favouredPolicyName: good.favouredPolicyName,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
goodsList.splice(i + 1, 0, newGood);
|
|
55
|
+
goodsMap.set(newGood.$index, newGood);
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
state.goodsListState.goodsList = [...state.goodsListState.goodsList];
|
|
60
|
+
state.goodsListState.goodsMap = new Map(state.goodsListState.goodsMap);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 金额(不含税) = 含税金额 / (1 + 税率) */
|
|
64
|
+
function getLineAmountExcludeTax(lineAmountIncludeTax: number, taxRate: number = 0) {
|
|
65
|
+
const biTaxRate = chain(bignumber(taxRate)).divide(bignumber(100)).done();
|
|
66
|
+
return chain(bignumber(lineAmountIncludeTax))
|
|
67
|
+
.divide(chain(bignumber(1)).add(biTaxRate).done())
|
|
68
|
+
|
|
69
|
+
.multiply(bignumber(100))
|
|
70
|
+
.floor()
|
|
71
|
+
.divide(bignumber(100))
|
|
72
|
+
|
|
73
|
+
.done()
|
|
74
|
+
.toNumber()
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** 税额 = 含税金额 - 金额(不含税) */
|
|
78
|
+
function getTaxAmount(lineAmountIncludeTax: number, lineAmountExcludeTax: number) {
|
|
79
|
+
return chain(bignumber(lineAmountIncludeTax))
|
|
80
|
+
.subtract(bignumber(lineAmountExcludeTax))
|
|
81
|
+
|
|
82
|
+
.done()
|
|
83
|
+
.toNumber()
|
|
84
|
+
}
|
|
@@ -2,42 +2,40 @@ import { InvoiceControllerState, IGood } from '../';
|
|
|
2
2
|
import LineAttributeType from '../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 删除一个货物
|
|
6
6
|
*/
|
|
7
7
|
export default async (state: InvoiceControllerState, $index?: string) => {
|
|
8
8
|
if (!$index) return;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// 查下要删除的货物
|
|
11
|
+
const goods = state.goodsListState.goodsList.filter((e) => e.$index === $index)[0];
|
|
11
12
|
if (!goods) return;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
) {
|
|
13
|
+
|
|
14
|
+
// 如果正在编辑 就取消编辑
|
|
15
|
+
if (state.goodsListState.editGood && state.goodsListState.editGood.$index === $index) {
|
|
16
16
|
state.goodsListState.editGood = undefined;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
19
|
+
const goodsList = state.goodsListState.goodsList;
|
|
20
|
+
const goodsMap = state.goodsListState.goodsMap;
|
|
21
|
+
|
|
22
|
+
goodsMap.delete($index);
|
|
23
|
+
|
|
24
|
+
for (let i = 0; i < goodsList.length; i++) {
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
);
|
|
26
|
+
if (goodsList[i].$index === $index) {
|
|
27
|
+
const good = goodsList[i];
|
|
28
|
+
|
|
29
|
+
if (good.lineAttribute === LineAttributeType.折扣行 && goodsList[i - 1] && goodsList[i - 1].lineAttribute === LineAttributeType.被折扣行) {
|
|
30
|
+
goodsList[i - 1].lineAttribute = LineAttributeType.正常;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
goodsList.splice(i, 1);
|
|
34
|
+
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
42
37
|
}
|
|
38
|
+
|
|
39
|
+
state.goodsListState.goodsList = [...goodsList];
|
|
40
|
+
state.goodsListState.goodsMap = new Map(goodsMap);
|
|
43
41
|
};
|
|
@@ -7,6 +7,7 @@ import setEditGood from './fns/setEditGood';
|
|
|
7
7
|
import setGoods from './fns/setGoods';
|
|
8
8
|
import delGood from './fns/delGood';
|
|
9
9
|
import addGoodDiscount from './fns/addGoodDiscount';
|
|
10
|
+
import addGoodDiscountV2 from './fns/addGoodDiscountV2';
|
|
10
11
|
import addGood from './fns/addGood';
|
|
11
12
|
import saveEditGood from './fns/saveEditGood';
|
|
12
13
|
import getGoodsSearch from './fns/getGoodsSearch';
|
|
@@ -50,6 +51,9 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
50
51
|
/** 给一组货物添加折扣行 */
|
|
51
52
|
addGoodDiscount = this.pipeline(addGoodDiscount);
|
|
52
53
|
|
|
54
|
+
/** 给一组货物添加折扣行 */
|
|
55
|
+
addGoodDiscountV2 = this.pipeline(addGoodDiscountV2);
|
|
56
|
+
|
|
53
57
|
/** 获取 商品 列表 */
|
|
54
58
|
getGoodsList?: (option?: IGetGoodsListOption | undefined) => Promise<any>;
|
|
55
59
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Invoice } from '
|
|
2
|
+
import { Invoice } from '../../../..';
|
|
3
3
|
import idGenerator from '../../../Invoice/tools/idGenerator';
|
|
4
4
|
import { LineAttributeType } from '../../../Invoice/InvoiceController';
|
|
5
5
|
import { Button, Switch } from 'kts-components-antd-x3';
|
|
@@ -119,10 +119,10 @@ for (let i = 0; i <= 10000; i++) {
|
|
|
119
119
|
$index: idGenerator(),
|
|
120
120
|
itemName: `项目名称${i}`,
|
|
121
121
|
lineAttribute: LineAttributeType.正常,
|
|
122
|
-
lineAmountExcludeTax:
|
|
123
|
-
lineAmountIncludeTax:
|
|
122
|
+
lineAmountExcludeTax: 9.99,
|
|
123
|
+
lineAmountIncludeTax: 10.29,
|
|
124
124
|
taxRate: 3,
|
|
125
|
-
taxAmount: 3,
|
|
125
|
+
taxAmount: 0.3,
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Button } from 'kts-components-antd-x3/lib/radio';
|
|
4
|
-
import { Invoice, IGood } from '
|
|
4
|
+
import { Invoice, IGood } from '../../../..';
|
|
5
5
|
import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
|
|
6
6
|
|
|
7
7
|
const InvoiceController = Invoice.InvoiceController
|
package/src/Invoice/index.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.kts-invoice-operate {
|
|
2
|
-
border: 1px solid #dcdcdc;
|
|
2
|
+
border : 1px solid #dcdcdc;
|
|
3
3
|
font-size: 12px;
|
|
4
4
|
|
|
5
5
|
&>* {
|
|
@@ -10,3 +10,21 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
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,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 默认
|
|
2
2
|
|
|
3
3
|
## 简单用法
|
|
4
4
|
<code src="./_test/easiest/index.tsx"></code>
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
<code src="./_test/endowCode/index.tsx"></code>
|
|
47
47
|
|
|
48
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>
|
|
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>
|