From 2eec6817ab3a052bd7ea0ba2b66f074ae69fb5f3 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 8 Jan 2024 15:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E9=80=80=E8=B4=A7---?= =?UTF-8?q?=E7=BC=96=E8=BE=91=EF=BC=8C=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=8D=95=E5=8F=B7=E5=8F=AF=E4=BB=A5=E6=8D=A2?= =?UTF-8?q?=E6=88=90=E5=88=AB=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereturnRequestMain/index.vue | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 1e2c76356..9b17eaccd 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -103,7 +103,7 @@ import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMa import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' -import { log } from 'console' + // 采购退货申请 defineOptions({ name: 'PurchasereturnRequestMain' }) @@ -346,11 +346,28 @@ const formRef = ref() const openForm = async (type: string, row?: number) => { tableData.value = [] // 重置明细数据 isShowButton.value = true - PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { - if (item.field == 'supplierCode') { - item.componentProps.disabled = false - } - }) + if(type == 'create'){ + PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = false + } + if(item.field == 'purchaseReceiptRecordNumber'){ + item.componentProps.disabled = true + item.componentProps.isSearchList = true + } + }) + } + if(type == 'update'){ + PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { + if (item.field == 'supplierCode') { + item.componentProps.disabled = false + } + if(item.field == 'purchaseReceiptRecordNumber'){ + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + } formRef.value.open(type, row) }