Browse Source

库存管理导出文件名修改

hella_online_20240815
zhang_li 3 months ago
parent
commit
a63f35c53f
  1. 5
      src/views/wms/inventoryManage/balance/index.vue
  2. 5
      src/views/wms/inventoryManage/expectin/index.vue
  3. 5
      src/views/wms/inventoryManage/expectout/index.vue
  4. 5
      src/views/wms/inventoryManage/locationcapacity/index.vue
  5. 5
      src/views/wms/inventoryManage/package/index.vue
  6. 5
      src/views/wms/inventoryManage/transaction/index.vue
  7. 5
      src/views/wms/inventoryManage/transferlog/index.vue

5
src/views/wms/inventoryManage/balance/index.vue

@ -71,6 +71,7 @@ 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 { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
// //
defineOptions({ name: 'Balance' }) defineOptions({ name: 'Balance' })
@ -298,7 +299,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BalanceApi.exportBalance(tableObject.params) const data = await BalanceApi.exportBalance(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
@ -313,7 +314,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '库存余额导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/inventoryManage/expectin/index.vue

@ -68,6 +68,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: 'Expectin' }) defineOptions({ name: 'Expectin' })
@ -226,7 +227,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectinApi.exportExpectin(tableObject.params) const data = await ExpectinApi.exportExpectin(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
@ -241,7 +242,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '预计入库存导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/inventoryManage/expectout/index.vue

@ -69,6 +69,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: 'Expectout' }) defineOptions({ name: 'Expectout' })
@ -225,7 +226,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectoutApi.exportExpectout(tableObject.params) const data = await ExpectoutApi.exportExpectout(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
@ -240,7 +241,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '预计出库存导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/inventoryManage/locationcapacity/index.vue

@ -65,6 +65,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: 'Locationcapacity' }) defineOptions({ name: 'Locationcapacity' })
@ -180,7 +181,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await LocationcapacityApi.exportLocationcapacity(tableObject.params) const data = await LocationcapacityApi.exportLocationcapacity(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
@ -195,7 +196,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '库位容量导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/inventoryManage/package/index.vue

@ -68,6 +68,7 @@ import * as PackageApi from '@/api/wms/package'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as EquipmentInspectionRecordMainApi from "@/api/eam/equipmentInspectionRecordMain"; import * as EquipmentInspectionRecordMainApi from "@/api/eam/equipmentInspectionRecordMain";
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'package' }) defineOptions({ name: 'package' })
@ -250,7 +251,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await PackageApi.exportPackage(tableObject.params) const data = await PackageApi.exportPackage(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
@ -336,7 +337,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '包装信息导入模板.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //

5
src/views/wms/inventoryManage/transaction/index.vue

@ -65,6 +65,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: 'Transaction' }) defineOptions({ name: 'Transaction' })
@ -181,7 +182,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await TransactionApi.exportTransaction(tableObject.params) const data = await TransactionApi.exportTransaction(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
@ -196,7 +197,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '事务类型导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

5
src/views/wms/inventoryManage/transferlog/index.vue

@ -65,6 +65,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: 'Transferlog' }) defineOptions({ name: 'Transferlog' })
@ -180,7 +181,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectinApi.exportTransferlog(tableObject.params) const data = await ExpectinApi.exportTransferlog(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
@ -195,7 +196,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '库存转移日志导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
}) })
// //
const importSuccess = () => { const importSuccess = () => {

Loading…
Cancel
Save