소스 검색

招标书-单据日期添加默认值

jingbb 5 달 전
부모
커밋
e1beffca0a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/saleCode/rfp/SaleRfp.data.ts

+ 3 - 1
src/views/saleCode/rfp/SaleRfp.data.ts

@@ -2,6 +2,7 @@ import {BasicColumn} from '/@/components/Table';
 import {FormSchema} from '/@/components/Table';
 import { defHttp } from '/@/utils/http/axios';
 import {ref } from 'vue';
+import moment from 'moment';
 var customerOption = ref([])
 var projectOption = ref([])
 //列表数据
@@ -188,7 +189,8 @@ export const formSchema: FormSchema[] = [
     field: 'billDate',
     component: 'DatePicker',
     componentProps: {
-      valueFormat: 'YYYY-MM-DD'
+      valueFormat: 'YYYY-MM-DD',
+      defaultValue:moment(new Date()).format('YYYY-MM-DD')
     },
     labelWidth:150,
     dynamicRules: ({model,schema}) => {