Browse Source

送达日期

hella_online_20240829
wangyufei 4 months ago
parent
commit
1f823b3b71
  1. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

7
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -460,6 +460,10 @@ const getSearchTableData = async (number,formField,searchField)=>{
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
if(item.field == 'deliveryDate'){
item.componentProps.disabled = false
}
}) })
}else{ }else{
PurchasePlanMain.allSchemas.formSchema.forEach((item) => { PurchasePlanMain.allSchemas.formSchema.forEach((item) => {
@ -468,6 +472,9 @@ const getSearchTableData = async (number,formField,searchField)=>{
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
if(item.field == 'deliveryDate'){
item.componentProps.disabled = true
}
}) })
} }
} }

8
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -70,7 +70,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm:false, isTableForm:false,
isSearch:true, isSearch:true,
sortSearchDefault:3, sortSearchDefault:3,
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -140,19 +140,19 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter, formatter: dateFormatter2,
sortTableDefault:2, sortTableDefault:2,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width: '100%'}, style: {width: '100%'},
type: 'datetime', type: 'date',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
}, },
{ {

Loading…
Cancel
Save