|
@@ -535,7 +535,8 @@
|
|
|
<el-button @click="newInvoiceDialog = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="makeInvoice()" v-if="this.invoice.state==='审核中'">确认开票</el-button>
|
|
|
<el-button type="danger" @click="refuseApply()" v-if="this.invoice.state==='审核中'">拒绝申请</el-button>
|
|
|
- <el-button type="danger" @click="cancelling()" v-if="this.invoice.state==='申请作废'">同意作废</el-button>
|
|
|
+ <el-button type="danger" @click="refuseCancel()" v-if="this.invoice.state==='申请作废'">拒绝作废</el-button>
|
|
|
+ <el-button type="primary" @click="cancelling()" v-if="this.invoice.state==='申请作废'">同意作废</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -970,6 +971,34 @@ export default {
|
|
|
});
|
|
|
|
|
|
return sums;
|
|
|
+ },
|
|
|
+ refuseCancel(){
|
|
|
+ this.$confirm('确认拒绝作废?','提示',{
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ center: true
|
|
|
+ }).then(()=>{
|
|
|
+ this.$api.financeInvoice.refuseCancel(this.invoice.id).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '拒绝成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.newInvoiceDialog= false;
|
|
|
+ this.getList1();
|
|
|
+ }else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '拒绝失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
|