重庆bug修改

This commit is contained in:
FrancisHu 2024-08-08 10:02:14 +08:00
parent f65bcec13d
commit b1a77db6b9
2 changed files with 34 additions and 22 deletions

View File

@ -1,13 +1,13 @@
<template> <template>
<view> <view>
<view <view
class="single-fetch" class="single-fetch"
v-for="(fetch, index) in fetchMaterialList" v-for="(fetch, index) in fetchMaterialList"
:key="index" :key="index"
> >
<view class="fetch-upper"> <view class="fetch-upper">
<!-- <checkbox-group <!-- <checkbox-group
v-show="fetch.taskStatus != '35'" v-show="fetch.taskStatus != '35'"
style="margin-right: 15rpx;" style="margin-right: 15rpx;"
@change="checkClick(fetch)" @change="checkClick(fetch)"
> >
@ -48,7 +48,7 @@
</view> </view>
</view> </view>
<view class="fetch-btns"> <view class="fetch-btns">
<view <view
style="background-color: #3788FF;" style="background-color: #3788FF;"
@click="seeDetail(fetch.taskId)" @click="seeDetail(fetch.taskId)"
v-show="fetch.taskStatus != '35'" v-show="fetch.taskStatus != '35'"
@ -80,7 +80,7 @@
<uni-icons style="color: #fff;" type="auth"></uni-icons> <uni-icons style="color: #fff;" type="auth"></uni-icons>
机具分公司确认 机具分公司确认
</view> </view>
<!-- <view <!-- <view
style="background-color: #FCA30D;" style="background-color: #FCA30D;"
v-show="fetch.taskStatus == 30 && roles.includes('fgs')" v-show="fetch.taskStatus == 30 && roles.includes('fgs')"
@click="toggleOpenModal(fetch)" @click="toggleOpenModal(fetch)"
@ -183,7 +183,7 @@
</checkbox-group> </checkbox-group>
<text>全选</text> <text>全选</text>
</view> </view>
<view <view
class="exam" class="exam"
@click="toggleExam" @click="toggleExam"
> >
@ -191,16 +191,16 @@
</view> </view>
</view> --> </view> -->
<uni-popup <uni-popup
ref="popup" ref="popup"
type="center" type="center"
:mask-click="false" :mask-click="false"
> >
<view class="popup"> <view class="popup">
<view class="pop-top"> <view class="pop-top">
<h4>审批</h4> <h4>审批</h4>
<uni-icons <uni-icons
style="color: #AAAAAA; font-weight: bold;" style="color: #AAAAAA; font-weight: bold;"
type="closeempty" type="closeempty"
@click="closePopup" @click="closePopup"
> >
</uni-icons> </uni-icons>
@ -227,16 +227,16 @@
</view> </view>
</uni-popup> </uni-popup>
<uni-popup <uni-popup
ref="popup1" ref="popup1"
type="center" type="center"
:mask-click="false" :mask-click="false"
> >
<view class="popup1"> <view class="popup1">
<view class="pop-top"> <view class="pop-top">
<h4>驳回原因</h4> <h4>驳回原因</h4>
<uni-icons <uni-icons
style="color: #AAAAAA; font-weight: bold;" style="color: #AAAAAA; font-weight: bold;"
type="closeempty" type="closeempty"
@click="closePopup1" @click="closePopup1"
> >
</uni-icons> </uni-icons>
@ -256,6 +256,9 @@ import { basePath } from '../../public'
export default { export default {
data() { data() {
return { return {
pageNum: 1,
pageSize: 10,
pageTotal: 0,
showLoading: false, showLoading: false,
allChecked: false, allChecked: false,
examFormData: { examFormData: {
@ -277,7 +280,7 @@ import { basePath } from '../../public'
} }
}, },
fetchMaterialList: [ fetchMaterialList: [
], ],
examList: [], examList: [],
deviceList: [], deviceList: [],
@ -417,7 +420,7 @@ import { basePath } from '../../public'
break; break;
} }
that.modalList.leaseApplyInfoList[0].examineStatusId = that.examList.taskStatus that.modalList.leaseApplyInfoList[0].examineStatusId = that.examList.taskStatus
// if (that.modalList.taskStatus == 32) that.modalList.taskStatus = 100 // if (that.modalList.taskStatus == 32) that.modalList.taskStatus = 100
/* for (let i = 0; i < that.modalList.leaseApplyInfoList.length; i++) { /* for (let i = 0; i < that.modalList.leaseApplyInfoList.length; i++) {
that.modalList.leaseApplyInfoList[i].companyAuditBy = uni.getStorageSync('userInfo').userid that.modalList.leaseApplyInfoList[i].companyAuditBy = uni.getStorageSync('userInfo').userid
that.modalList.leaseApplyInfoList[i].deptAuditBy = uni.getStorageSync('userInfo').userid that.modalList.leaseApplyInfoList[i].deptAuditBy = uni.getStorageSync('userInfo').userid
@ -592,18 +595,21 @@ import { basePath } from '../../public'
let that = this let that = this
that.showLoading = true that.showLoading = true
that.$api.fetchExam.fetchTrueExamListCq({ that.$api.fetchExam.fetchTrueExamListCq({
souceBy: 1 souceBy: 0,
pageNum: that.pageNum,
pageSize: that.pageSize
}).then(res => { }).then(res => {
console.log(res); console.log(res);
if (res.data.code == 200) { if (res.data.code == 200) {
if (res.data.data.length == 0) { that.pageTotal = res.data.data.total
if (res.data.data.rows.length == 0) {
that.showLoading = false that.showLoading = false
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '未查询到相关数据!' title: '未查询到相关数据!'
}) })
} else { } else {
that.fetchMaterialList = res.data.data.rows that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
that.showLoading = false that.showLoading = false
console.log(that.fetchMaterialList); console.log(that.fetchMaterialList);
} }
@ -644,7 +650,13 @@ import { basePath } from '../../public'
} }
if (that.roles.includes('admin')) that.roles = ['admin', 'fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs'] if (that.roles.includes('admin')) that.roles = ['admin', 'fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs']
that.initFetch() that.initFetch()
} },
onReachBottom() {
console.log(this.fetchMaterialList, this.pageTotal);
if (this.fetchMaterialList.length >= this.pageTotal) return;
this.pageNum++
this.initFetch()
},
} }
</script> </script>
@ -753,7 +765,7 @@ import { basePath } from '../../public'
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
background-color: #fff; background-color: #fff;
border: 1px solid #3788FF; border: 1px solid #3788FF;
color: #3788FF; color: #3788FF;
} }
} }

File diff suppressed because one or more lines are too long