From 7794316e1e2ab71fc79a04f67c60b40695f0694a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Thu, 21 Nov 2024 16:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/yh/material/index.vue | 16 ++++++++++----- src/views/yh/prodOrder/index.vue | 34 +++++++++++++++++++------------- src/views/yh/unit/index.vue | 16 ++++++++++----- 3 files changed, 42 insertions(+), 24 deletions(-) diff --git a/src/views/yh/material/index.vue b/src/views/yh/material/index.vue index 28cc991..fff29b0 100644 --- a/src/views/yh/material/index.vue +++ b/src/views/yh/material/index.vue @@ -262,11 +262,17 @@ export default { }, methods: { handleSync() { - syncMaterial().then(res => { - if (res.code === 200) { - this.$message.success("同步成功"); - } - }) + this.$confirm('确定同步物料吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + syncMaterial().then(res => { + if (res.code === 200) { + this.$message.success("同步成功"); + } + }) + }); }, /** 当排序按钮被点击时触发 **/ onSortChange(column) { diff --git a/src/views/yh/prodOrder/index.vue b/src/views/yh/prodOrder/index.vue index e8c5e68..3a45701 100644 --- a/src/views/yh/prodOrder/index.vue +++ b/src/views/yh/prodOrder/index.vue @@ -58,16 +58,16 @@ - - 新增 - + + + + + + + + + + { - if (res.code === 200) { - this.$message.success("同步成功"); - } + this.$confirm('确定同步生产订单吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + syncProdOrder(query).then(res => { + if (res.code === 200) { + this.$message.success("同步成功"); + } + }) }) }, /** 当排序按钮被点击时触发 **/ diff --git a/src/views/yh/unit/index.vue b/src/views/yh/unit/index.vue index fb977b2..50976f0 100644 --- a/src/views/yh/unit/index.vue +++ b/src/views/yh/unit/index.vue @@ -242,11 +242,17 @@ export default { }, methods: { handleSync() { - syncUnit().then(res => { - if (res.code === 200) { - this.$message.success("同步成功"); - } - }) + this.$confirm('确定同步单位吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + syncUnit().then(res => { + if (res.code === 200) { + this.$message.success("同步成功"); + } + }) + }); }, /** 当排序按钮被点击时触发 **/ onSortChange(column) {