2
3
baichengfei 5 жил өмнө
parent
commit
c9c4ed511b

+ 24 - 21
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -356,7 +356,7 @@
                    v-if="parseInt(activeName) < totalTab">下一步</el-button>
         <el-button type="primary"
                    size="mini"
-                   @click="nextStep()"
+                   @click="commitAudit()"
                    v-if="add_flat && IsCompanyUser == 1 && parseInt(activeName)==3">
           提交
         </el-button>
@@ -1233,17 +1233,17 @@ export default {
         .formDataCert.InStyle)
     },
     nextTab () {
-      if (this.formData.AuditIndex > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status < 0) {
-        this.totalTab = 4
-      }
+      // if (this.formData.AuditIndex > 0) {
+      //   this.totalTab = 3
+      // }
+      // if (this.formDataCert.Status > 0) {
+      //   this.totalTab = 3
+      // }
+      // if (this.formDataCert.Status < 0) {
+      //   this.totalTab = 3
+      // }
       if (this.formDataCert.Status >= 5) {
-        this.totalTab = 5
+        this.totalTab = 4
       }
 
       let valid = true
@@ -1306,27 +1306,30 @@ export default {
       if (!valid) {
         return false
       }
+      console.log(this.totalTab, 'aq3333')
       let activeIdx = parseInt(this.activeName)
+      console.log(this.activeIdx, 'aq3333')
       if (activeIdx < this.totalTab) {
         this.activeName = (activeIdx + 1) + ''
       } else {
         this.activeName = '0'
       }
+      console.log(this.activeName, 'aq3333')
       document.querySelector('.content').scrollTop = 0
     },
 
     backTab () {
-      if (this.formData.AuditIndex > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status < 0) {
-        this.totalTab = 4
-      }
+      // if (this.formData.AuditIndex > 0) {
+      //   this.totalTab = 3
+      // }
+      // if (this.formDataCert.Status > 0) {
+      //   this.totalTab = 3
+      // }
+      // if (this.formDataCert.Status < 0) {
+      //   this.totalTab = 3
+      // }
       if (this.formDataCert.Status >= 5) {
-        this.totalTab = 5
+        this.totalTab = 4
       }
 
       let activeIdx = parseInt(this.activeName)

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

@@ -1291,17 +1291,17 @@ export default {
         })
     },
     nextTab () {
-      if (this.formData.AuditIndex > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status < 0) {
-        this.totalTab = 4
-      }
+      // if (this.formData.AuditIndex > 0) {
+      //   this.totalTab = 4
+      // }
+      // if (this.formDataCert.Status > 0) {
+      //   this.totalTab = 4
+      // }
+      // if (this.formDataCert.Status < 0) {
+      //   this.totalTab = 4
+      // }
       if (this.formDataCert.Status >= 5) {
-        this.totalTab = 5
+        this.totalTab = 4
       }
 
       let valid = true
@@ -1373,17 +1373,17 @@ export default {
     },
 
     backTab () {
-      if (this.formData.AuditIndex > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status > 0) {
-        this.totalTab = 4
-      }
-      if (this.formDataCert.Status < 0) {
-        this.totalTab = 4
-      }
+      // if (this.formData.AuditIndex > 0) {
+      //   this.totalTab = 4
+      // }
+      // if (this.formDataCert.Status > 0) {
+      //   this.totalTab = 4
+      // }
+      // if (this.formDataCert.Status < 0) {
+      //   this.totalTab = 4
+      // }
       if (this.formDataCert.Status >= 5) {
-        this.totalTab = 5
+        this.totalTab = 4
       }
 
       let activeIdx = parseInt(this.activeName)