|
|
@ -41,7 +41,7 @@ |
|
|
|
</div> |
|
|
|
<!-- Start 项目列表头部 --> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">用户列表</div> |
|
|
|
<div class="tit">企业卡列表</div> |
|
|
|
</div> |
|
|
|
<!-- End 项目列表头部 --> |
|
|
|
<!-- Start 项目列表 --> |
|
|
@ -56,8 +56,8 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column prop="serialNumber" label="卡券序列号" align="center" /> |
|
|
|
<el-table-column prop="createTime" label="发行时间" align="center" /> |
|
|
|
<el-table-column prop="code" label="提货编码" align="center" /> |
|
|
|
<el-table-column prop="createTime" label="发行时间" align="center" /> |
|
|
|
<el-table-column prop="stateValue" label="卡券状态" align="center" /> |
|
|
|
<el-table-column prop="bindDate" label="绑定时间" align="center" /> |
|
|
|
</el-table> |
|
|
@ -189,7 +189,7 @@ |
|
|
|
}, |
|
|
|
loadList() { |
|
|
|
this.tableLoading = true |
|
|
|
req.customerListPage(this.queryParams).then((resp) => { |
|
|
|
req.empCardStatisticsList(this.queryParams).then((resp) => { |
|
|
|
this.tableLoading = false |
|
|
|
if (resp.success) { |
|
|
|
const data = resp.data |
|
|
@ -274,31 +274,31 @@ |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
doBuild() { |
|
|
|
// const loading = this.$loading({ |
|
|
|
// lock: true, |
|
|
|
// text: 'Loading', |
|
|
|
// spinner: 'el-icon-loading', |
|
|
|
// background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
// }) |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// req.bankOrderExportExcel(this.page.params).then((resp) => { |
|
|
|
// loading.close() |
|
|
|
// const blob = new Blob([resp], { |
|
|
|
// type: 'application/vnd.ms-excel' |
|
|
|
// }) |
|
|
|
// const fileName = '支行配货明细_' + this.page.params.startDate + '.xls' |
|
|
|
// const elink = document.createElement('a') |
|
|
|
// elink.download = fileName |
|
|
|
// elink.style.display = 'nonde' |
|
|
|
// elink.href = URL.createObjectURL(blob) |
|
|
|
// document.body.appendChild(elink) |
|
|
|
// elink.click() |
|
|
|
// URL.revokeObjectURL(elink.href) |
|
|
|
// document.body.removeChild(elink) |
|
|
|
// }).catch(() => { |
|
|
|
// loading.close() |
|
|
|
// }) |
|
|
|
req.empCardStatisticsListExport(this.queryParams.params).then((resp) => { |
|
|
|
loading.close() |
|
|
|
const blob = new Blob([resp], { |
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
}) |
|
|
|
const fileName = '企业卡明细.xls' |
|
|
|
const elink = document.createElement('a') |
|
|
|
elink.download = fileName |
|
|
|
elink.style.display = 'nonde' |
|
|
|
elink.href = URL.createObjectURL(blob) |
|
|
|
document.body.appendChild(elink) |
|
|
|
elink.click() |
|
|
|
URL.revokeObjectURL(elink.href) |
|
|
|
document.body.removeChild(elink) |
|
|
|
}).catch(() => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|