| | |
| | | :style="{paddingTop: `${statusbarHeight}px`, height: `${navHeight}px`, lineHeight:`${navHeight}px`, textAlign: 'center'}">
|
| | | 待办</view>
|
| | | <view class="cY">
|
| | | <u-search placeholder="搜索关键字" bgColor="#f7f7f7" :showAction="false" @search="scrolltoupper"
|
| | | <u-search placeholder="搜索关键字" bgColor="#f7f7f7" :showAction="false" @search="search"
|
| | | shape="square" v-model="searchForm.mixParam"></u-search>
|
| | | <image src="../../static/filter@2x.png" class="img48 ml20" @click="filterAction" mode=""></image>
|
| | | </view>
|
| | |
| | | </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">
|
| | |
| | | total: 0,
|
| | | capacity: 10,
|
| | | page: 1,
|
| | | },
|
| | | }, |
| | | triggered: false, |
| | | finished: false,
|
| | | projectList: []
|
| | | }
|
| | | },
|
| | |
| | | })
|
| | | .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()
|
| | | },
|
| | | selectType(status) {
|
| | | if (this.searchForm.status == status) return
|
| | | this.searchForm.status = status
|
| | | this.scrolltolower()
|
| | | this.searchForm.status = status |
| | | this.search()
|
| | | },
|
| | | jump(item) {
|
| | | if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 跳转出库(转库单)
|
| | | jump(item) { |
| | | 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
|
| | | }
|
| | | 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',
|
| | |
| | | return
|
| | | }
|
| | | uni.navigateTo({
|
| | | url: '/pages/InOperation/InOperation',
|
| | | query: {
|
| | | id: item.objId,
|
| | | dbid: item.id,
|
| | | type: 7
|
| | | }
|
| | | url: `/pages/InOperation/InOperation?id=${item.objId}&dbid=${item.id}&type=7`
|
| | | })
|
| | | // router.push({
|
| | | // name: 'warehousing',
|
| | |
| | | // id: item.objId
|
| | | // }
|
| | | // })
|
| | | } else if (item.type === 9 && item.status === 0) { // 调整入库(入库单)
|
| | | } else if (item.type === 9 && item.status === 0) { // 调整入库(入库单) |
| | | uni.navigateTo({ |
| | | url: `/pages/InOperation/InOperation?id=${item.objId}&dbid=${item.id}&type=9` |
| | | })
|
| | | // router.push({
|
| | | // name: 'warehousing',
|
| | | // query: {
|
| | |
| | | },
|
| | | confirm() {
|
| | | this.searchForm.type = this.type
|
| | | this.show = false
|
| | | this.scrolltoupper()
|
| | | this.show = false |
| | | this.search()
|
| | | }, |
| | | search() { |
| | | this.page.page = 1 |
| | | this.loadData() |
| | | }
|
| | | }
|
| | | }
|