Pārlūkot izejas kodu

补录订单 添加 交强出口费用 商业出口费用 非车出口费用 、样式修改

yaoyao 1 gadu atpakaļ
vecāks
revīzija
c47d357dfc

+ 1 - 1
src/http/moudules/letter.js

@@ -1368,7 +1368,7 @@ export const getProductInfo = (data) => {
     })
    }
    
-  //  补传影像
+  // 获取交强出口费用  商业出口费用  非车出口费用  
   export const externalOrderFee = (data) => {
     return axios({
      url: '/api/externalOrder/externalOrderFee',

+ 6 - 6
src/views/AgreementManage/CarInsurance/AgreementProductFee.vue

@@ -974,14 +974,14 @@ export default {
       productsTypeoptions: [],
       productColumns: [
         //数据列
-        { prop: "id", label: " ID", minWidth: 160 },
-        { prop: "productName", label: " 产品名称", minWidth: 160 },
+        { prop: "id", label: " ID", minWidth: 50 },
+        { prop: "productName", label: " 产品名称", minWidth: 80 },
         { prop: "costsStartDate", label: "费用起期", minWidth: 160 },
         { prop: "costsEndDate", label: "费用止期", minWidth: 160 },
         { prop: "costsDescription", label: "费用描述", minWidth: 220 },
         { prop: "desc", label: "费用因子描述", minWidth: 520 },
-        { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
-        { prop: "isAudit", label: "审核状态", minWidth: 160, formatter: this.auditTypeFormation },
+        { prop: "priorityLevel", label: "方案优先级", minWidth: 100 },
+        { prop: "isAudit", label: "审核状态", minWidth: 120, formatter: this.auditTypeFormation },
         {
           prop: "jqCarCostsProportion",
           label: "费用比例(交强)",
@@ -990,12 +990,12 @@ export default {
         {
           prop: "jqCarOtherCostsProportion",
           label: "其他费用比例(交强)",
-          minWidth: 160,
+          minWidth: 150,
         },
         {
           prop: "jqCostsProportion",
           label: "总费用比例(交强)",
-          minWidth: 160,
+          minWidth: 150,
         },
         {
           prop: "jqExportRadioLevel1",

+ 2 - 1
src/views/Core/components/quotationDialog.vue

@@ -67,9 +67,10 @@
       </div>
       <div class="tableInfo">
         <div class="header">
-          <span class="title">投保信息</span>
+          <span class="title">保险期限</span>
           <div class="line"></div>
         </div>
+        <div style="margin-top: 6px;">投保明细</div>
         <el-descriptions :column="2" style="margin-top: 6px;">
           <el-descriptions-item v-if="queryOrders.jqstartdate && queryOrders.jqenddate" label-class-name="my-label"
             content-class-name="my-content" label="车辆交强险保险期间">{{

+ 185 - 142
src/views/Task/daikeComponents/KtLetter.vue

@@ -860,6 +860,21 @@
               </el-date-picker>
             </el-form-item>
           </el-col>
+          <el-col :span="8">
+            <el-form-item label="交强出口费用">
+              <el-input placeholder="请输入交强出口费用" v-model="policyNumberForm.JqExportFee" type="text"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="商业出口费用">
+              <el-input placeholder="请输入商业出口费用" v-model="policyNumberForm.syExportFee" type="text"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="非车出口费用">
+              <el-input placeholder="请输入非车出口费用" v-model="policyNumberForm.noExportFee" type="text"></el-input>
+            </el-form-item>
+          </el-col>
         </el-row>
       </el-form>
     </div>
@@ -5943,6 +5958,31 @@ export default {
     Payment(id, item) {
       this.carcode(id, item);
     },
+    // 获取出口费用
+    getExternalOrderFee(agreementId, riskList, kindList) {
+      let data = {
+        agreementId: agreementId,
+        risks: riskList,
+        kinds: kindList,
+        userId: this.userId,
+        jqPremium: this.policyNumberForm.jqpremium,
+        jqRadio: this.policyNumberForm.jqCostsProportion,
+        syPremium: this.policyNumberForm.sypremium,
+        syRadio: this.policyNumberForm.syCostsProportion,
+        jyPremium: this.policyNumberForm.jypremium,
+        jyRadio: this.policyNumberForm.noCostsProportion,
+      }
+      this.$api.letter.externalOrderFee(data).then((res) => {
+        if (res.code == 200) {
+          this.policyNumberForm.JqExportFee = res.data.JqExportFee
+          this.policyNumberForm.syExportFee = res.data.syExportFee
+          this.policyNumberForm.noExportFee = res.data.noExportFee
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
+      
+    },
     // 现询
     getInquiryNowList(agreementId, riskList, kindList) {
       let productId = ''
@@ -5986,6 +6026,7 @@ export default {
     //选择协议  val:协议id  row:协议列表  index:下标  item:保险公司数据集合
     agreementChange(val, row, index, item) {
       this.getInquiryNowList(val, this.riskList, this.kindList)
+      this.getExternalOrderFee(val, this.riskList, this.kindList)
       this.kindListFun();
       if (this.isLetter == "3") {
         this.isLetter3agreementId = "";
@@ -6018,69 +6059,70 @@ export default {
           })
           return
         }
-      this.$api.letter
-        .getDrivingInsuranceRule({
-          companyCode: item.id,
-          agreementId: item.agreementId,
-          seatNum:
-            item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
-              ? Number(this.carInfo.seatCount)
-              : "",
-          ruleUseNature: this.carInfo.carnature,
-          ruleSeatNum: Number(this.carInfo.seatCount),
-          risk: this.riskList,
-          kind: this.kindList,
-          ruleThirdPartyInsurance: this.insureList[1].amount,
-
-        })
-        .then((res) => {
-          if (res.code == 200) {
-            this.nonVehicle(res.data, item.cnName);
-            switch (item.namesimple) {
-              case "永诚财险":
-                this.yongchengaccidentDataList = res.data;
-                break;
-              case "国任财险":
-                this.guoRenaccidentDataList = res.data;
-                break;
-              case "渤海财险":
-                this.boHaiaccidentDataList = res.data;
-                break;
-              case "中煤财险":
-                this[item.cnName + +"InsuranceData"] = res.data;
-                break;
-              case "紫金财险":
-                let data = res.data;
-                data.map((ele) => {
-                  ele.quantity = 1;
-                  return ele;
-                });
-                this.ziJinInsuranceData = data;
-                break;
-              case "大家财险":
-                this.dajiaInsuranceData = res.data;
-                break;
-              case "泰康财险":
-                this.taikangaccidentDataList = res.data;
-                break;
-              case "诚泰财险":
-              case "中国人寿":
-              case "恒邦财险":
-              case "太平财险":
-              case "安盛天平":
-              case "华农财险":
-              case "众安财险":
-                res.data.map((ele) => {
-                  ele.quantity = 1;
-                  return ele;
-                });
-                this[item.cnName + "InsuranceData"] = res.data;
-                break;
-            }
-          } else {
-            this.$message.error(res.msg);
-          }
-        });
+      // this.$api.letter
+      //   .getDrivingInsuranceRule({
+      //     companyCode: item.id,
+      //     agreementId: item.agreementId,
+      //     seatNum:
+      //       item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
+      //         ? Number(this.carInfo.seatCount)
+      //         : "",
+      //     ruleUseNature: this.carInfo.carnature,
+      //     ruleSeatNum: Number(this.carInfo.seatCount),
+      //     risk: this.riskList,
+      //     kind: this.kindList,
+      //     ruleThirdPartyInsurance: this.insureList[1].amount,
+
+      //   })
+      //   .then((res) => {
+      //     if (res.code == 200) {
+      //       this.nonVehicle(res.data, item.cnName);
+      //       switch (item.namesimple) {
+      //         case "永诚财险":
+      //           this.yongchengaccidentDataList = res.data;
+      //           break;
+      //         case "国任财险":
+      //           this.guoRenaccidentDataList = res.data;
+      //           break;
+      //         case "渤海财险":
+      //           this.boHaiaccidentDataList = res.data;
+      //           break;
+      //         case "中煤财险":
+      //           this[item.cnName + +"InsuranceData"] = res.data;
+      //           break;
+      //         case "紫金财险":
+      //           let data = res.data;
+      //           data.map((ele) => {
+      //             ele.quantity = 1;
+      //             return ele;
+      //           });
+      //           this.ziJinInsuranceData = data;
+      //           break;
+      //         case "大家财险":
+      //           this.dajiaInsuranceData = res.data;
+      //           break;
+      //         case "泰康财险":
+      //           this.taikangaccidentDataList = res.data;
+      //           break;
+      //         case "诚泰财险":
+      //         case "中国人寿":
+      //         case "恒邦财险":
+      //         case "太平财险":
+      //         case "安盛天平":
+      //         case "华农财险":
+      //         case "众安财险":
+      //           res.data.map((ele) => {
+      //             ele.quantity = 1;
+      //             return ele;
+      //           });
+      //           this[item.cnName + "InsuranceData"] = res.data;
+      //           break;
+      //       }
+      //     } else {
+      //       this.$message.error(res.msg);
+      //     }
+      //   });
+      
       // switch (item.namesimple) {
       //   case "永诚财险":
       //     this.accidentForm.agreementId = item.agreementId;
@@ -6449,84 +6491,84 @@ export default {
         this.totalCompanyList[index].checked = e;
         this.totalCompanyList[index].underwritingDescription =
           this.totalCompanyList[index].agreement[0].underwritingDescription;
-        if (this.$route.path != "/task/external/externalOrders")
-          this.$api.letter
-            .getDrivingInsuranceRule({
-              agreementId: this.totalCompanyList[index].agreement[0].id,
-              seatNum:
-                ins == "永诚财险" || ins == "中煤财险"
-                  ? Number(this.carInfo.seatCount)
-                  : "",
-              ruleUseNature: this.carInfo.carnature,
-              ruleSeatNum: Number(this.carInfo.seatCount),
-              risk: this.riskList,
-              kind: this.kindList,
-              ruleThirdPartyInsurance: this.insureList[1].amount,
-              cimodelclass: ins == "平安财险"
-                ? this.carInfo.cimodelclass
-                : "",
-              isUseCombine: ins == "平安财险"
-                ? 'Y'
-                : "",
-              tonNumber: ins == "平安财险"
-                ? this.carInfo.limitLoad
-                : "",
-              ownAttribute: ins == "平安财险"
-                ? '03'
-                : "",
-              useAttribute: ins == "平安财险"
-                ? this.carInfo.carnature
-                : "",
-            })
-            .then((res) => {
-              if (res.code == 200) {
-                switch (ins) {
-                  case "永诚财险":
-                    this.yongchengaccidentDataList = res.data;
-                    break;
-                  case "国任财险":
-                    this.guoRenaccidentDataList = res.data;
-                    break;
-                  case "泰康财险":
-                    this.taikangaccidentDataList = res.data;
-                    break;
-                  case "渤海财险":
-                    this.boHaiaccidentDataList = res.data;
-                    break;
-                  case "中煤财险":
-                  case "平安财险":
-                    this[name + "InsuranceData"] = res.data;
-                    break;
-                  case "紫金财险":
-                    let data = res.data;
-                    data.map((ele) => {
-                      ele.quantity = 1;
-                      return ele;
-                    });
-                    this.ziJinInsuranceData = data;
-                    break;
-                  case "大家财险":
-                    this.dajiaInsuranceData = res.data;
-                    break;
-                  case "诚泰财险":
-                  case "中国人寿":
-                  case "恒邦财险":
-                  case "太平财险":
-                  case "华农财险":
-                  case "安盛天平":
-                  case "众安财险":
-                    res.data.map((ele) => {
-                      ele.quantity = 1;
-                      return ele;
-                    });
-                    this[name + "InsuranceData"] = res.data;
-                    break;
-                }
-                this.nonVehicle(res.data, name);
-              } else {
-                this.$message.error(res.msg);
-              }
-            });
+        // if (this.$route.path != "/task/external/externalOrders")
+          // this.$api.letter
+          //   .getDrivingInsuranceRule({
+          //     agreementId: this.totalCompanyList[index].agreement[0].id,
+          //     seatNum:
+          //       ins == "永诚财险" || ins == "中煤财险"
+          //         ? Number(this.carInfo.seatCount)
+          //         : "",
+          //     ruleUseNature: this.carInfo.carnature,
+          //     ruleSeatNum: Number(this.carInfo.seatCount),
+          //     risk: this.riskList,
+          //     kind: this.kindList,
+          //     ruleThirdPartyInsurance: this.insureList[1].amount,
+          //     cimodelclass: ins == "平安财险"
+          //       ? this.carInfo.cimodelclass
+          //       : "",
+          //     isUseCombine: ins == "平安财险"
+          //       ? 'Y'
+          //       : "",
+          //     tonNumber: ins == "平安财险"
+          //       ? this.carInfo.limitLoad
+          //       : "",
+          //     ownAttribute: ins == "平安财险"
+          //       ? '03'
+          //       : "",
+          //     useAttribute: ins == "平安财险"
+          //       ? this.carInfo.carnature
+          //       : "",
+          //   })
+          //   .then((res) => {
+          //     if (res.code == 200) {
+          //       switch (ins) {
+          //         case "永诚财险":
+          //           this.yongchengaccidentDataList = res.data;
+          //           break;
+          //         case "国任财险":
+          //           this.guoRenaccidentDataList = res.data;
+          //           break;
+          //         case "泰康财险":
+          //           this.taikangaccidentDataList = res.data;
+          //           break;
+          //         case "渤海财险":
+          //           this.boHaiaccidentDataList = res.data;
+          //           break;
+          //         case "中煤财险":
+          //         case "平安财险":
+          //           this[name + "InsuranceData"] = res.data;
+          //           break;
+          //         case "紫金财险":
+          //           let data = res.data;
+          //           data.map((ele) => {
+          //             ele.quantity = 1;
+          //             return ele;
+          //           });
+          //           this.ziJinInsuranceData = data;
+          //           break;
+          //         case "大家财险":
+          //           this.dajiaInsuranceData = res.data;
+          //           break;
+          //         case "诚泰财险":
+          //         case "中国人寿":
+          //         case "恒邦财险":
+          //         case "太平财险":
+          //         case "华农财险":
+          //         case "安盛天平":
+          //         case "众安财险":
+          //           res.data.map((ele) => {
+          //             ele.quantity = 1;
+          //             return ele;
+          //           });
+          //           this[name + "InsuranceData"] = res.data;
+          //           break;
+          //       }
+          //       this.nonVehicle(res.data, name);
+          //     } else {
+          //       this.$message.error(res.msg);
+          //     }
+          //   });
         // switch (ins) {
         //   case "永诚财险":
         //     this.accidentForm.agreementId = this.totalCompanyList[
@@ -6658,7 +6700,7 @@ export default {
         //   default:
         //     break;
         // }
-      } else {
+      // } else {
       }
     },
 
@@ -7251,6 +7293,7 @@ export default {
           policyHolderInfo: this.policyHolderInfo,
           isExternal: "1",
           vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
+          nowCostsId: this.nowCostsId
         };
 
         // debugger;

+ 8 - 8
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1012,7 +1012,7 @@
                   <div class="card-mingxi">
                     <div class="card-mingxi-title">险种明细:
                       <span v-show="reslistitem.checkedProgramme != 99" @click="showDetailJiaYi(reslistitem, reslistindex)">查看详情</span>
-                      <span v-show="reslistitem.checkedProgramme == 99" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
+                      <!-- <span v-show="reslistitem.checkedProgramme == 99" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span> -->
                     </div>
                     <div class="card-table" v-show="reslistitem.programme.description != '单商' && reslistitem.programme.description != '单三'">
                       <div class="table-title">交强险</div>
@@ -3652,7 +3652,7 @@
                   <div v-for="(dataItem, dataIndex) in item.tableData" :key="dataIndex">
                     <el-col :span="6">
                       份数
-                      <el-input v-model="dataItem.quantity" style="width: 120px;" size="small">
+                      <el-input v-model="dataItem.quantity" type="number" style="width: 120px;" size="small">
                         <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',dataItem.minQuantity, dataIndex)"></i></template>
                         <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',dataItem.minQuantity, dataIndex)"></i></template>
                       </el-input>
@@ -3700,7 +3700,7 @@
                     <el-col :span="6" v-if="item.tableData">
                       份数
                       <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
-                      <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
+                      <el-input v-model="item.tableData.quantity" type="number" style="width: 120px;" size="small">
                         <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
                         <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
                       </el-input>
@@ -3720,7 +3720,7 @@
                     <el-col :span="6" v-if="item.tableData">
                       份数
                       <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
-                      <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
+                      <el-input v-model="item.tableData.quantity" type="number" style="width: 120px;" size="small">
                         <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
                         <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
                       </el-input>
@@ -3839,7 +3839,7 @@
                     <el-col :span="6" v-if="item.tableData">
                       份数
                       <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" size="small"></el-input-number> -->
-                      <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
+                      <el-input v-model="item.tableData.quantity" type="number" style="width: 120px;" size="small">
                         <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
                         <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
                       </el-input>
@@ -3859,7 +3859,7 @@
                     <el-col :span="9" v-if="item.tableData">
                       份数
                       <!-- <el-input-number v-model="item.tableData.quantity" :step="1" :min="1" :max="10" @change="numberChange(listIndex, index)" label="描述文字" size="small"></el-input-number> -->
-                      <el-input v-model="item.tableData.quantity" style="width: 120px;" size="small">
+                      <el-input v-model="item.tableData.quantity" type="number" style="width: 120px;" size="small">
                         <template slot="prepend"><i class="el-icon-minus" @click="numberChange(listIndex, index, 'minus',item.tableData.minQuantity)"></i></template>
                         <template slot="append"><i class="el-icon-plus" @click="numberChange(listIndex, index, 'plus',item.tableData.minQuantity)"></i></template>
                       </el-input>
@@ -6083,7 +6083,7 @@ export default {
     numberChange(listIndex, index, type,minquantity, dataIndex) {
       if (dataIndex >= 0) {
         if (type == 'plus') {
-          if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity < 10) {
+          if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity < 100) {
             this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData[dataIndex].quantity += 1
           }
         } else {
@@ -6093,7 +6093,7 @@ export default {
         }
       } else {
         if (type == 'plus') {
-          if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity < 10) {
+          if (this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity < 100) {
             this.jiayiDialogData.drivingTypeList[listIndex].children[index].tableData.quantity += 1
           }
         } else {

+ 4 - 4
src/views/Task/daikeComponents/KtOrder.vue

@@ -2077,11 +2077,11 @@ export default {
                         fileurl: res1.data.jqSign,
                       });
                     }
-                    if (res1.data.jqSign) {
-                      accidentList.push({
+                    if (res1.data.syPolicy) {
+                      businessList.push({
                         fileTitle: "商业电子保单",
-                        filename: this.orderInfo.sypolicyno,
-                        fileurl: res1.data.jqSign,
+                        filename: "商业电子保单",
+                        fileurl: res1.data.syPolicy,
                       });
                     }
                     if (res1.data.noPolicy) {