From 764c963db128b78ecff435ed109e383dab41288c Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 5 Jan 2024 17:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=BD=AC=E7=A7=BB=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=96=B0=E5=A2=9E=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliver/deliverRequestMain/index.vue | 9 +++++++++ .../inventorymove/inventorymoveRequestMain/index.vue | 12 ++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index 80ca6ddb2..f6c0028ac 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -71,6 +71,7 @@ :apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail" :Echo="Echo" @searchTableSuccessDetail="searchTableSuccessDetail" + :detailButtonIsShow = trueFalse /> @@ -98,6 +99,8 @@ routeName.value = route.name const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns) const isShowButton = ref(true) +//定义 展示子表数据时是否显示新增/修改/删除按钮 +const trueFalse = ref() // 字段设置 更新主列表字段 const updataTableColumns = (val) => { @@ -314,6 +317,12 @@ const openForm =async (type: string, row?: number) => { /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + console.log(999,row.deliverPlanNumber); + if(row.deliverPlanNumber != null){ + trueFalse.value = false + }else { + trueFalse.value = true + } detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 95f638315..6309cde4c 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -277,17 +277,17 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['fromLocationCode'] = val[0]['locationCode'] setV['uom'] = val[0]['uom'] if(routeName.value == 'OktoholdRequestMain'){ - row['toInventoryStatus'] = "HOLD" + setV['toInventoryStatus'] = "HOLD" }else if ( routeName.value == 'HoldtookRequestMain') { - row['toInventoryStatus'] = "OK" + setV['toInventoryStatus'] = "OK" }else if ( routeName.value == 'HoldtoscrapRequestMain') { - row['toInventoryStatus'] = "SCRAP" + setV['toInventoryStatus'] = "SCRAP" }else if ( routeName.value == 'OktoscrapRequestMain') { - row['toInventoryStatus'] = "SCRAP" + setV['toInventoryStatus'] = "SCRAP" }else if ( routeName.value == 'ScraptoholdRequestMain') { - row['toInventoryStatus'] = "HOLD" + setV['toInventoryStatus'] = "HOLD" }else{ - row['toInventoryStatus'] = null + setV['toInventoryStatus'] = null } } else { setV[formField] = val[0][searchField]