Compare commits
2 Commits
6b030791bb
...
a3ea6d9c51
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3ea6d9c51 | ||
|
|
5fa30a0e0e |
@@ -19,7 +19,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
detail: {detailList: []},
|
detail: { detailList: [], list: [] },
|
||||||
records
|
records
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -55,6 +55,7 @@ export default {
|
|||||||
return id && this.instance.post("/api/insurance/claim/apply/getInfo", null, { params: { orderNo: id } }).then(res => {
|
return id && this.instance.post("/api/insurance/claim/apply/getInfo", null, { params: { orderNo: id } }).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
const detail = res.data
|
const detail = res.data
|
||||||
|
detail.detailList = detail.detailList || []
|
||||||
return this.detail = { ...detail }
|
return this.detail = { ...detail }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -103,12 +104,13 @@ export default {
|
|||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="投保对象">
|
<ai-card title="投保对象">
|
||||||
<template #right v-if="isClaim">
|
<template #right v-if="isClaim">
|
||||||
<ai-eartag-picker @select="v=>detail.detailList=v" :instance="instance"
|
<ai-eartag-picker @select="v => detail.detailList = v.map(e=>({biochipEarNumber:e}))" :instance="instance"
|
||||||
:action="`/api/insurance/claim/apply/getClaimEarNumberList?orderNo=${detail.orderNo}`">
|
:action="`/api/insurance/claim/apply/getClaimEarNumberList?orderNo=${detail.orderNo}`">
|
||||||
<el-button type="text">选择</el-button>
|
<el-button type="text">选择</el-button>
|
||||||
</ai-eartag-picker>
|
</ai-eartag-picker>
|
||||||
</template>
|
</template>
|
||||||
<ai-highlight class="mar-b8 font-14" :content="`投保标的共${detail.insureNumber||0}只,已理赔标的共 @v 只`" color="red" :value="selectedEartags"/>
|
<ai-highlight class="mar-b8 font-14" :content="`投保标的共${detail.insureNumber || 0}只,已理赔标的共 @v 只`" color="red"
|
||||||
|
:value="selectedEartags" />
|
||||||
<ai-table :tableData="detail.detailList" :colConfigs="columns" :isShowPagination="!1" hideOptions />
|
<ai-table :tableData="detail.detailList" :colConfigs="columns" :isShowPagination="!1" hideOptions />
|
||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="理赔材料" v-if="isClaim">
|
<ai-card title="理赔材料" v-if="isClaim">
|
||||||
|
|||||||
@@ -72,6 +72,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
|
||||||
|
|||||||
Reference in New Issue
Block a user