diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue index a3b5e9984..221d8b2cb 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue @@ -26,17 +26,32 @@ - - @@ -208,7 +223,24 @@ /** 添加/修改操作 */ const formRef = ref() const openForm = async (type : string, row ?: number) => { + console.log("【purchaseMain】type类型:",type); tableData.value = [] // 重置明细数据 + if(type == 'create'){ + PurchaseMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.isSearchList = true + item.componentProps.disabled = true + } + }) + } + if(type == 'update'){ + PurchaseMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + }) + } formRef.value.open(type, row) }