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]