diff --git a/yxt-as-ui/src/views/storage/oldpPartStocktaking/oldpPartStocktakingReportDetail.vue b/yxt-as-ui/src/views/storage/oldpPartStocktaking/oldpPartStocktakingReportDetail.vue
index 6cc2dd0f84..a5afdf7ac4 100644
--- a/yxt-as-ui/src/views/storage/oldpPartStocktaking/oldpPartStocktakingReportDetail.vue
+++ b/yxt-as-ui/src/views/storage/oldpPartStocktaking/oldpPartStocktakingReportDetail.vue
@@ -4,7 +4,7 @@
@@ -43,7 +43,7 @@
{
+ console.log(22222222);
+ loading.close()
+ })
+
+ },
+ downLoadDetail() {
+
+ const loading = this.$loading({
+ lock: true,
+ text: 'Loading',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+ req.downloadExcel({
+ sid: this.formobj.sid
+ }).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()
+ })
+
}
}
}
diff --git a/yxt-as-ui/src/views/storage/stocktaking/index.vue b/yxt-as-ui/src/views/storage/stocktaking/index.vue
index dde4576a72..4b003498b0 100644
--- a/yxt-as-ui/src/views/storage/stocktaking/index.vue
+++ b/yxt-as-ui/src/views/storage/stocktaking/index.vue
@@ -406,21 +406,15 @@
}).then((res) => {
if (res.success) {
this.financeList = res.data
-
- console.log("aaaaaa", this.financeList);
-
}
})
- var parpams = {
+ req2.getAllWarehouse({
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
- }
-
- req2.getAllWarehouse(parpams).then(resp => {
+ }).then(resp => {
this.warehouseList = resp.data
})
-
},
methods: {
getWarehouseArea(sid) {