|
|
@@ -14,7 +14,7 @@
|
|
|
</van-nav-bar>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <van-pull-refresh v-model="loading" @refresh="onRefresh" style="min-height: 85vh;">
|
|
|
+ <van-pull-refresh v-model="loading" @refresh="onRefresh" :style="{ 'max-height': computedMaxHeight,'min-height':computedMaxHeight ,'overflow':'auto'}" >
|
|
|
<table border="1" style="width: 100%;border-collapse: collapse;text-align: center;table-layout: fixed;" >
|
|
|
<thead>
|
|
|
<tr>
|
|
|
@@ -62,7 +62,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref } from 'vue'
|
|
|
+import { computed, onMounted, ref } from 'vue'
|
|
|
import { getHeader, goBack, scanError } from '@/utils/android'
|
|
|
import { useStore } from '@/store/modules/user'
|
|
|
import { getMoveTaskList } from '@/api/transferMove/index'
|
|
|
@@ -72,12 +72,17 @@ import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { toMap } from '@/utils/dataType.js'
|
|
|
import InputBarcode from '@/views/outbound/picking/components/InputBarcode.vue'
|
|
|
+import { openListener, scanInit } from '@/utils/keydownListener.js'
|
|
|
const router = useRouter()
|
|
|
try {
|
|
|
getHeader()
|
|
|
}catch (error) {
|
|
|
router.push('/login')
|
|
|
}
|
|
|
+const topHeight=ref(96)
|
|
|
+const computedMaxHeight = computed(() => {
|
|
|
+ return `calc(100vh - ${topHeight.value}px)`;
|
|
|
+});
|
|
|
const storeUser = useStore()
|
|
|
const warehouse = storeUser.warehouse
|
|
|
//任务列表
|