|
|
@@ -3656,8 +3656,8 @@
|
|
|
份数
|
|
|
<!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
|
|
|
<el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
|
|
|
- <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus')"></i></template>
|
|
|
- <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus')"></i></template>
|
|
|
+ <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
|
|
|
+ <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
|
|
|
</el-input>
|
|
|
份
|
|
|
</el-col>
|
|
|
@@ -3676,8 +3676,8 @@
|
|
|
份数
|
|
|
<!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
|
|
|
<el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
|
|
|
- <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus')"></i></template>
|
|
|
- <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus')"></i></template>
|
|
|
+ <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
|
|
|
+ <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
|
|
|
</el-input>
|
|
|
份
|
|
|
</el-col>
|
|
|
@@ -3724,7 +3724,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" @click="typeDialogVisible=false">取 消</el-button>
|
|
|
+ <el-button size="small" @click="handleCloseType">取 消</el-button>
|
|
|
<el-button size="small" type="primary" @click="subTypeDialog">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
@@ -3795,8 +3795,8 @@
|
|
|
份数
|
|
|
<!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
|
|
|
<el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
|
|
|
- <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus')"></i></template>
|
|
|
- <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus')"></i></template>
|
|
|
+ <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
|
|
|
+ <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
|
|
|
</el-input>
|
|
|
份
|
|
|
</el-col>
|
|
|
@@ -3815,8 +3815,8 @@
|
|
|
份数
|
|
|
<!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
|
|
|
<el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
|
|
|
- <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus')"></i></template>
|
|
|
- <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus')"></i></template>
|
|
|
+ <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
|
|
|
+ <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
|
|
|
</el-input>
|
|
|
份
|
|
|
</el-col>
|
|
|
@@ -5779,7 +5779,8 @@ export default {
|
|
|
carInfo: this.carInfo,
|
|
|
ownerInfo: this.ownerInfo,
|
|
|
applyInfo: this.policyHolderInfo,
|
|
|
- insureInfo: this.insuredPersonInfo
|
|
|
+ insureInfo: this.insuredPersonInfo,
|
|
|
+ userId:this.isLetter==2? this.userId:"",
|
|
|
}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
res.data.map((ele) => {
|
|
|
@@ -5986,13 +5987,13 @@ export default {
|
|
|
this.handleCloseAddYiwai()
|
|
|
},
|
|
|
// 驾意输入框按钮
|
|
|
- numberChange(listIndex, index, type) {
|
|
|
+ numberChange(listIndex, index, type,minquantity) {
|
|
|
if (type == 'plus') {
|
|
|
if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity < 10) {
|
|
|
this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity += 1
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity > 1) {
|
|
|
+ if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity > minquantity) {
|
|
|
this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity -= 1
|
|
|
}
|
|
|
}
|
|
|
@@ -6009,6 +6010,7 @@ export default {
|
|
|
},
|
|
|
// 选中驾意
|
|
|
handleChangeSelect(index) {
|
|
|
+ console.log(index)
|
|
|
if (this.totalCompanyList[this.typeDialogIndex].cnName == 'zijin') {
|
|
|
this.checkList[index].tableData = []
|
|
|
this.checkList[index].detail.forEach((val) => {
|
|
|
@@ -6027,6 +6029,7 @@ export default {
|
|
|
// })
|
|
|
} else {
|
|
|
this.checkList[index].detail.forEach((val) => {
|
|
|
+ val.quantity=val.minQuantity;
|
|
|
if (val.alias == this.checkList[index].select) {
|
|
|
this.checkList[index].tableData = val
|
|
|
}
|
|
|
@@ -7080,15 +7083,16 @@ export default {
|
|
|
},
|
|
|
// 回显
|
|
|
async obtainProtocol(data) {
|
|
|
+ console.log(data)
|
|
|
+ console.log(this.isLetter)
|
|
|
let res = {};
|
|
|
if (this.isLetter == "1") {
|
|
|
this.getCompanyList(data)
|
|
|
// res = await this.$api.letter.getAllAgreement();
|
|
|
}
|
|
|
if (this.isLetter == "2") {
|
|
|
- res = await this.$api.letter.getAllAgreementByUserId({
|
|
|
- userId: this.userId,
|
|
|
- });
|
|
|
+ this.getCompanyList(data)
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//获取保险公司列表
|