Browse Source

新增验证“是否取得保安证书不能为空,请选择是否取得保安证书”

zhulu 1 năm trước cách đây
mục cha
commit
a7799e66a6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/views/system/dept/extend.vue

+ 4 - 0
src/views/system/dept/extend.vue

@@ -1614,6 +1614,10 @@ export default {
       //   this.$modal.msgError("外聘保安人数不能为空,请输入外聘保安人数");
       //   return false;
       // }
+      if ((this.type === this.org_type.yewd)&&this.askari==1&& this.isAskariCertificate==null) {
+        this.$modal.msgError("是否取得保安证书不能为空,请选择是否取得保安证书");
+        return false;
+      }
       if ((this.type === this.org_type.yewd)&&this.askari==1&&this.isAskariCertificate==1&&this.askariCertificate==null) {
         this.$modal.msgError("保安人员证书不能为空,请上传保安人员证书");
         return false;