Browse Source

询证函日期管理

hella_online_20241107
yufei_wang 4 weeks ago
parent
commit
7b0e8fc134
  1. 5
      src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue
  2. 8
      src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts

5
src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue

@ -261,7 +261,10 @@ const daysInMonths = ref([])
const onChange = (field, value, formRef)=>{ const onChange = (field, value, formRef)=>{
if(field=='beginMonth'){ if(field=='beginMonth'){
let days = [] let days = []
for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){ let maxday = dayjs(`${value}-01`).daysInMonth()
if(value==2) maxday = 29
for (let i=1;i<=maxday;i++){
days.push({ days.push({
value:i, value:i,
label:i label:i

8
src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts

@ -64,6 +64,14 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '备注', label: '备注',

Loading…
Cancel
Save