haizhouwang 2 年 前
親
コミット
1931d9b44f
1 ファイル変更、7 行追加、36 行削除
  1. 7 36
      src/views/Letter/Letter.vue

+ 7 - 36
src/views/Letter/Letter.vue

@@ -2113,9 +2113,9 @@
         <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
         <el-button size="small" type="primary" @click="renewalCodeconfirm">确 定</el-button>
       </span>
       </span>
     </el-dialog>
     </el-dialog>
-    <el-dialog :title="contributingState?'选择特约':'提交核保'" :visible.sync="hbsubmitdialogVisible" width="1200px">
+    <el-dialog title="提交核保" :visible.sync="hbsubmitdialogVisible" width="1200px">
       <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
       <div style="margin-bottom: 20px;font-weight: bold;">特约选择</div>
-      <el-table size="small" :data="zijinengageListData" border v-loading="contributingLoading" @select="zijinengageChange"
+      <el-table size="small" :data="zijinengageListData" border v-loading="accidentLoading" @select="zijinengageChange"
         ref="expandTable" highlight-current-row @cell-dblclick="zijincellDblclick"  :cell-class-name="tableCellClassName"
         ref="expandTable" highlight-current-row @cell-dblclick="zijincellDblclick"  :cell-class-name="tableCellClassName"
         :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
         :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column type="selection" width="55"></el-table-column>
@@ -2131,9 +2131,7 @@
       </el-table>
       </el-table>
       <span slot="footer" class="dialog-footer">
       <span slot="footer" class="dialog-footer">
         <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
         <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
-        <el-button v-if="contributingState" size="small" type="warning" @click="hbsubmitdialogVisible=false">确定</el-button>
-        <el-button v-else size="small" type="warning" @click="hbsubmit">提交核保</el-button>
-
+        <el-button size="small" type="warning" @click="hbsubmit">提交核保</el-button>
       </span>
       </span>
     </el-dialog>
     </el-dialog>
     <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
     <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
@@ -2245,7 +2243,6 @@ export default {
       accidenttableData: [],
       accidenttableData: [],
       accidentLoading: false,
       accidentLoading: false,
       guoRenaccidentLoading: false,
       guoRenaccidentLoading: false,
-      contributingLoading:false,
       guoRenaccidentPremium:'',
       guoRenaccidentPremium:'',
       guoRenaccidentForm: {
       guoRenaccidentForm: {
         quantity: "1",
         quantity: "1",
@@ -2253,7 +2250,6 @@ export default {
       }, //国任意外险内容
       }, //国任意外险内容
       accidentPremium: "",
       accidentPremium: "",
       accidentPremiumGr:'',
       accidentPremiumGr:'',
-      contributingState:false, //是否为国任特约
       pickerOptions: {
       pickerOptions: {
         disabledDate(time) {
         disabledDate(time) {
           //若选择的日期小于当前日期(包含今天)
           //若选择的日期小于当前日期(包含今天)
@@ -3443,6 +3439,7 @@ export default {
       });
       });
     }
     }
 
 
+
     //--订单编辑回显--
     //--订单编辑回显--
     this.paramsEdit = this.$route.query.data; //接收参数
     this.paramsEdit = this.$route.query.data; //接收参数
     if (this.paramsEdit) {
     if (this.paramsEdit) {
@@ -3452,6 +3449,7 @@ export default {
       this.bbtbcarShow = false;
       this.bbtbcarShow = false;
       this.bbczcarShow = false;
       this.bbczcarShow = false;
       const { carinfo, ownerinfo, applyinfo, insureinfo, quoteno, orderno } = _this.paramsEdit;
       const { carinfo, ownerinfo, applyinfo, insureinfo, quoteno, orderno } = _this.paramsEdit;
+
       _this.carInfo = carinfo;
       _this.carInfo = carinfo;
       if( _this.carInfo.carnature=="8A"){
       if( _this.carInfo.carnature=="8A"){
         _this.carInfo.carnature='02'
         _this.carInfo.carnature='02'
@@ -4109,22 +4107,6 @@ export default {
     ZADrivingRadio(row){
     ZADrivingRadio(row){
       this.ZADrivingChange(row)
       this.ZADrivingChange(row)
     },
     },
-    // 国任特约选择
-    contributingGuoRen(id){
-      this.zijinengageListData = [];
-      this.contributingLoading=true
-      this.contributingState=true
-      this.hbsubmitdialogVisible=true
-        this.$api.letter.guorenqueryClauseData
-        ({ agreementId: id }).then(res => {
-          this.contributingLoading=false
-          res.data.forEach(val=>{
-            val.clauseName=val.clauses
-            val.clauseContent=val.clausesContext
-          })
-            this.zijinengageListData = res.data;
-          });
-    },
     //紫金特约选择
     //紫金特约选择
     zijinengageChange(select, row) {
     zijinengageChange(select, row) {
       this.zijinengageList = [];
       this.zijinengageList = [];
@@ -4387,6 +4369,7 @@ export default {
         this.$message({ message: "发证日期早于初登日期", type: "error" });
         this.$message({ message: "发证日期早于初登日期", type: "error" });
         return;
         return;
       }
       }
+
       this.$refs["carInfo"].validate(valid => {
       this.$refs["carInfo"].validate(valid => {
         if (valid) {
         if (valid) {
           var _this = this;
           var _this = this;
@@ -5113,16 +5096,6 @@ export default {
     },
     },
     //国任报价
     //国任报价
     guoRen(num, id) {
     guoRen(num, id) {
-      let guoRenSpecialAgreementVo=[]
-      this.zijinengageList.forEach(val=>{
-        guoRenSpecialAgreementVo.push({
-          clauses:val.clauseName,
-          clausesContext:val.clauses,
-          clauseCode:val.clauseCode,
-          riskCode:val.riskCode,
-          riskName:val.riskName,
-        })
-      })
       let accidentalDrivingVo = {};
       let accidentalDrivingVo = {};
       if ( this.guoRenaccidentForm.goodsCode) {
       if ( this.guoRenaccidentForm.goodsCode) {
         accidentalDrivingVo = {
         accidentalDrivingVo = {
@@ -5138,9 +5111,9 @@ export default {
         renewalCodeJq: this.renewalCodeJq,
         renewalCodeJq: this.renewalCodeJq,
         renewalCodeSy: this.renewalCodeSy,
         renewalCodeSy: this.renewalCodeSy,
         agreementId: this.totalCompanyList[num].agreementId,
         agreementId: this.totalCompanyList[num].agreementId,
-        guoRenSpecialAgreementVo
       };
       };
       this.$api.letter.guorenquote(params).then(res => {
       this.$api.letter.guorenquote(params).then(res => {
+
         this.totalCompanyList[num].msg = res.msg;
         this.totalCompanyList[num].msg = res.msg;
         if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
         if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
           this.totalCompanyList[num].quoteCode = "4";
           this.totalCompanyList[num].quoteCode = "4";
@@ -5510,7 +5483,6 @@ export default {
       this.companyId = data.result.companyId;
       this.companyId = data.result.companyId;
       this.apiType = data.apiType;
       this.apiType = data.apiType;
       this.hbsubmitdialogVisible = true;
       this.hbsubmitdialogVisible = true;
-      this.contributingState=false
       if(data.namesimple=='紫金财险'){
       if(data.namesimple=='紫金财险'){
         this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
         this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
             this.zijinengageListData = res.data;
             this.zijinengageListData = res.data;
@@ -5543,7 +5515,6 @@ export default {
     },
     },
     hbsubmit() {
     hbsubmit() {
       this.hbsubmitdialogVisible = false;
       this.hbsubmitdialogVisible = false;
-      this.contributingState=false
       this.$api.letter.getByCompanyId({ companyId: this.companyId }).then(async res => {
       this.$api.letter.getByCompanyId({ companyId: this.companyId }).then(async res => {
         if (res.code == 200) {
         if (res.code == 200) {
           var data = res.data;
           var data = res.data;