From 17123b3d98cf10f51e9809f28159d4e01140a44d Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Sat, 15 Jun 2024 14:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRequestMain/index.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 8f7b5ae4c..b7b8b5538 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -447,6 +447,20 @@ const handleImport = () => { /** 添加/修改操作 */ const formRef = ref() const openForm = async (type : string, row ?: number) => { + if(type=='update'){ + SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => { + if(item.field == 'orderType'){ + item.componentProps.disabled = true + } + }) + }else{ + SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => { + if(item.field == 'orderType'){ + item.componentProps.disabled = false + } + }) + } + if(row && row.status == '8'){ SupplierinvoiceRequestMainRules.invoiceTime[0].required = true SupplierinvoiceRequestMainRules.goldenTaxInvoiceNumber[0].required = true