刘湘琪 преди 2 години
родител
ревизия
b8016a9acb

+ 5 - 0
src/utils/dataFormat.js

@@ -81,6 +81,11 @@ export const dutyAreaOptions =[
   { dictLabel: '市级', dictValue: 2},
   { dictLabel: '区级', dictValue: 3}
 ]
+export const authStateEntOptions = [
+  { dictLabel: '待审核', dictValue: '1'},
+  { dictLabel: '审核通过', dictValue: '2'},
+  { dictLabel: '审核拒绝', dictValue: '3'}
+]
 
 /**
  * 申报状态

+ 5 - 5
src/views/enterprise/ent/index.vue

@@ -43,7 +43,7 @@
       </el-form-item>
       <el-form-item label="审核状态" prop="authState">
         <el-select v-model="queryParams.authState" style="width: 200px;" placeholder="请选择">
-          <el-option v-for="(item, index) in authStateOptions" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option>
+          <el-option v-for="(item, index) in authStateEntOptions" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option>
         </el-select>
       </el-form-item>
 
@@ -95,7 +95,7 @@
       </el-table-column>
       <el-table-column label="服务状态" prop="entState" align="center" width="120" :formatter="entSateFormat">
         <template slot-scope="scope">
-          <template v-if="scope.row.authState == '4'">
+          <template v-if="scope.row.authState == '3'">
             <span>驳回</span>
           </template>
           <template v-else>
@@ -140,7 +140,7 @@
 <script>
   import {getProvinceDataApi,getRegionChildrenApi} from "@/api/common/common"
   import {listEntApi, deleteEntApi, resetPwdApi, remindUserApi, stopEntUserApi,enableEntUserApi} from '@/api/admin/ent/ent'
-  import {entStateOptions, getLabel, authStateOptions} from '@/utils/dataFormat'
+  import {entStateOptions, getLabel, authStateEntOptions} from '@/utils/dataFormat'
   import {listEntTaxApi} from '@/api/gov/gov'
   import { resetUserPwd } from "@/api/system/user";
   import AuditEnt from "./components/service"
@@ -159,7 +159,7 @@
         districtDataList: [],
         recordVisible: false,
         entStateOptions: entStateOptions,
-        authStateOptions: authStateOptions,
+        authStateEntOptions: authStateEntOptions,
         dateRange: [],
         roleType: '',
         queryParams: {
@@ -399,7 +399,7 @@
         return getLabel(entStateOptions, val)
       },
       authStateFormat(row, col, val, index) {
-        return getLabel(authStateOptions, val)
+        return getLabel(authStateEntOptions, val)
       }
     }
   }

+ 3 - 2
src/views/enterprise/project/components/FinBasic.vue

@@ -306,6 +306,7 @@ export default {
       this.loading = true
       synFinApi(this.techId).then(res => {
         this.loading = false
+        this.$message.success('已同步完成');
         if(res.data) {
           this.getData()
         }
@@ -316,6 +317,7 @@ export default {
       this.loading = true
       synFinApi(this.adminId).then(res => {
         this.loading = false
+        this.$message.success('已同步完成');
         if(res.data) {
           this.getData()
         }
@@ -324,11 +326,10 @@ export default {
     getData() {
       getProjectInfoApi(this.form.id).then(res => {
         let obj = res.data.finProject || {}
-        this.techId = res.data.techProject.id || undefined
+        this.techId = res.data.techProject.id
         this.adminId = res.data.entProject.id
         this.form = obj || {}
         this.form.fileName = '高新证书'
-
         let arr = ['电子信息']
         this.$set(this.form, 'techScopeArray', arr)
         if(obj.techScope) {

+ 1 - 0
src/views/enterprise/project/components/TechBasic.vue

@@ -295,6 +295,7 @@ export default {
     synSubmit() {
       synTechApi(this.adminId).then(res => {
         if(res.data) {
+          this.$message.success('已同步完成');
           this.getData()
         }
       })

+ 2 - 2
src/views/enterprise/project/index.vue

@@ -95,10 +95,10 @@
           <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
           <template v-if="roleType == 'entAdmin' || roleType == 'entUser'">
             <el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
-            <template v-if="scope.row.compRate == '100.0%' && scope.row.reportState == '1'">
+            <template v-if="scope.row.finCompRate == '100.0%' && scope.row.reportState == '1'">
               <el-button type="text" @click="handleDeclare(scope.row)">提交申报</el-button>
             </template>
-            <template v-if="scope.row.compRate == '100.0%' && (scope.row.reportState == '2' || scope.row.reportState == '3') ">
+            <template v-if="scope.row.finCompRate == '100.0%' && (scope.row.reportState == '2' || scope.row.reportState == '3') ">
               <el-button type="text" @click="handleDeclare(scope.row)">重新申报</el-button>
             </template>
             <template v-if="scope.row.compRate == '100.0%' && (userType == 'ENT_TECH' || userType == 'ENT_FIN')">