| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <div class="container">
- <van-nav-bar
- :title="taskType"
- left-arrow
- fixed
- placeholder
- >
- <template #left>
- <van-icon name="arrow-left" size="25" @click="goBack" />
- <div style="color: #fff" @click="onClickLeft">返回</div>
- </template>
- <template #right>
- <div style="color: #fff" @click="onClickRight">提交任务</div>
- </template>
- </van-nav-bar>
- <van-field v-model="barcode" label="条码" placeholder="请扫描条码" @keydown.enter.native="_checkBarcode" />
- </div>
- </template>
- <script setup>
- import { goBack } from '@/utils/android'
- import { useRoute } from 'vue-router'
- import { checkBlindBarcode, getBlindTask } from '@/api/blind/index.ts'
- import { ref } from 'vue'
- const route = useRoute()
- const barcode=ref('')
- //查询任务信息
- const taskInfo=ref({})
- const taskType=route.query.type
- const getTaskInfo=(taskNo)=>{
- getBlindTask({taskNo}).then(res => {
- taskInfo.value=res.data
- })
- }
- getTaskInfo(route.query.code)
- const _checkBarcode=()=>{
- const params={
- warehouse:taskInfo.value.warehouseCode,
- ownerCode:taskInfo.value.ownerCode,
- barcode:barcode.value,
- }
- checkBlindBarcode(params).then(res=>{
- console.log(res.data)
- })
- }
- // checkBlindBarcode
- const onClickLeft = () => {
- history.back();
- };
- const onClickRight=()=>{
- }
- </script>
- <style scoped lang="scss">
- </style>
|