|
|
@ -115,7 +115,7 @@ |
|
|
|
<div><span>车辆列表</span></div> |
|
|
|
<div><el-button size="mini" type="primary" icon="el-icon-plus" @click="selectVinNo" class="btntopblueline">选择</el-button></div> |
|
|
|
</div> |
|
|
|
<el-table :key="vinKey" :data="temp.vins" :index="index" border style="width: 100%"> |
|
|
|
<el-table :key="vinKey" :data="temp.scmVehicleGressionVehs" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -125,7 +125,12 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="车架号" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row }}</span> |
|
|
|
<span>{{ scope.row.vehVin }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="买断状态" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.settlementStatusValue }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -223,9 +228,8 @@ export default { |
|
|
|
proCardStateKey: '', |
|
|
|
temporaryCard: '', |
|
|
|
policyImage: [], |
|
|
|
vins: [] |
|
|
|
scmVehicleGressionVehs: [] |
|
|
|
}, // 添加和修改 |
|
|
|
dialogFormVisible: false, // 添加修改对话框状态 |
|
|
|
dialogFormShowVisible: false, // 查看对话框默认关闭状态 |
|
|
|
dialogStatus: '', // 对话框状态 |
|
|
|
// 现车车架号列表 |
|
|
@ -368,7 +372,13 @@ export default { |
|
|
|
// 查询 |
|
|
|
handlevinNo() { |
|
|
|
this.vinNoList.current = 1 |
|
|
|
this.vinNoList.params.vins = this.temp.vins |
|
|
|
const aa = [] |
|
|
|
if (this.temp.scmVehicleGressionVehs.length > 0) { |
|
|
|
this.temp.scmVehicleGressionVehs.forEach((e) => { |
|
|
|
aa.push(e.vehVin) |
|
|
|
}) |
|
|
|
} |
|
|
|
this.vinNoList.params.vins = aa |
|
|
|
this.getvinNoList() |
|
|
|
}, |
|
|
|
// 请求车架号列表接口 |
|
|
@ -387,7 +397,11 @@ export default { |
|
|
|
handleSelectionvinNo(row) { |
|
|
|
const aa = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push(element.vin) |
|
|
|
aa.push({ |
|
|
|
vehVin: element.vin, |
|
|
|
settlementStatus: element.settlementStatus, |
|
|
|
settlementStatusValue: element.settlementStatusValue |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.vinNoChoice = aa |
|
|
|
}, |
|
|
@ -400,7 +414,7 @@ export default { |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.temp.vins = this.vinNoChoice |
|
|
|
this.temp.scmVehicleGressionVehs = this.vinNoChoice |
|
|
|
this.vinNoVisible = false |
|
|
|
} |
|
|
|
}, |
|
|
@ -411,7 +425,7 @@ export default { |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
dataDelete(index) { |
|
|
|
this.temp.vins.splice(index, 1) |
|
|
|
this.temp.scmVehicleGressionVehs.splice(index, 1) |
|
|
|
}, |
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 返回 |
|
|
@ -440,7 +454,7 @@ export default { |
|
|
|
proCardStateKey: '', |
|
|
|
temporaryCard: '', |
|
|
|
policyImage: [], |
|
|
|
vins: [] |
|
|
|
scmVehicleGressionVehs: [] |
|
|
|
} |
|
|
|
this.vinNo_list = [] |
|
|
|
this.$emit('doback') |
|
|
@ -468,8 +482,7 @@ export default { |
|
|
|
// 只需添加和修改 |
|
|
|
saveCarTransferInfo(this.temp).then((response) => { |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
this.dialogFormVisible = false |
|
|
|
if (response.success) { |
|
|
|
this.handleReturn('true') |
|
|
|
} |
|
|
|
}) |
|
|
|