Browse Source

税率校验

master_hella_20240701
yufei0306 7 months ago
parent
commit
b83b220750
  1. 12
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

12
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -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' }
],

Loading…
Cancel
Save