|
|
|
|
@ -1,16 +1,14 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="page-container">
|
|
|
|
|
<!-- 顶部导航栏 -->
|
|
|
|
|
<view class="custom-nav">
|
|
|
|
|
<view class="nav-back" @click="goBack">
|
|
|
|
|
<u-icon name="arrow-left" color="#ffffff" size="20"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<text class="nav-title">{{ t('moldOperate.tabDown') }}</text>
|
|
|
|
|
<view class="nav-right-btn" @click="goToHistory">
|
|
|
|
|
<uni-icons type="clock" size="22" color="#1f7cff"></uni-icons>
|
|
|
|
|
<text class="nav-right-text">{{ t('moldPressureNet.history') }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<NavBar :title="t('moldOperate.tabDown')">
|
|
|
|
|
<template #right>
|
|
|
|
|
<view class="nav-right-btn" @click="goToHistory">
|
|
|
|
|
<uni-icons type="clock" size="22" color="#1f7cff"></uni-icons>
|
|
|
|
|
<text class="nav-right-text">{{ t('moldPressureNet.history') }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
</NavBar>
|
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区 -->
|
|
|
|
|
<view class="action-row">
|
|
|
|
|
@ -169,6 +167,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 底部操作栏 -->
|
|
|
|
|
<view class="bottom-actions">
|
|
|
|
|
<view class="bottom-btn cancel-btn" @click="handleCancel">{{ t('functionCommon.cancel') }}</view>
|
|
|
|
|
<view class="bottom-btn confirm-btn" @click="handleConfirm">{{ t('moldOperate.confirmDismount') }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
@ -202,6 +201,7 @@
|
|
|
|
|
import { computed, reactive, ref } from 'vue'
|
|
|
|
|
import { onShow } from '@dcloudio/uni-app'
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
import NavBar from '@/components/common/NavBar.vue'
|
|
|
|
|
import { getLowerMoldList, getDeviceLedgerList, createMoldOperate } from '@/api/mes/moldoperate'
|
|
|
|
|
import { getDeviceLineTree } from '@/api/mes/deviceLine'
|
|
|
|
|
import { getSimpleUserList } from '@/api/system/user'
|
|
|
|
|
@ -600,6 +600,13 @@ async function handleConfirm() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleCancel() {
|
|
|
|
|
// 返回上一页(管理页面)
|
|
|
|
|
uni.navigateBack({
|
|
|
|
|
fail: () => uni.switchTab({ url: '/pages/work' })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onShow(async () => {
|
|
|
|
|
await Promise.allSettled([loadDevices(), loadLineTree(), loadOperators()])
|
|
|
|
|
// 从 globalData 读取设备选择页回传的设备
|
|
|
|
|
@ -612,53 +619,21 @@ onShow(async () => {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
/* ====== 自定义导航栏 ====== */
|
|
|
|
|
.custom-nav {
|
|
|
|
|
position: relative;
|
|
|
|
|
/* ====== 导航栏右侧按钮 ====== */
|
|
|
|
|
.nav-right-btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
padding: 0 24rpx;
|
|
|
|
|
background: #22486e;
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
|
|
.nav-back {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 24rpx;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-title {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-right-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 24rpx;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6rpx;
|
|
|
|
|
padding: 8rpx 18rpx;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 999rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
|
|
|
|
|
}
|
|
|
|
|
gap: 6rpx;
|
|
|
|
|
padding: 8rpx 18rpx;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 999rpx;
|
|
|
|
|
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-right-text {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #374151;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.nav-right-text {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #374151;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-container {
|
|
|
|
|
@ -983,18 +958,20 @@ onShow(async () => {
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
padding: 16rpx 24rpx calc(16rpx + env(safe-area-inset-bottom));
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 18rpx;
|
|
|
|
|
padding: 18rpx 24rpx calc(18rpx + env(safe-area-inset-bottom));
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
|
|
|
|
|
z-index: 99;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bottom-btn {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
line-height: 88rpx;
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 84rpx;
|
|
|
|
|
line-height: 84rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
@ -1004,6 +981,11 @@ onShow(async () => {
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cancel-btn {
|
|
|
|
|
background: #eef2f7;
|
|
|
|
|
color: #475569;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ====== 弹窗通用 ====== */
|
|
|
|
|
.picker-popup {
|
|
|
|
|
background: #fff;
|
|
|
|
|
|