| | |
| | | labelField: 'name', |
| | | valueField: 'id', |
| | | }, |
| | | help: '付款账户数据来自【财务管理 → 结算账户】菜单维护的开启状态账户,无选项时请先在结算账户页面新增。', |
| | | }, |
| | | { |
| | | fieldName: 'totalPrice', |
| | |
| | | fieldName: 'discountPrice', |
| | | label: '优惠金额', |
| | | component: 'InputNumber', |
| | | defaultValue: 0, |
| | | componentProps: { |
| | | class: '!w-full', |
| | | disabled: formType === 'detail', |
| | |
| | | ]; |
| | | } |
| | | |
| | | /** 表单的明细表格列 */ |
| | | export function useFormItemColumns( |
| | | disabled: boolean, |
| | | ): VxeTableGridOptions['columns'] { |
| | | /** 表单的明细表格列(付款基于来票,明细由来票自动生成,不可删除) */ |
| | | export function useFormItemColumns(): VxeTableGridOptions['columns'] { |
| | | return [ |
| | | { type: 'seq', title: '序号', minWidth: 50, fixed: 'left' }, |
| | | { |
| | | field: 'bizNo', |
| | | title: '采购单据编号', |
| | | title: '来票编号', |
| | | minWidth: 200, |
| | | }, |
| | | { |
| | |
| | | title: '备注', |
| | | minWidth: 150, |
| | | slots: { default: 'remark' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | width: 50, |
| | | fixed: 'right', |
| | | slots: { default: 'actions' }, |
| | | visible: !disabled, |
| | | }, |
| | | ]; |
| | | } |