refactor:重构navbar,改用uview-plus版本

master
黄伟杰 3 days ago
parent 4bc2589ced
commit bdd15e5104

@ -1,108 +0,0 @@
<template>
<view>
<view class="header-section">
<view class="header-main">
<view class="back-btn" @click="handleBack">
<text class="back-icon"></text>
</view>
<view class="header-title-wrap">
<text class="header-title">{{ translatedTitle }}</text>
</view>
<view class="header-placeholder"></view>
</view>
</view>
<view v-if="showSubTitle && subTitle" class="header-subtitle-wrap">
<text class="header-desc">{{ translatedSubTitle }}</text>
</view>
</view>
</template>
<script setup>
import { computed } from 'vue'
import { translateLiteral } from '@/locales'
const props = defineProps({
title: {
type: String,
default: ''
},
subTitle: {
type: String,
default: ''
},
showSubTitle: {
type: Boolean,
default: false
}
})
const emit = defineEmits(['back'])
const translatedTitle = computed(() => translateLiteral(props.title))
const translatedSubTitle = computed(() => translateLiteral(props.subTitle))
function handleBack() {
emit('back')
uni.navigateBack()
}
</script>
<style lang="scss" scoped>
.header-section {
--status-top: var(--status-bar-height, 0px);
background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
padding: calc(14rpx + var(--status-top)) 24rpx 20rpx;
position: relative;
}
.header-main {
display: flex;
align-items: center;
min-height: 72rpx;
}
.back-btn {
width: 72rpx;
height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
}
.back-icon {
font-size: 56rpx;
line-height: 1;
color: #ffffff;
font-weight: 500;
}
.header-title-wrap {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
.header-title {
font-size: 34rpx;
font-weight: 700;
color: #ffffff;
}
.header-placeholder {
width: 72rpx;
height: 72rpx;
}
.header-subtitle-wrap {
margin-top: 14rpx;
padding-left: 16rpx;
}
.header-desc {
display: block;
font-size: 34rpx;
font-weight: 700;
color: #1a3a5c;
}
</style>

@ -1,18 +1,23 @@
<template> <template>
<view class="custom-navbar" :style="navbarStyle"> <view>
<view class="navbar-status-bar" :style="{ height: statusBarHeight + 'px' }"></view> <up-navbar
<view class="navbar-body" :style="{ height: navBodyHeight + 'px' }"> :title="translatedTitle"
<view class="navbar-left"> :bgColor="navbarBgColor"
<view v-if="showBackBtn" class="back-btn" @click="handleBack"> :titleStyle="titleStyleObj"
<uni-icons type="arrow-left" :size="20" :color="textColor"></uni-icons> :leftIcon="showBackBtn ? 'arrow-left' : ''"
</view> :leftIconColor="navTextColor"
</view> :leftIconSize="20"
<view class="navbar-center"> :autoBack="false"
<text class="navbar-title" :style="{ color: textColor }">{{ translatedTitle }}</text> :placeholder="true"
</view> :safeAreaInsetTop="true"
<view class="navbar-right"> @leftClick="handleBack"
>
<template #right>
<slot name="right"></slot> <slot name="right"></slot>
</view> </template>
</up-navbar>
<view v-if="subTitle" class="navbar-subtitle-wrap">
<text class="navbar-subtitle">{{ translatedSubTitle }}</text>
</view> </view>
</view> </view>
</template> </template>
@ -30,6 +35,10 @@ const props = defineProps({
type: String, type: String,
default: '' default: ''
}, },
subTitle: {
type: String,
default: ''
},
backgroundColor: { backgroundColor: {
type: String, type: String,
default: '#22486e' default: '#22486e'
@ -44,17 +53,8 @@ const props = defineProps({
} }
}) })
const systemInfo = uni.getSystemInfoSync()
const statusBarHeight = ref(systemInfo.statusBarHeight || 0)
const currentPagesLength = ref(1) const currentPagesLength = ref(1)
const navBodyHeight = computed(() => {
const platform = systemInfo.platform || ''
if (platform === 'android') return 48
if (platform === 'ios') return 44
return 44
})
const isLoginPage = computed(() => { const isLoginPage = computed(() => {
const pages = getCurrentPages() const pages = getCurrentPages()
if (pages && pages.length > 0) { if (pages && pages.length > 0) {
@ -68,19 +68,24 @@ const showBackBtn = computed(() => {
return currentPagesLength.value > 1 return currentPagesLength.value > 1
}) })
const navbarStyle = computed(() => { const navbarBgColor = computed(() => {
const bg = isLoginPage.value ? '#ffffff' : props.backgroundColor return isLoginPage.value ? '#ffffff' : props.backgroundColor
return { })
backgroundColor: bg,
paddingTop: '0px' const navTextColor = computed(() => {
} return isLoginPage.value ? '#000000' : props.textColor
}) })
const translatedTitle = computed(() => translateLiteral(props.title)) const translatedTitle = computed(() => translateLiteral(props.title))
const textColor = computed(() => { const translatedSubTitle = computed(() => translateLiteral(props.subTitle))
if (isLoginPage.value) return '#000000'
return props.textColor const titleStyleObj = computed(() => {
return {
color: navTextColor.value,
fontWeight: '700',
fontSize: '34rpx'
}
}) })
onShow(() => { onShow(() => {
@ -89,6 +94,7 @@ onShow(() => {
}) })
function handleBack() { function handleBack() {
if (!showBackBtn.value) return
uni.navigateBack({ uni.navigateBack({
fail: () => { fail: () => {
uni.reLaunch({ uni.reLaunch({
@ -100,62 +106,14 @@ function handleBack() {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.custom-navbar { .navbar-subtitle-wrap {
position: relative; padding: 14rpx 24rpx 20rpx;
width: 100%; background: #ffffff;
z-index: 0;
}
.navbar-body {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16rpx;
position: relative;
}
.navbar-left,
.navbar-right {
width: 120rpx;
flex-shrink: 0;
display: flex;
align-items: center;
}
.navbar-left {
justify-content: flex-start;
}
.back-btn {
display: flex;
align-items: center;
padding: 8rpx 12rpx;
border-radius: 8rpx;
} }
.back-text { .navbar-subtitle {
font-size: 28rpx;
line-height: 1;
margin-left: 4rpx;
}
.navbar-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
overflow: hidden;
max-width: calc(100% - 240rpx);
}
.navbar-title {
font-size: 34rpx; font-size: 34rpx;
font-weight: 700; font-weight: 700;
white-space: nowrap; color: #1a3a5c;
overflow: hidden;
text-overflow: ellipsis;
}
.navbar-right {
justify-content: flex-end;
} }
</style> </style>

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('criticalComponent.detailTitle')" /> <NavBar :title="t('criticalComponent.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -53,7 +53,7 @@
import { ref } from 'vue' import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getCriticalComponent } from '@/api/mes/criticalComponent' import { getCriticalComponent } from '@/api/mes/criticalComponent'
const { t } = useI18n() const { t } = useI18n()

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('criticalComponent.moduleName')" :subTitle="t('criticalComponent.subTitle')" :showSubTitle="true" /> <NavBar :title="t('criticalComponent.moduleName')" :subTitle="t('criticalComponent.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -132,7 +132,7 @@
import { ref, reactive } from 'vue' import { ref, reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getCriticalComponentPage, getCriticalComponent, createCriticalComponent, updateCriticalComponent, deleteCriticalComponent } from '@/api/mes/criticalComponent' import { getCriticalComponentPage, getCriticalComponent, createCriticalComponent, updateCriticalComponent, deleteCriticalComponent } from '@/api/mes/criticalComponent'
const { t } = useI18n() const { t } = useI18n()

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="设备详情" /> <NavBar title="设备详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -203,7 +203,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { import {
getEquipmentDetail, getEquipmentDetail,
getEquipmentInspectionByDeviceId, getEquipmentInspectionByDeviceId,

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="设备查询" subTitle="请选择查询方式" :showSubTitle="true" /> <NavBar title="设备查询" subTitle="请选择查询方式" />
<view class="content-section"> <view class="content-section">
<view class="scan-section"> <view class="scan-section">
@ -53,7 +53,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const equipmentCode = ref(''); const equipmentCode = ref('');
const isScanning = ref(false); const isScanning = ref(false);

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('equipmentCategory.detailTitle')" /> <NavBar :title="t('equipmentCategory.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -45,7 +45,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getDeviceType, getDeviceTypeTree } from '@/api/mes/deviceType' import { getDeviceType, getDeviceTypeTree } from '@/api/mes/deviceType'
const { t } = useI18n() const { t } = useI18n()

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('equipmentCategory.moduleName')" :subTitle="t('equipmentCategory.subTitle')" :showSubTitle="true" /> <NavBar :title="t('equipmentCategory.moduleName')" :subTitle="t('equipmentCategory.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -118,7 +118,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getDeviceTypeTree, getDeviceType, createDeviceType, updateDeviceType, deleteDeviceType } from '@/api/mes/deviceType' import { getDeviceTypeTree, getDeviceType, createDeviceType, updateDeviceType, deleteDeviceType } from '@/api/mes/deviceType'
const { t } = useI18n() const { t } = useI18n()

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('equipmentLedger.detailTitle')" /> <NavBar :title="t('equipmentLedger.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -148,7 +148,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getDeviceLedger } from '@/api/mes/deviceLedger' import { getDeviceLedger } from '@/api/mes/deviceLedger'
import { getDeviceTypeTree } from '@/api/mes/deviceType' import { getDeviceTypeTree } from '@/api/mes/deviceType'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('equipmentLedger.moduleName')" :subTitle="t('equipmentLedger.subTitle')" :showSubTitle="true" /> <NavBar :title="t('equipmentLedger.moduleName')" :subTitle="t('equipmentLedger.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -186,7 +186,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getDeviceLedgerPage, getDeviceLedger, createDeviceLedger, updateDeviceLedger, deleteDeviceLedger } from '@/api/mes/deviceLedger' import { getDeviceLedgerPage, getDeviceLedger, createDeviceLedger, updateDeviceLedger, deleteDeviceLedger } from '@/api/mes/deviceLedger'
import { getDeviceTypeTree } from '@/api/mes/deviceType' import { getDeviceTypeTree } from '@/api/mes/deviceType'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="关键件详情" /> <NavBar title="关键件详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -36,7 +36,7 @@
import { ref } from 'vue' import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import request from '@/utils/request' import request from '@/utils/request'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const keypartId = ref(undefined) const keypartId = ref(undefined)
const keypartCode = ref(undefined) const keypartCode = ref(undefined)

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="关键件查询" subTitle="请选择查询方式" :showSubTitle="true" /> <NavBar title="关键件查询" subTitle="请选择查询方式" />
<view class="content-section"> <view class="content-section">
<view class="scan-section"> <view class="scan-section">
@ -53,7 +53,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const keypartCode = ref(''); const keypartCode = ref('');
const isScanning = ref(false); const isScanning = ref(false);

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('materialCategory.detailTitle')" /> <NavBar :title="t('materialCategory.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -45,7 +45,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getProductCategory, getProductCategoryList } from '@/api/erp/productCategory' import { getProductCategory, getProductCategoryList } from '@/api/erp/productCategory'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('materialCategory.moduleName')" :subTitle="t('materialCategory.subTitle')" :showSubTitle="true" /> <NavBar :title="t('materialCategory.moduleName')" :subTitle="t('materialCategory.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -116,7 +116,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getProductCategoryList, getProductCategorySimpleList, createProductCategory, updateProductCategory, deleteProductCategory } from '@/api/erp/productCategory' import { getProductCategoryList, getProductCategorySimpleList, createProductCategory, updateProductCategory, deleteProductCategory } from '@/api/erp/productCategory'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('materialInfo.detailTitle')" /> <NavBar :title="t('materialInfo.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -57,7 +57,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getProduct } from '@/api/erp/productInfo' import { getProduct } from '@/api/erp/productInfo'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('materialInfo.moduleName')" :subTitle="t('materialInfo.subTitle')" :showSubTitle="true" /> <NavBar :title="t('materialInfo.moduleName')" :subTitle="t('materialInfo.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -149,7 +149,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getProductPage, getProduct, createProduct, updateProduct, deleteProduct, getProductUnitSimpleList } from '@/api/erp/productInfo' import { getProductPage, getProduct, createProduct, updateProduct, deleteProduct, getProductUnitSimpleList } from '@/api/erp/productInfo'
import { getProductCategorySimpleList } from '@/api/erp/productCategory' import { getProductCategorySimpleList } from '@/api/erp/productCategory'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="模具详情" /> <NavBar title="模具详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -196,7 +196,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { import {
getMoldDetail, getMoldDetail,
getMoldInspectionByMoldId, getMoldInspectionByMoldId,

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="模具查询" subTitle="请选择查询方式" :showSubTitle="true" /> <NavBar title="模具查询" subTitle="请选择查询方式" />
<view class="content-section"> <view class="content-section">
<view class="scan-section"> <view class="scan-section">
@ -48,7 +48,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const moldCode = ref(''); const moldCode = ref('');
const isScanning = ref(false); const isScanning = ref(false);

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldInspectionItems.detailTitle')" /> <NavBar :title="t('moldInspectionItems.detailTitle')" />
</view> </view>
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -49,7 +49,7 @@
import { reactive } from 'vue' import { reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { DICT_TYPE, useDict } from '@/utils/dict' import { DICT_TYPE, useDict } from '@/utils/dict'
import { getMoldInspectionItemDetail } from '@/api/mes/moldInspectionItems' import { getMoldInspectionItemDetail } from '@/api/mes/moldInspectionItems'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldInspectionItems.moduleName')" :subTitle="t('moldInspectionItems.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldInspectionItems.moduleName')" :subTitle="t('moldInspectionItems.subTitle')" />
<!-- 查询区域 --> <!-- 查询区域 -->
<view class="search-card"> <view class="search-card">
@ -125,7 +125,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { DICT_TYPE, useDict } from '@/utils/dict' import { DICT_TYPE, useDict } from '@/utils/dict'
import { getMoldInspectionItemPage, getMoldInspectionItemDetail, createMoldInspectionItem, updateMoldInspectionItem, deleteMoldInspectionItem } from '@/api/mes/moldInspectionItems' import { getMoldInspectionItemPage, getMoldInspectionItemDetail, createMoldInspectionItem, updateMoldInspectionItem, deleteMoldInspectionItem } from '@/api/mes/moldInspectionItems'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldInspectionPlan.detailTitle')" /> <NavBar :title="t('moldInspectionPlan.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -75,7 +75,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'
import { getMoldInspectionPlanDetail } from '@/api/mes/moldInspectionPlan' import { getMoldInspectionPlanDetail } from '@/api/mes/moldInspectionPlan'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldInspectionPlan.moduleName')" :subTitle="t('moldInspectionPlan.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldInspectionPlan.moduleName')" :subTitle="t('moldInspectionPlan.subTitle')" />
<view class="search-card"> <view class="search-card">
<view class="search-row"> <view class="search-row">
@ -140,7 +140,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldInspectionPlanPage, createMoldInspectionPlan, updateMoldInspectionPlan, deleteMoldInspectionPlan, getMoldSubjectAllList } from '@/api/mes/moldInspectionPlan' import { getMoldInspectionPlanPage, createMoldInspectionPlan, updateMoldInspectionPlan, deleteMoldInspectionPlan, getMoldSubjectAllList } from '@/api/mes/moldInspectionPlan'
const { t } = useI18n() const { t } = useI18n()

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader title="模具台账详情" /> <NavBar title="模具台账详情" />
</view> </view>
<view class="content-section"> <view class="content-section">
@ -194,7 +194,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldDetail, getMoldInspectionByMoldId, getMoldMaintenanceByMoldId, getMoldRepairListByMoldId } from '@/api/mes/mold' import { getMoldDetail, getMoldInspectionByMoldId, getMoldMaintenanceByMoldId, getMoldRepairListByMoldId } from '@/api/mes/mold'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="模具台账" subTitle="按型号、状态、编码快速筛选" :showSubTitle="true" /> <NavBar title="模具台账" subTitle="按型号、状态、编码快速筛选" />
<view class="filter-card"> <view class="filter-card">
<view class="filter-row"> <view class="filter-row">
@ -275,7 +275,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import CopyButton from '@/components/common/CopyButton.vue' import CopyButton from '@/components/common/CopyButton.vue'
import { createMold, deleteMold, getMoldBrandTree, getMoldDetail, getMoldPage, updateMold, uploadMoldImage } from '@/api/mes/mold' import { createMold, deleteMold, getMoldBrandTree, getMoldDetail, getMoldPage, updateMold, uploadMoldImage } from '@/api/mes/mold'
import { getProductUnitSimpleList, getUnitList } from '@/api/mes/product' import { getProductUnitSimpleList, getUnitList } from '@/api/mes/product'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldTaskConfig.detailTitle')" /> <NavBar :title="t('moldTaskConfig.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -65,7 +65,7 @@
import { computed, reactive } from 'vue' import { computed, reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const { t } = useI18n() const { t } = useI18n()

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldTaskConfig.moduleName')" :subTitle="t('moldTaskConfig.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldTaskConfig.moduleName')" :subTitle="t('moldTaskConfig.subTitle')" />
<view class="search-card"> <view class="search-card">
<view class="search-row"> <view class="search-row">
@ -246,7 +246,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getTaskManagementPage, createTaskManagement, updateTaskManagement, deleteTaskManagement, createTaskManagementTicket } from '@/api/mes/moldTaskConfiguration' import { getTaskManagementPage, createTaskManagement, updateTaskManagement, deleteTaskManagement, createTaskManagementTicket } from '@/api/mes/moldTaskConfiguration'
import { getMoldList } from '@/api/mes/mold' import { getMoldList } from '@/api/mes/mold'
import { getMoldInspectionPlanPage } from '@/api/mes/moldInspectionPlan' import { getMoldInspectionPlanPage } from '@/api/mes/moldInspectionPlan'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="模具类型详情" /> <NavBar title="模具类型详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -63,7 +63,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldBrandDetail } from '@/api/mes/mold' import { getMoldBrandDetail } from '@/api/mes/mold'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="模具类型" subTitle="按编码或名称快速查询" :showSubTitle="true" /> <NavBar title="模具类型" subTitle="按编码或名称快速查询" />
<view class="search-section"> <view class="search-section">
<view class="search-wrapper"> <view class="search-wrapper">
@ -146,7 +146,7 @@
<script setup> <script setup>
import { ref, reactive } from 'vue' import { ref, reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import CopyButton from '@/components/common/CopyButton.vue' import CopyButton from '@/components/common/CopyButton.vue'
import { createMoldBrand, deleteMoldBrand, getMoldBrandDetail, getMoldBrandPage, updateMoldBrand } from '@/api/mes/mold' import { createMoldBrand, deleteMoldBrand, getMoldBrandDetail, getMoldBrandPage, updateMoldBrand } from '@/api/mes/mold'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldWorkOrder.detailTitle')" /> <NavBar :title="t('moldWorkOrder.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -116,7 +116,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getTicketResultsPage } from '@/api/mes/moldWorkOrderInquiry' import { getTicketResultsPage } from '@/api/mes/moldWorkOrderInquiry'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldWorkOrder.moduleName')" :subTitle="t('moldWorkOrder.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldWorkOrder.moduleName')" :subTitle="t('moldWorkOrder.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -109,7 +109,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getTicketManagementPage, batchUpdateTicketStatus } from '@/api/mes/moldWorkOrderInquiry' import { getTicketManagementPage, batchUpdateTicketStatus } from '@/api/mes/moldWorkOrderInquiry'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldGet.detailTitle')" /> <NavBar :title="t('moldGet.detailTitle')" />
</view> </view>
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -67,7 +67,7 @@
import { ref } from 'vue' import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldGetDetail } from '@/api/mes/moldget' import { getMoldGetDetail } from '@/api/mes/moldget'
import { DICT_TYPE, useDict } from '@/utils/dict' import { DICT_TYPE, useDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldGet.moduleName')" :subTitle="t('moldGet.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldGet.moduleName')" :subTitle="t('moldGet.subTitle')" />
<view class="search-card"> <view class="search-card">
<view class="search-row"> <view class="search-row">
@ -181,7 +181,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldList } from '@/api/mes/mold' import { getMoldList } from '@/api/mes/mold'
import { getMoldGetPage, getMoldGetDetail, createMoldGet, updateMoldGet, updateMoldGetStatus, deleteMoldGet, getWarehouseSimpleList, getSimpleUserList } from '@/api/mes/moldget' import { getMoldGetPage, getMoldGetDetail, createMoldGet, updateMoldGet, updateMoldGetStatus, deleteMoldGet, getWarehouseSimpleList, getSimpleUserList } from '@/api/mes/moldget'
import { DICT_TYPE, useDict } from '@/utils/dict' import { DICT_TYPE, useDict } from '@/utils/dict'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldOperate.detailTitle')" /> <NavBar :title="t('moldOperate.detailTitle')" />
</view> </view>
<view class="content-section"> <view class="content-section">
@ -54,7 +54,7 @@
import { computed, ref } from 'vue' import { computed, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldOperateDetail } from '@/api/mes/moldoperate' import { getMoldOperateDetail } from '@/api/mes/moldoperate'
const { t } = useI18n() const { t } = useI18n()

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldOperate.moduleName')" :subTitle="t('moldOperate.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldOperate.moduleName')" :subTitle="t('moldOperate.subTitle')" />
<!-- 操作类型切换 --> <!-- 操作类型切换 -->
<view class="operate-tabs"> <view class="operate-tabs">
@ -156,7 +156,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldList, getInTransitMoldAllList } from '@/api/mes/mold' import { getMoldList, getInTransitMoldAllList } from '@/api/mes/mold'
import { getMoldOperatePage, getMoldOperateDetail, createMoldOperate, updateMoldOperate, deleteMoldOperate, getLowerMoldList, getDeviceLedgerList } from '@/api/mes/moldoperate' import { getMoldOperatePage, getMoldOperateDetail, createMoldOperate, updateMoldOperate, deleteMoldOperate, getLowerMoldList, getDeviceLedgerList } from '@/api/mes/moldoperate'

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('moldReturn.detailTitle')" /> <NavBar :title="t('moldReturn.detailTitle')" />
</view> </view>
<view class="content-section"> <view class="content-section">
@ -70,7 +70,7 @@
import { ref } from 'vue' import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldReturnDetail } from '@/api/mes/moldreturn' import { getMoldReturnDetail } from '@/api/mes/moldreturn'
import { DICT_TYPE, useDict } from '@/utils/dict' import { DICT_TYPE, useDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('moldReturn.moduleName')" :subTitle="t('moldReturn.subTitle')" :showSubTitle="true" /> <NavBar :title="t('moldReturn.moduleName')" :subTitle="t('moldReturn.subTitle')" />
<!-- 列表查询区 --> <!-- 列表查询区 -->
<view class="search-card"> <view class="search-card">
@ -195,7 +195,7 @@
import { computed, reactive, ref } from 'vue' import { computed, reactive, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getMoldList } from '@/api/mes/mold' import { getMoldList } from '@/api/mes/mold'
import { getMoldReturnPage, getMoldReturnDetail, createMoldReturn, updateMoldReturn, updateMoldReturnStatus, deleteMoldReturn } from '@/api/mes/moldreturn' import { getMoldReturnPage, getMoldReturnDetail, createMoldReturn, updateMoldReturn, updateMoldReturnStatus, deleteMoldReturn } from '@/api/mes/moldreturn'
import { getWarehouseSimpleList } from '@/api/mes/moldget' import { getWarehouseSimpleList } from '@/api/mes/moldget'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="产品物料详情" /> <NavBar title="产品物料详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -52,7 +52,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import request from '@/utils/request' import request from '@/utils/request'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const productId = ref(undefined) const productId = ref(undefined)
const productCode = ref(undefined) const productCode = ref(undefined)

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="产品物料查询" subTitle="请选择查询方式" :showSubTitle="true" /> <NavBar title="产品物料查询" subTitle="请选择查询方式" />
<view class="content-section"> <view class="content-section">
<view class="scan-section"> <view class="scan-section">
@ -53,7 +53,7 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const productId = ref('') const productId = ref('')
const isScanning = ref(false) const isScanning = ref(false)

@ -1,7 +1,7 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<view class="fixed-header"> <view class="fixed-header">
<AppTitleHeader :title="t('productBom.detailTitle')" /> <NavBar :title="t('productBom.detailTitle')" />
</view> </view>
<scroll-view scroll-y class="detail-scroll"> <scroll-view scroll-y class="detail-scroll">
@ -85,7 +85,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getBom, getBomDetailListByBomId } from '@/api/mes/productBom' import { getBom, getBomDetailListByBomId } from '@/api/mes/productBom'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader :title="t('productBom.moduleName')" :subTitle="t('productBom.subTitle')" :showSubTitle="true" /> <NavBar :title="t('productBom.moduleName')" :subTitle="t('productBom.subTitle')" />
<!-- 搜索区域 --> <!-- 搜索区域 -->
<view class="search-card"> <view class="search-card">
@ -134,7 +134,7 @@
import { ref, reactive, computed } from 'vue' import { ref, reactive, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
import { getBomPage, getBom, createBom, updateBom, deleteBom } from '@/api/mes/productBom' import { getBomPage, getBom, createBom, updateBom, deleteBom } from '@/api/mes/productBom'
import { getMesProductSimpleList, getItemSimpleList, getProductUnitSimpleList } from '@/api/erp/productInfo' import { getMesProductSimpleList, getItemSimpleList, getProductUnitSimpleList } from '@/api/erp/productInfo'
import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict' import { DICT_TYPE, getDictLabel, initAllDict } from '@/utils/dict'

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="备件详情" /> <NavBar title="备件详情" />
<view class="content-section"> <view class="content-section">
<view class="info-card"> <view class="info-card">
@ -44,7 +44,7 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import request from '@/utils/request' import request from '@/utils/request'
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const spareId = ref(undefined) const spareId = ref(undefined)
const spareCode = ref(undefined) const spareCode = ref(undefined)

@ -1,6 +1,6 @@
<template> <template>
<view class="page-container"> <view class="page-container">
<AppTitleHeader title="备件查询" subTitle="请选择查询方式" :showSubTitle="true" /> <NavBar title="备件查询" subTitle="请选择查询方式" />
<view class="content-section"> <view class="content-section">
<view class="scan-section"> <view class="scan-section">
@ -53,7 +53,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import AppTitleHeader from '@/components/common/AppTitleHeader.vue' import NavBar from '@/components/common/NavBar.vue'
const spareCode = ref(''); const spareCode = ref('');
const isScanning = ref(false); const isScanning = ref(false);

Loading…
Cancel
Save