App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-29 3ff55c0f9af7d708a4ed6b3b7adea207b46e3cea
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">正常
                           </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">正常</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>