|
@@ -127,6 +127,7 @@ import retrievalForm from "@/components/Form/retrievalForm.vue";
|
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
|
import KtButton from "@/views/Core/KtButton";//按钮权限组件
|
|
import KtButton from "@/views/Core/KtButton";//按钮权限组件
|
|
|
import detailsDialog from "@/views/Core/components/detailsDialogPro.vue";
|
|
import detailsDialog from "@/views/Core/components/detailsDialogPro.vue";
|
|
|
|
|
+import {validateFeeDetail} from "../../../../http/moudules/task";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -812,7 +813,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
//应用详情
|
|
//应用详情
|
|
|
OrderDetails(dy) {
|
|
OrderDetails(dy) {
|
|
|
- console.log(dy)
|
|
|
|
|
if (dy.isExternal == 1) {
|
|
if (dy.isExternal == 1) {
|
|
|
this.isrejection = true
|
|
this.isrejection = true
|
|
|
}
|
|
}
|
|
@@ -828,111 +828,115 @@ export default {
|
|
|
orderNo: dy.orderno,
|
|
orderNo: dy.orderno,
|
|
|
}
|
|
}
|
|
|
this.insOrderNo = dy.orderno
|
|
this.insOrderNo = dy.orderno
|
|
|
- this.$api.task.feeDetail(params).then((res) => {
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- res.data.kindinfo.map((ele, index) => {
|
|
|
|
|
- switch (ele.kindCode) {
|
|
|
|
|
- case "A":
|
|
|
|
|
- ele.amount = "投保";
|
|
|
|
|
- break;
|
|
|
|
|
- case "D4":
|
|
|
|
|
- case "SY_FJ_YBW2":
|
|
|
|
|
- ele.unitAmount = this.toChinesNum(ele.unitAmount);
|
|
|
|
|
- break;
|
|
|
|
|
- case "MJ1":
|
|
|
|
|
- case "MJ2":
|
|
|
|
|
- case "MJ3":
|
|
|
|
|
- case "MJ4":
|
|
|
|
|
- ele.deductibleRate = ele.deductibleRate + "%";
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- ele.amount = this.toChinesNum(ele.amount);
|
|
|
|
|
- }
|
|
|
|
|
- return ele;
|
|
|
|
|
- });
|
|
|
|
|
- // 获取影像
|
|
|
|
|
- this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
|
|
|
|
|
- Object.keys(resImage.data).forEach((keys) => {
|
|
|
|
|
- if (resImage.data[keys]) {
|
|
|
|
|
- resImage.data[keys].url = resImage.data[keys].url
|
|
|
|
|
- ? process.env.BASE_URL + resImage.data[keys].url
|
|
|
|
|
- : null;
|
|
|
|
|
- switch (keys) {
|
|
|
|
|
- case "C01":
|
|
|
|
|
- case "D01":
|
|
|
|
|
- resImage.data[keys].url
|
|
|
|
|
- ? this.carImageList.push(resImage.data[keys].url)
|
|
|
|
|
- : "";
|
|
|
|
|
- break;
|
|
|
|
|
- case "C02":
|
|
|
|
|
- case "D02":
|
|
|
|
|
- resImage.data[keys].url
|
|
|
|
|
- ? this.ownerImageList.push(resImage.data[keys].url)
|
|
|
|
|
- : "";
|
|
|
|
|
- break;
|
|
|
|
|
- case "C03":
|
|
|
|
|
- case "D03":
|
|
|
|
|
- resImage.data[keys].url
|
|
|
|
|
- ? this.policyImageList.push(resImage.data[keys].url)
|
|
|
|
|
- : "";
|
|
|
|
|
|
|
+ this.$api.task.validateFeeDetail({
|
|
|
|
|
+ id: dy.id
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
|
+ this.$api.task.feeDetail(params).then((res) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ res.data.kindinfo.map((ele, index) => {
|
|
|
|
|
+ switch (ele.kindCode) {
|
|
|
|
|
+ case "A":
|
|
|
|
|
+ ele.amount = "投保";
|
|
|
break;
|
|
break;
|
|
|
- case "C04":
|
|
|
|
|
- case "D04":
|
|
|
|
|
- resImage.data[keys].url
|
|
|
|
|
- ? this.insuredImageList.push(resImage.data[keys].url)
|
|
|
|
|
- : "";
|
|
|
|
|
|
|
+ case "D4":
|
|
|
|
|
+ case "SY_FJ_YBW2":
|
|
|
|
|
+ ele.unitAmount = this.toChinesNum(ele.unitAmount);
|
|
|
break;
|
|
break;
|
|
|
- case "XC00":
|
|
|
|
|
- case "GC00":
|
|
|
|
|
- case "GX00":
|
|
|
|
|
- resImage.data[keys].url
|
|
|
|
|
- ? this.carCheckImageList.push(resImage.data[keys].url)
|
|
|
|
|
- : "";
|
|
|
|
|
|
|
+ case "MJ1":
|
|
|
|
|
+ case "MJ2":
|
|
|
|
|
+ case "MJ3":
|
|
|
|
|
+ case "MJ4":
|
|
|
|
|
+ ele.deductibleRate = ele.deductibleRate + "%";
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
- break;
|
|
|
|
|
|
|
+ ele.amount = this.toChinesNum(ele.amount);
|
|
|
|
|
+ }
|
|
|
|
|
+ return ele;
|
|
|
|
|
+ });
|
|
|
|
|
+ // 获取影像
|
|
|
|
|
+ this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
|
|
|
|
|
+ Object.keys(resImage.data).forEach((keys) => {
|
|
|
|
|
+ if (resImage.data[keys]) {
|
|
|
|
|
+ resImage.data[keys].url = resImage.data[keys].url
|
|
|
|
|
+ ? process.env.BASE_URL + resImage.data[keys].url
|
|
|
|
|
+ : null;
|
|
|
|
|
+ switch (keys) {
|
|
|
|
|
+ case "C01":
|
|
|
|
|
+ case "D01":
|
|
|
|
|
+ resImage.data[keys].url
|
|
|
|
|
+ ? this.carImageList.push(resImage.data[keys].url)
|
|
|
|
|
+ : "";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "C02":
|
|
|
|
|
+ case "D02":
|
|
|
|
|
+ resImage.data[keys].url
|
|
|
|
|
+ ? this.ownerImageList.push(resImage.data[keys].url)
|
|
|
|
|
+ : "";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "C03":
|
|
|
|
|
+ case "D03":
|
|
|
|
|
+ resImage.data[keys].url
|
|
|
|
|
+ ? this.policyImageList.push(resImage.data[keys].url)
|
|
|
|
|
+ : "";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "C04":
|
|
|
|
|
+ case "D04":
|
|
|
|
|
+ resImage.data[keys].url
|
|
|
|
|
+ ? this.insuredImageList.push(resImage.data[keys].url)
|
|
|
|
|
+ : "";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "XC00":
|
|
|
|
|
+ case "GC00":
|
|
|
|
|
+ case "GX00":
|
|
|
|
|
+ resImage.data[keys].url
|
|
|
|
|
+ ? this.carCheckImageList.push(resImage.data[keys].url)
|
|
|
|
|
+ : "";
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ let obj = {
|
|
|
|
|
+ carImageList: this.carImageList,
|
|
|
|
|
+ ownerImageList: this.ownerImageList,
|
|
|
|
|
+ policyImageList: this.policyImageList,
|
|
|
|
|
+ insuredImageList: this.insuredImageList,
|
|
|
|
|
+ carCheckImageList: this.carCheckImageList
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.detailsDialog.imageFun(obj);
|
|
|
|
|
+ });
|
|
|
|
|
+ if (res.data.feeOrderNewVo && res.data.feeOrderNewVo.exportFee && res.data.feeOrderNewVo.entranceFee) {
|
|
|
|
|
+ let data = JSON.parse(JSON.stringify(res.data.feeOrderNewVo))
|
|
|
|
|
+ this.oldVersionHistory = data;
|
|
|
|
|
+ data.exportFee.map((val, index) => {
|
|
|
|
|
+ val.type = "出口费用"
|
|
|
|
|
+ return val;
|
|
|
|
|
+ })
|
|
|
|
|
+ data.entranceFee.map((val, index) => {
|
|
|
|
|
+ val.type = "入口费用"
|
|
|
|
|
+ return val;
|
|
|
|
|
+ })
|
|
|
|
|
+ this.feeOrderNewVoList = {
|
|
|
|
|
+ deptManagerFee: data.deptManagerFee,
|
|
|
|
|
+ list: [...data.entranceFee, ...data.exportFee],
|
|
|
|
|
+ retailFee: data.retailFee
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
- let obj = {
|
|
|
|
|
- carImageList: this.carImageList,
|
|
|
|
|
- ownerImageList: this.ownerImageList,
|
|
|
|
|
- policyImageList: this.policyImageList,
|
|
|
|
|
- insuredImageList: this.insuredImageList,
|
|
|
|
|
- carCheckImageList: this.carCheckImageList
|
|
|
|
|
- }
|
|
|
|
|
- this.$refs.detailsDialog.imageFun(obj);
|
|
|
|
|
- });
|
|
|
|
|
- if (res.data.feeOrderNewVo && res.data.feeOrderNewVo.exportFee && res.data.feeOrderNewVo.entranceFee) {
|
|
|
|
|
- let data = JSON.parse(JSON.stringify(res.data.feeOrderNewVo))
|
|
|
|
|
- this.oldVersionHistory = data;
|
|
|
|
|
- data.exportFee.map((val, index) => {
|
|
|
|
|
- val.type = "出口费用"
|
|
|
|
|
- return val;
|
|
|
|
|
- })
|
|
|
|
|
- data.entranceFee.map((val, index) => {
|
|
|
|
|
- val.type = "入口费用"
|
|
|
|
|
- return val;
|
|
|
|
|
- })
|
|
|
|
|
- this.feeOrderNewVoList = {
|
|
|
|
|
- deptManagerFee: data.deptManagerFee,
|
|
|
|
|
- list: [...data.entranceFee, ...data.exportFee],
|
|
|
|
|
- retailFee: data.retailFee
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- res.data.carinfo.carnature = this.natureOfVehicleUseCap(res.data.carinfo.carnature)
|
|
|
|
|
- res.data.carinfo.cartype = this.trafficManagementVehicleTypeCap(res.data.carinfo.cartype)
|
|
|
|
|
- res.data.carinfo.cimodelclass = this.vehicleTypeCap(res.data.carinfo.cimodelclass)
|
|
|
|
|
- res.data.carinfo.energyType = this.energyTypeCap(res.data.carinfo.energyType)
|
|
|
|
|
- res.data.carinfo.vehicleUse = this.outOfBusinessVehicleUseCap(res.data.carinfo.carnature, res.data.carinfo.vehicleUse)
|
|
|
|
|
- res.data.source = dy.managementSource;
|
|
|
|
|
- this.orderInfo = res.data;
|
|
|
|
|
- this.oldfileList = [];
|
|
|
|
|
- let businessList = []
|
|
|
|
|
- let accidentList = []
|
|
|
|
|
- if (res.data.orderstatus == "3") {
|
|
|
|
|
- /**
|
|
|
|
|
- if (res.data.isExternal == 1) {
|
|
|
|
|
|
|
+ res.data.carinfo.carnature = this.natureOfVehicleUseCap(res.data.carinfo.carnature)
|
|
|
|
|
+ res.data.carinfo.cartype = this.trafficManagementVehicleTypeCap(res.data.carinfo.cartype)
|
|
|
|
|
+ res.data.carinfo.cimodelclass = this.vehicleTypeCap(res.data.carinfo.cimodelclass)
|
|
|
|
|
+ res.data.carinfo.energyType = this.energyTypeCap(res.data.carinfo.energyType)
|
|
|
|
|
+ res.data.carinfo.vehicleUse = this.outOfBusinessVehicleUseCap(res.data.carinfo.carnature, res.data.carinfo.vehicleUse)
|
|
|
|
|
+ res.data.source = dy.managementSource;
|
|
|
|
|
+ this.orderInfo = res.data;
|
|
|
|
|
+ this.oldfileList = [];
|
|
|
|
|
+ let businessList = []
|
|
|
|
|
+ let accidentList = []
|
|
|
|
|
+ if (res.data.orderstatus == "3") {
|
|
|
|
|
+ /**
|
|
|
|
|
+ if (res.data.isExternal == 1) {
|
|
|
this.$api.letter
|
|
this.$api.letter
|
|
|
.getPolicyPrintexternalOrder(res.data.id).then(res1 => {
|
|
.getPolicyPrintexternalOrder(res.data.id).then(res1 => {
|
|
|
if (res1.code == 200) {
|
|
if (res1.code == 200) {
|
|
@@ -970,7 +974,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
|
|
+ else {
|
|
|
switch (res.data.inscompany) {
|
|
switch (res.data.inscompany) {
|
|
|
case "永安财险":
|
|
case "永安财险":
|
|
|
if (this.orderInfo.jqpolicyno) {
|
|
if (this.orderInfo.jqpolicyno) {
|
|
@@ -1631,35 +1635,40 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let obj = {
|
|
|
|
|
|
|
+ let obj = {
|
|
|
oldfileList: this.oldfileList,
|
|
oldfileList: this.oldfileList,
|
|
|
businessList,
|
|
businessList,
|
|
|
accidentList
|
|
accidentList
|
|
|
}
|
|
}
|
|
|
- this.$refs.detailsDialog.warrantyFun(obj);
|
|
|
|
|
- */
|
|
|
|
|
- this.$api.readPdf.readPdfUrlList(this.orderInfo.id).then((res) => {
|
|
|
|
|
- console.log(res.data)
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- this.$refs.detailsDialog.warrantyFun(res.data);
|
|
|
|
|
- } else{
|
|
|
|
|
- this.$message.error(res.msg);
|
|
|
|
|
|
|
+ this.$refs.detailsDialog.warrantyFun(obj);
|
|
|
|
|
+ */
|
|
|
|
|
+ this.$api.readPdf.readPdfUrlList(this.orderInfo.id).then((res) => {
|
|
|
|
|
+ console.log(res.data)
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.$refs.detailsDialog.warrantyFun(res.data);
|
|
|
|
|
+ } else{
|
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
+ this.feeDetailInfo = res.data.orderFeeResult;
|
|
|
|
|
+ this.oldFeeInfo = res.data.adjustFeeDescVo;
|
|
|
|
|
+ this.adjustFeeDescInfo = { ...this.oldFeeInfo }
|
|
|
|
|
+ // this.quotedetailsdialogVisible = true;
|
|
|
|
|
+ console.log(this.orderInfo)
|
|
|
|
|
+ this.$refs.detailsDialog.setBackupVisible(true);
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
- this.feeDetailInfo = res.data.orderFeeResult;
|
|
|
|
|
- this.oldFeeInfo = res.data.adjustFeeDescVo;
|
|
|
|
|
- this.adjustFeeDescInfo = { ...this.oldFeeInfo }
|
|
|
|
|
- // this.quotedetailsdialogVisible = true;
|
|
|
|
|
- console.log(this.orderInfo)
|
|
|
|
|
- this.$refs.detailsDialog.setBackupVisible(true);
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error("订单获取失败");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
- this.$message.error("订单获取失败");
|
|
|
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
}
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
},
|
|
},
|
|
|
// 设置每页条数
|
|
// 设置每页条数
|
|
|
applyhandleSizeChange(val) {
|
|
applyhandleSizeChange(val) {
|