From 48c39a1c301c461747d9b6ba9e7c69b7aa93f6e9 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 25 七月 2025 16:42:12 +0800
Subject: [PATCH] 修复页面bug 修改样式
---
pages/mujvzhuangtai/mujvzhuangtai.vue | 3
pages/qitachukujiaoyan/detail.vue | 2
pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue | 4
pages/tiaomachaima/tiaomachaima.vue | 2
pages/index/tab2.vue | 367 +++++++++++++++++++++++++++------------------------
main.js | 1
App.vue | 31 ++-
7 files changed, 224 insertions(+), 186 deletions(-)
diff --git a/App.vue b/App.vue
index ecd105f..2fcc555 100644
--- a/App.vue
+++ b/App.vue
@@ -1,5 +1,10 @@
<script>
- import { getOpenId,setUserInfo,setToken, getToken} from "./utils/auth";
+ import {
+ getOpenId,
+ setUserInfo,
+ setToken,
+ getToken
+ } from "./utils/auth";
export default {
onLaunch: function() {
console.log('App Launch')
@@ -9,27 +14,29 @@
},
onHide: function() {
console.log('App Hide')
- }
+ },
}
</script>
<style>
/*姣忎釜椤甸潰鍏叡css */
- .over{
+ .over {
color: #888;
font-size: 28rpx;
text-align: center;
padding: 60rpx 0;
}
-
+
/* 鐢ㄤ簬瑙e喅picker鍐呴儴璁剧疆 disabled input 鏃朵笉鍝嶅簲鐨勯棶棰� */
.picker-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: transparent; /* 閫忔槑鑳屾櫙 */
- z-index: 1; /* 纭繚鍦� input 涓婃柟 */
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: transparent;
+ /* 閫忔槑鑳屾櫙 */
+ z-index: 1;
+ /* 纭繚鍦� input 涓婃柟 */
}
-</style>
+</style>
\ No newline at end of file
diff --git a/main.js b/main.js
index 983fc86..036e12a 100644
--- a/main.js
+++ b/main.js
@@ -6,6 +6,7 @@
// 寮�鍙戠幆澧�
// Vue.prototype.serverUrl = "http://47.96.97.237/API";
+Vue.prototype.$isDev = process.env.NODE_ENV === 'development'
//涓嶆樉绀篶onsole.log
// if (uni.getSystemInfoSync().platform !== "devtools") {
diff --git a/pages/index/tab2.vue b/pages/index/tab2.vue
index c379842..e816f90 100644
--- a/pages/index/tab2.vue
+++ b/pages/index/tab2.vue
@@ -1,7 +1,7 @@
<template>
<view class="content">
<view class="mains">
- <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
+ <view class="box" :hidden="item.hidden" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
<image :src="item.img" mode=""></image>
<view class="texts">
{{item.text}}
@@ -14,189 +14,212 @@
<script>
export default {
- data() {
- return {
- serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
- itemData:[{
- img:'../../static/icon/icon_a17.png',
- text:'閲囪喘鍏ュ簱鏆傚瓨鍒楄〃',
- url:'/pages/caigouruku/table',
- id:1
- },{
- img:'../../static/icon/icon_a18.png',
- text:'閲囪喘閫�鏂欐殏瀛樺垪琛�',
- url:'/pages/caigoutuiliao/table',
- id:2,
- },{
- img:'../../static/icon/icon_a17.png',
- text:'鍏朵粬鍏ュ簱鏆傚瓨鍒楄〃',
- url:'/pages/qitaruku_v2/table',
- id:3,
- },{
- img:'../../static/icon/icon_a18.png',
- text:'鍏朵粬鍑哄簱鏆傚瓨鍒楄〃',
- url:'/pages/qitachuku_v2/table',
- id:4,
- },{
- img:'../../static/icon/icon_a32.png',
- text:'鐩存帴璋冩嫧鏆傚瓨鍒楄〃',
- url:'',
- id:5,
- },{
- img:'../../static/icon/icon_a30.png',
- text:'鐢熶骇棰嗘枡鏆傚瓨鍒楄〃',
- url:'/pages/shengchanlingliaoshengdan/table',
- id:6,
- },{
- img:'../../static/icon/icon_a31.png',
- text:'鐢熶骇琛ユ枡鏆傚瓨鍒楄〃',
- url: '/pages/shengchanbuliao/table' ,
- // url: '',
- id:7,
- },{
- img:'../../static/icon/icon_a17.png',
- text:'鐢熶骇鍏ュ簱鏆傚瓨鍒楄〃',
- url:'/pages/shengchanrukushengdan/table',
- // url:'',
- id:8,
- },{
- img:'../../static/icon/icon_a30.png',
- text:'濮斿棰嗘枡鏆傚瓨鍒楄〃',
- // url:'',
- url:'/pages/weiwailingliao/table',
- id:9,
- },{
- img:'../../static/icon/icon_a18.png',
- text:'閿�鍞嚭搴撴殏瀛樺垪琛�',
- url:'/pages/xiaoshouchuku/table',
- id:10,
- },{
- img:'../../static/icon/icon_a20.png',
- text:'閿�鍞��璐ф殏瀛樺垪琛�',
- url:'/pages/xiaoshoutuihuo/table',
- id:11
- },{
- img:'../../static/icon/icon_a30.png',
- text:'鐢熶骇棰嗘枡鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/shengchanlingliao/table',
- id:12,
- },{
- img:'../../static/icon/icon_a31.png',
- text:'鐢熶骇琛ユ枡鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/shengchanbuliaojiaoyan/CacheList',
- id:13,
- },{
- img:'../../static/icon/icon_a32.png',
- text:'鐢熶骇璋冩嫧鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/shengchandiaobo/table',
- id:14,
- },{
- img:'../../static/icon/icon_a18.png',
- text:'鍏朵粬鍑哄簱鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/qitachuku/qitachuku',
- id:15,
- },{
- img:'../../static/icon/icon_a17.png',
- text:'鐢熶骇鍏ュ簱鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/shengchanruku/table',
- id:16,
- },{
- img:'../../static/icon/icon_a18.png',
- text:'閿�鍞嚭搴撴牎楠屾殏瀛樺垪琛�',
- url:'/pages/xiaoshouchukujiaoyan/table',
- id:17,
- },{
- img:'../../static/icon/icon_a30.png',
- text:'濮斿棰嗘枡鏍¢獙鏆傚瓨鍒楄〃',
- url:'/pages/weiwailingliaojiaoyan/table',
- id:18,
- },{
- img:'../../static/icon/icon_a3.png',
- text:'璁惧淇濆吇璁板綍鍗�',
- url:'/pages/baoyangjilu/table',
- id:19,
- },{
- img:'../../static/icon/icon_a5.png',
- text:'璁惧鐐规璁板綍鍗�',
- url:'',
- id:20,
- },{
- img:'../../static/icon/icon_a6.png',
- text:'璁惧鏁呴殰鐧昏琛�',
- url:'/pages/guzhangdengji/table',
- id:21,
- },{
- img:'../../static/icon/icon_a7.png',
- text:'璁惧缁翠慨璁板綍鍗�',
- url:'/pages/shebeiweixiu/table',
- id:22,
- },{
- img:'../../static/icon/icon_a15.png',
- text:'寮傚父鍙嶉鍗�',
- url:'/pages/yichang/table',
- id:23,
- },{
- img:'../../static/icon/icon_a16.png',
- text:'寮傚父鍙嶉澶勭悊鍗�',
- url:'/pages/yichang/list',
- id:24,
- },{
- img:'../../static/icon/icon_a21.png',
- text:'鏍囩鎵撳嵃',
- url:'/pages/labelPrinter/index',
- id:25,
- },{
- img:'../../static/icon/icon_a21.png',
- text:'鏉$爜鎷嗙爜',
- url:'/pages/tiaomachaima/tiaomachaima',
- id:26,
- }]
- }
- },
- onLoad() {
-
+ data() {
+ return {
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ itemData: [{
+ img: '../../static/icon/icon_a17.png',
+ text: '閲囪喘鍏ュ簱鏆傚瓨鍒楄〃',
+ url: '/pages/caigouruku/table',
+ id: 1
+ }, {
+ img: '../../static/icon/icon_a18.png',
+ text: '閲囪喘閫�鏂欐殏瀛樺垪琛�',
+ url: '/pages/caigoutuiliao/table',
+ id: 2,
+ }, {
+ img: '../../static/icon/icon_a17.png',
+ text: '鍏朵粬鍏ュ簱鏆傚瓨鍒楄〃',
+ url: '/pages/qitaruku_v2/table',
+ id: 3,
+ }, {
+ img: '../../static/icon/icon_a18.png',
+ text: '鍏朵粬鍑哄簱鏆傚瓨鍒楄〃',
+ url: '/pages/qitachuku_v2/table',
+ id: 4,
+ }, {
+ img: '../../static/icon/icon_a32.png',
+ text: '鐩存帴璋冩嫧鏆傚瓨鍒楄〃',
+ url: '',
+ id: 5,
+ }, {
+ img: '../../static/icon/icon_a30.png',
+ text: '鐢熶骇棰嗘枡鏆傚瓨鍒楄〃',
+ url: '/pages/shengchanlingliaoshengdan/table',
+ id: 6,
+ }, {
+ img: '../../static/icon/icon_a31.png',
+ text: '鐢熶骇琛ユ枡鏆傚瓨鍒楄〃',
+ url: this.$isDev ? '/pages/shengchanbuliao/table' : '',
+ // url: '',
+ id: 7,
+ }, {
+ img: '../../static/icon/icon_a17.png',
+ text: '鐢熶骇鍏ュ簱鏆傚瓨鍒楄〃',
+ url: this.$isDev ? '/pages/shengchanrukushengdan/table' : '',
+ // url:'',
+ id: 8,
+ }, {
+ img: '../../static/icon/icon_a30.png',
+ text: '濮斿棰嗘枡鏆傚瓨鍒楄〃',
+ // url:'',
+ url: this.$isDev ? '/pages/weiwailingliao/table' : '',
+ id: 9,
+ }, {
+ img: '../../static/icon/icon_a18.png',
+ text: '閿�鍞嚭搴撴殏瀛樺垪琛�',
+ url: '/pages/xiaoshouchuku/table',
+ id: 10,
+ }, {
+ img: '../../static/icon/icon_a20.png',
+ text: '閿�鍞��璐ф殏瀛樺垪琛�',
+ url: '/pages/xiaoshoutuihuo/table',
+ id: 11
+ }, {
+ img: '../../static/icon/icon_a30.png',
+ text: '鐢熶骇棰嗘枡鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/shengchanlingliao/table',
+ id: 12,
+ }, {
+ img: '../../static/icon/icon_a31.png',
+ text: '鐢熶骇琛ユ枡鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/shengchanbuliaojiaoyan/CacheList',
+ id: 13,
+ }, {
+ img: '../../static/icon/icon_a32.png',
+ text: '鐢熶骇璋冩嫧鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/shengchandiaobo/table',
+ id: 14,
+ }, {
+ img: '../../static/icon/icon_a18.png',
+ text: '鍏朵粬鍑哄簱鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/qitachukujiaoyan/qitachukujiaoyan',
+ id: 15,
+ }, {
+ img: '../../static/icon/icon_a17.png',
+ text: '鐢熶骇鍏ュ簱鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/shengchanruku/table',
+ id: 16,
+ }, {
+ img: '../../static/icon/icon_a18.png',
+ text: '閿�鍞嚭搴撴牎楠屾殏瀛樺垪琛�',
+ url: '/pages/xiaoshouchukujiaoyan/table',
+ id: 17,
+ }, {
+ img: '../../static/icon/icon_a30.png',
+ text: '濮斿棰嗘枡鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/weiwailingliaojiaoyan/table',
+ id: 18,
+ }, {
+ hidden: !this.$isDev,
+ img: '../../static/icon/icon_a30.png',
+ text: '閲囪喘鍏ュ簱鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/caigourukujiaoyan/table',
+ id: 27,
+ }, {
+ hidden: !this.$isDev,
+ img: '../../static/icon/icon_a30.png',
+ text: '鍏朵粬鍏ュ簱鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/qitarukujiaoyan/table',
+ id: 28,
+ }, {
+ hidden: !this.$isDev,
+ img: '../../static/icon/icon_a30.png',
+ text: '濮斿琛ユ枡鏍¢獙鏆傚瓨鍒楄〃',
+ url: '/pages/weiwaibuliaojiaoyan/table',
+ id: 29,
+ }, {
+ img: '../../static/icon/icon_a3.png',
+ text: '璁惧淇濆吇璁板綍鍗�',
+ url: '/pages/baoyangjilu/table',
+ id: 19,
+ }, {
+ img: '../../static/icon/icon_a5.png',
+ text: '璁惧鐐规璁板綍鍗�',
+ url: '',
+ id: 20,
+ }, {
+ img: '../../static/icon/icon_a6.png',
+ text: '璁惧鏁呴殰鐧昏琛�',
+ url: '/pages/guzhangdengji/table',
+ id: 21,
+ }, {
+ img: '../../static/icon/icon_a7.png',
+ text: '璁惧缁翠慨璁板綍鍗�',
+ url: '/pages/shebeiweixiu/table',
+ id: 22,
+ }, {
+ img: '../../static/icon/icon_a15.png',
+ text: '寮傚父鍙嶉鍗�',
+ url: '/pages/yichang/table',
+ id: 23,
+ }, {
+ img: '../../static/icon/icon_a16.png',
+ text: '寮傚父鍙嶉澶勭悊鍗�',
+ url: '/pages/yichang/list',
+ id: 24,
+ }, {
+ img: '../../static/icon/icon_a21.png',
+ text: '鏍囩鎵撳嵃',
+ url: '/pages/labelPrinter/index',
+ id: 25,
+ }, {
+ img: '../../static/icon/icon_a21.png',
+ text: '鏉$爜鎷嗙爜',
+ url: '/pages/tiaomachaima/tiaomachaima',
+ id: 26,
+ }]
+ }
},
- methods: {
- toUrl(item){
- if(item.url){
+ onLoad() {},
+ methods: {
+ toUrl(item) {
+ if (item.url) {
uni.navigateTo({
- url:item.url
+ url: item.url
})
- }else{
+ } else {
uni.showToast({
- title:'鍔熻兘寮�鍙戜腑銆傘�傘��',
- icon:'none'
+ title: '鍔熻兘寮�鍙戜腑銆傘�傘��',
+ icon: 'none'
})
}
}
- }
+ }
}
</script>
<style lang="scss" scoped>
-.mains{
- width: 720rpx;
- margin: 0 auto;
- display: flex;
- flex-wrap: wrap;
- margin-top: 10rpx;
- padding-bottom: 80rpx;
- .box{
- width: 100%;
- margin: 40rpx 26rpx 0 26rpx;
- padding: 0 0 20rpx 10rpx;
+ .mains {
+ width: 720rpx;
+ margin: 0 auto;
display: flex;
- align-items: center;
- border-bottom: 1px solid #f0f0f0;
- image{
- width: 40rpx;
- height: 40rpx;
+ flex-wrap: wrap;
+ margin-top: 10rpx;
+ padding-bottom: 80rpx;
+
+ .box {
+ width: 100%;
+ margin: 40rpx 26rpx 0 26rpx;
+ padding: 0 0 20rpx 10rpx;
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid #f0f0f0;
+
+ image {
+ width: 40rpx;
+ height: 40rpx;
+ }
+
+ .texts {
+ font-size: 30rpx;
+ color: #333333;
+ margin-left: 30rpx;
+ }
}
- .texts{
- font-size: 30rpx;
- color: #333333;
- margin-left: 30rpx;
+
+ .box[hidden] {
+ display: none;
}
}
-}
-</style>
+</style>
\ No newline at end of file
diff --git a/pages/mujvzhuangtai/mujvzhuangtai.vue b/pages/mujvzhuangtai/mujvzhuangtai.vue
index c7cc673..e0344a6 100644
--- a/pages/mujvzhuangtai/mujvzhuangtai.vue
+++ b/pages/mujvzhuangtai/mujvzhuangtai.vue
@@ -73,6 +73,9 @@
</uni-card>
</view>
</view>
+ <template v-if="moulds.length == 0">
+ <view class="over">鏆傛棤鏁版嵁</view>
+ </template>
</view>
</template>
diff --git a/pages/qitachukujiaoyan/detail.vue b/pages/qitachukujiaoyan/detail.vue
index 94779b5..d4a57e7 100644
--- a/pages/qitachukujiaoyan/detail.vue
+++ b/pages/qitachukujiaoyan/detail.vue
@@ -45,7 +45,7 @@
<view class="form-item" v-show="showHBillNo">
<view class="title">鍗曟嵁鍙�:</view>
<view class="right" style="width: 380rpx;">
- <input name="HBillNo" v-model="hform.HBillNo" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鏉$爜"
+ <input name="HBillNo" v-model="hform.HBillNo" placeholder="璇锋壂鎻�(鎴栬緭鍏�)鍗曟嵁鍙�"
@confirm="GetMeesageByBillNo(hform.HBarCode)" />
</view>
<uni-icons type="scan"
diff --git a/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue b/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
index 39e278f..0963f2d 100644
--- a/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
+++ b/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai.vue
@@ -72,6 +72,10 @@
</view>
</uni-card>
</view>
+
+ <template v-if="devices.length == 0">
+ <view class="over">鏆傛棤鏁版嵁</view>
+ </template>
</view>
</template>
diff --git a/pages/tiaomachaima/tiaomachaima.vue b/pages/tiaomachaima/tiaomachaima.vue
index d816ac8..4522c71 100644
--- a/pages/tiaomachaima/tiaomachaima.vue
+++ b/pages/tiaomachaima/tiaomachaima.vue
@@ -4,7 +4,7 @@
<view class="item">
<view class="left">鏉$爜缂栧彿锛�</view>
<view class="right">
- <input name="HBarCode" disabled v-model="barCodeInfoMeta.barCodeNo" placeholder="璇锋壂鎻忚澶�"
+ <input name="HBarCode" disabled v-model="barCodeInfoMeta.barCodeNo" placeholder="璇锋壂鎻忔潯鐮�"
@blur="searchbarCodeInfo" />
</view>
<view>
--
Gitblit v1.9.1