Browse Source

日历代码上传

intex_online20250220
叶佳兴 2 weeks ago
parent
commit
8e8c31f514
  1. 4
      src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue
  2. 49
      src/views/wms/basicDataManage/supplierManage/receivedCalendar/receivedCalendar.data.ts

4
src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue

@ -157,6 +157,8 @@ const handleDateChange=async(value)=> {
const formsSuccess = async (formType, data) => {
console.log(data)
if (formType === 'create') {
data.calendarDateList=data.calendarDate
data.calendarDate=[]
await ReceivedCalendarApi.createReceivedCalendar(data)
message.success(t('common.createSuccess'))
} else {
@ -214,7 +216,7 @@ const getData=async () =>{
const month = today.getMonth(); // 0011112
dayData.value = await ReceivedCalendarApi.getMonthReceivedCalendar({
receivedNumber:'',
calendarDate:year + '-' + (month + 1 >= 10 ? month + 1 : '0' +( month + 1)),
calendarDateString:year + '-' + (month + 1 >= 10 ? month + 1 : '0' +( month + 1)),
})
await getDatesInCurrentMonth(year,month)
}

49
src/views/wms/basicDataManage/supplierManage/receivedCalendar/receivedCalendar.data.ts

@ -15,22 +15,6 @@ export const ReceivedCalendar = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
},
{
label: '班次',
field: 'shift',
dictType: DICT_TYPE.SHIFT,
dictClass: 'string',
isTable: true,
isDetail: true,
sort: 'custom',
table: {
width: 150
},
isTableForm: true,
tableForm: {
type: 'Select'
}
},
{
label: '日期',
field: 'calendarDate',
@ -61,6 +45,39 @@ export const ReceivedCalendar = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
{
label: '白班',
field: 'isHideSun',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '晚班',
field: 'isHideMoon',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '创建时间',
field: 'createTime',

Loading…
Cancel
Save