diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 9e86245c7..b34d082ac 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -75,6 +75,7 @@ import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { PurchaseDetail } from '../purchaseMain/purchaseMain.data' + import dayjs from 'dayjs' // 要货计划 defineOptions({ name: 'PurchasePlanMain' }) @@ -313,6 +314,11 @@ const getSearchTableData = async (number,formField,searchField)=>{ const openForm = async (type : string, row ?: number) => { tableData.value = [] // 重置明细数据 formRef.value.open(type, row) + if('create'==type){ + nextTick(async () => { + formRef.value.formRef.setValues({deliveryDate:dayjs().format('YYYY-MM-DD')}) + }) + } } // 获取部门 用于详情 部门回显 const { wsCache } = useCache() diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 9a4167f45..1e10f60a9 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -412,7 +412,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ width: 180 }, tableForm: { - isInpuFocusShow: true, + disabled: true, + isInpuFocusShow: false, searchListPlaceholder: '请选择订单号', searchField: 'number', searchTitle: '采购订单信息', @@ -490,7 +491,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ }, tableForm: { multiple:true, - isInpuFocusShow: true, + disabled: true, + isInpuFocusShow: false, searchListPlaceholder: '请选择订单行', searchField: 'lineNumber', searchTitle: '采购订单信息',