|
|
|
@ -369,7 +369,7 @@ export default {
|
|
|
|
|
res: 'data', |
|
|
|
|
}, |
|
|
|
|
tip: '请上传 .xls,.xlsx 标准格式文件', |
|
|
|
|
action: '/blade-system/user/import-user', |
|
|
|
|
action: '/api/logpm-warehouse/warehouseWarehousingEntry/import-WarehousingEntry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '数据覆盖', |
|
|
|
@ -407,6 +407,14 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch:{ |
|
|
|
|
'excelForm.isCovered'() { |
|
|
|
|
if (this.excelForm.isCovered !== '') { |
|
|
|
|
const column = this.findObject(this.excelOption.column, 'excelFile'); |
|
|
|
|
column.action = `/api/logpm-warehouse/warehouseWarehousingEntry/import-WarehousingEntry?isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
this.init(); |
|
|
|
|
this.onLoad(this.page); |
|
|
|
@ -587,13 +595,14 @@ export default {
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//下载模板 |
|
|
|
|
handleTemplate() { |
|
|
|
|
exportBlob( |
|
|
|
|
`/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}` |
|
|
|
|
).then(res => { |
|
|
|
|
downloadXls(res.data, '入库物品数据模板.xlsx'); |
|
|
|
|
}); |
|
|
|
|
console.log("下载模板!!!"); |
|
|
|
|
// exportBlob( |
|
|
|
|
// `/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}` |
|
|
|
|
// ).then(res => { |
|
|
|
|
// downloadXls(res.data, '入库物品数据模板.xlsx'); |
|
|
|
|
// }); |
|
|
|
|
}, |
|
|
|
|
handleImport(){ |
|
|
|
|
this.excelBox = true; |
|
|
|
|