kts-component-invoice-operate 3.1.20 → 3.2.1
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/importStakeholder/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/default/ImportGoodsDrawer/index.d.ts +3 -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 +8 -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 +12 -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 +6379 -189
- package/dist/index.js +6365 -174
- package/docs-dist/404.html +33 -33
- package/docs-dist/index.html +33 -33
- package/docs-dist/static/add.a70623b4.svg +12 -0
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +3 -0
- package/docs-dist/static/arrowUp.4c482054.svg +3 -0
- package/docs-dist/static/fork.5431267d.svg +12 -0
- package/docs-dist/umi.css +19 -19
- package/docs-dist/umi.js +1 -1
- 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/importGoods/index.tsx +471 -0
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/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 +25 -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 +75 -18
- 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 +636 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +12 -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 +24 -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 +180 -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 +320 -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 +260 -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/Invoice/ui/digtal/Stakeholder/svg/plus.svg +12 -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 +127 -0
- package/src/index.ts +3 -0
- /package/dist/Invoice/{ui/Buyer/ui/ImportBuyerButton → Invoice-digtal/_test/importGoods}/index.d.ts +0 -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/{GoodsList/ui/AddRowButton → 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/ui/DescribeSwitch → 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/ui/TaxIncludedSwitch → 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/{ImportBuyerDrawer → default/GoodsList/ui/TaxIncludedSwitch}/index.d.ts +0 -0
- /package/dist/Invoice/ui/{ImportGoodsDrawer → default/ImportBuyerDrawer}/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
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { Form, AutoComplete, Select, Button, Input, Spin, Tooltip } from 'kts-components-antd-x3';
|
|
3
3
|
import { InputProps } from 'kts-components-antd-x3/lib/input';
|
|
4
4
|
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
5
|
-
import { IGood } from '
|
|
6
|
-
import Invoice from '
|
|
5
|
+
import { IGood } from '../../../../../InvoiceController';
|
|
6
|
+
import Invoice from '../../../../..';
|
|
7
7
|
import RowMenu from './ui/RowMenu';
|
|
8
8
|
import TitleText from './ui/TitleText';
|
|
9
9
|
import ItemNameInput from './ui/ItemNameInput';
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
onChangeTaxRate,
|
|
17
17
|
onChangeItemName,
|
|
18
18
|
} from './autoFillFn';
|
|
19
|
-
import { getItemNameWithShorthand } from '
|
|
19
|
+
import { getItemNameWithShorthand } from '../../../../../tools/itemName';
|
|
20
20
|
|
|
21
21
|
export default (form: WrappedFormUtils) => {
|
|
22
22
|
const { getFieldDecorator, getFieldValue } = form;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Menu, message, Typography } from 'kts-components-antd-x3';
|
|
4
|
-
import { IGood, LineAttributeType } from '
|
|
5
|
-
import Invoice from '
|
|
4
|
+
import { IGood, LineAttributeType } from '../../../../../../../../../InvoiceController';
|
|
5
|
+
import Invoice from '../../../../../../../../..';
|
|
6
6
|
|
|
7
7
|
const { Text } = Typography;
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
// import { Menu, Typography } from 'kts-components-antd-x3';
|
|
3
|
-
import { IGood, LineAttributeType } from '
|
|
4
|
-
import Invoice from '
|
|
3
|
+
import { IGood, LineAttributeType } from '../../../../../../../../../InvoiceController';
|
|
4
|
+
import Invoice from '../../../../../../../../..';
|
|
5
5
|
|
|
6
6
|
// const { Text } = Typography;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button } from 'kts-components-antd-x3';
|
|
3
|
-
import Invoice from '
|
|
4
|
-
import { IGood } from '
|
|
2
|
+
// import { Button } from 'kts-components-antd-x3';
|
|
3
|
+
import Invoice from '../../../../../../../../..';
|
|
4
|
+
import { IGood } from '../../../../../../../../../InvoiceController';
|
|
5
5
|
import { endowCode } from '../../../../autoFillFn';
|
|
6
6
|
|
|
7
7
|
// const { Text } = Typography;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button, Menu, Dropdown, Icon, Typography } from 'kts-components-antd-x3';
|
|
3
|
-
import Invoice from '
|
|
4
|
-
import { IGood } from '
|
|
3
|
+
import Invoice from '../../../../../../..';
|
|
4
|
+
import { IGood } from '../../../../../../../InvoiceController';
|
|
5
5
|
import { ReactComponent as SpotSvg } from './spot.svg';
|
|
6
6
|
|
|
7
7
|
import useDelItem from './hook/useDelItem';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 扣除额 相关业务
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { InvoiceController } from "../../../../../..";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 扣除额 相关业务
|
|
11
|
+
*/
|
|
12
|
+
export default function useDeduction(controller: InvoiceController, deduction = 0) {
|
|
13
|
+
|
|
14
|
+
// 更新 扣除额
|
|
15
|
+
React.useEffect(() => { controller.pipeline(async s => s.goodsListState.deduction = deduction)(); }, [controller, deduction]);
|
|
16
|
+
|
|
17
|
+
// 重新计算
|
|
18
|
+
React.useEffect(()=>{
|
|
19
|
+
controller.pipeline(async s=>{
|
|
20
|
+
s.goodsListState.editGood = undefined;
|
|
21
|
+
s.goodsListState.goodsList = [];
|
|
22
|
+
})()
|
|
23
|
+
}, [controller, deduction])
|
|
24
|
+
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import Invoice from '
|
|
7
|
-
import IGood from '
|
|
8
|
-
import { LineAttributeType } from '
|
|
6
|
+
import Invoice from '../../../../..';
|
|
7
|
+
import IGood from '../../../../../InvoiceController/InvoiceControllerState/GoodsListState/IGood';
|
|
8
|
+
import { LineAttributeType } from '../../../../../InvoiceController';
|
|
9
9
|
|
|
10
10
|
export default () => {
|
|
11
11
|
/** 控制器 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Checkbox } from 'kts-components-antd-x3';
|
|
4
|
-
import { LineAttributeType } from '
|
|
5
|
-
import Invoice from '
|
|
4
|
+
import { LineAttributeType } from '../../../../../InvoiceController';
|
|
5
|
+
import Invoice from '../../../../..';
|
|
6
6
|
|
|
7
7
|
export default () => {
|
|
8
8
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 点击组件外部 保存正在编辑的货物
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { InvoiceController } from "../../../../../..";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 点击组件外部 保存正在编辑的货物
|
|
11
|
+
*/
|
|
12
|
+
export default function useWindowClick(controller: InvoiceController) {
|
|
13
|
+
|
|
14
|
+
/** 点击组件外部 保存正在编辑的货物 */
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
const click = () => { setTimeout(controller.saveEditGood) };
|
|
17
|
+
|
|
18
|
+
window.addEventListener('click', click);
|
|
19
|
+
return () => {
|
|
20
|
+
window.removeEventListener('click', click);
|
|
21
|
+
};
|
|
22
|
+
}, [controller]);
|
|
23
|
+
}
|
|
@@ -13,7 +13,7 @@ import TaxIncludedSwitch from './ui/TaxIncludedSwitch';
|
|
|
13
13
|
import DescribeSwitch from './ui/DescribeSwitch';
|
|
14
14
|
import Search from './ui/Search';
|
|
15
15
|
import TableRow from './ui/TableRow';
|
|
16
|
-
// import BulkMenu from './ui/BulkMenu';
|
|
16
|
+
// import BulkMenu from './ui/default/BulkMenu';
|
|
17
17
|
|
|
18
18
|
import useColumns from './hook/useColumns';
|
|
19
19
|
import useOnRow from './hook/useOnRow';
|
|
@@ -21,7 +21,7 @@ import useDeduction from './hook/useDeduction';
|
|
|
21
21
|
import useWindowClick from './hook/useWindowClick';
|
|
22
22
|
import useRowSelection from './hook/useRowSelection';
|
|
23
23
|
|
|
24
|
-
import Invoice from '
|
|
24
|
+
import Invoice from '../../..';
|
|
25
25
|
import './index.less';
|
|
26
26
|
|
|
27
27
|
import useEndowCodeButton from './ui/BulkMenu/hooks/useEndowCodeButton';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Invoice from '
|
|
2
|
+
import Invoice from '../../../../..';
|
|
3
3
|
import { Button, message } from 'kts-components-antd-x3';
|
|
4
|
-
import InvoiceController, { LineAttributeType } from '
|
|
4
|
+
import InvoiceController, { LineAttributeType } from '../../../../../InvoiceController';
|
|
5
5
|
|
|
6
6
|
export default () => {
|
|
7
7
|
const controller = Invoice.useInvoiceController();
|
|
@@ -11,10 +11,10 @@ import { Button, Drawer, Form, message, Input, Typography, Menu } from 'kts-comp
|
|
|
11
11
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
12
12
|
import { all, create } from 'mathjs';
|
|
13
13
|
import { decorator } from 'grey-react-box';
|
|
14
|
-
import Invoice from '
|
|
15
|
-
import lazyFn from '
|
|
16
|
-
import LineAttributeType from '
|
|
17
|
-
import evaluate from '
|
|
14
|
+
import Invoice from '../../../../../../..';
|
|
15
|
+
import lazyFn from '../../../../../../../tools/lazyFn';
|
|
16
|
+
import LineAttributeType from '../../../../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
|
|
17
|
+
import evaluate from '../../../../../../../../Invoice/tools/evaluate';
|
|
18
18
|
import './index.less';
|
|
19
19
|
|
|
20
20
|
const { Text } = Typography;
|
package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Invoice from '
|
|
3
|
-
import LineAttributeType from '
|
|
2
|
+
import Invoice from '../../../../../../..';
|
|
3
|
+
import LineAttributeType from '../../../../../../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
|
|
4
4
|
import { Button, Menu } from 'kts-components-antd-x3';
|
|
5
5
|
|
|
6
6
|
export default () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Invoice from '
|
|
2
|
+
import Invoice from '../../../../../../..';
|
|
3
3
|
import { message, Menu, Button } from 'kts-components-antd-x3';
|
|
4
|
-
import coolingFn from '
|
|
4
|
+
import coolingFn from '../../../../../../../tools/coolingFn';
|
|
5
5
|
|
|
6
6
|
export default () => {
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Icon, Input, message } from "kts-components-antd-x3";
|
|
4
4
|
import { ReactComponent as MagnifierSvg } from './icon/magnifier.svg';
|
|
5
|
-
import Invoice from '
|
|
5
|
+
import Invoice from '../../../../..';
|
|
6
6
|
import './index.less';
|
|
7
7
|
|
|
8
8
|
export default function Search() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Invoice from '
|
|
3
|
-
import { LineAttributeType } from '
|
|
2
|
+
import Invoice from '../../../../..';
|
|
3
|
+
import { LineAttributeType } from '../../../../../InvoiceController'
|
|
4
4
|
import classnames from 'classnames'
|
|
5
5
|
|
|
6
6
|
export default function TableRow(props: any) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Drawer, Table } from 'kts-components-antd-x3';
|
|
3
|
-
import Invoice from '
|
|
3
|
+
import Invoice from '../../..';
|
|
4
4
|
import { updateUnitPriceExcludingTax, updateUnitPriceTax, dutyFree, format15 } from '../GoodsList/hook/useColumns/autoFillFn';
|
|
5
|
-
import { countAmountIncludeTax } from '
|
|
6
|
-
import { IGood } from '
|
|
7
|
-
import evaluate from '
|
|
5
|
+
import { countAmountIncludeTax } from '../../../tools/calculate'
|
|
6
|
+
import { IGood } from '../../../InvoiceController';
|
|
7
|
+
import evaluate from '../../../tools/evaluate';
|
|
8
8
|
|
|
9
9
|
export default () => {
|
|
10
10
|
const controller = Invoice.useInvoiceController();
|
|
@@ -4,7 +4,7 @@ import { decorator } from 'grey-react-box';
|
|
|
4
4
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
5
5
|
// import moment from 'moment';
|
|
6
6
|
import { ReactComponent as AutoSvg } from './auto.svg';
|
|
7
|
-
import Invoice from '
|
|
7
|
+
import Invoice from '../../..';
|
|
8
8
|
import './index.less';
|
|
9
9
|
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { Descriptions, Input, Form } from 'kts-components-antd-x3';
|
|
3
3
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
4
4
|
import { decorator } from 'grey-react-box';
|
|
5
|
-
import Invoice from '
|
|
6
|
-
import { IFormItem } from '
|
|
5
|
+
import Invoice from '../../..';
|
|
6
|
+
import { IFormItem } from '../../../InvoiceController/InvoiceControllerState/BuyerState';
|
|
7
7
|
import './index.less';
|
|
8
8
|
|
|
9
9
|
const { TextArea } = Input;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Descriptions, Input, Form } from 'kts-components-antd-x3';
|
|
3
3
|
import { decorator } from 'grey-react-box';
|
|
4
4
|
import { FormComponentProps } from 'kts-components-antd-x3/lib/form';
|
|
5
|
-
import Invoice from '
|
|
5
|
+
import Invoice from '../../..';
|
|
6
6
|
import './index.less';
|
|
7
7
|
|
|
8
8
|
export interface IBuyerProps {
|