This commit is contained in:
gyq
2024-06-21 17:43:40 +08:00
parent eba0939005
commit 04bd127b95
2 changed files with 8 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ export default {
query: {
name: '',
isStock: '',
query: ''
num: ''
},
downloadLoading: false,
uploadLoading: false,
@@ -103,11 +103,6 @@ export default {
}
}
},
filters: {
typeEnum(m) {
return settings.typeEnum.find(item => item.typeEnum == m).label
}
},
mounted() {
this.getTableData()
},
@@ -133,7 +128,8 @@ export default {
this.downloadLoading = true;
const file = await stockdownload({
name: this.query.name,
isStock: this.query.isStock
isStock: this.query.isStock,
num: this.query.num
})
downloadFile(file, "商品库存", "xlsx");
this.downloadLoading = false;
@@ -162,6 +158,7 @@ export default {
size: this.tableData.size,
name: this.query.name,
isStock: this.query.isStock,
num: this.query.num,
shopId: localStorage.getItem('shopId')
})
this.tableData.loading = false
@@ -179,6 +176,8 @@ export default {
// 重置查询
resetHandle() {
this.query.name = ''
this.query.num = ''
this.query.isStock = ''
this.tableData.page = 0;
this.getTableData()
}