From bb88c60b68e29f5af48b1826797b5d86651d4fcc Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Tue, 23 Jan 2024 16:51:05 +0800
Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=EF=BC=8C=E4=BE=9B=E5=BA=94=E5=95=86=E4=BB=A3=E7=A0=81=E5=8F=AF?=
=?UTF-8?q?=E4=BB=A5=E6=8D=A2=E6=88=90=E5=85=B6=E4=BB=96=EF=BC=8C=E4=BF=9D?=
=?UTF-8?q?=E5=AD=98=E8=83=BD=E6=88=90=E5=8A=9F=E9=97=AE=E9=A2=98=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierdeliver/purchaseMain/index.vue | 48 +++++++++++++++----
1 file changed, 40 insertions(+), 8 deletions(-)
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)
}