From 2c869f8390965173a331898590d53f02065efc3c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 5 Jul 2024 10:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/purchasePlanMain/index.vue | 14 ++++++++++++++ .../purchasePlanMain/purchasePlanMain.data.ts | 10 +++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index f70bb30a9..b87a21fac 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -389,7 +389,21 @@ const getSearchTableData = async (number,formField,searchField)=>{ nextTick(async () => { formRef.value.formRef.setValues({deliveryDate:dayjs().valueOf()}) }) + PurchasePlanMain.allSchemas.formSchema.forEach((item) => { + // 供应商代码 + if(item.field == 'supplierCode'){ + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) }else{ + PurchasePlanMain.allSchemas.formSchema.forEach((item) => { + // 供应商代码 + if(item.field == 'supplierCode'){ + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) isShowButtonSelection.value = true } } diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 5c7ff76d6..4d84e28d5 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -145,8 +145,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ component: 'DatePicker', componentProps: { style: {width: '100%'}, - type: 'date', - dateFormat: 'YYYY-MM-DD', + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', } }, @@ -160,7 +160,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, dictClass: 'string', - isTable: false, + isTable: true, isForm:true, isSearch: true, table: { @@ -745,8 +745,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([ sortTableDefault:6, }, { - label: '在途数量(没有字段,需要加)', - field: 'shippedQty', + label: '在途数量', + field: 'notReceiveQty', sort: 'custom', table: { width: 150