|
|
@@ -1097,6 +1097,8 @@
|
|
|
@click="bjdpreview(scope.row.id)">报价单</el-button>
|
|
|
<el-button size="small" v-show="scope.row.orderstatus == '2'" type="text" style="color:rgb(240, 12, 10)"
|
|
|
@click="Payment(scope.row.id)">付款码</el-button>
|
|
|
+ <el-button size="mini" type="text" v-if="scope.row.orderstatus == '2' && ['紫金财险'].includes(scope.row.inscompany)"
|
|
|
+ @click="cancelorder(scope.row)" style="color:#f56c6c">撤单</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -1274,18 +1276,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="Enclosure" v-if="queryOrders.accidentInfo">
|
|
|
+ <div class="Enclosure" v-if="queryOrders.accidentInfo&&queryOrders.accidentInfo.length>0">
|
|
|
<div class="home flex j-s a-c back">
|
|
|
<div class="flex j-s a-c color">
|
|
|
<img src="../../../src/icon/company.png" alt class="icon-img" />
|
|
|
<span style="margin-left:10px;">驾意险</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-descriptions size="small">
|
|
|
- <el-descriptions-item label="产品">{{ queryOrders.accidentInfo.rideRiskName }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="份数">{{ queryOrders.accidentInfo.quantity }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="价格">{{ queryOrders.accidentInfo.unitPremium }}/份</el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
+ <div style="font-size:12px" >
|
|
|
+ <div class="jyxStyle" style=" font-weight: bold;color: #333;">
|
|
|
+ <span style="width:50%;margin-left:50px">产品</span>
|
|
|
+ <span style="width:20%">份数</span>
|
|
|
+ <span style="width:20%">价格</span>
|
|
|
+ </div>
|
|
|
+ <div v-for="(kindinfoitem, kindinfoindex) in queryOrders.accidentInfo" :key="kindinfoindex">
|
|
|
+ <div style="margin-top:20px" class="jyxStyle">
|
|
|
+ <span style="width:50%;margin-left:50px">{{ kindinfoitem.projectName }}</span>
|
|
|
+ <span style="width:20%">{{ kindinfoitem.quantity ?kindinfoitem.quantity:'1' }}</span>
|
|
|
+ <span style="width:20%">{{ kindinfoitem.actualPremium}}/份</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="Enclosure" v-if="queryOrders">
|
|
|
<div class="home flex j-s a-c back">
|
|
|
@@ -1580,6 +1591,10 @@
|
|
|
<span>交强:</span>
|
|
|
<span>{{ jqpremium }}</span>
|
|
|
</div>
|
|
|
+ <div v-if="jypremium">
|
|
|
+ <span>驾意:</span>
|
|
|
+ <span>{{ jypremium }}</span>
|
|
|
+ </div>
|
|
|
<div v-show="sypremium">
|
|
|
<span>商业:</span>
|
|
|
<span>{{ sypremium }}</span>
|
|
|
@@ -3113,6 +3128,7 @@ export default {
|
|
|
sumpremium: "", //保费合计
|
|
|
jqpremium: "", //交强
|
|
|
sypremium: "", //商业
|
|
|
+ jypremium:'',//驾意险
|
|
|
taxamount: "", //车船税
|
|
|
jqstartdate: "", //交强时间
|
|
|
systartdate: "", //商业时间
|
|
|
@@ -3406,6 +3422,7 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
res.data.forEach(item => {
|
|
|
+ item.accidentInfo.constructor=== Object?[res.data.accidentInfo]:res.data.accidentInfo
|
|
|
item.username = this.paramsEdit.username+'('+this.paramsEdit.userid+')'
|
|
|
})
|
|
|
this.HistoryList = res.data;
|
|
|
@@ -3770,6 +3787,7 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
res.data.forEach(item => {
|
|
|
+ item.accidentInfo.constructor=== Object?[res.data.accidentInfo]:res.data.accidentInfo
|
|
|
item.username = this.paramsEdit.username+'('+this.paramsEdit.userid+')'
|
|
|
})
|
|
|
this.HistoryList = res.data;
|
|
|
@@ -4280,6 +4298,7 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
res.data.forEach(item => {
|
|
|
+ item.accidentInfo.constructor=== Object?[res.data.accidentInfo]:res.data.accidentInfo
|
|
|
item.username = this.paramsEdit.username+'('+this.paramsEdit.userid+')'
|
|
|
})
|
|
|
this.HistoryList = res.data;
|
|
|
@@ -5134,6 +5153,17 @@ export default {
|
|
|
imageUpload() {
|
|
|
this.imageUploaddialogVisible = true;
|
|
|
},
|
|
|
+ cancelorder(item) {
|
|
|
+ this.$api.letter.zijincancelorder({ companyId: item.id }).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.QuotationHistory()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
imageEcho(quotenos) {
|
|
|
//影像查询
|
|
|
this.$api.letter.findByQuoteNo(quotenos)
|
|
|
@@ -5403,6 +5433,7 @@ export default {
|
|
|
loading.close();
|
|
|
_this.$message({
|
|
|
showClose: true,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
@@ -5958,6 +5989,7 @@ export default {
|
|
|
that.carfrontImg = image.src
|
|
|
image.onload = function(){
|
|
|
let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
|
|
|
+
|
|
|
that.carfrontImg = image.src;
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("multipartFile", aaa);
|
|
|
@@ -6485,13 +6517,14 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.getByCompanyId(params).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
- const { inscompany, sumpremium, carinfo, insuredname, jqpremium, sypremium, taxamount, jqstartdate, systartdate, applyinfo } = res.data;
|
|
|
+ const { inscompany, sumpremium, carinfo, insuredname, jqpremium, sypremium, taxamount, jqstartdate, systartdate, applyinfo,jypremium } = res.data;
|
|
|
this.inscompany = inscompany; // 保险公司
|
|
|
this.sumpremium = sumpremium; // 总价
|
|
|
this.licenseNo = carinfo.licenseNo; // 车牌号
|
|
|
this.applyName = insuredname; // 车主
|
|
|
this.jqpremium = jqpremium; // 交强
|
|
|
this.sypremium = sypremium; // 商业
|
|
|
+ this.jypremium = jypremium; // 商业
|
|
|
this.taxamount = taxamount; // 车船税
|
|
|
this.jqstartdate = jqstartdate; // 交强起保日期
|
|
|
this.systartdate = systartdate; // 商业起保日期
|
|
|
@@ -7394,6 +7427,10 @@ export default {
|
|
|
margin-top: 0
|
|
|
}
|
|
|
}
|
|
|
+.jyxStyle>span{
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
/* 清除图片上传动画bug */
|
|
|
/deep/ {
|
|
|
.el-upload-list__item {
|
|
|
@@ -7513,4 +7550,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-}</style>
|
|
|
+}
|
|
|
+
|
|
|
+</style>
|