diff --git a/src/api/emis/emisInvoiceCancellation.js b/src/api/emis/emisInvoiceCancellation.js index 828566b7..f67f6fa7 100644 --- a/src/api/emis/emisInvoiceCancellation.js +++ b/src/api/emis/emisInvoiceCancellation.js @@ -62,3 +62,20 @@ export function rejectEmisInvoiceCancellation(data) { data: data }) } + +//红冲发票作废申请POST请求 +export function addInvoiceReversalRed(data) { + return request({ + url: '/emis/emisInvoiceCancellation/red', + method: 'post', + data: data + }) +} +//红冲编辑 +export function updateInvoiceReversalRed(data) { + return request({ + url: 'emis/emisInvoiceCancellation/red/edit', + method: 'post', + data: data + }) +} diff --git a/src/views/emis/emisSettleBill/InvoiceReversalList.vue b/src/views/emis/emisSettleBill/InvoiceReversalList.vue index 22fecbca..c64a8e36 100644 --- a/src/views/emis/emisSettleBill/InvoiceReversalList.vue +++ b/src/views/emis/emisSettleBill/InvoiceReversalList.vue @@ -6,10 +6,22 @@ - + + +
+ + 发票申请序号 + 运单号 + 账单号 + 发票号 + +
+ +
@@ -32,14 +44,44 @@ clearable> - + + + + + + + + + + + + + + + + + + + + + +
+ @selection-change="handleSelectionChange" @row-dblclick="handleView" v-loading="loading">
@@ -62,6 +104,14 @@ 查看 + + 红冲发票 + + + 修改红冲发票号 +
@@ -73,19 +123,21 @@ min-width="150" /> - + + min-width="150" /> + min-width="150" /> + min-width="150" /> - - + + + + + + + @@ -100,10 +152,21 @@ 已撤销 + + + + + + + +
+ + + + + diff --git a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue index 877ff2d0..8ef8e927 100644 --- a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue +++ b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue @@ -13,18 +13,24 @@ - - - - + + + + - + + + + + + + @@ -122,13 +128,15 @@ export default { invoiceId:data.invoiceId, applyReason: data.applyReason, applyTextUrl: data.applyTextUrl, - applySeqNo: data.emisSettleInvoiceRecord?.applySeqNo || '' + applySeqNo: data.emisSettleInvoiceRecord?.applySeqNo || '', + } this.fileList = this.form.applyTextUrl ? [{ name: this.form.applyTextUrl.split('/').pop(), url: this.form.applyTextUrl }] : []; - this.invoiceList = [data.emisSettleInvoiceRecord ]|| []; + // this.invoiceList = [data.emisSettleInvoiceRecord ]|| []; + this.invoiceList = [data]|| []; } else { this.reset(); } diff --git a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationList.vue b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationList.vue index f0164ef1..2699531f 100644 --- a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationList.vue +++ b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationList.vue @@ -6,10 +6,22 @@ - + +
+ + 发票申请序号 + 运单号 + 账单号 + 发票号 + +
+ + +
@@ -39,13 +51,26 @@ + + + + + + + + +
+ @selection-change="handleSelectionChange" @row-dblclick="handleView" v-loading="loading">
@@ -81,13 +106,19 @@ - - + + + + + + + + @@ -102,6 +133,12 @@ 已撤销 + + + @@ -150,10 +187,13 @@ export default { currentId:null, currentStatus:null, selectedRows:[], + queryCode:null, + queryOrderType:"4", queryParams: { pageNum: 1, pageSize: 20, auditStatus:null, + invoiceStatus:null, params:{ applySeqNo:null, invoiceNo:null, @@ -161,6 +201,7 @@ export default { settleBillNo:null, beginApplyDate:null, endApplyDate:null, + companyName:null, salesmen:null, payee:null, custNo:null, @@ -196,7 +237,6 @@ export default { this.openType="view"; }, handleCancel(row) { - console.log('row--撤销') //确认撤销吗 const ids = row.id || this.ids; this.$modal.confirm('是否确认撤销').then(function () { @@ -261,6 +301,27 @@ export default { }, initQueryParams(){ let params={...this.queryParams}; + if(this.queryOrderType=='1'){ + params.params.billCode = this.queryCode; + params.params.applySeqNo = null; + params.params.invoiceNo = null; + params.params.settleBillNo = null; + }else if(this.queryOrderType=='2'){ + params.params.settleBillNo = this.queryCode; + params.params.billCode = null; + params.params.applySeqNo = null; + params.params.invoiceNo = null; + }else if(this.queryOrderType=='3'){ + params.params.invoiceNo = this.queryCode; + params.params.billCode = null; + params.params.applySeqNo = null; + params.params.settleBillNo = null; + }else{ + params.params.applySeqNo = this.queryCode; + params.params.billCode = null; + params.params.invoiceNo = null; + params.params.settleBillNo = null; + } params = this.addDateRange(params, this.dateTimeRange,'applyDate'); return params; }, @@ -327,6 +388,22 @@ export default { if (j === 'emisSettleInvoiceRecord.applySeqNo') { return v['emisSettleInvoiceRecord']['applySeqNo']; } + if (j === 'emisSettleInvoiceRecord.salerCompanyName') { + return v['emisSettleInvoiceRecord']['salerCompanyName']; + } + if (j === 'emisSettleInvoiceRecord.invoiceNo') { + return v['emisSettleInvoiceRecord']['invoiceNo']; + } + if (j === 'emisSettleInvoiceRecord.createTime') { + return v['emisSettleInvoiceRecord']['createTime']; + } + if(j === 'invoiceStatus'){ + if (v[j] === '1') { + return '已开票' + } else{ + return '已作废' + } + } return v[j] })) },