ljlong_2630
1 month ago
6 changed files with 491 additions and 147 deletions
@ -1,121 +0,0 @@ |
|||
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
|
|||
// 表单校验
|
|||
export const CustomerSaleInvoiceDetailRules = reactive({ |
|||
itemCode: [required], |
|||
articleNumber: [required], |
|||
qty: [required], |
|||
price: [required], |
|||
allocationPrice: [required], |
|||
sumPrice: [required], |
|||
afterTaxAmount: [required], |
|||
beforeTaxAmount: [required], |
|||
taxAmount: [required], |
|||
}) |
|||
|
|||
export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|||
{ |
|||
label: 'id', |
|||
field: 'id', |
|||
sort: 'custom', |
|||
isTable: false, |
|||
isForm: false, |
|||
}, |
|||
{ |
|||
label: '单据号', |
|||
field: 'number', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '主id', |
|||
field: 'masterId', |
|||
sort: 'custom', |
|||
form: { |
|||
component: 'InputNumber', |
|||
value: 0 |
|||
}, |
|||
}, |
|||
{ |
|||
label: '品番即物料代码', |
|||
field: 'itemCode', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
}, |
|||
{ |
|||
label: '品号即品番2', |
|||
field: 'articleNumber', |
|||
sort: 'custom', |
|||
isSearch: true, |
|||
}, |
|||
{ |
|||
label: '数量', |
|||
field: 'qty', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '单价', |
|||
field: 'price', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '模具分摊单价', |
|||
field: 'allocationPrice', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '合计单价', |
|||
field: 'sumPrice', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '含税金额', |
|||
field: 'afterTaxAmount', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '未税金额', |
|||
field: 'beforeTaxAmount', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '税额', |
|||
field: 'taxAmount', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '备注', |
|||
field: 'remark', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '是否可用默认TRUE', |
|||
field: 'available', |
|||
sort: 'custom', |
|||
}, |
|||
{ |
|||
label: '创建时间', |
|||
field: 'createTime', |
|||
sort: 'custom', |
|||
formatter: dateFormatter, |
|||
isSearch: true, |
|||
search: { |
|||
component: 'DatePicker', |
|||
componentProps: { |
|||
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|||
type: 'daterange', |
|||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|||
} |
|||
}, |
|||
isForm: false, |
|||
}, |
|||
{ |
|||
label: '操作', |
|||
field: 'action', |
|||
isForm: false, |
|||
table: { |
|||
width: 150, |
|||
fixed: 'right' |
|||
} |
|||
} |
|||
])) |
Loading…
Reference in new issue