Mr.Zhang
2023-09-06 a89fe32c353040bbb95d7519cf7bafc4b5934f10
minipro_standard/pages/index/index.vue
@@ -21,10 +21,9 @@
            </view>
         </view>
      </u-sticky>
      <scroll-view v-if="projectList.length" :style="windowHeight - (statusbarHeight + navHeight + 120) + 'px'"
         scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
         refresher-background="lightgreen" @refresherpulling="scrolltolower" @refresherrefresh="scrolltoupper"
         @refresherrestore="onRestore" @refresherabort="onAbort">
      <scroll-view v-if="projectList.length" scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered"
         :refresher-threshold="100" @refresherpulling="scrolltolower" @refresherrefresh="scrolltoupper"
      >
         <view v-for="(item, index) in projectList" :key="index">
            <view class="box_list">
               <view class="box_list_item" @click="jump(item)">
@@ -182,13 +181,6 @@
               })
         },
         onRestore() {
            this.triggered = 'restore'; // 需要重置
            console.log("onRestore");
         },
         onAbort() {
            console.log("onAbort");
         },
         scrolltolower() {
            this.page.page = 1
            this.loadData()
@@ -203,15 +195,15 @@
            this.scrolltolower()
         },
         jump(item) {
            if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 跳转出库(转库单)
              uni.navigateTo({
                 url: 'pages/OutOperation/OutOperation',
            if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 跳转出库(转库单)
               uni.navigateTo({
                  url: 'pages/OutOperation/OutOperation',
                  query: {
                     id: item.objId,
                     dbid: item.id,
                     type: 7
                  }
              })
                  }
               })
               // router.push({
               //    name: 'issueOperation',
               //    query: {
@@ -243,14 +235,14 @@
                  //    }
                  // })
                  return
               }
               uni.navigateTo({
                  url: '/pages/InOperation/InOperation',
                  query: {
                     id: item.objId,
                     dbid: item.id,
                     type: 7
                  }
               }
               uni.navigateTo({
                  url: '/pages/InOperation/InOperation',
                  query: {
                     id: item.objId,
                     dbid: item.id,
                     type: 7
                  }
               })
               // router.push({
               //    name: 'warehousing',