|
@@ -2,9 +2,13 @@
|
|
|
<div>
|
|
|
<van-nav-bar title="应急仓库" left-arrow placeholder @click-left="goback" :fixed="true" @click-right="bjclick">
|
|
|
<template #right>
|
|
|
- <router-link to="/warehouse/search"><van-icon name="search" size="18" /></router-link>
|
|
|
+ <van-icon size="18" name="question-o" />
|
|
|
+ <!-- <router-link to="/warehouse/search"><van-icon name="search" size="18" /></router-link> -->
|
|
|
</template>
|
|
|
</van-nav-bar>
|
|
|
+ <van-sticky>
|
|
|
+ <van-search v-model="value1" disabled @click="gosearch" placeholder="请输入搜索关键词" />
|
|
|
+ </van-sticky>
|
|
|
<div v-if="!isempt">
|
|
|
<div class="content">
|
|
|
<div class="itemc" v-for="item in cklist" >
|
|
@@ -45,6 +49,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive, onUpdated, onMounted, watch } from 'vue';
|
|
|
+import { useCommonStore, useIncidentStore, useMainStore } from '@/store';
|
|
|
import { RouterView, useRoute, useRouter } from 'vue-router';
|
|
|
import {
|
|
|
api_getckList,
|
|
@@ -55,6 +60,7 @@ import { BaseMediaUrl } from '@/utils';
|
|
|
import { upload } from '@/api/common';
|
|
|
import router from '@/router';
|
|
|
|
|
|
+const value1 = ref("");
|
|
|
|
|
|
const cklist = ref([])
|
|
|
const gotockedit=(item)=>{
|
|
@@ -69,7 +75,13 @@ const gotowzedit=(item)=>{
|
|
|
localStorage.setItem("cedit",false)
|
|
|
router.push("/warehouse/detail1"+(taskid==""?"":`?taskid=${taskid}`))
|
|
|
}
|
|
|
+const gosearch = () => {
|
|
|
+ router.push("/warehouse/search");
|
|
|
+}
|
|
|
+const bjclick = () => {
|
|
|
|
|
|
+ useMainStore().gotohelp("4ebfdaebd5e347f28383b039ed9d11bd");
|
|
|
+}
|
|
|
const goback = () => {
|
|
|
try {
|
|
|
uni.navigateBack();
|