From 40a4998fcc9bd3e4d1538d29fe2a21a438954a04 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 19 Jul 2023 15:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=8D=A1=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages/workSpace/operation/oplDetail.vue | 69 +++++++++++++-- pages/workSpace/workSpace.vue | 111 ++++++++++++++++++++++-- 3 files changed, 171 insertions(+), 13 deletions(-) diff --git a/manifest.json b/manifest.json index 5137c50..91d0923 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "曲阳金隅EHS", "appid" : "__UNI__B00D419", "description" : "曲阳金隅EHS", - "versionName" : "1.01.42", - "versionCode" : 101042, + "versionName" : "1.01.44", + "versionCode" : 101044, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/workSpace/operation/oplDetail.vue b/pages/workSpace/operation/oplDetail.vue index 8fdadc8..566b8e0 100644 --- a/pages/workSpace/operation/oplDetail.vue +++ b/pages/workSpace/operation/oplDetail.vue @@ -119,10 +119,50 @@ - + 气体检测记录: - - + + + + 检测部位: + {{item1.check_place}} + + + O₂: + {{item1.o2}} + + + 检测人: + {{item1.checker_.name}} + + + + CO: + {{item1.co}} + + + 检验结论: + 正常 + 异常 + + + 可燃气体: + {{item1.lel}} + + + H₂S: + {{item1.h2s}} + + + 45℃: + {{item1.f5}} + + + 检测时间: + {{item1.check_time}} + + + @@ -464,7 +504,26 @@ .workersWrap{ } - + .checkWrap{ + font-size: 28upx; + align-items:center; + padding: 10upx 20upx; + } + .checkItem{ + width: 50%; + color: #212121; + display: inline-block; + } + .checkItemLable{ + color: #212121; + width: 140upx; + display: inline-block; + text-align: right; + margin-right: 6upx; + } + .checkItemValue{ + color: #666666; + } .workersItem{ display: flex; font-size: 28upx; diff --git a/pages/workSpace/workSpace.vue b/pages/workSpace/workSpace.vue index cf9aaee..a42aef3 100644 --- a/pages/workSpace/workSpace.vue +++ b/pages/workSpace/workSpace.vue @@ -72,7 +72,32 @@ - + + + + + 姓名:{{itemDetail.employee_.name}} + + + 手机:{{itemDetail.employee_.number}} + + + 所属部门:{{itemDetail.employee_.belong_dept_name}} + + + 所在岗位:{{itemDetail.employee_.post_name}} + + + + Mac号:{{itemDetail.code}} + + + 取消 + 退卡 + + + + @@ -85,6 +110,8 @@ limitedOperation:false, limitedRpj:false, limitedVisit:false, + detailLimited:false, + itemDetail:{}, routerList: [{ name: '新增作业', icon: 'specialmatter.png', @@ -101,6 +128,7 @@ path: 'index' }, ], + form:{}, myApplyArray: [], mytopimg: require("@/static/workSpace/bgimg-top.jpg"), } @@ -117,18 +145,35 @@ let that = this; uni.scanCode({ success: function (res) { + that.detailLimited = true; let form = {}; form.type = 20; form.code = res.result; - that.$u.api.thirdBltBind(form).then(res=>{ - uni.showToast({ - title: res, - icon: "none" - }) + that.form = form; + that.$u.api.tdevice(form).then(res=>{ + that.itemDetail = res.results[0]; }) } }); }, + tuika(){ + let that = this; + that.$u.api.thirdBltBind(that.form).then(res=>{ + uni.showToast({ + title: res, + icon: "none" + }) + that.detailLimited = false; + }).catch(res=>{ + uni.showToast({ + title: res, + icon: "none" + }) + }) + }, + closeWorkerDetail(){ + this.detailLimited = false; + }, goInto(index) { if (index == 0) { uni.navigateTo({ @@ -481,4 +526,58 @@ bottom: 80px; right: 20px; } + + #detailWrap{ + height: 100%; + width: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 100; + background: rgba(0,0,0,.6); + } + .workerContainer{ + position: relative; + width: 90%; + left: 5%; + background: #ffffff; + padding: 40upx 40upx 80upx 40upx; + top: 50%; + transform: translateY(-50%); + max-height: 80%; + overflow-y: scroll; + border-radius: 20upx; + } + .workerInfo{ + display: flex; + margin: 20upx 0; + } + .infoTitle{ + width: 170upx; + } + .closeDetailIcon{ + position: absolute; + bottom: 5%; + left: 50%; + transform: translateX(-50%); + } + .btnsWrap{ + width: 100%; + display: flex; + position: absolute; + bottom: 0; + height: 80upx; + line-height: 80upx; + } + .btnsWrap>.btns{ + width: 50%; + text-align: center; + color: #aaaaaa; + box-sizing: border-box; + border-top: 1upx solid #eeeeee; + } + .btnsWrap>.btns.equit{ + color:#e64340 ; + border-left: 1upx solid #eeeeee; + }