feat: 放大小屏界面并让待审核单直达编辑

This commit is contained in:
郭鸿轩 2026-09-24 21:54:17 +08:00
parent 63755eab5c
commit bff563b444
7 changed files with 116 additions and 44 deletions

View File

@ -32,11 +32,11 @@ export default {
border-bottom: 1rpx solid #f5f5f5; border-bottom: 1rpx solid #f5f5f5;
} }
.statusLabel { .statusLabel {
font-size: 28rpx; font-size: 40rpx;
color: #333; color: #333;
} }
.statusTag { .statusTag {
font-size: 24rpx; font-size: 34rpx;
padding: 4rpx 12rpx; padding: 4rpx 12rpx;
border-radius: 6rpx; border-radius: 6rpx;
font-weight: normal; font-weight: normal;

View File

@ -800,30 +800,12 @@
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"borderStyle": "white", "borderStyle": "white",
"list": [ "list": [
{
"pagePath": "pages/sys/msg/index",
"iconPath": "static/aidex/tabbar/msg_1.png",
"selectedIconPath": "static/aidex/tabbar/msg_2.png",
"text": "消息"
},
// {
// "pagePath": "pages/sys/home/index",
// "iconPath": "static/aidex/tabbar/home_1.png",
// "selectedIconPath": "static/aidex/tabbar/home_2.png",
// "text": "首页"
// },
{ {
"pagePath": "pages/sys/workbench/index", "pagePath": "pages/sys/workbench/index",
"iconPath": "static/aidex/tabbar/apply_1.png", "iconPath": "static/aidex/tabbar/apply_1.png",
"selectedIconPath": "static/aidex/tabbar/apply_2.png", "selectedIconPath": "static/aidex/tabbar/apply_2.png",
"text": "工作台" "text": "工作台"
}, },
{
"pagePath": "pages/sys/book/index",
"iconPath": "static/aidex/tabbar/book_1.png",
"selectedIconPath": "static/aidex/tabbar/book_2.png",
"text": "通讯录"
},
{ {
"pagePath": "pages/sys/user/index", "pagePath": "pages/sys/user/index",
"iconPath": "static/aidex/tabbar/my_1.png", "iconPath": "static/aidex/tabbar/my_1.png",

View File

@ -76,6 +76,7 @@ import FabricOutItem from '@/components/card/storeFabricBusinessOutItem.vue';
import SearchSelectPopup from '@/components/storefabric/SearchSelectPopup.vue'; import SearchSelectPopup from '@/components/storefabric/SearchSelectPopup.vue';
import { import {
getStatusOptions, getStatusOptions,
AUDIT_STATUS,
AUDIT_STATUS_MAP, AUDIT_STATUS_MAP,
BILL_TYPES, BILL_TYPES,
BUSINESS_UNIT_TYPE_DYEING_FACTORY, BUSINESS_UNIT_TYPE_DYEING_FACTORY,
@ -273,7 +274,10 @@ export default {
this.loadList(); this.loadList();
}, },
goView(item) { goView(item) {
uni.navigateTo({ url: `./storeFabricBusinessOutView?id=${item.id}` }); const page = Number(item.audit_status) === AUDIT_STATUS.PENDING
? 'storeFabricBusinessOutEdit'
: 'storeFabricBusinessOutView';
uni.navigateTo({ url: `./${page}?id=${item.id}` });
}, },
openStatusSelect() { this.statusSelectShow = true; }, openStatusSelect() { this.statusSelectShow = true; },
onStatusConfirm(e) { this.filters.audit_status = e[0].value; }, onStatusConfirm(e) { this.filters.audit_status = e[0].value; },

View File

@ -6,8 +6,25 @@
.fabric-out-mt32 { .fabric-out-mt32 {
margin-top: 32rpx; margin-top: 32rpx;
} }
.fabric-out-page .flex-white-plr26,
.fabric-out-page .flex-white-plr26-column,
.fabric-out-page .flex-white-plr26 text,
.fabric-out-page .flex-white-plr26 view,
.fabric-out-page .u-input__input,
.fabric-out-page .uni-input-input,
.fabric-out-page .uni-textarea-textarea {
font-size: 40rpx;
}
.fabric-out-page .redXingh {
font-size: 40rpx;
}
.fabric-out-page .u-btn {
font-size: 36rpx !important;
height: 88rpx;
line-height: 88rpx;
}
.fabric-out-sectionTitle { .fabric-out-sectionTitle {
font-size: 30rpx; font-size: 42rpx;
font-weight: bold; font-weight: bold;
padding: 24rpx 26rpx 12rpx; padding: 24rpx 26rpx 12rpx;
border-left: 6rpx solid #007AFF; border-left: 6rpx solid #007AFF;
@ -16,7 +33,7 @@
.fabric-out-scanTip { .fabric-out-scanTip {
padding: 20rpx 26rpx; padding: 20rpx 26rpx;
color: #fa8c16; color: #fa8c16;
font-size: 26rpx; font-size: 36rpx;
background: #fff7e6; background: #fff7e6;
margin: 16rpx 26rpx; margin: 16rpx 26rpx;
border-radius: 8rpx; border-radius: 8rpx;
@ -24,7 +41,7 @@
.fabric-out-msgTip { .fabric-out-msgTip {
padding: 12rpx 26rpx; padding: 12rpx 26rpx;
color: #52c41a; color: #52c41a;
font-size: 26rpx; font-size: 36rpx;
} }
.fabric-out-detailList { .fabric-out-detailList {
padding: 0 26rpx; padding: 0 26rpx;
@ -39,7 +56,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
font-size: 28rpx; font-size: 38rpx;
font-weight: bold; font-weight: bold;
padding-bottom: 12rpx; padding-bottom: 12rpx;
border-bottom: 1rpx solid #f0f0f0; border-bottom: 1rpx solid #f0f0f0;
@ -49,7 +66,7 @@
align-items: center; align-items: center;
gap: 20rpx; gap: 20rpx;
padding-top: 12rpx; padding-top: 12rpx;
font-size: 26rpx; font-size: 36rpx;
color: #666; color: #666;
} }
.fabric-out-scanRow { .fabric-out-scanRow {
@ -66,7 +83,7 @@
.fabric-out-delCheck { .fabric-out-delCheck {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 26rpx; font-size: 36rpx;
color: #666; color: #666;
white-space: nowrap; white-space: nowrap;
} }
@ -82,7 +99,7 @@
flex-wrap: wrap; flex-wrap: wrap;
padding: 16rpx 20rpx; padding: 16rpx 20rpx;
border-bottom: 1rpx solid #f0f0f0; border-bottom: 1rpx solid #f0f0f0;
font-size: 26rpx; font-size: 36rpx;
color: #333; color: #333;
} }
.fabric-out-scanDetailRow--2col { .fabric-out-scanDetailRow--2col {
@ -124,7 +141,7 @@
} }
.fabric-out-scanDetailTableCell { .fabric-out-scanDetailTableCell {
padding: 14rpx 8rpx; padding: 14rpx 8rpx;
font-size: 24rpx; font-size: 32rpx;
color: #333; color: #333;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
@ -133,7 +150,7 @@
.fabric-out-scanDetailEmpty { .fabric-out-scanDetailEmpty {
padding: 24rpx; padding: 24rpx;
text-align: center; text-align: center;
font-size: 26rpx; font-size: 36rpx;
color: #999; color: #999;
} }
.fabric-out-submitView { .fabric-out-submitView {

View File

@ -8,12 +8,12 @@
<!-- <u-tabs :list="list" :is-scroll="false" :current="current" @change="onClickItem"></u-tabs> --> <!-- <u-tabs :list="list" :is-scroll="false" :current="current" @change="onClickItem"></u-tabs> -->
<!-- <view v-if="current === 0"> --> <!-- <view v-if="current === 0"> -->
<view class="list"> <view class="list">
<view class="list-call"> <view class="list-call env-call">
<view class="iconfont icon-link" style="font-size: 22px;color:#5473e8;"></view> <view class="iconfont icon-link" style="font-size: 28px;color:#5473e8;"></view>
<view style="width: 100%;"> <view style="width: 100%;">
<view class="server-selector" @click="showServerPicker"> <view class="server-selector" @click="showServerPicker">
<text>{{ getApiUrlLabel() }}</text> <text>{{ getApiUrlLabel() }}</text>
<view class="iconfont icon-arrow-down" style="font-size: 16px;"></view> <view class="iconfont icon-arrow-down"></view>
</view> </view>
</view> </view>
</view> </view>
@ -103,7 +103,7 @@
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- </div>--> <!-- </div>-->
<u-picker v-model="showApiUrlPicker" mode="selector" :range="apiUrlList" range-key="label" <u-picker class="login-env-picker" v-model="showApiUrlPicker" mode="selector" :range="apiUrlList" range-key="label"
@confirm="onApiUrlConfirm" @cancel="showApiUrlPicker = false"></u-picker> @confirm="onApiUrlConfirm" @cancel="showApiUrlPicker = false"></u-picker>
<!-- 版本信息显示 --> <!-- 版本信息显示 -->
<view class="version-info"> <view class="version-info">
@ -450,14 +450,25 @@ export default {
<style lang="scss"> <style lang="scss">
@import 'index.scss'; @import 'index.scss';
.env-call {
height: auto;
min-height: 140rpx;
}
.server-selector { .server-selector {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 10rpx 0; min-height: 80rpx;
padding: 16rpx 0;
font-size: 40rpx;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.server-selector .icon-arrow-down {
font-size: 28px;
}
.list-call { .list-call {
.u-select { .u-select {
margin-bottom: 10rpx; margin-bottom: 10rpx;
@ -572,3 +583,23 @@ export default {
margin-left: 10rpx; margin-left: 10rpx;
} }
</style> </style>
<style lang="scss" scoped>
.login-env-picker {
::v-deep .u-picker-header,
::v-deep .u-btn-picker {
height: 100rpx;
font-size: 36rpx;
}
::v-deep .u-picker-body {
height: 560rpx;
}
::v-deep .u-column-item,
::v-deep .u-line-1 {
height: 88rpx;
font-size: 40rpx;
line-height: 88rpx;
}
}
</style>

View File

@ -79,7 +79,7 @@
<!-- </view>--> <!-- </view>-->
<view class="workbench-title">坯布管理</view> <view class="workbench-title">坯布管理</view>
<view class="toolbar"> <view class="toolbar">
<u-grid class="grid" :col="4" :border="false"> <u-grid class="grid" :col="2" :border="false">
<!-- <u-grid-item @click="navTo('/pages/storefabric/storefabricInStore')">--> <!-- <u-grid-item @click="navTo('/pages/storefabric/storefabricInStore')">-->
<!-- <view class="home-icon icon-color04">--> <!-- <view class="home-icon icon-color04">-->
<!-- <i class="iconfont icon-hetongguanli"></i>--> <!-- <i class="iconfont icon-hetongguanli"></i>-->
@ -87,16 +87,16 @@
<!-- <view class="grid-text">坯布进仓</view>--> <!-- <view class="grid-text">坯布进仓</view>-->
<!-- </u-grid-item>--> <!-- </u-grid-item>-->
<u-grid-item @click="navTo('/pages/storefabric/storeFabricBusinessOutList')"> <u-grid-item @click="navTo('/pages/storefabric/storeFabricBusinessOutList')">
<view class="home-icon icon-color03"> <view class="workbench-tile tile-out" hover-class="tile-pressed">
<i class="iconfont icon-chucha"></i> <i class="iconfont icon-chucha"></i>
<text class="tile-label">坯布出库</text>
</view> </view>
<view class="grid-text">坯布出库</view>
</u-grid-item> </u-grid-item>
<u-grid-item @click="navTo('/pages/storefabric/storeFabricWarehouseGroupList')"> <u-grid-item @click="navTo('/pages/storefabric/storeFabricWarehouseGroupList')">
<view class="home-icon icon-color05"> <view class="workbench-tile tile-stock" hover-class="tile-pressed">
<i class="iconfont icon-huiyishi"></i> <i class="iconfont icon-huiyishi"></i>
<text class="tile-label">坯布库存</text>
</view> </view>
<view class="grid-text">坯布库存</view>
</u-grid-item> </u-grid-item>
<!-- <u-grid-item @click="navTo('/pages/storefabric/storefabricstoreallin')">--> <!-- <u-grid-item @click="navTo('/pages/storefabric/storefabricstoreallin')">-->
<!-- <view class="home-icon icon-color05">--> <!-- <view class="home-icon icon-color05">-->
@ -295,4 +295,46 @@ export default {
.home-icon i.icon-tongzhi { .home-icon i.icon-tongzhi {
font-size: 22px; font-size: 22px;
} }
.wrap .toolbar .workbench-tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 88%;
height: 300rpx;
margin: 8rpx auto 28rpx;
padding: 40rpx 28rpx 36rpx;
border-radius: 8rpx;
background-image: none;
}
.wrap .toolbar .tile-out {
background: #14343f;
}
.wrap .toolbar .tile-stock {
background: #7a2e24;
}
.wrap .toolbar .workbench-tile i {
position: static;
margin: 0 0 28rpx;
font-size: 88rpx;
line-height: 1;
color: #f4efe6;
opacity: 1;
}
.wrap .toolbar .tile-label {
font-size: 36rpx;
font-weight: 700;
line-height: 1.2;
color: #f4efe6;
}
.wrap .toolbar .tile-pressed {
opacity: 0.82;
}
</style> </style>

View File

@ -209,10 +209,6 @@ const store = new Vuex.Store({
name: 'vuex_messageList', name: 'vuex_messageList',
value: newList value: newList
}); });
uni.setTabBarBadge({
index: 0,
text: `${newList.length}`
});
} }
// 使用 $uStore 方式更新状态 // 使用 $uStore 方式更新状态
commit('$uStore', { commit('$uStore', {