kts-component-invoice-operate 3.2.181-32 → 3.2.181-34
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/index.d.ts +2 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.d.ts +2 -0
- package/dist/index.esm.js +329 -192
- package/dist/index.js +329 -192
- 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/static/plus.44013ce3.svg +12 -0
- package/docs-dist/static/plus.4fd1af30.svg +12 -0
- package/package.json +1 -1
- package/src/Invoice/index.tsx +2 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +70 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +3 -5
package/dist/Invoice/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export interface IInvoiceProps {
|
|
|
31
31
|
footExpand?: React.ReactNode;
|
|
32
32
|
/** 发票种类: default-默认,digtal-数电 */
|
|
33
33
|
invoiceType?: 'default' | 'digtal';
|
|
34
|
+
/** 编辑中的商品行变化时触发(数量/单价/税率等字段变更时) */
|
|
35
|
+
onEditGoodChange?: (editGood: any) => void;
|
|
34
36
|
}
|
|
35
37
|
export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
36
38
|
/** 控制器 */
|
|
@@ -21,6 +21,8 @@ export declare const onChangeLineAmountIncludeTax: (...par: any[]) => void;
|
|
|
21
21
|
export declare const onChangeLineAmountExcludeTax: (...par: any[]) => void;
|
|
22
22
|
/** 税率 */
|
|
23
23
|
export declare const onChangeTaxRate: (...par: any[]) => void;
|
|
24
|
+
/** 税额 */
|
|
25
|
+
export declare const onChangeTaxAmount: (...par: any[]) => void;
|
|
24
26
|
/** 小规模纳税人 1% 和 3% 自动赋码免税 */
|
|
25
27
|
export declare function dutyFree(controller: InvoiceController, taxRate: number, form: WrappedFormUtils<any>, record: IGood): number | undefined;
|
|
26
28
|
/** 含税 => 更新(不含税) */
|