Compare commits
2 Commits
d9a35f0081
...
8b72cc93a0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b72cc93a0 | ||
|
|
6819b17126 |
@@ -73,6 +73,7 @@ export default {
|
|||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
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
|
||||||
@@ -82,7 +83,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.detail.farmPicture = JSON.stringify(farmPicture)
|
this.detail.farmPicture = JSON.stringify(farmPicture)
|
||||||
this.instance.post("/api/insurance/apply/addOrEditOffline", this.detail).then(res => {
|
this.instance.post("/api/insurance/apply/addOrEditOffline", { ...this.detail, earNumberList }).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success("提交成功!")
|
this.$message.success("提交成功!")
|
||||||
this.back()
|
this.back()
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ export default {
|
|||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$refs.detail.validate().then(() => {
|
this.$refs.detail.validate().then(() => {
|
||||||
this.instance.post("/api/sell/apply/add", {...this.detail}).then(res => {
|
const earNumberList = this.detail.detailList.map(e => e.biochipEarNumber)
|
||||||
|
this.instance.post("/api/sell/apply/add", { ...this.detail, earNumberList }).then(res => {
|
||||||
if (res?.code == '0') {
|
if (res?.code == '0') {
|
||||||
this.$message.success("提交成功!")
|
this.$message.success("提交成功!")
|
||||||
this.back()
|
this.back()
|
||||||
@@ -90,7 +91,7 @@ export default {
|
|||||||
<el-form-item label="贷款产品" prop="productType" :rules="{ message: '请选择 贷款产品' }">
|
<el-form-item label="贷款产品" prop="productType" :rules="{ message: '请选择 贷款产品' }">
|
||||||
<b v-text="dict.getLabel('loanProduct', detail.productType)" />
|
<b v-text="dict.getLabel('loanProduct', detail.productType)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="贷款金额(万)" prop="loanAmount" :rules="{message:'请输入 预期贷款额'}">
|
<el-form-item label="贷款金额(万)" prop="loanAmount">
|
||||||
<ai-input v-model.number="detail.loanAmount" :edit="!1" />
|
<ai-input v-model.number="detail.loanAmount" :edit="!1" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联系人" prop="contacts" :rules="{ message: '请输入 联系人' }">
|
<el-form-item label="联系人" prop="contacts" :rules="{ message: '请输入 联系人' }">
|
||||||
@@ -103,12 +104,13 @@ export default {
|
|||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="标的信息">
|
<ai-card title="标的信息">
|
||||||
<template #right v-if="isEdit">
|
<template #right v-if="isEdit">
|
||||||
<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/sell/apply/getClaimEarNumberList?contractNo=${detail.contractNo}`">
|
:action="`/api/sell/apply/getClaimEarNumberList?contractNo=${detail.contractNo}`">
|
||||||
<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="isEdit">
|
<ai-card title="解押材料" v-if="isEdit">
|
||||||
|
|||||||
Reference in New Issue
Block a user