فهرست منبع

平安财险生成签章

lihongxiao 2 سال پیش
والد
کامیت
058efd1718
3فایلهای تغییر یافته به همراه316 افزوده شده و 101 حذف شده
  1. 18 1
      src/http/moudules/letter.js
  2. 289 90
      src/views/Task/daikeComponents/KtLetter.vue
  3. 9 10
      src/views/Task/daikeComponents/KtOrder.vue

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

@@ -1201,4 +1201,21 @@ export const recoverApplyVerifyCode = (data) => {
     method: 'post',
     data
   })
-}
+}
+
+// 平安驾意险
+export const getPingAnDrivingInsuranceRule = (data) => {
+  return axios({
+    url: '/api/drivingInsurance/getPingAnDrivingInsuranceRule',
+    method: 'post',
+    data
+  })
+}
+// 平安驾意险保额
+export const productDetailsQuery = (data) => {
+  return axios({
+    url: '/order/pingAnApi/productDetailsQuery',
+    method: 'post',
+    data
+  })
+}

+ 289 - 90
src/views/Task/daikeComponents/KtLetter.vue

@@ -1366,8 +1366,12 @@
                     @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
                   <el-button type="text" size="small" style="font-size: 14px"
                     @click="Payment(reslistitem.result.companyId, reslistitem)" v-show="reslistitem.orderstatus == '2' &&
-                      !('editStatus' in reslistitem.result)
+                      !('editStatus' in reslistitem.result) && reslistitem.namesimple !== '平安财险'
                       ">付款码</el-button>
+                      <el-button type="text" size="small" style="font-size: 14px"
+                    @click="signature(reslistitem.result.companyId)" v-show="reslistitem.orderstatus == '2' &&
+                      !('editStatus' in reslistitem.result) && reslistitem.namesimple == '平安财险'
+                      ">生成签章</el-button>
                 </div>
               </div>
             </div>
@@ -1376,8 +1380,7 @@
               <span v-if="reslistitem.checked &&
                 reslistitem.agreementId &&
                 reslistitem.underwritingDescription
-                " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription
-  }}</span>
+                " style="margin: 20px 20px 0 100px; display: inline-block">{{ reslistitem.underwritingDescription}}</span>
               <!-- </div> -->
             </template>
             <template v-if="reslistitem.namesimple == '平安财险' &&
@@ -1385,41 +1388,61 @@
               reslistitem.agreementId
               ">
               <div class="flex f-c Driving-risk">
-                <el-form :inline="true" :model="accidentFormPA" class="demo-form-inline" size="small"
-                  style="font-weight: bold; margin-top: 15px">
+                <div v-for="(val, index) in pinganInsuranceData" :key="index" >
+                  <el-form :inline="true" :model="accidentFormPA[index-1]" class="demo-form-inline" size="small"
+                  style="font-weight: bold;margin-top:15px ">
                   <el-form-item label="意外险类型" style="margin-right: 30px">
-                    <el-select clearable v-model="pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA"
-                      @change="pinganInsuranceChange">
-                      <el-option v-for="(item, index) in pinganInsuranceData" :key="index" :label="item.projectName"
+                    <el-select clearable v-model="accidentFormPA[index-1].pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA(index-1,)"
+                      @change="pinganInsuranceChange($event,index-1,val)">
+                      <el-option v-for="(item, index1) in val" :key="index1" :label="item.projectName"
                         :value="item.projectName"></el-option>
                     </el-select>
                   </el-form-item>
-                  <el-form-item label="选择份数" style="margin-right: 50px">
-                    <el-input-number v-model="accidentFormPA.quantity" @change="numberCopieschangePA" :min="1" :max="accidentFormPA.sellListSize"
+                  <el-form-item label="选择份数" style="margin-right: 50px"  v-if="index ==1||index ==2">
+                    <el-input-number v-model="accidentFormPA[index-1].quantity" :disabled="!accidentFormPA[index-1].pinganInsurancetype" @change="numberCopieschangePA($event,index-1)" :min="1" :max="accidentFormPA[index-1].sellListSize"
                       controls-position="right"></el-input-number>
                   </el-form-item>
-                  <el-form-item label="保费:">
-                    <span>{{ accidentFormPA.premium || 0 }}&ensp;元</span>
+                  <el-form-item label="保费:"  v-if="index ==1||index ==2">
+                    <span>{{ accidentFormPA[index-1].premium || 0 }}&ensp;元</span>
                   </el-form-item>
                 </el-form>
-                <el-table style="margin-top: 20px" size="small" :data="pinganInsuranceDataTable" border
-                  v-if="pingantemplateSelection" ref="RsTable" highlight-current-row :header-cell-style="{
+                <el-table class="pinganTable" style="margin-top: 20px" size="small" :data="accidentFormPA[index-1].pinganInsuranceDataTable" border
+                  v-if="accidentFormPA[index-1].pingantemplateSelection"  highlight-current-row :header-cell-style="{
                     background: '#F7F7F9 ',
                     fontWeight: '700',
                     color: '#333333',
-                  }">
-                  <el-table-column align="center" width="55" label="选择">
+                  }"   ref="RsTable"  @select="(selections,row)=>{PADrivingCheckbox(selections,row,reslistitem.agreementId,index-1)}">
+                  <el-table-column align="center" width="55" label="选择" v-if="index ==1||index ==2">
                     <template slot-scope="scope">
-                      <el-radio class="radio" v-model="pinganInsurancetype" :label="scope.row.code"
-                        @click.native.stop.prevent="PADrivingRadio(scope.row)">&nbsp;</el-radio>
+                      <el-radio class="radio"   v-model="accidentFormPA[index-1].pinganInsurancetype" :label="scope.row.code"
+                        @click.native.stop.prevent="PADrivingRadio(scope.row,reslistitem.agreementId,index-1)">&nbsp;</el-radio>
                     </template>
                   </el-table-column>
+                  <el-table-column
+                  type="selection"
+                  v-else
+                  width="55">
+                </el-table-column>
                   <el-table-column prop="name" label="方案名称" align="center"></el-table-column>
                   <el-table-column prop="code" label="方案代码" align="center"></el-table-column>
                   <el-table-column prop="premium" label="保费 (元)/每份" align="center">
                   </el-table-column>
+                  <el-table-column prop="quantity" label="份数" align="center" v-if="index ==3">
+                    <template slot-scope="scope">
+                      <el-input-number size='small' v-model="scope.row.quantity" :min="1" :max="Number(scope.row.sellListSize)"
+                      controls-position="right"></el-input-number>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    label="操作"
+                    width="100">
+                    <template slot-scope="scope">
+                      <el-button type="text" size="small" @click="pinganDetail(scope.row,reslistitem.agreementId)">查看</el-button>
+                    </template>
+                  </el-table-column>
                 </el-table>
               </div>
+              </div>
             </template>
             <template v-if="reslistitem.namesimple == '泰康财险' &&
               reslistitem.checked &&
@@ -1986,14 +2009,16 @@
               <el-button type="text" style="color: #2d4d89" size="small"
                 @click="qoutedetail(scope.row.id)">查看详情</el-button>
               <el-button size="small" type="text" @click="bjdpreview(scope.row.id)">报价单</el-button>
-              <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
+              <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'" type="text"
                 @click="Payment(scope.row.id, scope.row)">付款码</el-button>
+                <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany=='平安财险'" type="text"
+                @click="signature(scope.row.id)">生成签章</el-button>
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                 scope.row.orderstatus == '2' ||
                 scope.row.orderstatus == '4') &&
                 ['紫金财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
-              <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2'"
+              <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'"
                 @click="revokeCode(scope.row.id)">撤销二维码</el-button>
             </template>
           </el-table-column>
@@ -2638,6 +2663,21 @@
         <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
       </span>
     </el-dialog>
+    <el-dialog :visible.sync="pinganDataDetailVisible" width="40%"  title="责任明细">
+      <el-table
+      :data="pinganDataDetail"
+      border
+      style="width: 100%">
+      <el-table-column
+        prop="insuranceCoverage"
+        label="责任名称">
+      </el-table-column>
+      <el-table-column
+        prop="unitInsuredAmount"
+        label="每份保额">
+      </el-table-column>
+    </el-table>
+    </el-dialog>
     <div v-if="isLetter == '1'" class="flex j-c a-c footer" :class="$store.state.app.collapse ? 'position-collapse-left' : 'position-left'
       ">
       <el-button size="small" @click="add()">录下一单</el-button>
@@ -2678,9 +2718,11 @@
           订单状态:已核保待缴费
         </div>
       </div>
-      <span slot="footer" class="dialog-footer" v-if="orderstatus == '2'">
-        <el-button style="width: 100px" type="primary" size="small"
+      <span slot="footer" class="dialog-footer" >
+        <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany!=='平安财险'"
           @click="Payment(companyId, queryOrders)">缴费二维码</el-button>
+          <el-button style="width: 100px" type="primary" size="small" v-if="orderstatus == '2' && queryOrders.inscompany=='平安财险'"
+          @click="signature(companyId)">生成签章</el-button>
       </span>
     </el-dialog>
     <el-dialog title="转保确认码" :visible.sync="renewalCodedialogVisible" width="400px" style="font-weight: bold">
@@ -2744,6 +2786,12 @@
         <el-table-column prop="opinion" label="备注"></el-table-column>
       </el-table>
     </el-dialog>
+    <!-- 生成签章 -->
+    <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
+      <div style="padding:0 20px">
+        <div  id="signaturecode" ref="signaturecode"></div>
+      </div>
+    </el-dialog>
     <!-- 保单上传 -->
     <el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
       <div slot="title" class="dialog-title">
@@ -2860,11 +2908,35 @@ export default {
         quantity: "1",
         sumPremium: 0,
       },
-      accidentFormPA: {
+      pinganDataDetail:[],
+      pinganDataDetailVisible:false,
+      accidentFormPA: [{
+        quantity: "1",
+        premium: 0,
+        pingantemplateSelection:'',
+      pinganInsuranceDataTable:[],
+      pinganInsurancetype:'',
+      },
+      {
         quantity: "1",
         premium: 0,
+        pingantemplateSelection:'',
+      pinganInsuranceDataTable:[],
+      pinganInsurancetype:'',
       },
+      {
+        quantity: "1",
+        premium: 0,
+        pingantemplateSelection:'',
+      pinganInsuranceDataTable:[],
+      pinganInsurancetype:'',
+      }],
       taikangaccidentalDrivingVo: {},
+      pinganaccidentalDrivingVo: {
+        0:{},
+        1:{},
+        2:[],
+      },
       nowCostsId: undefined,    // 现询
       policyNumberForm: {
         jqpolicyno: "",
@@ -2930,9 +3002,6 @@ export default {
       zhongmeiInsuranceDataTable: [], //中煤驾意险产品明细方案数据
       zhongmeiaccidentalDrivingVo: {}, //中煤驾意险最终选中字段
       pinganInsuranceData: [], //平安驾意险产品列表数据
-      pingantemplateSelection:'',
-      pinganInsuranceDataTable:[],
-      pinganInsurancetype:'',
       currentCell: null,
       feeDetailInfo: [], //费用明细信息
       immediatelyValue: false,
@@ -3093,6 +3162,8 @@ export default {
       underwritingdialogVisible: false, //核保信息   显示/隐藏
       renewalCodedialogVisible: false, //转保确认码输入
       hbsubmitdialogVisible: false, //核保弹框
+      signaturedialogVisible:false, //生成签章
+      signaturecode:null,
       Carinsurance: {
         jqinsurance: "1", //交强险
         syinsurance: "1", //商业险
@@ -4822,29 +4893,34 @@ export default {
         this.isBottom = false;
       }
     },
-    pinganInsuranceChange(index) {
+    pinganInsuranceChange(index,index1,val) {
       if (!index) {
         return;
       }
-      this.pingantemplateSelection = index;
-      // this.accidentFormPA = Object.assign(
-      //   this.accidentFormPA,
-      //   this.pinganInsuranceData.find((val) => val.projectCode == index)
-      // );
-      // this.pinganInsuranceData
-      //   .find((val) => val.projectCode == index)
-      //   .son.forEach((item) => {
-      //     item.sumAmount =
-      //       Number(item.amount) * Number(this.accidentFormPA.seatNum);
-      //   });
-      this.accidentFormPA.projectName=index
-      this.accidentFormPA.projectCode=this.pinganInsuranceData.find(
-        (val) => val.projectName == index
-      ).projectCode
-      this.pinganInsuranceDataTable = this.pinganInsuranceData.find(
-        (val) => val.projectName == index
-      ).son;
-      console.log( this.accidentFormPA,2222222222);
+      
+      this.accidentFormPA[index1].pingantemplateSelection = index;
+     
+      this.accidentFormPA[index1].projectName=index
+        val.map(val1=>{
+          if(val1.projectName == index){
+            val1.son.forEach(val3=>{
+              val3.quantity='1'
+            })
+            this.accidentFormPA[index1].pinganInsuranceDataTable= val1.son
+            this.accidentFormPA[index1].projectCode= val1.projectCode
+          }
+        })
+        console.log(this.accidentFormPA[index1],index,4444444444);
+      
+      // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
+      //   // val1.map(
+      //   //   (val) => val.projectName == index
+      //   // ).projectCode
+      //   }
+      //   )
+      // this.accidentFormPA[index1].pinganInsuranceDataTable = this.pinganInsuranceData.find(
+      //   (val) => val.projectName == index
+      // ).son;
     },
     taikangInsuranceChange(index) {
       if (index) {
@@ -5138,8 +5214,8 @@ export default {
     numberCopieschangeTk(index) {
       this.accidentFormTk.sumPremium = Number(this.accidentPremiumTk) * index;
     },
-    numberCopieschangePA(index) {
-      this.accidentFormPA.premium = Number(this.accidentPremiumPA) * index;
+    numberCopieschangePA(index,index1) {
+      this.accidentFormPA.premium = Number(this.accidentFormPA[index1].accidentPremiumPA ) * index;
 
     },
     numberCopieschangeZM(index) {
@@ -5418,34 +5494,35 @@ export default {
         ? selectRow.underwritingDescription
         : ""; //重新赋值修改选中协议承保描述
       if (this.$route.path != "/task/external/externalOrders")
-        this.$api.letter
+      if(item.namesimple  == "平安财险" ){
+        this.$api.letter.getPingAnDrivingInsuranceRule({
+          cimodelclass:  this.carInfo.cimodelclass,
+          isUseCombine:'Y',
+          tonNumber:this.carInfo.limitLoad,
+          ownAttribute:'03',
+          useAttribute: this.carInfo.carnature,
+          ruleSeatNum:Number(this.carInfo.seatCount),
+          agreementId: item.agreementId,
+        }).then(res=>{
+          this.pinganInsuranceData= res.data;
+          console.log( res.data,5555555555555);
+        })
+        return
+      }
+        this.$api.letter 
           .getDrivingInsuranceRule({
             companyCode: item.id,
             agreementId: item.agreementId,
             seatNum:
               item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
-                ? Number(this.carInfo.seatCount)
+                ? 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: item.namesimple  == "平安财险" 
-                  ? this.carInfo.cimodelclass
-                  : "",
-              isUseCombine:item.namesimple  == "平安财险" 
-              ? 'Y'
-              : "",
-              tonNumber:item.namesimple  == "平安财险" 
-              ? this.carInfo.limitLoad
-              : "",
-              ownAttribute:item.namesimple  == "平安财险" 
-              ? '03'
-              : "",
-              useAttribute: item.namesimple  == "平安财险" 
-                  ? this.carInfo.carnature
-                  : "",
+          
           })
           .then((res) => {
             if (res.code == 200) {
@@ -5461,7 +5538,6 @@ export default {
                   this.boHaiaccidentDataList = res.data;
                   break;
                 case "中煤财险":
-                case "平安财险":
                   this[item.cnName + +"InsuranceData"] = res.data;
                   break;
                 case "紫金财险":
@@ -5653,6 +5729,7 @@ export default {
     RSDrivingRadio(row) {
       this.RSDrivingChange(row);
     },
+    
     //安盛驾意险选择
     ASDrivingRadio(row) {
       this.anshengInsurancetype = row.projectCode;
@@ -5663,18 +5740,104 @@ export default {
       // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
       // this.anshengaccidentalDrivingVo.projectName = row.projectName;
     },
-    //平安驾意险选择
-    PADrivingRadio(row) {
-      this.accidentPremiumPA = row.premium;
-      this.accidentFormPA.quantity = '1';
-      this.accidentFormPA.sellListSize =Number(row.sellListSize) ;
-      this.accidentFormPA.premium = row.premium
-      this.pinganInsurancetype = row.code;
-      this.pinganaccidentalDrivingVo = Object.assign({
-        ...this.pinganaccidentalDrivingVo,
-       ...row,
-       ...this.accidentFormPA,
+    pinganDetail(row,agreementId) {
+      this.pinganDataDetailVisible=false
+      this.$api.letter
+        .productDetailsQuery({ agreementId,
+          packageCode:row.code,
+          productCode:row.productCode,
+          version:row.version,
+         })
+        .then((res) => {
+          if(res.code==200){
+            this.pinganDataDetailVisible=true
+            this.pinganDataDetail=res.data
+          }
+          else{
+            this.$message.err(res.msg)
+          }
+        });
+    },
+    sameItem(array1,array2) {
+      return array2.find(item => {
+         array1.some(innerItem => innerItem.code === item.code)
+      }
+      );
+    },
+    PADrivingCheckbox(event,row,agreementId,index) {
+      // const checkedVal = this.accidentFormPA[index].pinganInsuranceDataTable.find(x => x.cameraId === item.cameraId)
+      const isSelected = event.some(selectedRow => selectedRow.code == row.code);
+      let isIndex =null
+      let amount =null
+      event.find((selectedRow,selectedIndex) => {
+        if(selectedRow.code == row.code){
+          isIndex= selectedIndex
+        }
       });
+      if(event.length>0 && isSelected){
+          this.$api.letter
+          .productDetailsQuery({ agreementId,
+            packageCode:row.code,
+            productCode:row.productCode,
+            version:row.version,
+          })
+          .then((res) => {
+            if(res.code==200){
+              res.data.forEach(ele=>{
+               amount+=Number(ele.unitInsuredAmount)?Number(ele.unitInsuredAmount):0
+              })
+              event[isIndex].amount=amount
+            }
+            else{
+              this.$message.err(res.msg)
+            }
+          });
+      }
+      event.forEach((res,indexOf)=>{
+          res.projectName=this.accidentFormPA[index].projectName
+          res.projectCode=this.accidentFormPA[index].projectCode
+          res.combineProductType=this.accidentFormPA[index].combineProductType
+        })
+      this.pinganaccidentalDrivingVo[index]=event
+    },
+    //平安驾意险选择
+    PADrivingRadio(row,agreementId,index) {
+    
+      // this.accidentPremiumPA = row.premium;
+      this.accidentFormPA[index].quantity = '1';
+      this.accidentFormPA[index].sellListSize =Number(row.sellListSize) ;
+      this.accidentFormPA[index].premium = row.premium
+      this.accidentFormPA[index].combineProductType = row.combineProductType
+      this.accidentFormPA[index].accidentPremiumPA = row.premium
+      this.accidentFormPA[index].pinganInsurancetype = row.code;
+
+      this.$api.letter
+        .productDetailsQuery({ agreementId,
+          packageCode:row.code,
+          productCode:row.productCode,
+          version:row.version,
+         })
+        .then((res) => {
+          if(res.code==200){
+            this.accidentFormPA[index].amount=0
+            res.data.forEach(e=>{
+                this.accidentFormPA[index].amount+=Number(e.unitInsuredAmount)?Number(e.unitInsuredAmount):0
+            })
+            this.pinganaccidentalDrivingVo[index]={
+            ...row,
+            ...this.accidentFormPA[index],
+            };
+          }
+          else{
+            this.$message.err(res.msg)
+            this.pinganaccidentalDrivingVo[index]={
+            ...row,
+            ...this.accidentFormPA[index],
+            };
+          }
+        });
+
+
     },
     ZADrivingRadio(row) {
       this.ZADrivingChange(row);
@@ -5988,12 +6151,17 @@ export default {
       this.accidentForm.fen = 1;
       this.accidentForm.premium = 0;
     },
-    clearAccidentFormPA() {
-      this.accidentFormPA = {};
-      this.accidentFormPA.quantity = 1;
-      this.accidentFormPA.premium = 0;
-      this.pinganaccidentalDrivingVo = {};
-      this.pinganInsuranceDataTable = [];
+    clearAccidentFormPA(index) {
+      // this.accidentFormPA[index]={
+      //   quantity: 1,
+      //   premium: 0,
+      //   pingantemplateSelection:'',
+      //   pinganInsuranceDataTable:[], 
+      //   pinganInsurancetype:'',
+      // }
+        this.pinganaccidentalDrivingVo[index] = {};
+        console.log(this.accidentFormPA[index],9999999999);
+
     },
     clearAccidentFormTk() {
       this.taikangaccidentalDrivingVo = {};
@@ -6137,6 +6305,32 @@ export default {
         }
       });
     },
+    signature(companyId){
+      this.signaturedialogVisible = true;
+
+      this.$api.letter.pingAnsignEleApply({companyId}).then((res) => {
+        if (res.code == 200 && res.data) {
+              // 查找并删除旧的二维码DOM元素
+          let element = document.getElementById("signaturecode");
+          while (element.firstChild) {
+            element.removeChild(element.firstChild);
+          }
+          this.signaturecode = new QRCode("signaturecode", {
+            text:  res.data.resultMessage, 
+            width: 180,
+            height: 180,
+            colorDark: "#000000",
+            colorLight: "#ffffff",
+            correctLevel: QRCode.CorrectLevel.H,
+          });
+        } else { 
+          this.$message({ 
+            message: res.msg || "暂无数据!",
+            type: "warning",
+          });
+        }
+      });
+    },
     jqcheckedChange(e) {
       if (e) {
         this.jqstartDate = this.transformTime1();
@@ -7060,12 +7254,13 @@ export default {
     // 平安报价
     pingan(num, id) {
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
-      let accidentalDrivingVo={}
-      if(this.pinganaccidentalDrivingVo &&this.pinganaccidentalDrivingVo.projectCode){
-        accidentalDrivingVo = Object.assign({
-            ...this.pinganaccidentalDrivingVo,
-            ...this.accidentFormPA,
-        });
+      let accidentalDrivingVo=[]
+      if(this.pinganaccidentalDrivingVo){
+        accidentalDrivingVo=this.pinganaccidentalDrivingVo
+        // accidentalDrivingVo = Object.assign({
+        //     ...this.pinganaccidentalDrivingVo,
+        //     ...this.accidentFormPA,
+        // });
       }
       let params = {
         accidentalDrivingVo,
@@ -8823,9 +9018,10 @@ export default {
                               customClass: "customNotifyClass",
                               type: "error",
                               duration: 0,
-                            });
+                            }); 
                           }
                         });
+
                     } else {
                       loading.close();
                       this.$message({
@@ -10919,5 +11115,8 @@ export default {
   .el-input-group__append {
     vertical-align: baseline;
   }
+  .pinganTable .el-table__header-wrapper .el-checkbox {
+    display: none;
+  }
 }
 </style>

+ 9 - 10
src/views/Task/daikeComponents/KtOrder.vue

@@ -147,8 +147,9 @@
                   item.orderstatus == '4') &&
                 ['紫金财险'].includes(item.inscompany)
                 " @click="cancelorder(item)" class="red_color">撤单</el-button>
-              <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(item)"
+              <el-button size="mini" type="text" v-if="item.orderstatus == '2' && item.inscompany !== '平安财险'" @click="carcode(item)"
                 class="red_color">二维码</el-button>
+              <el-button  size="mini"  class="red_color" v-if="item.orderstatus == '2' && item.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button>
               <el-button size="mini" type="text" class="green_color"
                 @click="OrderDetails(scope.row, item)">查看详情</el-button>
               <el-button size="mini" type="text" :loading="querystatusLoaing" v-if="item.orderstatus == '2' &&
@@ -181,16 +182,13 @@
                     <i class="el-icon-arrow-down el-icon--right"></i>
                   </span>
                   <el-dropdown-menu slot="dropdown">
-                    <el-dropdown-item>
-                      <el-button v-if="item.inscompany == '平安财险'" size="mini" type="text" style="color: #2d4d89"
-                        @click="signature(item)">生成签章</el-button>
-                    </el-dropdown-item>
+                  
                     <el-dropdown-item>
                       <el-button size="mini" type="text" style="color: #2d4d89"
                         @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
                     </el-dropdown-item>
-                    <el-dropdown-item>
-                      <el-button type="text" size="mini" style="color: #2d4d89"
+                    <el-dropdown-item v-if="item.inscompany !== '平安财险'">
+                      <el-button  type="text" size="mini" style="color: #2d4d89"
                         @click="revokeCode(item.id)">撤销二维码</el-button>
                     </el-dropdown-item>
                   </el-dropdown-menu>
@@ -445,14 +443,15 @@
               <el-button type="text" size="small" style="color: #2d4d89"
                 @click="OrderDetails(quotationhistoryRow, scope.row)">查看详情</el-button>
               <el-button size="small" type="text" @click="bjdpreview(scope.row.id, scope.row.userId)">报价单</el-button>
-              <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
+              <el-button size="small" v-show="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'" type="text"
                 @click="carcode(scope.row)">付款码</el-button>
+              <el-button  size="small"  v-if="scope.row.orderstatus == '2' && scope.row.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button>
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                   scope.row.orderstatus == '2' ||
                   scope.row.orderstatus == '4') &&
                 ['紫金财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
-              <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2'"
+              <el-button  type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' &&  scope.row.inscompany !== '平安财险'"
                 @click="revokeCode(scope.row.id)">撤销二维码</el-button>
               <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' &&
                 [
@@ -478,6 +477,7 @@
         </el-table>
       </div>
     </el-dialog>
+    <!-- 生成签章 -->
     <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
       <div style="padding:0 20px">
         <div  id="signaturecode" ref="signaturecode"></div>
@@ -1258,7 +1258,6 @@ export default {
             colorLight: "#ffffff",
             correctLevel: QRCode.CorrectLevel.H,
           });
-         
         } else { 
           this.$message({ 
             message: res.msg || "暂无数据!",