diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 2196f7381..34ecad3b3 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -460,6 +460,10 @@ const getSearchTableData = async (number,formField,searchField)=>{ item.componentProps.disabled = false item.componentProps.isSearchList = true } + if(item.field == 'deliveryDate'){ + item.componentProps.disabled = false + } + }) }else{ PurchasePlanMain.allSchemas.formSchema.forEach((item) => { @@ -468,6 +472,9 @@ const getSearchTableData = async (number,formField,searchField)=>{ item.componentProps.disabled = true item.componentProps.isSearchList = false } + if(item.field == 'deliveryDate'){ + item.componentProps.disabled = true + } }) } } diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 5657b9cb8..a2875e242 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -70,7 +70,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ isTableForm:false, isSearch:true, sortSearchDefault:3, - formatter: dateFormatter, + formatter: dateFormatter2, search: { component: 'DatePicker', componentProps: { @@ -140,19 +140,19 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ table: { width: 180 }, - formatter: dateFormatter, + formatter: dateFormatter2, sortTableDefault:2, form: { component: 'DatePicker', componentProps: { style: {width: '100%'}, - type: 'datetime', + type: 'date', dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', } }, detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' + dateFormat: 'YYYY-MM-DD' }, }, {