Browse Source

fix:修改代码

lazy 1 week ago
parent
commit
3d47424a41

+ 7 - 0
src/views/myStoreEnterprise/EnterpriseAddInfo.vue

@@ -39,6 +39,13 @@ export default {
 
     if (this.$route.query.id && this.$route.query.companyZrId) {
       this.getDetails(this.$route.query.id)
+    } else {
+      const { code, name } = this.$route.query
+      this.baseInfo = {
+        companyType: '',
+        socialCreditCode: code || '',
+        enterpriseName: name || ''
+      }
     }
   },
   methods: {

+ 0 - 4
src/views/myStoreEnterprise/components/Enterprise.vue

@@ -237,7 +237,6 @@ export default {
             query: {
               type: 'supInfo',
               id: row.id,
-              typeName: row.type,
               name: row.name,
               code: row.code,
               taskId: row.taskId || '',
@@ -251,7 +250,6 @@ export default {
           query: {
             type: 'edit',
             id: row.id,
-            typeName: row.type,
             name: row.name,
             code: row.code,
             taskId: row.taskId || '',
@@ -264,7 +262,6 @@ export default {
           query: {
             type: 'reAdd',
             id: row.id,
-            typeName: row.type,
             name: row.name,
             code: row.code,
             taskId: row.taskId || '',
@@ -277,7 +274,6 @@ export default {
           query: {
             type: 'see',
             id: row.id,
-            typeName: row.type,
             name: row.name,
             code: row.code,
             companyZrId: row.companyZrId