2024-09-18 17:39:43 +08:00

60 lines
896 B
Vue

<template>
<view class="content">
<div class="scan-row">
<ScanInput @scanConfirm="scanConfirm"></ScanInput>
</div>
</view>
</template>
<script>
import { analysisScanCode } from '@/api/scan/index';
export default {
onLoad: function () {},
onShow() {},
data() {
return {
dateTime: this.$dayjs(),
value: ''
};
},
methods: {
scanConfirm(val) {
analysisScanCode({ materialCode: val }).then((res) => {
if (res.code === 200) {
console.log(res.data);
}
});
}
}
};
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: white;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>