From b86f3537af621ea0545f2731c25f8a611f7d066c Mon Sep 17 00:00:00 2001 From: zhang_li Date: Thu, 17 Jul 2025 15:35:11 +0800 Subject: [PATCH] =?UTF-8?q?YT-2893=E9=A1=BA=E5=BC=95=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=EF=BC=8C=E7=BA=B3=E5=85=A5=E5=8F=97=E9=A2=86=E4=B9=A6=EF=BC=8C?= =?UTF-8?q?=E7=BA=B3=E5=85=A5=E6=95=B0=E9=87=8F=E5=A4=A7=E4=BA=8E=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E6=95=B0=E9=87=8F=EF=BC=8C=E5=B7=AE=E5=BC=82=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E5=B7=AE=E5=BC=82=E6=95=B0=E9=87=8F=E9=83=BD?= =?UTF-8?q?=E6=98=AF0=E6=97=B6=E5=80=99=E6=89=8D=E8=83=BD=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=88=90=E5=8A=9F=EF=BC=8C=E7=8E=B0=E4=B8=8D=E6=98=AF?= =?UTF-8?q?0=E4=B9=9F=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 9 ++++- .../deliverRecordMain/index.vue | 40 ++++++++++++++++--- 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 5ed8beac6..59c17c4e1 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -852,7 +852,14 @@ if (props.isShowFooterButtton) { if (props.footButttondata) { Butttondata = props.footButttondata } - +watch( + () =>props.footButttondata, + (val) => { + Butttondata = props.footButttondata + },{ + deep: true + } +) /** 按钮事件 */ const buttonBaseClick = (val) => { // 扩展 按钮事件回调 diff --git a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue index 87115d2d3..2874f0964 100644 --- a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue @@ -780,12 +780,6 @@ const openDifferenceData = (formModel,list) => { tableDataBillDate.value = [] }) } -const detailButttondataClick = (val) => { - // 点击调整差异数量 - if (val == 'adjustDiffData') { - handleAdjustDifferenceData() - } -} const tableDatAadjustDiffData = ref({ tableList: [], pageSize: 10, @@ -793,6 +787,40 @@ const tableDatAadjustDiffData = ref({ total: 0, loading:false }) +watch( + () => tableDatAadjustDiffData.value.tableList.length, + (val) => { + debugger + if (val > 0) { + footButttondataAdjustDiffData.value = [ + defaultButtons.formCloseBtn(null) // BOM关闭 + ] + } else { + footButttondataAdjustDiffData.value = [ + { + label: t('ts.下一步'), + name: 'nextStep', + type: 'primary', + hide: false, + icon: '', + color: '', + float: 'right', + hasPermi: '' + }, // 下一步 + defaultButtons.formCloseBtn(null) // BOM关闭 + ] + } + },{ + deep: true + } +) +const detailButttondataClick = (val) => { + // 点击调整差异数量 + if (val == 'adjustDiffData') { + handleAdjustDifferenceData() + } +} + watch( () => tableDataBillDate.value.length, (val) => {