修正
This commit is contained in:
@@ -275,6 +275,7 @@
|
||||
<script>
|
||||
import { listWmMaterial, addWmMaterial, delWmMaterial, updateWmMaterial, getWmMaterial } from '@/api/wmsManagement/wmMaterial.js'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { formatDate } from '@/utils/index'
|
||||
export default {
|
||||
name: 'wmmaterial',
|
||||
data() {
|
||||
@@ -385,6 +386,8 @@ export default {
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/mes/wm/WmMaterial/importData',
|
||||
},
|
||||
|
||||
fullloading: null,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -393,6 +396,9 @@ export default {
|
||||
|
||||
var dictParams = []
|
||||
},
|
||||
mounted() {
|
||||
this.upload.time =window.localStrorage.getItem('material')
|
||||
},
|
||||
methods: {
|
||||
// 查询数据
|
||||
getList() {
|
||||
@@ -546,7 +552,6 @@ export default {
|
||||
importTemplate() {
|
||||
// @/utils/ruoyi"
|
||||
this.download('/mes/wm/WmMaterial/download_template', '物料清单导入模板')
|
||||
|
||||
},
|
||||
|
||||
// todo 文件上传中处理
|
||||
@@ -556,12 +561,21 @@ export default {
|
||||
//todo 提交上传文件
|
||||
submitFileForm() {
|
||||
this.$refs.upload.submit()
|
||||
this.fullloading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
})
|
||||
//保存数据
|
||||
window.localStorage.setItem('material', new Date())
|
||||
},
|
||||
//todo 文件上传成功处理
|
||||
handleFileSuccess(response, file, fileList) {
|
||||
this.upload.open = false
|
||||
this.upload.isUploading = false
|
||||
this.$refs.upload.clearFiles()
|
||||
this.fullloading.close()
|
||||
if (response.code == 200) {
|
||||
this.$alert(response.data, '导入结果', { dangerouslyUseHTMLString: true })
|
||||
} else {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
</el-form>
|
||||
|
||||
<vxe-table
|
||||
keep-source
|
||||
resizable
|
||||
ref="xTable"
|
||||
:tree-config="{ transform: true, rowField: 'packageCodeClient_son', parentField: 'packageCodeClient_short_parent' }"
|
||||
|
||||
Reference in New Issue
Block a user