From ab10cac0146228c22ffbbae0bbdfdf6af02cc18c Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 11 四月 2023 12:59:20 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/index/data.js | 63 +++++++++++++++++++++++++++++++
1 files changed, 62 insertions(+), 1 deletions(-)
diff --git a/Monitor-APP/pages/index/data.js b/Monitor-APP/pages/index/data.js
index 53532a5..390d266 100644
--- a/Monitor-APP/pages/index/data.js
+++ b/Monitor-APP/pages/index/data.js
@@ -27,4 +27,65 @@
// {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027507728","count":1.0},
// {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504810","count":1.0},
// {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22037505148","count":1.0}],
-// "emptyMk":false}]}
\ No newline at end of file
+// "emptyMk":false}]}
+ getEEE() {
+ var result = ycqdata.dataEEE
+ let that = this
+ let res = result.data
+ if (res.data && res.data !== "") {
+ that.title = ''
+ that.staNo = ''
+ that.pakinShow = false
+ that.errorShow = true
+ that.errorPaper = res.data
+ that.move = false // 鏄剧ず
+ } else {
+ that.errorPaper = ''
+ that.errorShow = false
+ if (that.pakinShow) {
+ return;
+ } else {
+ that.move = true // 闅愯棌
+ }
+ }
+ },
+ getYYY() {
+ var result = ycqdata.dataYYY
+ let that = this
+ var newsData = ''
+ var str = ''
+ let res = result.data
+ if(res.data && res.data !== null) {
+ if (res.data[0].matDtos.length > 0) {
+ that.pakinShow = true
+ that.pakinGun = true
+ if (res.data[0].ioType === 101) {
+ that.title = '鍏ㄦ澘鍑哄簱'
+ } else if(res.data[0].ioType === 103) {
+ that.title = '妫�鏂欏嚭搴�'
+ }
+ that.staNo = '鐩爣绔�' + res.data[0].staNo
+ for (var i = 0; i < res.data[0].matDtos.length; i++) {
+ str = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch + '\n'
+ newsData = newsData + str
+ }
+ if (that.errorShow) {
+ // that.pakinShow = false
+ return;
+ } else {
+ that.newspaper = newsData
+ that.move = false
+ }
+ if (res.data[0].matDtos.length <= 8) {
+ that.errorShow = true
+ that.pakinShow = true
+ that.pakinGun = false
+ }
+ } else {
+ that.move = true
+ }
+ } else {
+ that.move = true
+ }
+
+ },
\ No newline at end of file
--
Gitblit v1.9.1