From 3ff55c0f9af7d708a4ed6b3b7adea207b46e3cea Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 29 九月 2022 15:15:45 +0800
Subject: [PATCH] 1.日常点检、设备保养、设备维修申请页面样式优化
---
pages/sbgl/rcdj_back2.html | 589 +++++++++
unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj_back2.html | 589 +++++++++
css/global_back.css | 71 +
unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html | 300 +++++
unpackage/cache/wgt/H5EDA0853/pages/xtsy/index.html | 17
pages/sbgl/rcdj.html | 235 +--
static/images/scan.png | 0
unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html | 260 +--
pages/sbgl/sbwx.html | 81 -
unpackage/cache/wgt/H5EDA0853/css/global.css | 92 +
css/global.css | 92 +
/dev/null | 0
pages/sbgl/dqby.html | 243 +--
unpackage/cache/wgt/H5EDA0853/static/images/scan.png | 0
unpackage/release/apk/H5EDA0853__20220929150858.apk | 0
pages/sbgl/wxsq.html | 220 +--
unpackage/cache/wgt/H5EDA0853/css/global_back.css | 71 +
unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html | 247 +--
unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html | 379 ++++++
19 files changed, 2,649 insertions(+), 837 deletions(-)
diff --git a/css/global.css b/css/global.css
index 959f185..e74b813 100644
--- a/css/global.css
+++ b/css/global.css
@@ -1,10 +1,73 @@
+body {
+ background-color: #eff0f1;
+ /* background-color: #DDDDDD; */
+}
+
+
+.body {
+ min-height: 600px;
+ margin-top: 0px;
+ position: relative;
+}
+
+.van-nav-bar__content {
+ background-color: #2651d8;
+ height: 44px;
+}
+
+.van-nav-bar__title {
+ color: #fff;
+ letter-spacing: 2px;
+}
+
+
+.vanFieldInput {
+ height: 36px;
+ line-height: 36px;
+ align-items: center;
+ border: 1px solid #ddd !important;
+ border-radius: 5px;
+ padding: 0;
+ padding-left: 10px;
+ margin: 5px 0;
+}
+.vanFieldInputArea{
+ height: 72px;
+ line-height: 24px;
+ align-items: center;
+ border: 1px solid #ddd !important;
+ border-radius: 5px;
+ padding: 0;
+ padding-left: 10px;
+ margin: 5px 0;
+}
+
+.vanButtonInfo {
+ width: 100%;
+ letter-spacing: 2px;
+ height: 50px;
+ border-radius: 5px;
+ font-size: 18px;
+ margin-bottom: 2px;
+}
+
+.buttonSmall {
+ border-radius: 5px;
+}
+
+.van-nav-bar__arrow {
+ color: #fff !important;
+}
+
.head {
- background-color: aliceblue;
+ /* background-color: aliceblue; */
+ background-color: #fff;
padding-top: 10px;
padding-bottom: 10px;
margin: 5px 8px;
display: flex;
flex-direction: column;
+ border-radius: 10px;
}
.head_block {
@@ -20,6 +83,7 @@
width: 5px;
height: 20px;
background-color: red;
+ margin-left: 5px;
}
.head_title {
@@ -43,9 +107,10 @@
align-items: center;
}
-.center_title{
+.center_title {
font-weight: bolder;
}
+
.center_border {
border: 1px solid #ccc;
min-height: 50px;
@@ -60,7 +125,8 @@
.footer {
position: fixed;
bottom: 0;
- background-color: aliceblue;
+ background-color: #fff;
+ border-radius: 10px;
min-height: 100px;
padding-top: 10px;
margin: 5px 8px 0;
@@ -69,3 +135,23 @@
display: flex;
flex-direction: column;
}
+
+
+.sacnBody {
+ display: flex;
+ flex-direction: column;
+}
+
+.scanImg {
+ width: 128px;
+ height: 128px;
+ border-radius: 50%;
+ margin: 200px auto 20px;
+ background: url(".././static/images/scan.png") no-repeat;
+ box-shadow: #436df5 0px 0px 28px;
+}
+
+.scanText {
+ margin: auto;
+ color: #000ccc;
+}
diff --git a/css/global_back.css b/css/global_back.css
new file mode 100644
index 0000000..959f185
--- /dev/null
+++ b/css/global_back.css
@@ -0,0 +1,71 @@
+.head {
+ background-color: aliceblue;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ margin: 5px 8px;
+ display: flex;
+ flex-direction: column;
+}
+
+.head_block {
+ display: flex;
+ justify-content: space-between;
+}
+
+.head_left {
+ display: flex;
+}
+
+.head_bar {
+ width: 5px;
+ height: 20px;
+ background-color: red;
+}
+
+.head_title {
+ margin-left: 5px;
+}
+
+
+.flex_column {
+ display: flex;
+ flex-direction: column;
+}
+
+.flex_between {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.flex_center {
+ display: flex;
+ align-items: center;
+}
+
+.center_title{
+ font-weight: bolder;
+}
+.center_border {
+ border: 1px solid #ccc;
+ min-height: 50px;
+ border-radius: 5px;
+ margin: 15px 0 0 0;
+ padding: 5px 0px 5px 10px;
+}
+
+
+
+
+.footer {
+ position: fixed;
+ bottom: 0;
+ background-color: aliceblue;
+ min-height: 100px;
+ padding-top: 10px;
+ margin: 5px 8px 0;
+ width: 96%;
+ padding-bottom: 10px;
+ display: flex;
+ flex-direction: column;
+}
diff --git a/pages/sbgl/dqby.html b/pages/sbgl/dqby.html
index 0da7910..fe9cf1f 100644
--- a/pages/sbgl/dqby.html
+++ b/pages/sbgl/dqby.html
@@ -192,103 +192,114 @@
</van-nav-bar>
- <div class="head">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鎵弿淇濆吇宸ヤ綅
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿淇濆吇宸ヤ綅</div>
+ </div>
+ </div>
+
+
+ <div v-else>
+
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿淇濆吇宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 淇濆吇椤圭洰鍐呭
+ </div>
+ </div>
+ <div style="margin-right: 10px;">
+
+ <van-button @click="sheetFlag=true" type="info" style="width:20px;height: 30px;">
+ {{dropdownValue==='M'?'鏈�':'骞�'}}
+ </van-button>
+ <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
</div>
</div>
- <div style="margin-right: 10px;">
- <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
- </div>
- </div>
-
- <div class="flex_between" style="">
- <div id="contentLeft" style="width: 100%;margin-top: 10px;">
- <div id="topContentID" v-for="item in topContent" :key="item.code"
- style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
- <div style="display: flex;align-items: center;">
- <div>
- <div>宸ヤ綅缂栫爜锛�</div>
- <div>宸ヤ綅鍚嶇О锛�</div>
- <div>鐢熶骇杞﹂棿锛�</div>
- </div>
- <div>
- <div>{{item.code}}</div>
- <div>{{item.name}}</div>
- <div>{{item.wksp_name}}</div>
- </div>
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
</div>
+
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父
+ </van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.chk_desc}}
</div>
</div>
- <div id="contentRight">
- <van-radio-group v-model="radioValue" style="padding-right: 12px;">
- <van-radio checked-color='red' icon-size="18px"
- style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
- :key="item.code" :name="item.code"></van-radio>
- </van-radio-group>
- </div>
- </div>
- </div>
- <div class="head"
- :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
- style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
- :style="{marginTop:topContent.length===0?'78px':'0'}">
- <div class="head_block" style="margin-bottom:10px;">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 淇濆吇椤圭洰鍐呭
- </div>
- </div>
- <div style="margin-right: 10px;">
-
- <van-button @click="sheetFlag=true" type="info" style="width:20px;height: 30px;">
- {{dropdownValue==='M'?'鏈�':'骞�'}}
- </van-button>
- <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
- </div>
</div>
- <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
- :key="item.code">
- <div class="flex_between">
- <div class="center_title">{{item.name}}</div>
- <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
- <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
- </div>
- </div>
- <div class="flex_between ">
- <div class='flex_between' style="width: 90%;">
- <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
- v-model="item.inputValue" placeholder="璇疯緭鍏�" />
- </div>
-
- <div class="" style="width: 40%;display: flex;justify-content: space-around;">
- <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
- :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
- <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
- @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
- </van-button>
- </div>
- </div>
- <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
- {{item.chk_desc}}
- </div>
- </div>
-
- </div>
-
-
- <div style="">
<div class="footer">
<div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
<div class="head_left">
@@ -317,6 +328,8 @@
</div>
</div>
+
+
</div>
@@ -439,7 +452,7 @@
username: localStorage.getItem('username'),
maintcyc: dropdownValue
}
-
+
post('AppDeviceManage/AppDeviceRepairSave' + formatParams(params), data)
.then(res => {
if (res.code === '200') {
@@ -574,65 +587,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- /* border-radius: 5px; */
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/pages/sbgl/rcdj.html b/pages/sbgl/rcdj.html
index e68683f..f1b3f66 100644
--- a/pages/sbgl/rcdj.html
+++ b/pages/sbgl/rcdj.html
@@ -25,7 +25,6 @@
<script type="text/javascript">
var topContent = [
-
// {
// code: 'SB003',
// name: '榻胯疆绠辩粍',
@@ -180,96 +179,104 @@
</van-nav-bar>
- <div class="head">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鎵弿鐐规宸ヤ綅
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿鐐规宸ヤ綅</div>
+ </div>
+ </div>
+
+
+ <div v-else>
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿鐐规宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规椤圭洰鍐呭
+ </div>
</div>
</div>
- <div style="margin-right: 10px;">
- <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
- </div>
- </div>
-
- <div class="flex_between" style="">
- <div id="contentLeft" style="width: 100%;margin-top: 10px;">
- <div id="topContentID" v-for="item in topContent" :key="item.code"
- style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
- <div style="display: flex;align-items: center;">
- <div>
- <div>宸ヤ綅缂栫爜锛�</div>
- <div>宸ヤ綅鍚嶇О锛�</div>
- <div>鐢熶骇杞﹂棿锛�</div>
- </div>
- <div>
- <div>{{item.code}}</div>
- <div>{{item.name}}</div>
- <div>{{item.wksp_name}}</div>
- </div>
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
</div>
- </div>
- </div>
- <div id="contentRight">
- <van-radio-group v-model="radioValue" style="padding-right: 12px;">
- <van-radio checked-color='red' icon-size="18px"
- style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
- :key="item.code" :name="item.code"></van-radio>
- </van-radio-group>
- </div>
- </div>
- </div>
- <div class="head"
- :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
- style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
- :style="{marginTop:topContent.length===0?'78px':'0'}">
- <div class="head_block" style="margin-bottom:10px;">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鐐规椤圭洰鍐呭
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父
+ </van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.checkdesc}}
</div>
</div>
+
</div>
-
- <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
- :key="item.code">
- <div class="flex_between">
- <div class="center_title">{{item.name}}</div>
- <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
- <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
- </div>
- </div>
- <div class="flex_between ">
- <div class='flex_between' style="width: 90%;">
- <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
- v-model="item.inputValue" placeholder="璇疯緭鍏�" />
- </div>
-
-
- <div class="" style="width: 40%;display: flex;justify-content: space-around;">
- <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
- :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
- <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
- @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
- </van-button>
- </div>
- </div>
- <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
- {{item.checkdesc}}
- </div>
- </div>
-
- </div>
-
-
- <div style="">
<div class="footer">
<div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
<div class="head_left">
@@ -511,12 +518,12 @@
this.overlayShow = true
},
onSelect(action) {
- if(action.text==='鎿嶄綔鎸囧'){
+ if (action.text === '鎿嶄綔鎸囧') {
topPopoverClick('鎿嶄綔鎸囧')
- }else if(action.text==='鎴愬搧杩芥函'){
+ } else if (action.text === '鎴愬搧杩芥函') {
topPopoverClick('鎴愬搧杩芥函')
- }else if(action.text==='閫�鍑虹櫥褰�'){
- topPopoverClick('閫�鍑虹櫥褰�')
+ } else if (action.text === '閫�鍑虹櫥褰�') {
+ topPopoverClick('閫�鍑虹櫥褰�')
}
this.overlayShow = false
},
@@ -525,65 +532,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- /* border-radius: 5px; */
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/pages/sbgl/rcdj_back2.html b/pages/sbgl/rcdj_back2.html
new file mode 100644
index 0000000..e68683f
--- /dev/null
+++ b/pages/sbgl/rcdj_back2.html
@@ -0,0 +1,589 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+ <meta name="HandheldFriendly" content="true" />
+ <meta name="MobileOptimized" content="320" />
+ <title>鏂板嚡杩埗閫犱簯骞冲彴</title>
+
+ <!-- 寮曞叆鏍峰紡鏂囦欢 -->
+ <link rel="stylesheet" href="../../css/vant.css" />
+ <!-- 寮曞叆 Vue 鍜� Vant 鐨� JS 鏂囦欢 -->
+ <script src="../../js/vue.min.js"></script>
+ <script src="../../js/vant.min.js"></script>
+
+ <script type="text/javascript" src="../../js/jquery-1.6.4.min.js"></script>
+ <script type="text/javascript" src="../../js/axios.min.js"></script>
+ <script type="text/javascript" src="../../js/http.js"></script>
+
+ <script type="text/javascript" src="../../js/common.js"></script>
+
+ <script type="text/javascript" src="../../js/global.js"></script>
+
+ <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
+
+ <script type="text/javascript">
+ var topContent = [
+
+ // {
+ // code: 'SB003',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ // {
+ // code: 'SB001',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ ];
+
+ var centerContent = [
+ // {
+ // checkdesc: '姘斿帇姝e父10甯曪紝鏈�楂樹笉瓒呰繃10.5甯曪紝鏈�浣庝笉浣庝簬9.7',
+ // code: 'BW003',
+ // name: '閮ㄤ綅3',
+ // seq: 2,
+ // cycle: 'D',
+ // isscan: 'N',
+ // isOK: 'OK',
+ // inputValue: '',
+ // isDisabled: false,
+ // },
+ ]
+
+
+ let radioValue = '' //鍗曢�夋閫変腑鐨勯」
+
+ let resultValue = '' //鐐规缁撴灉
+
+
+ let bwcode = '' //鐐瑰嚮閮ㄤ綅鐨勬壂鎻忔 鐐规椤圭洰code
+
+ let number = [] //鐐规椤圭洰鍐呭 鍋囨暟缁� 鍋氭壂鐮佸洖鏉ヨ鍥炬洿鏂扮敤
+
+ // 鎵弿鐐规宸ヤ綅杩斿洖鏃舵墽琛屾柟娉�
+ function scaned(r) {
+ let flag = false
+ topContent.forEach((item, index) => {
+ if (item.code === r) {
+ flag = true
+ }
+ })
+ if (flag) {
+ vant.Notify({
+ type: 'danger',
+ message: '姝ゆ潯鐮佸凡鎵弿锛屽凡鍦ㄥ垪琛ㄤ腑锛�'
+ });
+ } else {
+ get('AppDeviceManage/CheckScanDeviceQrCodeData', {
+ eqpcode: r
+ }).then(res => {
+ if (res.code === '200' && res.data[0].eqpchkmain_code !== null) {
+ topContent.unshift(res.data[0])
+ topContentClcik(topContent[0].code)
+ }
+
+ if (res.code === '200' && res.data[0].eqpchkmain_code === null) {
+ vant.Notify({
+ type: 'danger',
+ message: '褰撳墠璁惧鏈缃偣妫�鏍囧噯缁戝畾鐐规椤圭洰锛�'
+ });
+ }
+ })
+ }
+
+
+
+ }
+
+ // 鎵弿鐐规椤圭洰鍐呭杩斿洖鏃舵墽琛屾柟娉�
+ function scaned2(r) {
+ if (bwcode === r) {
+ centerContent.forEach(item => {
+ if (item.code === bwcode) {
+ item.isDisabled = false
+ item.isOK = 'OK'
+
+
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+
+
+ number.push({
+ id: '1'
+ })
+ }
+ })
+ } else {
+ vant.Notify({
+ type: 'danger',
+ message: '鎵弿鐨勪簩缁寸爜鏈笌姝ょ偣妫�椤圭洰鐩稿尮閰嶏紒'
+ });
+ }
+
+ }
+
+ function topContentClcik(code) {
+ radioValue = code
+ get('AppDeviceManage/SelectScanDeviceQrCodeItem', {
+ eqpcode: code
+ }).then(res => {
+ if (res.code === '200') {
+ centerContent = res.data
+ // centerContent = JSON.parse(JSON.stringify(centerContent))
+ centerContent.forEach(item => {
+ item.isDisabled = item.isscan === 'Y'
+ item.inputValue = ''
+ item.isOK = item.isscan !== 'Y' ? 'OK' : ''
+ })
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+ }
+ })
+ }
+ </script>
+ </head>
+ <!-- <body onload="loadNodes()"> -->
+ <body>
+ <div id="app">
+
+ <div class="body">
+
+ <van-nav-bar title="鏃ュ父鐐规" @click-right="onClickRight" left-arrow @click-left="onClickleft">
+ <template #right>
+ <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
+ trigger="click" :actions="actions" @select="onSelect">
+ <template #reference>
+ <van-icon name="bars" size='20' color='#fff' />
+ </template>
+ </van-popover>
+ </template>
+ </van-nav-bar>
+
+
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿鐐规宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规椤圭洰鍐呭
+ </div>
+ </div>
+ </div>
+
+
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
+ </div>
+
+
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.checkdesc}}
+ </div>
+ </div>
+
+ </div>
+
+
+ <div style="">
+ <div class="footer">
+ <div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规缁撴灉
+ </div>
+ </div>
+ <div class="flex_center" style="width: 30%;display: flex;justify-content: space-around;">
+
+ <van-button class="buttonSmall"
+ :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0"
+ size="small" :plain="resultValue!=='OK'" @click="resultClick('OK')" type="primary">
+ 姝e父</van-button>
+ <van-button class="buttonSmall" size="small" :plain="resultValue!=='NG'"
+ :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0"
+ @click="resultClick('NG')" type="danger">寮傚父</van-button>
+ </div>
+
+ </div>
+
+ <div
+ style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
+ <van-button class="vanButtonInfo" :disabled="resultValue===''" @click="submit" type="info">
+ 纭鎻愪氦</van-button>
+ </div>
+
+ </div>
+ </div>
+
+
+ </div>
+
+ <van-overlay :show="overlayShow" @click="overlayShow=false" />
+
+
+ </div>
+ </body>
+ <script>
+ var app = new Vue({
+ el: '#app',
+ data: function() {
+ return {
+ overlayShow: false,
+ showPopover: false,
+ actions: [{
+ icon: 'description',
+ text: '鎿嶄綔鎸囧'
+ }, {
+ icon: 'award-o',
+ text: '鎴愬搧杩芥函'
+ }, {
+ icon: 'revoke',
+ text: '閫�鍑虹櫥褰�'
+ }],
+ topContent2: topContent,
+ centerContent2: centerContent,
+ number2: number
+ }
+ },
+ watch: {
+ 'topContent2.length': {
+ handler(newValue, oldValue) {
+ if (newValue !== oldValue) {
+ // this.topContent2 = topContent
+ // this.$forceUpdate()
+ if (topContent[0] && topContent[0].code) {
+ this.$forceUpdate()
+ this.topContentClcik(topContent[0].code)
+ }
+
+ }
+ },
+ deep: true,
+ immediate: true,
+ },
+
+ // 'topContent.length': {
+ // handler(newValue, oldValue) {
+ // if (newValue !== oldValue) {
+ // this.$forceUpdate()
+ // // if (topContent[0]&&topContent[0].code) {
+ // // this.$forceUpdate()
+ // // this.topContentClcik(topContent[0].code)
+ // // }
+ // }
+ // },
+ // deep: true,
+ // immediate: true,
+ // },
+ 'number2.length': {
+ handler(newValue, oldValue) {
+ this.$forceUpdate()
+ },
+ deep: true,
+ immediate: true,
+ },
+ // 'number.length': {
+ // handler(newValue, oldValue) {
+ // this.$forceUpdate()
+ // },
+ // deep: true,
+ // immediate: true,
+ // },
+ },
+ created() {},
+ mounted() {},
+ methods: {
+ submit() {
+ let children = []
+ centerContent.forEach(item => {
+ children.push({
+ seq: item.seq,
+ itemcode: item.code,
+ cycle: item.cycle,
+ value: item.inputValue,
+ result: item.isOK
+ })
+ })
+ const data = {
+ code: radioValue,
+ name: topContent.find(r => r.code === radioValue).name,
+ standcode: topContent.find(r => r.code === radioValue).eqpchkmain_code,
+ result: resultValue,
+ children: children
+ }
+ post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data)
+ .then(res => {
+ if (res.code === '200') {
+ vant.Notify({
+ type: 'primary',
+ message: '鎻愪氦鎴愬姛锛�'
+ })
+ topContent.forEach((r, i) => {
+ if (r.code === radioValue) {
+ topContent.splice(i, 1)
+ }
+ })
+ if (topContent.length >= 1) {
+ radioValue = topContent[0].code
+ this.topContentClcik(radioValue)
+ } else {
+ centerContent = []
+ }
+ resultValue = ''
+ this.$forceUpdate()
+ }
+ })
+
+ },
+ // 杈撳叆妗嗗け鐒﹁Е鍙戜簨浠�
+ vanFieldBlur() {
+ this.$forceUpdate()
+ },
+ topContentClcik(code) {
+ radioValue = code
+ this.$forceUpdate()
+ get('AppDeviceManage/SelectScanDeviceQrCodeItem', {
+ eqpcode: code
+ }).then(res => {
+ if (res.code === '200') {
+ centerContent = res.data
+ centerContent.forEach(item => {
+ item.isDisabled = item.isscan === 'Y'
+ item.inputValue = ''
+ item.isOK = item.isscan !== 'Y' ? 'OK' : ''
+ })
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+
+ this.$forceUpdate()
+ }
+ })
+ },
+ resultClick(val) {
+ resultValue = val
+ this.$forceUpdate()
+ },
+ // 鎵弿鐐规宸ヤ綅鎵弿
+ topScanClick() {
+ createWithoutTitle('../../components/barcode_scan.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ // 鐐规椤圭洰鍐呭鎵弿
+ centerScanClick(code) {
+ bwcode = code
+ createWithoutTitle('../../components/barcode_scan2.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ // 閮ㄤ綅姝e父 寮傚父鎸夐挳鐐瑰嚮
+ bwClick(item, val) {
+ item.isOK = val
+ if (centerContent.every(item => item.isOK !== '')) {
+ if (centerContent.every(item => item.isOK === 'OK')) {
+ resultValue = 'OK'
+ } else {
+ resultValue = 'NG'
+ }
+ }
+ this.$forceUpdate() //寮哄埗瑙嗗浘鏇存柊
+ },
+ onClickleft() {
+ history.back()
+ },
+ onClickRight() {
+ this.overlayShow = true
+ },
+ onSelect(action) {
+ if(action.text==='鎿嶄綔鎸囧'){
+ topPopoverClick('鎿嶄綔鎸囧')
+ }else if(action.text==='鎴愬搧杩芥函'){
+ topPopoverClick('鎴愬搧杩芥函')
+ }else if(action.text==='閫�鍑虹櫥褰�'){
+ topPopoverClick('閫�鍑虹櫥褰�')
+ }
+ this.overlayShow = false
+ },
+ }
+ })
+ </script>
+ <style type="text/css">
+ @import url('../../css/global.css');
+
+ body {
+ background-color: #fff;
+ }
+
+ .body {
+ min-height: 600px;
+ background-color: grey;
+ margin-top: 0px;
+ background-color: #fff;
+ position: relative;
+ }
+
+ .van-nav-bar__content {
+ background-color: #2651d8;
+ height: 44px;
+ }
+
+ .van-nav-bar__title {
+ color: #fff;
+ letter-spacing: 2px;
+ }
+
+ .van-nav-bar__arrow {
+ color: #fff !important;
+ }
+
+ .createElementDiv {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 10px;
+ margin-left: 20px;
+ }
+
+ .vanFieldInput {
+ height: 36px;
+ line-height: 36px;
+ align-items: center;
+ /* width: 200px; */
+
+ padding: 0;
+ padding-left: 10px;
+ /* border-radius: 5px; */
+ margin: 5px 0;
+ /* background-color: #fff; */
+ }
+
+ .buttonSmall {
+ /* border-radius: 5px; */
+ }
+
+ .vanButtonInfo {
+ width: 100%;
+ letter-spacing: 2px;
+ height: 50px;
+ font-size: 18px;
+ /* margin-left: 0; */
+
+ }
+ </style>
+</html>
diff --git a/pages/sbgl/sbwx.html b/pages/sbgl/sbwx.html
index 42f4610..3758ff8 100644
--- a/pages/sbgl/sbwx.html
+++ b/pages/sbgl/sbwx.html
@@ -25,14 +25,13 @@
<script type="text/javascript">
var topContent = [
-
- // {
- // code: 'SB003',
- // name: '榻胯疆绠辩粍',
- // wksp_code: "CJ002",
- // wksp_name: '瑁呴厤杞﹂棿',
- // eqpchkmain_code: "djbz002"
- // },
+ {
+ code: 'SB003',
+ name: '榻胯疆绠辩粍',
+ wksp_code: "CJ002",
+ wksp_name: '瑁呴厤杞﹂棿',
+ eqpchkmain_code: "djbz002"
+ },
// {
// code: 'SB001',
// name: '榻胯疆绠辩粍',
@@ -163,7 +162,7 @@
<div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
- <van-field v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
</div>
<div style="width: 96%;margin: auto;margin-top: 10px;">
<van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
@@ -207,7 +206,7 @@
</div>
<div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
- <van-field v-model="messageContent" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ <van-field class="vanFieldInputArea" v-model="messageContent" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
</div>
</div>
@@ -225,7 +224,7 @@
<div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
- <van-field v-model="messageDescr2" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ <van-field class="vanFieldInputArea" v-model="messageDescr2" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
</div>
<div style="width: 96%;margin: auto;margin-top: 10px;">
<van-uploader :before-read="beforeRead" v-model="fileList2" :after-read="afterRead2" multiple
@@ -399,65 +398,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- width: 40px;
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/pages/sbgl/wxsq.html b/pages/sbgl/wxsq.html
index c13e245..760e100 100644
--- a/pages/sbgl/wxsq.html
+++ b/pages/sbgl/wxsq.html
@@ -71,98 +71,106 @@
</template>
</van-nav-bar>
-
- <div class="head">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鎵弿缁翠慨宸ヤ綅
- </div>
- </div>
-
- <div style="margin-right: 10px;">
- <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
- </div>
-
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿缁翠慨宸ヤ綅</div>
</div>
+ </div>
- <div class="flex_between" style="">
- <div id="contentLeft" style="width: 100%;margin-top: 10px;">
- <div id="topContentID" v-for="item in topContent" :key="item.code"
- style="margin-bottom: 10px;margin-left: 20px;">
- <div style="display: flex;align-items: center;">
- <div>
- <div>宸ヤ綅缂栫爜锛�</div>
- <div>宸ヤ綅鍚嶇О锛�</div>
- <div>鐢熶骇杞﹂棿锛�</div>
- </div>
- <div>
- <div>{{item.code}}</div>
- <div>{{item.name}}</div>
- <div>{{item.wksp_name}}</div>
- </div>
+ <div v-else>
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿缁翠慨宸ヤ綅
</div>
+ </div>
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+
+ </div>
+ </div>
+
+ <div class="head" :style="{marginTop:topContent.length===0?'100px':'0'}"
+ style="margin-bottom: 10px;padding-bottom: 10px;">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏁呴殰鏉ユ簮
+ </div>
+ </div>
+ <div style="margin-right: 10px;">
+ <van-button @click="sheetFlag=true" type="info" style="width:100px;height: 30px;">
+ {{dropdownValue==='V1'?'璁惧鐐规':'璁惧鐐规2'}}
+ </van-button>
+ <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
+ </div>
+ </div>
+
+ </div>
+
+ <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏁呴殰鎻忚堪
+ </div>
</div>
</div>
- </div>
- </div>
- <div class="head" :style="{marginTop:topContent.length===0?'100px':'0'}"
- style="margin-bottom: 10px;padding-bottom: 10px;">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鏁呴殰鏉ユ簮
- </div>
+ <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
+ <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
</div>
- <div style="margin-right: 10px;">
- <van-button @click="sheetFlag=true" type="info" style="width:100px;height: 30px;">
- {{dropdownValue==='V1'?'璁惧鐐规':'璁惧鐐规2'}}
- </van-button>
- <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
+ <div style="width: 96%;margin: auto;margin-top: 10px;">
+ <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
+ :after-read="afterRead" multiple :max-count="3" />
+ </div>
+
+ </div>
+
+ <div class="footer" style="min-height:50px;">
+ <div
+ style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
+ <van-button class="vanButtonInfo" :disabled="messageDescr.trim().toString().length===0"
+ @click="submit" type="info">
+ 纭鎻愪氦</van-button>
</div>
</div>
</div>
- <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
- <div class="head_block" style="margin-bottom:10px;">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鏁呴殰鎻忚堪
- </div>
- </div>
- </div>
-
-
-
- <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
- <van-field v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
- </div>
- <div style="width: 96%;margin: auto;margin-top: 10px;">
- <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
- :after-read="afterRead" multiple :max-count="3" />
- </div>
-
- </div>
-
-
-
- <div class="footer" style="min-height:50px;">
- <div
- style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
- <van-button class="vanButtonInfo" :disabled="messageDescr.trim().toString().length===0"
- @click="submit" type="info">
- 纭鎻愪氦</van-button>
- </div>
- </div>
</div>
@@ -288,65 +296,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- /* border-radius: 5px; */
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/static/images/scan.png b/static/images/scan.png
new file mode 100644
index 0000000..9986ba3
--- /dev/null
+++ b/static/images/scan.png
Binary files differ
diff --git a/unpackage/cache/wgt/H5EDA0853/css/global.css b/unpackage/cache/wgt/H5EDA0853/css/global.css
index 959f185..e74b813 100644
--- a/unpackage/cache/wgt/H5EDA0853/css/global.css
+++ b/unpackage/cache/wgt/H5EDA0853/css/global.css
@@ -1,10 +1,73 @@
+body {
+ background-color: #eff0f1;
+ /* background-color: #DDDDDD; */
+}
+
+
+.body {
+ min-height: 600px;
+ margin-top: 0px;
+ position: relative;
+}
+
+.van-nav-bar__content {
+ background-color: #2651d8;
+ height: 44px;
+}
+
+.van-nav-bar__title {
+ color: #fff;
+ letter-spacing: 2px;
+}
+
+
+.vanFieldInput {
+ height: 36px;
+ line-height: 36px;
+ align-items: center;
+ border: 1px solid #ddd !important;
+ border-radius: 5px;
+ padding: 0;
+ padding-left: 10px;
+ margin: 5px 0;
+}
+.vanFieldInputArea{
+ height: 72px;
+ line-height: 24px;
+ align-items: center;
+ border: 1px solid #ddd !important;
+ border-radius: 5px;
+ padding: 0;
+ padding-left: 10px;
+ margin: 5px 0;
+}
+
+.vanButtonInfo {
+ width: 100%;
+ letter-spacing: 2px;
+ height: 50px;
+ border-radius: 5px;
+ font-size: 18px;
+ margin-bottom: 2px;
+}
+
+.buttonSmall {
+ border-radius: 5px;
+}
+
+.van-nav-bar__arrow {
+ color: #fff !important;
+}
+
.head {
- background-color: aliceblue;
+ /* background-color: aliceblue; */
+ background-color: #fff;
padding-top: 10px;
padding-bottom: 10px;
margin: 5px 8px;
display: flex;
flex-direction: column;
+ border-radius: 10px;
}
.head_block {
@@ -20,6 +83,7 @@
width: 5px;
height: 20px;
background-color: red;
+ margin-left: 5px;
}
.head_title {
@@ -43,9 +107,10 @@
align-items: center;
}
-.center_title{
+.center_title {
font-weight: bolder;
}
+
.center_border {
border: 1px solid #ccc;
min-height: 50px;
@@ -60,7 +125,8 @@
.footer {
position: fixed;
bottom: 0;
- background-color: aliceblue;
+ background-color: #fff;
+ border-radius: 10px;
min-height: 100px;
padding-top: 10px;
margin: 5px 8px 0;
@@ -69,3 +135,23 @@
display: flex;
flex-direction: column;
}
+
+
+.sacnBody {
+ display: flex;
+ flex-direction: column;
+}
+
+.scanImg {
+ width: 128px;
+ height: 128px;
+ border-radius: 50%;
+ margin: 200px auto 20px;
+ background: url(".././static/images/scan.png") no-repeat;
+ box-shadow: #436df5 0px 0px 28px;
+}
+
+.scanText {
+ margin: auto;
+ color: #000ccc;
+}
diff --git a/unpackage/cache/wgt/H5EDA0853/css/global_back.css b/unpackage/cache/wgt/H5EDA0853/css/global_back.css
new file mode 100644
index 0000000..959f185
--- /dev/null
+++ b/unpackage/cache/wgt/H5EDA0853/css/global_back.css
@@ -0,0 +1,71 @@
+.head {
+ background-color: aliceblue;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ margin: 5px 8px;
+ display: flex;
+ flex-direction: column;
+}
+
+.head_block {
+ display: flex;
+ justify-content: space-between;
+}
+
+.head_left {
+ display: flex;
+}
+
+.head_bar {
+ width: 5px;
+ height: 20px;
+ background-color: red;
+}
+
+.head_title {
+ margin-left: 5px;
+}
+
+
+.flex_column {
+ display: flex;
+ flex-direction: column;
+}
+
+.flex_between {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.flex_center {
+ display: flex;
+ align-items: center;
+}
+
+.center_title{
+ font-weight: bolder;
+}
+.center_border {
+ border: 1px solid #ccc;
+ min-height: 50px;
+ border-radius: 5px;
+ margin: 15px 0 0 0;
+ padding: 5px 0px 5px 10px;
+}
+
+
+
+
+.footer {
+ position: fixed;
+ bottom: 0;
+ background-color: aliceblue;
+ min-height: 100px;
+ padding-top: 10px;
+ margin: 5px 8px 0;
+ width: 96%;
+ padding-bottom: 10px;
+ display: flex;
+ flex-direction: column;
+}
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html
index e81d757..fe9cf1f 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/dqby.html
@@ -154,7 +154,7 @@
dropdownValue = topContent.find(r => r.code === topContent[0].code).main_cycle
centerContent = res.data
- centerContent = JSON.parse(JSON.stringify(centerContent))
+ // centerContent = JSON.parse(JSON.stringify(centerContent))
centerContent.forEach(item => {
item.isDisabled = item.isscan === 'Y'
item.inputValue = ''
@@ -192,103 +192,114 @@
</van-nav-bar>
- <div class="head">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鎵弿淇濆吇宸ヤ綅
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿淇濆吇宸ヤ綅</div>
+ </div>
+ </div>
+
+
+ <div v-else>
+
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿淇濆吇宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 淇濆吇椤圭洰鍐呭
+ </div>
+ </div>
+ <div style="margin-right: 10px;">
+
+ <van-button @click="sheetFlag=true" type="info" style="width:20px;height: 30px;">
+ {{dropdownValue==='M'?'鏈�':'骞�'}}
+ </van-button>
+ <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
</div>
</div>
- <div style="margin-right: 10px;">
- <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
- </div>
- </div>
-
- <div class="flex_between" style="">
- <div id="contentLeft" style="width: 100%;margin-top: 10px;">
- <div id="topContentID" v-for="item in topContent" :key="item.code"
- style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
- <div style="display: flex;align-items: center;">
- <div>
- <div>宸ヤ綅缂栫爜锛�</div>
- <div>宸ヤ綅鍚嶇О锛�</div>
- <div>鐢熶骇杞﹂棿锛�</div>
- </div>
- <div>
- <div>{{item.code}}</div>
- <div>{{item.name}}</div>
- <div>{{item.wksp_name}}</div>
- </div>
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
</div>
+
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父
+ </van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.chk_desc}}
</div>
</div>
- <div id="contentRight">
- <van-radio-group v-model="radioValue" style="padding-right: 12px;">
- <van-radio checked-color='red' icon-size="18px"
- style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
- :key="item.code" :name="item.code"></van-radio>
- </van-radio-group>
- </div>
- </div>
- </div>
- <div class="head"
- :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
- style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
- :style="{marginTop:topContent.length===0?'78px':'0'}">
- <div class="head_block" style="margin-bottom:10px;">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 淇濆吇椤圭洰鍐呭
- </div>
- </div>
- <div style="margin-right: 10px;">
-
- <van-button @click="sheetFlag=true" type="info" style="width:20px;height: 30px;">
- {{dropdownValue==='M'?'鏈�':'骞�'}}
- </van-button>
- <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
- </div>
</div>
- <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
- :key="item.code">
- <div class="flex_between">
- <div class="center_title">{{item.name}}</div>
- <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
- <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
- </div>
- </div>
- <div class="flex_between ">
- <div class='flex_between' style="width: 90%;">
- <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
- v-model="item.inputValue" placeholder="璇疯緭鍏�" />
- </div>
-
- <div class="" style="width: 40%;display: flex;justify-content: space-around;">
- <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
- :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
- <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
- @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
- </van-button>
- </div>
- </div>
- <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
- {{item.chk_desc}}
- </div>
- </div>
-
- </div>
-
-
- <div style="">
<div class="footer">
<div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
<div class="head_left">
@@ -317,6 +328,8 @@
</div>
</div>
+
+
</div>
@@ -409,11 +422,13 @@
},
methods: {
+ // 鏈� 骞撮�夋嫨
onSelectSheet(val) {
- dropdownValue = val
+ dropdownValue = val.code
this.$forceUpdate()
this.sheetFlag = false
},
+ //鎻愪氦
submit() {
let children = []
centerContent.forEach(item => {
@@ -433,15 +448,11 @@
children: children
}
- console.log(data, 1)
-
const params = {
username: localStorage.getItem('username'),
maintcyc: dropdownValue
}
-// vant.Notify(JSON.stringify(params))
-// vant.Toast(JSON.stringify(data))
post('AppDeviceManage/AppDeviceRepairSave' + formatParams(params), data)
.then(res => {
if (res.code === '200') {
@@ -470,6 +481,7 @@
vanFieldBlur() {
this.$forceUpdate()
},
+ //鎵弿淇濆吇宸ヤ綅鐐瑰嚮涓嶅悓閫夋嫨椤�
topContentClcik(code) {
radioValue = code
this.$forceUpdate()
@@ -500,16 +512,11 @@
}
})
},
-
+ //淇濆吇缁撴灉鐐瑰嚮
resultClick(val) {
resultValue = val
this.$forceUpdate()
},
-
- selected(id) {
- alert(id)
- },
-
// 鎵弿淇濆吇宸ヤ綅鎵弿
topScanClick() {
createWithoutTitle('../../components/barcode_scan.html', {
@@ -547,7 +554,6 @@
}
});
},
-
// 閮ㄤ綅姝e父 寮傚父鎸夐挳鐐瑰嚮
bwClick(item, val) {
item.isOK = val
@@ -581,65 +587,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- /* border-radius: 5px; */
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html
index 1eef026..f1b3f66 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj.html
@@ -25,7 +25,6 @@
<script type="text/javascript">
var topContent = [
-
// {
// code: 'SB003',
// name: '榻胯疆绠辩粍',
@@ -142,7 +141,7 @@
}).then(res => {
if (res.code === '200') {
centerContent = res.data
- centerContent = JSON.parse(JSON.stringify(centerContent))
+ // centerContent = JSON.parse(JSON.stringify(centerContent))
centerContent.forEach(item => {
item.isDisabled = item.isscan === 'Y'
item.inputValue = ''
@@ -180,96 +179,104 @@
</van-nav-bar>
- <div class="head">
- <div class="head_block">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鎵弿鐐规宸ヤ綅
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿鐐规宸ヤ綅</div>
+ </div>
+ </div>
+
+
+ <div v-else>
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿鐐规宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规椤圭洰鍐呭
+ </div>
</div>
</div>
- <div style="margin-right: 10px;">
- <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
- </div>
- </div>
-
- <div class="flex_between" style="">
- <div id="contentLeft" style="width: 100%;margin-top: 10px;">
- <div id="topContentID" v-for="item in topContent" :key="item.code"
- style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
- <div style="display: flex;align-items: center;">
- <div>
- <div>宸ヤ綅缂栫爜锛�</div>
- <div>宸ヤ綅鍚嶇О锛�</div>
- <div>鐢熶骇杞﹂棿锛�</div>
- </div>
- <div>
- <div>{{item.code}}</div>
- <div>{{item.name}}</div>
- <div>{{item.wksp_name}}</div>
- </div>
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
</div>
- </div>
- </div>
- <div id="contentRight">
- <van-radio-group v-model="radioValue" style="padding-right: 12px;">
- <van-radio checked-color='red' icon-size="18px"
- style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
- :key="item.code" :name="item.code"></van-radio>
- </van-radio-group>
- </div>
- </div>
- </div>
- <div class="head"
- :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
- style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
- :style="{marginTop:topContent.length===0?'78px':'0'}">
- <div class="head_block" style="margin-bottom:10px;">
- <div class="head_left">
- <div class="head_bar"></div>
- <div class="head_title">
- 鐐规椤圭洰鍐呭
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父
+ </van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.checkdesc}}
</div>
</div>
+
</div>
-
- <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
- :key="item.code">
- <div class="flex_between">
- <div class="center_title">{{item.name}}</div>
- <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
- <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
- </div>
- </div>
- <div class="flex_between ">
- <div class='flex_between' style="width: 90%;">
- <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
- v-model="item.inputValue" placeholder="璇疯緭鍏�" />
- </div>
-
-
- <div class="" style="width: 40%;display: flex;justify-content: space-around;">
- <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
- :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
- <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
- @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
- </van-button>
- </div>
- </div>
- <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
- {{item.checkdesc}}
- </div>
- </div>
-
- </div>
-
-
- <div style="">
<div class="footer">
<div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
<div class="head_left">
@@ -396,9 +403,6 @@
result: resultValue,
children: children
}
-
- console.log(data, 1)
-
post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data)
.then(res => {
if (res.code === '200') {
@@ -454,16 +458,10 @@
}
})
},
-
resultClick(val) {
resultValue = val
this.$forceUpdate()
},
-
- selected(id) {
- alert(id)
- },
-
// 鎵弿鐐规宸ヤ綅鎵弿
topScanClick() {
createWithoutTitle('../../components/barcode_scan.html', {
@@ -501,7 +499,6 @@
}
});
},
-
// 閮ㄤ綅姝e父 寮傚父鎸夐挳鐐瑰嚮
bwClick(item, val) {
item.isOK = val
@@ -521,12 +518,12 @@
this.overlayShow = true
},
onSelect(action) {
- if(action.text==='鎿嶄綔鎸囧'){
+ if (action.text === '鎿嶄綔鎸囧') {
topPopoverClick('鎿嶄綔鎸囧')
- }else if(action.text==='鎴愬搧杩芥函'){
+ } else if (action.text === '鎴愬搧杩芥函') {
topPopoverClick('鎴愬搧杩芥函')
- }else if(action.text==='閫�鍑虹櫥褰�'){
- topPopoverClick('閫�鍑虹櫥褰�')
+ } else if (action.text === '閫�鍑虹櫥褰�') {
+ topPopoverClick('閫�鍑虹櫥褰�')
}
this.overlayShow = false
},
@@ -535,65 +532,5 @@
</script>
<style type="text/css">
@import url('../../css/global.css');
-
- body {
- background-color: #fff;
- }
-
- .body {
- min-height: 600px;
- background-color: grey;
- margin-top: 0px;
- background-color: #fff;
- position: relative;
- }
-
- .van-nav-bar__content {
- background-color: #2651d8;
- height: 44px;
- }
-
- .van-nav-bar__title {
- color: #fff;
- letter-spacing: 2px;
- }
-
- .van-nav-bar__arrow {
- color: #fff !important;
- }
-
- .createElementDiv {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
- margin-left: 20px;
- }
-
- .vanFieldInput {
- height: 36px;
- line-height: 36px;
- align-items: center;
- /* width: 200px; */
-
- padding: 0;
- padding-left: 10px;
- /* border-radius: 5px; */
- margin: 5px 0;
- /* background-color: #fff; */
- }
-
- .buttonSmall {
- /* border-radius: 5px; */
- }
-
- .vanButtonInfo {
- width: 100%;
- letter-spacing: 2px;
- height: 50px;
- font-size: 18px;
- /* margin-left: 0; */
-
- }
</style>
</html>
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj_back2.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj_back2.html
new file mode 100644
index 0000000..e68683f
--- /dev/null
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/rcdj_back2.html
@@ -0,0 +1,589 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+ <meta name="HandheldFriendly" content="true" />
+ <meta name="MobileOptimized" content="320" />
+ <title>鏂板嚡杩埗閫犱簯骞冲彴</title>
+
+ <!-- 寮曞叆鏍峰紡鏂囦欢 -->
+ <link rel="stylesheet" href="../../css/vant.css" />
+ <!-- 寮曞叆 Vue 鍜� Vant 鐨� JS 鏂囦欢 -->
+ <script src="../../js/vue.min.js"></script>
+ <script src="../../js/vant.min.js"></script>
+
+ <script type="text/javascript" src="../../js/jquery-1.6.4.min.js"></script>
+ <script type="text/javascript" src="../../js/axios.min.js"></script>
+ <script type="text/javascript" src="../../js/http.js"></script>
+
+ <script type="text/javascript" src="../../js/common.js"></script>
+
+ <script type="text/javascript" src="../../js/global.js"></script>
+
+ <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
+
+ <script type="text/javascript">
+ var topContent = [
+
+ // {
+ // code: 'SB003',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ // {
+ // code: 'SB001',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ ];
+
+ var centerContent = [
+ // {
+ // checkdesc: '姘斿帇姝e父10甯曪紝鏈�楂樹笉瓒呰繃10.5甯曪紝鏈�浣庝笉浣庝簬9.7',
+ // code: 'BW003',
+ // name: '閮ㄤ綅3',
+ // seq: 2,
+ // cycle: 'D',
+ // isscan: 'N',
+ // isOK: 'OK',
+ // inputValue: '',
+ // isDisabled: false,
+ // },
+ ]
+
+
+ let radioValue = '' //鍗曢�夋閫変腑鐨勯」
+
+ let resultValue = '' //鐐规缁撴灉
+
+
+ let bwcode = '' //鐐瑰嚮閮ㄤ綅鐨勬壂鎻忔 鐐规椤圭洰code
+
+ let number = [] //鐐规椤圭洰鍐呭 鍋囨暟缁� 鍋氭壂鐮佸洖鏉ヨ鍥炬洿鏂扮敤
+
+ // 鎵弿鐐规宸ヤ綅杩斿洖鏃舵墽琛屾柟娉�
+ function scaned(r) {
+ let flag = false
+ topContent.forEach((item, index) => {
+ if (item.code === r) {
+ flag = true
+ }
+ })
+ if (flag) {
+ vant.Notify({
+ type: 'danger',
+ message: '姝ゆ潯鐮佸凡鎵弿锛屽凡鍦ㄥ垪琛ㄤ腑锛�'
+ });
+ } else {
+ get('AppDeviceManage/CheckScanDeviceQrCodeData', {
+ eqpcode: r
+ }).then(res => {
+ if (res.code === '200' && res.data[0].eqpchkmain_code !== null) {
+ topContent.unshift(res.data[0])
+ topContentClcik(topContent[0].code)
+ }
+
+ if (res.code === '200' && res.data[0].eqpchkmain_code === null) {
+ vant.Notify({
+ type: 'danger',
+ message: '褰撳墠璁惧鏈缃偣妫�鏍囧噯缁戝畾鐐规椤圭洰锛�'
+ });
+ }
+ })
+ }
+
+
+
+ }
+
+ // 鎵弿鐐规椤圭洰鍐呭杩斿洖鏃舵墽琛屾柟娉�
+ function scaned2(r) {
+ if (bwcode === r) {
+ centerContent.forEach(item => {
+ if (item.code === bwcode) {
+ item.isDisabled = false
+ item.isOK = 'OK'
+
+
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+
+
+ number.push({
+ id: '1'
+ })
+ }
+ })
+ } else {
+ vant.Notify({
+ type: 'danger',
+ message: '鎵弿鐨勪簩缁寸爜鏈笌姝ょ偣妫�椤圭洰鐩稿尮閰嶏紒'
+ });
+ }
+
+ }
+
+ function topContentClcik(code) {
+ radioValue = code
+ get('AppDeviceManage/SelectScanDeviceQrCodeItem', {
+ eqpcode: code
+ }).then(res => {
+ if (res.code === '200') {
+ centerContent = res.data
+ // centerContent = JSON.parse(JSON.stringify(centerContent))
+ centerContent.forEach(item => {
+ item.isDisabled = item.isscan === 'Y'
+ item.inputValue = ''
+ item.isOK = item.isscan !== 'Y' ? 'OK' : ''
+ })
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+ }
+ })
+ }
+ </script>
+ </head>
+ <!-- <body onload="loadNodes()"> -->
+ <body>
+ <div id="app">
+
+ <div class="body">
+
+ <van-nav-bar title="鏃ュ父鐐规" @click-right="onClickRight" left-arrow @click-left="onClickleft">
+ <template #right>
+ <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
+ trigger="click" :actions="actions" @select="onSelect">
+ <template #reference>
+ <van-icon name="bars" size='20' color='#fff' />
+ </template>
+ </van-popover>
+ </template>
+ </van-nav-bar>
+
+
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿鐐规宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规椤圭洰鍐呭
+ </div>
+ </div>
+ </div>
+
+
+ <div class="center_border flex_column" style="margin: 5px;" v-for="item in centerContent"
+ :key="item.code">
+ <div class="flex_between">
+ <div class="center_title">{{item.name}}</div>
+ <div style="margin-right: 10px;" v-if="item.isscan==='Y'">
+ <van-icon name="scan" color='red' size='24' @click='centerScanClick(item.code)' />
+ </div>
+ </div>
+ <div class="flex_between ">
+ <div class='flex_between' style="width: 90%;">
+ <van-field class="vanFieldInput" @blur="vanFieldBlur()" :disabled="item.isDisabled"
+ v-model="item.inputValue" placeholder="璇疯緭鍏�" />
+ </div>
+
+
+ <div class="" style="width: 40%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" :disabled='item.isDisabled' size="small"
+ :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">姝e父</van-button>
+ <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'"
+ @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">寮傚父
+ </van-button>
+ </div>
+ </div>
+ <div style="font-weight: lighter;font-size: 14px;padding-right: 5px">
+ {{item.checkdesc}}
+ </div>
+ </div>
+
+ </div>
+
+
+ <div style="">
+ <div class="footer">
+ <div class="head_block" style="margin-bottom: 20rpx;align-items: center;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鐐规缁撴灉
+ </div>
+ </div>
+ <div class="flex_center" style="width: 30%;display: flex;justify-content: space-around;">
+
+ <van-button class="buttonSmall"
+ :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0"
+ size="small" :plain="resultValue!=='OK'" @click="resultClick('OK')" type="primary">
+ 姝e父</van-button>
+ <van-button class="buttonSmall" size="small" :plain="resultValue!=='NG'"
+ :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0"
+ @click="resultClick('NG')" type="danger">寮傚父</van-button>
+ </div>
+
+ </div>
+
+ <div
+ style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
+ <van-button class="vanButtonInfo" :disabled="resultValue===''" @click="submit" type="info">
+ 纭鎻愪氦</van-button>
+ </div>
+
+ </div>
+ </div>
+
+
+ </div>
+
+ <van-overlay :show="overlayShow" @click="overlayShow=false" />
+
+
+ </div>
+ </body>
+ <script>
+ var app = new Vue({
+ el: '#app',
+ data: function() {
+ return {
+ overlayShow: false,
+ showPopover: false,
+ actions: [{
+ icon: 'description',
+ text: '鎿嶄綔鎸囧'
+ }, {
+ icon: 'award-o',
+ text: '鎴愬搧杩芥函'
+ }, {
+ icon: 'revoke',
+ text: '閫�鍑虹櫥褰�'
+ }],
+ topContent2: topContent,
+ centerContent2: centerContent,
+ number2: number
+ }
+ },
+ watch: {
+ 'topContent2.length': {
+ handler(newValue, oldValue) {
+ if (newValue !== oldValue) {
+ // this.topContent2 = topContent
+ // this.$forceUpdate()
+ if (topContent[0] && topContent[0].code) {
+ this.$forceUpdate()
+ this.topContentClcik(topContent[0].code)
+ }
+
+ }
+ },
+ deep: true,
+ immediate: true,
+ },
+
+ // 'topContent.length': {
+ // handler(newValue, oldValue) {
+ // if (newValue !== oldValue) {
+ // this.$forceUpdate()
+ // // if (topContent[0]&&topContent[0].code) {
+ // // this.$forceUpdate()
+ // // this.topContentClcik(topContent[0].code)
+ // // }
+ // }
+ // },
+ // deep: true,
+ // immediate: true,
+ // },
+ 'number2.length': {
+ handler(newValue, oldValue) {
+ this.$forceUpdate()
+ },
+ deep: true,
+ immediate: true,
+ },
+ // 'number.length': {
+ // handler(newValue, oldValue) {
+ // this.$forceUpdate()
+ // },
+ // deep: true,
+ // immediate: true,
+ // },
+ },
+ created() {},
+ mounted() {},
+ methods: {
+ submit() {
+ let children = []
+ centerContent.forEach(item => {
+ children.push({
+ seq: item.seq,
+ itemcode: item.code,
+ cycle: item.cycle,
+ value: item.inputValue,
+ result: item.isOK
+ })
+ })
+ const data = {
+ code: radioValue,
+ name: topContent.find(r => r.code === radioValue).name,
+ standcode: topContent.find(r => r.code === radioValue).eqpchkmain_code,
+ result: resultValue,
+ children: children
+ }
+ post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data)
+ .then(res => {
+ if (res.code === '200') {
+ vant.Notify({
+ type: 'primary',
+ message: '鎻愪氦鎴愬姛锛�'
+ })
+ topContent.forEach((r, i) => {
+ if (r.code === radioValue) {
+ topContent.splice(i, 1)
+ }
+ })
+ if (topContent.length >= 1) {
+ radioValue = topContent[0].code
+ this.topContentClcik(radioValue)
+ } else {
+ centerContent = []
+ }
+ resultValue = ''
+ this.$forceUpdate()
+ }
+ })
+
+ },
+ // 杈撳叆妗嗗け鐒﹁Е鍙戜簨浠�
+ vanFieldBlur() {
+ this.$forceUpdate()
+ },
+ topContentClcik(code) {
+ radioValue = code
+ this.$forceUpdate()
+ get('AppDeviceManage/SelectScanDeviceQrCodeItem', {
+ eqpcode: code
+ }).then(res => {
+ if (res.code === '200') {
+ centerContent = res.data
+ centerContent.forEach(item => {
+ item.isDisabled = item.isscan === 'Y'
+ item.inputValue = ''
+ item.isOK = item.isscan !== 'Y' ? 'OK' : ''
+ })
+ if (centerContent.every(r => r.isOK === 'OK')) {
+ resultValue = 'OK'
+ }
+ if (centerContent.some(r => r.isOK === 'NG')) {
+ resultValue = 'NG'
+ }
+ if (centerContent.some(r => r.isOK === '')) {
+ resultValue = ''
+ }
+
+ this.$forceUpdate()
+ }
+ })
+ },
+ resultClick(val) {
+ resultValue = val
+ this.$forceUpdate()
+ },
+ // 鎵弿鐐规宸ヤ綅鎵弿
+ topScanClick() {
+ createWithoutTitle('../../components/barcode_scan.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ // 鐐规椤圭洰鍐呭鎵弿
+ centerScanClick(code) {
+ bwcode = code
+ createWithoutTitle('../../components/barcode_scan2.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ // 閮ㄤ綅姝e父 寮傚父鎸夐挳鐐瑰嚮
+ bwClick(item, val) {
+ item.isOK = val
+ if (centerContent.every(item => item.isOK !== '')) {
+ if (centerContent.every(item => item.isOK === 'OK')) {
+ resultValue = 'OK'
+ } else {
+ resultValue = 'NG'
+ }
+ }
+ this.$forceUpdate() //寮哄埗瑙嗗浘鏇存柊
+ },
+ onClickleft() {
+ history.back()
+ },
+ onClickRight() {
+ this.overlayShow = true
+ },
+ onSelect(action) {
+ if(action.text==='鎿嶄綔鎸囧'){
+ topPopoverClick('鎿嶄綔鎸囧')
+ }else if(action.text==='鎴愬搧杩芥函'){
+ topPopoverClick('鎴愬搧杩芥函')
+ }else if(action.text==='閫�鍑虹櫥褰�'){
+ topPopoverClick('閫�鍑虹櫥褰�')
+ }
+ this.overlayShow = false
+ },
+ }
+ })
+ </script>
+ <style type="text/css">
+ @import url('../../css/global.css');
+
+ body {
+ background-color: #fff;
+ }
+
+ .body {
+ min-height: 600px;
+ background-color: grey;
+ margin-top: 0px;
+ background-color: #fff;
+ position: relative;
+ }
+
+ .van-nav-bar__content {
+ background-color: #2651d8;
+ height: 44px;
+ }
+
+ .van-nav-bar__title {
+ color: #fff;
+ letter-spacing: 2px;
+ }
+
+ .van-nav-bar__arrow {
+ color: #fff !important;
+ }
+
+ .createElementDiv {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 10px;
+ margin-left: 20px;
+ }
+
+ .vanFieldInput {
+ height: 36px;
+ line-height: 36px;
+ align-items: center;
+ /* width: 200px; */
+
+ padding: 0;
+ padding-left: 10px;
+ /* border-radius: 5px; */
+ margin: 5px 0;
+ /* background-color: #fff; */
+ }
+
+ .buttonSmall {
+ /* border-radius: 5px; */
+ }
+
+ .vanButtonInfo {
+ width: 100%;
+ letter-spacing: 2px;
+ height: 50px;
+ font-size: 18px;
+ /* margin-left: 0; */
+
+ }
+ </style>
+</html>
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html
index 222596e..42f4610 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/sbwx.html
@@ -6,8 +6,6 @@
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<title>鏂板嚡杩埗閫犱簯骞冲彴</title>
- <!-- 寮曞叆鍍忕礌杞崲 px->rpx -->
- <!-- <script src="../../js/rpx4html.js"></script> -->
<!-- 寮曞叆鏍峰紡鏂囦欢 -->
<link rel="stylesheet" href="../../css/vant.css" />
@@ -19,10 +17,75 @@
<script type="text/javascript" src="../../js/axios.min.js"></script>
<script type="text/javascript" src="../../js/http.js"></script>
+ <script type="text/javascript" src="../../js/common.js"></script>
- <link rel="stylesheet" href="../css/global.css" type="text/css" charset="utf-8" />
+ <script type="text/javascript" src="../../js/global.js"></script>
+ <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
+
+ <script type="text/javascript">
+ var topContent = [
+
+ // {
+ // code: 'SB003',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ // {
+ // code: 'SB001',
+ // name: '榻胯疆绠辩粍',
+ // wksp_code: "CJ002",
+ // wksp_name: '瑁呴厤杞﹂棿',
+ // eqpchkmain_code: "djbz002"
+ // },
+ ];
+
+
+
+
+ let radioValue = '' //鍗曢�夋閫変腑鐨勯」
+
+
+ // 鎵弿鐐规宸ヤ綅杩斿洖鏃舵墽琛屾柟娉�
+ function scaned(r) {
+ // let flag = false
+ // topContent.forEach((item, index) => {
+ // if (item.code === r) {
+ // flag = true
+ // }
+ // })
+ // if (flag) {
+ // vant.Notify({
+ // type: 'danger',
+ // message: '姝ゆ潯鐮佸凡鎵弿锛屽凡鍦ㄥ垪琛ㄤ腑锛�'
+ // });
+ // } else {
+ // get('AppDeviceManage/CheckScanDeviceQrCodeData', {
+ // eqpcode: r
+ // }).then(res => {
+ // if (res.code === '200' && res.data[0].eqpchkmain_code !== null) {
+ // topContent.unshift(res.data[0])
+ // topContentClcik(topContent[0].code)
+ // }
+
+ // if (res.code === '200' && res.data[0].eqpchkmain_code === null) {
+ // vant.Notify({
+ // type: 'danger',
+ // message: '褰撳墠璁惧鏈缃偣妫�鏍囧噯缁戝畾鐐规椤圭洰锛�'
+ // });
+ // }
+ // })
+ // }
+ }
+
+ function topContentClcik(code) {
+
+ }
+ </script>
</head>
+ <!-- <body onload="loadNodes()"> -->
<body>
<div id="app">
@@ -30,7 +93,7 @@
<van-nav-bar title="璁惧缁翠慨" @click-right="onClickRight" left-arrow @click-left="onClickleft">
<template #right>
- <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
+ <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
trigger="click" :actions="actions" @select="onSelect">
<template #reference>
<van-icon name="bars" size='20' color='#fff' />
@@ -39,8 +102,152 @@
</template>
</van-nav-bar>
- </div>
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿缁翠慨宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;" @click="topContentClcik(item.code)">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div id="contentRight">
+ <van-radio-group v-model="radioValue" style="padding-right: 12px;">
+ <van-radio checked-color='red' icon-size="18px"
+ style="height: 63px;margin-bottom: 10px;" v-for="item in topContent"
+ :key="item.code" :name="item.code"></van-radio>
+ </van-radio-group>
+ </div>
+ </div>
+ </div>
+
+ <div class="head"
+ :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+ style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;"
+ :style="{marginTop:topContent.length===0?'78px':'0'}">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏁呴殰鎻忚堪
+ </div>
+ </div>
+ </div>
+
+
+
+ <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
+ <van-field v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ </div>
+ <div style="width: 96%;margin: auto;margin-top: 10px;">
+ <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
+ :after-read="afterRead" multiple :max-count="3" />
+ </div>
+
+ </div>
+
+
+ <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鍋滄満缁翠慨
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <div class="flex_center" style="width: 100%;display: flex;justify-content: space-around;">
+ <van-button class="buttonSmall" size="small" :plain="isStop!=='Y'"
+ style="margin-right: 10px;" @click="isStopClick('Y')" type="primary">
+ 鏄�</van-button>
+ <van-button class="buttonSmall" size="small" :plain="isStop!=='N'"
+ @click="isStopClick('N')" type="danger">鍚�</van-button>
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+
+ <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 缁翠慨鍐呭
+ </div>
+ </div>
+ </div>
+
+ <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
+ <van-field v-model="messageContent" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ </div>
+ </div>
+
+
+ <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 70px;overflow-y: ;">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏇存崲澶囦欢
+ </div>
+ </div>
+ </div>
+
+
+
+ <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
+ <van-field v-model="messageDescr2" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ </div>
+ <div style="width: 96%;margin: auto;margin-top: 10px;">
+ <van-uploader :before-read="beforeRead" v-model="fileList2" :after-read="afterRead2" multiple
+ :max-count="3" />
+ </div>
+
+ </div>
+
+
+
+
+ <div class="footer" style="min-height:50px;">
+ <div
+ style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
+ <van-button class="vanButtonInfo" @click="submit" type="info">
+ 纭鎻愪氦</van-button>
+ </div>
+ </div>
+
+
+
+ </div>
<van-overlay :show="overlayShow" @click="overlayShow=false" />
@@ -64,40 +271,145 @@
icon: 'revoke',
text: '閫�鍑虹櫥褰�'
}],
-
+ topContent2: topContent,
+ messageDescr: '',
+ fileList: [
+ // {
+ // url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
+ // },
+ // Uploader 鏍规嵁鏂囦欢鍚庣紑鏉ュ垽鏂槸鍚︿负鍥剧墖鏂囦欢
+ // 濡傛灉鍥剧墖 URL 涓笉鍖呭惈绫诲瀷淇℃伅锛屽彲浠ユ坊鍔� isImage 鏍囪鏉ュ0鏄�
+ // {
+ // url: 'https://img01.yzcdn.cn/vant/leaf.jpg'
+ // },
+ ],
+ isStop: 'Y',
+ messageContent: '',
+ messageDescr2: '',
+ fileList2: [],
+ photoList: [],
}
},
- created() {
+ watch: {
+ 'topContent2.length': {
+ handler(newValue, oldValue) {
+ if (newValue !== oldValue) {
+ // this.topContent2 = topContent
+ // this.$forceUpdate()
+ if (topContent[0] && topContent[0].code) {
+ this.$forceUpdate()
+ this.topContentClcik(topContent[0].code)
+ }
+ }
+ },
+ deep: true,
+ immediate: true,
+ },
},
- mounted() {
-
- },
+ created() {},
+ mounted() {},
methods: {
- onClickleft(){
+ afterRead2(file) {
+
+ },
+ isStopClick(val) {
+ this.isStop = val
+ this.$forceUpdate()
+ },
+ onOversize(file) {
+ console.log(file, 1);
+ this.$toast("鏂囦欢澶у皬涓嶈兘瓒呰繃5MB");
+ },
+ //鏍¢獙鍥剧墖鐨勬牸寮�
+ beforeRead(file) {
+ if (!/(jpg|jpeg|png|JPG|PNG)/i.test(file.type)) {
+ this.$toast("璇蜂笂浼犳纭牸寮忕殑鍥剧墖");
+ return false;
+ }
+ if (file.size > 100 * 1024 * 1024) {
+ this.$toast('鍥剧墖澶у皬涓嶈兘瓒呰繃 100MB');
+ return false;
+ }
+ return true;
+ },
+ afterRead(file) {
+ // 姝ゆ椂鍙互鑷灏嗘枃浠朵笂浼犺嚦鏈嶅姟鍣�
+
+ //鍒涘缓FormData瀵硅薄銆備笂浼犲浘鐗囬渶瑕佽浆鎹簩杩涘埗锛岃繖閲岃鐢ㄥ埌FormData
+ let forms = new FormData();
+ //"file"琛ㄧず缁欏悗鍙颁紶鐨勫睘鎬у悕瀛�
+ forms.append("file", file.file); //鑾峰彇涓婁紶鍥剧墖淇℃伅
+
+ this.photoList = forms
+ },
+ submit() {
+ // 寮�鍙戞椂瀵笷ormData瀵硅薄append鏁版嵁鍚庢墦鍗板嚭鏉ヤ负绌哄璞★紝寮�濮嬩互涓烘槸娌℃湁append杩涘幓锛屽疄闄呬笂鏄疐ormData瀵硅薄涓嶈兘鐩存帴鐢╟onsole.log(formData)杩涜鎵撳嵃銆�
+ // 濡傛灉瑕佹墦鍗帮紝鍙互鐢ㄤ笅闈㈢殑鏂瑰紡锛�
+ // for (var key of this.photoList.entries()) {
+ // console.log(key[0] + ', ' + key[1] );
+ // }
+
+ for (let [a, b] of this.photoList.entries()) {
+ console.log(a, ', ', b);
+ }
+ },
+ topScanClick() {
+ createWithoutTitle('../../components/barcode_scan.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ // 杈撳叆妗嗗け鐒﹁Е鍙戜簨浠�
+ vanFieldBlur() {
+ this.$forceUpdate()
+ },
+ topContentClcik(code) {
+
+ },
+ onClickleft() {
history.back()
},
onClickRight() {
this.overlayShow = true
},
onSelect(action) {
- vant.Toast(action.text);
+ if (action.text === '鎿嶄綔鎸囧') {
+ topPopoverClick('鎿嶄綔鎸囧')
+ } else if (action.text === '鎴愬搧杩芥函') {
+ topPopoverClick('鎴愬搧杩芥函')
+ } else if (action.text === '閫�鍑虹櫥褰�') {
+ topPopoverClick('閫�鍑虹櫥褰�')
+ }
this.overlayShow = false
},
}
})
</script>
<style type="text/css">
+ @import url('../../css/global.css');
+
body {
background-color: #fff;
}
.body {
- height: 600px;
+ min-height: 600px;
background-color: grey;
margin-top: 0px;
background-color: #fff;
- position: relative;
+ position: relative;
}
.van-nav-bar__content {
@@ -109,8 +421,43 @@
color: #fff;
letter-spacing: 2px;
}
- .van-nav-bar__arrow{
+
+ .van-nav-bar__arrow {
color: #fff !important;
}
+
+ .createElementDiv {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 10px;
+ margin-left: 20px;
+ }
+
+ .vanFieldInput {
+ height: 36px;
+ line-height: 36px;
+ align-items: center;
+ /* width: 200px; */
+
+ padding: 0;
+ padding-left: 10px;
+ /* border-radius: 5px; */
+ margin: 5px 0;
+ /* background-color: #fff; */
+ }
+
+ .buttonSmall {
+ width: 40px;
+ }
+
+ .vanButtonInfo {
+ width: 100%;
+ letter-spacing: 2px;
+ height: 50px;
+ font-size: 18px;
+ /* margin-left: 0; */
+
+ }
</style>
-</html>
\ No newline at end of file
+</html>
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html
new file mode 100644
index 0000000..760e100
--- /dev/null
+++ b/unpackage/cache/wgt/H5EDA0853/pages/sbgl/wxsq.html
@@ -0,0 +1,300 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+ <meta name="HandheldFriendly" content="true" />
+ <meta name="MobileOptimized" content="320" />
+ <title>鏂板嚡杩埗閫犱簯骞冲彴</title>
+
+ <!-- 寮曞叆鏍峰紡鏂囦欢 -->
+ <link rel="stylesheet" href="../../css/vant.css" />
+ <!-- 寮曞叆 Vue 鍜� Vant 鐨� JS 鏂囦欢 -->
+ <script src="../../js/vue.min.js"></script>
+ <script src="../../js/vant.min.js"></script>
+
+ <script type="text/javascript" src="../../js/jquery-1.6.4.min.js"></script>
+ <script type="text/javascript" src="../../js/axios.min.js"></script>
+ <script type="text/javascript" src="../../js/http.js"></script>
+
+ <script type="text/javascript" src="../../js/common.js"></script>
+
+ <script type="text/javascript" src="../../js/global.js"></script>
+
+ <!-- <link rel="stylesheet" href="../../css/global.css" type="text/css" charset="utf-8" /> -->
+
+ <script type="text/javascript">
+ var topContent = [
+ // {
+ // code: 'SB001',
+ // name: '鐢垫睜缁勪竴绾�',
+ // wksp_code: "CJ002",
+ // wksp_name: '鐢垫睜杞﹂棿',
+ // eapmai_code: "bybz004",
+ // eapmai_name: "鏍囧噯4",
+ // main_cycle: "M",
+ // },
+ ];
+
+ let number = []; // 鍋氭壂鐮佸洖鏉ヨ鍥炬洿鏂扮敤
+
+
+ let dropdownValue = 'V1'; //涓嬫媺榛樿閫変腑鐨勫��
+
+ // 鎵弿缁翠慨宸ヤ綅杩斿洖鏃舵墽琛屾柟娉�
+ function scaned(r) {
+ get('AppDeviceManage/MaintainScanDeviceApplyQrCodeData', {
+ eqpcode: r
+ }).then(res => {
+ topContent = res.data
+ number.push({
+ id: '1'
+ })
+ })
+ }
+ </script>
+ </head>
+ <!-- <body onload="loadNodes()"> -->
+ <body>
+ <div id="app">
+
+ <div class="body">
+
+ <van-nav-bar title="璁惧缁翠慨鐢宠" @click-right="onClickRight" left-arrow @click-left="onClickleft">
+ <template #right>
+ <van-popover style="" placement="bottom-end" :offset="[13,8]" v-model="showPopover"
+ trigger="click" :actions="actions" @select="onSelect">
+ <template #reference>
+ <van-icon name="bars" size='20' color='#fff' />
+ </template>
+ </van-popover>
+ </template>
+ </van-nav-bar>
+
+ <div v-if="topContent.length===0">
+ <div class="sacnBody">
+ <div class="scanImg" @click="topScanClick()"></div>
+ <div class="scanText">鎵弿缁翠慨宸ヤ綅</div>
+ </div>
+ </div>
+
+ <div v-else>
+ <div class="head">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鎵弿缁翠慨宸ヤ綅
+ </div>
+ </div>
+
+ <div style="margin-right: 10px;">
+ <van-icon name="scan" color='red' size='24' @click='topScanClick()' />
+ </div>
+
+ </div>
+
+ <div class="flex_between" style="">
+ <div id="contentLeft" style="width: 100%;margin-top: 10px;">
+ <div id="topContentID" v-for="item in topContent" :key="item.code"
+ style="margin-bottom: 10px;margin-left: 20px;">
+ <div style="display: flex;align-items: center;">
+ <div>
+ <div>宸ヤ綅缂栫爜锛�</div>
+ <div>宸ヤ綅鍚嶇О锛�</div>
+ <div>鐢熶骇杞﹂棿锛�</div>
+ </div>
+ <div>
+ <div>{{item.code}}</div>
+ <div>{{item.name}}</div>
+ <div>{{item.wksp_name}}</div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+
+ </div>
+ </div>
+
+ <div class="head" :style="{marginTop:topContent.length===0?'100px':'0'}"
+ style="margin-bottom: 10px;padding-bottom: 10px;">
+ <div class="head_block">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏁呴殰鏉ユ簮
+ </div>
+ </div>
+ <div style="margin-right: 10px;">
+ <van-button @click="sheetFlag=true" type="info" style="width:100px;height: 30px;">
+ {{dropdownValue==='V1'?'璁惧鐐规':'璁惧鐐规2'}}
+ </van-button>
+ <van-action-sheet v-model="sheetFlag" :actions="actionsSheet" @select="onSelectSheet" />
+ </div>
+ </div>
+
+ </div>
+
+ <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;">
+ <div class="head_block" style="margin-bottom:10px;">
+ <div class="head_left">
+ <div class="head_bar"></div>
+ <div class="head_title">
+ 鏁呴殰鎻忚堪
+ </div>
+ </div>
+ </div>
+
+
+
+ <div style="display:flex;flex-direction: column;width: 96%;margin: auto;">
+ <van-field class="vanFieldInputArea" v-model="messageDescr" rows="2" autosize type="textarea" placeholder="璇疯緭鍏�" />
+ </div>
+ <div style="width: 96%;margin: auto;margin-top: 10px;">
+ <van-uploader @oversize="onOversize" :before-read="beforeRead" v-model="fileList"
+ :after-read="afterRead" multiple :max-count="3" />
+ </div>
+
+ </div>
+
+ <div class="footer" style="min-height:50px;">
+ <div
+ style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
+ <van-button class="vanButtonInfo" :disabled="messageDescr.trim().toString().length===0"
+ @click="submit" type="info">
+ 纭鎻愪氦</van-button>
+ </div>
+ </div>
+
+ </div>
+
+
+
+ </div>
+
+ <van-overlay :show="overlayShow" @click="overlayShow=false" />
+
+
+ </div>
+ </body>
+ <script>
+ var app = new Vue({
+ el: '#app',
+ data: function() {
+ return {
+ overlayShow: false,
+ showPopover: false,
+ actions: [{
+ icon: 'description',
+ text: '鎿嶄綔鎸囧'
+ }, {
+ icon: 'award-o',
+ text: '鎴愬搧杩芥函'
+ }, {
+ icon: 'revoke',
+ text: '閫�鍑虹櫥褰�'
+ }],
+ actionsSheet: [{
+ code: 'V1',
+ name: '璁惧鐐规'
+ }, {
+ code: 'V2',
+ name: '璁惧鐐规2'
+ }],
+ number2: number,
+ messageDescr: '',
+ fileList: [],
+ sheetFlag: false,
+
+ }
+ },
+ watch: {
+ 'number2.length': {
+ handler(newValue, oldValue) {
+
+ console.log(111)
+ this.$forceUpdate()
+
+ },
+ deep: true,
+ immediate: true,
+ },
+ },
+ created() {},
+ mounted() {},
+ methods: {
+ onOversize(file) {
+ this.$toast("鏂囦欢澶у皬涓嶈兘瓒呰繃5MB");
+ },
+ afterRead(file) {
+
+ },
+ //鏍¢獙鍥剧墖鐨勬牸寮�
+ beforeRead(file) {
+ if (!/(jpg|jpeg|png|JPG|PNG)/i.test(file.type)) {
+ this.$toast("璇蜂笂浼犳纭牸寮忕殑鍥剧墖");
+ return false;
+ }
+ if (file.size > 100 * 1024 * 1024) {
+ this.$toast('鍥剧墖澶у皬涓嶈兘瓒呰繃 100MB');
+ return false;
+ }
+ return true;
+ },
+ onSelectSheet(val) {
+ dropdownValue = val.code
+ this.sheetFlag = false
+ this.$forceUpdate()
+
+ },
+ //鎻愪氦
+ submit() {
+
+ },
+ // 杈撳叆妗嗗け鐒﹁Е鍙戜簨浠�
+ vanFieldBlur() {
+ this.$forceUpdate()
+ },
+ // 鎵弿淇濆吇宸ヤ綅鎵弿
+ topScanClick() {
+ createWithoutTitle('../../components/barcode_scan.html', {
+ titleNView: {
+ type: 'float',
+ backgroundColor: 'rgba(215,75,40,0.3)',
+ titleText: '鎵竴鎵�',
+ titleColor: '#FFFFFF',
+ autoBackButton: true,
+ buttons: [{
+ fontSrc: '_www/helloh5.ttf',
+ text: '\ue302',
+ fontSize: '18px',
+ onclick: 'javascript:scanPicture()'
+ }]
+ }
+ });
+ },
+ onClickleft() {
+ history.back()
+ },
+ onClickRight() {
+ this.overlayShow = true
+ },
+ onSelect(action) {
+ if (action.text === '鎿嶄綔鎸囧') {
+ topPopoverClick('鎿嶄綔鎸囧')
+ } else if (action.text === '鎴愬搧杩芥函') {
+ topPopoverClick('鎴愬搧杩芥函')
+ } else if (action.text === '閫�鍑虹櫥褰�') {
+ topPopoverClick('閫�鍑虹櫥褰�')
+ }
+ this.overlayShow = false
+ },
+ }
+ })
+ </script>
+ <style type="text/css">
+ @import url('../../css/global.css');
+ </style>
+</html>
diff --git a/unpackage/cache/wgt/H5EDA0853/pages/xtsy/index.html b/unpackage/cache/wgt/H5EDA0853/pages/xtsy/index.html
index 453a6f7..001b767 100644
--- a/unpackage/cache/wgt/H5EDA0853/pages/xtsy/index.html
+++ b/unpackage/cache/wgt/H5EDA0853/pages/xtsy/index.html
@@ -31,8 +31,8 @@
<van-nav-bar title="宸ヤ綔鍙�" @click-right="onClickRight">
<template #right>
- <van-popover placement="bottom-end" :offset="[13,8]" v-model="showPopover"
- trigger="click" :actions="actions" @select="onSelect">
+ <van-popover placement="bottom-end" :offset="[13,8]" v-model="showPopover" trigger="click"
+ :actions="actions" @select="onSelect">
<template #reference>
<van-icon name="bars" size='20' color='#fff' />
</template>
@@ -137,9 +137,12 @@
url = '../sbgl/dqby.html'
break;
case '2042':
- url = '../sbgl/sbwx.html'
+ url = '../sbgl/wxsq.html'
break;
case '2043':
+ url = '../sbgl/sbwx.html'
+ break;
+ case '2044':
url = '../sbgl/wxyz.html'
break;
}
@@ -151,12 +154,12 @@
},
// 椤堕儴鍙冲浘鏍囦笅鎷夐�夋嫨
onSelect(action) {
- if(action.text==='鎿嶄綔鎸囧'){
+ if (action.text === '鎿嶄綔鎸囧') {
topPopoverClick('鎿嶄綔鎸囧')
- }else if(action.text==='鎴愬搧杩芥函'){
+ } else if (action.text === '鎴愬搧杩芥函') {
topPopoverClick('鎴愬搧杩芥函')
- }else if(action.text==='閫�鍑虹櫥褰�'){
- topPopoverClick('閫�鍑虹櫥褰�')
+ } else if (action.text === '閫�鍑虹櫥褰�') {
+ topPopoverClick('閫�鍑虹櫥褰�')
}
this.overlayShow = false
},
diff --git a/unpackage/cache/wgt/H5EDA0853/static/images/scan.png b/unpackage/cache/wgt/H5EDA0853/static/images/scan.png
new file mode 100644
index 0000000..9986ba3
--- /dev/null
+++ b/unpackage/cache/wgt/H5EDA0853/static/images/scan.png
Binary files differ
diff --git a/unpackage/release/apk/H5EDA0853__20220919094027.apk b/unpackage/release/apk/H5EDA0853__20220919094027.apk
deleted file mode 100644
index 6decbc0..0000000
--- a/unpackage/release/apk/H5EDA0853__20220919094027.apk
+++ /dev/null
Binary files differ
diff --git a/unpackage/release/apk/H5EDA0853__20220919095827.apk b/unpackage/release/apk/H5EDA0853__20220919095827.apk
deleted file mode 100644
index e981d1b..0000000
--- a/unpackage/release/apk/H5EDA0853__20220919095827.apk
+++ /dev/null
Binary files differ
diff --git a/unpackage/release/apk/H5EDA0853__20220919095410.apk b/unpackage/release/apk/H5EDA0853__20220929150858.apk
similarity index 97%
rename from unpackage/release/apk/H5EDA0853__20220919095410.apk
rename to unpackage/release/apk/H5EDA0853__20220929150858.apk
index 7f12c4f..6b5e706 100644
--- a/unpackage/release/apk/H5EDA0853__20220919095410.apk
+++ b/unpackage/release/apk/H5EDA0853__20220929150858.apk
Binary files differ
--
Gitblit v1.9.3