Browse Source

hah阿凡达

28169 2 months ago
parent
commit
3e3013a869

+ 2 - 2
src/api/advice.js View File

336
   })
336
   })
337
 }
337
 }
338
 
338
 
339
-export function getPrintInfo(data, advice_type, stop_type) {
339
+export function getPrintInfo(data, advice_type, stop_type,his_str) {
340
   console.log('data', data)
340
   console.log('data', data)
341
   console.log('advice_tuype23232', advice_type)
341
   console.log('advice_tuype23232', advice_type)
342
   console.log('stop_type', stop_type)
342
   console.log('stop_type', stop_type)
343
   return request({
343
   return request({
344
-    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
344
+    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type+'&his_str='+his_str,
345
     method: 'post',
345
     method: 'post',
346
     data: data
346
     data: data
347
   })
347
   })

+ 37 - 0
src/api/patient.js View File

1495
     method:"get",
1495
     method:"get",
1496
     params:params
1496
     params:params
1497
   })
1497
   })
1498
+}
1499
+
1500
+export function getPatientCountList(params){
1501
+ 
1502
+  return request({
1503
+    url:"/api/patient/getpatientcount",
1504
+    method:"Get",
1505
+    params:params
1506
+  })
1507
+}
1508
+
1509
+export function deletePatientCount(id,params){
1510
+
1511
+  return request({
1512
+    url:"/api/patient/deletepatientcount?id="+id,
1513
+    method:"get",
1514
+    params:params
1515
+  })
1516
+}
1517
+
1518
+export function checkPatientCount(id,params){
1519
+
1520
+  return request({
1521
+    url:"/api/patient/checkpatientcount?id="+id,
1522
+    method:"get",
1523
+    params:params,
1524
+    
1525
+  })
1526
+}
1527
+
1528
+export function toReturnCheck(id,params){
1529
+
1530
+  return request({
1531
+    url:"/api/patient/returncheck?id="+id,
1532
+    method:"get",
1533
+    params:params
1534
+  })
1498
 }
1535
 }

+ 42 - 42
src/router/modules/charging.js View File

12
     title:'charging',
12
     title:'charging',
13
     icon: 'statistics'
13
     icon: 'statistics'
14
   },
14
   },
15
-  // children: [
16
-  //   {
17
-  //     path: '/dialysis/charging',
18
-  //     component: () => import('@/xt_pages/charging/index'),
19
-  //     name: '计费查询',
20
-  //     meta: {
21
-  //       title: '计费查询',
22
-  //       noCache: true
23
-  //     }
24
-  //   },
25
-  //   {
26
-  //     path: '/dialysis/charging_cz',
27
-  //     component: () => import('@/xt_pages/charging/charging_cz'),
28
-  //     name: '计费充值',
29
-  //     is_menu: false,
30
-  //     hidden: true,
31
-  //     meta: {
32
-  //       title: '计费充值',
33
-  //       noCache: true
34
-  //     }
35
-  //   },
36
-  //   {
37
-  //     path: '/dialysis/chargin_kf',
38
-  //     component: () => import('@/xt_pages/charging/chargin_kf'),
39
-  //     name: '计数扣费',
40
-  //     is_menu: false,
41
-  //     hidden: true,
42
-  //     meta: {
43
-  //       title: '计数扣费',
44
-  //       noCache: true
45
-  //     }
46
-  //   },
47
-  //   {
48
-  //     path: '/dialysis/charging_collect',
49
-  //     component: () => import('@/xt_pages/charging/charging_collect'),
50
-  //     name: '计费汇总',
51
-  //     meta: {
52
-  //       title: '计费汇总',
53
-  //       noCache: true
54
-  //     }
55
-  //   },
56
-  // ]
15
+  children: [
16
+    {
17
+      path: '/dialysis/charging',
18
+      component: () => import('@/xt_pages/charging/index'),
19
+      name: '计费查询',
20
+      meta: {
21
+        title: '计费查询',
22
+        noCache: true
23
+      }
24
+    },
25
+    {
26
+      path: '/dialysis/charging_cz',
27
+      component: () => import('@/xt_pages/charging/charging_cz'),
28
+      name: '计费充值',
29
+      is_menu: false,
30
+      hidden: true,
31
+      meta: {
32
+        title: '计费充值',
33
+        noCache: true
34
+      }
35
+    },
36
+    {
37
+      path: '/dialysis/chargin_kf',
38
+      component: () => import('@/xt_pages/charging/chargin_kf'),
39
+      name: '计数扣费',
40
+      is_menu: false,
41
+      hidden: true,
42
+      meta: {
43
+        title: '计数扣费',
44
+        noCache: true
45
+      }
46
+    },
47
+    {
48
+      path: '/dialysis/charging_collect',
49
+      component: () => import('@/xt_pages/charging/charging_collect'),
50
+      name: '计费汇总',
51
+      meta: {
52
+        title: '计费汇总',
53
+        noCache: true
54
+      }
55
+    },
56
+  ]
57
  
57
  
58
 }
58
 }

+ 52 - 47
src/xt_pages/Pharmacy/DrugDispensing.vue View File

554
       drug_id:0,
554
       drug_id:0,
555
       newArrList:[],
555
       newArrList:[],
556
       baseList:[],
556
       baseList:[],
557
-      textAreaList:[]
557
+      textAreaList:[],
558
+      scan_code:""
558
     };
559
     };
559
   },
560
   },
560
 
561
 
580
     // 追溯码
581
     // 追溯码
581
     getDrugCode(id,DataSources,DrugCode,index){
582
     getDrugCode(id,DataSources,DrugCode,index){
582
       
583
       
583
-      if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
584
+      if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
584
         var params = {
585
         var params = {
585
             drug_id:this.drug_id,
586
             drug_id:this.drug_id,
586
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
587
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
591
             
592
             
592
             var adviceList = response.data.data.adviceList
593
             var adviceList = response.data.data.adviceList
593
 
594
 
595
+           this.scan_code = response.data.data.drug.scan_code
596
+              
594
             var str = ""
597
             var str = ""
595
             if(adviceList!=null && adviceList.length>0){
598
             if(adviceList!=null && adviceList.length>0){
596
               for(let i=0;i<adviceList.length;i++){
599
               for(let i=0;i<adviceList.length;i++){
700
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
703
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
701
 
704
 
702
       
705
       
703
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
706
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
704
           
707
           
705
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
708
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
706
-          // console.log("drugindentification===================",drugindentificaitoncode)
707
-
708
-          var scan_code = this.getDrugScanCode(this.drug_id)
709
-          
710
-          // console.log("scan_code============",scan_code)
711
-
709
+         
712
           var total_one = 0
710
           var total_one = 0
713
           var total_two = 0
711
           var total_two = 0
714
 
712
 
715
-          // console.log("newArr-------------",this.newArrList)
713
+          
716
 
714
 
717
           var arr= []
715
           var arr= []
718
           arr = textarea.split(",")
716
           arr = textarea.split(",")
785
              }
783
              }
786
           }
784
           }
787
 
785
 
788
-
789
-          // console.log("数量1--------------",total_one)
790
-          // console.log("数量2---------------",total_two)
791
-        
792
-          // console.log("scan_code=====",scan_code)
793
-          
794
-          if(scan_code>0){
795
-            if((total_one + total_two)>scan_code){
786
+          console.log("total_one-----------",total_one)
787
+          console.log("total_two-----------",total_two)
788
+   
789
+          if(this.scan_code>0){
790
+            if((total_one + total_two)>this.scan_code){
796
               this.$message.error("扫码次数已经超过限制!")
791
               this.$message.error("扫码次数已经超过限制!")
797
               arr.splice(i_index,1)
792
               arr.splice(i_index,1)
798
             }
793
             }
800
          
795
          
801
          var is_arr = this.hasDuplicates(arr)
796
          var is_arr = this.hasDuplicates(arr)
802
 
797
 
803
-        //  console.log("is_arr-=--------------",is_arr)
798
+       
804
 
799
 
805
         this.textarea = arr.join(",")
800
         this.textarea = arr.join(",")
806
 
801
 
807
         }else{
802
         }else{
808
-          // console.log("textarea22==============",textarea)
803
+          var arr = textarea.split(",");
804
+          
805
+          var lastElement = arr[arr.length - 2];
809
 
806
 
810
-          var newArr = []
811
-          var is_err_check = 0
812
-          var i_index = ""
813
-          var arr = textarea.split(",")
814
-          if(arr!=null && arr.length>0){
807
+          if(lastElement.length!=20){
808
+            this.$message.error("药品追溯码长度没有满足20位!")
809
+            arr.splice(arr.length-2,1)
810
+          }
811
+          console.log("arr-------------",arr)
812
+         
813
+          this.textarea = ""
814
+          this.textarea = arr.join(",")
815
+
816
+          // var newArr = []
817
+          // var is_err_check = 0
818
+          // var i_index = ""
819
+          // var arr = textarea.split(",")
820
+          // if(arr!=null && arr.length>0){
815
             
821
             
816
-            for(let i=0;i<arr.length;i++){
817
-              console.log("arrp[i].")
818
-              i_index = i
819
-              if(arr[i]!=""){
820
-                if(arr[i].length!=20){
821
-                 this.$message.error("药品追溯码长度没有满足20位!")
822
-                  is_err_check = 1
823
-                }else{
824
-                  newArr.push(arr[i])
825
-                }
822
+          //   for(let i=0;i<arr.length;i++){
823
+          //     console.log("arrp[i].")
824
+          //     i_index = i
825
+          //     if(arr[i]!=""){
826
+          //       if(arr[i].length!=20){
827
+          //        this.$message.error("药品追溯码长度没有满足20位!")
828
+          //         is_err_check = 1
829
+          //       }else{
830
+          //         newArr.push(arr[i])
831
+          //       }
826
                 
832
                 
827
-              }
828
-            }
829
-          }
830
-          // console.log("is_err_check==============",is_err_check)
831
-          // console.log("i_index=====",i_index)
832
-          if(is_err_check == 1){
833
-             newArr.splice(i_index,1)
834
-          }
833
+          //     }
834
+          //   }
835
+          // }
836
+         
837
+          // if(is_err_check == 1){
838
+          //    newArr.splice(i_index,1)
839
+          // }
835
 
840
 
836
           
841
           
837
-          if(newArr!=null && newArr.length>0){
842
+          // if(newArr!=null && newArr.length>0){
838
            
843
            
839
-            this.textarea = newArr.join(",")
840
-          }
841
-          this.textarea = textarea
844
+          //   this.textarea = newArr.join(",")
845
+          // }
846
+          // this.textarea = textarea
842
         }
847
         }
843
        
848
        
844
       }
849
       }

+ 35 - 26
src/xt_pages/Pharmacy/PatientDispensing.vue View File

423
       drug_id:0,
423
       drug_id:0,
424
       total_count:0,
424
       total_count:0,
425
       newArrList:[],
425
       newArrList:[],
426
-      textAreaList:[]
426
+      textAreaList:[],
427
+      scan_code:""
427
     };
428
     };
428
   },
429
   },
429
  
430
  
1268
     getDrugCode(id,DataSources,DrugCode,index,DrugId){
1269
     getDrugCode(id,DataSources,DrugCode,index,DrugId){
1269
       
1270
       
1270
      // 针对百霖
1271
      // 针对百霖
1271
-       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
1272
+       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0){
1272
           var params = {
1273
           var params = {
1273
             drug_id:DrugId,
1274
             drug_id:DrugId,
1274
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
1275
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
1275
           }
1276
           }
1276
-          console.log("params-------------",params)
1277
          getDrugTocalCount(params).then(response=>{
1277
          getDrugTocalCount(params).then(response=>{
1278
            if(response.data.state == 1){
1278
            if(response.data.state == 1){
1279
              
1279
              
1280
             var adviceList = response.data.data.adviceList
1280
             var adviceList = response.data.data.adviceList
1281
 
1281
 
1282
+            var drug = response.data.data.drug
1283
+              
1284
+            this.scan_code = drug.scan_code
1285
+
1286
+
1282
             var str = ""
1287
             var str = ""
1283
             if(adviceList!=null && adviceList.length>0){
1288
             if(adviceList!=null && adviceList.length>0){
1284
               for(let i=0;i<adviceList.length;i++){
1289
               for(let i=0;i<adviceList.length;i++){
1318
                
1323
                
1319
                this.newArrList = []
1324
                this.newArrList = []
1320
                this.newArrList = arr
1325
                this.newArrList = arr
1321
-
1322
-
1326
+               console.log("newARRlIST----------",this.newArrList)
1323
             }
1327
             }
1324
               
1328
               
1325
             this.drug_id = DrugId
1329
             this.drug_id = DrugId
1367
         drug_code:this.textarea,
1371
         drug_code:this.textarea,
1368
        }
1372
        }
1369
        console.log("paramss",params)
1373
        console.log("paramss",params)
1374
+
1370
       changeDrugCode(params).then(response=>{
1375
       changeDrugCode(params).then(response=>{
1371
          if(response.data.state == 1){
1376
          if(response.data.state == 1){
1372
             this.$message.success("保存成功!")
1377
             this.$message.success("保存成功!")
1387
        
1392
        
1388
         var textarea = ""
1393
         var textarea = ""
1389
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
1394
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
1395
+        
1390
 
1396
 
1391
-      
1397
+        
1398
+
1399
+        
1392
          
1400
          
1393
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id==0 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
1401
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
1394
 
1402
 
1395
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
1403
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
1396
-          console.log("drugindentification===================",drugindentificaitoncode)
1397
-
1398
-          var scan_code = this.getDrugScanCode(this.drug_id)
1399
-          
1400
-          console.log("scan_code============",scan_code)
1401
-
1404
+             
1402
           var total_one = 0
1405
           var total_one = 0
1403
           var total_two = 0
1406
           var total_two = 0
1404
 
1407
 
1405
-          console.log("newArr-------------",this.newArrList)
1406
-
1407
-         
1408
-
1409
           var arr= []
1408
           var arr= []
1410
           arr = textarea.split(",")
1409
           arr = textarea.split(",")
1411
           var arrList = []
1410
           var arrList = []
1449
                    this.$message.error("药品追溯码长度没有满足20位!")
1448
                    this.$message.error("药品追溯码长度没有满足20位!")
1450
                    is_err_check = true
1449
                    is_err_check = true
1451
                  }
1450
                  }
1451
+
1452
                  if(drugindentificaitoncode>0){
1452
                  if(drugindentificaitoncode>0){
1453
                   if(arr[i].substring(0,7)!= drugindentificaitoncode){
1453
                   if(arr[i].substring(0,7)!= drugindentificaitoncode){
1454
                     this.$message.error("药品标识码格式不正确,请重新扫码")
1454
                     this.$message.error("药品标识码格式不正确,请重新扫码")
1481
           console.log("数量1--------------",total_one)
1481
           console.log("数量1--------------",total_one)
1482
           console.log("数量2---------------",total_two)
1482
           console.log("数量2---------------",total_two)
1483
         
1483
         
1484
-          console.log("scan_code=====",scan_code)
1484
+        
1485
           
1485
           
1486
-          if(scan_code>0){
1487
-            if((total_one + total_two)>scan_code){
1486
+          if(this.scan_code>0){
1487
+            if((total_one + total_two)>this.scan_code){
1488
               this.$message.error("扫码次数已经超过限制!")
1488
               this.$message.error("扫码次数已经超过限制!")
1489
               arr.splice(i_index,1)
1489
               arr.splice(i_index,1)
1490
             }
1490
             }
1491
           }
1491
           }
1492
          
1492
          
1493
-
1494
-
1495
-
1496
          var is_arr = this.hasDuplicates(arr)
1493
          var is_arr = this.hasDuplicates(arr)
1497
 
1494
 
1498
-         console.log("is_arr-=--------------",is_arr)
1499
-
1500
           this.textarea = arr.join(",")
1495
           this.textarea = arr.join(",")
1501
         }else{
1496
         }else{
1497
+          // console.log("haaaaaaaaaaaaaaaaaaa",textarea)
1498
+          
1499
+          var arr = textarea.split(",");
1500
+          
1501
+          var lastElement = arr[arr.length - 2];
1502
+
1503
+          if(lastElement.length!=20){
1504
+            this.$message.error("药品追溯码长度没有满足20位!")
1505
+            arr.splice(arr.length-2,1)
1506
+          }
1507
+          console.log("arr-------------",arr)
1508
+         
1509
+          this.textarea = ""
1510
+          this.textarea = arr.join(",")
1502
 
1511
 
1503
-          this.textarea = textarea
1512
+          // this.textarea = textarea
1504
         }
1513
         }
1505
         
1514
         
1506
 
1515
 

+ 128 - 16
src/xt_pages/charging/charging_cz.vue View File

13
               v-model="value1"
13
               v-model="value1"
14
               type="daterange"
14
               type="daterange"
15
               range-separator="至"
15
               range-separator="至"
16
+              format="yyyy-MM-dd"
17
+              value-format="yyyy-MM-dd"
16
               start-placeholder="开始日期"
18
               start-placeholder="开始日期"
17
               end-placeholder="结束日期">
19
               end-placeholder="结束日期">
18
             </el-date-picker>
20
             </el-date-picker>
19
           </div>
21
           </div>
20
-          <div><el-button type="primary">查询</el-button></div>
22
+          <div><el-button type="primary" @click="query">查询</el-button></div>
21
           <el-button type="primary" @click="newcz_show=true">新增</el-button>
23
           <el-button type="primary" @click="newcz_show=true">新增</el-button>
22
         </div>
24
         </div>
23
         <div style="flex: 1;text-align: right;">
25
         <div style="flex: 1;text-align: right;">
24
-          <!-- <el-button type="primary" @click="new_show=true">新增</el-button> -->
26
+          
25
         </div>
27
         </div>
26
       </div>
28
       </div>
27
       <div style="margin:10px 0;">
29
       <div style="margin:10px 0;">
28
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
30
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
29
           <el-table-column prop="index" label="序号" width="50">
31
           <el-table-column prop="index" label="序号" width="50">
32
+            <template slot-scope="scope">
33
+                {{scope.$index + 1}}
34
+             </template>
30
           </el-table-column>
35
           </el-table-column>
31
           <el-table-column prop="name" label="患者姓名" width="">
36
           <el-table-column prop="name" label="患者姓名" width="">
37
+            <template slot-scope="scope">
38
+                {{getPatientName(scope.row.patient_id)}}
39
+             </template>
32
           </el-table-column>
40
           </el-table-column>
33
           <el-table-column prop="HD" label="充值时间">
41
           <el-table-column prop="HD" label="充值时间">
42
+            <template slot-scope="scope">
43
+                {{scope.$index + 1}}
44
+             </template>
34
           </el-table-column>
45
           </el-table-column>
35
           <el-table-column prop="HDF" label="充值类型">
46
           <el-table-column prop="HDF" label="充值类型">
47
+            <template slot-scope="scope">
48
+             <span v-if="scope.row.is_type==1">HD</span>
49
+             <span v-if="scope.row.is_type==2">HDF</span>
50
+             <span v-if="scope.row.is_type==3">HD+HP</span>
51
+             <span v-if="scope.row.is_type==4">HP</span>
52
+             <span v-if="scope.row.is_type==5">其他</span>
53
+            </template>
36
           </el-table-column>
54
           </el-table-column>
37
           <el-table-column prop="HD+HP" label="充值次数">
55
           <el-table-column prop="HD+HP" label="充值次数">
56
+            <template slot-scope="scope">
57
+               {{ scope.row.count }}
58
+            </template>
38
           </el-table-column>
59
           </el-table-column>
39
           <el-table-column prop="HP" label="状态">
60
           <el-table-column prop="HP" label="状态">
61
+             <template slot-scope="scope">
62
+                <span v-if="scope.row.is_check == 1">已审核</span>
63
+                <span v-if="scope.row.is_check == 2">未审核</span>
64
+             </template>
40
           </el-table-column>
65
           </el-table-column>
41
           <el-table-column prop="qita" label="创建人">
66
           <el-table-column prop="qita" label="创建人">
67
+            <template slot-scope="scope">
68
+                {{ getAdminUser(scope.row.creater) }}
69
+             </template>
42
           </el-table-column>
70
           </el-table-column>
43
           <el-table-column prop="qita" label="备注">
71
           <el-table-column prop="qita" label="备注">
72
+            <template slot-scope="scope">
73
+               {{ scope.row.remark }}
74
+             </template>
44
           </el-table-column>
75
           </el-table-column>
45
           <el-table-column prop="address" label="操作" width="300">
76
           <el-table-column prop="address" label="操作" width="300">
46
             <template slot-scope="scope">
77
             <template slot-scope="scope">
47
-              <span v-if="scope.row.examine==false">
48
-                <el-button type="primary" @click="cz_click(scope.row)" >反审核</el-button>
78
+              <span v-if="scope.row.is_check==1">
79
+                <el-button type="primary" @click="toReturnCheck(scope.row.id)" >反审核</el-button>
49
               </span>
80
               </span>
50
-              <div v-if="scope.row.examine==true">
51
-                <el-button type="primary" >审核</el-button>
52
-                <el-button type="danger">删除</el-button>
81
+              <div v-if="scope.row.is_check==2">
82
+                <el-button type="primary" @click="toCheck(scope.row.id)">审核</el-button>
83
+                <el-button type="danger" @click="deletePatientCount(scope.row.id,scope.$index)">删除</el-button>
53
               </div>
84
               </div>
54
             </template>
85
             </template>
55
           </el-table-column>
86
           </el-table-column>
60
           @size-change="handleSizeChange"
91
           @size-change="handleSizeChange"
61
           @current-change="handleCurrentChange"
92
           @current-change="handleCurrentChange"
62
           :current-page="currentPage"
93
           :current-page="currentPage"
63
-          :page-sizes="[100, 200, 300, 400]"
64
-          :page-size="100"
94
+          :page-sizes="[10, 20, 30, 40,100]"
95
+          :page-size="10"
65
           layout="total, sizes, prev, pager, next, jumper"
96
           layout="total, sizes, prev, pager, next, jumper"
66
-          :total="400">
97
+          :total="total">
67
         </el-pagination>
98
         </el-pagination>
68
       </div>
99
       </div>
69
     </div>
100
     </div>
118
   </div>
149
   </div>
119
 </template>
150
 </template>
120
 <script>
151
 <script>
121
-  import {getPatientMapList,savePatentCount } from "@/api/patient"
152
+  import {getPatientMapList,savePatentCount,getPatientCountList,deletePatientCount,checkPatientCount,toReturnCheck } from "@/api/patient"
122
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
153
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
123
   export default{
154
   export default{
155
+    components: { BreadCrumb },
124
     data(){
156
     data(){
125
       return{
157
       return{
126
         input:'',
158
         input:'',
135
         },
167
         },
136
         smart_keyword:"",
168
         smart_keyword:"",
137
         currentPage:1,
169
         currentPage:1,
138
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1,examine:false }],
170
+        tableData: [],
139
         patient_id:0,
171
         patient_id:0,
140
         hd_count:"1",
172
         hd_count:"1",
141
         hdf_count:"1",
173
         hdf_count:"1",
142
         hdhp_count:"1",
174
         hdhp_count:"1",
143
         hp_count:"1",
175
         hp_count:"1",
144
         other_count:"0",
176
         other_count:"0",
177
+        patientList:[],
178
+        limit:10,
179
+        page:1,
180
+        total:0,
181
+        userList:[]
145
       }
182
       }
146
     },
183
     },
147
     methods:{
184
     methods:{
185
+      getPatientName(id){
186
+       var name = ""
187
+      for(let i=0;i<this.patientList.length;i++){
188
+        if(id == this.patientList[i].id){
189
+          name = this.patientList[i].name
190
+        }
191
+      }
192
+      return name
193
+     },
194
+      query(){
195
+        this.getlist()
196
+      },
148
       handleSelect(val){
197
       handleSelect(val){
149
         this.smart_keyword = val.name;
198
         this.smart_keyword = val.name;
150
         this.patient_id = val.id
199
         this.patient_id = val.id
200
+        this.getlist()
151
       },
201
       },
152
       querySearch(queryString, cb){
202
       querySearch(queryString, cb){
153
         let key = ''
203
         let key = ''
174
         row.examine=true
224
         row.examine=true
175
       },
225
       },
176
       handleSizeChange(){
226
       handleSizeChange(){
177
-
227
+        this.limit = limit;
228
+        this.getList();
178
       },
229
       },
179
       handleCurrentChange(){
230
       handleCurrentChange(){
180
-
231
+        this.page = page;
232
+        this.getList();
181
       },
233
       },
182
       savePatentCount(){
234
       savePatentCount(){
183
         var params = {
235
         var params = {
191
         }
243
         }
192
        savePatentCount(params).then(response=>{
244
        savePatentCount(params).then(response=>{
193
           if(response.data.state == 1){
245
           if(response.data.state == 1){
194
-             var patientInCount = response.data.data.patientInCount
246
+             var msg = response.data.data.msg
247
+             this.$message.success("保存成功")
195
              this.newcz_show = false
248
              this.newcz_show = false
196
           }
249
           }
197
        }) 
250
        }) 
251
+      },
252
+      getlist(){
253
+          var params = {
254
+            limit:this.limit,
255
+            page:this.page,
256
+            patient_id:this.patient_id,
257
+            start_time:this.start_time,
258
+            end_time:this.end_time
259
+          }
260
+        getPatientCountList(params).then(response=>{
261
+          if(response.data.state == 1){
262
+             
263
+            this.tableData = []
264
+            this.tableData = response.data.data.list
265
+
266
+            this.total = response.data.data.total
267
+
268
+            this.patientList = []
269
+            this.patientList = response.data.data.patient
270
+            this.userList = []
271
+            this.userList = response.data.data.userList
272
+          }
273
+        })
274
+      },
275
+      getAdminUser(creater){
276
+        var user_name = ""
277
+        for(let i=0;i<this.userList.length;i++){
278
+           if(creater == this.userList[i].id){
279
+              user_name = this.userList[i].name
280
+           }
281
+        }
282
+        return user_name
283
+      },
284
+      deletePatientCount(id,index){
285
+        deletePatientCount(id,index).then(response=>{
286
+          if(response.data.state == 1){
287
+            var msg = response.data.data.msg
288
+            this.$message.error("删除成功!")
289
+            this.tableData.splice(index,1)
290
+          }
291
+        })
292
+      },
293
+      toCheck(id){
294
+         checkPatientCount(id).then(response=>{
295
+            if(response.data.state == 1){
296
+              var checkpatientcount =  response.data.data.checkpatientcount
297
+              this.$message.success("审核成功!")
298
+              this.getlist()
299
+            }
300
+         })
301
+      },
302
+      toReturnCheck(id){
303
+        toReturnCheck(id).then(response=>{
304
+          if(response.data.state == 1){
305
+             var checkPatientCount = response.data.data.checkpatientcount
306
+             this.$message.success("反审核成功!")
307
+             this.getlist()
308
+          }
309
+        })
198
       }
310
       }
199
      
311
      
200
     },
312
     },
201
     created(){
313
     created(){
202
-     
314
+     this.getlist()
203
     }
315
     }
204
   }
316
   }
205
 </script>
317
 </script>

+ 118 - 17
src/xt_pages/charging/index.vue View File

6
     <div class="app-container">
6
     <div class="app-container">
7
       <div style="display: flex;margin-bottom: 10px;">
7
       <div style="display: flex;margin-bottom: 10px;">
8
         <div style="flex: 1;">
8
         <div style="flex: 1;">
9
-          <el-autocomplete class="inline-input" v-model="state1" :fetch-suggestions="querySearch" placeholder="请输入患者姓名"
10
-            @select="handleSelect"></el-autocomplete>
9
+          <!-- <el-autocomplete class="inline-input" v-model="state1" :fetch-suggestions="querySearch" placeholder="请输入患者姓名"
10
+            @select="handleSelect"></el-autocomplete> -->
11
+
12
+            <el-autocomplete
13
+              class="inline-input"
14
+               v-model.trim="smart_keyword"
15
+              :fetch-suggestions="querySearch"
16
+              placeholder="请输入内容"
17
+              @select="handleSelect"
18
+              
19
+            >
20
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
21
+          <template slot-scope="{ item }">
22
+            <div class="name">{{ item.name }}</div>
23
+          </template>
24
+          </el-autocomplete>
11
         </div>
25
         </div>
12
         <div style="flex: 1;text-align: right;">
26
         <div style="flex: 1;text-align: right;">
13
           <el-button type="primary">扣减配置</el-button>
27
           <el-button type="primary">扣减配置</el-button>
19
           :cell-style="{'text-align':'center'}
33
           :cell-style="{'text-align':'center'}
20
         ">
34
         ">
21
           <el-table-column prop="index" label="序号" width="50">
35
           <el-table-column prop="index" label="序号" width="50">
36
+            <template slot-scope="scope">
37
+                {{scope.$index + 1}}
38
+             </template>
22
           </el-table-column>
39
           </el-table-column>
23
           <el-table-column prop="name" label="患者姓名" width="">
40
           <el-table-column prop="name" label="患者姓名" width="">
41
+            <template slot-scope="scope">
42
+                {{getPatientName(scope.row.patient_id)}}
43
+             </template>
24
           </el-table-column>
44
           </el-table-column>
25
           <el-table-column prop="HD" label="HD">
45
           <el-table-column prop="HD" label="HD">
46
+            <template slot-scope="scope">
47
+                {{scope.row.hd_count}}
48
+             </template>
26
           </el-table-column>
49
           </el-table-column>
27
           <el-table-column prop="HDF" label="HDF">
50
           <el-table-column prop="HDF" label="HDF">
51
+            <template slot-scope="scope">
52
+                {{scope.row.hdf_count}}
53
+             </template>
28
           </el-table-column>
54
           </el-table-column>
29
           <el-table-column prop="HD+HP" label="HD+HP">
55
           <el-table-column prop="HD+HP" label="HD+HP">
56
+            <template slot-scope="scope">
57
+                {{scope.row.hdhp_count}}
58
+             </template>
30
           </el-table-column>
59
           </el-table-column>
31
           <el-table-column prop="HP" label="HP">
60
           <el-table-column prop="HP" label="HP">
61
+            <template slot-scope="scope">
62
+                {{scope.row.hp_count}}
63
+             </template>
32
           </el-table-column>
64
           </el-table-column>
33
           <el-table-column prop="qita" label="其他">
65
           <el-table-column prop="qita" label="其他">
66
+            <template slot-scope="scope">
67
+                {{scope.row.other_count}}
68
+             </template>
34
           </el-table-column>
69
           </el-table-column>
35
           <el-table-column prop="address" label="操作" width="300">
70
           <el-table-column prop="address" label="操作" width="300">
36
             <template slot-scope="scope">
71
             <template slot-scope="scope">
107
         <div style="margin: 10px 0;">
142
         <div style="margin: 10px 0;">
108
           <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
143
           <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
109
             <el-table-column prop="index" label="序号" width="">
144
             <el-table-column prop="index" label="序号" width="">
145
+              <template slot-scope="scope">
146
+                {{scope.$index + 1}}
147
+              </template>
110
             </el-table-column>
148
             </el-table-column>
111
             <el-table-column prop="name" label="患者姓名" width="">
149
             <el-table-column prop="name" label="患者姓名" width="">
150
+              <template slot-scope="scope">
151
+                {{getPatientName(scope.row.patient_id)}}
152
+              </template>
112
             </el-table-column>
153
             </el-table-column>
113
             <el-table-column prop="HD" label="费用发生时间">
154
             <el-table-column prop="HD" label="费用发生时间">
114
             </el-table-column>
155
             </el-table-column>
130
 </template>
171
 </template>
131
 
172
 
132
 <script>
173
 <script>
174
+import {getPatientMapList,getPatientCountList } from "@/api/patient"
175
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
176
+import { create } from "sortablejs";
133
 export default {
177
 export default {
178
+  components: { BreadCrumb },
134
   data() {
179
   data() {
135
     return {
180
     return {
136
       crumbs: [
181
       crumbs: [
140
       value:0,
185
       value:0,
141
       restaurants: [{value: '小米' }, { value: '小王' }],
186
       restaurants: [{value: '小米' }, { value: '小王' }],
142
       state1: '',
187
       state1: '',
143
-      tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 }],
188
+      tableData: [],
144
       options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
189
       options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
145
       currentPage:1,
190
       currentPage:1,
146
       details_show:false,
191
       details_show:false,
192
+      smart_keyword:"",
193
+      patient_id:"",
194
+      limit:10,
195
+      page:1,
196
+      total:0,
197
+      patientList:[]
147
     }
198
     }
148
   },
199
   },
149
   methods: {
200
   methods: {
150
-    handleSelect() {
151
-
152
-    },
153
-    querySearch(queryString, cb) {
154
-      console.log('vvvvv',queryString);
155
-      var restaurants = this.restaurants;
156
-      var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
157
-      // 调用 callback 返回建议列表的数据
158
-      cb(results);
159
-    },
201
+    handleSelect(val){
202
+        this.smart_keyword = val.name;
203
+        this.patient_id = val.id
204
+        this.getlist()
205
+      },
206
+      querySearch(queryString, cb){
207
+        let key = ''
208
+        if (queryString != undefined) {
209
+          key = queryString
210
+        }
211
+        let searchArray = []
212
+         var  params = {
213
+          keyword:key
214
+         }
215
+        getPatientMapList(params).then(response => {
216
+          if (response.data.state == 1) {
217
+            searchArray = response.data.data.patient
218
+            console.log("searchArray-------------",searchArray)
219
+            cb(searchArray)
220
+          } else {
221
+            this.$message.error(response.data.msg)
222
+            cb([])
223
+          }
224
+        })
225
+        return searchArray
226
+      },
227
+   
160
     createFilter(queryString) {
228
     createFilter(queryString) {
161
       return (restaurant) => {
229
       return (restaurant) => {
162
         return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
230
         return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
163
       };
231
       };
164
     },
232
     },
165
-    handleSizeChange(){
166
-
233
+  handleSizeChange(){
234
+      this.limit = limit;
235
+      this.getList();
167
     },
236
     },
168
     handleCurrentChange(){
237
     handleCurrentChange(){
169
-      
238
+      this.page = page;
239
+      this.getList();
170
     },
240
     },
171
     details_click(row){
241
     details_click(row){
172
       this.details_show=true
242
       this.details_show=true
176
     },
246
     },
177
     kf_click(){
247
     kf_click(){
178
       this.$router.push({path:'/dialysis/chargin_kf'})
248
       this.$router.push({path:'/dialysis/chargin_kf'})
179
-    }
249
+    },
250
+    getlist(){
251
+      var params = {
252
+        limit:this.limit,
253
+        page:this.page,
254
+        patient_id:this.patient_id
255
+      }
256
+    getPatientCountList(params).then(response=>{
257
+      if(response.data.state == 1){
258
+        var list =  response.data.data.list
259
+       
260
+        this.tableData = []
261
+        this.tableData = list
262
+        this.total = response.data.data.total
263
+        this.patientList = []
264
+        this.patientList = response.data.data.patient
265
+
266
+      }
267
+    })
268
+   },
269
+   getPatientName(id){
270
+     var name = ""
271
+     for(let i=0;i<this.patientList.length;i++){
272
+      if(id == this.patientList[i].id){
273
+         name = this.patientList[i].name
274
+      }
275
+     }
276
+     return name
277
+   }
278
+  },
279
+ created(){
280
+    this.getlist()
180
   }
281
   }
181
 }
282
 }
182
 </script>
283
 </script>

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

1471
                             }}
1471
                             }}
1472
                           </td>
1472
                           </td>
1473
                           <td v-if="org_id != 10683">
1473
                           <td v-if="org_id != 10683">
1474
-                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471">
1474
+                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471 || org_id == 10744">
1475
                               {{
1475
                               {{
1476
                                 monitor_record.ultrafiltration_volume
1476
                                 monitor_record.ultrafiltration_volume
1477
                                   ? monitor_record.ultrafiltration_volume
1477
                                   ? monitor_record.ultrafiltration_volume
1478
                                   : "0"
1478
                                   : "0"
1479
                               }}
1479
                               }}
1480
                             </span>
1480
                             </span>
1481
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471">
1481
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471 && org_id!=10744">
1482
                               {{
1482
                               {{
1483
                                 monitor_record.ultrafiltration_volume
1483
                                 monitor_record.ultrafiltration_volume
1484
                                   ? monitor_record.ultrafiltration_volume
1484
                                   ? monitor_record.ultrafiltration_volume

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

207
           </el-table-column>
207
           </el-table-column>
208
 
208
 
209
           <el-table-column
209
           <el-table-column
210
-            v-if="monitors[0] && monitors[0]['venous_pressure_type'] != 2&&org_id ==10693"
210
+            v-if="monitors[0] && monitors[0]['venous_pressure_type'] != 2 && org_id ==10693 && org_id == 10744"
211
             prop="venous_pressure"
211
             prop="venous_pressure"
212
             align="center"
212
             align="center"
213
             label="静脉压/动脉压(mmHg)"
213
             label="静脉压/动脉压(mmHg)"
784
                 org_id!=10558 &&
784
                 org_id!=10558 &&
785
                 org_id!=10517 && 
785
                 org_id!=10517 && 
786
                 org_id!=10414 && 
786
                 org_id!=10414 && 
787
-                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731) ||
787
+                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731 && org_id!=10744) ||
788
                 org_id == 9779 ||
788
                 org_id == 9779 ||
789
                 template_id == 11 ||
789
                 template_id == 11 ||
790
                 template_id == 20 ||
790
                 template_id == 20 ||
800
                 org_id == 10395 ||
800
                 org_id == 10395 ||
801
                 org_id == 10206 ||
801
                 org_id == 10206 ||
802
                 org_id == 10751 ||
802
                 org_id == 10751 ||
803
-                org_id == 10752
803
+                org_id == 10752 
804
                 )
804
                 )
805
             "
805
             "
806
           >
806
           >
820
             width="100"
820
             width="100"
821
             v-if="
821
             v-if="
822
               isShow('置换量') &&
822
               isShow('置换量') &&
823
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731) &&
823
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731 || org_id == 10744) &&
824
               template_id != 9779 &&
824
               template_id != 9779 &&
825
               template_id != 11 &&
825
               template_id != 11 &&
826
               template_id != 20 &&
826
               template_id != 20 &&
2013
             :span="8"
2013
             :span="8"
2014
             v-if="
2014
             v-if="
2015
               isShow('置换量') &&
2015
               isShow('置换量') &&
2016
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731) &&
2016
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731 || org_id == 10744) &&
2017
               org_id != 9779 &&
2017
               org_id != 9779 &&
2018
               template_id != 11 &&
2018
               template_id != 11 &&
2019
               template_id != 20 &&
2019
               template_id != 20 &&
2047
                 org_id != 9919 &&
2047
                 org_id != 9919 &&
2048
                 org_id != 10191 &&
2048
                 org_id != 10191 &&
2049
                 org_id != 10551 &&
2049
                 org_id != 10551 &&
2050
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731) ||
2050
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731 && org_id!=10744) ||
2051
                 org_id == 9779 ||
2051
                 org_id == 9779 ||
2052
                 template_id == 11 ||
2052
                 template_id == 11 ||
2053
                 template_id == 20 ||
2053
                 template_id == 20 ||

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

34
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206 && org_id!=10751&& org_id!=10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
34
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206 && org_id!=10751&& org_id!=10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
37
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731" width="92px"  > 置换量(ml)  </th>
38
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731" width="92px" > 置换量(L) </th>
37
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731 && org_id!=10744" width="92px"  > 置换量(ml)  </th>
38
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731 || org_id == 10744" width="92px" > 置换量(L) </th>
39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
41
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>
41
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>

+ 23 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

685
                         style="margin-left: 10px; flex: 1">
685
                         style="margin-left: 10px; flex: 1">
686
                         置换量:
686
                         置换量:
687
                         <div class="under_line" style="width: 70px; text-align: center">
687
                         <div class="under_line" style="width: 70px; text-align: center">
688
-                          <!-- <span v-if="org_id ==10206 "> {{
689
-                            prescription.replacement_total
690
-                              ? prescription.replacement_total
691
-                              : "/"
692
-                          }}
693
-                          </span>
694
-
695
-                          <span v-if="org_id ==10510 ">
696
-                            <span v-if="prescription!=null &&( prescription.mode_id ==2 || prescription.mode_id ==5 || presciption.mode_id==12)">{{
697
-                              afterdialysis.displace_liqui_value
698
-                              ? afterdialysis.displace_liqui_value
699
-                              : "/"
700
-                            }}
701
-                          </span>
702
-                          <span v-else>/</span>
703
-                          </span> -->
688
+                         
704
                           <span v-if="org_id != 10206 && org_id != 10510"> {{
689
                           <span v-if="org_id != 10206 && org_id != 10510"> {{
705
                             prescription.displace_liqui_value
690
                             prescription.displace_liqui_value
706
                               ? prescription.displace_liqui_value
691
                               ? prescription.displace_liqui_value
1394
                           <td width="50" v-if="org_id != 10489">呼吸<br />(次/分)</td>
1379
                           <td width="50" v-if="org_id != 10489">呼吸<br />(次/分)</td>
1395
                           <td width="50">血流量<br />(ml/min)</td>
1380
                           <td width="50">血流量<br />(ml/min)</td>
1396
                           <td width="50"
1381
                           <td width="50"
1397
-                            v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735">
1382
+                            v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735 || org_id == 10744">
1398
                             动脉压<br />({{
1383
                             动脉压<br />({{
1399
                               monitors[0] &&
1384
                               monitors[0] &&
1400
                                 monitors[0]["venous_pressure_type"] == 2
1385
                                 monitors[0]["venous_pressure_type"] == 2
1453
                             <span v-if="org_id != 10683">置换量</span>
1438
                             <span v-if="org_id != 10683">置换量</span>
1454
                             <br />
1439
                             <br />
1455
                             <span
1440
                             <span
1456
-                              v-if="org_id != 10598 && org_id != 10567 && org_id != 10724 && org_id != 10644 && org_id != 10353 && org_id != 10414">
1441
+                              v-if="org_id != 10598 && org_id != 10567 && org_id != 10724 && org_id != 10644 && org_id != 10353 && org_id != 10414 && org_id!=10744">
1457
                               <span v-if="org_id != 0 && org_id != 10683">(ml)</span>
1442
                               <span v-if="org_id != 0 && org_id != 10683">(ml)</span>
1458
                               <span v-if="org_id == 10683">(ml/h)</span>
1443
                               <span v-if="org_id == 10683">(ml/h)</span>
1459
                             </span>
1444
                             </span>
1460
-                            <span
1461
-                              v-if="org_id == 10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id == 10353 || org_id == 10414">(L)</span>
1445
+                            <span v-if="org_id == 10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id == 10353 || org_id == 10414 || org_id == 10744">(L)</span>
1462
                           </td>
1446
                           </td>
1463
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1447
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1464
                           <td width="50"
1448
                           <td width="50"
1483
                           <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
1467
                           <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
1484
                           <td v-if="org_id != 10489">{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
1468
                           <td v-if="org_id != 10489">{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
1485
                           <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
1469
                           <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
1486
-                          <td v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735">
1470
+                          <td v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735 || org_id == 10744">
1487
                             {{
1471
                             {{
1488
                               monitor.arterial_pressure
1472
                               monitor.arterial_pressure
1489
                                 ? monitor.arterial_pressure
1473
                                 ? monitor.arterial_pressure
1578
                           <td v-if="org_id == 10489 || org_id == 10735 || org_id == 10600"><br />
1562
                           <td v-if="org_id == 10489 || org_id == 10735 || org_id == 10600"><br />
1579
                             {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}
1563
                             {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}
1580
                           </td>
1564
                           </td>
1565
+
1581
                           <td v-if="org_id != 10644 && org_id != 10683">
1566
                           <td v-if="org_id != 10644 && org_id != 10683">
1582
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617">{{
1583
-                              monitor.ultrafiltration_volume ?
1584
-                                monitor.ultrafiltration_volume: ""}}</span>
1567
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617 && org_id!=10744">
1568
+                              {{monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}
1569
+                            </span>
1585
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1570
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1586
                               <span v-if="org_id == 10617 && monindex == 0">{{ monitor.ultrafiltration_volume ?
1571
                               <span v-if="org_id == 10617 && monindex == 0">{{ monitor.ultrafiltration_volume ?
1587
                                 monitor.ultrafiltration_volume : "/" }}</span>
1572
                                 monitor.ultrafiltration_volume : "/" }}</span>
1589
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span>
1574
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span>
1590
                               <span v-if="org_id == 10617 && (monindex != monitors.length - 1 && monindex != 0)">{{
1575
                               <span v-if="org_id == 10617 && (monindex != monitors.length - 1 && monindex != 0)">{{
1591
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}</span>
1576
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}</span>
1592
-                              <span v-if="org_id != 10617">{{ monitor.ultrafiltration_volume ?
1593
-                                monitor.ultrafiltration_volume : "0" }}</span>
1577
+                              <span v-if="org_id != 10617">
1578
+                                {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1579
+                              </span>
1580
+                            </span>
1581
+                            <span v-if="org_id==10744">
1582
+                              {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1594
                             </span>
1583
                             </span>
1595
                           </td>
1584
                           </td>
1596
                           <td width="50"
1585
                           <td width="50"
4343
         }
4332
         }
4344
 
4333
 
4345
         //HIS客户显示临时医嘱的地方
4334
         //HIS客户显示临时医嘱的地方
4346
-        if (this.org_id == 10510 || this.org_id == 10567 || this.org_id == 10489 || this.org_id == 10644 || this.org_id == 0 || this.org_id == 10724) {
4335
+        if (this.org_id == 10510 || this.org_id == 10567 || this.org_id == 10489 || this.org_id == 10644|| this.org_id == 10724) {
4347
           if (response.data.data.doctorAdevieInfo != null && response.data.data.doctorAdevieInfo.length > 0) {
4336
           if (response.data.data.doctorAdevieInfo != null && response.data.data.doctorAdevieInfo.length > 0) {
4348
 
4337
 
4349
             for (let i = 0; i < response.data.data.doctorAdevieInfo.length; i++) {
4338
             for (let i = 0; i < response.data.data.doctorAdevieInfo.length; i++) {
4506
 
4495
 
4507
         console.log("新时间我哦我哦", this.doctor_advices)
4496
         console.log("新时间我哦我哦", this.doctor_advices)
4508
 
4497
 
4498
+       
4499
+
4509
 
4500
 
4510
         //过滤口服药
4501
         //过滤口服药
4511
         if (this.org_id == 10265) {
4502
         if (this.org_id == 10265) {
4560
         }
4551
         }
4561
         // console.log(this.advice_groups);
4552
         // console.log(this.advice_groups);
4562
 
4553
 
4554
+        if(this.org_id == 10744 || this.org_id == 0){
4555
+          
4556
+          this.doctor_advices.sort((a, b) => a.execution_time - b.execution_time)
4557
+        }
4558
+
4563
         console.log("医嘱列表=--=----------------------------------------------", this.doctor_advices)
4559
         console.log("医嘱列表=--=----------------------------------------------", this.doctor_advices)
4564
       } else {
4560
       } else {
4565
         this.loading = false;
4561
         this.loading = false;

+ 3 - 17
src/xt_pages/qcd/patientControlAnalysis.vue View File

332
   methods: {
332
   methods: {
333
     handleStartTimeChange(){
333
     handleStartTimeChange(){
334
       this.getlist()
334
       this.getlist()
335
-    },  handleEndTimeChange(){
335
+    }, 
336
+     handleEndTimeChange(){
336
       this.getlist()
337
       this.getlist()
337
     },
338
     },
338
     handleSizeChange(limit) {
339
     handleSizeChange(limit) {
558
         if (response.data.state == 1) {
559
         if (response.data.state == 1) {
559
           this.isLoadingTwo = false
560
           this.isLoadingTwo = false
560
           var patients = response.data.data.patients
561
           var patients = response.data.data.patients
561
-
562
+          console.log("patients----------------",patients)
562
           this.tablePatients = patients
563
           this.tablePatients = patients
563
 
564
 
564
-          //  let dataInfothree = {}
565
-          //   patients.forEach((item, index) => {
566
-          //     let { inspect_date } = item
567
-          //     if (!dataInfothree[inspect_date]) {
568
-          //       dataInfothree[inspect_date] = {
569
-          //         inspect_date,
570
-          //         name: item.name,
571
-          //         child: [],
572
-          //         patient_id: item.patient_id,
573
-          //       }
574
-          //     }
575
-          //   })
576
-          // let patientlist = Object.values(dataInfothree)
577
-          // console.log("patientlist",patientlist)
578
-
579
           var total = response.data.data.total
565
           var total = response.data.data.total
580
           this.total = total
566
           this.total = total
581
           var control = response.data.data.control
567
           var control = response.data.data.control

+ 4 - 2
src/xt_pages/stock/detail/stockOutDetail.vue View File

1032
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1032
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1033
         }else if(this.orgId==10537){
1033
         }else if(this.orgId==10537){
1034
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1034
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1035
+        }else if(this.orgId==10571){
1036
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1035
         }else if(this.orgId==10445){
1037
         }else if(this.orgId==10445){
1036
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1038
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1037
         }else if(this.orgId==10635){
1039
         }else if(this.orgId==10635){
1043
         if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402 || this.orgId==10138 || this.orgId==10278||this.orgId==10537||this.orgId==10610){
1045
         if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402 || this.orgId==10138 || this.orgId==10278||this.orgId==10537||this.orgId==10610){
1044
             this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
1046
             this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
1045
         }
1047
         }
1046
-        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.orgId ==10635 || this.orgId ==10726 || this.orgId == 10724 || this.orgId ==10635 || this.orgId ==10724 || this.orgId ==10726 || this.orgId ==10721 || this.orgId == 10633 || this.orgId == 0  || this.orgId == 10387){
1048
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.orgId ==10635 || this.orgId ==10726 || this.orgId == 10724 || this.orgId ==10635 || this.orgId ==10724 || this.orgId ==10726 || this.orgId ==10721 || this.orgId == 10633 || this.orgId == 0  || this.orgId == 10387 || this.orgId == 10571){
1047
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
1049
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
1048
         }
1050
         }
1049
         if(this.orgId ==10445){
1051
         if(this.orgId ==10445){
1050
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1052
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1051
         }
1053
         }
1052
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 &&  this.orgId !=10635  &&  this.orgId !=10724 &&  this.orgId !=10726  &&  this.orgId !=10721 && this.orgId!=10633 && this.orgId!=0&& this.orgId!=10387){
1054
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 &&  this.orgId !=10635  &&  this.orgId !=10724 &&  this.orgId !=10726  &&  this.orgId !=10721 && this.orgId!=10633 && this.orgId!=0&& this.orgId!=10387&& this.orgId!=10571){
1053
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1055
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1054
         }
1056
         }
1055
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
1057
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)

+ 17 - 7
src/xt_pages/user/doctorAdvice.vue View File

3651
 
3651
 
3652
     selectAdvice(selection, row) {
3652
     selectAdvice(selection, row) {
3653
       console.log("row322232322323",this.adviceType)
3653
       console.log("row322232322323",this.adviceType)
3654
+      console.log("adviceTableData",this.adviceTableData)
3654
       if (this.adviceType != 3) {
3655
       if (this.adviceType != 3) {
3655
         this.lstableData = [];
3656
         this.lstableData = [];
3656
       } else if (this.adviceType != 1) {
3657
       } else if (this.adviceType != 1) {
4553
       });
4554
       });
4554
     },
4555
     },
4555
     // 获取勾选中的行
4556
     // 获取勾选中的行
4556
-    getPrintInfo(ids) {
4557
-      console.log("ids",ids)
4558
-      console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4559
-
4560
-      getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
4557
+    getPrintInfo(ids,his) {
4558
+      // console.log("ids",ids)
4559
+      // console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4560
+      console.log("his================",his)
4561
+      var his_str =his.join(",")
4562
+      getPrintInfo({ids:ids},this.adviceType,this.stopType,his_str).then(response => {
4561
         if (response.data.state === 1) {
4563
         if (response.data.state === 1) {
4562
           var doctoradvice = response.data.data.doctoradvice;
4564
           var doctoradvice = response.data.data.doctoradvice;
4563
           console.log("doctoradvice", doctoradvice);
4565
           console.log("doctoradvice", doctoradvice);
4566
+          this.lstableData = []
4567
+          var hisdoctoradvice = response.data.data.hisdoctoradvice
4568
+
4569
+          this.lstableData.push(...hisdoctoradvice)
4570
+
4571
+          console.log("hahahahah",hisdoctoradvice)
4564
 
4572
 
4565
           this.dataAdvice = doctoradvice;
4573
           this.dataAdvice = doctoradvice;
4566
           if (this.adviceType === 3 || this.adviceType === 2 || this.adviceType == 4) {
4574
           if (this.adviceType === 3 || this.adviceType === 2 || this.adviceType == 4) {
4567
 
4575
 
4568
-            this.lstableData = this.dataAdvice;
4576
+            this.lstableData.push(...this.dataAdvice);
4569
 
4577
 
4570
           } else if (this.adviceType === 1) {
4578
           } else if (this.adviceType === 1) {
4571
             this.cqtableData = doctoradvice;
4579
             this.cqtableData = doctoradvice;
4918
       for (const i in this.multipleSelection) {
4926
       for (const i in this.multipleSelection) {
4919
         arr.push(this.multipleSelection[i]);
4927
         arr.push(this.multipleSelection[i]);
4920
         group.push(this.multipleSelection[i].groupno);
4928
         group.push(this.multipleSelection[i].groupno);
4929
+        ids.push(this.multipleSelection[i].id)
4921
        
4930
        
4922
       }
4931
       }
4923
       grouptwo.push(this.getdata(group));
4932
       grouptwo.push(this.getdata(group));
4924
       // console.log('组号', group)
4933
       // console.log('组号', group)
4925
       // console.log('组号2', grouptwo)
4934
       // console.log('组号2', grouptwo)
4926
       // console.log('ids', ids)
4935
       // console.log('ids', ids)
4927
-      this.getPrintInfo(group);
4936
+     
4937
+      this.getPrintInfo(group,ids);
4928
     }
4938
     }
4929
   },
4939
   },
4930
   components: {
4940
   components: {

+ 3 - 1
src/xt_pages/workforce/printOne.vue View File

691
     getZoneName(id) {
691
     getZoneName(id) {
692
       var name = ''
692
       var name = ''
693
       for (let i = 0; i < this.partitionArr.length; i++) {
693
       for (let i = 0; i < this.partitionArr.length; i++) {
694
+
694
         if (id == this.partitionArr[i].id) {
695
         if (id == this.partitionArr[i].id) {
695
           name = this.partitionArr[i].name
696
           name = this.partitionArr[i].name
696
         }
697
         }
697
       }
698
       }
698
-
699
+      console.log("id=-========",id)
700
+      console.log("name-=----",name)
699
       return name
701
       return name
700
     },
702
     },
701
     getBloodAccess(id) {
703
     getBloodAccess(id) {