Mr.Zhang
2023-09-06 c9a0e7808723c7a2534f07de2cfd35d1c9f2758a
minipro_standard/pages/index/index.vue
@@ -21,8 +21,8 @@
            </view>
         </view>
      </u-sticky>
      <scroll-view v-if="projectList.length" scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered"
         :refresher-threshold="100" @refresherpulling="scrolltolower" @refresherrefresh="scrolltoupper"
      <scroll-view v-if="projectList.length" scroll-y refresher-enabled="true" :refresher-triggered="triggered" @scrolltolower="loadMore"
         @refresherrefresh="refresh"
      >
         <view v-for="(item, index) in projectList" :key="index">
            <view class="box_list">
@@ -141,7 +141,9 @@
               total: 0,
               capacity: 10,
               page: 1,
            },
            },
            triggered: false,
            finished: false,
            projectList: []
         }
      },
@@ -179,13 +181,18 @@
               })
               .catch(err => {
               })
               .finally(() => {
                  this.triggered = false
               })
         },
         scrolltolower() {
            this.page.page = 1
         refresh() {
            if (this.triggered) return
            this.triggered = true;
            this.page.page = 1
            this.loadData()
         },
         scrolltoupper() {
         loadMore() {
            this.page.page += 1
            this.loadData()
         },
@@ -194,24 +201,13 @@
            this.searchForm.status = status
            this.scrolltolower()
         },
         jump(item) {
            if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 跳转出库(转库单)
         jump(item) {
            console.log(item);
            if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 跳转出库(转库单)
            console.log('出库');
               uni.navigateTo({
                  url: 'pages/OutOperation/OutOperation',
                  query: {
                     id: item.objId,
                     dbid: item.id,
                     type: 7
                  }
                  url: `/pages/OutOperation/OutOperation?id=${item.objId}&dbid=${item.id}&type=7`
               })
               // router.push({
               //    name: 'issueOperation',
               //    query: {
               //       id: item.objId,
               //       dbid: item.id,
               //       type: 7
               //    }
               // })
            } else if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 1) {
               // router.push({
               //    name: 'wTransferDetail',