From 9aaa7a724e99f43d5e820bb97dc34124f943aac8 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 29 Oct 2025 16:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E6=88=BF=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=81=9C=E7=94=A8=E7=BB=99=E4=B8=80=E4=B8=AA=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E9=86=92=20=E4=BF=AE=E6=94=B9=E5=BA=93?= =?UTF-8?q?=E6=88=BF=E7=9A=84=E7=89=A9=E6=96=99=E5=90=AF=E7=94=A8=E5=81=9C?= =?UTF-8?q?=E7=94=A8=E7=BB=99=E4=B8=80=E4=B8=AA=E4=BA=8C=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BlWarehouseMaterialInfoList.vue | 26 ++++++++++++++++--- .../warehouseMaterialInfo/CkList.vue | 23 ++++++++++++++-- 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue index 1324416..b3ac047 100644 --- a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue +++ b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue @@ -101,6 +101,8 @@ import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMult import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import { JInput } from '/@/components/Form'; import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + const formRef = ref(); const queryParam = reactive({}); @@ -109,6 +111,7 @@ const registerModal = ref(); const registerAddModal = ref(); const registerCrkModal = ref(); const userStore = useUserStore(); +const { createConfirm } = useMessage(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { @@ -245,9 +248,26 @@ function getTableAction(record) { ]; } function handleQyty(record, izEnabled) { - defHttp.put({ url: '/invoicing/blWarehouseMaterialInfo/edit', params: { id: record.id, izEnabled: izEnabled } }).then(res => { - handleSuccess(); - }); + + var title = "是否启用"; + var content = "是否启用此物料"; + if(izEnabled == '1'){ + title = "是否停用"; + content = "是否停用此物料"; + } + createConfirm({ + iconType: 'warning', + title: title, + content: content, + okText: '确认', + cancelText: '取消', + onOk: () => { + defHttp.put({ url: '/invoicing/blWarehouseMaterialInfo/edit', params: { id: record.id, izEnabled: izEnabled } }).then(res => { + handleSuccess(); + }); + } + }); + } diff --git a/src/views/invoicing/warehouseMaterialInfo/CkList.vue b/src/views/invoicing/warehouseMaterialInfo/CkList.vue index 6c96c10..cad27e5 100644 --- a/src/views/invoicing/warehouseMaterialInfo/CkList.vue +++ b/src/views/invoicing/warehouseMaterialInfo/CkList.vue @@ -54,6 +54,9 @@ import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import { JInput } from '/@/components/Form'; import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); const formRef = ref(); const queryParam = reactive({areaFlag:'3'}); @@ -152,8 +155,24 @@ import { defHttp } from '/@/utils/http/axios'; ]; } function handleQyty(record,izEnabled) { - defHttp.put({ url: '/nuBaseInfo/nuBaseInfo/edit', params: { id: record.id,status:izEnabled} }).then(res => { - handleSuccess(); + + var title = "是否启用"; + var content = "是否启用此仓库"; + if(izEnabled == '5'){ + title = "是否停用"; + content = "是否停用此仓库"; + } + createConfirm({ + iconType: 'warning', + title: title, + content: content, + okText: '确认', + cancelText: '取消', + onOk: () => { + defHttp.put({ url: '/nuBaseInfo/nuBaseInfo/edit', params: { id: record.id,status:izEnabled} }).then(res => { + handleSuccess(); + }); + } }); }