From 4db0bf49bcd07cef141f568644b876c22b852249 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 11 Sep 2024 16:24:18 +0800 Subject: [PATCH] =?UTF-8?q?HL-5974SCP=20=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=8F=91=E7=A5=A8=E7=94=B3=E8=AF=B7=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=87=91=E7=A8=8E=E7=A5=A8=E5=8F=B7=E8=BE=93?= =?UTF-8?q?=E5=85=A50=E5=BC=80=E5=A4=B4=E7=9A=84=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRequestMain.data.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index f0356d8d8..2e02b6143 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1612,8 +1612,9 @@ function validateTaxRate(rule, value, callback) { } const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { - const reg = /^[1-9][0-9]*$/ - if (!value||reg.test(value)) { + console.log('金税票号',value) + const reg = /^[0-9]*$/ + if (value==null||value==''||reg.test(value)) { callback() }else{ callback(new Error('只能是数字'))