lazy преди 5 дни
родител
ревизия
3d47424a41
променени са 2 файла, в които са добавени 7 реда и са изтрити 4 реда
  1. 7 0
      src/views/myStoreEnterprise/EnterpriseAddInfo.vue
  2. 0 4
      src/views/myStoreEnterprise/components/Enterprise.vue

+ 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