Browse Source

Merge remote-tracking branch 'origin/20230223_pad_vue_new_branch' into 20230223_pad_vue_new_branch

28169 1 month ago
parent
commit
924a8f7721

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "2999.999.13699"
2
+  "version": "2999.999.13722"
3 3
 }

+ 10 - 0
src/api/manage.js View File

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { Console } from 'console'
2 3
 
3 4
 export function getEquitAutoInfo (params) {
4 5
   return request({
@@ -24,6 +25,15 @@ export function SaveDisinfetionInfo (params) {
24 25
   })
25 26
 }
26 27
 
28
+export function SaveDisinfetionInfoOne(params){
29
+  console.log("中国=====================",params)
30
+  return request({
31
+    url:"/m/api/savedisinfectioninfoone",
32
+    method:"get",
33
+    params:params,
34
+  })
35
+}
36
+
27 37
 export function getDeviceInformation(params){
28 38
   return request({
29 39
     url:"/m/api/getdeviceinformation",

+ 10 - 0
src/api/newlogin.js View File

@@ -0,0 +1,10 @@
1
+import request from '@/utils/login'
2
+
3
+export function checkMobileIp(params) {
4
+  return request({
5
+    url: '/test',
6
+    method: 'get',
7
+    params: params
8
+  })
9
+}
10
+

+ 92 - 40
src/pages/doctorAdvice/components/new_Inspectiondetails.vue View File

@@ -40,11 +40,32 @@
40 40
         <el-table-column
41 41
           v-for="(item,index) in columns" :key="index"
42 42
           :prop="item.prop"
43
-          :label="item.label"
43
+          :label="item.item_name"
44 44
           width="150">
45
-         <!-- <template slot-scope="scope" >
46
-          {{ scope.row.prop }}
47
-         </template> -->
45
+         <template slot-scope="scope" >
46
+           
47
+          <span v-if="item.range_type == 3">
48
+            {{ getItemValueOne(scope.row.inspect_date,item.item_name) }} 
49
+          </span>
50
+
51
+          <span v-if="item.range_type == 2">
52
+            <span v-if="getItemValue(scope.row.inspect_date,item.item_name)=='阳性'" style="color: red"> {{ getItemValue(scope.row.inspect_date,item.item_name) }}</span>
53
+            <span v-if="getItemValue(scope.row.inspect_date,item.item_name)=='阴性'"> {{ getItemValue(scope.row.inspect_date,item.item_name) }}</span>
54
+          </span>
55
+
56
+          <span v-if="item.range_type == 1">
57
+             <span v-if="parseFloat(getItemValue(scope.row.inspect_date,item.item_name)) < parseFloat(item.range_min) ">
58
+              {{ getItemValue(scope.row.inspect_date,item.item_name) }} <span style="color: blue;" v-if="getItemValue(scope.row.inspect_date,item.item_name)>0">↓</span>
59
+             </span>
60
+             <span v-if="parseFloat(item.range_min)<= parseFloat( getItemValue(scope.row.inspect_date,item.item_name)) && parseFloat(getItemValue(scope.row.inspect_date,item.item_name))  <= parseFloat(item.range_max) ">
61
+               {{ getItemValue(scope.row.inspect_date,item.item_name) }} 
62
+             </span>
63
+             <span v-if="parseFloat(getItemValue(scope.row.inspect_date,item.item_name)) >parseFloat(item.range_max) ">
64
+              {{ getItemValue(scope.row.inspect_date,item.item_name) }} <span style="color: red;" v-if="getItemValue(scope.row.inspect_date,item.item_name)>0">↑</span>
65
+             </span>
66
+          </span>
67
+         
68
+         </template>
48 69
         </el-table-column>
49 70
         <!-- <el-table-column v-for="(item,index) in columns" :key="index"
50 71
           :prop="item.prop"
@@ -186,51 +207,57 @@ export default {
186 207
 
187 208
         const list = response.data.data.inspection
188 209
         const tablehed = response.data.data.referenceList
189
-        console.log('response11111',list);
210
+        console.log('response11111',tablehed);
190 211
 
191
-        // this.tableData = list
212
+        this.tableData = list
192 213
         var columns = []
193
-        const date = []
194
-        var date1 =[]
195
-        let table = [{inspect_date:''}]
196
-        const datable =[]
214
+        // const date = []
215
+        // var date1 =[]
216
+        // let table = [{inspect_date:''}]
217
+        // const datable =[]
197 218
         // const arr ={}
198
-        if(tablehed.length >0){
199
-          for(let i=0;i<tablehed.length;i++){
200
-            const obj ={
201
-              label:tablehed[i].item_name,
202
-              // prop:child[i].item_name
203
-              prop:'value'+(i+1)
204
-            }
205
-            columns.push(obj)
206
-          }
207
-        }
219
+        // if(tablehed.length >0){
220
+        //   for(let i=0;i<tablehed.length;i++){
221
+        //     const obj ={
222
+        //       label:tablehed[i].item_name,
223
+        //       prop:'value'+(i+1)
224
+        //     }
225
+        //     columns.push(obj)
226
+        //   }
227
+        // }
228
+
229
+        this.columns = tablehed
208 230
 
209 231
         // console.log('list[0].Child121',columns);
210 232
 
211
-        list.forEach(item =>{
212
-          const datable1 ={
213
-            inspect_date:item.inspect_date,
214
-          }
215
-          datable.push(datable1)
233
+        // list.forEach(item =>{
234
+        //   const datable1 ={
235
+        //     inspect_date:item.inspect_date,
236
+        //   }
237
+        //   datable.push(datable1)
216 238
 
217
-          item.Child.forEach((item1,index1) =>{
218
-            for(let i in datable){
219
-              for(let j in columns){
220
-                if(item1.inspect_date == datable[i].inspect_date && columns[j].label == item1.item_name){
221
-                    datable[i][columns[j].prop] = item1.inspect_value
222
-                }
223
-              }
224
-            }
225
-          })
226
-        })
227
-        table =datable
228
-        this.datable = datable
239
+        //   item.Child.forEach((item1,index1) =>{
240
+        //     for(let i in datable){
241
+        //       for(let j in columns){
242
+        //         if(item1.inspect_date == datable[i].inspect_date && columns[j].label == item1.item_name){
243
+        //             console.log("item1---------------",item1)
244
+        //             if(item1.inspect_type == 2){
245
+        //               datable[i][columns[j].prop] = item1.inspect_value 
246
+        //             }
247
+        //             datable[i][columns[j].prop] = item1.inspect_value
248
+        //         }
249
+        //       }
250
+        //     }
251
+        //   })
252
+        // })
253
+        // table =datable
254
+        // this.datable = datable
229 255
         // console.log('ppppp',columns);
230 256
 
231
-        this.tableData = table
232
-        this.columns = columns
233
-        console.log('11111',this.tableData);
257
+        // this.tableData = table
258
+        // console.log("columns",columns)
259
+        // this.columns = columns
260
+        // console.log('11111',this.tableData);
234 261
       })
235 262
 
236 263
     },
@@ -241,6 +268,31 @@ export default {
241 268
         }
242 269
       }
243 270
     },
271
+    getItemValue(inspect_date,item_name){
272
+   
273
+      var inspect_value = ""
274
+      for(let i=0;i<this.tableData.length;i++){
275
+        for(let j=0;j<this.tableData[i].Child.length;j++){
276
+          if(inspect_date == this.tableData[i].Child[j].inspect_date && item_name == this.tableData[i].Child[j].item_name){
277
+            inspect_value = this.tableData[i].Child[j].inspect_value
278
+          }
279
+        }
280
+        
281
+      }
282
+      return inspect_value
283
+    },
284
+    getItemValueOne(inspect_date,item_name){
285
+      var inspect_value = ""
286
+      for(let i=0;i<this.tableData.length;i++){
287
+        for(let j=0;j<this.tableData[i].Child.length;j++){
288
+          if(inspect_date == this.tableData[i].Child[j].inspect_date && item_name == this.tableData[i].Child[j].item_name){
289
+            inspect_value = this.tableData[i].Child[j].inspect_value
290
+          }
291
+        }
292
+        
293
+      }
294
+      return inspect_value
295
+    },
244 296
     changeoption(val){
245 297
       // console.log('val',val);
246 298
       const option = this.options

+ 31 - 23
src/pages/home/login.vue View File

@@ -77,6 +77,15 @@ import { setRem } from "@/libs/functionRem";
77 77
 import { Dialog } from "vant";
78 78
 import Popup from "./Popup/index"
79 79
 import axios from 'axios'
80
+const https = require('https');
81
+const agent = new https.Agent({  
82
+  rejectUnauthorized: false  // 忽略证书验证
83
+});
84
+const instance = axios.create({
85
+  httpsAgent: agent,
86
+  baseURL: 'http://192.168.0.38:8080', // API 的基础 URL
87
+  timeout: 30000 // 请求超时时间
88
+});
80 89
 export default {
81 90
   name: "Home",
82 91
   components:{
@@ -254,30 +263,29 @@ export default {
254 263
           }
255 264
         })
256 265
     },
257
-    checkMobileIp(){
258
-      checkMobileIp().then(response=>{
259
-        if(response.data.state == 1){
260
-          
261
-        }
262
-      })
266
+   checkMobileIp() {
267
+      console.log("000000000000000000000000000000000000");
268
+
269
+      var that = this;
270
+
271
+      instance.get('/test').then(function(response) {
272
+          console.log("response", response);
273
+          console.log("response.data.data.flag", response.data.data.flag);
274
+
275
+          if (response.data.state == 0) {
276
+            that.$message.error(response.data.data.msg);
277
+            return false;
278
+          }
279
+
280
+          if (response.data.state == 1) {
281
+            console.log("hahahahh");
282
+            that.$router.replace({ path: "/" });
283
+           
284
+          }
285
+        }).catch(function(error) {
286
+          console.error("Error:", error);
287
+        });
263 288
     },
264
-    // checkMobileIp(){
265
-    //   console.log("000000000000000000000000000000000000")
266
-    //   var that = this
267
-    //   axios.get('https://192.168.2.80:8080/test').then(function(response) {
268
-    //       console.log("response",response)
269
-    //       console.log("response.data.data.flag",response.data.data.flag)
270
-    //       if (response.data.state == 0) {
271
-    //         that.$message.error(response.data.data.msg);
272
-    //         return false
273
-    //       } 
274
-    //       if(response.data.state == 1) {
275
-    //         console.log("hahahahh")
276
-    //         that.$router.replace({ path: "/" });
277
-    //       }
278
-    //     }).catch(function(error) {
279
-    //   })
280
-    // },
281 289
     showForgetPwdDialog() {
282 290
       Dialog.confirm({
283 291
         title: "账号或密码不正确",

+ 45 - 20
src/pages/main/DialysisArea.vue View File

@@ -402,18 +402,19 @@ export default {
402 402
       }
403 403
       this.zoneMapObj = zoneMap
404 404
       console.log('zoneMap----------------', zoneMap)
405
+
405 406
       var zones = []
406
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
407
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
407 408
 
408 409
       for (var zoneName in zoneMap) {
409
-        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
410
+        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:zoneMap[zoneName].sort })
410 411
       }
411 412
 
412 413
       zones = zones.sort(function (a, b) {
413
-        return a.value > b.value
414
-      })
414
+          return a.sort - b.sort
415
+       })
415 416
       // this.zones = zones
416
-      // console.log('zones323232332', zones)
417
+      console.log('zones323232332', zones)
417 418
       this.zonesList = zones
418 419
 
419 420
       var dialysis_scheduals = []
@@ -440,16 +441,26 @@ export default {
440 441
               zones[i].text = '全部分区'
441 442
               zones[i].zone_name = '全部分区'
442 443
               zones[i].text = zones[i].text + '(' + total + ')'
444
+              zones[i].sort = 0
443 445
             }
444 446
             if (zones[i].text == dialysis_scheduals[j].zone_name) {
445 447
               zones[i].zone_name = zones[i].text
446 448
               zones[i].text = zones[i].text + '(' + dialysis_scheduals[j].scheduals.length + ')'
449
+              zones[i].sort = zones[i].sort
447 450
             }
448 451
           }
449 452
         }
450 453
 
454
+        
455
+        zones = zones.sort(function (a, b) {
456
+          return a.sort - b.sort
457
+        })
458
+
459
+        console.log("总过=================================",zones)
451 460
         this.zones = []
452 461
         this.zones = zones
462
+
463
+        
453 464
       }
454 465
 
455 466
       this.dialysis_scheduals = dialysis_scheduals
@@ -723,20 +734,22 @@ export default {
723 734
               }
724 735
               schedualMap[schedual.device_number.zone.name].push(schedual)
725 736
               if (zoneMap[schedual.device_number.zone.name] == null) {
726
-                zoneMap[schedual.device_number.zone.name] =
727
-                  schedual.device_number.zone
737
+                zoneMap[schedual.device_number.zone.name] = schedual.device_number.zone
728 738
               }
729 739
             }
730 740
             this.zoneMapObj = zoneMap
731 741
             var zones = []
732
-            zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
733
-
742
+            zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
743
+              
744
+            console.log("zoneMap-================================",zoneMap)
734 745
             for (var zoneName in zoneMap) {
735
-              zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
746
+              console.log("zoneNmae-----------------",zoneName)
747
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:zoneMap[zoneName].sort })
736 748
             }
737
-
749
+            
750
+            
738 751
             zones = zones.sort(function (a, b) {
739
-              return a.value > b.value
752
+                return a.sort - b.sort
740 753
             })
741 754
             // this.zones = zones
742 755
             this.zoneAllList = zones
@@ -752,7 +765,8 @@ export default {
752 765
               }
753 766
               dialysis_scheduals.push({
754 767
                 zone_name: zone.text,
755
-                scheduals: scheduals
768
+                scheduals: scheduals,
769
+                sort:zone.sort,
756 770
               })
757 771
             }
758 772
 
@@ -768,15 +782,22 @@ export default {
768 782
                     zones[i].text = '全部分区'
769 783
                     zones[i].zone_name = '全部分区'
770 784
                     zones[i].text = zones[i].text + '(' + (total).toString() + ')'
785
+                    zones[i].sort = 0
771 786
                   }
772 787
                   if (zones[i].text == dialysis_scheduals[j].zone_name) {
773 788
                     zones[i].zone_name = zones[i].text
774 789
                     zones[i].text = zones[i].text + '(' + (dialysis_scheduals[j].scheduals.length).toString() + ')'
790
+                    zones[i].sort = zones[i].sort
775 791
                   }
776 792
                 }
777 793
               }
778 794
               this.zones = []
779 795
 
796
+              zones = zones.sort(function (a, b) {
797
+                 return a.sort - b.sort
798
+               })
799
+              console.log("zones=======================",zones )
800
+
780 801
               this.zones = zones
781 802
             }
782 803
 
@@ -886,15 +907,15 @@ export default {
886 907
             }
887 908
 
888 909
             var zones = []
889
-            zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
910
+            zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
890 911
 
891 912
             for (var zoneName in zoneMap) {
892
-              zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
913
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:zoneMap[zoneName].sort })
893 914
             }
894 915
 
895 916
             zones = zones.sort(function (a, b) {
896
-              return a.value > b.value
897
-            })
917
+               return a.sort - b.sort
918
+             })
898 919
             this.zonesList = []
899 920
             this.zonesList = zones
900 921
             var dialysis_scheduals = []
@@ -1337,14 +1358,14 @@ export default {
1337 1358
       }
1338 1359
       console.log('zoneMapObj', this.zoneMapObj)
1339 1360
       var zones = []
1340
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
1361
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
1341 1362
 
1342 1363
       for (var zoneName in this.zoneMapObj) {
1343
-        zones.push({ value: this.zoneMapObj[zoneName].id, text: zoneName, zone_name: zoneName })
1364
+        zones.push({ value: this.zoneMapObj[zoneName].id, text: zoneName, zone_name: zoneName,sort: this.zoneMapObj[zoneName].sort })
1344 1365
       }
1345 1366
 
1346 1367
       zones = zones.sort(function (a, b) {
1347
-        return a.value > b.value
1368
+          return a.sort - b.sort
1348 1369
       })
1349 1370
 
1350 1371
       if (index > 0) {
@@ -1364,9 +1385,11 @@ export default {
1364 1385
               zones[i].text = '全部分区'
1365 1386
               zones[i].zone_name = '全部分区'
1366 1387
               zones[i].text = zones[i].text + '(' + total + ')'
1388
+              zones[i].sort=0
1367 1389
             }
1368 1390
             if (zones[i].text == this.dialysis_scheduals[j].zone_name) {
1369 1391
               zones[i].text = zones[i].text + '(' + this.dialysis_scheduals[j].bedList.length + ')'
1392
+              zones[i].sort = zones[i].sort
1370 1393
             }
1371 1394
           }
1372 1395
         }
@@ -1390,9 +1413,11 @@ export default {
1390 1413
               zones[i].text = '全部分区'
1391 1414
               zones[i].zone_name = '全部分区'
1392 1415
               zones[i].text = zones[i].text + '(' + total + ')'
1416
+              zones[i].sort=0
1393 1417
             }
1394 1418
             if (zones[i].text == this.dialysis_scheduals[j].zone_name) {
1395 1419
               zones[i].text = zones[i].text + '(' + this.dialysis_scheduals[j].bedList.length + ')'
1420
+              zones[i].sort = zones[i].sort
1396 1421
             }
1397 1422
           }
1398 1423
         }

+ 443 - 67
src/pages/main/PatientBox.vue View File

@@ -675,8 +675,23 @@
675 675
                 <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
676 676
                 <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
677 677
 
678
-                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">mg</span>
679
-                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">mg</span>
678
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
679
+                 <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
680
+                 <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
681
+                </span>
682
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
683
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
684
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
685
+                </span>
686
+
687
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
688
+                 <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
689
+                 <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
690
+                </span>
691
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
692
+                  mg
693
+                </span>
694
+
680 695
 
681 696
                 维持: {{patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_weichi?patient.prescription&&patient.prescription.anticoagulant_weichi:"" }}
682 697
                 {{patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi:"" }}
@@ -718,8 +733,23 @@
718 733
                 <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
719 734
                 <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
720 735
 
721
-                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">mg</span>
722
-                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">mg</span>
736
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
737
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
738
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
739
+                </span>
740
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
741
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
742
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
743
+                </span>
744
+
745
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
746
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
747
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
748
+                </span>
749
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
750
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
751
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
752
+                </span>
723 753
 
724 754
                 总量: 
725 755
                 {{  patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_zongliang?patient.prescription&&patient.prescription.anticoagulant_zongliang:"" }}
@@ -762,8 +792,23 @@
762 792
                 <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
763 793
                 <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
764 794
 
765
-                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">mg</span>
766
-                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">mg</span>
795
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
796
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
797
+                  <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
798
+                </span>
799
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
800
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
801
+                  <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
802
+                </span>
803
+
804
+                <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
805
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
806
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
807
+                </span>
808
+                <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
809
+                  <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
810
+                  <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
811
+                </span>
767 812
 
768 813
 
769 814
               </p>
@@ -901,13 +946,36 @@
901 946
           <li>
902 947
             <span class="iconfont">&#xe6de;</span>
903 948
             床位号 :
904
-            {{
949
+            <span v-if="$store.getters.user.template_info.org_id ==10340">
950
+              <span style="color:blue" v-if="patient.dialysis_order && patient.dialysis_order.device_number!=undefined && (patient.dialysis_order.device_number.id == 4414 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4449 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4456 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4416 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4448 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4468 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4451 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4457 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4495)">
951
+
952
+                {{
953
+                patient.dialysis_order &&
954
+                patient.dialysis_order.device_number &&
955
+                patient.dialysis_order.device_number.number.length > 0
956
+                  ? patient.dialysis_order.device_number.number
957
+                  : patient.device_number.number
958
+               }}
959
+              </span> 
960
+              <span v-else>
961
+                {{
962
+                  patient.dialysis_order &&
963
+                  patient.dialysis_order.device_number &&
964
+                  patient.dialysis_order.device_number.number.length > 0
965
+                    ? patient.dialysis_order.device_number.number
966
+                    : patient.device_number.number
967
+               }}
968
+              </span>
969
+            </span>
970
+            <span v-if="$store.getters.user.template_info.org_id!=10340">
971
+              {{
905 972
               patient.dialysis_order &&
906 973
               patient.dialysis_order.device_number &&
907 974
               patient.dialysis_order.device_number.number.length > 0
908 975
                 ? patient.dialysis_order.device_number.number
909 976
                 : patient.device_number.number
910 977
             }}
978
+            </span>
911 979
           </li>
912 980
           <li>
913 981
             <span class="iconfont">&#xe6f6;</span>
@@ -1055,7 +1123,7 @@
1055 1123
 
1056 1124
     <!-- 消毒弹窗 -->
1057 1125
     <van-popup
1058
-      v-if="$store.getters.user.template_info.org_id!=9671"
1126
+      v-if="$store.getters.user.template_info.org_id==9671"
1059 1127
       title="消毒时间"
1060 1128
       v-model="showPlan"
1061 1129
       class="appPopup"
@@ -1143,7 +1211,7 @@
1143 1211
 
1144 1212
 
1145 1213
     <van-popup
1146
-      v-if="$store.getters.user.template_info.org_id==9671"
1214
+      v-if="$store.getters.user.template_info.org_id!=9671"
1147 1215
       title="消毒时间"
1148 1216
       v-model="showPlan"
1149 1217
       class="appPopup"
@@ -1256,7 +1324,7 @@
1256 1324
           </div>
1257 1325
 
1258 1326
           <div class="item">
1259
-            <h2 class="name">床位更换:</h2>
1327
+            <h2 class="name">床位更换:</h2>
1260 1328
             <div class="content" @click="showPicker5 = true">
1261 1329
               <span
1262 1330
                 class="text"
@@ -1267,6 +1335,43 @@
1267 1335
             </div>
1268 1336
           </div>
1269 1337
 
1338
+          <div class="item">
1339
+            <h2 class="name">透析机消毒液(更换):</h2>
1340
+            <div class="content" @click="showPicker6 = true">
1341
+              <span
1342
+                class="text"
1343
+                style="width: 100px"
1344
+                >{{ kuangvalue6 }}</span
1345
+              >
1346
+              <span class="iconfont">&#xe6f9;</span>
1347
+            </div>
1348
+          </div>
1349
+
1350
+
1351
+          <div class="item">
1352
+            <h2 class="name">空气滤网清洁:</h2>
1353
+            <div class="content" @click="showPicker7 = true">
1354
+              <span
1355
+                class="text"
1356
+                style="width: 100px"
1357
+                >{{ kuangvalue7 }}</span
1358
+              >
1359
+              <span class="iconfont">&#xe6f9;</span>
1360
+            </div>
1361
+          </div>
1362
+
1363
+          <div class="item">
1364
+            <h2 class="name">细菌过滤器(更换):</h2>
1365
+            <div class="content" @click="showPicker8 = true">
1366
+              <span
1367
+                class="text"
1368
+                style="width: 100px"
1369
+                >{{ kuangvalue8 }}</span
1370
+              >
1371
+              <span class="iconfont">&#xe6f9;</span>
1372
+            </div>
1373
+          </div>
1374
+
1270 1375
 
1271 1376
         </div>
1272 1377
 
@@ -1332,6 +1437,33 @@
1332 1437
             @confirm="onConfirmFour"
1333 1438
           />
1334 1439
         </van-popup>
1440
+
1441
+        <van-popup v-model:show="showPicker6" round position="bottom">
1442
+          <van-picker
1443
+            show-toolbar
1444
+            :columns="listOne"
1445
+            @cancel="showPicker6=false"
1446
+            @confirm="onConfirmFive"
1447
+          />
1448
+        </van-popup>
1449
+
1450
+        <van-popup v-model:show="showPicker7" round position="bottom">
1451
+          <van-picker
1452
+            show-toolbar
1453
+            :columns="listTwo"
1454
+            @cancel="showPicker7=false"
1455
+            @confirm="onConfirmSix"
1456
+          />
1457
+        </van-popup>
1458
+
1459
+        <van-popup v-model:show="showPicker8" round position="bottom">
1460
+          <van-picker
1461
+            show-toolbar
1462
+            :columns="listThree"
1463
+            @cancel="showPicker8=false"
1464
+            @confirm="onConfirmSeven"
1465
+          />
1466
+        </van-popup>
1335 1467
       </div>
1336 1468
     </van-popup>
1337 1469
   </div>
@@ -1356,9 +1488,9 @@ import {
1356 1488
   getDialysisRecordOrde
1357 1489
 } from '@/api/dialysis'
1358 1490
 const moment = require('moment')
1359
-import { getDisInfectionTime, SaveDisinfetionInfo } from '@/api/manage'
1491
+import { getDisInfectionTime, SaveDisinfetionInfo,SaveDisinfetionInfoOne } from '@/api/manage'
1360 1492
 import { GetRemindLongAdviceOne } from '@/api/advice'
1361
-import { Console } from 'console'
1493
+import { Console, info } from 'console'
1362 1494
 export default {
1363 1495
   name: 'PatientBox',
1364 1496
   components: {
@@ -1403,6 +1535,8 @@ export default {
1403 1535
       showPicker4:false,
1404 1536
       showPicker5:false,
1405 1537
       showPicker6:false,
1538
+      showPicker7:false,
1539
+      showPicker8:false,
1406 1540
       receiver_treatment_access: {}, // 接诊评估
1407 1541
       predialysis_evaluation: {}, // 透前评估
1408 1542
       last_predialysis_evaluation: {}, // 上次透前评估
@@ -1484,6 +1618,8 @@ export default {
1484 1618
     kuangvalue4:"",
1485 1619
     kuangvalue5:"",
1486 1620
     kuangvalue6:"",
1621
+    kuangvalue7:"",
1622
+    kuangvalue8:"",
1487 1623
     // 机表消毒方式
1488 1624
     disinfectType: [
1489 1625
       { value: 0, text: "/" },
@@ -1497,7 +1633,9 @@ export default {
1497 1633
       { value: 2, text: "500mg/l含氯消毒剂" },
1498 1634
       { value: 3, text: "1000mg/l含氯消毒剂" },
1499 1635
       { value: 4, text: "1500mg/l含氯消毒剂" },
1500
-      { value: 5,  text:"消毒湿巾"}
1636
+      { value: 5,  text:"消毒湿巾"},
1637
+      { value: 6,  text:"1.85g/L季铵盐"},
1638
+      { value:7,   text:"2000mg/l含氯消毒剂"}
1501 1639
     ],
1502 1640
     // 夜路消毒方式
1503 1641
     sterilizeType: [
@@ -1523,6 +1661,7 @@ export default {
1523 1661
         { value: 8, text: "50%冰醋酸" },
1524 1662
         { value: 9, text: "5%次氯酸钠" },
1525 1663
         { value: 10,text:"25%的柠檬酸+5%次氯酸钠"},
1664
+        { value: 11,text:"20%柠檬酸+5%次氯酸钠"}
1526 1665
       ],
1527 1666
        // 床单位更换
1528 1667
        bedType: [
@@ -1531,6 +1670,20 @@ export default {
1531 1670
         { value: 2, text: "被套" },
1532 1671
         { value: 3, text: "枕套" },
1533 1672
 
1673
+      ],
1674
+
1675
+       // 床单位更换
1676
+       listOne: [
1677
+        { value: 1, text: "更换" },
1678
+        { value:2,text:"未更换"},
1679
+      ],
1680
+      listTwo: [
1681
+        { value: 1, text: "清洁" },
1682
+        { value: 2,  text:"未清洁"},
1683
+      ],
1684
+      listThree: [
1685
+        { value: 1, text: "更换" },
1686
+        { value: 2,  text:"未更换"},
1534 1687
       ],
1535 1688
       timenow:0,
1536 1689
       last_befor:{},
@@ -2587,7 +2740,7 @@ export default {
2587 2740
       this.zone_id = schedual.device_number.zone.id
2588 2741
       this.patient_id = schedual.patient_id
2589 2742
       this.mode_id = schedual.mode_id
2590
-      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829  || this.$store.getters.user.template_info.org_id == 10490) {
2743
+      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829  || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10318) {
2591 2744
         console.log('下机时间', schedual.dialysis_order.end_time)
2592 2745
         if (schedual && schedual.dialysis_order != null) {
2593 2746
           this.start_time_str = this.getTimeTwo(schedual.dialysis_order.end_time)
@@ -2600,7 +2753,7 @@ export default {
2600 2753
         schedule_date: schedual.schedule_date
2601 2754
       }
2602 2755
       console.log('params23232323', params)
2603
-      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101) {
2756
+      if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10318) {
2604 2757
         getDialysisRecordOrde(params).then((response) => {
2605 2758
           if (response.data.state == 1) {
2606 2759
             var order = response.data.data.order
@@ -2678,16 +2831,18 @@ export default {
2678 2831
       })
2679 2832
     },
2680 2833
     commitInfoOne () {
2834
+
2681 2835
       var way = 0
2682 2836
       for(let i=0;i<this.disinfectType.length;i++){
2683 2837
         if(this.kuangvalue == this.disinfectType[i].text){
2684
-           way = this.disinfectType.value
2838
+           way = this.disinfectType[i].value
2685 2839
         }
2686 2840
       }
2841
+     
2687 2842
       var machine_disinfectant =0
2688 2843
       for(let i=0;i<this.disinfectantType.length;i++){
2689
-          if(this.kuangvalue2 == this.disinfectType[i].text){
2690
-            machine_disinfectant = this.disinfectType[i].value
2844
+          if(this.kuangvalue2 == this.disinfectantType[i].text){
2845
+            machine_disinfectant = this.disinfectantType[i].value
2691 2846
           }
2692 2847
       }
2693 2848
 
@@ -2705,13 +2860,41 @@ export default {
2705 2860
          }
2706 2861
       }
2707 2862
 
2863
+      console.log("bedType",this.bedType)
2708 2864
       var bed_way =0
2709 2865
       for(let i=0;i<this.bedType.length;i++){
2710 2866
         if(this.kuangvalue5 == this.bedType[i].text){
2711
-            bed_way== this.fluidPathType[i].bedType
2867
+            bed_way = this.bedType[i].value
2712 2868
         }
2713 2869
       }
2714 2870
 
2871
+      var dialysis_checked  =0 
2872
+
2873
+      if(this.kuangvalue6 == "更换"){
2874
+        dialysis_checked = 1
2875
+      }
2876
+      if(this.kuangvalue6 == "未更换"){
2877
+        dialysis_checked = 0
2878
+      }
2879
+
2880
+      var clean  =0 
2881
+
2882
+      if(this.kuangvalue7 == "清洁"){
2883
+        clean = 1
2884
+      }
2885
+      if(this.kuangvalue7 == "未清洁"){
2886
+        clean = 0
2887
+      }
2888
+
2889
+      var germ_checked =0
2890
+      if(this.kuangvalue8 == "更换"){
2891
+          germ_checked =1
2892
+      }
2893
+      if(this.kuangvalue8 == "未更换"){
2894
+          germ_checked =0
2895
+      }
2896
+      console.log("kuangvalue",this.kuangvalue5)
2897
+
2715 2898
       const params = {
2716 2899
         bed_id: this.bed_id,
2717 2900
         start_time: this.start_time_str,
@@ -2727,7 +2910,11 @@ export default {
2727 2910
         disinfectant_way:disinfectant_way,
2728 2911
         disinfectant:disinfectant,
2729 2912
         bed_way:bed_way,
2913
+        dialysis_checked:dialysis_checked,
2914
+        clean:clean,
2915
+        germ_checked:germ_checked,
2730 2916
       }
2917
+     
2731 2918
       if (this.disinfec_time == '') {
2732 2919
         this.$toast('消毒时长不能为空!')
2733 2920
         return false
@@ -2737,8 +2924,8 @@ export default {
2737 2924
         return false
2738 2925
       }
2739 2926
       console.log('params', params)
2740
-
2741
-      SaveDisinfetionInfo(params).then((response) => {
2927
+    
2928
+      SaveDisinfetionInfoOne(params).then((response) => {
2742 2929
         if (response.data.state == 1) {
2743 2930
           var information = response.data.data.information
2744 2931
 
@@ -2793,6 +2980,69 @@ export default {
2793 2980
       var u = navigator.userAgent
2794 2981
       var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
2795 2982
       var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
2983
+
2984
+      var way = 0
2985
+      for(let i=0;i<this.disinfectType.length;i++){
2986
+        if(this.kuangvalue == this.disinfectType[i].text){
2987
+           way = this.disinfectType[i].value
2988
+        }
2989
+      }
2990
+     
2991
+      var machine_disinfectant =0
2992
+      for(let i=0;i<this.disinfectantType.length;i++){
2993
+          if(this.kuangvalue2 == this.disinfectantType[i].text){
2994
+            machine_disinfectant = this.disinfectantType[i].value
2995
+          }
2996
+      }
2997
+
2998
+      var disinfectant_way = 0
2999
+      for(let i=0;i<this.sterilizeType.length;i++){
3000
+        if(this.kuangvalue3 == this.sterilizeType[i].text){
3001
+           disinfectant_way = this.sterilizeType[i].value
3002
+        }
3003
+      }
3004
+
3005
+      var disinfectant=0
3006
+      for(let i=0;i<this.fluidPathType.length;i++){
3007
+         if(this.kuangvalue4 == this.fluidPathType[i].text){
3008
+            disinfectant = this.fluidPathType[i].value
3009
+         }
3010
+      }
3011
+
3012
+      console.log("bedType",this.bedType)
3013
+      var bed_way =0
3014
+      for(let i=0;i<this.bedType.length;i++){
3015
+        if(this.kuangvalue5 == this.bedType[i].text){
3016
+            bed_way = this.bedType[i].value
3017
+        }
3018
+      }
3019
+
3020
+      var dialysis_checked  =0 
3021
+
3022
+      if(this.kuangvalue6 == "更换"){
3023
+        dialysis_checked = 1
3024
+      }
3025
+      if(this.kuangvalue6 == "未更换"){
3026
+        dialysis_checked = 0
3027
+      }
3028
+
3029
+      var clean  =0 
3030
+
3031
+      if(this.kuangvalue7 == "清洁"){
3032
+        clean = 1
3033
+      }
3034
+      if(this.kuangvalue7 == "未清洁"){
3035
+        clean = 0
3036
+      }
3037
+
3038
+      var germ_checked =0
3039
+      if(this.kuangvalue8 == "更换"){
3040
+          germ_checked =1
3041
+      }
3042
+      if(this.kuangvalue8 == "未更换"){
3043
+          germ_checked =0
3044
+      }
3045
+      console.log("kuangvalue",this.kuangvalue5)
2796 3046
       const params = {
2797 3047
         bed_id: this.bed_id,
2798 3048
         start_time: this.start_time_str,
@@ -2802,14 +3052,22 @@ export default {
2802 3052
         zone_id: this.zone_id,
2803 3053
         patient_id: this.patient_id,
2804 3054
         mode_id: this.mode_id,
2805
-        schedule_type: this.schedule_type
3055
+        schedule_type: this.schedule_type,
3056
+        way:way,
3057
+        machine_disinfectant:machine_disinfectant,
3058
+        disinfectant_way:disinfectant_way,
3059
+        disinfectant:disinfectant,
3060
+        bed_way:bed_way,
3061
+        dialysis_checked:dialysis_checked,
3062
+        clean:clean,
3063
+        germ_checked:germ_checked,
2806 3064
       }
2807 3065
       if (this.disinfec_time == '') {
2808 3066
         this.$toast('消毒时长不能为空!')
2809 3067
         return false
2810 3068
       }
2811 3069
       // console.log("params",params)
2812
-      SaveDisinfetionInfo(params).then((response) => {
3070
+      SaveDisinfetionInfoOne(params).then((response) => {
2813 3071
         if (response.data.state == 1) {
2814 3072
           var information = response.data.data.information
2815 3073
 
@@ -2880,49 +3138,62 @@ export default {
2880 3138
 
2881 3139
           this.disinfec_time = plan
2882 3140
 
2883
-          // var planObj = response.data.data.planObj
2884
-          // if(planObj!="" && planObj!=undefined){
2885
-          //   var way = ""
2886
-          //   for(let i=0;i<this.disinfectType.length;i++){
2887
-          //     if(planObj.way == this.disinfectType[i].value){
2888
-          //        way = this.disinfectantType[i].text
2889
-          //     }
2890
-          //   }
2891
-          //   this.kuangvalue =way
2892
-
2893
-          //   var machine_disinfectant = ""
2894
-          //   for(let i=0;i<this.disinfectantType.length;i++){
2895
-          //       if(planObj.device_type == this.disinfectType[i].value){
2896
-          //         machine_disinfectant = this.disinfectType[i].text
2897
-          //       }
2898
-          //   }
2899
-          //   this.kuangvalue2 = machine_disinfectant
2900
-
2901
-          //   var disinfectant_way = ""
2902
-          //   for(let i=0;i<this.sterilizeType.length;i++){
2903
-          //     if(planObj.sterilizeType == this.sterilizeType[i].text){
2904
-          //       disinfectant_way = this.sterilizeType[i].text
2905
-          //     }
2906
-          //   }
2907
-          //   this.kuangvalue3 = disinfectant_way
2908
-
2909
-          //   var disinfectant=""
2910
-          //   for(let i=0;i<this.fluidPathType.length;i++){
2911
-          //     if(planObj.disinfectant == this.fluidPathType[i].value){
2912
-          //        disinfectant = this.fluidPathType[i].text
2913
-          //     }
2914
-          //   }
2915
-          //   this.kuangvalue4 = disinfectant
2916
-
2917
-          //   var bed_type = ""
2918
-          //   for(let i=0;i<this.bedType.length;i++){
2919
-          //     if(planObj.bed_way == this.bedType[i].value){
2920
-          //        bed_type = this.bedType[i].text
2921
-          //     }
2922
-          //   }
2923
-          //   this.kuangvalue5 =bed_type
2924
-
2925
-          // }
3141
+          var planObj = response.data.data.planObj
3142
+          
3143
+          console.log("plaobj",planObj)
3144
+          // 机表(床单元、床旁桌)消毒方式
3145
+          if(planObj!="" && planObj!=undefined){
3146
+            var way = ""
3147
+            for(let i=0;i<this.disinfectType.length;i++){
3148
+              if(planObj.way == this.disinfectType[i].value){
3149
+                 way = this.disinfectType[i].text
3150
+              }
3151
+            }
3152
+            this.kuangvalue =way
3153
+
3154
+
3155
+            //机表(床单元、床旁桌)消毒液
3156
+            var machine_disinfectant = ""
3157
+            for(let i=0;i<this.disinfectantType.length;i++){
3158
+                if(planObj.machine_disinfectant == this.disinfectantType[i].value){
3159
+                  machine_disinfectant = this.disinfectantType[i].text
3160
+                }
3161
+            }
3162
+            console.log("machine_disinfectant",machine_disinfectant)
3163
+            this.kuangvalue2 = machine_disinfectant
3164
+
3165
+
3166
+            // 夜路消毒方式
3167
+            var disinfectant_way = ""
3168
+            for(let i=0;i<this.sterilizeType.length;i++){
3169
+              if(planObj.disinfectan_way == this.sterilizeType[i].value){
3170
+                disinfectant_way = this.sterilizeType[i].text
3171
+              }
3172
+            }
3173
+            console.log("machine_disinfectant",disinfectant_way)
3174
+            this.kuangvalue3 = disinfectant_way
3175
+
3176
+            //液路消毒液
3177
+            var disinfectant=""
3178
+            for(let i=0;i<this.fluidPathType.length;i++){
3179
+              if(planObj.disinfectant == this.fluidPathType[i].value){
3180
+                 disinfectant = this.fluidPathType[i].text
3181
+              }
3182
+            }
3183
+            console.log("machine_disinfectant",disinfectant)
3184
+            this.kuangvalue4 = disinfectant
3185
+
3186
+           // 床单位更换
3187
+            var bed_type = ""
3188
+            for(let i=0;i<this.bedType.length;i++){
3189
+              if(planObj.bed_way == this.bedType[i].value){
3190
+                 bed_type = this.bedType[i].text
3191
+              }
3192
+            }
3193
+            console.log("machine_disinfectant",bed_type)
3194
+            this.kuangvalue5 =bed_type
3195
+ 
3196
+          }
2926 3197
           var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
2927 3198
           console.log('total', total)
2928 3199
           this.select_time_str = this.getTimeTwo(total)
@@ -2968,6 +3239,85 @@ export default {
2968 3239
               '{y}-{m}-{d} {h}:{i}'
2969 3240
             )
2970 3241
             this.disinfec_time = infomation.long_time
3242
+
3243
+
3244
+            if(infomation!="" && infomation!=undefined){
3245
+              var way = ""
3246
+              for(let i=0;i<this.disinfectType.length;i++){
3247
+                if(infomation.disinfect_type == this.disinfectType[i].value){
3248
+                  way = this.disinfectType[i].text
3249
+                }
3250
+              }
3251
+              this.kuangvalue =way
3252
+
3253
+
3254
+            //机表(床单元、床旁桌)消毒液
3255
+            var machine_disinfectant = ""
3256
+            for(let i=0;i<this.disinfectantType.length;i++){
3257
+                if(infomation.disinfectant_type == this.disinfectantType[i].value){
3258
+                  machine_disinfectant = this.disinfectantType[i].text
3259
+                }
3260
+            }
3261
+           
3262
+            this.kuangvalue2 = machine_disinfectant
3263
+
3264
+
3265
+            // 夜路消毒方式
3266
+            var disinfectant_way = ""
3267
+            for(let i=0;i<this.sterilizeType.length;i++){
3268
+              if(infomation.fluid_path == this.sterilizeType[i].value){
3269
+                disinfectant_way = this.sterilizeType[i].text
3270
+              }
3271
+            }
3272
+            console.log("machine_disinfectant",disinfectant_way)
3273
+            this.kuangvalue3 = disinfectant_way
3274
+
3275
+            //液路消毒液
3276
+            var disinfectant=""
3277
+            for(let i=0;i<this.fluidPathType.length;i++){
3278
+              if(infomation.disinfectant == this.fluidPathType[i].value){
3279
+                 disinfectant = this.fluidPathType[i].text
3280
+              }
3281
+            }
3282
+            console.log("machine_disinfectant",disinfectant)
3283
+            this.kuangvalue4 = disinfectant
3284
+
3285
+           // 床单位更换
3286
+            var bed_type = ""
3287
+            for(let i=0;i<this.bedType.length;i++){
3288
+              if(infomation.bed_way == this.bedType[i].value){
3289
+                 bed_type = this.bedType[i].text
3290
+              }
3291
+            }
3292
+            console.log("machine_disinfectant",bed_type)
3293
+            this.kuangvalue5 =bed_type
3294
+
3295
+
3296
+            if(infomation.dialysis_checked == 1){
3297
+               this.kuangvalue6 = "更换"
3298
+            }
3299
+
3300
+            if(infomation.dialysis_checked == 2){
3301
+               this.kuangvalue6 = "未更换"
3302
+            }
3303
+
3304
+            if(infomation.germ_checked == 1){
3305
+               this.kuangvalue8 = "更换"
3306
+            }
3307
+
3308
+            if(infomation.germ_checked == 2){
3309
+               this.kuangvalue8 = "未更换"
3310
+            }
3311
+
3312
+            if(infomation.clean == 1){
3313
+               this.kuangvalue7 = "清洁"
3314
+            }
3315
+
3316
+            if(infomation.clean == 2){
3317
+               this.kuangvalue7 = "未清洁"
3318
+            }
3319
+ 
3320
+           }
2971 3321
           }
2972 3322
         } else {
2973 3323
           this.planStatus = 1
@@ -3094,9 +3444,35 @@ export default {
3094 3444
         }
3095 3445
       }
3096 3446
       this.showPicker5=false
3447
+    },
3448
+    onConfirmFive(val){
3449
+      for(let i=0;i<this.listOne.length;i++){
3450
+        if(val.id==this.listOne[i].id){
3451
+          this.kuangvalue6=val.text
3452
+        }
3453
+      }
3454
+      this.showPicker6=false
3455
+    },
3456
+    onConfirmSix(val){
3457
+      for(let i=0;i<this.listTwo.length;i++){
3458
+        if(val.id==this.listTwo[i].id){
3459
+          this.kuangvalue7=val.text
3460
+        }
3461
+      }
3462
+      this.showPicker7=false
3463
+    },
3464
+    onConfirmSeven(val){
3465
+      for(let i=0;i<this.listThree.length;i++){
3466
+        if(val.id==this.listThree[i].id){
3467
+          this.kuangvalue8=val.text
3468
+        }
3469
+      }
3470
+      this.showPicker8=false
3097 3471
     }
3098 3472
 
3099 3473
 
3474
+
3475
+
3100 3476
   },
3101 3477
   created () {
3102 3478
     
@@ -3113,7 +3489,7 @@ export default {
3113 3489
     
3114 3490
     var arrDateTwo = (timeStampOne/1000)-28800
3115 3491
 
3116
-    console.log("时间搓2222",arrDateTwo)
3492
+    // console.log("时间搓2222",arrDateTwo)
3117 3493
 
3118 3494
     this.timenow = arrDateTwo
3119 3495
   },

+ 16 - 13
src/pages/main/WaitingArea.vue View File

@@ -555,14 +555,14 @@ export default {
555 555
       }
556 556
       this.zoneMap = zoneMap
557 557
       var zones = []
558
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
558
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
559 559
       for (var zoneName in zoneMap) {
560
-        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
560
+        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:zoneMap[zoneName].sort })
561 561
       }
562 562
 
563 563
       zones = zones.sort(function (a, b) {
564
-        return a.value > b.value
565
-      })
564
+         return a.sort - b.sort
565
+       })
566 566
 
567 567
       var total = 0
568 568
       if (this.scheduals != null && this.scheduals.length > 0) {
@@ -1045,13 +1045,13 @@ export default {
1045 1045
       }
1046 1046
       this.zoneMap = zoneMap
1047 1047
       var zones = []
1048
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
1048
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
1049 1049
       for (var zoneName in zoneMap) {
1050
-        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
1050
+        zones.push({ value: zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:zoneMap[zoneName].sort })
1051 1051
       }
1052 1052
 
1053 1053
       zones = zones.sort(function (a, b) {
1054
-        return a.value > b.value
1054
+          return a.sort - b.sort
1055 1055
       })
1056 1056
 
1057 1057
       var total = 0
@@ -1067,6 +1067,7 @@ export default {
1067 1067
         if (zones[i].value == 0) {
1068 1068
           zones[i].zone_name = zones[i].text
1069 1069
           zones[i].text = zones[i].text + '(' + total + ')'
1070
+          zones[i].sort= zones[i].sort
1070 1071
         }
1071 1072
       }
1072 1073
       this.zonesList = zones
@@ -1145,10 +1146,10 @@ export default {
1145 1146
       }
1146 1147
 
1147 1148
       var zones = []
1148
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
1149
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
1149 1150
 
1150 1151
       for (var zoneId in zoneMap) {
1151
-        zones.push({ value: zoneMap[zoneId].id, text: zoneMap[zoneId].name, zone_name: zoneMap[zoneId].name })
1152
+        zones.push({ value: zoneMap[zoneId].id, text: zoneMap[zoneId].name, zone_name: zoneMap[zoneId].name,sort:zoneMap[zoneId].sort })
1152 1153
       }
1153 1154
       console.log('zones233223232wi', zones)
1154 1155
       return zones
@@ -1293,13 +1294,13 @@ export default {
1293 1294
       let patientArr = this.zone_scheduals
1294 1295
 
1295 1296
       var zones = []
1296
-      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区' })
1297
+      zones.push({ value: 0, text: '全部分区', zone_name: '全部分区',sort:0 })
1297 1298
       for (var zoneName in this.zoneMap) {
1298
-        zones.push({ value: this.zoneMap[zoneName].id, text: zoneName, zone_name: zoneName })
1299
+        zones.push({ value: this.zoneMap[zoneName].id, text: zoneName, zone_name: zoneName,sort:this.zoneMap[zoneName].sort })
1299 1300
       }
1300 1301
       zones = zones.sort(function (a, b) {
1301
-        return a.value > b.value
1302
-      })
1302
+          return a.sort - b.sort
1303
+       })
1303 1304
        console.log("this.zone_scheduals",this.zone_scheduals)
1304 1305
      
1305 1306
      
@@ -1322,6 +1323,7 @@ export default {
1322 1323
               zones[i].text = '全部分区'
1323 1324
               zones[i].zone_name = '全部分区'
1324 1325
               zones[i].text = zones[i].text + '(' + total + ')'
1326
+              zones[i].sort = 0
1325 1327
             }
1326 1328
             if (zones[i].text == this.zone_scheduals[j].zone_name) {
1327 1329
               zones[i].text = zones[i].text + '(' + this.zone_scheduals[j].bedList.length + ')'
@@ -1349,6 +1351,7 @@ export default {
1349 1351
               zones[i].text = '全部分区'
1350 1352
               zones[i].zone_name = '全部分区'
1351 1353
               zones[i].text = zones[i].text + '(' + total + ')'
1354
+              zones[i].sort = 0
1352 1355
             }
1353 1356
             if (zones[i].text == this.zone_scheduals[j].zone_name) {
1354 1357
               zones[i].text = zones[i].text + '(' + this.zone_scheduals[j].bedList.length + ')'

+ 1 - 1
src/pages/main/beforeDialysis/consumablesDetailOne.vue View File

@@ -168,7 +168,7 @@
168 168
             
169 169
             var arrDateTwo = (timeStampOne/1000)-28800
170 170
 
171
-            console.log("时间搓2222",arrDateTwo)
171
+            // console.log("时间搓2222",arrDateTwo)
172 172
             this.query.schedule_type = this.$route.query.schedual_type_selected
173 173
             this.query.partion_id = this.$route.query.partion_id
174 174
           getPrescriptionList(this.query).then(response=>{

+ 1 - 0
src/pages/main/dialysis/Standingorder.vue View File

@@ -417,6 +417,7 @@ import { Dialog,Toast} from 'vant'
417 417
           this.deliveryWayOptions = response.data.data.drugways === null ? []: response.data.data.drugways
418 418
           this.executionFrequencyOptions = response.data.data.efs === null ? [] : response.data.data.efs
419 419
           this.adviceTemplates = response.data.data.advice_templates === null ? []  : response.data.data.advice_templates
420
+          console.log("模版内容----------------------------",this.adviceTemplates)
420 421
         }
421 422
       })
422 423
      },

+ 1 - 0
src/pages/main/dialysis/components/drugTemplate.vue View File

@@ -105,6 +105,7 @@ export default {
105 105
   },
106 106
   created () {
107 107
     this.items = this.templates
108
+    console.log("模版内容----------------------------",this.items)
108 109
     this.record_date_str = parseTime(new Date(), '{y}-{m}-{d}')
109 110
     var nowDate = new Date()
110 111
     var nowYear = nowDate.getFullYear()

+ 10 - 0
src/pages/main/newActionBar/components/adviceTemplate.vue View File

@@ -109,6 +109,9 @@ export default {
109 109
   },
110 110
   created () {
111 111
     this.items = this.templates
112
+    this.items.sort(this.compare('sort'))
113
+    console.log("模版民初=====================",this.items)
114
+
112 115
     this.record_date_str = parseTime(new Date(), '{y}-{m}-{d}')
113 116
     if (this.$store.getters.user.org.id == 10101) {
114 117
       if (this.predialysis.created_time > 0) {
@@ -209,6 +212,13 @@ export default {
209 212
     }
210 213
   },
211 214
   methods: {
215
+    compare (property) {
216
+        return function (a, b) {
217
+          var value1 = a[property]
218
+          var value2 = b[property]
219
+          return value1-value2
220
+        }
221
+    },
212 222
     backAction: function () {
213 223
       this.$emit('back')
214 224
     },

+ 1 - 0
src/pages/main/newActionBar/consumables.vue View File

@@ -88,6 +88,7 @@ export default {
88 88
   },
89 89
   methods: {
90 90
     stockOut () {
91
+      console.log("进哈哈哈哈哈哈",this.uploadMethod)
91 92
       this.loading = true
92 93
       if (this.color == 1) {
93 94
         if (this.uploadMethod == 1) {

+ 39 - 18
src/pages/main/newActionBar/dialysisPrescription.vue View File

@@ -399,9 +399,12 @@
399 399
            <template #label v-if="$store.getters.user.template_info.org_id != 10101 && $store.getters.user.template_info.org_id != 10346  && $store.getters.user.template_info.template_id != 45 && $store.getters.user.template_info.template_id != 54  && $store.getters.user.template_info.org_id != 10340  && $store.getters.user.template_info.org_id != 10432 && $store.getters.user.template_info.org_id != 10441  && $store.getters.user.template_info.org_id != 10445 && $store.getters.user.template_info.org_id!=10447&& $store.getters.user.template_info.org_id!=9829 && $store.getters.user.template_info.org_id!=10440 && $store.getters.user.template_info.org_id!=10469&& $store.getters.user.template_info.org_id!=10471 && $store.getters.user.template_info.org_id!=10495 && $store.getters.user.template_info.org_id!=10375 && $store.getters.user.template_info.org_id!=10223 && $store.getters.user.template_info.org_id!=10551 && $store.getters.user.template_info.org_id!=9882 && $store.getters.user.template_info.org_id!=10206&& $store.getters.user.template_info.org_id!=10580&& $store.getters.user.template_info.org_id!=10600&& $store.getters.user.template_info.org_id!=10587&& $store.getters.user.template_info.org_id!=10599&& $store.getters.user.template_info.org_id!=10597 && $store.getters.user.template_info.org_id!=10679 && $store.getters.user.template_info.org_id!=10510 && $store.getters.user.template_info.org_id!=10702 && $store.getters.user.template_info.org_id!=10480">
400 400
                       <span v-if="dialysisPrescription.anticoagulant == 0 || dialysisPrescription.anticoagulant == -2">首剂(mg)</span>
401 401
 
402
-                      <span v-if="dialysisPrescription.anticoagulant == 2 && $store.getters.user.template_info.template_id != 13 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 41  && $store.getters.user.template_info.template_id != 6 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 47 && $store.getters.user.template_info.template_id != 54 && $store.getters.user.template_info.org_id != 10234 && $store.getters.user.template_info.org_id !=10495 && $store.getters.user.template_info.org_id !=10375 && $store.getters.user.template_info.org_id !=10580 ||  $store.getters.user.template_info.org_id ==9538 || $store.getters.user.template_info.org_id !=10340 || $store.getters.user.template_info.org_id !=10432  || $store.getters.user.template_info.org_id !=9829|| $store.getters.user.template_info.org_id !=10679 || $store.getters.user.template_info.org_id !=10510   ">首剂
402
+                      <span v-if="dialysisPrescription.anticoagulant == 2 && $store.getters.user.template_info.template_id != 13 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 41  && $store.getters.user.template_info.template_id != 6 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 47 && $store.getters.user.template_info.template_id != 54 && $store.getters.user.template_info.org_id != 10234 && $store.getters.user.template_info.org_id !=10495 && $store.getters.user.template_info.org_id !=10375 && $store.getters.user.template_info.org_id !=10580  ||  $store.getters.user.template_info.org_id ==9538 || $store.getters.user.template_info.org_id !=10340 || $store.getters.user.template_info.org_id !=10432  || $store.getters.user.template_info.org_id !=9829|| $store.getters.user.template_info.org_id !=10679 || $store.getters.user.template_info.org_id !=10510   ">首剂
403 403
                         <span v-if="$store.getters.user.template_info.org_id == 9538">(u)</span>
404
-                        <span v-if="$store.getters.user.template_info.org_id != 9538">(iu)</span>
404
+                        <span v-if="$store.getters.user.template_info.org_id != 9538">
405
+                          <span v-if="dialysisPrescription.anticoagulant == 17">(U)</span> 
406
+                          <span v-if="dialysisPrescription.anticoagulant != 17">(iu)</span>
407
+                        </span>
405 408
                       </span>
406 409
 
407 410
                       <span v-if="dialysisPrescription.anticoagulant == 2 && ($store.getters.user.template_info.template_id == 13 || $store.getters.user.template_info.template_id == 21 || $store.getters.user.template_info.template_id == 23 || $store.getters.user.template_info.template_id == 40 || $store.getters.user.template_info.template_id == 41 || ($store.getters.user.template_info.template_id == 6 && $store.getters.user.template_info.org_id!=9538) || $store.getters.user.template_info.template_id == 38 || $store.getters.user.template_info.template_id == 47 || $store.getters.user.template_info.template_id == 54 ||  $store.getters.user.template_info.org_id == 10234 || $store.getters.user.template_info.org_id == 10375 || $store.getters.user.template_info.org_id == 10340 || $store.getters.user.template_info.org_id == 10432 || $store.getters.user.template_info.org_id == 9829  || $store.getters.user.template_info.org_id ==10495 || $store.getters.user.template_info.org_id ==10551)">首剂(mg)</span>
@@ -421,6 +424,7 @@
421 424
                        <!-- <span v-else>首剂(iu)</span> -->
422 425
                       </span>
423 426
                       <span v-if="dialysisPrescription.anticoagulant == 11">首剂(iu)</span>
427
+                     
424 428
                       <span v-if="dialysisPrescription.anticoagulant == 4">首剂(mg)</span>
425 429
                   </template>
426 430
 
@@ -511,9 +515,10 @@
511 515
               <span v-if="$store.getters.user.template_info.org_id == 9538"
512 516
                 >(u)</span
513 517
               >
514
-              <span v-if="$store.getters.user.template_info.org_id != 9538"
515
-                >(iu/h)</span
516
-              >
518
+              <span v-if="$store.getters.user.template_info.org_id != 9538">
519
+                <span v-if="dialysisPrescription.anticoagulant == 17">(U/h)</span> 
520
+                <span v-if="dialysisPrescription.anticoagulant != 17">(iu/h)</span>
521
+              </span>
517 522
             </span>
518 523
             <span
519 524
               v-if="
@@ -563,12 +568,18 @@
563 568
             <span v-if="dialysisPrescription.anticoagulant == 5"
564 569
               >维持(ml/h)</span
565 570
             >
566
-            <span v-if="dialysisPrescription.anticoagulant == 16 || dialysisPrescription.anticoagulant == 15"
571
+            <span v-if="dialysisPrescription.anticoagulant == 16 || dialysisPrescription.anticoagulant == 15 || dialysisPrescription.anticoagulant == 14"
567 572
               >维持(iu/h)</span
568 573
             >
569 574
             
570
-            <span v-if="dialysisPrescription.anticoagulant == 1 || dialysisPrescription.anticoagulant == 17"
571
-              >维持(mg/h)</span
575
+            <span v-if="dialysisPrescription.anticoagulant == 1"
576
+              >维持
577
+                (mg/h)
578
+              </span
579
+            >
580
+            <span v-if=" dialysisPrescription.anticoagulant == 17"
581
+              >维持(U/h)
582
+              </span
572 583
             >
573 584
             <span v-if="dialysisPrescription.anticoagulant == 6">
574 585
               <span
@@ -676,9 +687,10 @@
676 687
               <span v-if="$store.getters.user.template_info.org_id == 9538"
677 688
                 >(u)</span
678 689
               >
679
-              <span v-if="$store.getters.user.template_info.org_id != 9538"
680
-                >(iu)</span
681
-              >
690
+              <span v-if="$store.getters.user.template_info.org_id != 9538">
691
+                <span v-if="dialysisPrescription.anticoagulant == 17">(U)</span> 
692
+                <span v-if="dialysisPrescription.anticoagulant != 17">(iu)</span>
693
+              </span>
682 694
             </span>
683 695
             <span
684 696
               v-if="
@@ -715,7 +727,11 @@
715 727
               <span v-if="$store.getters.user.template_info.org_id == 9671 || $store.getters.user.template_info.org_id == 10206">
716 728
                 总量(mg)</span
717 729
               >
718
-              <span v-else> 总量(iu)</span>
730
+             
731
+              <span v-else>
732
+                 <span v-if=" dialysisPrescription.anticoagulant == 17"> 总量(U)</span>
733
+                 <span v-if=" dialysisPrescription.anticoagulant != 17"> 总量(iu)</span>
734
+                </span>
719 735
             </span>
720 736
             <span v-if="dialysisPrescription.anticoagulant == 4">总量(mg)</span>
721 737
             <span v-if="dialysisPrescription.anticoagulant == 1">总量(mg)</span>
@@ -735,7 +751,7 @@
735 751
               >
736 752
               <span v-else>总量(iu)</span>
737 753
             </span>
738
-            <span v-if="dialysisPrescription.anticoagulant == 11 || dialysisPrescription.anticoagulant == 13|| dialysisPrescription.anticoagulant == 15|| dialysisPrescription.anticoagulant == 16"
754
+            <span v-if="dialysisPrescription.anticoagulant == 11 || dialysisPrescription.anticoagulant == 13 || dialysisPrescription.anticoagulant == 14 || dialysisPrescription.anticoagulant == 15|| dialysisPrescription.anticoagulant == 16"
739 755
               >总量(iu)</span
740 756
             >
741 757
           </template>
@@ -1076,7 +1092,8 @@
1076 1092
                 ($store.getters.user.template_info.template_id == 21 ||
1077 1093
                   $store.getters.user.template_info.template_id == 29 ||
1078 1094
                   $store.getters.user.template_info.template_id == 53) &&
1079
-                  $store.getters.user.template_info.org_id != 10249
1095
+                  $store.getters.user.template_info.org_id != 10249 &&
1096
+                  $store.getters.user.template_info.org_id != 9538
1080 1097
               "
1081 1098
               >置换液总量
1082 1099
               <span v-if="dialysisPrescription.mode_id !=26"> (ml)</span>
@@ -1088,11 +1105,14 @@
1088 1105
                 ($store.getters.user.template_info.template_id != 21 &&
1089 1106
                   $store.getters.user.template_info.template_id != 29 &&
1090 1107
                   $store.getters.user.template_info.template_id != 53) ||
1091
-                $store.getters.user.template_info.org_id == 10249
1108
+                  $store.getters.user.template_info.org_id == 10249 
1109
+                 
1110
+
1092 1111
               "
1093 1112
               >置换液总量
1094
-              <span v-if="dialysisPrescription.mode_id !=26"> (ml)</span>
1095
-              <span v-if="dialysisPrescription.mode_id ==26"> (L/h)</span>
1113
+              <span v-if="dialysisPrescription.mode_id !=26 &&  $store.getters.user.template_info.org_id != 9538"> (ml)</span>
1114
+              <span v-if="dialysisPrescription.mode_id ==26 &&  $store.getters.user.template_info.org_id != 9538"> (L/h)</span>
1115
+              <span v-if="$store.getters.user.template_info.org_id == 9538"> (L)</span>
1096 1116
               </span
1097 1117
             >
1098 1118
           </template>
@@ -10274,7 +10294,8 @@ export default {
10274 10294
             treatment_mode_id === 14 ||
10275 10295
             treatment_mode_id === 15 ||
10276 10296
             treatment_mode_id === 16 ||
10277
-            treatment_mode_id === 19
10297
+            treatment_mode_id === 19 ||
10298
+            treatment_mode_id === 42
10278 10299
           ) {
10279 10300
 
10280 10301
             this.zhiShow = false;

+ 2 - 2
src/pages/main/newActionBar/monitoring.vue View File

@@ -44,8 +44,8 @@
44 44
                   <th width="60px" style="width:6%"> 静脉压/动脉压 <br />({{monitorRecords[0]&&monitorRecords[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}) </th>
45 45
                   <th v-if="isShow('跨膜压')" width="40px" style="width:6%"> 跨膜压 <br />({{monitorRecords[0]&&monitorRecords[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}) </th>
46 46
                   <th v-if="isShow('跨膜压1')" width="40px" style="width:6%"> 跨膜压 <br />({{monitorRecords[0]&&monitorRecords[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}) </th>
47
-                  <th v-if="isShow('超滤量') && (template_id ==5 || template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || org_id == 9555 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 9 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 65 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10387 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id == 10485 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id ==10580 || org_id ==10629 || org_id ==10617 || org_id==10677 || org_id==10667 || org_id==10693 || org_id ==10702 || org_id ==10697 || org_id ==10635)" width="50px" style="width:6%"> 超滤量 <br />(ml) </th>
48
-                  <th v-if="isShow('超滤量') && template_id != 5 && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && org_id !=9555 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id !=9 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id!=40 && template_id!=41 && template_id!=43 && template_id!=44 && template_id!=47 && template_id!=46  && template_id!=48 && template_id!=53 && template_id!=54 && template_id!=65 && template_id!=56 && template_id!=60 && org_id != 10340 && org_id != 10387 && org_id != 10432  && org_id != 10445 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10485 && org_id!=10597 && org_id!=10599&&org_id!=10612 &&org_id!=10580 && org_id !=10629 && org_id!=10617 && org_id!=10677 && org_id!=10667 && org_id!=10693 && org_id!=10702  && org_id!=10697 && org_id!=10635" width="50px" style="width:6%"> 超滤量 <br />(L) </th>
47
+                  <th v-if="isShow('超滤量') && (template_id ==5 || template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || org_id == 9555 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 9 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 65 || template_id == 56 || template_id == 60 || org_id == 10340 || org_id == 10387 || org_id == 10432 || org_id == 10445 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id == 10485 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id ==10580 || org_id ==10629 || org_id ==10617 || org_id==10677 || org_id==10667 || org_id==10693 || org_id ==10702 || org_id ==10697 || org_id ==10635) && org_id!=10471" width="50px" style="width:6%"> 超滤量 <br />(ml) </th>
48
+                  <th v-if="isShow('超滤量') && (template_id != 5 && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && org_id !=9555 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id !=9 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id!=40 && template_id!=41 && template_id!=43 && template_id!=44 && template_id!=47 && template_id!=46  && template_id!=48 && template_id!=53 && template_id!=54 && template_id!=65 && template_id!=56 && template_id!=60 && org_id != 10340 && org_id != 10387 && org_id != 10432  && org_id != 10445 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10485 && org_id!=10597 && org_id!=10599&&org_id!=10612 &&org_id!=10580 && org_id !=10629 && org_id!=10617 && org_id!=10677 && org_id!=10667 && org_id!=10693 && org_id!=10702  && org_id!=10697 && org_id!=10635) || org_id ==10471" width="50px" style="width:6%"> 超滤量 <br />(L) </th>
49 49
 
50 50
                   <th v-if="isShow('超滤量1')" width="50px" style="width:6%"> 超滤量 <br />(ml) </th>
51 51
 

+ 48 - 16
src/pages/main/template/DialysisPrintOrderSix.vue View File

@@ -438,8 +438,8 @@
438 438
                     <div class="under_line" style="width: 100px;text-align: center">
439 439
                       {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
440 440
                     </div>
441
-                    <span v-if="org_id == 9829 || org_id==10440 || org_id==10469 || org_id==10471|| org_id == 10460 || org_id ==10644">ml</span>
442
-                    <span v-if="org_id!= 9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460 && org_id!=10644"> L</span>
441
+                    <span v-if="org_id == 9829 || org_id==10440 || org_id==10469 || org_id == 10460 || org_id ==10644">ml</span>
442
+                    <span v-if="org_id!= 9829 && org_id!=10440 && org_id!=10469 && org_id!=10460 && org_id!=10644"> L</span>
443 443
                   </div>
444 444
                   <div class="inline_block" style="flex:1;" v-if="org_id!=10644">
445 445
                     处方脱水量:
@@ -506,6 +506,11 @@
506 506
                       <span v-if="prescription.anticoagulant == 3">iu</span>
507 507
                       <span v-if="prescription.anticoagulant == 2">iu</span>
508 508
                       <span v-if="prescription.anticoagulant == 1">mg</span>
509
+                      <span v-if="prescription.anticoagulant == 14">
510
+                        <span v-if="org_id!=10644">mg</span> 
511
+                        <span v-if="org_id==10644">iu</span> 
512
+                      </span>
513
+                      <span v-if="prescription.anticoagulant == 17">U</span>
509 514
                     </span>
510 515
 
511 516
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id ==10206">
@@ -521,8 +526,12 @@
521 526
                      <span v-if="prescription.anticoagulant == 11">iu</span>
522 527
                      <span v-if="prescription.anticoagulant == 13">iu</span>
523 528
                      <span v-if="prescription.anticoagulant == 16">iu</span>
524
-                     <span v-if="prescription.anticoagulant == 17">mg</span>
525
-
529
+                     <span v-if="prescription.anticoagulant == 17">U</span>
530
+                     <span v-if="prescription.anticoagulant == 14">
531
+                      <span v-if="org_id!=10644">mg</span> 
532
+                      <span v-if="org_id==10644">iu</span> 
533
+                     </span>
534
+                  
526 535
 
527 536
                     </span>
528 537
 
@@ -543,6 +552,11 @@
543 552
                         <span v-if="prescription.anticoagulant == 3">iu/h</span>
544 553
                         <span v-if="prescription.anticoagulant == 2">iu/h</span>
545 554
                         <span v-if="prescription.anticoagulant == 1">mg/h</span>
555
+                        <span v-if="prescription.anticoagulant == 14">
556
+                          <span v-if="org_id!=10644">mg/h</span> 
557
+                          <span v-if="org_id==10644">iu/h</span> 
558
+                        </span>
559
+                        <span v-if="prescription.anticoagulant == 17">U/h</span>
546 560
                      </span>
547 561
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10206">
548 562
                        <span v-if="prescription.anticoagulant == 2">mg/h</span>
@@ -557,7 +571,11 @@
557 571
                         <span v-if="prescription.anticoagulant == 11">iu/h</span>
558 572
                         <span v-if="prescription.anticoagulant == 13">iu/h</span>
559 573
                         <span v-if="prescription.anticoagulant == 16">iu/h</span>
560
-                        <span v-if="prescription.anticoagulant == 17">mg/h</span>
574
+                        <span v-if="prescription.anticoagulant == 17">U/h</span>
575
+                        <span v-if="prescription.anticoagulant == 14">
576
+                          <span v-if="org_id!=10644">mg/h</span> 
577
+                          <span v-if="org_id==10644">iu/h</span> 
578
+                        </span>
561 579
                     </span>
562 580
 
563 581
                   </div>
@@ -585,6 +603,11 @@
585 603
                       <span v-if="prescription.anticoagulant == 3">iu</span>
586 604
                       <span v-if="prescription.anticoagulant == 2">iu</span>
587 605
                       <span v-if="prescription.anticoagulant == 1">mg</span>
606
+                      <span v-if="prescription.anticoagulant == 14">
607
+                        <span v-if="org_id!=10644">mg</span> 
608
+                        <span v-if="org_id==10644">iu</span> 
609
+                      </span>
610
+                      <span v-if="prescription.anticoagulant == 17">U</span>
588 611
                      </span>
589 612
                     <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10206">
590 613
                        <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -599,7 +622,11 @@
599 622
                       <span v-if="prescription.anticoagulant == 11">iu</span>
600 623
                       <span v-if="prescription.anticoagulant == 13">iu</span>
601 624
                       <span v-if="prescription.anticoagulant == 16">iu</span>
602
-                      <span v-if="prescription.anticoagulant == 17">mg</span>
625
+                      <span v-if="prescription.anticoagulant == 17">U</span>
626
+                      <span v-if="prescription.anticoagulant == 14">
627
+                        <span v-if="org_id!=10644">mg</span> 
628
+                        <span v-if="org_id==10644">iu</span> 
629
+                      </span>
603 630
 
604 631
                     </span>
605 632
 
@@ -729,23 +756,27 @@
729 756
                       <td width="60" v-if="org_id != 9836 && org_id!=9919 && org_id!=10679 && org_id!=10644">透析液温度(°C)</td>
730 757
 
731 758
                       <td width="50" v-if="org_id != 10121 && org_id != 9675 && org_id != 0 && org_id!=10490 && org_id!=10679 && org_id!=10644" >电导度<br />(ms/cm)</td>
732
-                      <td
759
+                      
760
+                        <td
733 761
                           width="50"
734 762
                           v-if="
735
-                            org_id == 10121 || org_id == 9675
763
+                            org_id == 10490 
736 764
                           "
737 765
                         >
738
-                          SpO₂<br />(%)
766
+                        置换液速度<br />(ml/h)
739 767
                         </td>
740
-                        <td
768
+                      <td width="50" v-if="org_id !=3877 && org_id!=10449&& org_id!=10683">超滤量<br/>
769
+                        <span v-if="org_id!=10471"> (ml)</span>
770
+                        <span v-if="org_id==10471">L</span>
771
+                      </td>
772
+                      <td
741 773
                           width="50"
742 774
                           v-if="
743
-                            org_id == 10490 
775
+                            org_id == 10121 || org_id == 9675 || org_id == 9829
744 776
                           "
745 777
                         >
746
-                        置换液速度<br />(ml/h)
778
+                          SpO₂<br />(%)
747 779
                         </td>
748
-                      <td width="50" v-if="org_id !=3877 && org_id!=10449&& org_id!=10683">超滤量<br/>(ml)</td>
749 780
                       <td width="50" v-if="org_id ==10683">超滤率<br/>(ml/h)</td>
750 781
                       <td width="50" v-if="org_id == 10375">置换率<br/>(ml/min)</td>
751 782
                       <td
@@ -759,9 +790,9 @@
759 790
                       <td width="50" v-if="org_id == 10449 || org_id == 3877">累计超滤量<br/>(ml)</td>
760 791
                       <td v-if="(org_id!=10683 && (prescription.mode_id==2 || prescription.mode_id==5 || prescription.mode_id== 12))" width="50">置换量<br/>(ml)</td>
761 792
                       <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压<br/>(mmHg)</td>
762
-                      <td width="50" v-if="org_id == 9538|| org_id == 9675 || org_id ==10629 ">KT/V</td>
793
+                      <td width="50" v-if="org_id == 9538|| org_id == 9675 || org_id ==10629">KT/V</td>
763 794
                       <td width="50" v-if="org_id == 9919">在线尿素监测</td>
764
-                      <td width="50" v-if="org_id != 9919 && org_id!=9538 && org_id!=9675 && org_id!=10617 && org_id!=10629&&org_id!=10644&& org_id!=10679&& org_id!=10683">KT/V</td>
795
+                      <td width="50" v-if="org_id != 9919 && org_id!=9538 && org_id!=9675 && org_id!=10617 && org_id!=10629&&org_id!=10644&& org_id!=10679&& org_id!=10683 && org_id!=9829">KT/V</td>
765 796
                       <td width="50" v-if="org_id == 9538|| org_id == 9675 || org_id == 9919">血容量<br />(L)</td>
766 797
                       <td width="50" v-if="org_id ==10490">碳酸氢钠用量<br />(ml)</td>
767 798
                       <td width="200">病情变化及处理</td>
@@ -780,7 +811,7 @@
780 811
                       <td v-if="monitor.operate_time <= dialysisOrder.end_time && monitor.operate_time >= dialysisOrder.start_time"> {{  monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }} </td>
781 812
                       <td v-if="org_id != 9836 && org_id!=10679 && org_id!=10644 ">{{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}</td>
782 813
                       <td v-if="org_id == 9836">{{ monitor.temperature ? monitor.temperature : "" }}</td>
783
-                      <td v-if="org_id == 10121 || org_id == 9675 || org_id == 0 ">{{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}</td>
814
+                 
784 815
                       <td v-if="org_id != 9538 &&org_id != 10121 &&org_id != 9675 &&org_id != 0 && org_id!=10679 && org_id!=10644">{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
785 816
                       <td v-if="org_id == 10490 ">{{monitor.replacement_speed? monitor.replacement_speed: ""}}</td>
786 817
                       <td v-if="org_id == 9538">{{monitor.sodium_concentration? monitor.sodium_concentration: ""}}</td>
@@ -795,6 +826,7 @@
795 826
                         </span>
796 827
                        
797 828
                       </td>
829
+                      <td v-if="org_id == 10121 || org_id == 9675 || org_id == 0 || org_id == 9829">{{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}</td>
798 830
                       <td width="50" v-if="org_id ==10683">
799 831
                         <br/>{{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate:"" }}</td>
800 832
                       <td v-if="org_id == 10375">

+ 6 - 3
src/pages/main/today/dialysisPrescription.vue View File

@@ -117,7 +117,8 @@
117 117
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_shouji != '0'?"iu":""}}</span>
118 118
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_shouji != '0'?"iu":""}}</span>
119 119
             <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_shouji != '0'?"iu":""}}</span>
120
-            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_shouji != '0'?"mg":""}}</span>
120
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_shouji != '0'?"U":""}}</span>
121
+            <span class="unit" v-if="this.prescription.anticoagulant == 14">{{anticoagulant_shouji != '0'?"iu":""}}</span>
121 122
           </span>
122 123
           <span v-else>
123 124
             <span class="unit" v-if="this.prescription.anticoagulant == 2">{{anticoagulant_shouji != '0'?"mg":""}}</span>
@@ -158,7 +159,8 @@
158 159
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
159 160
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
160 161
             <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
161
-            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
162
+            <span class="unit" v-if="this.prescription.anticoagulant == 14">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
163
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_weichi != '0'?"U/h":""}}</span>
162 164
           </span>
163 165
         </li>
164 166
 
@@ -189,7 +191,8 @@
189 191
             <span class="unit" v-if="this.prescription.anticoagulant == 8">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
190 192
             <span class="unit" v-if="this.prescription.anticoagulant == 9">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
191 193
             <span class="unit" v-if="this.prescription.anticoagulant == 16">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
192
-            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
194
+            <span class="unit" v-if="this.prescription.anticoagulant == 17">{{anticoagulant_zongliang != '0'?"U":""}}</span>
195
+            <span class="unit" v-if="this.prescription.anticoagulant == 14">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
193 196
           </span>
194 197
           <span v-else>
195 198
             <span class="unit" v-if="this.prescription.anticoagulant == 2">{{anticoagulant_zongliang != '0'?"mg":""}}</span>

+ 3 - 3
src/pages/monitoring/index.vue View File

@@ -217,7 +217,7 @@
217 217
             </td>
218 218
             <td width="12.5%">
219 219
             
220
-              <span v-if='item.monitoring_record!=null&&item.monitoring_record.length > 0 && item.monitoring_record.length <= 7' style="display: flex;justify-content: space-between;">
220
+              <span v-if='item.monitoring_record!=null&&item.monitoring_record.length > 0 && item.monitoring_record.length <= 9' style="display: flex;justify-content: space-between;">
221 221
                 <td width='16%' v-for="(i,newindex) in item.monitoring_record" :key='newindex'>
222 222
                   <span v-if="$store.getters.user.template_info.org_id != 10693">
223 223
                      <span :class="isRangeInSBP(i.systolic_blood_pressure.toString())">{{ i.systolic_blood_pressure.toString() }}</span>/<span :class="isRangeInDBP(i.diastolic_blood_pressure.toString())">{{ i.diastolic_blood_pressure.toString() }}</span>&nbsp;
@@ -228,11 +228,11 @@
228 228
                      <!-- <span :class="isRangeInSBP(i.monitor_systolic_blood_pressure_one.toString())">{{ i.monitor_systolic_blood_pressure_one.toString() }}</span>/<span :class="isRangeInDBP(i.monitor_diastolic_blood_pressure_one.toString())">{{ i.monitor_diastolic_blood_pressure_one.toString() }}</span>&nbsp; -->
229 229
                   </span> 
230 230
                 </td>
231
-                <td width='16%' v-for="(i,newindex) in 7 - item.monitoring_record.length" :key="newindex + 'i'"></td>
231
+                <td width='16%' v-for="(i,newindex) in 9 - item.monitoring_record.length" :key="newindex + 'i'"></td>
232 232
               </span>
233 233
               <span v-else style="display: flex;justify-content: space-between;">
234 234
                 <span v-if="item.monitoring_record!=null">
235
-                <td width='16%' v-for="(i,newindex) in item.monitoring_record.slice(0,7)" :key='newindex'>
235
+                <td width='16%' v-for="(i,newindex) in item.monitoring_record.slice(0,9)" :key='newindex'>
236 236
                   <span  v-if="$store.getters.user.template_info.org_id != 10693">  <span :class="isRangeInSBP(i.monitor_systolic_blood_pressure_one.toString())">{{ i.monitor_systolic_blood_pressure_one.toString() }}</span>
237 237
                     /<span :class="isRangeInDBP(i.monitor_diastolic_blood_pressure_one.toString())">{{ i.monitor_diastolic_blood_pressure_one.toString() }}
238 238
                     </span>&nbsp;

+ 6 - 6
src/store/modules/globalConfig.js View File

@@ -1032,9 +1032,9 @@ const global_config = {
1032 1032
         zongliang: 2,
1033 1033
         gaimingcheng: -1,
1034 1034
         gaijiliang: -1,
1035
-        shouji_unit: 'mg',
1036
-        weichi_unit: 'mg/h',
1037
-        zongliang_unit: 'mg',
1035
+        shouji_unit: 'iu',
1036
+        weichi_unit: 'iu/h',
1037
+        zongliang_unit: 'iu',
1038 1038
         gaimingcheng_unit: '',
1039 1039
         gaijiliang_unit: ''
1040 1040
       },
@@ -1077,9 +1077,9 @@ const global_config = {
1077 1077
         zongliang: 2,
1078 1078
         gaimingcheng: -1,
1079 1079
         gaijiliang: -1,
1080
-        shouji_unit: 'mg',
1081
-        weichi_unit: 'mg/h',
1082
-        zongliang_unit: 'mg',
1080
+        shouji_unit: 'U',
1081
+        weichi_unit: 'U/h',
1082
+        zongliang_unit: 'U',
1083 1083
         gaimingcheng_unit: '',
1084 1084
         gaijiliang_unit: ''
1085 1085
       },

+ 59 - 0
src/utils/login.js View File

@@ -0,0 +1,59 @@
1
+import axios from "axios";
2
+// import { Toast } from 'mint-ui'
3
+import { Toast } from "vant";
4
+const https = require('https');
5
+
6
+
7
+import context from '../../src/main.js'
8
+
9
+const agent = new https.Agent({
10
+  rejectUnauthorized: false  // 忽略证书验证
11
+});
12
+
13
+// create an axios instance
14
+const service = axios.create({
15
+  baseURL:"http://192.168.0.38:8080", // api的base_url
16
+  timeout: 30000, // request timeout
17
+  withCredentials: true,
18
+  httpsAgent: agent,
19
+});
20
+
21
+var self = this;
22
+// respone interceptor
23
+
24
+
25
+
26
+
27
+service.interceptors.response.use(
28
+  // response => response,
29
+  response => {
30
+    const res = response.data;
31
+    if (res.state !== 1) {
32
+       return response
33
+    } else {
34
+      return response;
35
+    }
36
+  },
37
+  error => {
38
+    if (error.message.includes("timeout")) {
39
+      // 判断请求异常信息中是否含有超时timeout字符串
40
+      return Promise.reject(error); // reject这个错误信息
41
+    }
42
+    return Promise.reject(error);
43
+  }
44
+);
45
+
46
+// service.interceptors.request.use(
47
+//   config => {
48
+//     // 登录流程控制中,根据本地是否存在token判断用户的登录情况
49
+//     // 但是即使token存在,也有可能token是过期的,所以在每次的请求头中携带token
50
+//     // 后台根据携带的token判断用户的登录情况,并返回给我们对应的状态码
51
+//     // 而后我们可以在响应拦截器中,根据状态码进行一些统一的操作。
52
+//     let token = localStorage.getItem('token');
53
+//     console.log("token=")
54
+//     console.log(token)
55
+//     token && (config.headers['KyToken'] = token);
56
+//     return config
57
+//   }
58
+// );
59
+export default service;