2
3
Эх сурвалжийг харах

准入申请下一步显示

baichengfei 5 жил өмнө
parent
commit
7af62769ae

+ 4 - 27
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -578,7 +578,7 @@ export default {
       loading: false,
       WorkerTotal: 0,
       allowpre: true,
-      totalTab: 4,
+      totalTab: 3,
       activeName: '0',
       chooseAuditorVisible: false,
       chooseAuditorVisibleFen: false,
@@ -1181,6 +1181,9 @@ export default {
           this.formDataCert.Status = this.formData.Status
           this.formDataCert.WorkflowId = this.formData.WorkflowId
           this.formDataCert.InStyle = this.formData.InStyle
+          if (this.formData.Status > 0) {
+            this.totalTab = 4
+          }
           if (this.formData.Status > 0 || this.formData.Status == -5) {
             this.add_flat = false
           }
@@ -1233,19 +1236,6 @@ export default {
         .formDataCert.InStyle)
     },
     nextTab () {
-      // 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 = 4
-      }
-
       let valid = true
       // this
       if (this.formDataCert.Status <= 0 && this.activeName === '0') {
@@ -1319,19 +1309,6 @@ export default {
     },
 
     backTab () {
-      // 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 = 4
-      }
-
       let activeIdx = parseInt(this.activeName)
       if (activeIdx > 0) {
         this.activeName = (activeIdx - 1) + ''

+ 1 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1270,6 +1270,7 @@ export default {
             if (this.formData.Status > 0) {
               this.add_flat = false
               this.delete_flat = false
+              this.totalTab = 4
             }
 
             if (this.formData.CredentialFlag != '') {

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

@@ -574,7 +574,7 @@ export default {
       loading: false,
       WorkerTotal: 0,
       allowpre: true,
-      totalTab: 4,
+      totalTab: 3,
       activeName: '0',
       chooseAuditorVisible: false,
       chooseAuditorVisibleFen: false,
@@ -1174,6 +1174,9 @@ export default {
             this.formDataCert.Status = this.formData.Status
             this.formDataCert.WorkflowId = this.formData.WorkflowId
             this.formDataCert.InStyle = this.formData.InStyle
+            if (this.formDataCert.Status > 0) {
+              this.totalTab = 4
+            }
             if (this.formData.Status > 0 || this.formData.Status == -5) {
               this.add_flat = false
             }
@@ -1291,19 +1294,6 @@ export default {
         })
     },
     nextTab () {
-      // if (this.formData.AuditIndex > 0) {
-      //   this.totalTab = 4
-      // }
-      // if (this.formDataCert.Status > 0) {
-      //   this.totalTab = 4
-      // }
-      if (this.formDataCert.Status == '') {
-        this.totalTab = 3
-      }
-      if (this.formDataCert.Status >= 5) {
-        this.totalTab = 4
-      }
-
       let valid = true
       if (this.formDataCert.Status <= 0 && this.activeName === '0') {
         valid = this.saveEntity()
@@ -1369,23 +1359,11 @@ export default {
       } else {
         this.activeName = '0'
       }
+      console.log(this.activeName, 'activeName')
       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.formDataCert.Status >= 5) {
-        this.totalTab = 4
-      }
-
       let activeIdx = parseInt(this.activeName)
       if (activeIdx > 0) {
         this.activeName = (activeIdx - 1) + ''