|
|
@@ -1028,8 +1028,8 @@
|
|
|
<el-col :span="2">
|
|
|
<span style="color: #d42426; font-weight: bold">
|
|
|
{{
|
|
|
- sumPremium != 0 ? "¥" + sumPremium
|
|
|
- : " "
|
|
|
+ sumPremium ? "¥" + sumPremium
|
|
|
+ : ""
|
|
|
}}
|
|
|
</span>
|
|
|
</el-col>
|
|
|
@@ -4012,6 +4012,7 @@ export default {
|
|
|
import("element-ui/packages/image/src/image-viewer"),
|
|
|
},
|
|
|
created() {
|
|
|
+ console.log(this.$route.query.data,'完整数据')
|
|
|
if (this.isLetter == "2") {
|
|
|
this.apiInterfaceName = "ordergenerateOrder";
|
|
|
}
|
|
|
@@ -4036,6 +4037,7 @@ export default {
|
|
|
|
|
|
localStorage.setItem("carInfo", JSON.stringify(this.carInfo));
|
|
|
localStorage.setItem("insureList", JSON.stringify(this.insureList));
|
|
|
+
|
|
|
//--归属信息获取--
|
|
|
if (this.isLetter == 1 || this.isLetter == 2) {
|
|
|
var userId = Cookies.get("user");
|
|
|
@@ -4059,7 +4061,8 @@ export default {
|
|
|
// this.paramsEdit = this.$route.query.data; //接收参数
|
|
|
// add by hxl 2024-12-16
|
|
|
this.findLeftTreeData(); //获取外部协议的保险保司列表
|
|
|
- let item ={
|
|
|
+
|
|
|
+ this.totalCompanyList.push({
|
|
|
agreement:[],
|
|
|
companyName: "",
|
|
|
isTaxSource: "",
|
|
|
@@ -4070,8 +4073,8 @@ export default {
|
|
|
sypremium:"",
|
|
|
jypremium:"",
|
|
|
isInquiryFlag:""
|
|
|
- }
|
|
|
- this.totalCompanyList.push(item);
|
|
|
+ });
|
|
|
+console.log(this.totalCompanyList,'保险公司1')
|
|
|
this.obtainProtocol(this.$route.query.data);
|
|
|
//初始化
|
|
|
},
|
|
|
@@ -4110,17 +4113,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
sumPremium() {
|
|
|
- let sum = new Decimal(this.policyNumberForm.jqpremium == "" ? new Decimal(0): new Decimal(this.policyNumberForm.jqpremium))
|
|
|
+ let sum = new Decimal(this.policyNumberForm.jqpremium == null ? new Decimal(0): new Decimal(this.policyNumberForm.jqpremium))
|
|
|
.plus(
|
|
|
- this.policyNumberForm.taxamount == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.taxamount)
|
|
|
+ this.policyNumberForm.taxamount == null ? new Decimal(0) : new Decimal(this.policyNumberForm.taxamount)
|
|
|
)
|
|
|
.plus(
|
|
|
- this.policyNumberForm.sypremium == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.sypremium)
|
|
|
+ this.policyNumberForm.sypremium == null ? new Decimal(0) : new Decimal(this.policyNumberForm.sypremium)
|
|
|
)
|
|
|
.plus(
|
|
|
- this.policyNumberForm.jypremium == "" ? new Decimal(0) : new Decimal(this.policyNumberForm.jypremium)
|
|
|
+ this.policyNumberForm.jypremium == null ? new Decimal(0) : new Decimal(this.policyNumberForm.jypremium)
|
|
|
)
|
|
|
.toString();
|
|
|
+ console.log(sum)
|
|
|
return sum;
|
|
|
}
|
|
|
},
|
|
|
@@ -4241,6 +4245,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if(this.costFlag =='1'){
|
|
|
+ console.log(1)
|
|
|
if((this.policyNumberForm.jqCostsProportion==null || this.policyNumberForm.jqCostsProportion =='')
|
|
|
&& (this.policyNumberForm.syCostsProportion==null || this.policyNumberForm.syCostsProportion =='' )
|
|
|
&& (this.policyNumberForm.noCostsProportion==null || this.policyNumberForm.noCostsProportion =='' )
|
|
|
@@ -4405,7 +4410,8 @@ export default {
|
|
|
this.transferDateShow = true;
|
|
|
}
|
|
|
//回显交强和商业的时间
|
|
|
- paramsEdit.risk.map((ele) => {
|
|
|
+ if(paramsEdit.risk){
|
|
|
+ paramsEdit.risk.map((ele) => {
|
|
|
if (ele.riskCode == "0507") {
|
|
|
_this.jqchecked = true;
|
|
|
this.protocolJudge("0507", true);
|
|
|
@@ -4467,6 +4473,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ }
|
|
|
// this.HistoryList = this.paramsEdit.insAreaCompanyList;
|
|
|
let params = {
|
|
|
orderNo: paramsEdit.orderno,
|
|
|
@@ -4492,6 +4499,8 @@ export default {
|
|
|
_this.imageUploadShow = true;
|
|
|
this.orderExternalStatus = paramsEdit.orderExternalStatus;
|
|
|
//回显协议列表数据 add by hxl 2024-12-16
|
|
|
+ console.log(this.isLetter3agreementId,'isLetter3agreementId')
|
|
|
+ console.log(insAreaCompanyList,'insAreaCompanyList')
|
|
|
this.isLetter3agreementId = insAreaCompanyList[0].agreementId;
|
|
|
this.companyName = insAreaCompanyList[0].inscompany;
|
|
|
if (this.totalCompanyListBak != null && this.totalCompanyListBak.length > 0) {
|
|
|
@@ -5406,7 +5415,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- if (data) {
|
|
|
+ if (data && data.insAreaCompanyEditingDtos) {
|
|
|
res.data.forEach((val, index) => {
|
|
|
data.insAreaCompanyEditingDtos.forEach((ele) => {
|
|
|
if (val.namesimple == ele.inscompany) {
|