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 1/2] =?UTF-8?q?=E8=BF=90=E5=8D=95=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E5=8D=95=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'] } From df37100355c6558f4f26a15acd707b834dd5e2ba Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Fri, 31 Oct 2025 13:41:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BF=90=E5=8D=95=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E8=BF=90=E5=8D=95=E5=8F=B7=E9=95=BF=E5=BA=A66-18=E4=B9=8B?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisWaybill/waybillRecord.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue index ab78c235..565e0c1c 100644 --- a/src/views/emis/emisWaybill/waybillRecord.vue +++ b/src/views/emis/emisWaybill/waybillRecord.vue @@ -1048,6 +1048,12 @@ data() { message: this.$t('运单号格式错误,仅支持字母、数字和横杠,横杠需在字母/数字中间'), trigger: 'blur' }, + { + min: 6, + max: 18, + message: this.$t('运单号长度在6-18个字符之间'), + trigger: 'blur' + } ], destinationCountry: [ { required: true, message: "目的国不能为空", trigger: ["blur",'change'] }