From 51c7896fd8e45085dd5cdfff11e79a00ee0a7379 Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期五, 05 九月 2025 15:16:54 +0800 Subject: [PATCH] 上料/下料、报工/打印机配置/产线选择 、排产工单 --- pages/home/home.vue | 112 ++++++++++++++++++++++++++++++++----------------------- 1 files changed, 65 insertions(+), 47 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index b159b0a..648183e 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -11,25 +11,14 @@ </swiper-item> </swiper> - <!-- 璁惧缁翠慨 --> + + + <!-- 宸ヤ綔鍙� --> <view class="cu-bar bg-white solid-bottom" :style="[{animation: 'show 0.5s 1'}]"> <view class="action"> <text class='cuIcon-title text-blue'></text>宸ヤ綔鍙� </view> </view> - - <!-- <view class="cu-list grid col-4 text-sm"> - <view class="cu-item animation-slide-bottom" :style="[{animationDelay: (index + 1)*0.05 + 's'}]" v-for="(item,index) in usList" :key="index" @tap="goPage(item.page)"> - <view class="padding text-center"> - <image :src="item.icon" style="width:28px;height:28px;"> - <view class="cu-tag badge margin-top-sm" style="margin-left:1.2em" v-if="getTtemDotInfo(item)"> - <block v-if="getTtemDotInfo(item)">{{getTtemDotInfo(item)}}</block> - </view> - </image> - <view class="margin-top-xs">{{item.title}}</view> - </view> - </view> - </view> --> <view class="cu-list grid col-4 text-sm"> <view class="cu-item animation-slide-bottom" :style="[{animationDelay: (index + 1)*0.05 + 's'}]" v-for="(item, index) in usList" :key="index" @tap="goPage(item.page)"> @@ -43,10 +32,10 @@ </view> </view> - <!-- 璁惧淇濆吇 --> + <!-- 璁惧绠$悊 --> <view class="cu-bar bg-white solid-bottom margin-top" :style="[{animation: 'show 0.6s 1'}]"> <view class="action"> - <text class='cuIcon-title text-yellow'></text>淇濆吇 + <text class='cuIcon-title text-yellow'></text>璁惧绠$悊 </view> </view> <view class="cu-list grid col-4 text-sm"> @@ -62,11 +51,32 @@ </view> </view> + <!-- 鐢熶骇绠$悊 --> + <view class="cu-bar bg-white solid-bottom" :style="[{animation: 'show 0.5s 1'}]"> + <view class="action"> + <text class='cuIcon-title text-blue'></text>鐢熶骇绠$悊 + </view> + </view> + <view class="cu-list grid col-4 text-sm"> + <view class="cu-item animation-slide-bottom" :style="[{animationDelay: (index + 1)*0.05 + 's'}]" + v-for="(item, index) in psList" :key="index" @tap="goPage(item.page)"> + <view class="padding text-center"> + <image :src="item.icon" style="width:28px;height:28px;"> + <view class="cu-tag badge margin-top-sm" style="margin-left:1.2em" + v-if="getTtemDotInfo(item)"></view> + </image> + <view class="margin-top-xs">{{ item.title }}</view> + </view> + </view> + </view> - <!-- 璁惧缁翠慨 --> + + + + <!-- 璐ㄩ噺绠$悊 --> <view class="cu-bar bg-white solid-bottom margin-top" :style="[{animation: 'show 0.6s 1'}]"> <view class="action"> - <text class='cuIcon-title text-blue'></text>缁翠慨 + <text class='cuIcon-title text-orange'></text>璐ㄩ噺绠$悊 </view> </view> <view class="cu-list grid col-4 text-sm"> @@ -82,6 +92,30 @@ </view> </view> + + + + <!-- 瀹夌伅绠$悊 --> + <view class="cu-bar bg-white solid-bottom margin-top" :style="[{animation: 'show 0.6s 1'}]"> + <view class="action"> + <text class='cuIcon-title text-green'></text>瀹夌伅绠$悊 + </view> + </view> + <view class="cu-list grid col-4 text-sm"> + <view class="cu-item animation-slide-bottom" :style="[{animationDelay: (index + 1)*0.1 + 's'}]" + v-for="(item,index) in asList" :key="index" @tap="goPage(item.page)"> + <view class="padding text-center"> + <image :src="item.icon" style="width:28px;height:28px;"> + <view class="cu-tag badge margin-top-sm" style="margin-left:1.2em" + v-if="getTtemDotInfo(item)"></view> + </image> + <view class="margin-top-xs">{{item.title}}</view> + </view> + </view> + </view> + + + </scroll-view> <view class="cu-tabbar-height margin-top"></view> </view> @@ -94,7 +128,9 @@ import { us, os, - ws + ws, + ps, + as } from '@/common/util/work.js' import socket from '@/common/js-sdk/socket/socket.js' export default { @@ -102,24 +138,15 @@ props: { cur: String, }, - // watch: { - // cur: { - // immediate: true, - // handler: function(val, oldVal) { - // console.log('cur', val, oldVal) - // this.initMenu() - // }, - // }, - // }, watch: { - cur: { - immediate: true, - handler: function(val, oldVal) { - console.log('cur', val, oldVal) - // 鍗充娇鍊兼病鏈夊彉鍖栵紝涔熶富鍔ㄨ皟鐢� initMenu - this.initMenu() - }, - }, + cur: { + immediate: true, + handler: function(val, oldVal) { + console.log('cur', val, oldVal) + // 鍗充娇鍊兼病鏈夊彉鍖栵紝涔熶富鍔ㄨ皟鐢� initMenu + this.initMenu() + }, + }, }, data() { return { @@ -147,20 +174,11 @@ link: '' } ], - middleApps: [{ - icon: 'line2_icon1.png', - title: '瀹℃壒', - 'text': '涓汉瀹℃壒' - }, - { - icon: 'line2_icon2.png', - title: '瀹℃壒绋�', - 'text': '瀹℃壒鑽夌绠�' - }, - ], usList: us.data, osList: os.data, wsList: ws.data, + psList: ps.data, + asList: as.data, msgCount: 0, toDomsgCount: 0, unExecRepairOrderCount: 0, -- Gitblit v1.9.3