Browse Source

hah阿凡达

28169 3 weeks ago
parent
commit
3e3013a869

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

@@ -336,12 +336,12 @@ export function PostInitAdviceTemplate(params) {
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 340
   console.log('data', data)
341 341
   console.log('advice_tuype23232', advice_type)
342 342
   console.log('stop_type', stop_type)
343 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 345
     method: 'post',
346 346
     data: data
347 347
   })

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

@@ -1495,4 +1495,41 @@ export function savePatentCount(params){
1495 1495
     method:"get",
1496 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,47 +12,47 @@ export default {
12 12
     title:'charging',
13 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,7 +554,8 @@ export default {
554 554
       drug_id:0,
555 555
       newArrList:[],
556 556
       baseList:[],
557
-      textAreaList:[]
557
+      textAreaList:[],
558
+      scan_code:""
558 559
     };
559 560
   },
560 561
 
@@ -580,7 +581,7 @@ export default {
580 581
     // 追溯码
581 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 585
         var params = {
585 586
             drug_id:this.drug_id,
586 587
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
@@ -591,6 +592,8 @@ export default {
591 592
             
592 593
             var adviceList = response.data.data.adviceList
593 594
 
595
+           this.scan_code = response.data.data.drug.scan_code
596
+              
594 597
             var str = ""
595 598
             if(adviceList!=null && adviceList.length>0){
596 599
               for(let i=0;i<adviceList.length;i++){
@@ -700,19 +703,14 @@ export default {
700 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 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 710
           var total_one = 0
713 711
           var total_two = 0
714 712
 
715
-          // console.log("newArr-------------",this.newArrList)
713
+          
716 714
 
717 715
           var arr= []
718 716
           arr = textarea.split(",")
@@ -785,14 +783,11 @@ export default {
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 791
               this.$message.error("扫码次数已经超过限制!")
797 792
               arr.splice(i_index,1)
798 793
             }
@@ -800,45 +795,55 @@ export default {
800 795
          
801 796
          var is_arr = this.hasDuplicates(arr)
802 797
 
803
-        //  console.log("is_arr-=--------------",is_arr)
798
+       
804 799
 
805 800
         this.textarea = arr.join(",")
806 801
 
807 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,7 +423,8 @@ export default {
423 423
       drug_id:0,
424 424
       total_count:0,
425 425
       newArrList:[],
426
-      textAreaList:[]
426
+      textAreaList:[],
427
+      scan_code:""
427 428
     };
428 429
   },
429 430
  
@@ -1268,17 +1269,21 @@ export default {
1268 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 1273
           var params = {
1273 1274
             drug_id:DrugId,
1274 1275
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
1275 1276
           }
1276
-          console.log("params-------------",params)
1277 1277
          getDrugTocalCount(params).then(response=>{
1278 1278
            if(response.data.state == 1){
1279 1279
              
1280 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 1287
             var str = ""
1283 1288
             if(adviceList!=null && adviceList.length>0){
1284 1289
               for(let i=0;i<adviceList.length;i++){
@@ -1318,8 +1323,7 @@ export default {
1318 1323
                
1319 1324
                this.newArrList = []
1320 1325
                this.newArrList = arr
1321
-
1322
-
1326
+               console.log("newARRlIST----------",this.newArrList)
1323 1327
             }
1324 1328
               
1325 1329
             this.drug_id = DrugId
@@ -1367,6 +1371,7 @@ export default {
1367 1371
         drug_code:this.textarea,
1368 1372
        }
1369 1373
        console.log("paramss",params)
1374
+
1370 1375
       changeDrugCode(params).then(response=>{
1371 1376
          if(response.data.state == 1){
1372 1377
             this.$message.success("保存成功!")
@@ -1387,25 +1392,19 @@ export default {
1387 1392
        
1388 1393
         var textarea = ""
1389 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 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 1405
           var total_one = 0
1403 1406
           var total_two = 0
1404 1407
 
1405
-          console.log("newArr-------------",this.newArrList)
1406
-
1407
-         
1408
-
1409 1408
           var arr= []
1410 1409
           arr = textarea.split(",")
1411 1410
           var arrList = []
@@ -1449,6 +1448,7 @@ export default {
1449 1448
                    this.$message.error("药品追溯码长度没有满足20位!")
1450 1449
                    is_err_check = true
1451 1450
                  }
1451
+
1452 1452
                  if(drugindentificaitoncode>0){
1453 1453
                   if(arr[i].substring(0,7)!= drugindentificaitoncode){
1454 1454
                     this.$message.error("药品标识码格式不正确,请重新扫码")
@@ -1481,26 +1481,35 @@ export default {
1481 1481
           console.log("数量1--------------",total_one)
1482 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 1488
               this.$message.error("扫码次数已经超过限制!")
1489 1489
               arr.splice(i_index,1)
1490 1490
             }
1491 1491
           }
1492 1492
          
1493
-
1494
-
1495
-
1496 1493
          var is_arr = this.hasDuplicates(arr)
1497 1494
 
1498
-         console.log("is_arr-=--------------",is_arr)
1499
-
1500 1495
           this.textarea = arr.join(",")
1501 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,43 +13,74 @@
13 13
               v-model="value1"
14 14
               type="daterange"
15 15
               range-separator="至"
16
+              format="yyyy-MM-dd"
17
+              value-format="yyyy-MM-dd"
16 18
               start-placeholder="开始日期"
17 19
               end-placeholder="结束日期">
18 20
             </el-date-picker>
19 21
           </div>
20
-          <div><el-button type="primary">查询</el-button></div>
22
+          <div><el-button type="primary" @click="query">查询</el-button></div>
21 23
           <el-button type="primary" @click="newcz_show=true">新增</el-button>
22 24
         </div>
23 25
         <div style="flex: 1;text-align: right;">
24
-          <!-- <el-button type="primary" @click="new_show=true">新增</el-button> -->
26
+          
25 27
         </div>
26 28
       </div>
27 29
       <div style="margin:10px 0;">
28 30
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
29 31
           <el-table-column prop="index" label="序号" width="50">
32
+            <template slot-scope="scope">
33
+                {{scope.$index + 1}}
34
+             </template>
30 35
           </el-table-column>
31 36
           <el-table-column prop="name" label="患者姓名" width="">
37
+            <template slot-scope="scope">
38
+                {{getPatientName(scope.row.patient_id)}}
39
+             </template>
32 40
           </el-table-column>
33 41
           <el-table-column prop="HD" label="充值时间">
42
+            <template slot-scope="scope">
43
+                {{scope.$index + 1}}
44
+             </template>
34 45
           </el-table-column>
35 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 54
           </el-table-column>
37 55
           <el-table-column prop="HD+HP" label="充值次数">
56
+            <template slot-scope="scope">
57
+               {{ scope.row.count }}
58
+            </template>
38 59
           </el-table-column>
39 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 65
           </el-table-column>
41 66
           <el-table-column prop="qita" label="创建人">
67
+            <template slot-scope="scope">
68
+                {{ getAdminUser(scope.row.creater) }}
69
+             </template>
42 70
           </el-table-column>
43 71
           <el-table-column prop="qita" label="备注">
72
+            <template slot-scope="scope">
73
+               {{ scope.row.remark }}
74
+             </template>
44 75
           </el-table-column>
45 76
           <el-table-column prop="address" label="操作" width="300">
46 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 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 84
               </div>
54 85
             </template>
55 86
           </el-table-column>
@@ -60,10 +91,10 @@
60 91
           @size-change="handleSizeChange"
61 92
           @current-change="handleCurrentChange"
62 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 96
           layout="total, sizes, prev, pager, next, jumper"
66
-          :total="400">
97
+          :total="total">
67 98
         </el-pagination>
68 99
       </div>
69 100
     </div>
@@ -118,9 +149,10 @@
118 149
   </div>
119 150
 </template>
120 151
 <script>
121
-  import {getPatientMapList,savePatentCount } from "@/api/patient"
152
+  import {getPatientMapList,savePatentCount,getPatientCountList,deletePatientCount,checkPatientCount,toReturnCheck } from "@/api/patient"
122 153
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
123 154
   export default{
155
+    components: { BreadCrumb },
124 156
     data(){
125 157
       return{
126 158
         input:'',
@@ -135,19 +167,37 @@
135 167
         },
136 168
         smart_keyword:"",
137 169
         currentPage:1,
138
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1,examine:false }],
170
+        tableData: [],
139 171
         patient_id:0,
140 172
         hd_count:"1",
141 173
         hdf_count:"1",
142 174
         hdhp_count:"1",
143 175
         hp_count:"1",
144 176
         other_count:"0",
177
+        patientList:[],
178
+        limit:10,
179
+        page:1,
180
+        total:0,
181
+        userList:[]
145 182
       }
146 183
     },
147 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 197
       handleSelect(val){
149 198
         this.smart_keyword = val.name;
150 199
         this.patient_id = val.id
200
+        this.getlist()
151 201
       },
152 202
       querySearch(queryString, cb){
153 203
         let key = ''
@@ -174,10 +224,12 @@
174 224
         row.examine=true
175 225
       },
176 226
       handleSizeChange(){
177
-
227
+        this.limit = limit;
228
+        this.getList();
178 229
       },
179 230
       handleCurrentChange(){
180
-
231
+        this.page = page;
232
+        this.getList();
181 233
       },
182 234
       savePatentCount(){
183 235
         var params = {
@@ -191,15 +243,75 @@
191 243
         }
192 244
        savePatentCount(params).then(response=>{
193 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 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 313
     created(){
202
-     
314
+     this.getlist()
203 315
     }
204 316
   }
205 317
 </script>

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

@@ -6,8 +6,22 @@
6 6
     <div class="app-container">
7 7
       <div style="display: flex;margin-bottom: 10px;">
8 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 25
         </div>
12 26
         <div style="flex: 1;text-align: right;">
13 27
           <el-button type="primary">扣减配置</el-button>
@@ -19,18 +33,39 @@
19 33
           :cell-style="{'text-align':'center'}
20 34
         ">
21 35
           <el-table-column prop="index" label="序号" width="50">
36
+            <template slot-scope="scope">
37
+                {{scope.$index + 1}}
38
+             </template>
22 39
           </el-table-column>
23 40
           <el-table-column prop="name" label="患者姓名" width="">
41
+            <template slot-scope="scope">
42
+                {{getPatientName(scope.row.patient_id)}}
43
+             </template>
24 44
           </el-table-column>
25 45
           <el-table-column prop="HD" label="HD">
46
+            <template slot-scope="scope">
47
+                {{scope.row.hd_count}}
48
+             </template>
26 49
           </el-table-column>
27 50
           <el-table-column prop="HDF" label="HDF">
51
+            <template slot-scope="scope">
52
+                {{scope.row.hdf_count}}
53
+             </template>
28 54
           </el-table-column>
29 55
           <el-table-column prop="HD+HP" label="HD+HP">
56
+            <template slot-scope="scope">
57
+                {{scope.row.hdhp_count}}
58
+             </template>
30 59
           </el-table-column>
31 60
           <el-table-column prop="HP" label="HP">
61
+            <template slot-scope="scope">
62
+                {{scope.row.hp_count}}
63
+             </template>
32 64
           </el-table-column>
33 65
           <el-table-column prop="qita" label="其他">
66
+            <template slot-scope="scope">
67
+                {{scope.row.other_count}}
68
+             </template>
34 69
           </el-table-column>
35 70
           <el-table-column prop="address" label="操作" width="300">
36 71
             <template slot-scope="scope">
@@ -107,8 +142,14 @@
107 142
         <div style="margin: 10px 0;">
108 143
           <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
109 144
             <el-table-column prop="index" label="序号" width="">
145
+              <template slot-scope="scope">
146
+                {{scope.$index + 1}}
147
+              </template>
110 148
             </el-table-column>
111 149
             <el-table-column prop="name" label="患者姓名" width="">
150
+              <template slot-scope="scope">
151
+                {{getPatientName(scope.row.patient_id)}}
152
+              </template>
112 153
             </el-table-column>
113 154
             <el-table-column prop="HD" label="费用发生时间">
114 155
             </el-table-column>
@@ -130,7 +171,11 @@
130 171
 </template>
131 172
 
132 173
 <script>
174
+import {getPatientMapList,getPatientCountList } from "@/api/patient"
175
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
176
+import { create } from "sortablejs";
133 177
 export default {
178
+  components: { BreadCrumb },
134 179
   data() {
135 180
     return {
136 181
       crumbs: [
@@ -140,33 +185,58 @@ export default {
140 185
       value:0,
141 186
       restaurants: [{value: '小米' }, { value: '小王' }],
142 187
       state1: '',
143
-      tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 }],
188
+      tableData: [],
144 189
       options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
145 190
       currentPage:1,
146 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 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 228
     createFilter(queryString) {
161 229
       return (restaurant) => {
162 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 237
     handleCurrentChange(){
169
-      
238
+      this.page = page;
239
+      this.getList();
170 240
     },
171 241
     details_click(row){
172 242
       this.details_show=true
@@ -176,7 +246,38 @@ export default {
176 246
     },
177 247
     kf_click(){
178 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 283
 </script>

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

@@ -1471,14 +1471,14 @@
1471 1471
                             }}
1472 1472
                           </td>
1473 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 1476
                                 monitor_record.ultrafiltration_volume
1477 1477
                                   ? monitor_record.ultrafiltration_volume
1478 1478
                                   : "0"
1479 1479
                               }}
1480 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 1483
                                 monitor_record.ultrafiltration_volume
1484 1484
                                   ? monitor_record.ultrafiltration_volume

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

@@ -207,7 +207,7 @@
207 207
           </el-table-column>
208 208
 
209 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 211
             prop="venous_pressure"
212 212
             align="center"
213 213
             label="静脉压/动脉压(mmHg)"
@@ -784,7 +784,7 @@
784 784
                 org_id!=10558 &&
785 785
                 org_id!=10517 && 
786 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 788
                 org_id == 9779 ||
789 789
                 template_id == 11 ||
790 790
                 template_id == 20 ||
@@ -800,7 +800,7 @@
800 800
                 org_id == 10395 ||
801 801
                 org_id == 10206 ||
802 802
                 org_id == 10751 ||
803
-                org_id == 10752
803
+                org_id == 10752 
804 804
                 )
805 805
             "
806 806
           >
@@ -820,7 +820,7 @@
820 820
             width="100"
821 821
             v-if="
822 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 824
               template_id != 9779 &&
825 825
               template_id != 11 &&
826 826
               template_id != 20 &&
@@ -2013,7 +2013,7 @@
2013 2013
             :span="8"
2014 2014
             v-if="
2015 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 2017
               org_id != 9779 &&
2018 2018
               template_id != 11 &&
2019 2019
               template_id != 20 &&
@@ -2047,7 +2047,7 @@
2047 2047
                 org_id != 9919 &&
2048 2048
                 org_id != 10191 &&
2049 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 2051
                 org_id == 9779 ||
2052 2052
                 template_id == 11 ||
2053 2053
                 template_id == 20 ||

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

@@ -34,8 +34,8 @@
34 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 35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
36 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 39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
40 40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
41 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,22 +685,7 @@
685 685
                         style="margin-left: 10px; flex: 1">
686 686
                         置换量:
687 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 689
                           <span v-if="org_id != 10206 && org_id != 10510"> {{
705 690
                             prescription.displace_liqui_value
706 691
                               ? prescription.displace_liqui_value
@@ -1394,7 +1379,7 @@
1394 1379
                           <td width="50" v-if="org_id != 10489">呼吸<br />(次/分)</td>
1395 1380
                           <td width="50">血流量<br />(ml/min)</td>
1396 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 1383
                             动脉压<br />({{
1399 1384
                               monitors[0] &&
1400 1385
                                 monitors[0]["venous_pressure_type"] == 2
@@ -1453,12 +1438,11 @@
1453 1438
                             <span v-if="org_id != 10683">置换量</span>
1454 1439
                             <br />
1455 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 1442
                               <span v-if="org_id != 0 && org_id != 10683">(ml)</span>
1458 1443
                               <span v-if="org_id == 10683">(ml/h)</span>
1459 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 1446
                           </td>
1463 1447
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1464 1448
                           <td width="50"
@@ -1483,7 +1467,7 @@
1483 1467
                           <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
1484 1468
                           <td v-if="org_id != 10489">{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
1485 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 1472
                               monitor.arterial_pressure
1489 1473
                                 ? monitor.arterial_pressure
@@ -1578,10 +1562,11 @@
1578 1562
                           <td v-if="org_id == 10489 || org_id == 10735 || org_id == 10600"><br />
1579 1563
                             {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}
1580 1564
                           </td>
1565
+
1581 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 1570
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1586 1571
                               <span v-if="org_id == 10617 && monindex == 0">{{ monitor.ultrafiltration_volume ?
1587 1572
                                 monitor.ultrafiltration_volume : "/" }}</span>
@@ -1589,8 +1574,12 @@
1589 1574
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span>
1590 1575
                               <span v-if="org_id == 10617 && (monindex != monitors.length - 1 && monindex != 0)">{{
1591 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 1583
                             </span>
1595 1584
                           </td>
1596 1585
                           <td width="50"
@@ -4343,7 +4332,7 @@ export default {
4343 4332
         }
4344 4333
 
4345 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 4336
           if (response.data.data.doctorAdevieInfo != null && response.data.data.doctorAdevieInfo.length > 0) {
4348 4337
 
4349 4338
             for (let i = 0; i < response.data.data.doctorAdevieInfo.length; i++) {
@@ -4506,6 +4495,8 @@ export default {
4506 4495
 
4507 4496
         console.log("新时间我哦我哦", this.doctor_advices)
4508 4497
 
4498
+       
4499
+
4509 4500
 
4510 4501
         //过滤口服药
4511 4502
         if (this.org_id == 10265) {
@@ -4560,6 +4551,11 @@ export default {
4560 4551
         }
4561 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 4559
         console.log("医嘱列表=--=----------------------------------------------", this.doctor_advices)
4564 4560
       } else {
4565 4561
         this.loading = false;

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

@@ -332,7 +332,8 @@ export default {
332 332
   methods: {
333 333
     handleStartTimeChange(){
334 334
       this.getlist()
335
-    },  handleEndTimeChange(){
335
+    }, 
336
+     handleEndTimeChange(){
336 337
       this.getlist()
337 338
     },
338 339
     handleSizeChange(limit) {
@@ -558,24 +559,9 @@ export default {
558 559
         if (response.data.state == 1) {
559 560
           this.isLoadingTwo = false
560 561
           var patients = response.data.data.patients
561
-
562
+          console.log("patients----------------",patients)
562 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 565
           var total = response.data.data.total
580 566
           this.total = total
581 567
           var control = response.data.data.control

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

@@ -1032,6 +1032,8 @@ export default {
1032 1032
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1033 1033
         }else if(this.orgId==10537){
1034 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 1037
         }else if(this.orgId==10445){
1036 1038
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1037 1039
         }else if(this.orgId==10635){
@@ -1043,13 +1045,13 @@ export default {
1043 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 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 1049
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
1048 1050
         }
1049 1051
         if(this.orgId ==10445){
1050 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 1055
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1054 1056
         }
1055 1057
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)

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

@@ -3651,6 +3651,7 @@ export default {
3651 3651
 
3652 3652
     selectAdvice(selection, row) {
3653 3653
       console.log("row322232322323",this.adviceType)
3654
+      console.log("adviceTableData",this.adviceTableData)
3654 3655
       if (this.adviceType != 3) {
3655 3656
         this.lstableData = [];
3656 3657
       } else if (this.adviceType != 1) {
@@ -4553,19 +4554,26 @@ export default {
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 4563
         if (response.data.state === 1) {
4562 4564
           var doctoradvice = response.data.data.doctoradvice;
4563 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 4573
           this.dataAdvice = doctoradvice;
4566 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 4578
           } else if (this.adviceType === 1) {
4571 4579
             this.cqtableData = doctoradvice;
@@ -4918,13 +4926,15 @@ export default {
4918 4926
       for (const i in this.multipleSelection) {
4919 4927
         arr.push(this.multipleSelection[i]);
4920 4928
         group.push(this.multipleSelection[i].groupno);
4929
+        ids.push(this.multipleSelection[i].id)
4921 4930
        
4922 4931
       }
4923 4932
       grouptwo.push(this.getdata(group));
4924 4933
       // console.log('组号', group)
4925 4934
       // console.log('组号2', grouptwo)
4926 4935
       // console.log('ids', ids)
4927
-      this.getPrintInfo(group);
4936
+     
4937
+      this.getPrintInfo(group,ids);
4928 4938
     }
4929 4939
   },
4930 4940
   components: {

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

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