Browse Source

fix:修改

wuguojie 1 year ago
parent
commit
6a041cabef
2 changed files with 134 additions and 1 deletions
  1. 1 1
      src/views/Task/DaikeLetter.vue
  2. 133 0
      src/views/Task/daikeComponents/KtLetter1.vue

+ 1 - 1
src/views/Task/DaikeLetter.vue

@@ -272,7 +272,7 @@ export default {
      reslistCurrentChange(row, column, event) {
       this.salespersonForm = row; //名称
       this.activeName='999'
-      this.$refs.Ktletter.add()
+      this.$refs.Ktletter.clearData()
       this.$refs.Ktletter.userId=row.userId
       this.$refs.Ktletter.obtainProtocol()
       this.dialogVisible = false;

+ 133 - 0
src/views/Task/daikeComponents/KtLetter1.vue

@@ -13954,6 +13954,139 @@ export default {
       this.systartDate = this.jqstartDate;
       this.syendDate = this.jqendDate;
     },
+    clearData() {
+        if (this.isLetter == "1") {
+            this.$router.push({ path: "/letter/letter" });
+        }
+        for (let key in this.ownerInfo) {
+            this.ownerInfo[key] = "";
+        }
+        for (let key in this.policyHolderInfo) {
+            this.policyHolderInfo[key] = "";
+        }
+        for (let key in this.insuredPersonInfo) {
+            this.insuredPersonInfo[key] = "";
+        }
+        this.vehicleAndVesselTaxForm = {
+            taxRelifFlag: "1",
+            taxpayerIdentifier: "01"
+        };
+        // 清空保险公司列表
+        this.totalCompanyList = [];
+        this.ownerInfo.provinceData = [];
+        this.insuredPersonInfo.provinceData = [];
+        this.policyHolderInfo.provinceData = [];
+        this.carInfo = JSON.parse(localStorage.getItem("carInfo"));
+        this.insureList = JSON.parse(localStorage.getItem("insureList"));
+        this.sychecked = false;
+        this.yonganchecked = false;
+        this.zhongmeichecked = false;
+        this.transferDateShow = false;
+        this.tbczcarShow = true; //投保人同车主
+        // this.bbczcarShow = false, //被保人同车主
+        this.bbtbcarShow = true; //被保人同投保人
+        // this.$refs.imageDialog.emptyList()
+        this.imageList1 = [];
+        this.imageList2 = [];
+        this.imageList3 = [];
+        this.imageList4 = [];
+        this.imageList5 = [];
+        this.imageList6 = [];
+        this.imgList1 = [];
+        this.imgList2 = [];
+        this.imgList3 = [];
+        this.imgList4 = [];
+        this.imgList5 = [];
+        this.imgList6 = [];
+        this.imgList7 = [];
+        this.imgList8 = [];
+        this.imgList9 = [];
+        this.imgList10 = [];
+        this.imgList11 = [];
+        this.imgList12 = [];
+        this.imgList13 = [];
+        this.imgList14 = [];
+        this.imgList15 = [];
+        this.imgList16 = [];
+        this.imgList17 = [];
+        this.imgList18 = [];
+        this.imgList19 = [];
+        this.imgList20 = [];
+        this.imgList21 = [];
+        this.imgList22 = [];
+        this.imgList23 = [];
+        this.imgList24 = [];
+        this.imgList25 = [];
+        this.imgList26 = [];
+        this.imgList28 = [];
+        this.imgList27 = [];
+        // 清空保险公司选中的意外险
+        this.zijintemplateSelection = "";
+        this.zhongantemplateSelection = "";
+        this.hengbangtemplateSelection = "";
+        this.taipingyangtemplateSelection = "";
+        this.taipingtemplateSelection = "";
+        this.insuranceHN = "";
+        this.renshoutemplateSelection = "";
+        this.dajiatemplateSelection = "";
+        this.accidentForm = {
+            fen: "1",
+            premium: 0
+        };
+        this.accidentFormHN = {
+            allQuantity: "1",
+            quantity: "1"
+        };
+        this.productId = "";
+        this.hengbangaccidentalDrivingVo = {};
+        this.taipingyangaccidentalDrivingVo = {};
+        this.huanongaccidentalDrivingVo = {};
+        this.taipingaccidentalDrivingVo = {};
+        this.zhongmeiaccidentalDrivingVo = {};
+        this.accidentalDrivingVo = [];
+        this.zhonganaccidentalDrivingVo = {};
+        this.renshouaccidentalDrivingVo = {};
+        this.anshengaccidentalDrivingVo = {};
+        this.dajiaaccidentalDrivingVo = {};
+        this.selectedOptions1 = [];
+        this.selectedOptions2 = [];
+        this.selectedOptions3 = [];
+        this.orderno = "";
+        this.quoteno = "";
+        this.lastCompanyId = "";
+        this.HistoryList = [];
+        this.jqstartDate = this.transformTime1();
+        this.jqendDate = this.oneYearPast1(this.jqstartDate);
+        this.systartDate = this.transformTime1();
+        this.syendDate = this.oneYearPast1(this.jqstartDate);
+        this.policyNumberForm = {
+            jqpolicyno: "",
+            sypolicyno: "",
+            jypolicyno: "",
+            jqpremium: "",
+            sypremium: "",
+            jypremium: "",
+            taxamount: "",
+            commissionFeevalue: "",
+            otherFeevalue: "",
+            jqSuperviseCostsProportion: "",
+            sySuperviseCostsProportion: "",
+            noSuperviseCostsProportion: "",
+            jqOtherCostsProportion: "",
+            syOtherCostsProportion: "",
+            noOtherCostsProportion: "",
+            jqReceivableProportion: "",
+            syReceivableProportion: "",
+            noReceivableProportion: "",
+            jqPolicyList: [],
+            syPolicyList: [],
+            jqSignList: [],
+            noPolicyList: [],
+            noCostsProportion: "",
+            jqCostsProportion: "",
+            syCostsProportion: ""
+        };
+    },
     add() {
       // this.obtainProtocol();
       if (this.isLetter == "1") {