fix:物料模型导入导出修改
This commit is contained in:
parent
60db8a01c9
commit
32e77e47c8
@ -191,7 +191,7 @@ const upload = reactive({
|
||||
updateSupport: 0,
|
||||
uploadType: 1,
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/mes/productManagement/ProWorkorder/importData'
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/MasterDataManagement/Material/MaterialBom/importData'
|
||||
})
|
||||
function handleImport(type) {
|
||||
upload.open = true
|
||||
@ -201,7 +201,7 @@ function submitFileForm() {
|
||||
}
|
||||
//下砸模版
|
||||
function importTemplate() {
|
||||
proxy.download('/mes/productManagement/ProWorkorder/importTemplate', '物料类别导入模板')
|
||||
proxy.download('/MasterDataManagement/Material/MaterialBom/importTemplate', '物料类别导入模板')
|
||||
}
|
||||
/** 文件上传异常处理 */
|
||||
const handleFileError = (error, file, fileList) => {
|
||||
@ -249,7 +249,7 @@ function handleDownload() {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(async () => {
|
||||
await proxy.downFile('/business/ProcessmodelProject/exportProject', { ...queryParams })
|
||||
await proxy.downFile('/MasterDataManagement/Material/MaterialBom/exportProject', { ...queryParams })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -306,7 +306,7 @@ const upload = reactive({
|
||||
updateSupport: 0,
|
||||
uploadType: 1,
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/mes/productManagement/ProWorkorder/importData'
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/MasterDataManagement/Material/MaterialList/importData'
|
||||
})
|
||||
function handleImport(type) {
|
||||
upload.open = true
|
||||
@ -316,7 +316,7 @@ function submitFileForm() {
|
||||
}
|
||||
//下砸模版
|
||||
function importTemplate() {
|
||||
proxy.download('/mes/productManagement/ProWorkorder/importTemplate', '物料类别导入模板')
|
||||
proxy.download('/MasterDataManagement/Material/MaterialList/importTemplate', '导入模板')
|
||||
}
|
||||
/** 文件上传异常处理 */
|
||||
const handleFileError = (error, file, fileList) => {
|
||||
@ -355,7 +355,6 @@ const handleFileSuccess = (response, file, fileList) => {
|
||||
dialogVisibleActualAssembly.value = true
|
||||
}
|
||||
//导出
|
||||
//导出
|
||||
function handleDownload() {
|
||||
proxy
|
||||
.$confirm('是否确定要导出数据吗?', '警告', {
|
||||
@ -364,7 +363,7 @@ function handleDownload() {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(async () => {
|
||||
await proxy.downFile('/business/ProcessmodelProject/exportProject', { ...queryParams })
|
||||
await proxy.downFile('/MasterDataManagement/Material/MaterialList/exportData', { ...queryParams })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -201,7 +201,7 @@ const upload = reactive({
|
||||
updateSupport: 0,
|
||||
uploadType: 1,
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/MasterDataManagement/Material/MaterialList/importData'
|
||||
url: import.meta.env.VITE_APP_BASE_API + '/MasterDataManagement/Material/MaterialType/importData'
|
||||
})
|
||||
function handleImport(type) {
|
||||
upload.open = true
|
||||
@ -215,7 +215,7 @@ function handleDownload() {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(async () => {
|
||||
await proxy.downFile('/MasterDataManagement/Material/MaterialList/exportData', { ...queryParams })
|
||||
await proxy.downFile('/MasterDataManagement/Material/MaterialType/exportData', { ...queryParams })
|
||||
})
|
||||
}
|
||||
function submitFileForm() {
|
||||
@ -223,7 +223,7 @@ function submitFileForm() {
|
||||
}
|
||||
//下砸模版
|
||||
function importTemplate() {
|
||||
proxy.download('/MasterDataManagement/Material/MaterialList/importTemplate', '物料类别导入模板')
|
||||
proxy.download('/MasterDataManagement/Material/MaterialType/importTemplate', '物料类别导入模板')
|
||||
}
|
||||
/** 文件上传异常处理 */
|
||||
const handleFileError = (error, file, fileList) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user