diff --git a/src/views/stock/in/index.vue b/src/views/stock/in/index.vue index d97d695..457e850 100644 --- a/src/views/stock/in/index.vue +++ b/src/views/stock/in/index.vue @@ -172,18 +172,18 @@ } /**文件上传中处理 */ -const handleFileUploadProgress = (event, file, fileList) => { - upload.isUploading = true -} + const handleFileUploadProgress = (event, file, fileList) => { + upload.isUploading = true + } -/** 文件上传成功处理 */ -const handleFileSuccess = (response, file, fileList) => { - upload.open = false - upload.isUploading = false - proxy.$refs["uploadRef"].handleRemove(file) - proxy.$alert("
" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true }) - getList() -} + /** 文件上传成功处理 */ + const handleFileSuccess = (response, file, fileList) => { + upload.open = false + upload.isUploading = false + proxy.$refs["uploadRef"].handleRemove(file) + proxy.$alert("
" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true }) + getList() + } const { queryParams, form, rules } = toRefs(data) diff --git a/src/views/stock/management/index.vue b/src/views/stock/management/index.vue index 22b5ccf..4a59ebb 100644 --- a/src/views/stock/management/index.vue +++ b/src/views/stock/management/index.vue @@ -62,6 +62,9 @@ v-hasPermi="['stock:management:export']" >导出 + + 导入 + @@ -105,12 +108,35 @@ + + + + + +
将文件拖到此处,或点击上传
+ +
+ +