开票申请记录和已开票‘导出’
This commit is contained in:
parent
031f5b166a
commit
d7253faed2
@ -99,7 +99,7 @@
|
|||||||
slot="pageContent"
|
slot="pageContent"
|
||||||
slot-scope="slotProps"
|
slot-scope="slotProps"
|
||||||
:height="(slotProps.contentHeight)+'px'"
|
:height="(slotProps.contentHeight)+'px'"
|
||||||
|
ref="refTable"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
border
|
border
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -169,6 +169,16 @@
|
|||||||
v-hasPermi="['emis:emisSettleInvoiceRecord:payByInvoice']"
|
v-hasPermi="['emis:emisSettleInvoiceRecord:payByInvoice']"
|
||||||
>发票收款</el-button>
|
>发票收款</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['emis:emisSettleInvoiceRecord:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
@ -663,7 +673,41 @@ export default {
|
|||||||
this.download('emis/emisSettleInvoiceRecord/customExport', {
|
this.download('emis/emisSettleInvoiceRecord/customExport', {
|
||||||
...params,
|
...params,
|
||||||
pageSize:10000
|
pageSize:10000
|
||||||
}, `已开票列表.xlsx`)
|
}, `已开票定制列表.xlsx`)
|
||||||
|
},
|
||||||
|
handleExport(){
|
||||||
|
const loadingInstance = this.$loading({
|
||||||
|
text: '正在导出...'
|
||||||
|
})
|
||||||
|
if(this.selectList&&this.selectList.length>0){
|
||||||
|
this.exportData(this.selectList,loadingInstance);
|
||||||
|
}else{
|
||||||
|
this.initQueryParams();
|
||||||
|
var qParam = {...this.queryParams};
|
||||||
|
qParam.pageNum=1;
|
||||||
|
qParam.pageSize=5000;
|
||||||
|
listEmisSettleInvoiceRecord(this.addDateRange(qParam, this.dateTimeRange, 'createTime')).then(response => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
this.exportData(response.rows, loadingInstance);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
exportData(selData,loadingInstance){
|
||||||
|
const curList =selData
|
||||||
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
|
const exportParam=this.$refs.refTable.getExportParam();
|
||||||
|
const tHeader = exportParam.header;
|
||||||
|
const filterVal = exportParam.filter;
|
||||||
|
const data = this.formatJson(filterVal, curList, selData)
|
||||||
|
excel.export_json_to_excel({
|
||||||
|
header: tHeader,
|
||||||
|
data,
|
||||||
|
filename: '已开票列表',
|
||||||
|
autoWidth: true
|
||||||
|
})
|
||||||
|
loadingInstance.close()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
formatJson(filterVal, jsonData, resData) {
|
formatJson(filterVal, jsonData, resData) {
|
||||||
let index = 0
|
let index = 0
|
||||||
@ -678,6 +722,69 @@ export default {
|
|||||||
}
|
}
|
||||||
return statusStr;
|
return statusStr;
|
||||||
}
|
}
|
||||||
|
// 开票状态
|
||||||
|
if (j === 'invoiceStatus') {
|
||||||
|
let invoiceStatus = v[j];
|
||||||
|
if (invoiceStatus == 0) {
|
||||||
|
return '未开票';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 1) {
|
||||||
|
return '开票中';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 2) {
|
||||||
|
return '已开票';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 3) {
|
||||||
|
return '开票异常';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 审核状态
|
||||||
|
if (j === 'blAudit') {
|
||||||
|
let auditStatus = v[j];
|
||||||
|
if (auditStatus == 0) {
|
||||||
|
return '未审核';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 1) {
|
||||||
|
return '审核中';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 2) {
|
||||||
|
return '已审核';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 3) {
|
||||||
|
return '审核异常';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//开票类型
|
||||||
|
if (j === 'invoiceType') {
|
||||||
|
let invoiceType = v[j];
|
||||||
|
if (invoiceType == 1) {
|
||||||
|
return '增值税电子普通发票';
|
||||||
|
}
|
||||||
|
else if (invoiceType == 4) {
|
||||||
|
return '增值税电子专用发票';
|
||||||
|
} else if (invoiceType == 2) {
|
||||||
|
return '增值税普通发票';
|
||||||
|
} else if (invoiceType == 3) {
|
||||||
|
return '增值税专用发票';
|
||||||
|
} else if (invoiceType == 9) {
|
||||||
|
return '其它手工发票';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 收款状态
|
||||||
|
if (j === 'paymentStatus') {
|
||||||
|
let paymentStatus = v[j];
|
||||||
|
if (paymentStatus == 0) {
|
||||||
|
return '未收款';
|
||||||
|
}
|
||||||
|
else if (paymentStatus == 1) {
|
||||||
|
return '已收款';
|
||||||
|
}
|
||||||
|
else if (paymentStatus == 2) {
|
||||||
|
return '部分收款';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return v[j]
|
return v[j]
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
slot="pageContent"
|
slot="pageContent"
|
||||||
slot-scope="slotProps"
|
slot-scope="slotProps"
|
||||||
:height="(slotProps.contentHeight)+'px'"
|
:height="(slotProps.contentHeight)+'px'"
|
||||||
|
ref="refTable"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
border
|
border
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -158,7 +158,7 @@
|
|||||||
>开票驳回</el-button>
|
>开票驳回</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<!-- <el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
@ -167,7 +167,7 @@
|
|||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['emis:emisSettleInvoiceRecord:export']"
|
v-hasPermi="['emis:emisSettleInvoiceRecord:export']"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col> -->
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -632,34 +632,39 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download('emis/emisSettleInvoiceRecord/export', {
|
|
||||||
// ...this.queryParams
|
|
||||||
// }, `emisSettleInvoiceRecord_${new Date().getTime()}.xlsx`)
|
|
||||||
const loadingInstance = this.$loading({
|
const loadingInstance = this.$loading({
|
||||||
text: '正在导出...'
|
text: '正在导出...'
|
||||||
})
|
})
|
||||||
var qParam = {...this.queryParams};
|
if(this.selectList&&this.selectList.length>0){
|
||||||
qParam.pageNum=1;
|
this.exportData(this.selectList,loadingInstance);
|
||||||
qParam.pageSize=5000;
|
}else{
|
||||||
|
|
||||||
listEmisSettleInvoiceRecord(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
|
var qParam = {...this.queryParams};
|
||||||
this.downloadLoading = false
|
qParam.pageNum=1;
|
||||||
if (response.code === 200) {
|
qParam.pageSize=5000;
|
||||||
const curList = response.rows
|
|
||||||
import('@/vendor/Export2Excel').then(excel => {
|
listEmisSettleInvoiceRecord(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
|
||||||
const tHeader = ['id','申请序号','申请时间','审核人','审核站点','客户编码','客户名称','账单号编号','账单名称','申请开票金额','开票类型','开票名称','开票税号','开票电话','开票地址','联系人','联系电话','税类型','开票上限','开票金额','发票号','开票状态','开票状态描述','纸质发票邮寄地址','发票投递邮箱','发票下载路径','备注','审核状态','审核日期','审核人','审核站点','操作人','操作时间','操作站点','开票渠道编号','开票渠道状态','开票渠道描述','使用的开票企业代码','删除标志(0代表存在','创建者','创建时间','更新者','更新时间','创建站点','更新站点',];
|
if (response.code === 200) {
|
||||||
const filterVal = ['id','applySeqNo','applyDate','applyManCode','applySiteCode','customerCode','customerName','settleBillNo','settleBillName','applyMoney','invoiceType','companyName','companyTaxNo','companyTel','companyAddress','contact','phone','realTaxType','openMoneyMax','openMoney','invoiceNo','invoiceStatus','invoiceStatusDesc','recieveAddress','email','filePath','remark','blAudit','auditDate','auditManCode','auditSiteCode','opManCode','opDate','opSiteCode','openChId','openChStatus','openChStatusDesc','openComCode','delFlag','createBy','createTime','updateBy','updateTime','createSite','updateSite',];
|
this.exportData(response.rows,loadingInstance);
|
||||||
const data = this.formatJson(filterVal, curList, response.rows)
|
}
|
||||||
excel.export_json_to_excel({
|
});
|
||||||
header: tHeader,
|
}
|
||||||
data,
|
},
|
||||||
filename: '开票记录表',
|
exportData(selData, loadingInstance) {
|
||||||
autoWidth: true
|
const curList = selData
|
||||||
})
|
import('@/vendor/Export2Excel').then(excel => {
|
||||||
loadingInstance.close()
|
const exportParam = this.$refs.refTable.getExportParam();
|
||||||
})
|
const tHeader = exportParam.header;
|
||||||
}
|
const filterVal = exportParam.filter;
|
||||||
});
|
const data = this.formatJson(filterVal, curList, selData)
|
||||||
|
excel.export_json_to_excel({
|
||||||
|
header: tHeader,
|
||||||
|
data,
|
||||||
|
filename: '开票申请记录',
|
||||||
|
autoWidth: true
|
||||||
|
})
|
||||||
|
loadingInstance.close()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
formatJson(filterVal, jsonData, resData) {
|
formatJson(filterVal, jsonData, resData) {
|
||||||
let index = 0
|
let index = 0
|
||||||
@ -674,6 +679,67 @@ export default {
|
|||||||
}
|
}
|
||||||
return statusStr;
|
return statusStr;
|
||||||
}
|
}
|
||||||
|
// 开票状态
|
||||||
|
if (j === 'invoiceStatus') {
|
||||||
|
let invoiceStatus = v[j];
|
||||||
|
if (invoiceStatus == 0) {
|
||||||
|
return '未开票';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 1) {
|
||||||
|
return '开票中';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 2) {
|
||||||
|
return '已开票';
|
||||||
|
}
|
||||||
|
else if (invoiceStatus == 3) {
|
||||||
|
return '开票异常';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 审核状态
|
||||||
|
if (j === 'blAudit') {
|
||||||
|
let auditStatus = v[j];
|
||||||
|
if (auditStatus == 0) {
|
||||||
|
return '未审核';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 1) {
|
||||||
|
return '审核中';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 2) {
|
||||||
|
return '已审核';
|
||||||
|
}
|
||||||
|
else if (auditStatus == 3) {
|
||||||
|
return '审核异常';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//开票类型
|
||||||
|
if (j === 'invoiceType') {
|
||||||
|
let invoiceType = v[j];
|
||||||
|
if (invoiceType == 1) {
|
||||||
|
return '增值税电子普通发票';
|
||||||
|
}
|
||||||
|
else if (invoiceType == 4) {
|
||||||
|
return '增值税电子专用发票';
|
||||||
|
} else if (invoiceType == 2) {
|
||||||
|
return '增值税普通发票';
|
||||||
|
} else if (invoiceType == 3) {
|
||||||
|
return '增值税专用发票';
|
||||||
|
} else if (invoiceType == 9) {
|
||||||
|
return '其它手工发票';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 收款状态
|
||||||
|
if (j === 'paymentStatus') {
|
||||||
|
let paymentStatus = v[j];
|
||||||
|
if (paymentStatus == 0) {
|
||||||
|
return '未收款';
|
||||||
|
}
|
||||||
|
else if (paymentStatus == 1) {
|
||||||
|
return '已收款';
|
||||||
|
}
|
||||||
|
else if (paymentStatus == 2) {
|
||||||
|
return '部分收款';
|
||||||
|
}
|
||||||
|
}
|
||||||
return v[j]
|
return v[j]
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user