Browse Source

HL-5974SCP 供应商发票申请,新增时,金税票号输入0开头的,不应该校验

hella_online_20240913
yufei_wang 2 months ago
parent
commit
4db0bf49bc
  1. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

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

@ -1612,8 +1612,9 @@ function validateTaxRate(rule, value, callback) {
} }
const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { const validateGoldenTaxInvoiceNumber = (rule, value, callback) => {
const reg = /^[1-9][0-9]*$/ console.log('金税票号',value)
if (!value||reg.test(value)) { const reg = /^[0-9]*$/
if (value==null||value==''||reg.test(value)) {
callback() callback()
}else{ }else{
callback(new Error('只能是数字')) callback(new Error('只能是数字'))

Loading…
Cancel
Save