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 @@