|
@ -1611,6 +1611,16 @@ function validateTaxRate(rule, value, callback) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { |
|
|
|
|
|
const reg = /^[1-9][0-9]*$/ |
|
|
|
|
|
if (reg.test(value)) { |
|
|
|
|
|
callback() |
|
|
|
|
|
}else{ |
|
|
|
|
|
callback(new Error('只能是数字')) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const SupplierinvoiceRequestMainRules = reactive({ |
|
|
export const SupplierinvoiceRequestMainRules = reactive({ |
|
|
taxRate: [ |
|
|
taxRate: [ |
|
@ -1624,7 +1634,8 @@ export const SupplierinvoiceRequestMainRules = reactive({ |
|
|
{ required: false, message: '请选择发票日期', trigger: 'blur' } |
|
|
{ required: false, message: '请选择发票日期', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
goldenTaxInvoiceNumber:[ |
|
|
goldenTaxInvoiceNumber:[ |
|
|
{ required: false, message: '请输入金税票号', trigger: 'blur' } |
|
|
{ required: false, message: '请输入金税票号', trigger: 'blur' }, |
|
|
|
|
|
{ validator:validateGoldenTaxInvoiceNumber, message: '金税票号只能是数字', trigger: 'blur'} |
|
|
], |
|
|
], |
|
|
departmentCode: [ |
|
|
departmentCode: [ |
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|