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)=>{
if(field=='beginMonth'){
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({
value:i,
label:i

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

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

Loading…
Cancel
Save