|
|
@ -697,8 +697,20 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
function validateTaxRate(rule, value, callback) { |
|
|
|
if (value>0) { |
|
|
|
callback() |
|
|
|
}else{ |
|
|
|
callback(new Error('税率必须大于0')) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const SupplierinvoiceRequestMainRules = reactive({ |
|
|
|
taxRate: [ |
|
|
|
required, |
|
|
|
{ validator:validateTaxRate, message: '税率必须大于0', trigger: 'blur'} |
|
|
|
], |
|
|
|
invoiceTime: [ |
|
|
|
{ required: true, message: '请选择发票日期', trigger: 'change' } |
|
|
|
], |
|
|
|