From 24b91cde32383c18533e516d7241e880d993d63c Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 17 十一月 2023 09:55:51 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/home/home.vue | 58 ++++++++++++++++++----------------------------------------
1 files changed, 18 insertions(+), 40 deletions(-)
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 9f9b4ff..50c2982 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -12,7 +12,7 @@
<view v-if="locs.length==0"><button size="mini" @click="ejected()" >閰嶇疆</button></view>
<view class="main" v-if="locs" >
<view class="main-b" v-for="item in locs" :class="item.color">
- <view class="flex-col" style="width: 100%;font-size: 5rpx;">
+ <view class="flex-col" style="width: 100%;font-size: 24rpx;">
<view class="flex-row">
<view style="flex: 1;" @click="ejected()">{{item.devNo}}</view>
<view style="flex: 1;">{{item.locSts$}}</view>
@@ -65,56 +65,23 @@
</view>
</view>
<view style="align-self: center;margin-top: auto;width: 100%;display: flex;align-items: center;justify-content: center;" v-if="item.agvWrkMast && item.agvWrkMast.ioType == 103 && item.agvWrkDetl">
- <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 10rpx;
+ <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 24rpx;
border-radius: 8rpx;" @click="pickIn(item.devNo)">鎷f枡鍥炲簱</view>
</view>
<view style="align-self: center;margin-top: auto;width: 100%;display: flex;align-items: center;justify-content: center;" v-if="item.agvWrkMast && item.agvWrkMast.ioType == 107 && item.agvWrkDetl">
- <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 10rpx;
+ <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 24rpx;
border-radius: 8rpx;" @click="pickIn(item.devNo)">鐩樼偣鍥炲簱</view>
</view>
<view style="align-self: center;margin-top: auto;width: 100%;display: flex;align-items: center;justify-content: center;" v-if="item.agvWrkMast && item.agvWrkMast.ioType == 101 && item.agvWrkDetl">
- <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 10rpx;
+ <view style="width: 60%;background-color: #007aff;height: 3vh;display: flex;align-items: center;justify-content: center;font-size: 24rpx;
border-radius: 8rpx;" @click="containerMoveOut(item.devNo)">瀹瑰櫒绂诲満</view>
</view>
</view>
</view>
- <!-- 涓昏鍥� -->
- <!-- <view class="main">
- <view class="main-y" v-for="item in locs">
- <view class="y-it"><view class="y-it-desc">宸ヤ綔绔欑紪鍙�:</view><view class="margin">{{item.devNo}}</view></view>
- <view class="y-it"><view class="y-it-desc">宸ヤ綔绔欑紪鍙�:</view><view class="margin">{{item.locSts$}}</view></view>
-
- <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">璁㈠崟鍙�:</view><view class="margin">{{item.agvWaitPakin.orderNo}}</view></view>
- <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">鐗╂枡鍙�:</view><view class="margin">{{item.agvWaitPakin.matnr}}</view></view>
- <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">鎵瑰彿:</view><view class="margin">{{item.agvWaitPakin.batch}}</view></view>
- <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">鏂欑鐮�:</view><view class="margin">{{item.agvWaitPakin.suppCode}}</view></view>
- <view class="y-it" v-if="item.agvWaitPakin"><view class="y-it-desc">鏁伴噺:</view><view class="margin">{{item.agvWaitPakin.anfme}}</view></view>
-
- <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">宸ヤ綔鍙�:</view><view class="margin">{{item.agvWrkMast.wrkNo}}</view></view>
- <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">宸ヤ綔鐘舵��:</view><view class="margin">{{item.agvWrkMast.wrkSts$}}</view></view>
- <view class="y-it" v-if="item.agvWrkMast"><view class="y-it-desc">宸ヤ綔绫诲瀷:</view><view class="margin">{{item.agvWrkMast.ioType$}}</view></view>
- <view class="y-it" v-if="item.agvWrkDetl " >
- <view style="display: flex;align-items: stretch;" >
- <view style="height: 100%">璁㈠崟鍙�: </view>
- <view style="width: 16vw;display: flex;flex-wrap: wrap;">
- <view style="width: 100%; text-align: left;" v-for="k in item.agvWrkDetl.orderNo">{{k.orderNo}}--{{k.anfme}}</view>
- </view>
- </view>
- </view>
- <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">鐗╂枡鍙�:</view><view class="margin">{{item.agvWrkDetl.matnr}}</view></view>
- <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">鎵瑰彿:</view><view class="margin">{{item.agvWrkDetl.batch}}</view></view>
- <view class="y-it" v-if="item.agvWrkDetl"><view class="y-it-desc">鏂欑鐮�:</view><view class="margin">{{item.agvWrkDetl.suppCode}}</view></view>
- <view class="y-it" v-if="item.agvWrkDetl">
- <view class="y-it-desc" >鍙栬揣鏁伴噺:</view><view class="margin">{{item.agvWrkDetl.anfme}}</view>
- <view class="y-it-desc" style="flex:1;">缁撲綑鏁伴噺:</view><view class="margin" style="margin-right: 10%;">{{item.agvWrkDetl.volume}}</view>
- </view>
-
- </view>
- </view> -->
</view>
</uni-transition>
@@ -189,7 +156,12 @@
export default {
data() {
return {
- locs: [],
+ locs: [
+ // {devNo:'CS-309-005-03@3',locSts$:'O.绌哄簱浣�',
+ // agvWrkMast:{wrkNo:23879,wrkSts$: "205.宸ヤ綔瀹屾垚"},
+ // agvWaitPakin: {}
+ // },
+ ],
floors: [{value: 1,name:'1妤�'},{value:2,name:'3妤�'}],
rows: [{value: 'cs-101',name:'101'},{value: 'cs-102',name:'102'}],
ck1: true,
@@ -359,7 +331,13 @@
let param = {stationCode: `${that.current}`}
uni.request({
url: `${that.commonUrl}/agv/basDevp/visualized/list/auth`,
- header: { 'Access-Control-Allow-Origin': '*'},
+ header: {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Methods': 'GET,POST,OPTIONS',
+ 'Access-Control-Allow-Headers': 'X-Request-with,Content-Type',
+ },
+ sslVerify: false,
+ withCredentials: true,
method: 'POST',
data: JSON.stringify(param),
success(res) {
@@ -489,7 +467,7 @@
}
.main-b {
- font-size: 10rpx;
+ font-size: 24rpx;
background-color: rgba(255, 255, 255, .05);
/* background-color: rgba(0, 189, 47, 0.3); */
width:19.8vw;
--
Gitblit v1.9.1