From 9d6b1831460063a3a03a53e0aa8a343697680ae8 Mon Sep 17 00:00:00 2001 From: jyx <2012969435@qq.com> Date: Thu, 19 Sep 2024 15:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86h5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 9 ++++++- src/pages/detail/index.vue | 22 +++++++--------- src/pages/index/index.vue | 35 +++++++++++++++---------- src/pages/login/index.vue | 15 ++++++++--- src/pages/painting/index.vue | 50 ++++++++++++++++++++++++++---------- 5 files changed, 86 insertions(+), 45 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 213fd72..d5ac285 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -47,4 +47,11 @@ export const creChangepainting = (data) => { data, }); }; - \ No newline at end of file +//画桶绑定到空闲货架孔 +export const bind = (data) => { + return request({ + url: "/containeradm/v1/box_rel_bucket/bind", + method: "POST", + data, + }); +}; diff --git a/src/pages/detail/index.vue b/src/pages/detail/index.vue index 7312837..5d56468 100644 --- a/src/pages/detail/index.vue +++ b/src/pages/detail/index.vue @@ -24,30 +24,22 @@ 取消 - 确认 {{ buttonText }} - 返回继续扫码 + > --> @@ -60,6 +52,8 @@ const { showMessage } = useToast(); const isDetail = ref(false); const loading = ref(false); + const isButtonDisabled = ref(false); + const buttonText = ref("确认"); const state = reactive({ id: "", pid: "", @@ -101,6 +95,8 @@ const doneSet = async () => { }); if (res.status === 0) { showMessage({ type: "sucess", message: "出库成功" }); + isButtonDisabled.value = true; + buttonText.value = "已出库"; }else{ showMessage({ type: "error", message: res.msg }); } diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 4019b34..5794d00 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -14,6 +14,8 @@ margin-top: 15rpx; margin-left: 15rpx;" color="#EFC54E" throttleTime="5" :loading="loading" @click="login">搜索 + @@ -37,23 +39,17 @@ - + 取消 - 确认 {{ buttonText }} @@ -62,15 +58,19 @@