Browse Source

服务 基建注册资本不能等于0;vvalid

baichengfei 5 years ago
parent
commit
ae1143810e

+ 8 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -1417,6 +1417,14 @@ export default {
         valid2 = valid
       })
 
+      if (this.formData.RegCapital <= 0) {
+        this.$message({
+          type: 'warning',
+          message: '注册资本必须大于0万元!'
+        })
+        return
+      }
+
       if (valid1 && valid2) {
         if (!this.formData.SetupTime) {
           this.formData.SetupTime = null

+ 9 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -1410,10 +1410,16 @@ export default {
         valid1 = valid
       })
 
-      this.$refs['TechInfo'].$refs['EntityFormCert'].validate(vvalid => {
-        valid2 = vvalid
+      this.$refs['TechInfo'].$refs['EntityFormCert'].validate(valid => {
+        valid2 = valid
       })
-
+      if (this.formData.RegCapital <= 0) {
+        this.$message({
+          type: 'warning',
+          message: '注册资本必须大于0万元!'
+        })
+        return
+      }
       if (valid1 && valid2) {
         if (!this.formData.SetupTime) {
           this.formData.SetupTime = null