潜在服务商修改

This commit is contained in:
2025-10-22 15:02:46 +08:00
parent f622bb6d45
commit c2c319bfe8
2 changed files with 21 additions and 10 deletions

View File

@ -151,9 +151,16 @@
this.$toast('请输入不通过原因')
return
}
if( this.form.state == 1 && !this.form.abbr ) {
this.$toast('请输入服务商简称')
return
if( this.form.state == 1 ) {
const reg = /^[\u4e00-\u9fa5]{2}$/;
if(!this.form.abbr) {
this.$toast('请输入服务商简称')
return
}
if(!(reg.test(this.form.abbr))) {
this.$toast('服务商简称请输入两位汉字')
return
}
}
try {
await auditSupplier({