|
@ -95,6 +95,7 @@ import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' |
|
|
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' |
|
|
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as AreabasicApi from '@/api/wms/areabasic' |
|
|
import * as AreabasicApi from '@/api/wms/areabasic' |
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 发货申请 |
|
|
// 发货申请 |
|
|
defineOptions({ name: 'DeliverRequestMain' }) |
|
|
defineOptions({ name: 'DeliverRequestMain' }) |
|
@ -475,11 +476,11 @@ const handleExport = async () => { |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
if(routeName.value == 'DeliverRequestMain'){ |
|
|
if(routeName.value == 'DeliverRequestMain'){ |
|
|
const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params) |
|
|
const data = await DeliverRequestMainApi.exportDeliverRequestMain(tableObject.params) |
|
|
download.excel(data, '发货申请主.xlsx') |
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
}else{ |
|
|
}else{ |
|
|
const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params) |
|
|
const data = await DeliverRequestMainApi.exportZZBJDeliverRequestMain(tableObject.params) |
|
|
download.excel(data, '自制备件发货申请主.xlsx') |
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
} |
|
|
} |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
@ -580,7 +581,7 @@ const handleImport = () => { |
|
|
// 导入附件弹窗所需的参数 |
|
|
// 导入附件弹窗所需的参数 |
|
|
const importTemplateData = reactive({ |
|
|
const importTemplateData = reactive({ |
|
|
templateUrl: '', |
|
|
templateUrl: '', |
|
|
templateTitle: importFileName.value + '.xlsx' |
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
// 导入成功之后 |
|
|