Quellcode durchsuchen

feat: 添加企业自定义id

Satsiki vor 2 Jahren
Ursprung
Commit
0d1a1eba58

+ 4 - 0
src/api/index.ts

@@ -2,11 +2,15 @@ import { config } from './../../config'
 import axios from 'axios'
 import { headerData } from './reqHeaders'
 
+
+
 const $axios = axios.create({
   baseURL: config.baseUrl,
   timeout: 60000
 })
 
+
+
 console.log(config)
 
 

+ 2 - 1
src/axios.d.ts

@@ -1,7 +1,8 @@
 
+// import * as axios from 'axios'
 
 // declare module 'axios' {
 //   interface AxiosInstance {
-//     (config: AxiosRequestConfig): Promise<any>
+//     (config: AxiosRequestConfig): any
 //   }
 // }

+ 2 - 2
src/components/CommonList.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="common-list">
     <div class="fixed-num">共
-      <span>{{store.totalNum}}</span>
+      <span>{{store.totalNum || store.dataList.length}}</span>
       条{{store.deleted ? '历史' : ''}}{{store.selectDemension.title}}</div>
     <van-list v-model:loading="loading" :finished="finished" :immediate-check="false" finished-text="没有更多了" @load="onLoad">
       <div v-for="(item,index) in store.dataList" :key="index" class="card" @click="goDetail(item)">
@@ -39,7 +39,7 @@
               </div>
 
               <p v-else :class="[obj.valueType === 'title' ? 'title' : '', obj.companyId && item[obj.companyId] ? 'company' : '']"
-                 @click="goCompany(obj,item)">
+                 @click.stop="goCompany(obj,item)">
                 {{item[obj.value] || '-'}}{{ item[obj.value] && obj.valueType === 'w' ? '万元' : ''}}
               </p>
             </div>

+ 12 - 0
src/components/DetailCustom/PoChanChongZheng.vue

@@ -0,0 +1,12 @@
+<template>
+  <div>123</div>
+</template>
+
+<script lang="ts" setup>
+  import {onMounted} from 'vue'
+  onMounted(() => {
+  })
+</script>
+
+<style lang="less" scoped>
+</style>

+ 24 - 0
src/components/DetailCustomComponent.vue

@@ -0,0 +1,24 @@
+<template>
+  <div>
+
+    <PoChanChongZheng v-if="store.selectDemension.title === '破产重整'"></PoChanChongZheng>
+
+
+
+  </div>
+</template>
+
+<script lang="ts" setup>
+  import { useDemensionDetailStore } from '@/store/demensionDetail'
+  import PoChanChongZheng from './DetailCustom/PoChanChongZheng.vue'
+  const store = useDemensionDetailStore()
+
+
+
+</script>
+
+<style lang="scss" scoped>
+
+
+</style>
+

+ 316 - 0
src/js-pages/company-detail/FaLvFengXian/index.ts

@@ -5,6 +5,7 @@ export const FaLvFengXian: DemensionPagesInter = {
     {
       code: 'open_announcement',
       routing: 'KaiTingGongGao',
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       title: '开庭公告',
       tabs: 'deleted',
       detailType: '1',
@@ -129,6 +130,7 @@ export const FaLvFengXian: DemensionPagesInter = {
       code: 'dishonesty',
       routing: 'ShiXinQingKuang',
       title: '失信信息',
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       tabs: 'deleted',
       menuList: [
         {
@@ -254,6 +256,7 @@ export const FaLvFengXian: DemensionPagesInter = {
     {
       code: 'case_filing',
       routing: 'LiAnXinXi',
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       title: '立案信息',
       detailList: [
         {
@@ -345,6 +348,7 @@ export const FaLvFengXian: DemensionPagesInter = {
     {
       code: 'send_announcement',
       routing: 'SongDaGongGao',
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       tabs: 'deleted',
       title: '送达公告',
       menuList: [
@@ -466,6 +470,7 @@ export const FaLvFengXian: DemensionPagesInter = {
       ]
     },
     {
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       code: 'judicial_auction',
       routing: 'SiFaPaiMai',
       title: '司法拍卖',
@@ -490,6 +495,7 @@ export const FaLvFengXian: DemensionPagesInter = {
       ]
     },
     {
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       code: 'evaluation_result',
       routing: 'XunJiaPingGu',
       title: '询价评估',
@@ -664,6 +670,7 @@ export const FaLvFengXian: DemensionPagesInter = {
     {
       code: 'wenshu',
       routing: 'CaiPanWenShu',
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       // listFliter: (list: any[]) => {
       //   list.forEach(item => {
       //     item.beigaoList = []
@@ -904,6 +911,7 @@ export const FaLvFengXian: DemensionPagesInter = {
       ]
     },
     {
+      companyId: '88f04cbfab150fe2bccdeec3aea32750',
       code: 'equity_freeze',
       routing: 'GuQuanDongJie',
       title: '股权冻结',
@@ -956,6 +964,314 @@ export const FaLvFengXian: DemensionPagesInter = {
           value: 'typeState'
         }
       ]
+    },
+    {
+      code: 'bankruptcy',
+      routing: 'PoChanChongZheng',
+      title: '破产重整',
+      detailValue: 'bankruptcyOpenCase',
+      companyId: '4cc3861734ecd09b00ab34afdf8f94cc',
+      detailList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '案件类型',
+          value: 'caseType'
+        },
+        {
+          name: '经办法院',
+          value: 'agencyCourt'
+        },
+        {
+          name: '申请人',
+          value: 'applicant'
+        },
+        {
+          name: '被申请人',
+          value: 'respondent'
+        },
+        {
+          name: '管理人机构',
+          value: 'managerOrganization'
+        },
+        {
+          name: '管理人主要负责人',
+          value: 'principalManager'
+        },
+        {
+          name: '公开时间',
+          value: 'publicDate',
+          valueType: 'date'
+        }
+      ],
+      viewList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '案件类型',
+          value: 'caseType'
+        },
+        {
+          name: '经办法院',
+          value: 'agencyCourt'
+        },
+        {
+          name: '公开时间',
+          value: 'publicDate',
+          valueType: 'date'
+        }
+      ]
+    },
+    {
+      code: 'litigation_mediation',
+      routing: 'SuQianTiaoJie',
+      title: '诉前调解',
+      companyId: 'a10a3675d3f4e38af372dcd8eddce29f',
+      detailType: '8',
+      menuList: [
+        {
+          paramsValue: 'identity',
+          value: '',   // v-model绑定的值
+          list: [
+            {
+              text: '身份不限',
+              value: ''
+            },
+            {
+              text: '原告/公诉人/上诉人/申请人',
+              value: '1'
+            },
+            {
+              text: '被告/被上诉人/被申请人',
+              value: '2'
+            }
+          ]
+        }
+      ],
+      detailList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '法院',
+          value: 'court'
+        },
+        {
+          name: '承办部门',
+          value: 'department'
+        },
+        {
+          name: '承办法官',
+          value: 'judge'
+        },
+        {
+          name: '法官助理',
+          value: 'assistant'
+        },
+        {
+          name: '立案时间',
+          value: 'filingDate',
+          valueType: 'date'
+        },
+        {
+          name: '开庭时间',
+          value: 'startTime',
+          valueType: 'date'
+        },
+        {
+          name: '结案时间',
+          value: 'closeDate',
+          valueType: 'date'
+        },
+        {
+          name: '案件状态',
+          value: 'caseStatus'
+        },
+        {
+          name: '案由',
+          value: 'caseReason'
+        },
+        {
+          name: '案件类型',
+          value: 'caseType'
+        },
+        {
+          name: '原告/上诉人/申请人/公诉人',
+          listVal: 'plaintiffInfo',
+          value: 'name',
+          companyId: 'litigant_id'
+        },
+        {
+          name: '被告人/被告/被上诉人/被申请人',
+          listVal: 'defendantInfo',
+          value: 'name',
+          companyId: 'litigant_id'
+        }
+      ],
+      viewList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '上诉人/原告',
+          value: 'name',
+          listVal: 'plaintiffInfo',
+          companyId: 'litigantId'
+        },
+        {
+          name: '被上诉人/被告',
+          value: 'name',
+          listVal: 'defendantInfo',
+          companyId: 'litigantId'
+        },
+        {
+          name: '立案日期',
+          value: 'filingDate',
+          valueType: 'date'
+        }
+      ]
+    },
+    {
+      code: 'outbound_restrictions',
+      routing: 'XianZhiChuJing',
+      title: '限制出境',
+      companyId: '190f4302a77d2c5fec225d19c173f76e',
+      detailType: '3',
+      detailList: [
+        {
+          name: '限制出境对象',
+          value: 'limitedPerson',
+          companyId: 'limitedPersonPid'
+        },
+        {
+          name: '被执行人',
+          value: 'executedPersonName',
+          companyId: 'executedPersonKeyno'
+        },
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '被执行人地址',
+          value: 'executedAddress'
+        },
+        {
+          name: '申请执行人',
+          value: 'applayer'
+        },
+        {
+          name: '执行标的金额(元)',
+          value: 'executedAmount'
+        },
+        {
+          name: '承办法院',
+          value: 'court'
+        },
+        {
+          name: '法院联系电话',
+          value: 'courtTel'
+        },
+        {
+          name: '发布日期',
+          value: 'publishTime',
+          valueType: 'date'
+        }
+      ],
+      viewList: [
+        {
+          valueType: 'title',
+          value: 'caseNo'
+        },
+        {
+          name: '限制出境对象',
+          value: 'limitedPerson',
+          companyId: 'limitedPersonPid'
+        },
+        {
+          name: '被执行人',
+          value: 'executedPersonName',
+          companyId: 'executedPersonKeyno'
+        },
+        {
+          name: '被执行人地址',
+          value: 'executedAddress'
+        },
+        {
+          name: '执行标的金额(元)',
+          value: 'executedAmount'
+        }
+      ]
+    },
+    {
+      code: 'bankruptcy_applicant',
+      routing: 'PoChanZhaiQuan',
+      title: '破产债权',
+      companyId: 'ab154ca9fbaeb0fe6ae3cfb17359855e',
+      detailList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '案件类型',
+          value: 'caseType'
+        },
+        {
+          name: '经办法院',
+          value: 'agencyCourt'
+        },
+        {
+          name: '申请人',
+          listVal: 'applicantInfo',
+          companyId: 'litigant_id',
+          value: 'name'
+        },
+        {
+          name: '被申请人',
+          listVal: 'respondentInfo',
+          companyId: 'litigant_id',
+          value: 'name'
+        },
+        {
+          name: '管理人机构',
+          value: 'managerOrganization'
+        },
+        {
+          name: '管理人主要负责人',
+          value: 'principalManager'
+        },
+        {
+          name: '公开时间',
+          value: 'publicDate',
+          valueType: 'date'
+        }
+      ],
+      viewList: [
+        {
+          name: '案号',
+          value: 'caseNo'
+        },
+        {
+          name: '案件类型',
+          value: 'caseType'
+        },
+        {
+          name: '经办法院',
+          value: 'agencyCourt'
+        },
+        {
+          name: '公开时间',
+          value: 'publicDate',
+          valueType: 'date'
+        }
+      ]
     }
   ]
 }

+ 179 - 0
src/js-pages/company-detail/JingYingFengXian/index.ts

@@ -7,6 +7,7 @@ export const JingYingFengXian: DemensionPagesInter = {
       routing: 'XingZhengChuFa',
       title: '行政处罚',
       tabs: 'deleted',
+      companyId: '4cc3861734ecd09b00ab34afdf8f94cc',
       detailList: [
         {
           name: '违法类型',
@@ -39,6 +40,28 @@ export const JingYingFengXian: DemensionPagesInter = {
       ]
     },
     {
+      code: 'exception',
+      routing: 'JingYingYiChang',
+      title: '经营异常',
+      tabs: 'deleted',
+      companyId: '190f4302a77d2c5fec225d19c173f76e',
+      viewList: [
+        {
+          name: '列入经营异常名录原因',
+          value: 'putReason'
+        },
+        {
+          name: '列入作出决定机关',
+          value: 'putDepartment'
+        },
+        {
+          name: '列入日期',
+          value: 'putDate',
+          valueType: 'date'
+        }
+      ]
+    },
+    {
       code: 'pledge_equity',
       routing: 'GuQuanChuZhi',
       title: '股权出质',
@@ -73,6 +96,162 @@ export const JingYingFengXian: DemensionPagesInter = {
           value: 'state'
         }
       ]
+    },
+    {
+      code: 'reduce_record',
+      routing: 'JianZiJiLu',
+      title: '减资记录',
+      companyId: '5916e7c3f0a81096635241fd01f6b828',
+      noDataList: true,
+      viewList: [
+        {
+          name: '类型',
+          value: 'category'
+        },
+        {
+          name: '减资项目',
+          value: 'changeItem'
+        },
+        {
+          name: '减资前',
+          value: 'contentBefore'
+        },
+        {
+          name: '减资后',
+          value: 'contentAfter'
+        },
+        {
+          name: '减资项日期',
+          value: 'changeTime',
+          valueType: 'date'
+        }
+      ]
+    },
+    {
+      code: 'land_public',
+      routing: 'TuDiZhuanRang',
+      title: '土地转让',
+      companyId: '6820fae3c815fb899214617b54efadf7',
+      // tabs:
+      viewList: [
+        {
+          name: '总面积',
+          value: 'area'
+        },
+        {
+          name: '土地用途',
+          value: 'useType'
+        },
+        {
+          name: '供应方式',
+          value: 'supplyMethod'
+        },
+        {
+          name: '签订日期',
+          value: 'contractDate',
+          valueType: 'date'
+        },
+        {
+          name: '行政区',
+          value: 'district'
+        }
+      ]
+    },
+    {
+      code: 'land_mortgage',
+      routing: 'TuDiDiYa',
+      title: '土地抵押',
+      companyId: 'cbe86f02d808d1698677d9530935d14c',
+      tabs: 'deleted',
+      detailList: [
+        {
+          name: '土地抵押人名称',
+          value: 'mortgagor',
+          companyId: 'mortgagorCompanyId'
+        },
+        {
+          name: '土地抵押人性质',
+          value: 'nature'
+        },
+        {
+          name: '土地抵押权人',
+          value: 'mortgagee',
+          companyId: 'mortgageeCompanyId'
+        },
+        {
+          name: '宗地坐落',
+          value: 'landLoc'
+        },
+        {
+          name: '抵押土地权属性质与使用权类型',
+          value: 'useType'
+        },
+        {
+          name: '宗地标识',
+          value: 'landMark'
+        },
+        {
+          name: '宗地编号',
+          value: 'landNum'
+        },
+        {
+          name: '所在行政区',
+          value: 'landAministrativeArea'
+        },
+        {
+          name: '土地面积(公顷)',
+          value: 'landArea'
+        },
+        {
+          name: '土地他项权利人证号',
+          value: 'otherItemNum'
+        },
+        {
+          name: '土地使用权证号',
+          value: 'useRightNum'
+        },
+        {
+          name: '抵押面积(公顷)',
+          value: 'area'
+        },
+        {
+          name: '评估金额(万元)',
+          value: 'evaluateAmount'
+        },
+        {
+          name: '抵押金额(万元)',
+          value: 'mortgageAmount'
+        }
+      ],
+      viewList: [
+        {
+          name: '土地抵押人',
+          value: 'mortgagor',
+          companyId: 'mortgagorCompanyId'
+        },
+        {
+          name: '土地抵押权人',
+          value: 'mortgagee',
+          companyId: 'mortgageeCompanyId'
+        },
+        {
+          name: '抵押用途',
+          value: 'useFor'
+        },
+        {
+          name: '起始时间',
+          value: 'startDate',
+          valueType: 'date'
+        },
+        {
+          name: '评估金额(万元)',
+          value: 'evaluateAmount'
+        },
+        {
+          name: '抵押金额(万元)',
+          value: 'mortgageAmount'
+        }
+      ]
     }
   ]
 }

+ 15 - 3
src/js-pages/types.ts

@@ -14,7 +14,11 @@ export interface DemensionPagesListInter {
   routing: string,
   title: string,
   //是否有详情页
-  hasDetail?: boolean
+  hasDetail?: boolean,
+  /**
+  * 详情页不是返回body,而是返回其他的字段
+  */
+  detailValue?: string,
   detailList?: ViewListInter[],
   viewList?: ViewListInter[],
   /**
@@ -28,10 +32,18 @@ export interface DemensionPagesListInter {
   */
   detailType?: string
   /**
-* 自定义数组数据处理方法
-*/
+  * 自定义数组数据处理方法
+  */
   listFliter?: Function,
   customRender?: any,
+  /**
+  * 公司的ID,方便调试用
+  */
+  companyId?: string,
+  /**
+  * 是否不取dataList,是的话直接取
+  */
+  noDataList?: boolean
 }
 
 

+ 1 - 1
src/layout/Layout.vue

@@ -15,7 +15,7 @@
 
   watch(() => route.path,() => {
     if(!store.entityId) {
-      store.entityId = route.query.companyId  || '88f04cbfab150fe2bccdeec3aea32750'
+      store.entityId = route.query.companyId  || 'e8ee433fae5e03e4816c0b5981da76ba'
       store.entityName = route.query.companyName  || '广州天力建筑工程有限公司'
     }
   })

+ 0 - 0
src/plugins/F2.ts


+ 5 - 1
src/store/demensionDetail.ts

@@ -35,8 +35,12 @@ export const useDemensionDetailStore = defineStore({
       }
       const res = await $axios.get('lawyer-workbench/risk/dimension/detail', { params })
       // console.log(res)
+      if (this.selectDemension.detailValue) {
+        this.info = res[this.selectDemension.detailValue]
+      } else {
+        this.info = res
+      }
 
-      this.info = res
     }
 
   }

+ 6 - 2
src/store/demensionList.ts

@@ -156,7 +156,7 @@ export const useDemensionListStore = defineStore({
         deleted,
         entityType,
         entityName,
-        entityId,
+        entityId: import.meta.env.MODE === 'development' && this.selectDemension.companyId ? this.selectDemension.companyId : entityId,
         ...extraParams
       }
       const res = await $axios.get('lawyer-workbench/risk/dimension/page', { params }) as { totalNum: number, totalPage: number, dataList: [], dataExtra?: { field: string, keyValueBOS: any[] }[] }
@@ -165,8 +165,12 @@ export const useDemensionListStore = defineStore({
 
 
       let dataList = res.dataList
+      if (this.selectDemension.noDataList) {
+        dataList = res as unknown as []
+      }
+
       if (this.selectDemension.listFliter) {
-        dataList = this.selectDemension.listFliter(res.dataList)
+        dataList = this.selectDemension.listFliter(dataList)
       }
 
       this.dataList.push(...dataList)

+ 3 - 1
src/views/demension/detail.vue

@@ -40,7 +40,8 @@
         </div>
       </div>
     </van-row>
-    <GlSiFaCase v-if="store.info.caseNo" :caseNo="store.info.caseNo" :rowKey="store.info.rowKey"></GlSiFaCase>
+    <GlSiFaCase v-if="store.info.caseNo && store.selectDemension.detailType" :caseNo="store.info.caseNo" :rowKey="store.info.rowKey"></GlSiFaCase>
+    <DetailCustomComponent v-if="store.selectDemension" />
   </div>
 </template>
 
@@ -52,6 +53,7 @@
   import dayjs from 'dayjs'
   import {useDemensionDetailStore} from '@/store/demensionDetail'
   import { ViewListInter } from '@/js-pages/types'
+  import DetailCustomComponent from '@/components/DetailCustomComponent.vue'
 
 
   const route = useRoute()

+ 1 - 1
src/views/demension/list.vue

@@ -17,7 +17,7 @@
   import CommonTab from '@/components/vant/CommonTab.vue'
   import { useDemensionListStore } from '@/store/demensionList'
   import { onMounted } from 'vue'
-  import listCustomComponent from '@/components/listCustomComponent.vue'
+  import listCustomComponent from '@/components/ListCustomComponent.vue'
   import CommonMenu from '@/components/vant/CommonMenu.vue'
   const store = useDemensionListStore()
   store.getDemension()

+ 2 - 1
src/views/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: 文帅
  * @Date: 2022-04-01 09:57:12
- * @LastEditTime: 2022-04-01 10:19:16
+ * @LastEditTime: 2022-04-08 09:28:58
  * @LastEditors: 文帅
  * @Description:
 -->
@@ -11,6 +11,7 @@
     <div v-for="(item,index) in store.getDemension()" :key="index">
       <p class="text-xs" @click="$router.push(item.routing)">
         {{item.title}}:
+
         <span class="text-blue-600 ">{{item.routing}}</span>
       </p>
     </div>