Mr.Zhang
2023-09-13 8c03902a415256e14c9039dcfc6e49982a709ee8
minipro_standard/pages/index/index.vue
@@ -9,8 +9,25 @@
               :style="{background: '#fff', zIndex: '999', paddingTop: `${statusbarHeight}px`, height: `${navHeight}px`, lineHeight:`${navHeight}px`, textAlign: 'center'}">
               待办</view>
            <div class="content_search">
               <v-Search @searchInput="searchInput" @submit="search" @reset="reset" :isShow="true"
               <v-Search @searchInput="searchInput" @submit="confirm" @reset="resetType" :isShow="true"
                  placeholder="搜索关键字">
                  <template v-slot:content>
                     <view class="rp contanir">
                        <view class="c2 b">类型</view>
                        <view class="content">
                           <u-grid col="2" :border="false">
                              <u-grid-item v-for="item in types" :key="item.id">
                                 <view class="ptb20 f26 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
                                    @click="type=item.id">{{ item.name }}</view>
                              </u-grid-item>
                           </u-grid>
                        </view>
                        <!-- <view class="flex ap tc bottom-view">
                           <view class="fx1 ptb20 sbtn_gray c9" @click="resetType">重置</view>
                           <view class="fx1 ml20 ptb20 sbtn_green" @click="confirm">确定</view>
                        </view> -->
                     </view>
                  </template>
               </v-Search>
               <div class="content_search_x"></div>
               <LabelSelection :TagList="tagList" :isShow="true" @change="clickTag"></LabelSelection>
@@ -166,7 +183,6 @@
               .in(this)
               .select('.content_search')
               .boundingClientRect((rect) => {
                  console.log('-----',rect);
                  that.height = `calc(100vh - ${rect.height + 80}px)`
                  that.top = `${rect.height}px`
               })
@@ -186,7 +202,6 @@
         searchInput(val) {
            this.searchForm.mixParam = val;
            this.search();
            this.getPageCount()
         },
         getPageCount() {
            pageCount({mixParam: this.searchForm.mixParam})
@@ -220,8 +235,10 @@
         refresh() {
            if (this.triggered) return
            this.triggered = true;
            this.page.page = 1
            this.loadData()
            this.search()
            // this.page.page = 1
            // this.loadData()
            // this.getPageCount()
         },
         loadMore() {
            this.page.page += 1
@@ -233,6 +250,7 @@
            this.search()
         },
         jump(item) {
            console.log(item.type);
            switch(item.type) {
               case 0: case 2: case 5: {
                  if (item.status === 0) {
@@ -240,6 +258,7 @@
                        url: `/pages_inspect/pages/OutOperation/OutOperation?id=${item.objId}&dbid=${item.id}&type=7`
                     })
                  } else {
                     debugger
                     uni.navigateTo({
                        url: `/pages_adjust/pages/warehousingDetails/warehousingDetails?id=${item.objId}&status=${item.status}&type=${item.type}&dbid=${item.id}`
                     })
@@ -388,7 +407,8 @@
         resetType() {
            this.type = ''
            this.searchForm.type = ''
            this.confirm()
            this.confirm()
         },
         confirm() {
            this.searchForm.type = this.type
@@ -398,6 +418,7 @@
         search() {
            this.page.page = 1
            this.loadData()
            this.getPageCount()
         }
      }
   }