From bc349accd990fea09df1acda1fcac2757ce6389e Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 3 Jan 2024 10:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=9D=E5=AD=98=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=B8=8E=E4=B8=BB=E8=A1=A8=E7=8A=B6=E6=80=81=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantleRequestMain/index.vue | 11 +++++++++-- .../productrepairRequestMain/index.vue | 15 +++++++++++---- .../productscrapRequestMain/index.vue | 11 +++++++++-- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 9459588d8..030a7705d 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -140,10 +140,10 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT }) const { getList:getDetailListBom } = detatableMethodsBom /** bom 列表 表单 按钮 */ -const ButttondataBom = [ +const ButttondataBom = ref([ defaultButtons.formSaveBtn(null), // 保存 defaultButtons.formCloseBtn(null) // 关闭 -] +]) // bom 列表 表单 按钮 const buttonBaseClickBom = async (val) => { // 保存 @@ -399,8 +399,15 @@ const openForm =async (type: string, row?: number) => { /** 详情操作 */ const detailRef = ref() +const mainStatus = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { lsBomSave.value = false + mainStatus.value = row.status; + console.log("mainStatus.value:",mainStatus.value) + ButttondataBom.value = [ + defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue index 060412756..07c10425e 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue @@ -145,10 +145,11 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT }) const { getList:getDetailListBom } = detatableMethodsBom /** bom 列表 表单 按钮 */ -const ButttondataBom = [ + +const ButttondataBom = ref([ defaultButtons.formSaveBtn(null), // 保存 defaultButtons.formCloseBtn(null) // 关闭 -] +]) // bom 列表 表单 按钮 const buttonBaseClickBom = (val) => { // 保存 @@ -433,7 +434,15 @@ const openForm =async (type: string, row?: number) => { /** 详情操作 */ const detailRef = ref() +const mainStatus = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + mainStatus.value = row.status; + console.log("mainStatus.value:",mainStatus.value) + // 弹窗按钮是否展示控制 + ButttondataBom.value = [ + defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] lsBomSave.value = false detailRef.value.openDetail(row, titleName, titleValue) } @@ -550,7 +559,6 @@ const searchFormClick = (searchData) => { // 查看 Bom 按钮回调事件 const tableFormButton = async (val , row) => { - console.log("BBBBB",row.id); if (val == 'bom') { // 查看 bom bomModelVisible.value = true DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' @@ -559,7 +567,6 @@ const tableFormButton = async (val , row) => { bomVersion: row.bomVersion, masterId: row.id } - console.log("AAAAA",row.id); rowId.value = row.id await getDetailListBom() } diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index 7f77f2bc8..8ce0b2ebd 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -145,10 +145,10 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT }) const { getList:getDetailListBom } = detatableMethodsBom /** bom 列表 表单 按钮 */ -const ButttondataBom = [ +const ButttondataBom = ref([ defaultButtons.formSaveBtn(null), // 保存 defaultButtons.formCloseBtn(null) // 关闭 -] +]) // bom 列表 表单 按钮 const buttonBaseClickBom = (val) => { // 保存 @@ -437,8 +437,15 @@ const openForm =async (type: string, row?: number) => { /** 详情操作 */ const detailRef = ref() +const mainStatus = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { lsBomSave.value = false + mainStatus.value = row.status; + console.log("mainStatus.value:",mainStatus.value) + ButttondataBom.value = [ + defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 + defaultButtons.formCloseBtn(null) // 关闭 + ] detailRef.value.openDetail(row, titleName, titleValue) }