Przeglądaj źródła

去掉银行卡编辑功能、审核订单加转续保

@dongkboy 2 lat temu
rodzic
commit
43dcbdbc7f

+ 30 - 25
src/views/Core/components/detailsDialogPro.vue

@@ -205,30 +205,35 @@
           </div>
         </OpenCloseBox>
         <OpenCloseBox id="bfys">
-          <span slot="title">保费因素</span>
-          <div slot="boby">
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score }}</el-col>
-              <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
-              <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
-              <el-col :span="6"><span>出险信息:</span>{{ orderInfo.extendInfo.accidentInfoStr }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
-              <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
-              <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
-              <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
-              <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
-              <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
-            </el-row>
-          </div>
-        </OpenCloseBox>
-
+            <span slot="title">保费因素</span>
+            <div slot="boby">
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score ? orderInfo.extendInfo.score : ''
+                }}</el-col>
+                <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
+                <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
+                <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
+                <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
+                <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
+                <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强续保:</span>{{ orderInfo.extendInfo.jqRenewal }}</el-col>
+                <el-col :span="6"><span>商业续保:</span>{{ orderInfo.extendInfo.syRenewal }}</el-col>
+                <el-col :span="6"><span>交强出险次数:</span>{{ orderInfo.extendInfo.jqClaims }}</el-col>
+                <el-col :span="6"><span>商业出险次数:</span>{{ orderInfo.extendInfo.syClaims }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
+                <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
+              </el-row>
+            </div>
+          </OpenCloseBox>
         <OpenCloseBox id="xzxx" v-if="orderInfo.kindinfo && orderInfo.kindinfo.length > 0">
           <span slot="title">险种信息</span>
           <div slot="boby">
@@ -674,7 +679,7 @@ export default {
           })
           .catch((error) => { });
         }
-      
+
     },
   }
 };

+ 578 - 527
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyintasks.vue

@@ -24,7 +24,7 @@
           <span>{{ scope.row.insCompany ? scope.row.insCompany : '--' }}</span>
         </template>
       </el-table-column>
-        <el-table-column prop="isExternal" label="外部订单" align="center">
+      <el-table-column prop="isExternal" label="外部订单" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.isExternal == '1' ? '是' : '否' }}</span>
         </template>
@@ -255,11 +255,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -271,11 +271,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -311,14 +311,14 @@ export default {
           Retained: true,
           type: 'select',
           options: [
-          {
-                label: '否',
-                value: '0'
-              },
-              {
-                label: '是',
-                value: '1'
-              },
+            {
+              label: '否',
+              value: '0'
+            },
+            {
+              label: '是',
+              value: '1'
+            },
           ]
         },
       ],
@@ -783,11 +783,11 @@ export default {
           let businessList = []
           let accidentList = []
           if (res.data.orderstatus == "3") {
-            if(res.data.isExternal==1){
+            if (res.data.isExternal == 1) {
               this.$api.letter
-              .getPolicyPrintexternalOrder(res.data.id).then(res1=>{
-                if(res1.code==200){
-                  if (res1.data.jqPolicy) {
+                .getPolicyPrintexternalOrder(res.data.id).then(res1 => {
+                  if (res1.code == 200) {
+                    if (res1.data.jqPolicy) {
                       this.oldfileList.push({
                         fileTitle: "交强电子保单",
                         filename: this.orderInfo.jqpolicyno,
@@ -800,7 +800,7 @@ export default {
                         filename: this.orderInfo.jqpolicyno,
                         fileurl: res1.data.jqSign
                       });
-                      }
+                    }
                     if (res1.data.jqSign) {
                       accidentList.push({
                         fileTitle: "商业电子保单",
@@ -816,200 +816,230 @@ export default {
                       });
                     }
                   }
-                else{
-                  this.$message.error(res1.msg)
-                }
-              })
+                  else {
+                    this.$message.error(res1.msg)
+                  }
+                })
             }
-            else{
-            switch (res.data.inscompany) {
-              case "永安财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .getPolicyPrint({
-                      companyId: res.data.id,
-                      policytype: "jq",
-                    })
-                    .then((res) => {
-                      //交强保单
-                      if (res.data) {
-                        let result = res.data.replace(/[\r\n]/g, "");
-                        let pdfBase64 = `data:application/pdf;base64,${result}`;
-                        base64ToPath(pdfBase64).then((path) => {
-                          if (path) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子保单",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: path,
-                            });
-                          }
-                        });
+            else {
+              switch (res.data.inscompany) {
+                case "永安财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .getPolicyPrint({
+                        companyId: res.data.id,
+                        policytype: "jq",
+                      })
+                      .then((res) => {
+                        //交强保单
+                        if (res.data) {
+                          let result = res.data.replace(/[\r\n]/g, "");
+                          let pdfBase64 = `data:application/pdf;base64,${result}`;
+                          base64ToPath(pdfBase64).then((path) => {
+                            if (path) {
+                              this.oldfileList.push({
+                                fileTitle: "交强电子保单",
+                                filename: this.orderInfo.jqpolicyno,
+                                fileurl: path,
+                              });
+                            }
+                          });
+                        }
+                      });
+                    this.$api.letter
+                      .getPolicyPrint2({
+                        companyId: res.data.id,
+                        policytype: "jq",
+                      })
+                      .then((res) => {
+                        //交强保单
+                        if (res.data) {
+                          let result = res.data.replace(/[\r\n]/g, "");
+                          let pdfBase64 = `data:application/pdf;base64,${result}`;
+                          base64ToPath(pdfBase64).then((path) => {
+                            if (path) {
+                              this.oldfileList.push({
+                                fileTitle: "交强电子标志",
+                                filename: this.orderInfo.jqpolicyno,
+                                fileurl: path,
+                              });
+                            }
+                          });
+                        }
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .getPolicyPrint({
+                        companyId: res.data.id,
+                        policytype: "sy",
+                      })
+                      .then((res) => {
+                        //商业保单
+                        if (res.data) {
+                          let result = res.data.replace(/[\r\n]/g, "");
+                          let pdfBase64 = `data:application/pdf;base64,${result}`;
+                          base64ToPath(pdfBase64).then((path) => {
+                            if (path) {
+                              businessList.push({
+                                fileTitle: "商业电子保单",
+                                filename: this.orderInfo.sypolicyno,
+                                fileurl: path,
+                              });
+                            }
+                          });
+                        }
+                      });
+                  }
+                  break;
+                case "华泰财险":
+                  switch (res.data.apiType) {
+                    case 1:
+                      if (this.orderInfo.jqpolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0507",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl,
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl,
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
                       }
-                    });
-                  this.$api.letter
-                    .getPolicyPrint2({
-                      companyId: res.data.id,
-                      policytype: "jq",
-                    })
-                    .then((res) => {
-                      //交强保单
-                      if (res.data) {
-                        let result = res.data.replace(/[\r\n]/g, "");
-                        let pdfBase64 = `data:application/pdf;base64,${result}`;
-                        base64ToPath(pdfBase64).then((path) => {
-                          if (path) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子标志",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: path,
-                            });
-                          }
-                        });
+                      if (this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0510",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data && res.data.syxPolicyUrl) {
+                              businessList.push({
+                                fileTitle: "商业电子保单",
+                                filename: this.orderInfo.sypolicyno,
+                                fileurl: res.data.syxPolicyUrl,
+                              });
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
                       }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .getPolicyPrint({
-                      companyId: res.data.id,
-                      policytype: "sy",
-                    })
-                    .then((res) => {
-                      //商业保单
-                      if (res.data) {
-                        let result = res.data.replace(/[\r\n]/g, "");
-                        let pdfBase64 = `data:application/pdf;base64,${result}`;
-                        base64ToPath(pdfBase64).then((path) => {
-                          if (path) {
-                            businessList.push({
-                              fileTitle: "商业电子保单",
-                              filename: this.orderInfo.sypolicyno,
-                              fileurl: path,
-                            });
-                          }
-                        });
+                      break;
+                    case 2:
+                      if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .pythongetPolicyPrint({
+                            subOrderNo: res.data.id
+                          })
+                          .then(res => {
+                            if (res.code == 200 && res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl
+                                });
+                              }
+                              if (res.data.syxPolicyUrl) {
+                                businessList.push({
+                                  fileTitle: "商业电子保单",
+                                  filename: this.orderInfo.sypolicyno,
+                                  fileurl: res.data.syxPolicyUrl
+                                });
+                              }
+                              if (
+                                res.data.jyxInfoList &&
+                                res.data.jyxInfoList.length > 0
+                              ) {
+                                res.data.jyxInfoList.forEach(val => {
+                                  accidentList.push({
+                                    fileTitle: "驾意险保单",
+                                    filename: "驾意险保单",
+                                    fileurl: val.jyx_policy_url
+                                  });
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
                       }
-                    });
-                }
-                break;
-              case "华泰财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .HuataigetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        if (res.data.jqxPolicyUrl) {
+                      break;
+                  }
+                  break;
+                case "中煤财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .ZhongmeigetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "2", //2:保单
+                      })
+                      .then((res) => {
+                        if (res.data && res.data[0]) {
                           this.oldfileList.push({
                             fileTitle: "交强电子保单",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxPolicyUrl,
+                            fileurl: res.data[0],
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.jqxFlagUrl) {
+                      });
+                    this.$api.letter
+                      .ZhongmeigetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "1", // 1:标志
+                      })
+                      .then((res) => {
+                        if (res.data && res.data[0]) {
                           this.oldfileList.push({
                             fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxFlagUrl,
+                            fileurl: res.data[0],
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .HuataigetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data && res.data.syxPolicyUrl) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data.syxPolicyUrl,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                break;
-              case "中煤财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .ZhongmeigetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data && res.data[0]) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子保单",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data[0],
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                  this.$api.letter
-                    .ZhongmeigetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "1", // 1:标志
-                    })
-                    .then((res) => {
-                      if (res.data && res.data[0]) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子标志",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data[0],
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .ZhongmeigetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data && res.data[0]) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data[0],
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map((ele) => {
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
                     this.$api.letter
                       .ZhongmeigetPolicyPrint({
-                        ridePolicyNo: ele.ridePolicyNo,
                         companyId: res.data.id,
-                        riskCode: "0513",
+                        riskCode: "0510",
                         type: "2", //2:保单
                       })
                       .then((res) => {
-                        if (res.code == 200 && res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
+                        if (res.data && res.data[0]) {
+                          businessList.push({
+                            fileTitle: "商业电子保单",
                             filename: this.orderInfo.sypolicyno,
                             fileurl: res.data[0],
                           });
@@ -1017,419 +1047,440 @@ export default {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              case "永诚财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .yongchenggetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.code == 200 && res.data) {
-                        if (res.data.jqUrl) {
-                          this.oldfileList.push({
-                            fileTitle: "交强电子保单",
-                            filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqUrl,
-                          });
-                        }
-                        if (res.data.jqFlagUrl) {
-                          this.oldfileList.push({
-                            fileTitle: "交强电子标志",
-                            filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqFlagUrl,
-                          });
-                        }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .yongchenggetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data && res.data.syUrl) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data.syUrl,
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map((ele) => {
+                      this.$api.letter
+                        .ZhongmeigetPolicyPrint({
+                          ridePolicyNo: ele.ridePolicyNo,
+                          companyId: res.data.id,
+                          riskCode: "0513",
+                          type: "2", //2:保单
+                        })
+                        .then((res) => {
+                          if (res.code == 200 && res.data) {
+                            accidentList.push({
+                              fileTitle: "驾意险保单",
+                              filename: this.orderInfo.sypolicyno,
+                              fileurl: res.data[0],
+                            });
+                          } else {
+                            this.$message.error(res.msg);
+                          }
                         });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
                     });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map((ele) => {
+                  }
+                  break;
+                case "永诚财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
                       .yongchenggetPolicyPrint({
                         companyId: res.data.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2", //2:保单
                       })
                       .then((res) => {
                         if (res.code == 200 && res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
-                            fileurl: res.data.jyUrl,
-                          });
+                          if (res.data.jqUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子保单",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqUrl,
+                            });
+                          }
+                          if (res.data.jqFlagUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子标志",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqFlagUrl,
+                            });
+                          }
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              case "国任财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .guoRengetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子保单",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                  this.$api.letter
-                    .guoRengetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "1", //1:标志
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子标志",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .guoRengetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map((ele) => {
+                  }
+                  if (this.orderInfo.sypolicyno) {
                     this.$api.letter
-                      .guoRengetPolicyPrint({
+                      .yongchenggetPolicyPrint({
                         companyId: res.data.id,
-                        policyNumber: ele.policyNumber,
-
-                        riskCode: "0513",
+                        riskCode: "0510",
                         type: "2", //2:保单
                       })
                       .then((res) => {
-                        if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
-                            fileurl: res.data,
+                        if (res.data && res.data.syUrl) {
+                          businessList.push({
+                            fileTitle: "商业电子保单",
+                            filename: this.orderInfo.sypolicyno,
+                            fileurl: res.data.syUrl,
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-
-              case "紫金财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .zijingetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子保单",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                  this.$api.letter
-                    .zijingetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "1", //1:标志
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子标志",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .zijingetPolicyPrint({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data,
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map((ele) => {
+                      this.$api.letter
+                        .yongchenggetPolicyPrint({
+                          companyId: res.data.id,
+                          policyNumber: ele.policyNumber,
+                          riskCode: "0513",
+                          type: "2", //2:保单
+                        })
+                        .then((res) => {
+                          if (res.code == 200 && res.data) {
+                            accidentList.push({
+                              fileTitle: "驾意险保单",
+                              filename: ele.policyNumber,
+                              fileurl: res.data.jyUrl,
+                            });
+                          } else {
+                            this.$message.error(res.msg);
+                          }
                         });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
                     });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map((ele) => {
+                  }
+                  break;
+                case "国任财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
-                      .zijingetPolicyPrint({
+                      .guoRengetPolicyPrint({
                         companyId: res.data.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2", //2:保单
                       })
                       .then((res) => {
                         if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
                             fileurl: res.data,
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              case "渤海财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .getPolicyPrintboHai({
-                      companyId: res.data.id,
-                    })
-                    .then((res) => {
-                      if (res.code == 200 && res.data) {
-                        if (res.data.jqxPolicyUrl) {
-                          this.oldfileList.push({
-                            fileTitle: "交强电子保单",
-                            filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxPolicyUrl,
-                          });
-                        }
-                        if (res.data.jqxFlagUrl) {
+                    this.$api.letter
+                      .guoRengetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "1", //1:标志
+                      })
+                      .then((res) => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxFlagUrl,
+                            fileurl: res.data,
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.syxPolicyUrl) {
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .guoRengetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0510",
+                        type: "2", //2:保单
+                      })
+                      .then((res) => {
+                        if (res.data) {
                           businessList.push({
                             fileTitle: "商业电子保单",
                             filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl,
+                            fileurl: res.data,
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (
-                          res.data.jyxInfoList &&
-                          res.data.jyxInfoList.length > 0
-                        ) {
-                          res.data.jyxInfoList.forEach((val) => {
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map((ele) => {
+                      this.$api.letter
+                        .guoRengetPolicyPrint({
+                          companyId: res.data.id,
+                          policyNumber: ele.policyNumber,
+
+                          riskCode: "0513",
+                          type: "2", //2:保单
+                        })
+                        .then((res) => {
+                          if (res.data) {
                             accidentList.push({
                               fileTitle: "驾意险保单",
-                              filename: "驾意险保单",
-                              fileurl: val.jyx_policy_url,
+                              filename: ele.policyNumber,
+                              fileurl: res.data,
                             });
-                          });
-                        }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
+                          } else {
+                            this.$message.error(res.msg);
+                          }
+                        });
                     });
-                }
-                break;
-              case "恒邦财险":
-              case "安盛天平":
-              case "中国人寿":
-              case "太平财险":
-              case "华农财险":
-              case "众安财险":
-                if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .pythongetPolicyPrint({
-                      subOrderNo: res.data.id,
-                    })
-                    .then((res) => {
-                      if (res.code == 200 && res.data) {
-                        if (res.data.jqxPolicyUrl) {
+                  }
+                  break;
+
+                case "紫金财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "2", //2:保单
+                      })
+                      .then((res) => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子保单",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxPolicyUrl,
+                            fileurl: res.data,
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.jqxFlagUrl) {
+                      });
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "1", //1:标志
+                      })
+                      .then((res) => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxFlagUrl,
+                            fileurl: res.data,
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.syxPolicyUrl) {
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: res.data.id,
+                        riskCode: "0510",
+                        type: "2", //2:保单
+                      })
+                      .then((res) => {
+                        if (res.data) {
                           businessList.push({
                             fileTitle: "商业电子保单",
                             filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl,
+                            fileurl: res.data,
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (
-                          res.data.jyxInfoList &&
-                          res.data.jyxInfoList.length > 0
-                        ) {
-                          res.data.jyxInfoList.forEach((val) => {
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map((ele) => {
+                      this.$api.letter
+                        .zijingetPolicyPrint({
+                          companyId: res.data.id,
+                          policyNumber: ele.policyNumber,
+                          riskCode: "0513",
+                          type: "2", //2:保单
+                        })
+                        .then((res) => {
+                          if (res.data) {
                             accidentList.push({
                               fileTitle: "驾意险保单",
-                              filename: "驾意险保单",
-                              fileurl: val.jyx_policy_url,
+                              filename: ele.policyNumber,
+                              fileurl: res.data,
                             });
-                          });
-                        }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                break;
-              case "大家财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .obtainWarranty({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子保单",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                  this.$api.letter
-                    .obtainWarranty({
-                      companyId: res.data.id,
-                      riskCode: "0507",
-                      type: "1", //1:标志
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        this.oldfileList.push({
-                          fileTitle: "交强电子标志",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data,
-                        });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .obtainWarranty({
-                      companyId: res.data.id,
-                      riskCode: "0510",
-                      type: "2", //2:保单
-                    })
-                    .then((res) => {
-                      if (res.data) {
-                        businessList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: res.data,
+                          } else {
+                            this.$message.error(res.msg);
+                          }
                         });
-                      }
                     });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map((ele) => {
+                  }
+                  break;
+                case "渤海财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
-                      .zijingetPolicyPrint({
+                      .getPolicyPrintboHai({
+                        companyId: res.data.id,
+                      })
+                      .then((res) => {
+                        if (res.code == 200 && res.data) {
+                          if (res.data.jqxPolicyUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子保单",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqxPolicyUrl,
+                            });
+                          }
+                          if (res.data.jqxFlagUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子标志",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqxFlagUrl,
+                            });
+                          }
+                          if (res.data.syxPolicyUrl) {
+                            businessList.push({
+                              fileTitle: "商业电子保单",
+                              filename: this.orderInfo.sypolicyno,
+                              fileurl: res.data.syxPolicyUrl,
+                            });
+                          }
+                          if (
+                            res.data.jyxInfoList &&
+                            res.data.jyxInfoList.length > 0
+                          ) {
+                            res.data.jyxInfoList.forEach((val) => {
+                              accidentList.push({
+                                fileTitle: "驾意险保单",
+                                filename: "驾意险保单",
+                                fileurl: val.jyx_policy_url,
+                              });
+                            });
+                          }
+                        } else {
+                          this.$message.error(res.msg);
+                        }
+                      });
+                  }
+                  break;
+                case "恒邦财险":
+                case "安盛天平":
+                case "中国人寿":
+                case "太平财险":
+                case "华农财险":
+                case "众安财险":
+                  if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .pythongetPolicyPrint({
+                        subOrderNo: res.data.id,
+                      })
+                      .then((res) => {
+                        if (res.code == 200 && res.data) {
+                          if (res.data.jqxPolicyUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子保单",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqxPolicyUrl,
+                            });
+                          }
+                          if (res.data.jqxFlagUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子标志",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: res.data.jqxFlagUrl,
+                            });
+                          }
+                          if (res.data.syxPolicyUrl) {
+                            businessList.push({
+                              fileTitle: "商业电子保单",
+                              filename: this.orderInfo.sypolicyno,
+                              fileurl: res.data.syxPolicyUrl,
+                            });
+                          }
+                          if (
+                            res.data.jyxInfoList &&
+                            res.data.jyxInfoList.length > 0
+                          ) {
+                            res.data.jyxInfoList.forEach((val) => {
+                              accidentList.push({
+                                fileTitle: "驾意险保单",
+                                filename: "驾意险保单",
+                                fileurl: val.jyx_policy_url,
+                              });
+                            });
+                          }
+                        } else {
+                          this.$message.error(res.msg);
+                        }
+                      });
+                  }
+                  break;
+                case "大家财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .obtainWarranty({
                         companyId: res.data.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2", //2:保单
                       })
                       .then((res) => {
                         if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
                             fileurl: res.data,
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              default:
+                    this.$api.letter
+                      .obtainWarranty({
+                        companyId: res.data.id,
+                        riskCode: "0507",
+                        type: "1", //1:标志
+                      })
+                      .then((res) => {
+                        if (res.data) {
+                          this.oldfileList.push({
+                            fileTitle: "交强电子标志",
+                            filename: this.orderInfo.jqpolicyno,
+                            fileurl: res.data,
+                          });
+                        } else {
+                          this.$message.error(res.msg);
+                        }
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .obtainWarranty({
+                        companyId: res.data.id,
+                        riskCode: "0510",
+                        type: "2", //2:保单
+                      })
+                      .then((res) => {
+                        if (res.data) {
+                          businessList.push({
+                            fileTitle: "商业电子保单",
+                            filename: this.orderInfo.sypolicyno,
+                            fileurl: res.data,
+                          });
+                        }
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map((ele) => {
+                      this.$api.letter
+                        .zijingetPolicyPrint({
+                          companyId: res.data.id,
+                          policyNumber: ele.policyNumber,
+                          riskCode: "0513",
+                          type: "2", //2:保单
+                        })
+                        .then((res) => {
+                          if (res.data) {
+                            accidentList.push({
+                              fileTitle: "驾意险保单",
+                              filename: ele.policyNumber,
+                              fileurl: res.data,
+                            });
+                          } else {
+                            this.$message.error(res.msg);
+                          }
+                        });
+                    });
+                  }
+                  break;
+                default:
+              }
             }
-          }
             let obj = {
               oldfileList: this.oldfileList,
               businessList,

+ 140 - 88
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -2,7 +2,7 @@
   <div class="page">
     <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
       @areaSelectChange="areaSelectChange"></retrievalForm>
-    <el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row 
+    <el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row
       @expand-change="handleRowChange" ref="expandTable" :row-class-name="tableRowClassName"
       :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
       <el-table-column prop="subOrderId" label="订单号" align="center"></el-table-column>
@@ -50,17 +50,18 @@
           <el-tag v-if="scope.row.auditStatus == '2'" type="danger" size="small">审核驳回</el-tag>
         </template>
       </el-table-column>
-      <el-table-column prop="createtime" label="录单日期" align="center" ></el-table-column>
-      <el-table-column prop="signingTime" label="签单时间" align="center" ></el-table-column>
-      <el-table-column prop="payDate" label="支付时间" align="center" ></el-table-column>
-      <el-table-column label="操作" align="center" min-width="170" >
+      <el-table-column prop="createtime" label="录单日期" align="center"></el-table-column>
+      <el-table-column prop="signingTime" label="签单时间" align="center"></el-table-column>
+      <el-table-column prop="payDate" label="支付时间" align="center"></el-table-column>
+      <el-table-column label="操作" align="center" min-width="170">
         <template slot-scope="scope">
           <kt-button label="审核" type="text" perms="carInsurance:expenseVerification:pendingReview:review"
             @click="OrderDetails(scope.row)" />
           <!-- <kt-button label="轨迹" type="text" perms="carInsurance:expenseVerification:pendingReview:trajectory"
             @click="trajectory(scope.row)" /> -->
           <kt-button label="轨迹" type="text" @click="trajectory(scope.row)" />
-          <kt-button :label="scope.row.problemOrder=='0'?'疑问订单':'取消疑问订单'" type="text" @click="doubtfulOrders(scope.row)" />
+          <kt-button :label="scope.row.problemOrder == '0' ? '疑问订单' : '取消疑问订单'" type="text"
+            @click="doubtfulOrders(scope.row)" />
         </template>
       </el-table-column>
     </el-table>
@@ -71,8 +72,8 @@
         layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
     </div>
     <!-- 车辆报价新页面 -->
-    <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :feeOrderNewVoList="feeOrderNewVoList" :isrejection="isrejection"
-      @updatedCost="updatedCost" @adusitFUn="adusitFUn" @rejectionFUn="rejectionFUn">
+    <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :feeOrderNewVoList="feeOrderNewVoList"
+      :isrejection="isrejection" @updatedCost="updatedCost" @adusitFUn="adusitFUn" @rejectionFUn="rejectionFUn">
     </detailsDialog>
     <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
       <div slot="title" class="dialog-title">
@@ -106,7 +107,7 @@ export default {
   },
   data() {
     return {
-      isrejection:false,
+      isrejection: false,
       ddgjdialogVisible: false,
       trajectoryTable: [],
       feeOrderNewVoList: {},
@@ -251,11 +252,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -267,11 +268,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -400,13 +401,13 @@ export default {
       });
     },
     doubtfulOrders(row) {
-      this.$api.task.markProblemOrder({subOrder:row.orderno,problemOrder:row.problemOrder=='0'?'1':'0'}).then((res) => {
-        if (res.code == 200 ) {
+      this.$api.task.markProblemOrder({ subOrder: row.orderno, problemOrder: row.problemOrder == '0' ? '1' : '0' }).then((res) => {
+        if (res.code == 200) {
           this.$message({
-            message: res.msg ||'操作成功',
+            message: res.msg || '操作成功',
             type: 'success'
           });
-      this.findPage();
+          this.findPage();
         }
         else {
           this.$message.error(res.msg)
@@ -522,7 +523,7 @@ export default {
       this.adjustFeeFlag = false;
     },
     // 审核驳回
-    rejectionFUn(){
+    rejectionFUn() {
       this.$prompt('输入驳回原因', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -534,9 +535,9 @@ export default {
           orderNo: this.orderInfo.orderno,
           jqCostsProportionStr: this.adjustFeeDescInfo.jqAllFeeRate,
           syCostsProportionStr: this.adjustFeeDescInfo.syAllFeeRate,
-          auditStatus:'2',
+          auditStatus: '2',
           updateFlag: this.adjustFeeFlag ? "1" : "0",
-          rejectinfo:value
+          rejectinfo: value
         }
         this.$api.task
           .auditFee(subParam)
@@ -547,7 +548,7 @@ export default {
                 message: '操作成功' || res.msg,
                 type: 'success'
               });
-            this.$refs.detailsDialog.setBackupVisible(false);
+              this.$refs.detailsDialog.setBackupVisible(false);
             }
             else {
               this.$message.error(res.msg)
@@ -563,16 +564,16 @@ export default {
         type: 'warning'
       }).then(() => {
         const loading = this.$loading({
-        lock: true,
-        text: '数据加载中,请稍等',
-        spinner: 'el-icon-loading',
-        background: 'rgba(0, 0, 0, 0.7)'
-      });
+          lock: true,
+          text: '数据加载中,请稍等',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         let subParam = {
           orderNo: this.orderInfo.orderno,
           jqCostsProportionStr: this.adjustFeeDescInfo.jqAllFeeRate,
           syCostsProportionStr: this.adjustFeeDescInfo.syAllFeeRate,
-          auditStatus:'1',
+          auditStatus: '1',
           updateFlag: this.adjustFeeFlag ? "1" : "0",
         }
         this.$api.task.auditFee(subParam).then((res) => {
@@ -721,20 +722,20 @@ export default {
 
     },
     tableRowClassName(row) {
-        if(row.row.isExternal===1){
-            return "flagRow";
-        }
-        else{
-          return ''
-        }
+      if (row.row.isExternal === 1) {
+        return "flagRow";
+      }
+      else {
+        return ''
+      }
     },
     //应用详情
     OrderDetails(dy) {
-      if(dy.isExternal==1){
-        this.isrejection=true
+      if (dy.isExternal == 1) {
+        this.isrejection = true
       }
-      else{
-        this.isrejection=false
+      else {
+        this.isrejection = false
       }
       this.carImageList = [];
       this.ownerImageList = []; //车主影像
@@ -955,52 +956,103 @@ export default {
                   }
                   break;
                 case "华泰财险":
-                  if (this.orderInfo.jqpolicyno) {
-                    this.$api.letter
-                      .HuataigetPolicyPrint({
-                        companyId: res.data.id,
-                        riskCode: "0507",
-                        type: "2", //2:保单
-                      })
-                      .then((res) => {
-                        if (res.data) {
-                          if (res.data.jqxPolicyUrl) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子保单",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: res.data.jqxPolicyUrl,
-                            });
-                          }
-                          if (res.data.jqxFlagUrl) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子标志",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: res.data.jqxFlagUrl,
-                            });
-                          }
-                        } else {
-                          this.$message.error(res.msg);
-                        }
-                      });
-                  }
-                  if (this.orderInfo.sypolicyno) {
-                    this.$api.letter
-                      .HuataigetPolicyPrint({
-                        companyId: res.data.id,
-                        riskCode: "0510",
-                        type: "2", //2:保单
-                      })
-                      .then((res) => {
-                        if (res.data && res.data.syxPolicyUrl) {
-                          businessList.push({
-                            fileTitle: "商业电子保单",
-                            filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl,
+                  switch (res.data.apiType) {
+                    case 1:
+                      if (this.orderInfo.jqpolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0507",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl,
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl,
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
                           });
-                        } else {
-                          this.$message.error(res.msg);
-                        }
-                      });
+                      }
+                      if (this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0510",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data && res.data.syxPolicyUrl) {
+                              businessList.push({
+                                fileTitle: "商业电子保单",
+                                filename: this.orderInfo.sypolicyno,
+                                fileurl: res.data.syxPolicyUrl,
+                              });
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
+                      }
+                      break;
+                    case 2:
+                      if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .pythongetPolicyPrint({
+                            subOrderNo: res.data.id
+                          })
+                          .then(res => {
+                            if (res.code == 200 && res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl
+                                });
+                              }
+                              if (res.data.syxPolicyUrl) {
+                                businessList.push({
+                                  fileTitle: "商业电子保单",
+                                  filename: this.orderInfo.sypolicyno,
+                                  fileurl: res.data.syxPolicyUrl
+                                });
+                              }
+                              if (
+                                res.data.jyxInfoList &&
+                                res.data.jyxInfoList.length > 0
+                              ) {
+                                res.data.jyxInfoList.forEach(val => {
+                                  accidentList.push({
+                                    fileTitle: "驾意险保单",
+                                    filename: "驾意险保单",
+                                    fileurl: val.jyx_policy_url
+                                  });
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
+                      }
+                      break;
                   }
                   break;
                 case "中煤财险":

+ 1 - 18
src/views/Letter/Wallet/BankCard.vue

@@ -49,8 +49,7 @@
               </div>
             </div>
             <div>
-              <img src="../../../../static/bankupdate.png" mode="" style="width: 24px;height: 24px;"
-                @click="bankupdate(item)" v-loading.fullscreen.lock="Loading">
+
               <img src="../../../../static/bankdel.png" mode="" style="width: 24px;height: 24px;" @click="bankdel(item)"
                 v-loading.fullscreen.lock="Loading">
             </div>
@@ -351,22 +350,6 @@ export default {
                 });
               }
             });
-          } else {
-            this.$api.dept.bankupdate(this.bankAddform).then((res) => {
-              if (res.code == '200') {
-                this.bankAddVisible = false;
-                this.banklist();
-                this.$message({
-                  type: 'success',
-                  message: "修改成功",
-                });
-              } else {
-                this.$message({
-                  type: 'error',
-                  message: res.msg,
-                });
-              }
-            });
           }
         }
       });