feat: 版本升级至 1.0.125,修复库存盘点下拉刷新卡死,优化退料单页面 UI

1. 版本号升级 1.0.124 -> 1.0.125
   - package.json、src/manifest.json

2. 修复库存盘点页下拉刷新卡死问题
   - App 端原生 refresher 需先收到 true 再收到 false 才会收回,
     请求过快时 true/false 被渲染层合并,导致真机下拉一直转圈
   - 改为 await $nextTick() 后延迟 300ms 再关闭 refreshing
   - 涉及:inventoryCount、inventoryCountDetail、inventoryCountGoods、
     inventoryCountLocation、inventoryCountSpace

3. 退料单页面 UI 优化
   - 搜索框由 u-input 改为 u-search 圆角样式,搜索按钮绝对定位于框内右侧
   - 任务卡、弹窗、扫描记录整体字体放大,提升真机可读性
   - 编号/单号/备注等长文本由单行省略改为完整换行显示
   - 扫描记录列表增加斑马纹(偶数行浅灰背景),导出按钮改为蓝色实底
   - 备注弹窗输入框与按钮等高对齐,旧真机不支持 flex gap 改用 margin
   - u-popup 圆角改用组件 round 属性,移除手写圆角样式
This commit is contained in:
zm2000 2026-10-11 17:37:05 +08:00
parent 88a034553d
commit ee00ca7661
10 changed files with 231 additions and 121 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "wms-pda", "name": "wms-pda",
"version": "1.0.124", "version": "1.0.125",
"private": true, "private": true,
"description": "天豹云仓 WMS_PDA(uni-app Vue2 + @vue/cli 4.5)", "description": "天豹云仓 WMS_PDA(uni-app Vue2 + @vue/cli 4.5)",
"scripts": { "scripts": {

View File

@ -2,7 +2,7 @@
"name" : "WMS_PDA", "name" : "WMS_PDA",
"appid" : "__UNI__0B3DAD3", "appid" : "__UNI__0B3DAD3",
"description" : "多平台快速开发的UI框架", "description" : "多平台快速开发的UI框架",
"versionName" : "1.0.124", "versionName" : "1.0.125",
"versionCode" : 1000123, "versionCode" : 1000123,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {

View File

@ -1,5 +1,5 @@
<template> <template>
<u-popup :show="show" mode="bottom" :closeable="true" border-radius="20" @close="$emit('close')"> <u-popup :show="show" mode="bottom" :closeable="true" round="20" @close="$emit('close')">
<view class="actions-popup"> <view class="actions-popup">
<view class="actions-popup-title">{{ title }}</view> <view class="actions-popup-title">{{ title }}</view>
<view v-if="canCancel || canSubmit" class="actions-popup-body"> <view v-if="canCancel || canSubmit" class="actions-popup-body">
@ -82,9 +82,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.actions-popup { .actions-popup {
padding: 48rpx 32rpx calc(40rpx + env(safe-area-inset-bottom)); padding: 48rpx 32rpx calc(40rpx + env(safe-area-inset-bottom));
background: #ffffff;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
} }
.actions-popup-title { .actions-popup-title {

View File

@ -169,12 +169,18 @@ export default {
// 防重入:同一手势可能被重复触发 // 防重入:同一手势可能被重复触发
if (this.refreshing) return; if (this.refreshing) return;
this.refreshing = true; this.refreshing = true;
// App 端原生 refresher 需先收到 true、再收到 false 才会收回;
// 若请求很快完成、true/false 在短时间内连续赋值,会被渲染层合并为一次 false,
// 原生组件从未收到过 true,导致真机下拉刷新一直转圈(H5 自定义实现无此问题)
await this.$nextTick();
try { try {
// 保持当前关键字/状态筛选,回到第一页重拉 // 保持当前关键字/状态筛选,回到第一页重拉
await this.loadRecordList(1); await this.loadRecordList(1);
} finally { } finally {
this.refreshing = false; // 延迟再关闭,确保原生 refresher 已渲染为 true 并能正常播放收回动画
uni.stopPullDownRefresh(); setTimeout(() => {
this.refreshing = false;
}, 300);
} }
}, },
handleRefresherRestore() { handleRefresherRestore() {

View File

@ -520,6 +520,8 @@ export default {
// 防重入:同一手势可能被重复触发 // 防重入:同一手势可能被重复触发
if (this.refreshing) return; if (this.refreshing) return;
this.refreshing = true; this.refreshing = true;
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
await this.$nextTick();
try { try {
if (this.isWorkTab) { if (this.isWorkTab) {
// 作业 tab:拉取作业数据(只读状态不允许拉取,直接跳过) // 作业 tab:拉取作业数据(只读状态不允许拉取,直接跳过)
@ -531,7 +533,9 @@ export default {
await this.loadTaskDetail(); await this.loadTaskDetail();
} }
} finally { } finally {
this.refreshing = false; setTimeout(() => {
this.refreshing = false;
}, 300);
} }
}, },
handleRefresherRestore() { handleRefresherRestore() {

View File

@ -529,10 +529,14 @@ export default {
// 防重入:同一手势可能被重复触发 // 防重入:同一手势可能被重复触发
if (this.refreshing) return; if (this.refreshing) return;
this.refreshing = true; this.refreshing = true;
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
await this.$nextTick();
try { try {
await this.loadAll(); await this.loadAll();
} finally { } finally {
this.refreshing = false; setTimeout(() => {
this.refreshing = false;
}, 300);
} }
}, },
handleRefresherRestore() { handleRefresherRestore() {

View File

@ -457,10 +457,14 @@ export default {
// 防重入:同一手势可能被重复触发 // 防重入:同一手势可能被重复触发
if (this.refreshing) return; if (this.refreshing) return;
this.refreshing = true; this.refreshing = true;
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
await this.$nextTick();
try { try {
await this.loadAll(); await this.loadAll();
} finally { } finally {
this.refreshing = false; setTimeout(() => {
this.refreshing = false;
}, 300);
} }
}, },
handleRefresherRestore() { handleRefresherRestore() {

View File

@ -285,10 +285,14 @@ export default {
// 防重入:同一手势可能被重复触发 // 防重入:同一手势可能被重复触发
if (this.refreshing) return; if (this.refreshing) return;
this.refreshing = true; this.refreshing = true;
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
await this.$nextTick();
try { try {
await this.loadAll(); await this.loadAll();
} finally { } finally {
this.refreshing = false; setTimeout(() => {
this.refreshing = false;
}, 300);
} }
}, },
handleRefresherRestore() { handleRefresherRestore() {

View File

@ -21,13 +21,15 @@
<text class="task-banner__label">任务名称</text> <text class="task-banner__label">任务名称</text>
<text class="task-banner__value">{{ displayTitle }}</text> <text class="task-banner__value">{{ displayTitle }}</text>
</view> </view>
<view class="task-banner__row task-banner__row--remark" @click="openRemarkPopup"> <view class="task-banner__row task-banner__row--remark">
<text class="task-banner__label">备注</text> <text class="task-banner__label">备注</text>
<text <view class="task-banner__remark-box" @click="openRemarkPopup">
class="task-banner__value task-banner__value--remark" <text
:class="{ 'task-banner__value--placeholder': !remarkInput }" class="task-banner__value task-banner__value--remark"
>{{ remarkInput || '点击选择或维护常用备注' }}</text> :class="{ 'task-banner__value--placeholder': !remarkInput }"
<u-icon name="arrow-right" size="24rpx" color="#ad6800"></u-icon> >{{ remarkInput || '点击选择或维护常用备注' }}</text>
<u-icon class="task-banner__arrow" name="arrow-right" size="28rpx" color="#ad6800"></u-icon>
</view>
</view> </view>
</view> </view>
@ -79,8 +81,10 @@
<!-- 本任务扫描记录(占用底部剩余空间,独立滚动) --> <!-- 本任务扫描记录(占用底部剩余空间,独立滚动) -->
<view class="record-section"> <view class="record-section">
<view class="record-section__head"> <view class="record-section__head">
<text class="record-section__title">扫描记录</text> <view class="record-section__head-left">
<text class="record-section__count">共 {{ recordTotal }} 条</text> <text class="record-section__title">扫描记录</text>
<text class="record-section__count">共 {{ recordTotal }} 条</text>
</view>
<text v-if="recordFilterHint" class="record-section__hint">接口未按任务过滤,已前端筛选</text> <text v-if="recordFilterHint" class="record-section__hint">接口未按任务过滤,已前端筛选</text>
<view class="record-section__btn" @click="handleExport"> <view class="record-section__btn" @click="handleExport">
<text class="record-section__btn-text">导出</text> <text class="record-section__btn-text">导出</text>
@ -253,15 +257,15 @@
</view> </view>
<view class="export-popup__actions"> <view class="export-popup__actions">
<view class="export-popup__btn export-popup__btn--copy" @click="closeExportPopup">
<text class="export-popup__btn-text export-popup__btn-text--copy">关闭</text>
</view>
<view <view
v-if="exportStatus === 'success' && exportUrl" v-if="exportStatus === 'success' && exportUrl"
class="export-popup__btn export-popup__btn--copy" class="export-popup__btn"
@click="handleCopyExportUrl" @click="handleCopyExportUrl"
> >
<text class="export-popup__btn-text export-popup__btn-text--copy">复制下载链接</text> <text class="export-popup__btn-text">复制下载链接</text>
</view>
<view class="export-popup__btn" @click="closeExportPopup">
<text class="export-popup__btn-text">关闭</text>
</view> </view>
</view> </view>
</view> </view>
@ -1293,7 +1297,7 @@ export default {
justify-content: center; justify-content: center;
.remark-popup__title { .remark-popup__title {
font-size: 34rpx; font-size: 38rpx;
font-weight: 600; font-weight: 600;
color: #303133; color: #303133;
} }
@ -1303,7 +1307,20 @@ export default {
margin-top: 28rpx; margin-top: 28rpx;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16rpx;
/* 旧真机不支持 flex gap,改用 margin 间隔;输入框与按钮等高平齐 */
::v-deep .u-input {
height: 64rpx;
box-sizing: border-box;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* 输入内容与占位提示字号调大 */
::v-deep .u-input__content__field-wrapper__field,
::v-deep .u-input input {
font-size: 36rpx;
}
.remark-popup__add-btn { .remark-popup__add-btn {
display: flex; display: flex;
@ -1311,12 +1328,13 @@ export default {
justify-content: center; justify-content: center;
width: 130rpx; width: 130rpx;
height: 64rpx; height: 64rpx;
margin-left: 16rpx;
background: #2979ff; background: #2979ff;
border-radius: 8rpx; border-radius: 8rpx;
flex-shrink: 0; flex-shrink: 0;
.remark-popup__add-btn-text { .remark-popup__add-btn-text {
font-size: 30rpx; font-size: 32rpx;
color: #ffffff; color: #ffffff;
} }
} }
@ -1342,7 +1360,7 @@ export default {
.remark-popup__item { .remark-popup__item {
display: flex; display: flex;
align-items: center; align-items: flex-start;
padding: 22rpx 24rpx; padding: 22rpx 24rpx;
margin-bottom: 12rpx; margin-bottom: 12rpx;
background: #f5f7fa; background: #f5f7fa;
@ -1357,11 +1375,10 @@ export default {
.remark-popup__item-text { .remark-popup__item-text {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
font-size: 30rpx; font-size: 36rpx;
color: #303133; color: #303133;
overflow: hidden; word-break: break-all;
text-overflow: ellipsis; overflow-wrap: break-word;
white-space: nowrap;
} }
.remark-popup__item-del { .remark-popup__item-del {
@ -1388,7 +1405,7 @@ export default {
border-radius: 12rpx; border-radius: 12rpx;
.remark-popup__btn-text { .remark-popup__btn-text {
font-size: 30rpx; font-size: 32rpx;
color: #606266; color: #606266;
} }
} }
@ -1405,7 +1422,7 @@ export default {
justify-content: center; justify-content: center;
.more-popup__title { .more-popup__title {
font-size: 34rpx; font-size: 38rpx;
font-weight: 600; font-weight: 600;
color: #303133; color: #303133;
} }
@ -1417,13 +1434,17 @@ export default {
flex-direction: column; flex-direction: column;
.more-popup__btn { .more-popup__btn {
height: 88rpx; height: 96rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #f5f7fa; background: #f0f7ff;
border: 1rpx solid #e6e8eb; border: 1rpx solid #b3d8ff;
border-radius: 12rpx; border-radius: 16rpx;
&:active {
opacity: 0.85;
}
& + .more-popup__btn { & + .more-popup__btn {
margin-top: 20rpx; margin-top: 20rpx;
@ -1431,7 +1452,7 @@ export default {
.more-popup__btn-text { .more-popup__btn-text {
font-size: 32rpx; font-size: 32rpx;
color: #303133; color: #2979ff;
} }
} }
} }
@ -1451,7 +1472,7 @@ export default {
justify-content: center; justify-content: center;
.export-popup__title { .export-popup__title {
font-size: 34rpx; font-size: 38rpx;
font-weight: 600; font-weight: 600;
color: #303133; color: #303133;
} }
@ -1466,12 +1487,12 @@ export default {
justify-content: space-between; justify-content: space-between;
.export-popup__status-text { .export-popup__status-text {
font-size: 30rpx; font-size: 36rpx;
color: #303133; color: #303133;
} }
.export-popup__percent { .export-popup__percent {
font-size: 30rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
color: #2979ff; color: #2979ff;
} }
@ -1495,7 +1516,7 @@ export default {
.export-popup__meta { .export-popup__meta {
display: block; display: block;
margin-top: 16rpx; margin-top: 16rpx;
font-size: 26rpx; font-size: 28rpx;
color: #909399; color: #909399;
} }
} }
@ -1514,13 +1535,13 @@ export default {
.export-popup__hint { .export-popup__hint {
margin-top: 12rpx; margin-top: 12rpx;
font-size: 26rpx; font-size: 28rpx;
color: #909399; color: #909399;
} }
.export-popup__url { .export-popup__url {
margin-top: 12rpx; margin-top: 12rpx;
font-size: 24rpx; font-size: 28rpx;
color: #606266; color: #606266;
text-align: center; text-align: center;
word-break: break-all; word-break: break-all;
@ -1534,7 +1555,7 @@ export default {
justify-content: center; justify-content: center;
.export-popup__failed-text { .export-popup__failed-text {
font-size: 30rpx; font-size: 36rpx;
color: #f56c6c; color: #f56c6c;
text-align: center; text-align: center;
} }
@ -1564,7 +1585,7 @@ export default {
} }
.export-popup__btn-text { .export-popup__btn-text {
font-size: 30rpx; font-size: 34rpx;
color: #ffffff; color: #ffffff;
} }
@ -1585,7 +1606,7 @@ export default {
.task-banner__row { .task-banner__row {
display: flex; display: flex;
align-items: center; align-items: flex-start;
& + .task-banner__row { & + .task-banner__row {
margin-top: 8rpx; margin-top: 8rpx;
@ -1602,31 +1623,54 @@ export default {
.task-banner__value { .task-banner__value {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
font-size: 30rpx; font-size: 36rpx;
color: #000; color: #000;
font-weight: 600; font-weight: 600;
/* 编号/任务名过长时单行省略 */ /* 编号/任务名过长时完整显示,可换行 */
overflow: hidden; word-break: break-all;
text-overflow: ellipsis; overflow-wrap: break-word;
white-space: nowrap;
} }
.task-banner__row--remark { .task-banner__row--remark {
margin-top: 12rpx; margin-top: 12rpx;
padding: 8rpx 12rpx; align-items: center;
background: #fff; }
border-radius: 8rpx;
.task-banner__remark-box {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
padding: 12rpx 20rpx;
background: #ffffff;
border: 1rpx solid #ffffff;
border-radius: 12rpx;
&:active {
background: #fffbe6;
}
} }
.task-banner__value--remark { .task-banner__value--remark {
margin-right: 8rpx; margin-right: 8rpx;
font-size: 28rpx; font-size: 36rpx;
font-weight: 400; font-weight: 400;
color: #ad6800; color: #ad6800;
/* 备注完整显示,可换行(覆盖基类单行省略) */
white-space: normal;
overflow: visible;
text-overflow: clip;
word-break: break-all;
overflow-wrap: break-word;
} }
.task-banner__value--placeholder { .task-banner__value--placeholder {
color: #c0c4cc; color: #909399;
}
.task-banner__arrow {
flex-shrink: 0;
align-self: center;
} }
} }
@ -1677,7 +1721,7 @@ export default {
} }
.info-label { .info-label {
font-size: 32rpx; font-size: 28rpx;
color: #000; color: #000;
width: 160rpx; width: 160rpx;
flex-shrink: 0; flex-shrink: 0;
@ -1685,7 +1729,7 @@ export default {
} }
.info-value { .info-value {
font-size: 32rpx; font-size: 36rpx;
color: #000; color: #000;
flex: 1; flex: 1;
text-align: center; text-align: center;
@ -1708,6 +1752,7 @@ export default {
background-color: #ffedd5; background-color: #ffedd5;
padding: 8rpx 20rpx; padding: 8rpx 20rpx;
min-height: 56rpx; min-height: 56rpx;
align-items: flex-start;
.info-label { .info-label {
width: 120rpx; width: 120rpx;
@ -1715,14 +1760,13 @@ export default {
} }
.info-value { .info-value {
font-size: 30rpx; font-size: 36rpx;
text-align: left; text-align: left;
&--waybill { &--waybill {
font-size: 32rpx; font-size: 36rpx;
overflow: hidden; word-break: break-all;
text-overflow: ellipsis; overflow-wrap: break-word;
white-space: nowrap;
} }
} }
} }
@ -1772,7 +1816,7 @@ export default {
min-height: 0; min-height: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 0 24rpx 12rpx; margin: 16rpx 24rpx 12rpx;
background: #ffffff; background: #ffffff;
border-radius: 12rpx; border-radius: 12rpx;
overflow: hidden; overflow: hidden;
@ -1784,33 +1828,44 @@ export default {
padding: 16rpx 20rpx; padding: 16rpx 20rpx;
border-bottom: 1rpx solid #f0f0f0; border-bottom: 1rpx solid #f0f0f0;
.record-section__head-left {
flex-shrink: 0;
display: flex;
align-items: baseline;
}
.record-section__title { .record-section__title {
font-size: 30rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
color: #303133; color: #303133;
} }
.record-section__count { .record-section__count {
margin-left: 12rpx; margin-left: 12rpx;
font-size: 26rpx; font-size: 28rpx;
color: #909399; color: #909399;
} }
.record-section__hint { .record-section__hint {
flex: 1; flex: 1;
min-width: 0;
margin-left: 12rpx; margin-left: 12rpx;
font-size: 22rpx; font-size: 28rpx;
color: #fa8c16; color: #fa8c16;
overflow: hidden; word-break: break-all;
text-overflow: ellipsis; overflow-wrap: break-word;
white-space: nowrap;
} }
.record-section__btn { .record-section__btn {
flex-shrink: 0; flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto; margin-left: auto;
padding: 4rpx 16rpx; width: 130rpx;
background: #f0f7ff; height: 60rpx;
padding: 0;
background: #2979ff;
border-radius: 8rpx; border-radius: 8rpx;
&--refresh { &--refresh {
@ -1818,8 +1873,9 @@ export default {
} }
.record-section__btn-text { .record-section__btn-text {
font-size: 26rpx; font-size: 32rpx;
color: #2979ff; color: #ffffff;
white-space: nowrap;
} }
} }
} }
@ -1842,42 +1898,46 @@ export default {
} }
.record-list { .record-list {
padding: 0 20rpx; padding: 0;
.record-item { .record-item {
padding: 16rpx 0; padding: 16rpx 20rpx;
border-bottom: 1rpx solid #f5f6f8; border-bottom: 1rpx solid #f5f6f8;
/* 斑马纹:偶数行浅灰背景 */
&:nth-child(even) {
background: #f5f7fa;
}
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
} }
.record-item__head { .record-item__head {
display: flex; display: flex;
align-items: center; align-items: flex-start;
.record-item__waybill { .record-item__waybill {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
font-size: 30rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
color: #000; color: #000;
overflow: hidden; /* 单号完整显示,可换行 */
text-overflow: ellipsis; word-break: break-all;
white-space: nowrap; overflow-wrap: break-word;
} }
.record-item__tag { .record-item__tag {
flex-shrink: 0; flex-shrink: 0;
max-width: 45%; max-width: 45%;
margin-left: 12rpx; margin-left: 12rpx;
font-size: 22rpx; font-size: 28rpx;
padding: 2rpx 12rpx; padding: 2rpx 12rpx;
border-radius: 6rpx; border-radius: 6rpx;
/* 货主名过长时缩略 */ /* 标签内容完整显示,可换行 */
overflow: hidden; word-break: break-all;
text-overflow: ellipsis; overflow-wrap: break-word;
white-space: nowrap;
&--origin { &--origin {
color: #237804; color: #237804;
@ -1896,20 +1956,20 @@ export default {
.record-item__meta { .record-item__meta {
margin-top: 6rpx; margin-top: 6rpx;
display: flex; display: flex;
align-items: center; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
/* 左:姓名 + 备注(备注超长省略) 右:时间 */ /* 左:姓名 + 备注(备注完整显示,可换行) 右:时间 */
.record-item__meta-left { .record-item__meta-left {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
display: flex; display: flex;
align-items: center; align-items: flex-start;
} }
.record-item__meta-item { .record-item__meta-item {
flex-shrink: 0; flex-shrink: 0;
font-size: 24rpx; font-size: 28rpx;
color: #909399; color: #909399;
} }
@ -1921,11 +1981,11 @@ export default {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
margin-left: 12rpx; margin-left: 12rpx;
font-size: 24rpx; font-size: 32rpx;
color: #606266; color: #606266;
overflow: hidden; /* 备注完整显示,可换行 */
text-overflow: ellipsis; word-break: break-all;
white-space: nowrap; overflow-wrap: break-word;
} }
} }
} }
@ -1938,7 +1998,7 @@ export default {
justify-content: center; justify-content: center;
.record-foot__text { .record-foot__text {
font-size: 24rpx; font-size: 28rpx;
color: #c0c4cc; color: #c0c4cc;
} }
} }

View File

@ -12,14 +12,14 @@
<!-- 搜索 + 范围切换 --> <!-- 搜索 + 范围切换 -->
<view class="task-toolbar"> <view class="task-toolbar">
<view class="task-toolbar__search"> <view class="task-toolbar__search">
<u-input <u-search
v-model="keyword" v-model="keyword"
placeholder="搜索标题/批次号/创建人" placeholder="搜索标题/批次号/创建人"
border="surround" :bg-color="'#f5f5f5'"
:customStyle="{ flex: 1 }" shape="round"
confirmType="search" :show-action="false"
@confirm="handleSearch" @search="handleSearch"
></u-input> ></u-search>
<view class="task-toolbar__search-btn" @click="handleSearch"> <view class="task-toolbar__search-btn" @click="handleSearch">
<text class="task-toolbar__search-text">搜索</text> <text class="task-toolbar__search-text">搜索</text>
</view> </view>
@ -409,24 +409,45 @@ export default {
border-bottom: 1rpx solid #f2f2f2; border-bottom: 1rpx solid #f2f2f2;
.task-toolbar__search { .task-toolbar__search {
display: flex; position: relative;
align-items: center;
gap: 16rpx; ::v-deep .u-search {
width: 100%;
}
::v-deep .u-search__content {
padding-right: 120rpx;
}
.task-toolbar__search-btn { .task-toolbar__search-btn {
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
height: 68rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 130rpx;
height: 64rpx;
background: #2979ff;
border-radius: 8rpx;
flex-shrink: 0; flex-shrink: 0;
&::before {
content: '';
width: 1rpx;
height: 28rpx;
background: #dcdfe6;
margin-right: 16rpx;
}
&:active {
opacity: 0.88;
}
} }
.task-toolbar__search-text { .task-toolbar__search-text {
font-size: 30rpx; font-size: 34rpx;
color: #ffffff; font-weight: 500;
color: #2979ff;
line-height: 1;
} }
} }
@ -436,6 +457,9 @@ export default {
align-items: center; align-items: center;
.task-scope__item { .task-scope__item {
display: flex;
align-items: center;
justify-content: center;
padding: 8rpx 32rpx; padding: 8rpx 32rpx;
margin-right: 16rpx; margin-right: 16rpx;
background: #f5f7fa; background: #f5f7fa;
@ -522,7 +546,7 @@ export default {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
margin-right: 16rpx; margin-right: 16rpx;
font-size: 32rpx; font-size: 38rpx;
font-weight: 600; font-weight: 600;
color: #000; color: #000;
/* 编号过长时单行省略,避免挤掉右侧登记数 */ /* 编号过长时单行省略,避免挤掉右侧登记数 */
@ -533,7 +557,7 @@ export default {
.task-card__count { .task-card__count {
flex-shrink: 0; flex-shrink: 0;
font-size: 26rpx; font-size: 34rpx;
color: #ffffff; color: #ffffff;
background: #52c41a; background: #52c41a;
border-radius: 24rpx; border-radius: 24rpx;
@ -553,7 +577,7 @@ export default {
.task-card__title { .task-card__title {
flex: 1; flex: 1;
font-size: 30rpx; font-size: 32rpx;
color: #303133; color: #303133;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -563,7 +587,7 @@ export default {
.task-card__flag { .task-card__flag {
flex-shrink: 0; flex-shrink: 0;
margin-left: 12rpx; margin-left: 12rpx;
font-size: 22rpx; font-size: 26rpx;
color: #ad6800; color: #ad6800;
background: #fff7e6; background: #fff7e6;
border: 1rpx solid #ffd591; border: 1rpx solid #ffd591;
@ -607,7 +631,7 @@ export default {
justify-content: center; justify-content: center;
.create-popup__title { .create-popup__title {
font-size: 34rpx; font-size: 38rpx;
font-weight: 600; font-weight: 600;
color: #303133; color: #303133;
} }
@ -617,6 +641,13 @@ export default {
margin-top: 32rpx; margin-top: 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
/* 新建任务输入框内容字号 */
::v-deep .u-input__content__field-wrapper__field,
::v-deep .u-input__content__field-wrapper__field input,
::v-deep .u-input input {
font-size: 38rpx !important;
}
} }
.create-popup__actions { .create-popup__actions {
@ -627,11 +658,11 @@ export default {
.create-popup__btn { .create-popup__btn {
flex: 1; flex: 1;
height: 80rpx; height: 88rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 12rpx; border-radius: 16rpx;
& + .create-popup__btn { & + .create-popup__btn {
margin-left: 24rpx; margin-left: 24rpx;
@ -651,7 +682,7 @@ export default {
} }
.create-popup__btn-text { .create-popup__btn-text {
font-size: 32rpx; font-size: 34rpx;
color: #606266; color: #606266;
} }