经营主体审批基本完成
This commit is contained in:
		| @@ -0,0 +1,38 @@ | ||||
| <template> | ||||
|   <section class="AppPortalUserManager"> | ||||
|     <component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
|  | ||||
| import PumDetail from "./pumDetail"; | ||||
| import PumList from "./pumList"; | ||||
|  | ||||
| export default { | ||||
|   name: "AppPortalUserManager", | ||||
|   components: {PumList, PumDetail}, | ||||
|   label: "经营主体", | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|   }, | ||||
|   computed: { | ||||
|     currentComponent() { | ||||
|       return !!this.$route.query.id ? PumDetail : PumList | ||||
|     } | ||||
|   }, | ||||
|   data() { | ||||
|     return {} | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("enterpriseName") | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .AppPortalUserManager { | ||||
| } | ||||
| </style> | ||||
							
								
								
									
										124
									
								
								project/xiushan/apps/AppPortalUserManager/pumDetail.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								project/xiushan/apps/AppPortalUserManager/pumDetail.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,124 @@ | ||||
| <template> | ||||
|   <section class="pumDetail"> | ||||
|     <ai-detail> | ||||
|       <ai-title slot="title" title="经营主体详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})"> | ||||
|         <template #rightBtn> | ||||
|           <el-button v-if="isAuthing" type="primary" @click="dialog=true">审核</el-button> | ||||
|         </template> | ||||
|       </ai-title> | ||||
|       <template #content> | ||||
|         <el-form size="small" label-width="160px"> | ||||
|           <ai-card title="营业执照"> | ||||
|             <template #content> | ||||
|               <el-form-item label="企业名称">{{ detail.enterpriseName }}</el-form-item> | ||||
|               <el-form-item label="统一社会信用代码">{{ detail.unifiedCode }}</el-form-item> | ||||
|               <el-form-item label="企业类型">{{ dict.getLabel('enterpriseType', detail.enterpriseType) }}</el-form-item> | ||||
|               <el-form-item label="所在地区">{{ detail.areaName }}</el-form-item> | ||||
|               <el-form-item label="详细地址">{{ detail.address }}</el-form-item> | ||||
|               <el-form-item label="经营范围">{{ detail.businessScope }}</el-form-item> | ||||
|               <el-form-item label="营业期限">{{ detail.operationPeriod }}</el-form-item> | ||||
|               <el-form-item label="营业执照"> | ||||
|                 <el-image :src="detail.businessLicense"/> | ||||
|               </el-form-item> | ||||
|             </template> | ||||
|           </ai-card> | ||||
|           <ai-card title="法人信息"> | ||||
|             <template #content> | ||||
|               <el-form-item label="法人姓名">{{ detail.legalPersonName }}</el-form-item> | ||||
|               <el-form-item label="身份证号">{{ detail.idNumber }}</el-form-item> | ||||
|               <el-form-item label="联系方式">{{ detail.phone }}</el-form-item> | ||||
|               <el-form-item label="身份证照片"> | ||||
|                 <el-row type="flex" align="middle"> | ||||
|                   <el-image :src="detail.idNumberTopside" :preview-src-list="[detail.idNumberTopside]"/> | ||||
|                   <el-image :src="detail.idNumberBackside" :preview-src-list="[detail.idNumberBackside]"/> | ||||
|                 </el-row> | ||||
|               </el-form-item> | ||||
|             </template> | ||||
|           </ai-card> | ||||
|           <ai-card title="审核结果" v-if="!isAuthing"> | ||||
|             <template #content> | ||||
|               <el-form-item label="审核人">{{ detail.auditUserName }}</el-form-item> | ||||
|               <el-form-item label="联系方式">{{ detail.auditPhone }}</el-form-item> | ||||
|               <el-form-item label="备注说明">{{ detail.auditDescription }}</el-form-item> | ||||
|             </template> | ||||
|           </ai-card> | ||||
|         </el-form> | ||||
|  | ||||
|       </template> | ||||
|     </ai-detail> | ||||
|     <ai-dialog :visible.sync="dialog" title="审批" @closed="form={}" @onConfirm="submitAudit" width="560px"> | ||||
|       <el-form :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px"> | ||||
|         <el-form-item label="审批结果" prop="auditStatus"> | ||||
|           <ai-select v-model="form.auditStatus" :selectList="dict.getDict('auditStatus')"/> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="审批意见" prop="auditDescription"> | ||||
|           <el-input type="textarea" v-model="form.auditDescription" placeholder="请输入"/> | ||||
|         </el-form-item> | ||||
|       </el-form> | ||||
|     </ai-dialog> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| export default { | ||||
|   name: "pumDetail", | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|   }, | ||||
|   computed: { | ||||
|     isAuthing() { | ||||
|       return this.detail.status == "0" | ||||
|     } | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       dialog: false, | ||||
|       detail: {}, | ||||
|       form: {}, | ||||
|       rules: { | ||||
|         auditStatus: [{required: true, message: "请选择审批结果"}] | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
|     getDetail() { | ||||
|       let {id} = this.$route.query | ||||
|       this.instance.post("/appportaluserenterprise/queryDetailById", null, { | ||||
|         params: {id} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.detail = res.data | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|     submitAudit() { | ||||
|       this.$refs.AuditForm.validate(v => { | ||||
|         if (v) { | ||||
|           let {id} = this.detail | ||||
|           this.instance.post("/appportaluserenterprise/auditEnterprise", null, { | ||||
|             params: {id, ...this.form} | ||||
|           }).then(res => { | ||||
|             if (res?.code == 0) { | ||||
|               this.dialog = false | ||||
|               this.$message.success("提交成功!") | ||||
|               this.getDetail() | ||||
|             } | ||||
|           }) | ||||
|         } | ||||
|       }) | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("auditStatus") | ||||
|     this.getDetail() | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .pumDetail { | ||||
|   height: 100%; | ||||
| } | ||||
| </style> | ||||
							
								
								
									
										88
									
								
								project/xiushan/apps/AppPortalUserManager/pumList.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										88
									
								
								project/xiushan/apps/AppPortalUserManager/pumList.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,88 @@ | ||||
| <template> | ||||
|   <section class="pumList"> | ||||
|     <ai-list> | ||||
|       <ai-title slot="title" title="经营主体" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" | ||||
|                 @change="page.current=1,getTableData()"/> | ||||
|       <template #content> | ||||
|         <ai-search-bar> | ||||
|           <template #left> | ||||
|             <ai-select v-model="search.status" :selectList="dict.getDict('status')" placeholder="企业类型" | ||||
|                        @change="page.current=1,getTableData()"/> | ||||
|             <ai-select v-model="search.status" :selectList="dict.getDict('status')" placeholder="认证状态" | ||||
|                        @change="page.current=1,getTableData()"/> | ||||
|           </template> | ||||
|           <template #right> | ||||
|             <el-input size="small" placeholder="搜索姓名、手机号" v-model="search.name" clearable | ||||
|                       @change="page.current=1,getTableData()"/> | ||||
|           </template> | ||||
|         </ai-search-bar> | ||||
|         <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" | ||||
|                   @getList="getTableData" :col-configs="colConfigs" :dict="dict"> | ||||
|           <el-table-column slot="options" label="操作" fixed="right" align="center"> | ||||
|             <template slot-scope="{row}"> | ||||
|               <el-button type="text" @click="showDetail(row.id)">详情</el-button> | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|         </ai-table> | ||||
|       </template> | ||||
|     </ai-list> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import {mapState} from "vuex"; | ||||
|  | ||||
| export default { | ||||
|   name: "pumList", | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['user']) | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       search: {name: ""}, | ||||
|       page: {current: 1, size: 10, total: 0}, | ||||
|       tableData: [], | ||||
|       colConfigs: [ | ||||
|         {label: "企业名称", prop: "enterpriseName"}, | ||||
|         {label: "企业类型", prop: "enterpriseType"}, | ||||
|         {label: "所属地区", prop: "areaName"}, | ||||
|         {label: "法人姓名", prop: "legalPersonName"}, | ||||
|         {label: "联系方式", prop: "phone"}, | ||||
|         {label: "创建时间", prop: "createTime"}, | ||||
|         {label: "登录账号", prop: "loginAccount"}, | ||||
|         {slot: "options"} | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
|     getTableData() { | ||||
|       this.instance.post("/appportaluserenterprise/list", null, { | ||||
|         params: {...this.page, ...this.search} | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.tableData = res.data?.records | ||||
|           this.page.total = res.data.total | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|     showDetail(id) { | ||||
|       this.$router.push({query: {id}}) | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("enterpriseName") | ||||
|     this.getTableData() | ||||
|     this.search.areaId = this.user.info.areaId | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .pumList { | ||||
| } | ||||
| </style> | ||||
		Reference in New Issue
	
	Block a user