|
|
@@ -7,11 +7,11 @@
|
|
|
</div> -->
|
|
|
<!-- @findPage="customsolutionFindPage" -->
|
|
|
<kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
|
|
|
- :showBatchDelete="false" :showBatchSettled="false" @findPage="customsolutionFindPage" :showBatchPrint="false" :data="customsolutionResult"
|
|
|
- button2Name="编辑" button2Type="text" @handleButton2="customsolutionUpdate" button3Name="删除" button3Type="text"
|
|
|
+ :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false" :data="customsolutionResult"
|
|
|
+ button2Name="编辑" button2Type="text" @findPage="customsolutionFindPage" @handleButton2="customsolutionUpdate" button3Name="删除" button3Type="text"
|
|
|
@handleButton3="customsolutionDel" :columns="customsolutionColumns">
|
|
|
</kt-common-table>
|
|
|
- <el-dialog v-dialogDrag :modal="false" :title="customsolutionTitle" :visible.sync="customsolutionVisible" width="80%" top="2vh"
|
|
|
+ <el-dialog v-dialogDrag :title="customsolutionTitle" :visible.sync="customsolutionVisible" width="80%" top="2vh"
|
|
|
@close="customsolutioncloseDialog">
|
|
|
<div class="tab-panestyle">
|
|
|
<div class="tab-panecent">
|
|
|
@@ -184,7 +184,7 @@
|
|
|
@click="customsolutionSubmit('solutionForm')">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :append-to-body="true" :modal="false" v-dialogDrag :title="insDrivingIntentionInsuranceSon.projectName"
|
|
|
+ <el-dialog :append-to-body="true" v-dialogDrag :title="insDrivingIntentionInsuranceSon.projectName"
|
|
|
:visible.sync="insDrivingIntentionInsuranceSondialogVisible" width="50%">
|
|
|
<el-table :data="insDrivingIntentionInsuranceSon.insDrivingIntentionInsuranceSon" size="mini" :header-cell-style="{
|
|
|
background: '#F7F7F9',
|
|
|
@@ -218,6 +218,10 @@ export default {
|
|
|
default: function () {
|
|
|
return 1
|
|
|
}
|
|
|
+ },
|
|
|
+ optionalIndex: {
|
|
|
+ type: Number,
|
|
|
+ default: 0
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
@@ -262,6 +266,11 @@ export default {
|
|
|
if (newVal === 1) {
|
|
|
this.initData()
|
|
|
}
|
|
|
+ },
|
|
|
+ optionalIndex (newVal) {
|
|
|
+ if (newVal) {
|
|
|
+ this.initData()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 生命周期函数
|
|
|
@@ -327,7 +336,7 @@ export default {
|
|
|
customsolutionUpdate({ row, column }) {
|
|
|
this.customsolutionType = 'edit';
|
|
|
this.customsolutionTitle = '自选方案修改';
|
|
|
- this.$api.insCompany.optionalSchemeInfo(row.companyId, row.productId, "01", 'A1', '0').then((res) => {
|
|
|
+ this.$api.insCompany.optionalSchemeInfo(row.companyId, row.productId, "02", 'A1', '0').then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
res.data.kinds.map(val => {
|
|
|
if (val.amount.length > 0) {
|
|
|
@@ -398,7 +407,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
customsolutionFindPage() {
|
|
|
- this.$api.insCompany.optionalShcemeList({ companyId: this.companyId, carnature: "01", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
+ this.$api.insCompany.optionalShcemeList({ companyId: this.companyId, carnature: "02", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
let pageList = {
|
|
|
content: res.data,
|
|
|
@@ -414,7 +423,7 @@ export default {
|
|
|
},
|
|
|
customsolutionSubmit() {
|
|
|
if (this.customsolutionType == 'add') {
|
|
|
- this.$api.insCompany.addOptionalScheme({ ...this.CustomPlanData, carnature: "01", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
+ this.$api.insCompany.addOptionalScheme({ ...this.CustomPlanData, carnature: "02", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
@@ -430,7 +439,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- this.$api.insCompany.updateOptionalScheme({ ...this.CustomPlanData, carnature: "01", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
+ this.$api.insCompany.updateOptionalScheme({ ...this.CustomPlanData, carnature: "02", vehicleType: "A1", energyType: "0" }).then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
this.$message({
|
|
|
type: 'success',
|