Explorar o código

财务管理添加手动更新签单日期操作
结算页面添加手动更新签单日期操作

hxl13994548489 hai 1 ano
pai
achega
a4e3c04af3

+ 11 - 1
src/components/TemplateTable/index.vue

@@ -213,7 +213,11 @@
     </el-form>
 
     <slot v-if="custom" show-overflow-tooltip></slot>
-
+    <slot v-if="tipFlag">
+      <div >
+        <span style="color:red">注意更新签单日期</span>
+      </div>
+    </slot>
     <el-table
       ref="table"
       :show-summary="tableConfig.showSummary || false"
@@ -421,6 +425,12 @@ export default {
     KtButton,
   },
   props: {
+    tipFlag: {
+      type: Boolean,
+      default: () => {
+        return false;
+      },
+    },
     custom: {
       type: Boolean,
       default: () => {

+ 8 - 1
src/http/moudules/readPdf.js

@@ -88,4 +88,11 @@ export const updateOrderDateRecord = (params) => {
    url: '/subOrder/updateOrderDateRecord?subOrderId=' + params,
    method: 'get',
   })
-}
+}
+//更新结算表的签单日期
+export const  updatePlySignDate= (id) => {
+  return axios({
+    url: '/insOrderReadPdf/updatePlySignDate?id='+id,
+    method: 'get',
+  })
+}

+ 22 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -2,6 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable
+      tipFlag
       ref="templateTable"
       :formList="formList"
       :btnGroup="btnGroup"
@@ -60,6 +61,7 @@
             :value="item.dictTag"></el-option>
         </el-select>
       </template> -->
+
     </templateTable>
     <el-dialog
       title="编辑"
@@ -1083,6 +1085,16 @@ export default {
               return this.haldDelete(row);
             },
           },
+          {
+            type: "primary",
+            label: "更新签单日期",
+            click: (row, index) => {
+              return this.haldUpdateSignDate(row);
+            },
+            hide:(row)=>{
+              return row.orderno && !row.signDate
+            }
+          },
         ],
       },
       pageDataPro: {
@@ -1209,6 +1221,16 @@ export default {
     });
   },
   methods: {
+    //更新签单日期
+    haldUpdateSignDate(row){
+      this.$api.readPdf.updatePlySignDate(row.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message.success("操作成功");
+            this.findPage();
+          }
+        });
+    },
     getCompanyList() {
       this.$api.task.queryPartnerCompaniesList("2").then((res) => {
         this.companyList = res.data;

+ 22 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/HandlingFees.vue

@@ -2,6 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable
+      tipFlag
       custom
       :formList="formList"
       ref="templateTable"
@@ -683,6 +684,7 @@
 import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
 import templateTable from "@/components/TemplateTable/index.vue";
 import { mapState } from "vuex";
+import {updatePlySignDate} from "../../../../../http/moudules/readPdf";
 
 export default {
   name: "baosi",
@@ -1127,6 +1129,16 @@ export default {
               return this.haldDelete(row);
             },
           },
+          {
+            type: "primary",
+            label: "更新签单日期",
+            click: (row, index) => {
+              return this.haldUpdateSignDate(row);
+            },
+            hide:(row)=>{
+              return row.orderno && !row.signDate
+             }
+          },
           // {
           //     type:'primary',
           //     label:'结算',
@@ -1311,6 +1323,16 @@ export default {
     });
   },
   methods: {
+    //更新签单日期
+    haldUpdateSignDate(row){
+      this.$api.readPdf.updatePlySignDate(row.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message.success("操作成功");
+            this.findPage();
+          }
+        });
+    },
     //打开批量操作修改比例弹框
     handBatchratio() {
       this.dialogVisibleradio = true;

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

@@ -2,6 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable
+      tipFlag
       ref="templateTable"
       :formList="formList"
       :btnGroup="btnGroup"
@@ -988,6 +989,16 @@ export default {
               return this.haldDelete(row);
             },
           },
+          {
+            type: "primary",
+            label: "更新签单日期",
+            click: (row, index) => {
+              return this.haldUpdateSignDate(row);
+            },
+            hide:(row)=>{
+              return row.orderno && !row.signDate
+            }
+          },
         ],
       },
       fileList: [],
@@ -1104,6 +1115,16 @@ export default {
     this.getCompanyList();
   },
   methods: {
+    //更新签单日期
+    haldUpdateSignDate(row){
+      this.$api.readPdf.updatePlySignDate(row.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message.success("操作成功");
+            this.findPage();
+          }
+        });
+    },
     getCompanyList() {
       this.$api.task.queryPartnerCompaniesList("3").then((res) => {
         this.companyList = res.data;

+ 21 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/HandlingFees.vue

@@ -2,6 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable
+      tipFlag
       custom
       :formList="formList"
       ref="templateTable"
@@ -1075,6 +1076,16 @@ export default {
               return this.deleteBtn(row);
             },
           },
+          {
+            type: "primary",
+            label: "更新签单日期",
+            click: (row, index) => {
+              return this.haldUpdateSignDate(row);
+            },
+            hide:(row)=>{
+              return row.orderno && !row.signDate
+            }
+          },
         ],
       },
       btnGroup: [
@@ -1207,6 +1218,16 @@ export default {
     this.getCompanyList();
   },
   methods: {
+    //更新签单日期
+    haldUpdateSignDate(row){
+      this.$api.readPdf.updatePlySignDate(row.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message.success("操作成功");
+            this.findPage();
+          }
+        });
+    },
     //打开批量操作修改比例弹框
     handBatchratio() {
       this.dialogVisibleradio = true;

+ 21 - 0
src/views/FinancialManagement/CarInsurance/PlatformSettlement/NonVehicleBalance.vue

@@ -2,6 +2,7 @@
   <!--布局容器-->
   <div class="container" style="width: 99%; margin-top: 0px">
     <templateTable
+      tipFlag
       ref="templateTable"
       :formList="formList"
       custom
@@ -1379,6 +1380,16 @@ export default {
               return this.deleteBtn(row);
             },
           },
+          {
+            type: "primary",
+            label: "更新签单日期",
+            click: (row, index) => {
+              return this.haldUpdateSignDate(row);
+            },
+            hide:(row)=>{
+              return row.orderno && !row.signDate
+            }
+          },
         ],
       },
       formTableData: [],
@@ -1580,6 +1591,16 @@ export default {
   },
 
   methods: {
+    //更新签单日期
+    haldUpdateSignDate(row){
+      this.$api.readPdf.updatePlySignDate(row.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message.success("操作成功");
+            this.findPage();
+          }
+        });
+    },
     drivinguploadExcel(file, fileList) {
       this.progressPercent = 0;
       const params = new FormData(); // 声明formData数据类型

+ 13 - 0
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyintasks.vue

@@ -197,6 +197,8 @@
             @click="OrderDetails(scope.row)"
           />
           <kt-button label="轨迹" type="text" @click="trajectory(scope.row)" />
+          <kt-button  v-if="!scope.row.signingTime"  label="更新签单时间" type="text"
+                      @click="updateDate(scope.row)" />
         </template>
       </el-table-column>
     </el-table>
@@ -602,6 +604,17 @@ export default {
     window.removeEventListener("resize", this.getDimensions);
   },
   methods: {
+    //更新订单的签单和缴费时间
+    updateDate(row) {
+      this.$api.readPdf.updateOrderDate(row.orderno).then((res) => {
+        if (res.code == 200) {
+          this.$message.info(res.msg);
+          this.findPage();
+        } else{
+          this.$message.error(res.msg);
+        }
+      });
+    },
     auditstatusCap(val) {
       if (val == "0") {
         return "未审核";

+ 13 - 0
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -79,6 +79,8 @@
           <kt-button label="轨迹" type="text" @click="trajectory(scope.row)" />
           <kt-button :label="scope.row.problemOrder == '0' ? '疑问订单' : '取消疑问订单'" type="text"
             @click="doubtfulOrders(scope.row)" />
+          <kt-button  v-if="!scope.row.signingTime"  label="更新签单时间" type="text"
+                     @click="updateDate(scope.row)" />
         </template>
       </el-table-column>
     </el-table>
@@ -432,6 +434,17 @@ export default {
     window.removeEventListener('resize', this.getDimensions);
   },
   methods: {
+    //更新订单的签单和缴费时间
+    updateDate(row) {
+      this.$api.readPdf.updateOrderDate(row.orderno).then((res) => {
+        if (res.code == 200) {
+          this.$message.info(res.msg);
+          this.findPage();
+        } else{
+          this.$message.error(res.msg);
+        }
+      });
+    },
     auditstatusCap(val) {
       if (val == "0") {
         return "未审核";

+ 15 - 12
src/views/Task/UpdateOrderData/Index.vue

@@ -62,8 +62,8 @@
         <template slot-scope="scope">
           <kt-button label="保单Pdf详情" type="text"    @click="cpolicy(scope.row)" />
           <kt-button label="重新生成保单" type="text" @click="regenerate(scope.row)" />
-          <kt-button label="保单时间更新" type="text"  @click="updateDate(scope.row)" />  
-          <kt-button label="更新时间记录" type="text" @click="udapteOrderDateRecord(scope.row)" />  
+          <kt-button label="保单时间更新" type="text"  @click="updateDate(scope.row)" />
+          <kt-button label="更新时间记录" type="text" @click="udapteOrderDateRecord(scope.row)" />
         </template>
       </el-table-column>
     </el-table>
@@ -589,11 +589,11 @@ export default {
         console.log(res.data)
         if (res.code == 200) {
           console.log(res.data)
-           this.warrantObj =res.data; 
+           this.warrantObj =res.data;
         } else{
           this.$message.error(res.msg);
-        } 
-      }); 
+        }
+      });
     },
     //重新生成
     regenerate(row) {
@@ -606,10 +606,11 @@ export default {
            this.$api.readPdf.productOrderPdf(row.subOrderId).then((res) => {
               if (res.code == 200) {
                 this.$message.info("重新生成成功");
+                this.findPage();
               } else{
                 this.$message.error("重新生成失败");
-              } 
-            }); 
+              }
+            });
         })
         .catch(() => {
           this.$message({
@@ -617,17 +618,18 @@ export default {
             message: "取消",
           });
         });
-      
+
     },
     //更新订单的签单和缴费时间
     updateDate(row) {
        this.$api.readPdf.updateOrderDate(row.subOrderId).then((res) => {
         if (res.code == 200) {
           this.$message.info(res.msg);
+          this.findPage();
         } else{
           this.$message.error(res.msg);
-        } 
-      }); 
+        }
+      });
     },
     //更新记录
     udapteOrderDateRecord(row) {
@@ -635,10 +637,11 @@ export default {
        this.$api.readPdf.updateOrderDateRecord(row.subOrderId).then((res) => {
         if (res.code == 200) {
           this.updateDateRecord =res.data;
+          this.findPage();
         } else{
           this.$message.error(res.msg);
-        } 
-      }); 
+        }
+      });
     },
     // 设置每页条数
     applyhandleSizeChange(val) {