|
@@ -336,7 +336,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
inventoryRequest(config) {
|
|
inventoryRequest(config) {
|
|
|
- return request({ timeout: 30000, ...config })
|
|
|
|
|
|
|
+ return request({ timeout: 120000, ...config })
|
|
|
},
|
|
},
|
|
|
normalizeResponse(res) {
|
|
normalizeResponse(res) {
|
|
|
if (!res) return null
|
|
if (!res) return null
|
|
@@ -444,9 +444,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
async refreshData() {
|
|
async refreshData() {
|
|
|
await this.fetchOverviewData()
|
|
await this.fetchOverviewData()
|
|
|
- this.fetchMonthlyComparison()
|
|
|
|
|
- this.fetchSkuSummary()
|
|
|
|
|
- this.fetchSpuSummary()
|
|
|
|
|
|
|
+ await this.fetchMonthlyComparison()
|
|
|
|
|
+ await this.fetchSkuSummary()
|
|
|
|
|
+ await this.fetchSpuSummary()
|
|
|
},
|
|
},
|
|
|
openUploadDialog() {
|
|
openUploadDialog() {
|
|
|
this.uploadDialogVisible = true
|
|
this.uploadDialogVisible = true
|
|
@@ -515,7 +515,8 @@ export default {
|
|
|
url: '/api/inventory/upload',
|
|
url: '/api/inventory/upload',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: formData,
|
|
data: formData,
|
|
|
- headers: { 'Content-Type': 'multipart/form-data', repeatSubmit: false }
|
|
|
|
|
|
|
+ headers: { 'Content-Type': 'multipart/form-data', repeatSubmit: false },
|
|
|
|
|
+ timeout: 300000
|
|
|
})
|
|
})
|
|
|
if (res && res.code === 200) {
|
|
if (res && res.code === 200) {
|
|
|
const count = res.data && res.data.count ? res.data.count : 0
|
|
const count = res.data && res.data.count ? res.data.count : 0
|