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:
parent
88a034553d
commit
ee00ca7661
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wms-pda",
|
||||
"version": "1.0.124",
|
||||
"version": "1.0.125",
|
||||
"private": true,
|
||||
"description": "天豹云仓 WMS_PDA(uni-app Vue2 + @vue/cli 4.5)",
|
||||
"scripts": {
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name" : "WMS_PDA",
|
||||
"appid" : "__UNI__0B3DAD3",
|
||||
"description" : "多平台快速开发的UI框架",
|
||||
"versionName" : "1.0.124",
|
||||
"versionName" : "1.0.125",
|
||||
"versionCode" : 1000123,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<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-title">{{ title }}</view>
|
||||
<view v-if="canCancel || canSubmit" class="actions-popup-body">
|
||||
@ -82,9 +82,6 @@ export default {
|
||||
<style lang="scss" scoped>
|
||||
.actions-popup {
|
||||
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 {
|
||||
|
||||
@ -169,12 +169,18 @@ export default {
|
||||
// 防重入:同一手势可能被重复触发
|
||||
if (this.refreshing) return;
|
||||
this.refreshing = true;
|
||||
// App 端原生 refresher 需先收到 true、再收到 false 才会收回;
|
||||
// 若请求很快完成、true/false 在短时间内连续赋值,会被渲染层合并为一次 false,
|
||||
// 原生组件从未收到过 true,导致真机下拉刷新一直转圈(H5 自定义实现无此问题)
|
||||
await this.$nextTick();
|
||||
try {
|
||||
// 保持当前关键字/状态筛选,回到第一页重拉
|
||||
await this.loadRecordList(1);
|
||||
} finally {
|
||||
this.refreshing = false;
|
||||
uni.stopPullDownRefresh();
|
||||
// 延迟再关闭,确保原生 refresher 已渲染为 true 并能正常播放收回动画
|
||||
setTimeout(() => {
|
||||
this.refreshing = false;
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
handleRefresherRestore() {
|
||||
|
||||
@ -520,6 +520,8 @@ export default {
|
||||
// 防重入:同一手势可能被重复触发
|
||||
if (this.refreshing) return;
|
||||
this.refreshing = true;
|
||||
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
|
||||
await this.$nextTick();
|
||||
try {
|
||||
if (this.isWorkTab) {
|
||||
// 作业 tab:拉取作业数据(只读状态不允许拉取,直接跳过)
|
||||
@ -531,7 +533,9 @@ export default {
|
||||
await this.loadTaskDetail();
|
||||
}
|
||||
} finally {
|
||||
this.refreshing = false;
|
||||
setTimeout(() => {
|
||||
this.refreshing = false;
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
handleRefresherRestore() {
|
||||
|
||||
@ -529,10 +529,14 @@ export default {
|
||||
// 防重入:同一手势可能被重复触发
|
||||
if (this.refreshing) return;
|
||||
this.refreshing = true;
|
||||
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
|
||||
await this.$nextTick();
|
||||
try {
|
||||
await this.loadAll();
|
||||
} finally {
|
||||
this.refreshing = false;
|
||||
setTimeout(() => {
|
||||
this.refreshing = false;
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
handleRefresherRestore() {
|
||||
|
||||
@ -457,10 +457,14 @@ export default {
|
||||
// 防重入:同一手势可能被重复触发
|
||||
if (this.refreshing) return;
|
||||
this.refreshing = true;
|
||||
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
|
||||
await this.$nextTick();
|
||||
try {
|
||||
await this.loadAll();
|
||||
} finally {
|
||||
this.refreshing = false;
|
||||
setTimeout(() => {
|
||||
this.refreshing = false;
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
handleRefresherRestore() {
|
||||
|
||||
@ -285,10 +285,14 @@ export default {
|
||||
// 防重入:同一手势可能被重复触发
|
||||
if (this.refreshing) return;
|
||||
this.refreshing = true;
|
||||
// App 端原生 refresher 需先收到 true、再收到 false 才会收回(同列表页修复)
|
||||
await this.$nextTick();
|
||||
try {
|
||||
await this.loadAll();
|
||||
} finally {
|
||||
this.refreshing = false;
|
||||
setTimeout(() => {
|
||||
this.refreshing = false;
|
||||
}, 300);
|
||||
}
|
||||
},
|
||||
handleRefresherRestore() {
|
||||
|
||||
@ -21,13 +21,15 @@
|
||||
<text class="task-banner__label">任务名称</text>
|
||||
<text class="task-banner__value">{{ displayTitle }}</text>
|
||||
</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__value task-banner__value--remark"
|
||||
:class="{ 'task-banner__value--placeholder': !remarkInput }"
|
||||
>{{ remarkInput || '点击选择或维护常用备注' }}</text>
|
||||
<u-icon name="arrow-right" size="24rpx" color="#ad6800"></u-icon>
|
||||
<view class="task-banner__remark-box" @click="openRemarkPopup">
|
||||
<text
|
||||
class="task-banner__value task-banner__value--remark"
|
||||
:class="{ 'task-banner__value--placeholder': !remarkInput }"
|
||||
>{{ remarkInput || '点击选择或维护常用备注' }}</text>
|
||||
<u-icon class="task-banner__arrow" name="arrow-right" size="28rpx" color="#ad6800"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -79,8 +81,10 @@
|
||||
<!-- 本任务扫描记录(占用底部剩余空间,独立滚动) -->
|
||||
<view class="record-section">
|
||||
<view class="record-section__head">
|
||||
<text class="record-section__title">扫描记录</text>
|
||||
<text class="record-section__count">共 {{ recordTotal }} 条</text>
|
||||
<view class="record-section__head-left">
|
||||
<text class="record-section__title">扫描记录</text>
|
||||
<text class="record-section__count">共 {{ recordTotal }} 条</text>
|
||||
</view>
|
||||
<text v-if="recordFilterHint" class="record-section__hint">接口未按任务过滤,已前端筛选</text>
|
||||
<view class="record-section__btn" @click="handleExport">
|
||||
<text class="record-section__btn-text">导出</text>
|
||||
@ -253,15 +257,15 @@
|
||||
</view>
|
||||
|
||||
<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
|
||||
v-if="exportStatus === 'success' && exportUrl"
|
||||
class="export-popup__btn export-popup__btn--copy"
|
||||
class="export-popup__btn"
|
||||
@click="handleCopyExportUrl"
|
||||
>
|
||||
<text class="export-popup__btn-text export-popup__btn-text--copy">复制下载链接</text>
|
||||
</view>
|
||||
<view class="export-popup__btn" @click="closeExportPopup">
|
||||
<text class="export-popup__btn-text">关闭</text>
|
||||
<text class="export-popup__btn-text">复制下载链接</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -1293,7 +1297,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.remark-popup__title {
|
||||
font-size: 34rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
}
|
||||
@ -1303,7 +1307,20 @@ export default {
|
||||
margin-top: 28rpx;
|
||||
display: flex;
|
||||
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 {
|
||||
display: flex;
|
||||
@ -1311,12 +1328,13 @@ export default {
|
||||
justify-content: center;
|
||||
width: 130rpx;
|
||||
height: 64rpx;
|
||||
margin-left: 16rpx;
|
||||
background: #2979ff;
|
||||
border-radius: 8rpx;
|
||||
flex-shrink: 0;
|
||||
|
||||
.remark-popup__add-btn-text {
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
@ -1342,7 +1360,7 @@ export default {
|
||||
|
||||
.remark-popup__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
padding: 22rpx 24rpx;
|
||||
margin-bottom: 12rpx;
|
||||
background: #f5f7fa;
|
||||
@ -1357,11 +1375,10 @@ export default {
|
||||
.remark-popup__item-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
color: #303133;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.remark-popup__item-del {
|
||||
@ -1388,7 +1405,7 @@ export default {
|
||||
border-radius: 12rpx;
|
||||
|
||||
.remark-popup__btn-text {
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
color: #606266;
|
||||
}
|
||||
}
|
||||
@ -1405,7 +1422,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.more-popup__title {
|
||||
font-size: 34rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
}
|
||||
@ -1417,13 +1434,17 @@ export default {
|
||||
flex-direction: column;
|
||||
|
||||
.more-popup__btn {
|
||||
height: 88rpx;
|
||||
height: 96rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f5f7fa;
|
||||
border: 1rpx solid #e6e8eb;
|
||||
border-radius: 12rpx;
|
||||
background: #f0f7ff;
|
||||
border: 1rpx solid #b3d8ff;
|
||||
border-radius: 16rpx;
|
||||
|
||||
&:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
& + .more-popup__btn {
|
||||
margin-top: 20rpx;
|
||||
@ -1431,7 +1452,7 @@ export default {
|
||||
|
||||
.more-popup__btn-text {
|
||||
font-size: 32rpx;
|
||||
color: #303133;
|
||||
color: #2979ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1451,7 +1472,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.export-popup__title {
|
||||
font-size: 34rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
}
|
||||
@ -1466,12 +1487,12 @@ export default {
|
||||
justify-content: space-between;
|
||||
|
||||
.export-popup__status-text {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
color: #303133;
|
||||
}
|
||||
|
||||
.export-popup__percent {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #2979ff;
|
||||
}
|
||||
@ -1495,7 +1516,7 @@ export default {
|
||||
.export-popup__meta {
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #909399;
|
||||
}
|
||||
}
|
||||
@ -1514,13 +1535,13 @@ export default {
|
||||
|
||||
.export-popup__hint {
|
||||
margin-top: 12rpx;
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
.export-popup__url {
|
||||
margin-top: 12rpx;
|
||||
font-size: 24rpx;
|
||||
font-size: 28rpx;
|
||||
color: #606266;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
@ -1534,7 +1555,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.export-popup__failed-text {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
color: #f56c6c;
|
||||
text-align: center;
|
||||
}
|
||||
@ -1564,7 +1585,7 @@ export default {
|
||||
}
|
||||
|
||||
.export-popup__btn-text {
|
||||
font-size: 30rpx;
|
||||
font-size: 34rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@ -1585,7 +1606,7 @@ export default {
|
||||
|
||||
.task-banner__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
|
||||
& + .task-banner__row {
|
||||
margin-top: 8rpx;
|
||||
@ -1602,31 +1623,54 @@ export default {
|
||||
.task-banner__value {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
color: #000;
|
||||
font-weight: 600;
|
||||
/* 编号/任务名过长时单行省略 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
/* 编号/任务名过长时完整显示,可换行 */
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.task-banner__row--remark {
|
||||
margin-top: 12rpx;
|
||||
padding: 8rpx 12rpx;
|
||||
background: #fff;
|
||||
border-radius: 8rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.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 {
|
||||
margin-right: 8rpx;
|
||||
font-size: 28rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 400;
|
||||
color: #ad6800;
|
||||
/* 备注完整显示,可换行(覆盖基类单行省略) */
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.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 {
|
||||
font-size: 32rpx;
|
||||
font-size: 28rpx;
|
||||
color: #000;
|
||||
width: 160rpx;
|
||||
flex-shrink: 0;
|
||||
@ -1685,7 +1729,7 @@ export default {
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 32rpx;
|
||||
font-size: 36rpx;
|
||||
color: #000;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
@ -1708,6 +1752,7 @@ export default {
|
||||
background-color: #ffedd5;
|
||||
padding: 8rpx 20rpx;
|
||||
min-height: 56rpx;
|
||||
align-items: flex-start;
|
||||
|
||||
.info-label {
|
||||
width: 120rpx;
|
||||
@ -1715,14 +1760,13 @@ export default {
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
text-align: left;
|
||||
|
||||
&--waybill {
|
||||
font-size: 32rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 36rpx;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1772,7 +1816,7 @@ export default {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 24rpx 12rpx;
|
||||
margin: 16rpx 24rpx 12rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
@ -1784,33 +1828,44 @@ export default {
|
||||
padding: 16rpx 20rpx;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
|
||||
.record-section__head-left {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.record-section__title {
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
}
|
||||
|
||||
.record-section__count {
|
||||
margin-left: 12rpx;
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
.record-section__hint {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 12rpx;
|
||||
font-size: 22rpx;
|
||||
font-size: 28rpx;
|
||||
color: #fa8c16;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.record-section__btn {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: auto;
|
||||
padding: 4rpx 16rpx;
|
||||
background: #f0f7ff;
|
||||
width: 130rpx;
|
||||
height: 60rpx;
|
||||
padding: 0;
|
||||
background: #2979ff;
|
||||
border-radius: 8rpx;
|
||||
|
||||
&--refresh {
|
||||
@ -1818,8 +1873,9 @@ export default {
|
||||
}
|
||||
|
||||
.record-section__btn-text {
|
||||
font-size: 26rpx;
|
||||
color: #2979ff;
|
||||
font-size: 32rpx;
|
||||
color: #ffffff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1842,42 +1898,46 @@ export default {
|
||||
}
|
||||
|
||||
.record-list {
|
||||
padding: 0 20rpx;
|
||||
padding: 0;
|
||||
|
||||
.record-item {
|
||||
padding: 16rpx 0;
|
||||
padding: 16rpx 20rpx;
|
||||
border-bottom: 1rpx solid #f5f6f8;
|
||||
|
||||
/* 斑马纹:偶数行浅灰背景 */
|
||||
&:nth-child(even) {
|
||||
background: #f5f7fa;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.record-item__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
|
||||
.record-item__waybill {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 30rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
/* 单号完整显示,可换行 */
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.record-item__tag {
|
||||
flex-shrink: 0;
|
||||
max-width: 45%;
|
||||
margin-left: 12rpx;
|
||||
font-size: 22rpx;
|
||||
font-size: 28rpx;
|
||||
padding: 2rpx 12rpx;
|
||||
border-radius: 6rpx;
|
||||
/* 货主名过长时缩略 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
/* 标签内容完整显示,可换行 */
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
|
||||
&--origin {
|
||||
color: #237804;
|
||||
@ -1896,20 +1956,20 @@ export default {
|
||||
.record-item__meta {
|
||||
margin-top: 6rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
|
||||
/* 左:姓名 + 备注(备注超长省略) 右:时间 */
|
||||
/* 左:姓名 + 备注(备注完整显示,可换行) 右:时间 */
|
||||
.record-item__meta-left {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.record-item__meta-item {
|
||||
flex-shrink: 0;
|
||||
font-size: 24rpx;
|
||||
font-size: 28rpx;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
@ -1921,11 +1981,11 @@ export default {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 12rpx;
|
||||
font-size: 24rpx;
|
||||
font-size: 32rpx;
|
||||
color: #606266;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
/* 备注完整显示,可换行 */
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1938,7 +1998,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.record-foot__text {
|
||||
font-size: 24rpx;
|
||||
font-size: 28rpx;
|
||||
color: #c0c4cc;
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,14 +12,14 @@
|
||||
<!-- 搜索 + 范围切换 -->
|
||||
<view class="task-toolbar">
|
||||
<view class="task-toolbar__search">
|
||||
<u-input
|
||||
<u-search
|
||||
v-model="keyword"
|
||||
placeholder="搜索标题/批次号/创建人"
|
||||
border="surround"
|
||||
:customStyle="{ flex: 1 }"
|
||||
confirmType="search"
|
||||
@confirm="handleSearch"
|
||||
></u-input>
|
||||
:bg-color="'#f5f5f5'"
|
||||
shape="round"
|
||||
:show-action="false"
|
||||
@search="handleSearch"
|
||||
></u-search>
|
||||
<view class="task-toolbar__search-btn" @click="handleSearch">
|
||||
<text class="task-toolbar__search-text">搜索</text>
|
||||
</view>
|
||||
@ -409,24 +409,45 @@ export default {
|
||||
border-bottom: 1rpx solid #f2f2f2;
|
||||
|
||||
.task-toolbar__search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
position: relative;
|
||||
|
||||
::v-deep .u-search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
::v-deep .u-search__content {
|
||||
padding-right: 120rpx;
|
||||
}
|
||||
|
||||
.task-toolbar__search-btn {
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
height: 68rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 130rpx;
|
||||
height: 64rpx;
|
||||
background: #2979ff;
|
||||
border-radius: 8rpx;
|
||||
flex-shrink: 0;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 1rpx;
|
||||
height: 28rpx;
|
||||
background: #dcdfe6;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: 0.88;
|
||||
}
|
||||
}
|
||||
|
||||
.task-toolbar__search-text {
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
font-size: 34rpx;
|
||||
font-weight: 500;
|
||||
color: #2979ff;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -436,6 +457,9 @@ export default {
|
||||
align-items: center;
|
||||
|
||||
.task-scope__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8rpx 32rpx;
|
||||
margin-right: 16rpx;
|
||||
background: #f5f7fa;
|
||||
@ -522,7 +546,7 @@ export default {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 16rpx;
|
||||
font-size: 32rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
/* 编号过长时单行省略,避免挤掉右侧登记数 */
|
||||
@ -533,7 +557,7 @@ export default {
|
||||
|
||||
.task-card__count {
|
||||
flex-shrink: 0;
|
||||
font-size: 26rpx;
|
||||
font-size: 34rpx;
|
||||
color: #ffffff;
|
||||
background: #52c41a;
|
||||
border-radius: 24rpx;
|
||||
@ -553,7 +577,7 @@ export default {
|
||||
|
||||
.task-card__title {
|
||||
flex: 1;
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
color: #303133;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@ -563,7 +587,7 @@ export default {
|
||||
.task-card__flag {
|
||||
flex-shrink: 0;
|
||||
margin-left: 12rpx;
|
||||
font-size: 22rpx;
|
||||
font-size: 26rpx;
|
||||
color: #ad6800;
|
||||
background: #fff7e6;
|
||||
border: 1rpx solid #ffd591;
|
||||
@ -607,7 +631,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
.create-popup__title {
|
||||
font-size: 34rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
}
|
||||
@ -617,6 +641,13 @@ export default {
|
||||
margin-top: 32rpx;
|
||||
display: flex;
|
||||
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 {
|
||||
@ -627,11 +658,11 @@ export default {
|
||||
|
||||
.create-popup__btn {
|
||||
flex: 1;
|
||||
height: 80rpx;
|
||||
height: 88rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12rpx;
|
||||
border-radius: 16rpx;
|
||||
|
||||
& + .create-popup__btn {
|
||||
margin-left: 24rpx;
|
||||
@ -651,7 +682,7 @@ export default {
|
||||
}
|
||||
|
||||
.create-popup__btn-text {
|
||||
font-size: 32rpx;
|
||||
font-size: 34rpx;
|
||||
color: #606266;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user