抢单记录页面完成
This commit is contained in:
		| @@ -64,7 +64,9 @@ export default { | |||||||
|  |  | ||||||
|     }, |     }, | ||||||
|     handleCancel() { |     handleCancel() { | ||||||
|  |       this.$confirm("是否要取消本次融资需求发布?").then(() => { | ||||||
|  |  | ||||||
|  |       }).catch(() => 0) | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
|   | |||||||
							
								
								
									
										38
									
								
								project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								project/xiushan/apps/financing/AppGrabLog/AppGrabLog.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | |||||||
|  | <template> | ||||||
|  |   <section class="AppGrabLog"> | ||||||
|  |     <component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/> | ||||||
|  |   </section> | ||||||
|  | </template> | ||||||
|  |  | ||||||
|  | <script> | ||||||
|  |  | ||||||
|  | import GrabDetail from "./grabDetail"; | ||||||
|  | import GrabList from "./grabList"; | ||||||
|  |  | ||||||
|  | export default { | ||||||
|  |   name: "AppGrabLog", | ||||||
|  |   components: {GrabList, GrabDetail}, | ||||||
|  |   label: "抢单记录", | ||||||
|  |   props: { | ||||||
|  |     instance: Function, | ||||||
|  |     dict: Object, | ||||||
|  |     permissions: Function | ||||||
|  |   }, | ||||||
|  |   computed: { | ||||||
|  |     currentComponent() { | ||||||
|  |       return !!this.$route.query.id ? GrabDetail : GrabList | ||||||
|  |     } | ||||||
|  |   }, | ||||||
|  |   data() { | ||||||
|  |     return {} | ||||||
|  |   }, | ||||||
|  |   created() { | ||||||
|  |     this.dict.load("enterpriseName") | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | </script> | ||||||
|  |  | ||||||
|  | <style lang="scss" scoped> | ||||||
|  | .AppGrabLog { | ||||||
|  | } | ||||||
|  | </style> | ||||||
							
								
								
									
										135
									
								
								project/xiushan/apps/financing/AppGrabLog/grabDetail.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										135
									
								
								project/xiushan/apps/financing/AppGrabLog/grabDetail.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,135 @@ | |||||||
|  | <template> | ||||||
|  |   <section class="grabDetail"> | ||||||
|  |     <ai-detail> | ||||||
|  |       <ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})"> | ||||||
|  |         <template #rightBtn> | ||||||
|  |           <el-button type="danger" @click="handleCancel">回退订单</el-button> | ||||||
|  |           <el-button 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-row type="flex" class="flexWrap"> | ||||||
|  |                 <el-form-item label="意向金额">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="期望使用期限">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="资金用途">{{ detail.unifiedCode }}</el-form-item> | ||||||
|  |                 <el-form-item label="企业主体">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="联系人">{{ dict.getLabel('enterpriseType', detail.enterpriseType) }}</el-form-item> | ||||||
|  |                 <el-form-item label="所在地区">{{ detail.address }}</el-form-item> | ||||||
|  |                 <el-form-item label="联系方式">{{ detail.phone }}</el-form-item> | ||||||
|  |                 <el-form-item label="身份证号">{{ detail.idNumber }}</el-form-item> | ||||||
|  |                 <el-form-item label="发布时间">{{ detail.address }}</el-form-item> | ||||||
|  |               </el-row> | ||||||
|  |               <el-form-item label="备注">{{ detail.operationPeriod }}</el-form-item> | ||||||
|  |             </template> | ||||||
|  |           </ai-card> | ||||||
|  |           <ai-card title="融资进度"> | ||||||
|  |             <template #content> | ||||||
|  |               <el-row type="flex" class="flexWrap"> | ||||||
|  |                 <el-form-item label="融资进度">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="贷款银行">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="贷款经理">{{ detail.unifiedCode }}</el-form-item> | ||||||
|  |                 <el-form-item label="联系方式">{{ detail.phone }}</el-form-item> | ||||||
|  |                 <el-form-item label="放款金额">{{ detail.enterpriseName }}</el-form-item> | ||||||
|  |                 <el-form-item label="放款日期">{{ dict.getLabel('enterpriseType', detail.enterpriseType) }}</el-form-item> | ||||||
|  |                 <el-form-item label="使用期限">{{ detail.address }}</el-form-item> | ||||||
|  |               </el-row> | ||||||
|  |             </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"> | ||||||
|  |           <el-input v-model="form.auditDescription" placeholder="请输入"/> | ||||||
|  |         </el-form-item> | ||||||
|  |         <el-form-item label="使用期限(月)" prop="auditStatus"> | ||||||
|  |           <ai-select v-model="form.auditStatus" :selectList="dict.getDict('auditStatus')"/> | ||||||
|  |         </el-form-item> | ||||||
|  |         <el-form-item label="放款日期" prop="auditStatus"> | ||||||
|  |           <el-date-picker v-model="form.time" placeholder="请选择"/> | ||||||
|  |         </el-form-item> | ||||||
|  |       </el-form> | ||||||
|  |     </ai-dialog> | ||||||
|  |   </section> | ||||||
|  | </template> | ||||||
|  |  | ||||||
|  | <script> | ||||||
|  | export default { | ||||||
|  |   name: "grabDetail", | ||||||
|  |   props: { | ||||||
|  |     instance: Function, | ||||||
|  |     dict: Object, | ||||||
|  |     permissions: Function | ||||||
|  |   }, | ||||||
|  |   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 | ||||||
|  |         } | ||||||
|  |       }) | ||||||
|  |     }, | ||||||
|  |     handleCancel() { | ||||||
|  |       this.$confirm("是否要回退本次融资需求订单?").then(() => { | ||||||
|  |  | ||||||
|  |       }).catch(() => 0) | ||||||
|  |     }, | ||||||
|  |     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> | ||||||
|  | .grabDetail { | ||||||
|  |   height: 100%; | ||||||
|  |  | ||||||
|  |   .flexWrap { | ||||||
|  |     flex-wrap: wrap; | ||||||
|  |  | ||||||
|  |     .el-form-item { | ||||||
|  |       width: 50%; | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   .el-date-editor { | ||||||
|  |     width: 100%; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  | } | ||||||
|  | </style> | ||||||
							
								
								
									
										91
									
								
								project/xiushan/apps/financing/AppGrabLog/grabList.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								project/xiushan/apps/financing/AppGrabLog/grabList.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,91 @@ | |||||||
|  | <template> | ||||||
|  |   <section class="grabList"> | ||||||
|  |     <ai-list> | ||||||
|  |       <ai-title slot="title" title="抢单记录" isShowBottomBorder/> | ||||||
|  |       <template #content> | ||||||
|  |         <ai-search-bar> | ||||||
|  |           <template #left> | ||||||
|  |             <ai-select placeholder="订单状态" v-model="search.status" @change="page.current=1,getTableData()"/> | ||||||
|  |             <ai-search label="申请时间"> | ||||||
|  |               <el-date-picker size="small" v-model="search.applyTime" type="daterange" | ||||||
|  |                               @change="page.current=1,getTableData()"/> | ||||||
|  |             </ai-search> | ||||||
|  |           </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: "grabList", | ||||||
|  |   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: "legalPersonName"}, | ||||||
|  |         {label: "申请时间", prop: "legalPersonName"}, | ||||||
|  |         {label: "联系人", prop: "phone"}, | ||||||
|  |         {label: "联系方式", prop: "phone"}, | ||||||
|  |         {label: "客户经理", prop: "phone"}, | ||||||
|  |         {label: "贷款银行", prop: "phone"}, | ||||||
|  |         {label: "放款金额", prop: "phone"}, | ||||||
|  |         {label: "状态", prop: "status"}, | ||||||
|  |         {label: "备注", prop: "loginAccount"}, | ||||||
|  |         {slot: "options"} | ||||||
|  |       ] | ||||||
|  |     } | ||||||
|  |   }, | ||||||
|  |   methods: { | ||||||
|  |     getTableData() { | ||||||
|  |       this.instance.post("/appportaluserenterprise/list", null, { | ||||||
|  |         params: {...this.page, ...this.search, status: 1} | ||||||
|  |       }).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> | ||||||
|  | .grabList { | ||||||
|  | } | ||||||
|  | </style> | ||||||
		Reference in New Issue
	
	Block a user