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