|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<Search :schema="DeliveryCalendar.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
<Search :schema="DeliveryCalendar.allSchemas.searchSchema" @search="searchParams" @reset="searchParams" /> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
@ -73,6 +73,7 @@ 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 * as SupplierDeliMainApi from '@/api/wms/supplierDeliMain' |
|
|
import * as SupplierDeliMainApi from '@/api/wms/supplierDeliMain' |
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'DeliveryCalendar' }) |
|
|
defineOptions({ name: 'DeliveryCalendar' }) |
|
|
|
|
|
|
|
@ -109,11 +110,16 @@ const { tableObject, tableMethods } = useTable({ |
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
const getListExecute = () => { |
|
|
const getListExecute = () => { |
|
|
tableObject.params.yearAndMonth=formatDate(new Date(),'YYYY-MM') |
|
|
tableObject.params.yearAndMonth = formatDate(new Date(), 'YYYY-MM') |
|
|
getList() |
|
|
getList() |
|
|
tableObject.tableList.forEach(item=>item.isOpen = false) |
|
|
tableObject.tableList.forEach(item=>item.isOpen = false) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const searchParams = (mold) => { |
|
|
|
|
|
setSearchParamsHead(mold) |
|
|
|
|
|
setSearchParams(mold) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const selectionRowsData = ref([])//多选数据 |
|
|
const selectionRowsData = ref([])//多选数据 |
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
@ -320,7 +326,7 @@ const getSelectionRows = (currentPage,currentPageSelectionRows) => { |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getListHead() |
|
|
getListHead() |
|
|
getList() |
|
|
getListExecute() |
|
|
importTemplateData.templateUrl = await DeliveryCalendarApi.importTemplate() |
|
|
importTemplateData.templateUrl = await DeliveryCalendarApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|