瀏覽代碼

核保因子页面数据

lihongxiao 2 年之前
父節點
當前提交
37c4df1d1b

+ 7 - 1
src/http/moudules/insCompany.js

@@ -309,4 +309,10 @@ export const getPtlInsAttributionTemplate = (data) => {
     })
 }
 /** 归属模版模块 */
-
+// 车牌
+export const license = () => {
+    return axios({
+        url: '/tax/manager/license',
+        method: "get",
+    })
+}

+ 1 - 1
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -530,7 +530,7 @@
           @click="submitForm">提交</el-button>
       </span>
     </el-dialog>
-    <el-dialog :visible.sync="bfyzVisible"  fullscreen="true">
+    <el-dialog :visible.sync="bfyzVisible"  fullscreen=true>
       <premium-factor ref="premiumfactor"></premium-factor>
       <!-- <el-form ref="CostfactorForm" :model="CostfactorForm" label-width="100px" :size="overSize">
         <el-card class="box-card">

+ 30 - 67
src/views/AgreementManage/CarInsurance/components/PremiumFactor.vue

@@ -82,8 +82,8 @@
                     <el-option
                       v-for="(s, i) in val.options"
                       :key="i"
-                      :label="s.label"
-                      :value="s.value"
+                      :label="s.dictTag"
+                      :value="s.dictValue"
                     ></el-option>
                   </el-select>
                 </template>
@@ -188,8 +188,8 @@
                     <el-option
                       v-for="(s, i) in val.options"
                       :key="i"
-                      :label="s.label"
-                      :value="s.value"
+                      :label="s.license"
+                      :value="s.id"
                     ></el-option>
                   </el-select>
                   <!-- <el-checkbox style="margin-left: 20px;" true-label="1" false-label="0"  v-model="formData.chepai2" :disabled="formData[val.prop1].length>0?false:true">含暂未上牌</el-checkbox> -->
@@ -371,7 +371,15 @@ export default {
         chepai2: "",
         条件适用对象: []
       },
-      circularContent: [
+      trafficManagementVehicleTypeoptions: [],
+      natureOfVehicleUseoptions: [],
+      licenseOptions:[],
+      energyTypeoptions:[]
+    };
+  },
+  computed: {
+    circularContent() {
+      return [
         {
           title: "车险预核条件",
           hideAll: true,
@@ -426,7 +434,8 @@ export default {
             {
               label: "非车产品",
               prop: "非车产品",
-              type: "radio"
+              type: "select",
+              options: []
             },
             {
               label: "非车保费(元)",
@@ -553,29 +562,13 @@ export default {
               label: "能源类型",
               prop: "能源类型",
               type: "selectmultiple",
-              options: [
-                {
-                  label: "是",
-                  value: "1"
-                },
-                {
-                  label: "否",
-                  value: "0"
-                }
-              ]
+              options: this.energyTypeoptions
             },
             {
               label: "使用性质",
-              prop1: "shiyongxingzhi1",
+              prop1: "使用性质1",
               prop2: "使用性质2",
               type: "selectsearch",
-              options: this.shiyongxingzhi1options
-            },
-            {
-              label: "号牌种类",
-              prop1: "号牌种类1",
-              prop2: "号牌种类2",
-              type: "selectsearch",
               options: this.natureOfVehicleUseoptions
             },
             {
@@ -583,14 +576,7 @@ export default {
               prop1: "车辆类型1",
               prop2: "车辆类型2",
               type: "selectsearch",
-              options: this.natureOfVehicleUseoptions
-            },
-            {
-              label: "交管车辆类型",
-              prop1: "交管车辆类型1",
-              prop2: "交管车辆类2",
-              type: "selectsearch",
-              options: this.natureOfVehicleUseoptions
+              options: this.trafficManagementVehicleTypeoptions
             },
             {
               label: "额定载重质量(吨)",
@@ -666,16 +652,7 @@ export default {
               prop1: "车牌1",
               prop2: "chepai2",
               type: "slot",
-              options: [
-                {
-                  label: "是",
-                  value: "1"
-                },
-                {
-                  label: "否",
-                  value: "0"
-                }
-              ]
+              options: this.licenseOptions
             }
           ]
         },
@@ -776,32 +753,17 @@ export default {
             }
           ]
         }
-      ],
-      natureOfVehicleUseoptions: [],
-      shiyongxingzhi1options: [
-            {
-                "dictTag": "营业",
-                "dictValue": "01",
-                "sort": 0,
-                "status": 0
-            },
-            {
-                "dictTag": "非营业",
-                "dictValue": "02",
-                "sort": 0,
-                "status": 0
-            }
-        ]
-    };
+      ]
+    }
   },
-
   created() {
-    console.log(this.shiyongxingzhi1options, 2222222);
-    this.$api.insCompany.dicType("natureOfVehicleUse").then(res => {
-      if (res.code == 200) {
-        this.shiyongxingzhi1options = res.data.ddList;
-      }
-    });
+    this.getDicType("natureOfVehicleUse");//车辆使用性质
+    this.getDicType("trafficManagementVehicleType");//车辆类型
+    this.getDicType("energyType");//能源种类
+    
+    this.$api.insCompany.license().then(res => {
+        this.licenseOptions=res.data
+    })
     this.conditiondata.forEach((val, index) => {
       this.checkedmData[index] = {
         checkAll: false,
@@ -875,7 +837,9 @@ export default {
             ele.hide = true;
           }
         }
+
       });
+      console.log(this.circularContent[4].concant,111111111)
     },
     // 投保人同车主功能
     isoOwnerFun(val) {
@@ -940,7 +904,6 @@ export default {
     },
     conditionSave() {
       this.dialogVisible = false;
-      console.log(this.checkedmData, 444444444);
     },
     // 另存为模板
     saveTemplate() {