huangxw 3 недель назад
Родитель
Сommit
f7f254ff16
3 измененных файлов с 566 добавлено и 506 удалено
  1. 482 478
      src/api/enterprise/recordCompany/types.ts
  2. 56 17
      src/views/settled/control/index.vue
  3. 28 11
      src/views/settled/cpy/index.vue

+ 482 - 478
src/api/enterprise/recordCompany/types.ts

@@ -1,504 +1,508 @@
 export interface RecordCompanyVO {
 export interface RecordCompanyVO {
-  /**
-   * Id
-   */
-  id: string | number;
-
-  /**
-   * 企业简称
-   */
-  cpyAbbreviation: string;
-
-  /**
-   * 企业名称
-   */
-  cpyName: string;
-
-  /**
-   * 法人身份证
-   */
-  cpyIdCard: string | number;
-
-  /**
-   * 电话
-   */
-  tel: string;
-
-  /**
-   * 法人
-   */
-  legalPerson: string;
-
-  /**
-   * 信用代码
-   */
-  creditCode: string;
-
-  /**
-   * 审核状态 字典:0未通过,1通过,-1待审核
-   */
-  status: number;
-
-  /**
-   * 企业状态 字典:0注销,1在业,2暂停营业
-   */
-  companyStatus: number;
-
-  /**
-   * 行政区划代码
-   */
-  adcdCode: string;
-
-  /**
-   * 门店照片
-   */
-  storePhoto: string;
-
-  /**
-   * 营业执照
-   */
-  businesPhoto: string;
-
-  /**
-   * 经营范围
-   */
-  businessScope: string;
-
-  /**
-   * 地址
-   */
-  address: string;
-
-  /**
-   * 联系人
-   */
-  contactPerson: string;
-
-  /**
-   * 经度
-   */
-  longitude: string;
-
-  /**
-   * 纬度
-   */
-  latitude: string;
-
-  /**
-   * 营业执照
-   */
-  licenseUrl: string;
-
-  /**
-   * 营业执照有效期
-   */
-  licenseValidity: string | number;
-
-  /**
-   * 追溯类型
-   */
-  recordTraceType: string;
-
-  /**
-   * 追溯环节
-   */
-  recordTraceLink: string;
-
-  /**
-   * 企业管理员
-   */
-  adminId: string | number;
-
-  /**
-   * 管理员姓名
-   */
-  adminName: string;
-
-  /**
-   * 上链标志
-   */
-  chainStatus: string;
-
-  /**
-   * 上联备注
-   */
-  chainRmk: string;
-
-  /**
-   * 营业执照开始日期
-   */
-  businessStartDate: string;
-
-  /**
-   * 营业执照有效期
-   */
-  deadline: string;
-
-  /**
-   * 加入的合作伙伴
-   */
-  joinPartner: string;
-
-  /**
-   * 合作伙伴ID
-   */
-  partnerId: string | number;
-
-  /**
-   * 申请者id
-   */
-  userid: string | number;
-
-  /**
-   * 创建人
-   */
-  createBy: string;
-
-  /**
-   * 创建时间
-   */
-  createTime: string;
-
-  /**
-   * 更新时间
-   */
-  updateTime: string;
+    /**
+     * Id
+     */
+    id: string | number;
+
+    /**
+     * 企业简称
+     */
+    cpyAbbreviation: string;
+
+    /**
+     * 企业名称
+     */
+    cpyName: string;
+
+    /**
+     * 法人身份证
+     */
+    cpyIdCard: string | number;
+
+    /**
+     * 电话
+     */
+    tel: string;
+
+    /**
+     * 法人
+     */
+    legalPerson: string;
+
+    /**
+     * 信用代码
+     */
+    creditCode: string;
+
+    /**
+     * 审核状态 字典:0未通过,1通过,-1待审核
+     */
+    status: number;
+
+    /**
+     * 企业状态 字典:0注销,1在业,2暂停营业
+     */
+    companyStatus: number;
+
+    /**
+     * 行政区划代码
+     */
+    adcdCode: string;
+
+    /**
+     * 门店照片
+     */
+    storePhoto: string;
+
+    /**
+     * 营业执照
+     */
+    businesPhoto: string;
+
+    /**
+     * 经营范围
+     */
+    businessScope: string;
+
+    /**
+     * 地址
+     */
+    address: string;
+
+    /**
+     * 联系人
+     */
+    contactPerson: string;
+
+    /**
+     * 经度
+     */
+    longitude: string;
+
+    /**
+     * 纬度
+     */
+    latitude: string;
+
+    /**
+     * 营业执照
+     */
+    licenseUrl: string;
+
+    /**
+     * 营业执照有效期
+     */
+    licenseValidity: string | number;
+
+    /**
+     * 追溯类型
+     */
+    recordTraceType: string;
+
+    /**
+     * 追溯环节
+     */
+    recordTraceLink: string;
+
+    /**
+     * 企业管理员
+     */
+    adminId: string | number;
+
+    /**
+     * 管理员姓名
+     */
+    adminName: string;
+
+    /**
+     * 上链标志
+     */
+    chainStatus: string;
+
+    /**
+     * 上联备注
+     */
+    chainRmk: string;
+
+    /**
+     * 营业执照开始日期
+     */
+    businessStartDate: string;
+
+    /**
+     * 营业执照有效期
+     */
+    deadline: string;
+
+    /**
+     * 加入的合作伙伴
+     */
+    joinPartner: string;
+
+    /**
+     * 合作伙伴ID
+     */
+    partnerId: string | number;
+
+    /**
+     * 申请者id
+     */
+    userid: string | number;
+
+    /**
+     * 创建人
+     */
+    createBy: string;
+
+    /**
+     * 创建时间
+     */
+    createTime: string;
+
+    /**
+     * 更新时间
+     */
+    updateTime: string;
 }
 }
 
 
 export interface RecordCompanyForm extends BaseEntity {
 export interface RecordCompanyForm extends BaseEntity {
-  /**
-   * Id
-   */
-  id?: string | number;
-
-  /**
-   * 企业名称
-   */
-  cpyName?: string;
-  /**
-   * 企业类型
-   */
-  cpyType?: string;
-
-  /**
-   * 电话
-   */
-  tel?: string;
-
-  /**
-   * 信用代码
-   */
-  creditCode?: string;
-
-  /**
-   * 审核状态 字典:0未通过,1通过,-1待审核
-   */
-  status?: number;
-
-  /**
-   * 行政区划代码
-   */
-  adcdCode?: string;
-
-  /**
-   * 企业logo
-   */
-  storePhoto?: string;
-
-  /**
-   * 地址
-   */
-  address?: string;
-
-  /**
-   * 联系人
-   */
-  contactPerson?: string;
-
-  /**
-   * 营业执照
-   */
-  license?: any;
-
-  /**
-   * 企业管理员
-   */
-  adminId?: string | number;
-
-  /**
-   * 管理员姓名
-   */
-  adminName?: string;
-
-  /**
-   * 申请者id
-   */
-  userid?: string | number;
+    /**
+     * Id
+     */
+    id?: string | number;
+
+    /**
+     * 企业名称
+     */
+    cpyName?: string;
+    /**
+     * 企业类型
+     */
+    cpyType?: string;
+
+    /**
+     * 电话
+     */
+    tel?: string;
+
+    /**
+     * 信用代码
+     */
+    creditCode?: string;
+
+    /**
+     * 审核状态 字典:0未通过,1通过,-1待审核
+     */
+    status?: number;
+
+    /**
+     * 行政区划代码
+     */
+    adcdCode?: string;
+
+    /**
+     * 企业logo
+     */
+    storePhoto?: string;
+
+    /**
+     * 地址
+     */
+    address?: string;
+
+    /**
+     * 联系人
+     */
+    contactPerson?: string;
+
+    /**
+     * 营业执照
+     */
+    license?: any;
+
+    /**
+     * 企业管理员
+     */
+    adminId?: string | number;
+
+    /**
+     * 管理员姓名
+     */
+    adminName?: string;
+
+    /**
+     * 申请者id
+     */
+    userid?: string | number;
+    supervisionType?: string;
+    supervisionArea?: string;
 }
 }
 
 
 export interface RecordCompanyQuery extends PageQuery {
 export interface RecordCompanyQuery extends PageQuery {
-  /**
-   * 企业简称
-   */
-  cpyAbbreviation?: string;
-
-  /**
-   * 企业名称
-   */
-  cpyName?: string;
-
-  /**
-   * 法人身份证
-   */
-  cpyIdCard?: string | number;
-
-  /**
-   * 电话
-   */
-  tel?: string;
-
-  /**
-   * 法人
-   */
-  legalPerson?: string;
-
-  /**
-   * 信用代码
-   */
-  creditCode?: string;
-
-  /**
-   * 审核状态 字典:0未通过,1通过,-1待审核
-   */
-  status?: number | string;
-
-  /**
-   * 企业状态 字典:0注销,1在业,2暂停营业
-   */
-  companyStatus?: number;
-
-  /**
-   * 行政区划代码
-   */
-  adcdCode?: string;
-
-  /**
-   * 门店照片
-   */
-  storePhoto?: string;
-
-  /**
-   * 营业执照
-   */
-  businesPhoto?: string;
-
-  /**
-   * 经营范围
-   */
-  businessScope?: string;
-
-  /**
-   * 地址
-   */
-  address?: string;
-
-  /**
-   * 联系人
-   */
-  contactPerson?: string;
-
-  /**
-   * 经度
-   */
-  longitude?: string;
-
-  /**
-   * 纬度
-   */
-  latitude?: string;
-
-  /**
-   * 营业执照
-   */
-  licenseUrl?: string;
-
-  /**
-   * 营业执照有效期
-   */
-  licenseValidity?: string | number;
-
-  /**
-   * 追溯类型
-   */
-  recordTraceType?: string;
-
-  /**
-   * 追溯环节
-   */
-  recordTraceLink?: string;
-
-  /**
-   * 企业管理员
-   */
-  adminId?: string | number;
-
-  /**
-   * 管理员姓名
-   */
-  adminName?: string;
-
-  /**
-   * 上链标志
-   */
-  chainStatus?: string;
-
-  /**
-   * 上联备注
-   */
-  chainRmk?: string;
-
-  /**
-   * 营业执照开始日期
-   */
-  businessStartDate?: string;
-
-  /**
-   * 营业执照有效期
-   */
-  deadline?: string;
-
-  /**
-   * 加入的合作伙伴
-   */
-  joinPartner?: string;
-
-  /**
-   * 合作伙伴ID
-   */
-  partnerId?: string | number;
-
-  /**
-   * 申请者id
-   */
-  userid?: string | number;
-
-  /**
-   * 日期范围参数
-   */
-  params?: any;
+    /**
+     * 企业简称
+     */
+    cpyAbbreviation?: string;
+
+    /**
+     * 企业名称
+     */
+    cpyName?: string;
+
+    /**
+     * 法人身份证
+     */
+    cpyIdCard?: string | number;
+
+    /**
+     * 电话
+     */
+    tel?: string;
+
+    /**
+     * 法人
+     */
+    legalPerson?: string;
+
+    /**
+     * 信用代码
+     */
+    creditCode?: string;
+
+    /**
+     * 审核状态 字典:0未通过,1通过,-1待审核
+     */
+    status?: number | string;
+
+    /**
+     * 企业状态 字典:0注销,1在业,2暂停营业
+     */
+    companyStatus?: number;
+
+    /**
+     * 行政区划代码
+     */
+    adcdCode?: string;
+
+    /**
+     * 门店照片
+     */
+    storePhoto?: string;
+
+    /**
+     * 营业执照
+     */
+    businesPhoto?: string;
+
+    /**
+     * 经营范围
+     */
+    businessScope?: string;
+
+    /**
+     * 地址
+     */
+    address?: string;
+
+    /**
+     * 联系人
+     */
+    contactPerson?: string;
+
+    /**
+     * 经度
+     */
+    longitude?: string;
+
+    /**
+     * 纬度
+     */
+    latitude?: string;
+
+    /**
+     * 营业执照
+     */
+    licenseUrl?: string;
+
+    /**
+     * 营业执照有效期
+     */
+    licenseValidity?: string | number;
+
+    /**
+     * 追溯类型
+     */
+    recordTraceType?: string;
+
+    /**
+     * 追溯环节
+     */
+    recordTraceLink?: string;
+
+    /**
+     * 企业管理员
+     */
+    adminId?: string | number;
+
+    /**
+     * 管理员姓名
+     */
+    adminName?: string;
+
+    /**
+     * 上链标志
+     */
+    chainStatus?: string;
+
+    /**
+     * 上联备注
+     */
+    chainRmk?: string;
+
+    /**
+     * 营业执照开始日期
+     */
+    businessStartDate?: string;
+
+    /**
+     * 营业执照有效期
+     */
+    deadline?: string;
+
+    /**
+     * 加入的合作伙伴
+     */
+    joinPartner?: string;
+
+    /**
+     * 合作伙伴ID
+     */
+    partnerId?: string | number;
+
+    /**
+     * 申请者id
+     */
+    userid?: string | number;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+    cpyType?: string;
+    supervisionType?: string;
+    supervisionArea?: string;
 }
 }
 
 
 /**
 /**
  * BindInfoCpyListVo,绑定企业信息
  * BindInfoCpyListVo,绑定企业信息
  */
  */
 export interface BindInfoCpyListVo {
 export interface BindInfoCpyListVo {
-  /**
-   * 审核人
-   */
-  auditor?: number;
-  /**
-   * 审核人姓名
-   */
-  auditorName?: string;
-  /**
-   * 审核时间
-   */
-  auditorTime?: Date;
-  /**
-   * 企业ID
-   */
-  cpyid?: number;
-
-  cpyInfo?: RecordCompanyVO;
-  /**
-   * 创建人
-   */
-  createBy?: string;
-  /**
-   * 创建时间
-   */
-  createTime?: Date;
-  /**
-   * ID
-   */
-  id?: number;
-  /**
-   * 审核信息
-   */
-  msg?: string;
-  /**
-   * 通过时间
-   */
-  passTime?: Date;
-  /**
-   * 审核结果:0:等待审核,1:通过,2:不通过
-   */
-  res?: string;
-  /**
-   * 绑定类型:1企业备案绑定,2用户主动绑定
-   */
-  type?: string;
-  /**
-   * 申请者id
-   */
-  userid?: number;
-  /**
-   * 申请人名称
-   */
-  userName?: string;
-  /**
-   * 申请信息
-   */
-  wantMsg?: string;
-
+    /**
+     * 审核人
+     */
+    auditor?: number;
+    /**
+     * 审核人姓名
+     */
+    auditorName?: string;
+    /**
+     * 审核时间
+     */
+    auditorTime?: Date;
+    /**
+     * 企业ID
+     */
+    cpyid?: number;
+
+    cpyInfo?: RecordCompanyVO;
+    /**
+     * 创建人
+     */
+    createBy?: string;
+    /**
+     * 创建时间
+     */
+    createTime?: Date;
+    /**
+     * ID
+     */
+    id?: number;
+    /**
+     * 审核信息
+     */
+    msg?: string;
+    /**
+     * 通过时间
+     */
+    passTime?: Date;
+    /**
+     * 审核结果:0:等待审核,1:通过,2:不通过
+     */
+    res?: string;
+    /**
+     * 绑定类型:1企业备案绑定,2用户主动绑定
+     */
+    type?: string;
+    /**
+     * 申请者id
+     */
+    userid?: number;
+    /**
+     * 申请人名称
+     */
+    userName?: string;
+    /**
+     * 申请信息
+     */
+    wantMsg?: string;
 }
 }
 /**
 /**
  * BindInfoRemoveBo,审核日志业务对象 st_bind_info
  * BindInfoRemoveBo,审核日志业务对象 st_bind_info
  */
  */
 export interface BindInfoRemoveBo {
 export interface BindInfoRemoveBo {
-  /**
-   * 企业ID
-   */
-  cpyid: number;
-  /**
-   * 成员ID
-   */
-  userids: number[];
+    /**
+     * 企业ID
+     */
+    cpyid: number;
+    /**
+     * 成员ID
+     */
+    userids: number[];
 }
 }
 
 
 export interface AdminOperateUserBo {
 export interface AdminOperateUserBo {
-  /**
-   * 企业ID
-   */
-  cpyid: number;
-  /**
-   * 用户ID
-   */
-  userid: number;
+    /**
+     * 企业ID
+     */
+    cpyid: number;
+    /**
+     * 用户ID
+     */
+    userid: number;
 }
 }
 /**
 /**
  * 查询用户申请绑定信息
  * 查询用户申请绑定信息
  */
  */
 export interface QueryUserBindInfoBo extends PageQuery {
 export interface QueryUserBindInfoBo extends PageQuery {
-  /**
-   * 企业名称
-   */
-  cpyName: any;
-  /**
-   * 关键字
-   */
-  keywords: any;
-  /**
-   * 用户姓名
-   */
-  userName: any;
-  /**
-   * 状态
-   */
-  status: string;
-
-  /**
-   * 日期范围参数
-   */
-  params?: any;
-}
+    /**
+     * 企业名称
+     */
+    cpyName: any;
+    /**
+     * 关键字
+     */
+    keywords: any;
+    /**
+     * 用户姓名
+     */
+    userName: any;
+    /**
+     * 状态
+     */
+    status: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}

+ 56 - 17
src/views/settled/control/index.vue

@@ -19,6 +19,31 @@
                                 <el-input v-model="queryParams.creditCode" placeholder="请输入信用代码" clearable @keyup.enter="handleQuery" />
                                 <el-input v-model="queryParams.creditCode" placeholder="请输入信用代码" clearable @keyup.enter="handleQuery" />
                             </el-form-item>
                             </el-form-item>
                         </el-col>
                         </el-col>
+                        <el-col :xl="6" :lg="8" :sm="12">
+                            <el-form-item label="所在行政区" prop="adcdCode">
+                                <AreaCascader :zlevel="2" v-model="queryParams.adcdCode" checkStrictly></AreaCascader>
+                            </el-form-item>
+                        </el-col>
+                        <!-- 企业类型查询 -->
+                        <el-col :xl="6" :lg="8" :sm="12">
+                            <el-form-item label="企业类型" prop="cpyType">
+                                <el-select v-model="queryParams.cpyType" placeholder="请选择企业类型" clearable>
+                                    <el-option v-for="item in cpy_type" :key="item.value" :label="item.label" :value="item.value" />
+                                </el-select>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :xl="6" :lg="8" :sm="12">
+                            <el-form-item label="监管类型" prop="supervisionType">
+                                <el-select v-model="queryParams.supervisionType" placeholder="请选择监管类型" clearable>
+                                    <el-option v-for="item in supervision_type" :key="item.value" :label="item.label" :value="item.value" />
+                                </el-select>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :xl="6" :lg="8" :sm="12">
+                            <el-form-item label="监管区域" prop="supervisionArea">
+                                <AreaCascader :zlevel="2" v-model="queryParams.supervisionArea" checkStrictly></AreaCascader>
+                            </el-form-item>
+                        </el-col>
                         <el-col :xl="6" :lg="8" :sm="12">
                         <el-col :xl="6" :lg="8" :sm="12">
                             <el-form-item>
                             <el-form-item>
                                 <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
                                 <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
@@ -32,6 +57,11 @@
         <el-card shadow="never">
         <el-card shadow="never">
             <el-table v-loading="loading" :data="recordCompanyList" border @selection-change="handleSelectionChange">
             <el-table v-loading="loading" :data="recordCompanyList" border @selection-change="handleSelectionChange">
                 <el-table-column type="selection" width="55" align="center" />
                 <el-table-column type="selection" width="55" align="center" />
+                <el-table-column label="企业类型" align="center">
+                    <template #default="{ row }">
+                        <span>{{ selectDictLabel(cpy_type, row.cpyType) }}</span>
+                    </template>
+                </el-table-column>
                 <el-table-column label="企业名称" align="center" prop="cpyName" />
                 <el-table-column label="企业名称" align="center" prop="cpyName" />
                 <el-table-column label="企业logo" align="center" prop="license" width="100">
                 <el-table-column label="企业logo" align="center" prop="license" width="100">
                     <template #default="scope">
                     <template #default="scope">
@@ -52,6 +82,13 @@
                         </template>
                         </template>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
+                <!-- 监管区域 -->
+                <el-table-column label="监管类型" align="center">
+                    <template #default="{ row }">
+                        <span>{{ selectDictLabel(supervision_type, row.supervisionType) }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column label="监管区域" align="center" prop="supervisionAreaName" />
                 <el-table-column label="所在行政区" align="center" prop="adcdCode">
                 <el-table-column label="所在行政区" align="center" prop="adcdCode">
                     <template #default="{ row }">
                     <template #default="{ row }">
                         <AreaView :value="row.adcdCode"></AreaView>
                         <AreaView :value="row.adcdCode"></AreaView>
@@ -67,23 +104,19 @@
                 </el-table-column>
                 </el-table-column>
                 <el-table-column label="操作" align="center" width="280" fixed="right" class-name="small-padding fixed-width">
                 <el-table-column label="操作" align="center" width="280" fixed="right" class-name="small-padding fixed-width">
                     <template #default="{ row }">
                     <template #default="{ row }">
-                        <el-button @click="handleUser(row)" type="primary"
-                            ><el-icon><User /></el-icon>维护成员</el-button
-                        >
-                        <el-button @click="$router.push({ path: '/enterprise/cpy-detail', query: { cpyid: row.id } })" type="primary"
-                            ><el-icon><View /></el-icon>查看企业信息</el-button
-                        >
+                        <el-button @click="handleUser(row)" type="primary">
+                            <el-icon><User /></el-icon>
+                            维护成员
+                        </el-button>
+                        <el-button @click="$router.push({ path: '/enterprise/cpy-detail', query: { cpyid: row.id } })" type="primary">
+                            <el-icon><View /></el-icon>
+                            查看企业信息
+                        </el-button>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
             </el-table>
             </el-table>
 
 
-            <pagination
-                v-show="total > 0"
-                :total="total"
-                v-model:page="queryParams.pageNum"
-                v-model:limit="queryParams.pageSize"
-                @pagination="getList"
-            />
+            <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
         </el-card>
         </el-card>
     </div>
     </div>
     <Staff :info="formItem" v-model:show="showUser"></Staff>
     <Staff :info="formItem" v-model:show="showUser"></Staff>
@@ -92,10 +125,10 @@
 <script setup name="Control" lang="ts">
 <script setup name="Control" lang="ts">
 import { listRecordCompany } from '@/api/enterprise/recordCompany';
 import { listRecordCompany } from '@/api/enterprise/recordCompany';
 import { RecordCompanyVO, RecordCompanyQuery, RecordCompanyForm } from '@/api/enterprise/recordCompany/types';
 import { RecordCompanyVO, RecordCompanyQuery, RecordCompanyForm } from '@/api/enterprise/recordCompany/types';
-import { AreaView } from '@/views/components';
+import { AreaView, AreaCascader } from '@/views/components';
 import { Staff } from '@/views/settled';
 import { Staff } from '@/views/settled';
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const { cpy_res_status, cpy_type } = toRefs<any>(proxy?.useDict('cpy_res_status', 'cpy_type'));
+const { cpy_res_status, cpy_type, supervision_type, supervision_area } = toRefs<any>(proxy?.useDict('cpy_res_status', 'cpy_type', 'supervision_type', 'supervision_area'));
 const recordCompanyList = ref<RecordCompanyVO[]>([]);
 const recordCompanyList = ref<RecordCompanyVO[]>([]);
 const loading = ref(true);
 const loading = ref(true);
 const showSearch = ref(true);
 const showSearch = ref(true);
@@ -116,7 +149,9 @@ const initFormData: RecordCompanyForm = {
     adcdCode: undefined,
     adcdCode: undefined,
     address: undefined,
     address: undefined,
     contactPerson: undefined,
     contactPerson: undefined,
-    tel: undefined
+    tel: undefined,
+    supervisionType: undefined,
+    supervisionArea: undefined
 };
 };
 const data = reactive<PageData<RecordCompanyForm, RecordCompanyQuery>>({
 const data = reactive<PageData<RecordCompanyForm, RecordCompanyQuery>>({
     form: { ...initFormData },
     form: { ...initFormData },
@@ -126,7 +161,11 @@ const data = reactive<PageData<RecordCompanyForm, RecordCompanyQuery>>({
         cpyName: undefined,
         cpyName: undefined,
         tel: undefined,
         tel: undefined,
         creditCode: undefined,
         creditCode: undefined,
-        status: '1'
+        status: '1',
+        cpyType: undefined,
+        adcdCode: undefined,
+        supervisionArea: undefined,
+        supervisionType: undefined
     },
     },
     rules: {
     rules: {
         storePhoto: [{ required: true, trigger: 'blur', message: '请上传企业logo' }],
         storePhoto: [{ required: true, trigger: 'blur', message: '请上传企业logo' }],

+ 28 - 11
src/views/settled/cpy/index.vue

@@ -3,9 +3,10 @@
         <el-card style="width: 100%;margin-bottom: 16px;" v-loading="qyxxLoadding">
         <el-card style="width: 100%;margin-bottom: 16px;" v-loading="qyxxLoadding">
             <el-descriptions title="企业信息" :column="4" border direction="vertical">
             <el-descriptions title="企业信息" :column="4" border direction="vertical">
                 <template #extra>
                 <template #extra>
-                    <el-button @click="eidtCpy" type="primary" text
-                        ><el-icon><EditPen /></el-icon>编辑</el-button
-                    >
+                    <el-button @click="eidtCpy" type="primary" text>
+                        <el-icon><EditPen /></el-icon>
+                        编辑
+                    </el-button>
                 </template>
                 </template>
                 <el-descriptions-item label="企业logo">
                 <el-descriptions-item label="企业logo">
                     <template #default>
                     <template #default>
@@ -13,17 +14,32 @@
                     </template>
                     </template>
                 </el-descriptions-item>
                 </el-descriptions-item>
                 <el-descriptions-item label="企业名称">{{ form.cpyName }}</el-descriptions-item>
                 <el-descriptions-item label="企业名称">{{ form.cpyName }}</el-descriptions-item>
-                <el-descriptions-item label="企业类型">{{ selectDictLabel(cpy_type, form.cpyType) }}</el-descriptions-item>
+                <el-descriptions-item label="企业类型">
+                    {{ selectDictLabel(cpy_type, form.cpyType) }}
+                    <template v-if="form.supervisionType">
+                        {{ '>' + selectDictLabel(supervision_type, form.supervisionType) }}
+                    </template>
+                </el-descriptions-item>
+                <!-- 监管类型 -->
+                <el-descriptions-item label="监管类型">{{ selectDictLabel(supervision_type, form.supervisionType) }}</el-descriptions-item>
+                <el-descriptions-item label="监管区域">
+                    {{ form.supervisionAreaName || '-' }}
+                </el-descriptions-item>
+
                 <el-descriptions-item label="统一社会信用代码">{{ form.creditCode }}</el-descriptions-item>
                 <el-descriptions-item label="统一社会信用代码">{{ form.creditCode }}</el-descriptions-item>
                 <el-descriptions-item label="营业执照" class="d-flex a-c">
                 <el-descriptions-item label="营业执照" class="d-flex a-c">
                     <template #default>
                     <template #default>
                         <FileLook v-model="form.license"></FileLook>
                         <FileLook v-model="form.license"></FileLook>
                     </template>
                     </template>
                 </el-descriptions-item>
                 </el-descriptions-item>
-                <el-descriptions-item label="地址" class="d-flex a-c">
+                <el-descriptions-item label="所在行政区" class="d-flex a-c">
+                    <template #default>
+                        {{ form.adcdCodeName || '-'}}
+                    </template>
+                </el-descriptions-item>
+                <el-descriptions-item label="具体地址" class="d-flex a-c">
                     <template #default>
                     <template #default>
-                        <AreaView :value="form.adcdCode"></AreaView>
-                        <span>{{ form.address }}</span>
+                        {{ form.address || '-'}}
                     </template>
                     </template>
                 </el-descriptions-item>
                 </el-descriptions-item>
                 <el-descriptions-item label="企业联系人">{{ form.contactPerson }}</el-descriptions-item>
                 <el-descriptions-item label="企业联系人">{{ form.contactPerson }}</el-descriptions-item>
@@ -39,9 +55,10 @@
         <el-card style="width: 100%;margin-bottom: 16px;">
         <el-card style="width: 100%;margin-bottom: 16px;">
             <div class="d-flex j-sb mb10">
             <div class="d-flex j-sb mb10">
                 <div class="f-14 f-w-b mb15">授权应用</div>
                 <div class="f-14 f-w-b mb15">授权应用</div>
-                <el-button @click="addApp(authAppRef)" type="primary" text
-                    ><el-icon><Plus /></el-icon>新增应用</el-button
-                >
+                <el-button @click="addApp(authAppRef)" type="primary" text>
+                    <el-icon><Plus /></el-icon>
+                    新增应用
+                </el-button>
             </div>
             </div>
             <authApp ref="authAppRef" :cpyid="(query.cpyid as string)"></authApp>
             <authApp ref="authAppRef" :cpyid="(query.cpyid as string)"></authApp>
         </el-card>
         </el-card>
@@ -55,7 +72,7 @@ import { AreaView } from '@/views/components';
 import { FileLook } from '@/views/models';
 import { FileLook } from '@/views/models';
 import { editCpy, baseAuthInfo, specialAuthInfo, authApp } from '@/views/settled';
 import { editCpy, baseAuthInfo, specialAuthInfo, authApp } from '@/views/settled';
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const { cpy_res_status, cpy_type } = toRefs<any>(proxy?.useDict('cpy_res_status', 'cpy_type'));
+const { cpy_res_status, cpy_type, supervision_type } = toRefs<any>(proxy?.useDict('cpy_res_status', 'cpy_type', 'supervision_type'));
 const { query } = useRoute();
 const { query } = useRoute();
 const form = ref<any>({});
 const form = ref<any>({});
 const show1 = ref(false);
 const show1 = ref(false);