浏览代码

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

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}) => {