|
|
@@ -460,7 +460,7 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 车辆报价新页面 -->
|
|
|
- <detailsDialog ref="detailsDialog" :orderInfo="orderInfo"></detailsDialog>
|
|
|
+ <detailsDialog ref="detailsDialog" :orderInfo.sync="orderInfo"></detailsDialog>
|
|
|
<!-- 订单轨迹 -->
|
|
|
<el-dialog :visible.sync="ddgjdialogVisible" width="430px">
|
|
|
<div slot="title" class="dialog-title">
|
|
|
@@ -694,6 +694,11 @@ export default {
|
|
|
quotationhistorydialogVisible: false, //报价历史显示状态
|
|
|
HistoryList: [], //报价历史数据
|
|
|
natureOfVehicleUseoptions: [],
|
|
|
+ businessVehicleUseoptions:[],
|
|
|
+ energyTypeoptions:[],
|
|
|
+ vehicleTypeoptions:[],
|
|
|
+ trafficManagementVehicleTypeoptions:[],
|
|
|
+ outOfBusinessVehicleUseoptions: [],
|
|
|
userIdPor:'',
|
|
|
statusPor:'',
|
|
|
deptIdPor:''
|
|
|
@@ -702,6 +707,11 @@ export default {
|
|
|
components: { quotationDialog, detailsDialog, quotationDialogPro },
|
|
|
created() {
|
|
|
this.getDicType("natureOfVehicleUse"); //车辆使用性质
|
|
|
+ this.getDicType("vehicleType"); //车辆种类
|
|
|
+ this.getDicType("trafficManagementVehicleType"); //车辆类型
|
|
|
+ this.getDicType("energyType"); //能源种类
|
|
|
+ this.getDicType("businessVehicleUse"); //(车辆用途)营业
|
|
|
+ this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
|
|
|
this.$api.letter.gainTopList().then(res => {
|
|
|
this.companyList = res.data;
|
|
|
});
|
|
|
@@ -1235,14 +1245,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- natureOfVehicleUseCap(ele) {
|
|
|
- if (this.natureOfVehicleUseoptions.find(item => item.dictValue == ele)) {
|
|
|
- return this.natureOfVehicleUseoptions.find(item => {
|
|
|
- return item.dictValue === ele;
|
|
|
- }).dictTag;
|
|
|
- } else {
|
|
|
- return "";
|
|
|
+ capTypedictTag(val,option) {
|
|
|
+ if(option.find(item => item.dictValue == val)){
|
|
|
+ return option.find(item => item.dictValue == val).dictTag;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ return '-'
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
//应用详情
|
|
|
OrderDetails(dy, item) {
|
|
|
@@ -1270,9 +1280,18 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.licenseNo = res.data.licenseno; //车牌号
|
|
|
this.inscompany = res.data.inscompany; //保险公司
|
|
|
- res.data.carinfo.carnature = this.natureOfVehicleUseCap(
|
|
|
- res.data.carinfo.carnature
|
|
|
- );
|
|
|
+ // res.data.carinfo.carnature = this.natureOfVehicleUseCap(
|
|
|
+ // res.data.carinfo.carnature
|
|
|
+ // );
|
|
|
+ if(res.data.carinfo.carnature && res.data.carinfo.carnature == '02' || res.data.carinfo.carnature == '非营业'){
|
|
|
+ res.data.carinfo.vehicleUse=this.capTypedictTag(res.data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
|
|
|
+ }else{
|
|
|
+ res.data.carinfo.vehicleUse=this.capTypedictTag(res.data.carinfo.vehicleUse,this.businessVehicleUseoptions)
|
|
|
+ }
|
|
|
+ res.data.carinfo.carnature = this.capTypedictTag( res.data.carinfo.carnature,this.natureOfVehicleUseoptions);
|
|
|
+ res.data.carinfo.cartype=res.data.carinfo.cartype?this.capTypedictTag(res.data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
|
|
|
+ res.data.carinfo.cimodelclass=res.data.carinfo.cimodelclass?this.capTypedictTag(res.data.carinfo.cimodelclass,this.vehicleTypeoptions):''
|
|
|
+ res.data.carinfo.energyType=res.data.carinfo.energyType?this.capTypedictTag(res.data.carinfo.energyType,this.energyTypeoptions):''
|
|
|
if (res.data.accidentInfo) {
|
|
|
res.data.accidentInfo.constructor === Object
|
|
|
? [res.data.accidentInfo]
|