2024-09-11 06:57:03 +00:00
|
|
|
|
<template>
|
2024-09-14 03:44:44 +00:00
|
|
|
|
<view class="content">
|
|
|
|
|
<navBar> 入库 </navBar>
|
|
|
|
|
<view class="container-box">
|
|
|
|
|
<span style="font-weight: bold"> 已扫画筒号:{{ state.pid }} </span>
|
|
|
|
|
<span style="margin-top: 40rpx"> 请放入: </span>
|
|
|
|
|
<view class="painting-box">
|
|
|
|
|
<span style="font-weight: bold; text-align: center"
|
|
|
|
|
>{{ state.containerName }}货架</span
|
2024-09-11 06:57:03 +00:00
|
|
|
|
>
|
2024-09-14 03:44:44 +00:00
|
|
|
|
<up-line style="margin-top: 20rpx"></up-line>
|
|
|
|
|
<span
|
|
|
|
|
style="
|
|
|
|
|
color: #cf3050;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
"
|
2024-09-11 06:57:03 +00:00
|
|
|
|
>
|
2024-09-14 07:57:06 +00:00
|
|
|
|
{{state.boxName}}
|
2024-09-14 03:44:44 +00:00
|
|
|
|
</span>
|
|
|
|
|
<span style="text-align: center; margin-top: 20rpx"> A列1行 </span>
|
2024-09-11 06:57:03 +00:00
|
|
|
|
</view>
|
2024-09-14 03:44:44 +00:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="button-container">
|
|
|
|
|
<up-button
|
|
|
|
|
style="width: 326rpx; margin: auto; height: 80rpx"
|
|
|
|
|
color="#BCBCBC"
|
|
|
|
|
throttleTime="5"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>取消</up-button
|
|
|
|
|
>
|
|
|
|
|
<up-button
|
|
|
|
|
style="width: 326rpx; margin: auto; height: 80rpx"
|
|
|
|
|
color="#EFC54E"
|
|
|
|
|
throttleTime="5"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>确认</up-button
|
|
|
|
|
>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref, reactive, onBeforeMount } from "vue";
|
|
|
|
|
import useToast from "@/hooks/toast/useToast.js";
|
|
|
|
|
import { onLoad } from "@dcloudio/uni-app";
|
|
|
|
|
import { freebox } from "@/api/login.js";
|
|
|
|
|
const { showMessage } = useToast();
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
const state = reactive({
|
2024-09-14 03:31:59 +00:00
|
|
|
|
id: "",
|
|
|
|
|
pid: "",
|
2024-09-14 03:44:44 +00:00
|
|
|
|
containerName: "",
|
2024-09-14 07:57:06 +00:00
|
|
|
|
boxName:"",
|
2024-09-14 03:31:59 +00:00
|
|
|
|
});
|
2024-09-14 03:44:44 +00:00
|
|
|
|
onLoad((options) => {
|
2024-09-14 07:57:06 +00:00
|
|
|
|
|
2024-09-14 03:44:44 +00:00
|
|
|
|
state.id = options.id;
|
2024-09-14 07:57:06 +00:00
|
|
|
|
state.pid = options.pid;
|
2024-09-14 03:44:44 +00:00
|
|
|
|
bindShelfHole();
|
|
|
|
|
});
|
2024-09-14 07:57:06 +00:00
|
|
|
|
|
|
|
|
|
|
2024-09-14 03:44:44 +00:00
|
|
|
|
const bindShelfHole = async () => {
|
2024-09-14 03:31:59 +00:00
|
|
|
|
loading.value = true;
|
2024-09-14 07:57:06 +00:00
|
|
|
|
|
2024-09-14 03:44:44 +00:00
|
|
|
|
const res = await freebox();
|
2024-09-14 03:31:59 +00:00
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
state.containerName = res.data.containerName;
|
2024-09-14 07:57:06 +00:00
|
|
|
|
state.boxName = res.data.boxName;
|
2024-09-14 03:44:44 +00:00
|
|
|
|
}
|
2024-09-14 07:57:06 +00:00
|
|
|
|
|
2024-09-14 03:31:59 +00:00
|
|
|
|
loading.value = false;
|
|
|
|
|
};
|
2024-09-14 03:44:44 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
page {
|
|
|
|
|
background: url("@/static/bgp.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
background-attachment: fixed;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
.container-box {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 98%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
margin-top: 60rpx;
|
|
|
|
|
padding: 40rpx;
|
2024-09-11 06:57:03 +00:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
2024-09-14 03:44:44 +00:00
|
|
|
|
|
|
|
|
|
.painting-box {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2024-09-11 06:57:03 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2024-09-14 03:44:44 +00:00
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
box-shadow: 0 0 6px rgba(219, 218, 218, 0.5);
|
2024-09-11 06:57:03 +00:00
|
|
|
|
}
|
2024-09-14 03:44:44 +00:00
|
|
|
|
}
|
|
|
|
|
.button-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 20rpx;
|
|
|
|
|
left: 0;
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
height: 8%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|