Jelajahi Sumber

冻存架存储状态获取

shihang 6 tahun lalu
induk
melakukan
9a19710ec2

+ 18 - 18
src/dashoo.cn/frontend_web/src/pages/equipment/_opera/manage_new.vue

@@ -45,7 +45,7 @@
       <div style="text-align:center;margin-top:-10px;margin-bottom:3px">
         <el-row>
           <el-col :span="4">
-            <el-popover trigger="hover" width="600" placement="center">
+            <el-popover trigger="hover" width="540" placement="center">
               <div>
                 <i class="icon icon-stop2" style="color:#EAEAEA"></i>无冻存盒
                 <i class="icon icon-stop2" style="color:#13CE66"></i>空冻存盒
@@ -56,10 +56,10 @@
                 <i class="icon icon-stop2" style="color:#000080"></i>容量(75%-100%)
                 <el-row v-show="showtsyedanguan">
                   <el-row :gutter="20">
-                    <el-col :span="18">
+                    <el-col :span="20">
                       <canvas id="canvascryobiobank97K" width="450" height="450"></canvas>
                     </el-col>
-                    <el-col :span="6">
+                    <el-col :span="4">
                       <div class="ulbgcolor" v-for="g in Math.ceil(selectdtedanguan.ColumnNum / 21)" :key="g"
                         style="width:50px;float:left;margin-left:1px">
                         <div v-for="b in selectdtedanguan.ColumnNum" :key="b">
@@ -86,7 +86,7 @@
                 </el-row>
                 <el-row v-show="showcgshebei">
                   <el-row :gutter="20">
-                    <el-col :span="18">
+                    <el-col :span="20">
                       <table cellspacing="0" cellpadding="0">
                         <thead>
                           <th></th>
@@ -122,20 +122,20 @@
                         <img :src="fridgebottomimg" class="fridge">
                       </div>
                     </el-col>
-                    <el-col :span="6" style="margin-top: 20px">
-                      <div class="ulbgcolor" v-for="g in shelfs.ColumnNum" :key="g" style="width:150px;float:left;margin-left:20px">
+                    <el-col :span="4" style="margin-top: 20px">
+                      <div class="ulbgcolor" v-for="g in shelfs.ColumnNum" :key="g" style="width:150px;float:left;margin-left:1px">
                         <div class="hoverdiv" v-bind:style="{ 
                           backgroundColor: xbox == g && ybox == ybox && 
-                          xshelf == shelfs.YStation && yshelf == shelfs.XStation ? COLORARR[2] : 
-                          (shelfs['A'+g] == -2 ? COLORARR[0] : 
-                          (shelfs['A'+g] == -1 ? COLORARR[1] : 
-                          (shelfs['A'+g] > 0 && 
-                          shelfs['A'+g] <= 25 ? COLORARR[3] : 
-                          (shelfs['A'+g] > 25 && 
-                          shelfs['A'+g] <= 50 ? COLORARR[4] : 
-                          (shelfs['A'+g] > 50 && 
-                          shelfs['A'+g] <= 75 ? COLORARR[5] : 
-                          (shelfs['A'+g] > 75 ? COLORARR[6] : 
+                          xshelf == shelfs.YStation && yshelf == shelfs.XStation ? COLORARR[2] :                          
+                          (shelfs[numtoengs[ybox-1]+g] == -2 ? COLORARR[0] : 
+                          (shelfs[numtoengs[ybox-1]+g] == -1 ? COLORARR[1] : 
+                          (shelfs[numtoengs[ybox-1]+g] > 0 && 
+                          shelfs[numtoengs[ybox-1]+g] <= 25 ? COLORARR[3] : 
+                          (shelfs[numtoengs[ybox-1]+g] > 25 && 
+                          shelfs[numtoengs[ybox-1]+g] <= 50 ? COLORARR[4] : 
+                          (shelfs[numtoengs[ybox-1]+g] > 50 && 
+                          shelfs[numtoengs[ybox-1]+g] <= 75 ? COLORARR[5] : 
+                          (shelfs[numtoengs[ybox-1]+g] > 75 ? COLORARR[6] : 
                           COLORARR[7])))))) }" @click="handleclk(g-1, ybox-1, shelfs.YStation, shelfs.XStation)"
                           style="margin: 1px;width:50px; height:20px;">
                         </div>
@@ -2519,6 +2519,7 @@
         this.xshelf = xshelf
         this.yshelf = yshelf
         this.ybox = ybox + 1
+        this.xbox = -1
       },
 
       uploadrequest(option) {
@@ -2591,7 +2592,7 @@
 
       handleclk(xbox, ybox, xshelf, yshelf) {
         // 清空状态
-        this.clearSampleForm()
+        //this.clearSampleForm()
         let _this = this
         var inputstr = _this.equipid + ',' + yshelf + ',' + xshelf + ',' + (xbox + 1) + ',' + (ybox + 1)
         _this.$axios.get('/shelfset/boxdraw/' + inputstr, {})
@@ -3023,7 +3024,6 @@
                       type: 'success',
                       message: res.data.message
                     })
-                    console.log("-0-0-0-0-0-0-0-0-0-0-0", res.data.code.item)
                     _this.getSampleInfoById(res.data.code.item.Id)
                     // _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
                     // 清空上传附件