Commit 6dc991b6 by liwk
2 parents ade08436 ac1c2c91
...@@ -441,7 +441,7 @@ export default { ...@@ -441,7 +441,7 @@ export default {
// 批次弹窗列表搜索项 // 批次弹窗列表搜索项
batchPopupListSearch: { batchPopupListSearch: {
id: '', batchId: '',
cardNo: '', cardNo: '',
accountId: '' accountId: ''
}, },
...@@ -747,12 +747,13 @@ export default { ...@@ -747,12 +747,13 @@ export default {
exportbatchdetail() { exportbatchdetail() {
equityApi.cardExport(this.collectionListSearch).then((res) => { equityApi.cardExport(this.collectionListSearch).then((res) => {
if (res) { if (res) {
console.log(res); console.log(res)
var a = document.createElement('a') var a = document.createElement('a')
a.setAttribute('href', res) a.setAttribute('href', res.data)
a.setAttribute('target', '_blank') a.setAttribute('target', '_blank')
a.setAttribute('id', 'd2admin-link-temp') a.setAttribute('id', 'd2admin-link-temp')
A.setAttribute('download', '批次列表导出文档' + '.xlsx') // 设置下载文件名称 a.setAttribute('download', '批次列表导出文档' + '.xlsx') // 设置下载文件名称
window.open(a)
document.body.appendChild(a) document.body.appendChild(a)
a.click() a.click()
document.body.removeChild(document.getElementById('d2admin-link-temp')) document.body.removeChild(document.getElementById('d2admin-link-temp'))
...@@ -774,13 +775,13 @@ export default { ...@@ -774,13 +775,13 @@ export default {
// 领用界面导出 // 领用界面导出
exportCollection() { exportCollection() {
equityApi.cardExport(this.collectionListSearch).then((res) => { equityApi.cardExport(this.collectionListSearch).then((res) => {
if (res) { if (res.data) {
console.log(res); console.log(res.data);
var a = document.createElement('a') var a = document.createElement('a')
a.setAttribute('href', res) a.setAttribute('href', res.data)
a.setAttribute('target', '_blank') a.setAttribute('target', '_blank')
a.setAttribute('id', 'd2admin-link-temp') a.setAttribute('id', 'd2admin-link-temp')
A.setAttribute('download', '领用列表导出文档' + '.xlsx') // 设置下载文件名称 a.setAttribute('download', '领用列表导出文档' + '.xlsx') // 设置下载文件名称
document.body.appendChild(a) document.body.appendChild(a)
a.click() a.click()
document.body.removeChild(document.getElementById('d2admin-link-temp')) document.body.removeChild(document.getElementById('d2admin-link-temp'))
...@@ -981,7 +982,7 @@ export default { ...@@ -981,7 +982,7 @@ export default {
batchdetails(row) { batchdetails(row) {
console.log(row) console.log(row)
this.cardsInformationForm = row this.cardsInformationForm = row
this.batchPopupListSearch.id = row.id this.batchPopupListSearch.batchId = row.id
this.batchdetailsVisible = true this.batchdetailsVisible = true
this.$refs.batchdetailPopupTable.refreshTable() this.$refs.batchdetailPopupTable.refreshTable()
}, },
......
...@@ -465,7 +465,7 @@ export default { ...@@ -465,7 +465,7 @@ export default {
generateRemoteMethod(query) { generateRemoteMethod(query) {
if (query !== '') { if (query !== '') {
this.loading = true; this.loading = true;
equityApi.getCollectionMerchantList({ equityApi.getMerchantList({
merchantName: query merchantName: query
}).then((res) => { }).then((res) => {
this.loading = false; this.loading = false;
...@@ -507,6 +507,7 @@ export default { ...@@ -507,6 +507,7 @@ export default {
this.dialogVisible = true this.dialogVisible = true
this.isAdd = cd this.isAdd = cd
console.log(this.isAdd) console.log(this.isAdd)
this.ruleForm = {}
}, },
groupChange(value) { groupChange(value) {
console.log(value); console.log(value);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!