fix: 主归属人变更审核

This commit is contained in:
wangzhuo
2025-09-16 18:06:00 +08:00
parent b8e8a59da2
commit 24d35be511
3 changed files with 16 additions and 11 deletions

View File

@@ -163,7 +163,7 @@ const downCallback = async (mescroll) => {
const res = await getList(1, mescroll.size || upOption.page.size); const res = await getList(1, mescroll.size || upOption.page.size);
list.value = res.list; list.value = res.list;
// 正确传递 total 参数 // 正确传递 total 参数
mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size)); mescroll.endSuccess(res.list.length, res.total >= mescroll.size);
} catch (error) { } catch (error) {
mescroll.endErr(); mescroll.endErr();
} finally { } finally {
@@ -184,7 +184,7 @@ const upCallback = async (mescroll) => {
list.value.push(...res.list); list.value.push(...res.list);
} }
// 正确判断是否还有更多数据 // 正确判断是否还有更多数据
mescroll.endBySize(res.list.length, res.total) mescroll.endSuccess(res.list.length, res.total >= mescroll.size);
// mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size); // mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size);
} catch (error) { } catch (error) {
mescroll.endErr(); mescroll.endErr();

View File

@@ -602,11 +602,11 @@ let handleReject = () => {
async success(res){ async success(res){
if(res.confirm){ if(res.confirm){
if(res.content){ if(res.content){
let res = await changeOfPrimaryOwnershipNoApproved({ let response = await changeOfPrimaryOwnershipNoApproved({
opinionOwn: res.content, opinionOwn: res.content,
userId: formData.value.userId userId: formData.value.userId
}) })
if(res.code==200){ if(response.code===200){
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
success(){ success(){

View File

@@ -33,8 +33,8 @@
<view class="report-list" @click.stop="handleDetail(item)"> <view class="report-list" @click.stop="handleDetail(item)">
<view class="r-list title"> <view class="r-list title">
{{ item.cusName }} {{ item.cusName }}
<view class="r-right" :class="item.auditStatus ? '' : 'btn-pink' "> <view class="r-right no-wrap" :class="item.auditStatus ? 'btn-blue' : 'btn-pink' ">
{{ item.auditStatus ? '' : '待您审批' }} {{ item.auditStatus ? item.auditStatus : '待审核' }}
</view> </view>
</view> </view>
<view class="r-list"> <view class="r-list">
@@ -261,10 +261,12 @@ let handleDetail = (item) => {
} }
.scroll-h{ .scroll-h{
/* #ifdef APP-PLUS */ /* #ifdef APP-PLUS */
height: calc(100vh - 120px); top: 160rpx;
height: calc(100vh - 160rpx);
/* #endif */ /* #endif */
/* #ifndef APP-PLUS */ /* #ifndef APP-PLUS */
height: calc(100vh - 110px); top: 116rpx;
height: calc(100vh - 116rpx);
/* #endif */ /* #endif */
} }
@@ -272,7 +274,6 @@ let handleDetail = (item) => {
padding-right: 0 !important; padding-right: 0 !important;
} }
.white-bg { .white-bg {
padding-bottom: 10rpx; padding-bottom: 10rpx;
@@ -281,7 +282,11 @@ let handleDetail = (item) => {
} }
} }
.btn-pink { .no-wrap{
white-space: nowrap; white-space: nowrap;
} }
.btn-blue{
border-radius: 10rpx;
}
</style> </style>