This commit is contained in:
bb_pan 2025-06-23 14:54:04 +08:00
parent 462b293f49
commit a8423c38eb
2 changed files with 49 additions and 17 deletions

View File

@ -388,12 +388,12 @@ const errorStyle = {
// //
.complete-btn { .complete-btn {
display: flex; display: flex;
padding: 20rpx 24rpx; /* padding: 20rpx 24rpx; */
justify-content: center; justify-content: center;
background: #fff; /* background: #fff; */
border-radius: 20rpx; /* border-radius: 20rpx; */
margin-bottom: 20rpx; /* margin-bottom: 20rpx; */
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); /* box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); */
.btn { .btn {
display: flex; display: flex;
@ -437,18 +437,18 @@ const errorStyle = {
.search-form { .search-form {
display: flex; display: flex;
align-items: center; align-items: center;
background: #fff; /* background: #fff; */
padding: 24rpx; padding: 10rpx 24rpx;
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 20rpx; /* margin-bottom: 20rpx; */
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); /* box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); */
:deep(.uni-easyinput__content), :deep(.uni-easyinput__content),
:deep(.uni-date-editor) { :deep(.uni-date-editor) {
background-color: #f7f8fa; background-color: #f7f8fa;
border: 2rpx solid #e8e8e8; border: 2rpx solid #e8e8e8;
border-radius: 12rpx; border-radius: 12rpx;
height: 80rpx; height: 75rpx;
transition: all 0.3s ease; transition: all 0.3s ease;
&:focus-within { &:focus-within {
@ -550,10 +550,10 @@ const errorStyle = {
// //
.search { .search {
height: 80rpx; height: 60rpx;
background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%); background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);
text-align: center; text-align: center;
line-height: 80rpx; line-height: 60rpx;
color: #fff; color: #fff;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 28rpx;
@ -569,10 +569,10 @@ const errorStyle = {
// //
.addBtn { .addBtn {
height: 80rpx; height: 60rpx;
background: linear-gradient(135deg, #19be6b 0%, #16a75c 100%); background: linear-gradient(135deg, #19be6b 0%, #16a75c 100%);
text-align: center; text-align: center;
line-height: 80rpx; line-height: 60rpx;
color: #fff; color: #fff;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 28rpx;
@ -605,7 +605,7 @@ const errorStyle = {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 24rpx; /* margin-bottom: 24rpx; */
.code { .code {
font-size: 32rpx; font-size: 32rpx;
@ -661,7 +661,7 @@ const errorStyle = {
} }
:deep(.uni-row) { :deep(.uni-row) {
margin-bottom: 20rpx; /* margin-bottom: 20rpx; */
.uni-col-7 { .uni-col-7 {
color: #8c8c8c; color: #8c8c8c;
@ -672,7 +672,7 @@ const errorStyle = {
.cont { .cont {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
line-height: 1.8; /* line-height: 1.8; */
color: #262626; color: #262626;
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;

View File

@ -13,6 +13,9 @@
<uni-col :span="4"> <uni-col :span="4">
<view class="search qualified" @click="onQualified">合格</view> <view class="search qualified" @click="onQualified">合格</view>
</uni-col> </uni-col>
<uni-col :span="4">
<view class="search reject" @click="handleReject">驳回</view>
</uni-col>
</uni-row> </uni-row>
<view class="checkbox-group"> <view class="checkbox-group">
@ -220,6 +223,29 @@ const onRepairItem = (item) => {
} }
} }
//
const handleReject = () => {
//
if (!detailsList.value.some(item => item.isChecked)) {
uni.showToast({
title: '请选择要驳回的数据',
icon: 'none',
})
return
}
//
uni.showModal({
title: '提示',
content: '确定驳回吗?',
success: function (res) {
if (res.confirm) {
//
const checkedRows = detailsList.value.filter(item => item.isChecked)
console.log('🚀 ~ handleReject ~ checkedRows:', checkedRows)
}
}
})
}
onShow(() => { onShow(() => {
getRepairDetailsData() getRepairDetailsData()
}) })
@ -289,6 +315,12 @@ onUnmounted(() => {
background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
box-shadow: 0 6rpx 20rpx rgba(46, 204, 113, 0.2); box-shadow: 0 6rpx 20rpx rgba(46, 204, 113, 0.2);
} }
//
&.reject {
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
box-shadow: 0 6rpx 20rpx rgba(231, 76, 60, 0.2);
}
} }
} }