Browse Source

scp要货计划之前导出文件名字

hella_online_20240815
zhang_li 3 months ago
parent
commit
eb399476ee
  1. 6
      src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue
  2. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  3. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue
  4. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  5. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

6
src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue

@ -80,6 +80,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'SupplierCycle' }) defineOptions({ name: 'SupplierCycle' })
@ -235,8 +236,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await SupplierCycleApi.exportSupplierCycle(tableObject.params) const data = await SupplierCycleApi.exportSupplierCycle(tableObject.params)
download.excel(data, '要货预测周期.xlsx') download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -251,7 +253,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '要货预测周期导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

6
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -42,6 +42,7 @@ import { DemandforecastingMain,DemandforecastingMainRules,DemandforecastingDetai
import * as DemandforecastingMainApi from '@/api/wms/demandforecastingMain' import * as DemandforecastingMainApi from '@/api/wms/demandforecastingMain'
import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail' import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'DemandforecastingMain' }) defineOptions({ name: 'DemandforecastingMain' })
@ -182,8 +183,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await DemandforecastingMainApi.exportDemandforecastingMain(tableObject.params) const data = await DemandforecastingMainApi.exportDemandforecastingMain(tableObject.params)
download.excel(data, `${t('ts.要货预测主')}.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -194,7 +196,7 @@ const handleExport = async () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: `${t('ts.要货预测主导入模版')}.xlsx` templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

6
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingSupplierMain/index.vue

@ -49,6 +49,7 @@ import { DemandforecastingMain,DemandforecastingMainRules,DemandforecastingDetai
import * as DemandforecastingMainApi from '@/api/wms/demandforecastingMain' import * as DemandforecastingMainApi from '@/api/wms/demandforecastingMain'
import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail' import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'DemandforecastingMain' }) defineOptions({ name: 'DemandforecastingMain' })
@ -188,8 +189,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await DemandforecastingMainApi.exportDemandforecastingMain(tableObject.params) const data = await DemandforecastingMainApi.exportDemandforecastingMain(tableObject.params)
download.excel(data, `${t('ts.要货预测主')}.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -200,7 +202,7 @@ const handleExport = async () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: `${t('ts.要货预测主导入模版')}.xlsx` templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

6
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -100,6 +100,7 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import TableDetail from '@/components/TableDetail/src/TableDetail.vue' import TableDetail from '@/components/TableDetail/src/TableDetail.vue'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'PurchaseMain' }) defineOptions({ name: 'PurchaseMain' })
@ -489,8 +490,9 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PurchaseMainApi.exportPurchaseMain(tableObject.params) const data = await PurchaseMainApi.exportPurchaseMain(tableObject.params)
download.excel(data, `${t('ts.采购订单主')}.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -554,7 +556,7 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: `${t(`ts.采购订单主导入模版`)}.xlsx` templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

12
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -121,6 +121,7 @@
import * as PurchaseMainApi from '@/api/wms/purchaseMain' import * as PurchaseMainApi from '@/api/wms/purchaseMain'
import { PurchaseMain } from '../purchaseMain/purchaseMain.data' import { PurchaseMain } from '../purchaseMain/purchaseMain.data'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
const { wsCache } = useCache() const { wsCache } = useCache()
const language = wsCache.get('lang') const language = wsCache.get('lang')
const announcements = ref<any>([]) const announcements = ref<any>([])
@ -716,8 +717,9 @@ const handleSelectionPublish = async ()=>{
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PurchasePlanMainApi.exportPurchasePlanMain(tableObject.params) const data = await PurchasePlanMainApi.exportPurchasePlanMain(tableObject.params)
download.excel(data, `${t('ts.要货计划主')}.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -731,8 +733,9 @@ const handleSelectionPublish = async ()=>{
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PurchasePlanMainApi.exportDetailsPurchasePlanMain(tableObject.params) const data = await PurchasePlanMainApi.exportDetailsPurchasePlanMain(tableObject.params)
download.excel(data, `${t('ts.要货计划明细')}.xlsx`) download.excel(data, `${excelTitle.value}明细】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -745,8 +748,9 @@ const handleSelectionPublish = async ()=>{
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await PurchasePlanMainApi.exportTablePurchasePlanMain(tableObject.params) const data = await PurchasePlanMainApi.exportTablePurchasePlanMain(tableObject.params)
download.excel(data, `${t('ts.要货计划二维表')}.xlsx`) download.excel(data, `${excelTitle.value}二维表】【${formatDate(new Date())}.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -890,7 +894,7 @@ const handleSelectionPublish = async ()=>{
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: `${t('ts.要货计划主导入模版')}.xlsx` templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

Loading…
Cancel
Save