refactor(xumu): 优化保险申请和审核功能
- 修改身份证和营业执照等文件的上传规则,要求在添加或编辑时必须上传 - 在保险申请提交时添加耳号列表参数 - 修改保险审核列表的审批按钮显示逻辑,仅当状态为"01"时显示
This commit is contained in:
@@ -69,6 +69,7 @@ export default {
|
|||||||
},
|
},
|
||||||
submit(submitType) {
|
submit(submitType) {
|
||||||
this.$refs.detail.validate().then(() => {
|
this.$refs.detail.validate().then(() => {
|
||||||
|
const earNumberList = this.detail.detailList.map(e => e.biochipEarNumber)
|
||||||
const farmPicture = {}
|
const farmPicture = {}
|
||||||
this.formImages.forEach(e => {
|
this.formImages.forEach(e => {
|
||||||
const {prop} = e
|
const {prop} = e
|
||||||
@@ -78,7 +79,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.detail.farmPicture = JSON.stringify(farmPicture)
|
this.detail.farmPicture = JSON.stringify(farmPicture)
|
||||||
this.instance.post("/api/insurance/apply/addOrEdit", {...this.detail, submitType}).then(res => {
|
this.instance.post("/api/insurance/apply/addOrEdit", {...this.detail, submitType, earNumberList}).then(res => {
|
||||||
if (res?.code == '0') {
|
if (res?.code == '0') {
|
||||||
this.$message.success("提交成功!")
|
this.$message.success("提交成功!")
|
||||||
this.back()
|
this.back()
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default {
|
|||||||
<el-table-column slot="options" label="操作" fixed="right" align="center">
|
<el-table-column slot="options" label="操作" fixed="right" align="center">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<template v-if="['00','02'].includes(row.permit)">
|
<template v-if="['01'].includes(row.permit)">
|
||||||
<el-button type="text" @click="$router.push({hash:'#audit',query:{id:row.id}})">审批</el-button>
|
<el-button type="text" @click="$router.push({hash:'#audit',query:{id:row.id}})">审批</el-button>
|
||||||
</template>
|
</template>
|
||||||
<el-button v-else type="text" @click="$router.push({hash:'#add',query:{id:row.id}})">查看</el-button>
|
<el-button v-else type="text" @click="$router.push({hash:'#add',query:{id:row.id}})">查看</el-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user