|
|
@ -29,6 +29,7 @@
|
|
|
|
:action="uploadFileUrl"
|
|
|
|
:action="uploadFileUrl"
|
|
|
|
multiple
|
|
|
|
multiple
|
|
|
|
:limit="1"
|
|
|
|
:limit="1"
|
|
|
|
|
|
|
|
:headers="headers"
|
|
|
|
:data="uploadData"
|
|
|
|
:data="uploadData"
|
|
|
|
:show-file-list="false"
|
|
|
|
:show-file-list="false"
|
|
|
|
:on-success="handleChange"
|
|
|
|
:on-success="handleChange"
|
|
|
@ -276,6 +277,7 @@ import {
|
|
|
|
} from "../../api/basic/invWarehouse";
|
|
|
|
} from "../../api/basic/invWarehouse";
|
|
|
|
import {formatDate} from "@/utils/date";
|
|
|
|
import {formatDate} from "@/utils/date";
|
|
|
|
import axios from "axios";
|
|
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
@ -298,6 +300,7 @@ export default {
|
|
|
|
advanceType: null,
|
|
|
|
advanceType: null,
|
|
|
|
isDefault: null
|
|
|
|
isDefault: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
headers: {},
|
|
|
|
mergeList: [],
|
|
|
|
mergeList: [],
|
|
|
|
node: null,
|
|
|
|
node: null,
|
|
|
|
defaultProps: {
|
|
|
|
defaultProps: {
|
|
|
@ -568,7 +571,7 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
const eleLink = document.createElement('a');
|
|
|
|
const eleLink = document.createElement('a');
|
|
|
|
var timestamp = formatDate(new Date(), "yyyy-MM-dd_hh:mm")
|
|
|
|
var timestamp = formatDate(new Date(), "yyyy-MM-dd_hh:mm")
|
|
|
|
eleLink.download = "仓库信息导出" + timestamp + ".json";
|
|
|
|
eleLink.download = "仓库信息导出" + timestamp + ".udi";
|
|
|
|
eleLink.style.display = 'none';
|
|
|
|
eleLink.style.display = 'none';
|
|
|
|
eleLink.href = url;
|
|
|
|
eleLink.href = url;
|
|
|
|
document.body.appendChild(eleLink)
|
|
|
|
document.body.appendChild(eleLink)
|
|
|
@ -594,6 +597,10 @@ export default {
|
|
|
|
let response = res.data.BASE_URL;
|
|
|
|
let response = res.data.BASE_URL;
|
|
|
|
this.uploadFileUrl = response + "/spms/inv/warehouse/uploadJson";
|
|
|
|
this.uploadFileUrl = response + "/spms/inv/warehouse/uploadJson";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.headers = {
|
|
|
|
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
|
|
|
|
ADMIN_TOKEN: store.getters.token,
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|