|
|
@ -67,6 +67,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
defineOptions({ name: 'Purchaseprice' }) |
|
|
|
|
|
|
@ -246,10 +247,10 @@ const handleExport = async () => { |
|
|
|
exportLoading.value = true |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
const data = await PurchasepriceApi.exportPurchasepriceSCP(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购价格单')}.xlsx`) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else{ |
|
|
|
const data = await PurchasepriceApi.exportPurchaseprice(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购价格单')}.xlsx`) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
@ -265,7 +266,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: `${t('ts.采购价格单导入模版')}.xlsx` |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
// 导入成功之后 |
|
|
|
const importSuccess = () => { |
|
|
|