diff --git a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts index 274d9a2da..dfd3d511e 100644 --- a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts @@ -98,10 +98,10 @@ export const DeliveryCalendar = useCrudSchemas( isSearch: true, search: { component: 'DatePicker', - value: formatDate(new Date(),'YYYYMM'), + value: formatDate(new Date(),'YYYY-MM'), componentProps: { type: 'month', - valueFormat: 'YYYYMM', + valueFormat: 'YYYY-MM', } }, form: { @@ -110,22 +110,22 @@ export const DeliveryCalendar = useCrudSchemas( } }, }, - { - label: '日期', - field: 'yearAndMonth', - sort: 'custom', - isTable: false, - isForm: false, - isSearch: true, - search: { - component: 'DatePicker', - value: formatDate(new Date(),'YYYYMM'), - componentProps: { - type: 'month', - valueFormat: 'YYYYMM', - } - } - }, + // { + // label: '日期', + // field: 'yearAndMonth', + // sort: 'custom', + // isTable: false, + // isForm: false, + // isSearch: true, + // search: { + // component: 'DatePicker', + // value: formatDate(new Date(),'YYYYMM'), + // componentProps: { + // type: 'month', + // valueFormat: 'YYYYMM', + // } + // } + // }, { label: '操作', field: 'action', diff --git a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue index 19eaed0d8..1056059b7 100644 --- a/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue @@ -108,6 +108,11 @@ const { tableObject, tableMethods } = useTable({ // 获得表格的各种操作 const { getList, setSearchParams } = tableMethods +const getListExecute = () => { + tableObject.params.yearAndMonth=formatDate(new Date(),'YYYY-MM') + getList() + tableObject.tableList.forEach(item=>item.isOpen = false) +} const selectionRowsData = ref([])//多选数据 // 列表头部按钮