From 86c0b7eb1dac8d4ff3a728a558262706a03b9008 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Thu, 30 Oct 2025 14:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E5=8D=95=E5=BD=95=E5=85=A5=E5=8D=95?= =?UTF-8?q?=E5=8F=B7=E6=A0=BC=E5=BC=8F=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisWaybill/waybillRecord.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue index e0d33ba9..ab78c235 100644 --- a/src/views/emis/emisWaybill/waybillRecord.vue +++ b/src/views/emis/emisWaybill/waybillRecord.vue @@ -1042,7 +1042,12 @@ data() { // 表单校验 rules: { billCode: [ - { required: true, message: "运单号不能为空", trigger: ["blur",'change'] } + { required: true, message: "运单号不能为空", trigger: ["blur",'change'] }, + { + pattern: /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/, + message: this.$t('运单号格式错误,仅支持字母、数字和横杠,横杠需在字母/数字中间'), + trigger: 'blur' + }, ], destinationCountry: [ { required: true, message: "目的国不能为空", trigger: ["blur",'change'] }