|
|
@@ -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
|
|
|
},
|