|
|
@@ -143,6 +143,7 @@
|
|
|
<el-table-column label="操作" align="center" min-width="100" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="onoffQuotationHistory(scope.row)">报价历史</el-button>
|
|
|
<!-- <el-button size="mini" type="text" v-if="['0', '5'].includes(scope.row.orderstatus)"
|
|
|
@click="CloseQoute(scope.$index, scope.row)" style="color:#f56c6c">关闭报价</el-button> -->
|
|
|
<!-- <el-button size="mini" type="text" v-if="scope.row.orderstatus == '0'"
|
|
|
@@ -787,7 +788,95 @@
|
|
|
</el-steps>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+ <!-- 报价历史 -->
|
|
|
+ <el-dialog
|
|
|
+ title="报价历史"
|
|
|
+ :visible.sync="quotationhistorydialogVisible"
|
|
|
+ width="90%"
|
|
|
+ >
|
|
|
+ <div class="Enclosure flex f-c">
|
|
|
+ <div class="home flex j-s a-c back">
|
|
|
+ <div class="flex j-s a-c color">
|
|
|
+ <img src="../../../src/icon/salesman.png" alt class="icon-img" />
|
|
|
+ <span style="margin-left:10px;">报价历史</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="padding:20px;">
|
|
|
+ <el-table
|
|
|
+ size="small"
|
|
|
+ :data="HistoryList"
|
|
|
+ height="400"
|
|
|
+ border
|
|
|
+ style="width: 100%"
|
|
|
+ v-loading="loading"
|
|
|
+ :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }"
|
|
|
+ highlight-current-row
|
|
|
+ >
|
|
|
+ <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="username" label="业务员" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.userName}}({{scope.row.userId}})</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="orderstatus" label="状态" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag :type="capType(scope.row.orderstatus )" size="small">{{scope.row.orderstatus | cap}}</el-tag>
|
|
|
+
|
|
|
+ <!-- <el-tag v-if="scope.row.orderstatus == '0'" type="success" size="small">报价中</el-tag>
|
|
|
+ <el-tag v-if="scope.row.orderstatus == '1'" type="warning" size="small">待核保</el-tag>
|
|
|
+ <el-tag v-if="scope.row.orderstatus == '2'" type="danger" size="small">已核保待缴费</el-tag>
|
|
|
+ <el-tag v-if="scope.row.orderstatus == '3'" type="danger" size="small">已承保</el-tag>
|
|
|
+ <el-tag v-if="scope.row.orderstatus == '4'" type="danger" size="small">核保退回</el-tag> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" min-width="180" fixed="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" size="small" @click="OrderDetails(quotationhistoryRow,scope.row)">查看详情</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color:rgb(240, 12, 10)"
|
|
|
+ @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="carcode(quotationhistoryRow,scope.row)"
|
|
|
+ >付款码</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>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ v-if="scope.row.orderstatus == '2'"
|
|
|
+ @click="revokeCode(scope.row.id)"
|
|
|
+ >撤销二维码</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ style="color:rgb(247, 191, 32)"
|
|
|
+ v-if="scope.row.orderstatus == '2'&& ['恒邦财险', '众安财险', '中国人寿', '安盛天平', '紫金财险','永诚财险','大家财险','华泰财险','国任财险','中煤财险',].includes(scope.row.inscompany)"
|
|
|
+ @click="querystatus(scope.row,'history')"
|
|
|
+ >状态更新</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -878,6 +967,8 @@ export default {
|
|
|
insAreaCompanyList:[],//子订单list
|
|
|
companyList:[], //保险公司
|
|
|
querystatusLoaing:false,
|
|
|
+ quotationhistorydialogVisible:false,//报价历史显示状态
|
|
|
+ HistoryList: [], //报价历史数据
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -943,6 +1034,27 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ //报价历史点击事件
|
|
|
+ onoffQuotationHistory(row){
|
|
|
+ this.quotationhistoryRow = row
|
|
|
+ this.RadioHistoryChange();
|
|
|
+ this.quotationhistorydialogVisible=true
|
|
|
+ },
|
|
|
+ //报价轨迹查询
|
|
|
+ RadioHistoryChange() {
|
|
|
+ let params = {
|
|
|
+ orderNo: this.quotationhistoryRow.orderno,
|
|
|
+ orderStatus: ''
|
|
|
+ };
|
|
|
+ this.$api.letter.queryQuoteHistory(params).then(res => {
|
|
|
+ res.data.forEach(item => {
|
|
|
+ if( item.accidentInfo){
|
|
|
+ item.accidentInfo.constructor === Object?[item.accidentInfo]:item.accidentInfo
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.HistoryList = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
capType(val){
|
|
|
if(val=='0'){
|
|
|
return 'success'
|
|
|
@@ -1027,6 +1139,7 @@ export default {
|
|
|
message: res.msg,
|
|
|
type: 'success'
|
|
|
});
|
|
|
+ this.quotationhistorydialogVisible?this.RadioHistoryChange():'';
|
|
|
this.findPage()
|
|
|
}
|
|
|
})
|
|
|
@@ -1241,6 +1354,7 @@ export default {
|
|
|
this.$api.letter[inscompany[val]]( {companyId:item.id} ).then(res => {
|
|
|
if(res.code==200){
|
|
|
this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
|
|
|
+ this.quotationhistorydialogVisible?this.RadioHistoryChange():'';
|
|
|
this.findPage()
|
|
|
this.querystatusLoaing=false
|
|
|
}
|
|
|
@@ -1255,6 +1369,7 @@ export default {
|
|
|
this.$api.letter.orderStatusyongcheng( item.id ).then(res => {
|
|
|
if(res.code==200){
|
|
|
this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
|
|
|
+ this.quotationhistorydialogVisible?this.RadioHistoryChange():'';
|
|
|
this.findPage()
|
|
|
this.querystatusLoaing=false
|
|
|
}
|
|
|
@@ -1269,6 +1384,7 @@ export default {
|
|
|
this.$api.letter.pychonverifyPayment({ subOrderNo: item.id }).then(res => {
|
|
|
if (res.code == '200') {
|
|
|
this.$message({ message: "订单支付成功,正在更改状态", type: "success" })
|
|
|
+ this.quotationhistorydialogVisible?this.RadioHistoryChange():'';
|
|
|
this.findPage()
|
|
|
this.querystatusLoaing=false
|
|
|
} else {
|