Преглед изворни кода

报价选择保险公司接口添加risk和kind参数

lihongxiao пре 2 година
родитељ
комит
d582ea4cfd

+ 2 - 2
config/dev.env.js

@@ -12,8 +12,8 @@ module.exports = merge(prodEnv, {
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
-  // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  BASE_URL: '"http:///192.168.0.253:8080/"',//田智
+  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.1.101:8080/"',

+ 8 - 0
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -1217,6 +1217,14 @@
               </el-select>
               </el-select>
             </el-form-item>
             </el-form-item>
           </el-col>
           </el-col>
+          <el-col :span="12">
+            <el-form-item label="产品类型">
+              <el-select v-model="nonVehicleRuleObject.productCode" placeholder="选择产品类型" style="width:300px">
+                <el-option v-for="(item, index) in productsTypeoptions" :key="index" :label="item.dictTag"
+                  :value="item.dictValue"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
           <el-col :span="12">
           <el-col :span="12">
             <el-form-item label="排序">
             <el-form-item label="排序">
               <el-input-number v-model="nonVehicleRuleObject.sort" :min="0" :max="10"></el-input-number>
               <el-input-number v-model="nonVehicleRuleObject.sort" :min="0" :max="10"></el-input-number>

+ 2 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -746,8 +746,8 @@ export default {
       }
       }
     },
     },
     handleSumbit() {
     handleSumbit() {
-    if(!this.selectionListbatch[0].uploadUrl){
-      this.$message.error('请选择导出路径的数据!')
+    if(this.selectionListbatch[0].uploadUrl){
+      this.$message.error('请选择导出路径为空的数据!')
       return false
       return false
     }
     }
     let data = {
     let data = {

+ 2 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -660,8 +660,8 @@ export default {
       }
       }
     },
     },
     handleSumbit() {
     handleSumbit() {
-    if(!this.selectionListbatch[0].uploadUrl){
-      this.$message.error('请选择导出路径的数据!')
+      if(this.selectionListbatch[0].uploadUrl){
+      this.$message.error('请选择导出路径为空的数据!')
       return false
       return false
     }
     }
     let data = {
     let data = {

+ 92 - 0
src/views/Task/daikeComponents/KtLetter.vue

@@ -4435,6 +4435,7 @@ export default {
     },
     },
     //选择协议  val:协议id  row:协议列表  index:下标  item:保险公司数据集合
     //选择协议  val:协议id  row:协议列表  index:下标  item:保险公司数据集合
     agreementChange(val, row, index, item) {
     agreementChange(val, row, index, item) {
+      this.kindListFun()
       let obj = {};
       let obj = {};
       obj = row.find(item => {
       obj = row.find(item => {
         return item;
         return item;
@@ -4455,6 +4456,8 @@ export default {
               seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
               seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
               ruleUseNature:this.carInfo.carnature,
               ruleUseNature:this.carInfo.carnature,
               ruleSeatNum: Number(this.carInfo.seatCount),
               ruleSeatNum: Number(this.carInfo.seatCount),
+              risk: this.riskList,
+              kind: this.kindList,
               ruleThirdPartyInsurance: this.insureList[1].amount
               ruleThirdPartyInsurance: this.insureList[1].amount
             })
             })
             .then(res => {
             .then(res => {
@@ -4715,6 +4718,7 @@ export default {
     //勾选保险公司
     //勾选保险公司
     initchange(e, code, name, index) {
     initchange(e, code, name, index) {
       if (e) {
       if (e) {
+        this.kindListFun()
         let ins = this.totalCompanyList[index].namesimple;
         let ins = this.totalCompanyList[index].namesimple;
         this.totalCompanyList[index].checked = e;
         this.totalCompanyList[index].checked = e;
         this.totalCompanyList[
         this.totalCompanyList[
@@ -4728,6 +4732,8 @@ export default {
               seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
               seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
               ruleUseNature:this.carInfo.carnature,
               ruleUseNature:this.carInfo.carnature,
               ruleSeatNum: Number(this.carInfo.seatCount),
               ruleSeatNum: Number(this.carInfo.seatCount),
+              risk: this.riskList,
+              kind: this.kindList,
               ruleThirdPartyInsurance: this.insureList[1].amount
               ruleThirdPartyInsurance: this.insureList[1].amount
             })
             })
             .then(res => {
             .then(res => {
@@ -5177,6 +5183,8 @@ export default {
                 } else {
                 } else {
                   _this.kindList = [];
                   _this.kindList = [];
                 }
                 }
+
+
                 // if (_this.orderno) {
                 // if (_this.orderno) {
                 this.OrderStageProcessing();
                 this.OrderStageProcessing();
                 // } else {
                 // } else {
@@ -5198,6 +5206,90 @@ export default {
         }
         }
       });
       });
     },
     },
+    kindListFun(){
+      var _this = this;
+      _this.riskList = []; //险种大类
+      _this.kindList = []; //商业险险别
+      if (
+          (!_this.jqstartDate || !_this.jqendDate) &&
+          (!_this.systartDate || !_this.syendDate)
+        ) {
+          this.$message({ message: "投保日期不能为空", type: "warning" });
+        } else {
+          if (_this.jqchecked) {
+            //交强
+            _this.jqstartDate = this.transformTime(_this.jqstartDate);
+            _this.jqendDate = this.transformTime(_this.jqendDate);
+            _this.riskList.push({
+              amount: "200000",
+              premium: "0",
+              riskCode: "0507",
+              endDate: _this.jqendDate,
+              startDate: _this.jqstartDate,
+              instantFlag: "0"
+            });
+          }
+          if (_this.sychecked) {
+            _this.systartDate = this.transformTime(_this.systartDate);
+            _this.syendDate = this.transformTime(_this.syendDate);
+            //商业
+            _this.riskList.push({
+              premium: "0",
+              riskCode: "0510",
+              quotePreceptCode: "",
+              quotePreceptName: "",
+              endDate: _this.syendDate,
+              startDate: _this.systartDate,
+              instantFlag: "0"
+            });
+            _this.insureList.map((ele, index) => {
+              if (
+                ele.amount != "0" &&
+                (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
+              ) {
+                _this.kindList.push({
+                  unitAmount: _this.insureList[index].amount,
+                  kindCode: _this.insureList[index].kindCode,
+                  kindName: _this.insureList[index].kindName
+                });
+              } else if (
+                ele.amount != "0" &&
+                (ele.kindCode == "MJ1" ||
+                  ele.kindCode == "MJ2" ||
+                  ele.kindCode == "MJ3" ||
+                  ele.kindCode == "MJ4")
+              ) {
+                _this.kindList.push({
+                  deductibleRate: _this.insureList[index].amount,
+                  kindCode: _this.insureList[index].kindCode,
+                  kindName: _this.insureList[index].kindName
+                });
+              } else if (
+                ele.amount != "0" &&
+                (ele.kindCode == "TY1" ||
+                  ele.kindCode == "TY2" ||
+                  ele.kindCode == "TY3" ||
+                  ele.kindCode == "TY4")
+              ) {
+                _this.kindList.push({
+                  serviceTimes: _this.insureList[index].amount,
+                  kindCode: _this.insureList[index].kindCode,
+                  kindName: _this.insureList[index].kindName
+                });
+              } else if (ele.amount != "0") {
+                _this.kindList.push({
+                  amount: _this.insureList[index].amount,
+                  kindCode: _this.insureList[index].kindCode,
+                  kindName: _this.insureList[index].kindName
+                });
+              }
+              return ele;
+            });
+          } else {
+            _this.kindList = [];
+          }
+        }
+    },
     //动态函数
     //动态函数
     ToolClickFun(MethodName, Parameter, companyId, companyName) {
     ToolClickFun(MethodName, Parameter, companyId, companyName) {
       this[`${MethodName}`](Parameter, companyId, companyName);
       this[`${MethodName}`](Parameter, companyId, companyName);