Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
e130dbbba7

+ 12 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -303,12 +303,22 @@
303 303
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
304 304
             </template>
305 305
           </el-table-column>
306
+          <el-table-column
307
+            prop="displacement_quantity"
308
+            align="center"
309
+            label="置换量(ml/h)"
310
+            width="100"
311
+            v-if=" isShow('置换量') && (template_id == 43)" >
312
+            <template slot-scope="scope">
313
+              {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
314
+            </template>
315
+          </el-table-column>
306 316
           <el-table-column
307 317
             prop="displacement_quantity"
308 318
             align="center"
309 319
             label="置换量(ml)"
310 320
             width="100"
311
-            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
321
+            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191 && template_id!=43) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
312 322
             <template slot-scope="scope">
313 323
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
314 324
             </template>
@@ -319,7 +329,7 @@
319 329
             align="center"
320 330
             label="置换量(L)"
321 331
             width="100"
322
-            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919 || org_id == 10191) && template_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" >
332
+            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919 || org_id == 10191) && template_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29&& template_id != 43)" >
323 333
             <template slot-scope="scope">
324 334
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
325 335
             </template>

+ 1 - 0
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -22,6 +22,7 @@
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
24 24
           <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29" width="92px" > 置换率(L/h)  </th>
25
+          <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
25 26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px"  > 置换量(ml)  </th>
26 27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
27 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>

+ 5 - 0
src/xt_pages/qcd/basicInformationAnalysis.vue View File

@@ -249,6 +249,11 @@
249 249
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
250 250
                   </span>
251 251
 
252
+                 <span v-if="item.mode_id == 'CRRT'">
253
+                      <p>CRRT:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
254
+                      <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
255
+                  </span>
256
+
252 257
                  <span v-if="item.mode_id == '未知'">
253 258
                       <p>未知:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
254 259
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>

+ 43 - 25
src/xt_pages/workforce/appointment.vue View File

@@ -546,7 +546,7 @@
546 546
           }
547 547
           
548 548
           if(this.export_type == 1){
549
-            console.log("进来了吗22323323223",this.tableList,this.newDay[0])
549
+      
550 550
             
551 551
             //  const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
552 552
             //  const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
@@ -586,7 +586,7 @@
586 586
            
587 587
             
588 588
             const filename = '排班模版'
589
-            console.log("multiHeaders", this.$store.getters.xt_user.org.id,)
589
+     
590 590
 
591 591
             if(this.$store.getters.xt_user.org.id == 10234){
592 592
               excel.export_json_to_excel1({
@@ -702,33 +702,32 @@
702 702
         if (header.length == 65) {
703 703
          
704 704
           var isHas_1 = headers.includes('区号')
705
-          console.log("1"+isHas_1)
705
+ 
706 706
           var isHas_2 = headers.includes('机号')
707
-          console.log("2"+isHas_2)
708
-
707
+      
709 708
 
710 709
           var isHas_3 = headers.includes('周一'+"("+this.days[0]+")")
711
-          console.log("3"+isHas_3)
710
+      
712 711
 
713 712
 
714 713
           var isHas_4 = headers.includes('')
715
-          console.log("4"+isHas_4)
714
+       
716 715
 
717 716
 
718 717
           var isHas_5 = headers.includes('_1')
719
-          console.log("5"+isHas_5)
718
+        
720 719
 
721 720
           var isHas_6 = headers.includes('周二'+"("+this.days[1]+")")
722
-          console.log("6"+isHas_6)
721
+   
723 722
 
724 723
           var isHas_7 = headers.includes('_2')
725
-          console.log("7"+isHas_7)
724
+
726 725
 
727 726
           var isHas_8 = headers.includes('_3')
728
-          console.log("8"+isHas_8)
727
+
729 728
 
730 729
           var isHas_9 = headers.includes('周三'+"("+this.days[2]+")")
731
-          console.log("9"+isHas_9)
730
+
732 731
 
733 732
           var isHas_10 = headers.includes('_4')
734 733
           console.log("10"+isHas_10)
@@ -1246,14 +1245,34 @@
1246 1245
 
1247 1246
               }
1248 1247
             });
1248
+            console.log("data232332233223",datas)
1249
+            console.log("failed_datas33332332",failed_datas)
1250
+            var newSchedule = datas.sort((a,b)=>{ return a.schedule_date-b.schedule_date})
1251
+            var start_time = ""
1252
+            var type = 0
1253
+            if(failed_datas.length> 0){
1254
+              var oldSchedule = failed_datas.sort((a,b)=>{ return a.schedule_date-b.schedule_date})
1255
+              start_time = oldSchedule[0].schedule_date
1256
+              type = 0 
1257
+            }
1249 1258
 
1250
-
1259
+            if(failed_datas.length== 0){
1260
+              start_time = newSchedule[0].schedule_date   
1261
+              type = 1
1262
+            }
1263
+           
1264
+            console.log("newSchedule2323223",newSchedule)
1265
+            console.log("oldSchedule344433434",oldSchedule)
1266
+          
1267
+            var length = newSchedule.length - 1
1251 1268
             let params = {
1252 1269
               schedule: datas,
1253
-              failed_schedule: failed_datas
1254
-
1270
+              failed_schedule: failed_datas,
1271
+              start_time:start_time,
1272
+              end_time:newSchedule[length].schedule_date,
1273
+              delete_type:type,
1255 1274
             }
1256
-
1275
+            console.log("param2323233223",params)
1257 1276
             //今天的时间
1258 1277
             var day2 = new Date()
1259 1278
             day2.setTime(day2.getTime())
@@ -1261,8 +1280,6 @@
1261 1280
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
1262 1281
             var date = day2.getFullYear() + '-' + month + '-' + day
1263 1282
 
1264
-            console.log("params",params)
1265
-            console.log("datae",date)
1266 1283
             exportSchedule(params, date).then(response => {
1267 1284
               if (response.data.state == 0) {
1268 1285
                 return false
@@ -1275,6 +1292,9 @@
1275 1292
         }
1276 1293
 
1277 1294
       },
1295
+      sortData(a, b) {
1296
+        return a.schedule_date - b.schedule_date
1297
+      },
1278 1298
       getInitDate() {
1279 1299
         initDate().then(response => {
1280 1300
           if (response.data.state == 0) {
@@ -2685,7 +2705,7 @@
2685 2705
        changeWeek(val){
2686 2706
        
2687 2707
          var start = this.getTimestamp(val) - 57600
2688
-         console.log("val23232332323232",start)
2708
+        
2689 2709
          this.start_time = this.getTime(start)
2690 2710
          
2691 2711
          this.newDay.push(this.start_time)  
@@ -2794,16 +2814,14 @@
2794 2814
                 let weekOfday = parseInt(moment().format('d')) 
2795 2815
                 start_time =  this.getTimestamp(moment().subtract(weekOfday + 6, 'days').format('YYYY-MM-DD')) -28800
2796 2816
                 end_time =  this.getTimestamp(moment().subtract(weekOfday, 'days').format('YYYY-MM-DD')) -28800
2797
-                console.log("start",start_time)
2798
-                console.log("end",end_time)
2817
+            
2799 2818
              }
2800 2819
             
2801 2820
             //本周
2802 2821
              if(this.form.lastweek == "2"){
2803 2822
                 start_time = this.getTimestamp(this.weekDayArr[0])
2804 2823
                 end_time = this.getTimestamp(this.weekDayArr[6])
2805
-                console.log("start",start_time)
2806
-                console.log("end",end_time)
2824
+              
2807 2825
              }
2808 2826
 
2809 2827
             var label = ""
@@ -2823,7 +2841,7 @@
2823 2841
               copy_endtime:copy_endtime,
2824 2842
             }
2825 2843
          
2826
-           console.log("param22222",params)
2844
+   
2827 2845
            
2828 2846
            this.$refs[formName].validate(valid=>{
2829 2847
               if(valid){
@@ -2843,7 +2861,7 @@
2843 2861
           getScheduleTemplate().then(response=>{
2844 2862
              if(response.data.state == 1){
2845 2863
                 var template = response.data.data.template
2846
-                console.log("模版",template)
2864
+                
2847 2865
                 this.templateObj = template
2848 2866
              }
2849 2867
           })