feat(xumu): 新增投保审批功能
- 添加投保审批相关的页面和组件 - 实现投保审批的新增、编辑和审核功能- 集成投保审批的列表展示和搜索功能 -优化投保审批表单的验证和提交逻辑
This commit is contained in:
		| @@ -8,13 +8,6 @@ const columns = [ | ||||
|   {label: "类别", prop: "category", dict: "category"}, | ||||
|   {label: "品种", prop: "variety", dict: "variety"}, | ||||
| ] | ||||
| const formImages = [ | ||||
|   {label: "身份证(正面)", prop: "frontCard", rules: {required: true, message: '请上传 身份证(正面)'}}, | ||||
|   {label: "身份证(反面)", prop: "reverseCard", rules: {required: true, message: '请上传 身份证(反面)'}}, | ||||
|   {label: "营业执照", prop: "businessPic", rules: {required: true, message: '请上传 营业执照'}}, | ||||
|   {label: "畜禽经营许可证", prop: "breedPic", rules: {required: true, message: '请上传 畜禽经营许可证'}}, | ||||
|   {label: "动物防疫条件许可证", prop: "prevention", rules: {required: true, message: '请上传 动物防疫条件许可证'}}, | ||||
| ] | ||||
| export default { | ||||
|   name: "iaAdd", | ||||
|   components: {AiEartagPicker}, | ||||
| @@ -26,7 +19,7 @@ export default { | ||||
|   data() { | ||||
|     return { | ||||
|       detail: {detailList: []}, | ||||
|       columns, formImages, | ||||
|       columns, | ||||
|       companyList: [] | ||||
|     } | ||||
|   }, | ||||
| @@ -39,6 +32,13 @@ export default { | ||||
|     }, | ||||
|     isAdd: v => !v.$route.query.id, | ||||
|     isEdit: v => v.$route.query.edit == 1, | ||||
|     formImages: v => [ | ||||
|       {label: "身份证(正面)", prop: "frontCard", rules: {required: v.isAdd||v.isEdit, message: '请上传 身份证(正面)'}}, | ||||
|       {label: "身份证(反面)", prop: "reverseCard", rules: {required: v.isAdd||v.isEdit, message: '请上传 身份证(反面)'}}, | ||||
|       {label: "营业执照", prop: "businessPic", rules: {required: v.isAdd||v.isEdit, message: '请上传 营业执照'}}, | ||||
|       {label: "畜禽经营许可证", prop: "breedPic", rules: {required: v.isAdd||v.isEdit, message: '请上传 畜禽经营许可证'}}, | ||||
|       {label: "动物防疫条件许可证", prop: "prevention", rules: {required: v.isAdd||v.isEdit, message: '请上传 动物防疫条件许可证'}}, | ||||
|     ] | ||||
|   }, | ||||
|   methods: { | ||||
|     back(params = {}) { | ||||
| @@ -67,13 +67,21 @@ export default { | ||||
|       const item = this.companyList.find(e => e.id == id) | ||||
|       return item?.children || [] | ||||
|     }, | ||||
|     submit() { | ||||
|     submit(submitType) { | ||||
|       this.$refs.detail.validate().then(() => { | ||||
|         this.form.biochipEarNumber = this.detail.biochipEarNumber | ||||
|         this.instance.post("/api/insurance/apply/addOrEdit", this.form).then(res => { | ||||
|           if (res?.code == 0) { | ||||
|             this.dialog = false | ||||
|             this.getDetail() | ||||
|         const farmPicture = {} | ||||
|         this.formImages.forEach(e => { | ||||
|           const {prop} = e | ||||
|           const val = this.detail[prop] | ||||
|           if (val) { | ||||
|             farmPicture[prop] = val | ||||
|           } | ||||
|         }) | ||||
|         this.detail.farmPicture = JSON.stringify(farmPicture) | ||||
|         this.instance.post("/api/insurance/apply/addOrEdit", {...this.detail, submitType}).then(res => { | ||||
|           if (res?.code == '0') { | ||||
|             this.$message.success("提交成功!") | ||||
|             this.back() | ||||
|           } | ||||
|         }) | ||||
|       }) | ||||
| @@ -91,15 +99,15 @@ export default { | ||||
|     <el-form size="small" label-width="120px" :model="detail" ref="detail"> | ||||
|       <ai-card title="基础信息"> | ||||
|         <div class="grid"> | ||||
|           <el-form-item label="养殖场" prop="farmId" :rules="{required:true,message:'请选择 养殖场'}"> | ||||
|           <el-form-item label="养殖场" prop="farmId" :rules="{required: isAdd||isEdit,message:'请选择 养殖场'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.farmId" :instance="instance" :action="`/api/siteUser/querySiteByUserId?userId=${userinfo.id}`" :prop="{label:'name'}"/> | ||||
|             <b v-else v-text="detail.farmName"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="承保公司" prop="companyId" :rules="{required:true,message:'请选择 承保公司'}"> | ||||
|           <el-form-item label="承保公司" prop="companyId" :rules="{required: isAdd||isEdit,message:'请选择 承保公司'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.companyId" :select-list="companyList" :prop="{label:'name'}"/> | ||||
|             <b v-else v-text="detail.companyName"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="保险产品" prop="productType" :rules="{required:true,message:'请选择 保险产品'}"> | ||||
|           <el-form-item label="保险产品" prop="productType" :rules="{required: isAdd||isEdit,message:'请选择 保险产品'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.productType" :select-list="getProducts(detail.companyId)" :prop="{label:'name',value:'productType'}" | ||||
|                        @select="v=>$set(detail,'insureType',v.children[0].insureType)"/> | ||||
|             <b v-else v-text="detail.productType"/> | ||||
| @@ -116,7 +124,7 @@ export default { | ||||
|         </div> | ||||
|       </ai-card> | ||||
|       <ai-card title="投保对象"> | ||||
|         <template #right> | ||||
|         <template #right v-if="isAdd||isEdit"> | ||||
|           <ai-eartag-picker @select="v=>detail.detailList=v" :instance="instance" | ||||
|                             :action="`/insurance/apply/getEarNumberList?farmId=${detail.farmId}`"> | ||||
|             <el-button type="text">选择</el-button> | ||||
| @@ -125,12 +133,12 @@ export default { | ||||
|         <ai-table :tableData="detail.detailList" :colConfigs="columns" :isShowPagination="!1" hideOptions/> | ||||
|       </ai-card> | ||||
|       <ai-card title="证件信息"> | ||||
|         <el-form label-position="top" class="grid c-5"> | ||||
|         <div class="grid c-5 el-form--label-top"> | ||||
|           <el-form-item v-for="(img,i) in formImages" :key="i" v-bind="img"> | ||||
|             <ai-uploader v-if="isAdd||isEdit" v-model="detail[img.prop]" :instance="instance" :limit="1" value-is-url/> | ||||
|             <el-image :src="detail[img.prop]" :preview-src-list="[detail[img.prop]]" v-else/> | ||||
|           </el-form-item> | ||||
|         </el-form> | ||||
|         </div> | ||||
|       </ai-card> | ||||
|       <ai-card title="审核信息" v-if="!(isAdd||isEdit)"> | ||||
|         <el-form-item label="审核状态">{{ dict.getLabel('auditStatus', detail.auditStatus) }}</el-form-item> | ||||
| @@ -145,8 +153,8 @@ export default { | ||||
|     </el-form> | ||||
|     <div slot="footer"> | ||||
|       <template v-if="isAdd||isEdit"> | ||||
|         <el-button type="primary" @click="submit">保存草稿</el-button> | ||||
|         <el-button type="primary" @click="submit">保存并提交</el-button> | ||||
|         <el-button type="primary" @click="submit(1)">保存草稿</el-button> | ||||
|         <el-button type="primary" @click="submit(2)">保存并提交</el-button> | ||||
|       </template> | ||||
|       <el-button @click="back">返回</el-button> | ||||
|     </div> | ||||
| @@ -155,5 +163,14 @@ export default { | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .iaAdd { | ||||
|   :deep(.el-form--label-top) { | ||||
|     .el-form-item__label { | ||||
|       width: 100% !important; | ||||
|     } | ||||
|  | ||||
|     .el-form-item__content { | ||||
|       margin-left: unset !important; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </style> | ||||
|   | ||||
							
								
								
									
										35
									
								
								project/xumu/AppInsuranceAudit/AppInsuranceAudit.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								project/xumu/AppInsuranceAudit/AppInsuranceAudit.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| <script> | ||||
| import add from "./add.vue"; | ||||
| import list from "./list.vue"; | ||||
|  | ||||
| export default { | ||||
|   name: "AppInsuranceAudit", | ||||
|   label: "投保审批", | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|   }, | ||||
|   computed: { | ||||
|     currentPage() { | ||||
|       let {hash} = this.$route | ||||
|       return ["#add", "#audit"].includes(hash) ? add : list | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety") | ||||
|   }, | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <template> | ||||
|   <section class="AppInsuranceAudit"> | ||||
|     <component :is="currentPage" v-bind="$props"/> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .AppInsuranceAudit { | ||||
|   height: 100%; | ||||
| } | ||||
| </style> | ||||
							
								
								
									
										200
									
								
								project/xumu/AppInsuranceAudit/add.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										200
									
								
								project/xumu/AppInsuranceAudit/add.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,200 @@ | ||||
| <script> | ||||
| import {mapState} from "vuex" | ||||
| import AiEartagPicker from "@project/xumu/components/AiEartagPicker.vue"; | ||||
|  | ||||
| const columns = [ | ||||
|   {label: "序号", type: "index"}, | ||||
|   {label: "生物芯片耳标号", prop: "biochipEarNumber"}, | ||||
|   {label: "类别", prop: "category", dict: "category"}, | ||||
|   {label: "品种", prop: "variety", dict: "variety"}, | ||||
| ] | ||||
| export default { | ||||
|   name: "iaAdd", | ||||
|   components: {AiEartagPicker}, | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     permissions: Function, | ||||
|     dict: Object | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       detail: {detailList: []}, | ||||
|       columns, | ||||
|       companyList: [] | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(["user"]), | ||||
|     userinfo: v => v.user.info || {}, | ||||
|     pageTitle: v => { | ||||
|       const appName = v.$parent.menuName || v.$parent.$options.label | ||||
|       return v.$route.query.id ? v.isEdit ? `编辑${appName}` : `${appName}详情` : `新增${appName}` | ||||
|     }, | ||||
|     isAdd: v => !v.$route.query.id, | ||||
|     isEdit: v => v.$route.query.edit == 1, | ||||
|     isAudit: v => v.$route.hash == "#audit", | ||||
|     formImages: v => [ | ||||
|       {label: "身份证(正面)", prop: "frontCard", rules: {required: v.isAdd, message: '请上传 身份证(正面)'}}, | ||||
|       {label: "身份证(反面)", prop: "reverseCard", rules: {required: v.isAdd, message: '请上传 身份证(反面)'}}, | ||||
|       {label: "营业执照", prop: "businessPic", rules: {required: v.isAdd, message: '请上传 营业执照'}}, | ||||
|       {label: "畜禽经营许可证", prop: "breedPic", rules: {required: v.isAdd, message: '请上传 畜禽经营许可证'}}, | ||||
|       {label: "动物防疫条件许可证", prop: "prevention", rules: {required: v.isAdd, message: '请上传 动物防疫条件许可证'}}, | ||||
|     ] | ||||
|   }, | ||||
|   methods: { | ||||
|     back(params = {}) { | ||||
|       this.$router.push(params) | ||||
|     }, | ||||
|     getDetail() { | ||||
|       const {id} = this.$route.query | ||||
|       return id && this.instance.post("/api/insurance/apply/getInfo", null, {params: {id}}).then(res => { | ||||
|         if (res?.data) { | ||||
|           const detail = res.data | ||||
|           detail.detailList = detail.weightList || [] | ||||
|           let {farmPicture: picture = "{}"} = detail | ||||
|           picture = JSON.parse(picture) | ||||
|           return this.detail = {...detail, ...picture} | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|     getCompanies() { | ||||
|       this.instance.post("/api/insurance/apply/getCompany").then(res => { | ||||
|         if (res?.data) { | ||||
|           this.companyList = res.data | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|     getProducts(id) { | ||||
|       const item = this.companyList.find(e => e.id == id) | ||||
|       return item?.children || [] | ||||
|     }, | ||||
|     submit() { | ||||
|       this.$refs.detail.validate().then(() => { | ||||
|         const farmPicture = {} | ||||
|         this.formImages.forEach(e => { | ||||
|           const {prop} = e | ||||
|           const val = this.detail[prop] | ||||
|           if (val) { | ||||
|             farmPicture[prop] = val | ||||
|           } | ||||
|         }) | ||||
|         this.detail.farmPicture = JSON.stringify(farmPicture) | ||||
|         this.instance.post("/api/insurance/apply/addOrEditOffline", this.detail).then(res => { | ||||
|           if (res?.code == 0) { | ||||
|             this.$message.success("提交成功!") | ||||
|             this.back() | ||||
|           } | ||||
|         }) | ||||
|       }) | ||||
|     }, | ||||
|     handleAudit() { | ||||
|       this.$refs.detail.validate().then(() => { | ||||
|         this.instance.post("/api/insurance/apply/audit", this.detail).then(res => { | ||||
|           if (res?.code == 0) { | ||||
|             this.$message.success("提交成功!") | ||||
|             this.back() | ||||
|           } | ||||
|         }) | ||||
|       }) | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.getCompanies() | ||||
|     this.getDetail() | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <template> | ||||
|   <ai-page :title="pageTitle" class="iaAdd" showBack content-string="blank"> | ||||
|     <el-form size="small" label-width="120px" :model="detail" ref="detail"> | ||||
|       <ai-card title="基础信息"> | ||||
|         <div class="grid"> | ||||
|           <el-form-item label="养殖场" prop="farmId" :rules="{required:isAdd||isEdit,message:'请选择 养殖场'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.farmId" :instance="instance" :action="`/api/siteUser/querySiteByUserId?userId=${userinfo.id}`" :prop="{label:'name'}"/> | ||||
|             <b v-else v-text="detail.farmName"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="承保公司" prop="companyId" :rules="{required:isAdd||isEdit,message:'请选择 承保公司'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.companyId" :select-list="companyList" :prop="{label:'name'}"/> | ||||
|             <b v-else v-text="detail.companyName"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="保险产品" prop="productType" :rules="{required:isAdd||isEdit,message:'请选择 保险产品'}"> | ||||
|             <ai-select v-if="isAdd||isEdit" v-model="detail.productType" :select-list="getProducts(detail.companyId)" :prop="{label:'name',value:'productType'}" | ||||
|                        @select="v=>$set(detail,'insureType',v.children[0].insureType)"/> | ||||
|             <b v-else v-text="detail.productType"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="投保类型"> | ||||
|             <ai-input :value="dict.getLabel('insureType',detail.insureType)" placeholder="根据保险产品自动带出" :edit="isAdd||isEdit" readonly/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="联系人"> | ||||
|             <ai-input v-model="detail.contacts" :edit="isAdd||isEdit"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="联系电话"> | ||||
|             <ai-input v-model="detail.phone" :edit="isAdd||isEdit"/> | ||||
|           </el-form-item> | ||||
|         </div> | ||||
|       </ai-card> | ||||
|       <ai-card title="投保对象"> | ||||
|         <template #right v-if="isAdd"> | ||||
|           <ai-eartag-picker @select="v=>detail.detailList=v" :instance="instance" | ||||
|                             :action="`/insurance/apply/getEarNumberList?farmId=${detail.farmId}`"> | ||||
|             <el-button type="text">选择</el-button> | ||||
|           </ai-eartag-picker> | ||||
|         </template> | ||||
|         <ai-table :tableData="detail.detailList" :colConfigs="columns" :isShowPagination="!1" hideOptions/> | ||||
|       </ai-card> | ||||
|       <ai-card title="证件信息"> | ||||
|         <div class="grid c-5 el-form--label-top"> | ||||
|           <el-form-item v-for="(img,i) in formImages" :key="i" v-bind="img"> | ||||
|             <ai-uploader v-if="isAdd||isEdit" v-model="detail[img.prop]" :instance="instance" :limit="1" value-is-url/> | ||||
|             <el-image :src="detail[img.prop]" :preview-src-list="[detail[img.prop]]" v-else/> | ||||
|           </el-form-item> | ||||
|         </div> | ||||
|       </ai-card> | ||||
|       <ai-card title="审核信息" v-if="!(isAdd||isAudit)"> | ||||
|         <el-form-item label="审核状态">{{ dict.getLabel('auditStatus', detail.auditStatus) }}</el-form-item> | ||||
|         <el-form-item label="审核时间">{{ detail.auditTime }}</el-form-item> | ||||
|         <el-form-item label="审核人">{{ detail.auditName }}</el-form-item> | ||||
|         <el-form-item label="保单订单号">{{ detail.orderNo }}</el-form-item> | ||||
|         <el-form-item label="保单资料"> | ||||
|           <el-image :src="detail.picture" :preview-src-list="[detail.picture]"/> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="说明">{{ detail.remarks }}</el-form-item> | ||||
|       </ai-card> | ||||
|       <ai-card title="保险资料" v-if="isAudit"> | ||||
|         <div class="grid"> | ||||
|           <el-form-item label="保单订单号" prop="orderNo" :rules="{required:true,message:'请输入 保单订单号'}"> | ||||
|             <ai-input v-model="detail.orderNo"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="保单资料"> | ||||
|             <ai-uploader v-model="detail.picture" value-is-url :instance="instance" :limit="1"/> | ||||
|           </el-form-item> | ||||
|           <el-form-item label="说明"> | ||||
|             <ai-input type="textarea" :rows="3" v-model="detail.remarks"/> | ||||
|           </el-form-item> | ||||
|         </div> | ||||
|       </ai-card> | ||||
|     </el-form> | ||||
|     <div slot="footer"> | ||||
|       <template v-if="isAdd||isEdit"> | ||||
|         <el-button type="primary" @click="submit">提交</el-button> | ||||
|       </template> | ||||
|       <el-button v-if="isAudit" type="primary" @click="handleAudit">提交</el-button> | ||||
|       <el-button @click="back">返回</el-button> | ||||
|     </div> | ||||
|   </ai-page> | ||||
| </template> | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .iaAdd { | ||||
|   :deep(.el-form--label-top) { | ||||
|     .el-form-item__label { | ||||
|       width: 100% !important; | ||||
|     } | ||||
|  | ||||
|     .el-form-item__content { | ||||
|       margin-left: unset !important; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </style> | ||||
							
								
								
									
										108
									
								
								project/xumu/AppInsuranceAudit/list.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										108
									
								
								project/xumu/AppInsuranceAudit/list.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,108 @@ | ||||
| <script> | ||||
| import {mapState} from "vuex" | ||||
|  | ||||
| const columns = [ | ||||
|   {label: "序号", type: "index"}, | ||||
|   {label: "投保单号", prop: "orderNo"}, | ||||
|   {label: "所属养殖场", prop: "farmName"}, | ||||
|   {label: "投保类型", prop: "insureType", dict: "insureType"}, | ||||
|   {label: "承保公司", prop: "companyName"}, | ||||
|   {label: "投保时间", prop: "createTime"}, | ||||
|   {label: "投保状态", prop: "status", width: 160, dict: "insureStatus"}, | ||||
|   {label: "审核状态", prop: "auditStatus", width: 120, dict: "auditStatus"}, | ||||
|   {label: "申请人", prop: "applyName", width: 120}, | ||||
| ] | ||||
| export default { | ||||
|   name: "iaList", | ||||
|   props: { | ||||
|     instance: Function, | ||||
|     dict: Object, | ||||
|     permissions: Function | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       columns, | ||||
|       tableData: [], | ||||
|       page: {pageNum: 1, pageSize: 10, total: 0}, | ||||
|       search: {}, | ||||
|       dialog: false, | ||||
|       form: {} | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|     userinfo: v => v.user.info || {}, | ||||
|     pageTitle: v => v.$parent.menuName || v.$parent.$options.label | ||||
|   }, | ||||
|   watch: { | ||||
|     search: { | ||||
|       deep: true, | ||||
|       handler() { | ||||
|         this.page.pageNum = 1 | ||||
|         this.getTableData() | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
|     getTableData() { | ||||
|       this.instance.post("/api/insurance/apply/getAuditPage", {...this.page, ...this.search}).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.tableData = res.data?.records.map(e => ({...e, permit: `${e.status}` + e.auditStatus})) | ||||
|           this.page.total = res.data.total | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|   }, | ||||
|   created() { | ||||
|     this.getTableData() | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <template> | ||||
|   <ai-page class="iaList" :title="pageTitle"> | ||||
|     <ai-search-bar> | ||||
|       <template #left> | ||||
|         <ai-input placeholder="投保订单号" v-model="search.orderNo"/> | ||||
|         <ai-select placeholder="全部投保类型" v-model="search.insureType" dict="insureType"/> | ||||
|         <ai-select placeholder="全部投保状态" v-model="search.status" dict="insureStatus"/> | ||||
|         <ai-select placeholder="全部审批状态" v-model="search.auditStatus" dict="auditStatus"/> | ||||
|         <ai-search label="投保日期"> | ||||
|           <el-date-picker v-model="search.beginDate" type="datetime" placeholder="开始日期" size="small"/> | ||||
|           <el-date-picker v-model="search.endDate" type="datetime" placeholder="结束日期" size="small"/> | ||||
|         </ai-search> | ||||
|         <ai-input placeholder="养殖户" v-model="search.userName"/> | ||||
|         <ai-input placeholder="养殖场" v-model="search.farmName"/> | ||||
|       </template> | ||||
|     </ai-search-bar> | ||||
|     <ai-search-bar> | ||||
|       <template #left> | ||||
|         <el-button type="primary" icon="iconfont iconAdd" @click="$router.push({hash:'#add'})">新增</el-button> | ||||
|         <ai-download :instance="instance" url="/api/insurance/apply/exportAudit" :params="{...search,...page}" :fileName="`投保审批导出表-${Date.now()}`"/> | ||||
|       </template> | ||||
|     </ai-search-bar> | ||||
|     <ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @getList="getTableData" | ||||
|               :total="page.total" :current.sync="page.pageNum" :size.sync="page.pageSize"> | ||||
|       <el-table-column slot="options" label="操作" fixed="right" align="center"> | ||||
|         <template slot-scope="{row}"> | ||||
|           <div class="table-options"> | ||||
|             <template v-if="['00','02'].includes(row.permit)"> | ||||
|               <el-button type="text" @click="$router.push({hash:'#audit',query:{id:row.id}})">审批</el-button> | ||||
|             </template> | ||||
|             <el-button v-else type="text" @click="$router.push({hash:'#add',query:{id:row.id}})">查看</el-button> | ||||
|           </div> | ||||
|         </template> | ||||
|       </el-table-column> | ||||
|     </ai-table> | ||||
|   </ai-page> | ||||
| </template> | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .iaList { | ||||
|   height: 100%; | ||||
|  | ||||
|   .deleteBtn { | ||||
|     color: $errorColor; | ||||
|   } | ||||
| } | ||||
| </style> | ||||
		Reference in New Issue
	
	Block a user