Browse Source

日历修改

intex_online20250311
叶佳兴 4 weeks ago
parent
commit
b0915de6ed
  1. 36
      src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts
  2. 5
      src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue

36
src/views/wms/basicDataManage/supplierManage/deliveryCalendar/deliveryCalendar.data.ts

@ -98,10 +98,10 @@ export const DeliveryCalendar = useCrudSchemas(
isSearch: true, isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
value: formatDate(new Date(),'YYYYMM'), value: formatDate(new Date(),'YYYY-MM'),
componentProps: { componentProps: {
type: 'month', type: 'month',
valueFormat: 'YYYYMM', valueFormat: 'YYYY-MM',
} }
}, },
form: { form: {
@ -110,22 +110,22 @@ export const DeliveryCalendar = useCrudSchemas(
} }
}, },
}, },
{ // {
label: '日期', // label: '日期',
field: 'yearAndMonth', // field: 'yearAndMonth',
sort: 'custom', // sort: 'custom',
isTable: false, // isTable: false,
isForm: false, // isForm: false,
isSearch: true, // isSearch: true,
search: { // search: {
component: 'DatePicker', // component: 'DatePicker',
value: formatDate(new Date(),'YYYYMM'), // value: formatDate(new Date(),'YYYYMM'),
componentProps: { // componentProps: {
type: 'month', // type: 'month',
valueFormat: 'YYYYMM', // valueFormat: 'YYYYMM',
} // }
} // }
}, // },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

5
src/views/wms/basicDataManage/supplierManage/deliveryCalendar/index.vue

@ -108,6 +108,11 @@ const { tableObject, tableMethods } = useTable({
// //
const { getList, setSearchParams } = tableMethods 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([])// const selectionRowsData = ref([])//
// //

Loading…
Cancel
Save