Преглед на файлове

fix:企业准入问题修改

lazy преди 2 дни
родител
ревизия
8a5a71cef0

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

@@ -135,7 +135,13 @@ export default {
           this.$router.go(-1)
         } else if (type === 'submit') {
           if (res.data.redNo) {
-            this.$router.go(-1)
+            this.$confirm(res.data.msg, '红否提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning'
+            }).then(() => {
+              this.$router.go(-1)
+            }).catch(() => {})
           } else {
             this.$router.push({
               name: 'StoreEnterpriseAuth',

+ 7 - 1
src/views/myStoreEnterprise/EnterpriseEdit.vue

@@ -127,7 +127,13 @@ export default {
           this.$router.go(-1)
         } else if (type === 'submit') {
           if (res.data.redNo) {
-            this.$router.go(-1)
+            this.$confirm(res.data.msg, '红否提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning'
+            }).then(() => {
+              this.$router.go(-1)
+            }).catch(() => {})
           } else {
             this.$router.push({
               name: 'StoreEnterpriseAuth',

+ 10 - 4
src/views/myStoreEnterprise/EnterpriseReInvite.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="enterprise-edit">
-    <basic-info ref="baseInfo" :base-info="baseInfo" />
+    <basic-info ref="baseInfoRef" :base-info="baseInfo" />
     <PersonInfo ref="legalPersonInfoRef" :person-type="'legal'" :details-info="legalPersonInfo" :regionList="regionList" />
     <PersonInfo ref="controlPersonInfoRef" :person-type="'control'" :details-info="controlPersonInfo" :regionList="regionList" />
     <ContactInfo ref="contactInfoRef" :details-info="contactInfo" />
@@ -34,10 +34,9 @@ export default {
     }
   },
   created() {
-    const { typeName, code, name  } = this.$route.query
+    const { code, name  } = this.$route.query
 
     this.baseInfo = {
-      typeName: typeName || '',
       socialCreditCode: code || '',
       enterpriseName: name || ''
     }
@@ -91,6 +90,7 @@ export default {
 
       const supParams = {
         companyId: this.$route.query.id,
+        companyType: this.$refs.baseInfoRef.ruleForm.companyType,
         ...legalReqParams,
         ...controlReqParams,
         ...contactReqParams,
@@ -114,7 +114,13 @@ export default {
           this.$router.go(-1)
         } else if (type === 'submit') {
           if (res.data.redNo) {
-            this.$router.go(-1)
+            this.$confirm(res.data.msg, '红否提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning'
+            }).then(() => {
+              this.$router.go(-1)
+            }).catch(() => {})
           } else {
             this.$router.push({
               name: 'StoreEnterpriseAuth',

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

@@ -98,7 +98,10 @@ export default {
           label: '基础额度(万元)',
           prop: 'amount',
           width: 140,
-          showTooltip: true
+          showTooltip: true,
+          render: (h, row) => {
+            return <div>{ row.zrStatus === 1 ? '300' : '/' }</div>
+          }
         },
         {
           label: '创建时间',