Browse Source

样品大屏修改

cyy 3 năm trước cách đây
mục cha
commit
6c4c3bad39

+ 5 - 1
.vscode/settings.json

@@ -1,3 +1,7 @@
 {
-    "workbench.colorCustomizations": {}
+    "workbench.colorCustomizations": {
+        "activityBar.background": "#272D3D",
+        "titleBar.activeBackground": "#373F55",
+        "titleBar.activeForeground": "#FAFAFC"
+    }
 }

+ 17 - 1
src/views/demo/yangPin/yangPinShuJu/headerContent.vue

@@ -25,6 +25,10 @@
         <div>留样样品数量</div>
         <div class="number">{{RetentionNumber}}个</div>
       </div>
+      <div class="retention">
+        <div>样品完成检测数量</div>
+        <div class="number">{{SuccessNumber}}个</div>
+      </div>
       <!-- <button @click="getTime">时间</button> -->
     
   </div>
@@ -43,7 +47,8 @@ export default {
       ReceiveNumber:0,
       StagingNumber:0,
       UnqualifiedNumber:0,
-      RetentionNumber:0
+      RetentionNumber:0,
+      SuccessNumber:0
     }
   },
   created(){
@@ -52,6 +57,7 @@ export default {
     this.getNotReceivedData()
     this.getReceivedData()
     this.getUnqualifiedData()
+    this.getSuccessData()
     this.getStayData()
     this.getStagingNumberData()
     //拿到数据后先获取当前时间,把时间传给父组件
@@ -63,6 +69,7 @@ export default {
     this.timer = setInterval(() =>{
       this.getEntrustedTotalData()
       this.getNotReceivedData()
+      this.getSuccessData()
       this.getReceivedData()
       this.getUnqualifiedData()
       this.getStayData()
@@ -147,6 +154,15 @@ export default {
       let data = response.variables.data
       this.RetentionNumber = data.length 
 
+    })
+     },
+     //样品完成检测数量
+     getSuccessData(){
+      let sql6= "select COUNT(t_mjypdjb.id_) as num from t_mjypdjb LEFT JOIN t_mjjcbg on t_mjypdjb.yang_pin_bian_hao = t_mjjcbg.yang_pin_bian_hao where t_mjjcbg.zhuang_tai_ = '报告待发放'" 
+      curdPost('sql',sql6).then(response => { 
+      let data = response.variables.data
+      this.SuccessNumber = data[0].num
+
     })
      }
 

+ 2 - 2
src/views/demo/yangPin/yangPinShuJu/index.vue

@@ -46,7 +46,7 @@
         <div class="mainContent">
           <div class="entrust">
             <div class="Number" ref="Number_refs"><entrustNumber/> </div>
-            <div class="Type" ><entrustType/></div>
+            <!-- <div class="Type" ><entrustType/></div> -->
           </div>
           <div class="detection">
             <div class="monthlyS" ref="MonthlyStatus_refs"><monthlyStatus/></div>
@@ -169,7 +169,7 @@ export default {
         justify-content:space-between;
         // border: 1px solid rgb(17, 110, 197);
           .Number{
-            width: 62%;
+            width: 100%;
             height: 100%;
             display: flex;
             justify-content: center;