소스 검색

被保人文字修改,批量修改起止时间,撤销二维码二次确认

yaoyao 2 년 전
부모
커밋
a517b26c0f

+ 9 - 0
src/http/moudules/insCompany.js

@@ -609,6 +609,15 @@ export const bulkOperation = (data) => {
     data
   })
 }
+
+// 批量修改起止时间
+export const costsDateBatch = (data) => {
+  return axios({
+    url: '/plt/new/agreement/costs/costsDateBatch',
+    method: "post",
+    data
+  })
+}
 //批量删除
 export const deleteBatch = (data) => {
   return axios({

+ 60 - 3
src/views/AgreementManage/CarInsurance/AgreementProductFee.vue

@@ -81,8 +81,9 @@
       :data="productPageResult" :columns="productColumns" @findPage="productCostFindPage" button2Name="编辑"
       button2Type="text" button3Type="text" button5Type="text" :button2style="{ color: '#2D4D89' }"
       :button3style="{ color: '#D42426' }" :button5style="{ color: '#2D4D89' }" permsButton2="agreement:input:productCost"
-      @handleButton2="productUpdate" deleteName="批量修改" @handleDelete="batchUpdate" @customTool="batchDelete"
-      customToolName="批量删除" button3Name="删除" permsButton3="agreement:input:productCost" @handleButton3="productDelete"
+      @handleButton2="productUpdate" deleteName="批量修改费用" @handleDelete="batchUpdate" @customTool="batchDelete"
+      @customTool1="customTool1" customToolName1="批量修改起止时间"
+      customToolName="批量删除" button3Name="删除"  permsButton3="agreement:input:productCost" @handleButton3="productDelete"
       button5Name="轨迹" @handleButton5="trajectory" button3Icon="">
     </kt-common-table>
     <el-dialog :title="productCostAddDialogTitle" :visible.sync="productCostAddVehicleFactorVisible" width="80%" top="6vh"
@@ -594,6 +595,35 @@
           over-size="small" @cancelForm="productHistoryDetailsDialogVisible = false" :disabled="true"></Product-Cost-Form>
       </div>
     </el-dialog>
+
+    
+    <el-dialog title="批量修改起止时间" :visible.sync="showUpdate1" width="30%" top="6vh">
+      <div class="tab-panestyle">
+        <el-form :inline="true" :model="batchUpdateForm1" id="bulkOperation" class="demo-form-inline  tab-panecent" style="padding: 20px;">
+          <el-row>
+            <el-col :span="12">
+              <el-form-item label="费用起期:">
+                <el-date-picker size="small"  v-model="batchUpdateForm1.costsStartDate" type="datetime"
+                  placeholder="选择结束日期" value-format="yyyy-MM-dd HH:mm:ss">
+                </el-date-picker>
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
+              <el-form-item label="费用止期:">
+                <el-date-picker size="small"  v-model="batchUpdateForm1.costsEndDate" type="datetime"
+                  placeholder="选择结束日期" value-format="yyyy-MM-dd HH:mm:ss" @change="checkStartDate1">
+                </el-date-picker>
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="showUpdate1 = false">取 消</el-button>
+        <el-button size="small" style="background: #2D4D89;color: #fff;border-color: #2D4D89;" type="primary"
+          @click="batchCostsubmit1">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -1185,6 +1215,8 @@ export default {
         productName: "",
       },
       permissions: null,
+      showUpdate1: false,
+      batchUpdateForm1: {},
     }
   },
   // 生命周期函数
@@ -1406,6 +1438,24 @@ export default {
         }
       }
     },
+    // 批量修改起止时间
+    batchCostsubmit1() {
+      this.$api.insCompany.costsDateBatch(this.batchUpdateForm1).then((res) => {
+        if (res.code == '200') {
+          this.showUpdate1 = false;
+          this.productCostFindPage();
+          this.$message({
+            type: 'success',
+            message: res.msg,
+          });
+        } else {
+          this.$message({
+            type: 'error',
+            message: res.msg,
+          });
+        }
+      });
+    },
     batchCostsubmit() {
       console.log(this.batchUpdateForm);
       this.$api.insCompany.bulkOperation(this.batchUpdateForm).then((res) => {
@@ -1525,7 +1575,6 @@ export default {
       this.productcopyItemPageRequest.agreementId = "";
       this.productcopyItemPageRequest.productCode = [];
       this.productcopyItemResult = [];
-
     },
     //产品删除
     productDelete({ row, column }) {
@@ -1608,6 +1657,14 @@ export default {
         }
       }
     },
+    // 批量修改起止时间
+    customTool1(data) {
+      this.batchUpdateForm1 = {
+        ids: data
+      }
+      // costsDateBatch
+      this.showUpdate1 = true
+    },
     //产品批量编辑
     batchUpdate(data) {
       this.batchUpdateForm = {

+ 22 - 0
src/views/Core/KtCommonTable.vue

@@ -439,6 +439,17 @@
         style="float: left"
         v-if="showBatchDelete & showOperation"
       />
+
+      <kt-button
+        :label="customToolName1"
+        :perms="permscustomTool"
+        :size="size"
+        type="danger"
+        @click="customToolMethod1()"
+        :disabled="selections.length === 0"
+        style="float: left"
+        v-if="customToolseletted"
+      />
       <kt-button
         :label="settledName"
         :perms="permsSettled"
@@ -506,6 +517,9 @@ export default {
     customToolName: {
       type: String,
     },
+    customToolName1: {
+      type: String,
+    },
     permscustomTool: {
       type: String,
     },
@@ -1022,6 +1036,14 @@ export default {
       this.selections.map((item) => idlist.push(item.id));
       this.$emit("customTool", idlist);
     },
+    
+    //自定义批量操作按钮1
+    customToolMethod1() {
+      let idlist = [];
+      this.selections.map((item) => idlist.push(item.id));
+      this.$emit("customTool1", idlist);
+    },
+
     // 删除操作
     delete: function (ids) {
       var _keyName = "id";

+ 26 - 15
src/views/Task/daikeComponents/KtLetter1.vue

@@ -2533,7 +2533,7 @@
             <span>{{ licenseNo }}</span>
           </div>
           <div>
-            <span>投保人:</span>
+            <span>被保人:</span>
             <span>{{ applyName }}</span>
           </div>
           <!-- <div>
@@ -2604,7 +2604,7 @@
         <div class="scan-code">
           <div>保险公司:{{ inscompany }}</div>
           <div>车牌号:{{ licenseNo }}</div>
-          <div>投保人:{{ applyName }}</div>
+          <div>被保人:{{ applyName }}</div>
           <div>交强险起保日期:{{ jqstartdate }}</div>
           <div>商业险起保日期:{{ systartdate }}</div>
           <div>驾意险起保日期:{{ systartdate || jqstartdate }}</div>
@@ -5792,7 +5792,6 @@ export default {
       }
       let starttime = new Date(this.carInfo.registerDate);
       let endtime = new Date(this.carInfo.issueDate);
-      // this.policyHolderInfovalidate();
       if (endtime < starttime) {
         this.$message({ message: "发证日期早于初登日期", type: "error" });
         return;
@@ -5817,8 +5816,6 @@ export default {
                 return
               }
               let res = {};
-              // res = await this.$api.letter.getAllAgreement();
-              // this.$api.letter.getAllAgreement().then((res) => {
               let param = {
                 productId: this.productId,
                 carInfo: this.carInfo,
@@ -5834,6 +5831,7 @@ export default {
               }
               console.log('校验成功,获取列表')
               this.showLoading = true
+              // this.$api.letter.getAllAgreement().then((res) => {
               this.$api.letter.ruleFilterCompany(param).then((res) => {
                 if (res.code == 200) {
                   res.data.map((ele) => {
@@ -5903,8 +5901,10 @@ export default {
                   });
                   return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
                 });
-                  res.data.forEach((e) => {
-                  e.agreement.forEach((el) => (el.disabled = false));
+                res.data.forEach((e) => {
+                  if (e.agreement) {
+                    e.agreement.forEach((el) => (el.disabled = false));
+                  }
                 });
                 }
                 this.totalCompanyList = res.data;
@@ -11419,14 +11419,25 @@ export default {
     },
     // 撤销二维码
     revokeCode(id) {
-      this.$api.letter.getRevokeQrCode(id).then((res) => {
-        if (res.code == 200) {
-          this.$message({
-            message: res.msg,
-            type: "success",
-          });
-          this.QuotationHistory();
-        }
+      this.$confirm('确定撤销二维码?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$api.letter.getRevokeQrCode(id).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.QuotationHistory();
+          }
+        });
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消撤销二维码'
+        });
       });
     },
     //品牌型号查询

+ 2 - 2
src/views/Task/daikeComponents/KtOrder.vue

@@ -320,7 +320,7 @@
             <span>{{ licenseNo }}</span>
           </div>
           <div>
-            <span>投保人:</span>
+            <span>被保人:</span>
             <span>{{ applyName }}</span>
           </div>
           <div v-show="jqpremium">
@@ -384,7 +384,7 @@
         <div class="scan-code">
           <div>保险公司:{{ inscompany }}</div>
           <div>车牌号:{{ licenseNo }}</div>
-          <div>投保人:{{ applyName }}</div>
+          <div>被保人:{{ applyName }}</div>
           <div>交强险起保日期:{{ jqstartdate }}</div>
           <div>商业险起保日期:{{ systartdate }}</div>
           <div>驾意险起保日期:{{ systartdate || jqstartdate }}</div>