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

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

@@ -186,6 +186,11 @@ export default {
             },
             click:(row, index) => {return this.openBalanceFun(row)},
         },
+        {
+            type:'primary',
+            label:'作废',
+            click:(row, index) => {return this.handVoid(row)},
+        },
       ]
       },
     };
@@ -200,6 +205,22 @@ export default {
     this.findPage();
   },
   methods: {
+    handVoid(row){
+      this.$api.task
+        .yaidlnvoicing({id:row.id})
+        .then(res => {
+            if (res.code==200) {
+                this.dialogVisible=false
+                this.$message({
+                    message: res.msg ||'操作成功',
+                    type: 'success'
+                })
+            }
+            else{
+                this.$message.error(res.msg)
+            }
+        });
+    },
     getYearData(val){
       this.formData.year=val
     },

+ 1 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/InvoicedAndSettled.vue

@@ -17,7 +17,7 @@
         }' clearable filterable></el-cascader>
       </template>
         </templateTable>
-        <el-dialog title="详情" :visible.sync="dialogVisible" width="80%" :before-close="handleClose">
+        <el-dialog title="详情" :visible.sync="dialogVisible" width="60%" :before-close="handleClose">
             <templateTable ref="templateTable" :formList="formList1" @handleSearchList="handleSearchList1"
                 :tableConfig="tableConfigDetail" :data="formTableData" @findPage="findPageDetail">
             </templateTable>

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

@@ -186,6 +186,11 @@ export default {
             },
             click:(row, index) => {return this.openBalanceFun(row)},
         },
+        {
+            type:'primary',
+            label:'作废',
+            click:(row, index) => {return this.handVoid(row)},
+        },
       ]
       },
     };
@@ -200,6 +205,22 @@ export default {
     this.findPage();
   },
   methods: {
+    handVoid(row){
+      this.$api.task
+        .yaidlnvoicing({id:row.id})
+        .then(res => {
+            if (res.code==200) {
+                this.dialogVisible=false
+                this.$message({
+                    message: res.msg ||'操作成功',
+                    type: 'success'
+                })
+            }
+            else{
+                this.$message.error(res.msg)
+            }
+        });
+    },
     getYearData(val){
       this.formData.year=val
     },

+ 1 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicedAndSettled.vue

@@ -17,7 +17,7 @@
         }' clearable filterable></el-cascader>
       </template>
         </templateTable>
-        <el-dialog title="详情" :visible.sync="dialogVisible" width="80%" :before-close="handleClose">
+        <el-dialog title="详情" :visible.sync="dialogVisible" width="60%" :before-close="handleClose">
             <templateTable ref="templateTable" :formList="formList1" @handleSearchList="handleSearchList1"
                 :tableConfig="tableConfigDetail" :data="formTableData" @findPage="findPageDetail">
             </templateTable>