Browse Source

新分支

28169 10 months ago
parent
commit
0aa04e3924

+ 55 - 0
src/utils/tools.js View File

21
   // debugger
21
   // debugger
22
   var returnAge
22
   var returnAge
23
   var strBirthdayArr = strBirthday.split(splitstr)
23
   var strBirthdayArr = strBirthday.split(splitstr)
24
+ 
24
   var birthYear = strBirthdayArr[0]
25
   var birthYear = strBirthdayArr[0]
25
   var birthMonth = strBirthdayArr[1]
26
   var birthMonth = strBirthdayArr[1]
26
   var birthDay = strBirthdayArr[2]
27
   var birthDay = strBirthdayArr[2]
28
+
29
+  
27
   var d = new Date()
30
   var d = new Date()
28
   var nowYear = d.getFullYear()
31
   var nowYear = d.getFullYear()
29
   var nowMonth = d.getMonth() + 1
32
   var nowMonth = d.getMonth() + 1
30
   var nowDay = d.getDate()
33
   var nowDay = d.getDate()
34
+  
35
+  if (nowYear == birthYear) {
36
+    returnAge = 0 // 同年 则为0岁
37
+  } else {
38
+    var ageDiff = nowYear - birthYear // 年之差
39
+    if (ageDiff > 0) {
40
+      if (nowMonth == birthMonth) {
41
+        var dayDiff = nowDay - birthDay // 日之差
42
+        if (dayDiff < 0) {
43
+          returnAge = ageDiff - 1
44
+        } else {
45
+          returnAge = ageDiff
46
+        }
47
+      } else {
48
+        var monthDiff = nowMonth - birthMonth // 月之差
49
+        if (monthDiff < 0) {
50
+          returnAge = ageDiff - 1
51
+        } else {
52
+          returnAge = ageDiff
53
+        }
54
+      }
55
+    } else {
56
+      returnAge = -1 // 返回-1 表示出生日期输入错误 晚于今天
57
+    }
58
+  }
59
+
60
+  return returnAge // 返回周岁年龄
61
+}
62
+
63
+
64
+export function jsGetAgeOne(strBirthday,splitstr, nowYear,nowMonth,nowDay) {
65
+ 
66
+  // debugger
67
+  var returnAge
68
+  var strBirthdayArr = strBirthday.split(splitstr)
69
+  console.log("strBirthdayArr",strBirthdayArr)
70
+  var birthYear = strBirthdayArr[0]
71
+  var birthMonth = strBirthdayArr[1]
72
+  var birthDay = strBirthdayArr[2]
73
+  // var d = new Date()
74
+  // var anowYear = d.getFullYear()
75
+  // var anowMonth = d.getMonth() + 1
76
+  // var anowDay = d.getDate()
77
+  
78
+  // console.log("anowYear",anowYear)
79
+  // console.log("anowMonth",anowMonth)
80
+  // console.log("anowDay",anowDay)
81
+  
82
+  console.log("brityYear666",strBirthdayArr[0])
83
+  console.log("birthMonth5656",strBirthdayArr[1])
84
+  console.log("birthDay5656",strBirthdayArr[2])
85
+  
31
   if (nowYear == birthYear) {
86
   if (nowYear == birthYear) {
32
     returnAge = 0 // 同年 则为0岁
87
     returnAge = 0 // 同年 则为0岁
33
   } else {
88
   } else {

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

56
                <!-- <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date<=1672416000">{{record.patient.total_dialysis + record.patient.user_sys_before_count}}</span>  
56
                <!-- <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date<=1672416000">{{record.patient.total_dialysis + record.patient.user_sys_before_count}}</span>  
57
                <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date>=1672502400">{{record.patient.total_dialysis}}</span>   -->
57
                <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date>=1672502400">{{record.patient.total_dialysis}}</span>   -->
58
               <span>
58
               <span>
59
-                            <!-- {{ record.Count ? record.Count:''}} -->
60
-                            {{ record.patient.total_dialysis }}
61
-                        </span>
59
+                 {{ record.Count ? record.Count:''}}  
60
+                </span>
62
               </span>
61
               </span>
63
             </td>
62
             </td>
64
                   <td style="text-align:center;">
63
                   <td style="text-align:center;">

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue View File

1318
         align="right"
1318
         align="right"
1319
         @size-change="handleSizeChange"
1319
         @size-change="handleSizeChange"
1320
         @current-change="handleCurrentChange"
1320
         @current-change="handleCurrentChange"
1321
-        :page-sizes="[20, 40, 60, 80,100]"
1321
+        :page-sizes="[20, 40, 60, 80,100,300,500]"
1322
         :page-size="10"
1322
         :page-size="10"
1323
         background
1323
         background
1324
         style="margin-top:20px;"
1324
         style="margin-top:20px;"

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

357
 
357
 
358
         <li v-if="isShow('维持时长')">
358
         <li v-if="isShow('维持时长')">
359
           <label>维持时长: </label>
359
           <label>维持时长: </label>
360
-          <span class="content">{{this.prescription.anticoagulant_weichi_hour}}</span>
360
+          <span class="content">{{this.prescription.anticoagulant_weichi_hour?this.prescription.anticoagulant_weichi_hour:"0"}}</span>
361
         </li>
361
         </li>
362
 
362
 
363
         <li
363
         <li
449
 
449
 
450
          <li v-if="isShow('葡萄糖')">
450
          <li v-if="isShow('葡萄糖')">
451
           <label>葡萄糖: </label>
451
           <label>葡萄糖: </label>
452
-          <span class="content">{{this.prescription.amylaceum}}</span>
452
+          <span class="content">{{this.prescription.amylaceum?this.prescription.amylaceum:0}}</span>
453
         </li>
453
         </li>
454
 
454
 
455
         <li v-if="isShow('单超时长')">
455
         <li v-if="isShow('单超时长')">

+ 2 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

475
         accepts.way =1
475
         accepts.way =1
476
         accepts.posture=1
476
         accepts.posture=1
477
         accepts.condition =2
477
         accepts.condition =2
478
+        accepts.consciousness = 1
479
+        accepts.appetite =1
478
 
480
 
479
       }
481
       }
480
       this.accepts = accepts;
482
       this.accepts = accepts;

+ 11 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2803
         }
2803
         }
2804
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2804
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2805
         // console.log('this.schedual', schedual.mode_id)
2805
         // console.log('this.schedual', schedual.mode_id)
2806
-        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2806
+        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0) {
2807
           this.zhiShow = true
2807
           this.zhiShow = true
2808
           this.huShow = true
2808
           this.huShow = true
2809
           this.totalShow = true
2809
           this.totalShow = true
2815
           pre.mode_id == 7 ||
2815
           pre.mode_id == 7 ||
2816
           pre.mode_id == 8 ||
2816
           pre.mode_id == 8 ||
2817
           pre.mode_id == 9 ||
2817
           pre.mode_id == 9 ||
2818
-          pre.mode_id == 10 ||
2819
           pre.mode_id == 11 ||
2818
           pre.mode_id == 11 ||
2820
           pre.mode_id == 13 ||
2819
           pre.mode_id == 13 ||
2821
           pre.mode_id == 14 ||
2820
           pre.mode_id == 14 ||
2852
               this.dialysisPrescription.dialysate_flow = 500
2851
               this.dialysisPrescription.dialysate_flow = 500
2853
             }
2852
             }
2854
 
2853
 
2855
-            if(this.$store.getters.xt_user.org.id == 10598){
2854
+            if(this.$store.getters.xt_user.org.id == 10598 || this.$store.getters.xt_user.org.id == 10612){
2856
                if(this.dialysisPrescription.dialysis_duration_minute == ""){
2855
                if(this.dialysisPrescription.dialysis_duration_minute == ""){
2857
                  this.dialysisPrescription.dialysis_duration_minute =0
2856
                  this.dialysisPrescription.dialysis_duration_minute =0
2858
 
2857
 
2859
                }
2858
                }
2859
+
2860
+               if(this.dialysisPrescription.anticoagulant_weichi == ""){
2861
+                  this.dialysisPrescription.anticoagulant_weichi = 0
2862
+               }
2863
+
2864
+               if(this.dialysisPrescription.amylaceum == ""){
2865
+                this.dialysisPrescription.amylaceum = 0
2866
+               }
2860
             }
2867
             }
2861
         }
2868
         }
2862
         if (this.predialysis == null || this.predialysis.id == 0) {
2869
         if (this.predialysis == null || this.predialysis.id == 0) {
3036
             //   }
3043
             //   }
3037
 
3044
 
3038
             // }
3045
             // }
3039
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
3046
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10){
3040
               this.dialysisPrescription.displace_liqui_part = 0
3047
               this.dialysisPrescription.displace_liqui_part = 0
3041
               this.dialysisPrescription.displace_liqui_value = 0
3048
               this.dialysisPrescription.displace_liqui_value = 0
3042
               this.dialysisPrescription.replacement_total = 0
3049
               this.dialysisPrescription.replacement_total = 0
4446
         id === 7 ||
4453
         id === 7 ||
4447
         id === 8 ||
4454
         id === 8 ||
4448
         id === 9 ||
4455
         id === 9 ||
4449
-        id === 10 ||
4450
         id === 11 ||
4456
         id === 11 ||
4451
         id === 13 ||
4457
         id === 13 ||
4452
         id === 14 ||
4458
         id === 14 ||

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

266
                 org_id == 10599 ||
266
                 org_id == 10599 ||
267
                 org_id == 10597 ||
267
                 org_id == 10597 ||
268
                 org_id == 10599 || 
268
                 org_id == 10599 || 
269
-                org_id == 10610) &&
269
+                org_id == 10612) &&
270
                 org_id!=10387
270
                 org_id!=10387
271
             "
271
             "
272
           >
272
           >
337
               && org_id!=10432 && org_id!=10445
337
               && org_id!=10432 && org_id!=10445
338
               && org_id!=10410 && org_id!=10495 &&
338
               && org_id!=10410 && org_id!=10495 &&
339
                org_id!=10485 && org_id!=10395 && org_id!=10375
339
                org_id!=10485 && org_id!=10395 && org_id!=10375
340
-               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10610)
340
+               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612)
341
               || org_id == 10387
341
               || org_id == 10387
342
             "
342
             "
343
           >
343
           >
393
                 org_id == 10410 ||
393
                 org_id == 10410 ||
394
                 org_id == 10495  ||
394
                 org_id == 10495  ||
395
                 org_id == 10395
395
                 org_id == 10395
396
-                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10610)
396
+                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612)
397
                 && org_id!=10387
397
                 && org_id!=10387
398
             "
398
             "
399
           >
399
           >
446
               org_id!=10432 &&
446
               org_id!=10432 &&
447
               org_id!=10445 &&
447
               org_id!=10445 &&
448
               org_id!=10410 && org_id!=10495
448
               org_id!=10410 && org_id!=10495
449
-              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10610 ) ||
449
+              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 ) ||
450
               org_id == 10387
450
               org_id == 10387
451
             "
451
             "
452
           >
452
           >
1177
                 org_id== 10432 ||
1177
                 org_id== 10432 ||
1178
                 org_id== 10445 ||
1178
                 org_id== 10445 ||
1179
                 org_id== 10410 ||
1179
                 org_id== 10410 ||
1180
-                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10610) &&
1180
+                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612) &&
1181
                 org_id!=10387
1181
                 org_id!=10387
1182
             "
1182
             "
1183
           >
1183
           >
1225
               org_id!=10445 &&
1225
               org_id!=10445 &&
1226
               org_id!=10410 &&
1226
               org_id!=10410 &&
1227
               org_id!=10485 &&
1227
               org_id!=10485 &&
1228
-              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10610)
1228
+              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612)
1229
               || org_id == 10387
1229
               || org_id == 10387
1230
             "
1230
             "
1231
           >
1231
           >
1289
                 org_id == 10551 ||
1289
                 org_id == 10551 ||
1290
                 org_id == 10597||
1290
                 org_id == 10597||
1291
                 org_id == 10599 ||
1291
                 org_id == 10599 ||
1292
-                org_id ==10610)
1292
+                org_id ==10612)
1293
                 && org_id!=10387
1293
                 && org_id!=10387
1294
             "
1294
             "
1295
           >
1295
           >
1353
               org_id!=10551 &&
1353
               org_id!=10551 &&
1354
               org_id!=10597 &&
1354
               org_id!=10597 &&
1355
               org_id!=10599 &&
1355
               org_id!=10599 &&
1356
-              org_id!=10610
1356
+              org_id!=10612
1357
               )
1357
               )
1358
               || org_id == 10387
1358
               || org_id == 10387
1359
             "
1359
             "

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

15
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
17
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
18
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || 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 || template_id == 27 || template_id == 28 || 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 == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10610) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
19
-          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && 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 && template_id !=27 && template_id!=28 && 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 != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10610) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
20
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || 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 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10610) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
21
-          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && 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 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10610 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
18
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || 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 || template_id == 27 || template_id == 28 || 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 == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10612) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
19
+          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && 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 && template_id !=27 && template_id!=28 && 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 != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10612) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
20
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || 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 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10612) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
21
+          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && 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 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
22
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
23
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
24
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410) && org_id!=10558" width="92px" > 置换率(ml/min) </th>
24
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410) && org_id!=10558" width="92px" > 置换率(ml/min) </th>

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

1606
                           置换量<br />(ml)
1606
                           置换量<br />(ml)
1607
                         </td>
1607
                         </td>
1608
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1608
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1609
-                        <td width="50" v-if="org_id == 9538 || org_id ==10600">KT/V</td>
1609
+                        <td width="50" v-if="org_id == 9538 || org_id ==10600 || org_id ==10587">KT/V</td>
1610
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1610
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1611
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1611
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1612
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1612
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1735
                           </span>
1735
                           </span>
1736
                         </td>
1736
                         </td>
1737
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1737
                         <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1738
-                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600">
1738
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id ==10600 || org_id ==10587">
1739
                           {{ monitor.ktv?monitor.ktv:"" }}
1739
                           {{ monitor.ktv?monitor.ktv:"" }}
1740
                         </td>
1740
                         </td>
1741
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1741
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
3554
 import CheckBox from "../batch_print/option_check_box";
3554
 import CheckBox from "../batch_print/option_check_box";
3555
 import { getDialysisRecord } from "@/api/dialysis";
3555
 import { getDialysisRecord } from "@/api/dialysis";
3556
 import { getDataConfig } from "@/utils/data";
3556
 import { getDataConfig } from "@/utils/data";
3557
-import { jsGetAge, uParseTime } from "@/utils/tools";
3557
+import { jsGetAge, uParseTime,jsGetAgeOne } from "@/utils/tools";
3558
 
3558
 
3559
 import LabelBox from "../printItem/LabelBox";
3559
 import LabelBox from "../printItem/LabelBox";
3560
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
3560
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
3689
       },
3689
       },
3690
       org_id: 0,
3690
       org_id: 0,
3691
       projectsOne: [],
3691
       projectsOne: [],
3692
+      ageDate:""
3692
     };
3693
     };
3693
   },
3694
   },
3694
   methods: {
3695
   methods: {
4209
         } else {
4210
         } else {
4210
           this.patientInfo.first_dialysis_date = "";
4211
           this.patientInfo.first_dialysis_date = "";
4211
         }
4212
         }
4213
+        this.ageDate = uParseTime(response.data.data.schedule.schedule_date,"{y}-{m}-{d}");
4212
         this.check = response.data.data.check;
4214
         this.check = response.data.data.check;
4213
         this.xtdate = response.data.data.xtdate;
4215
         this.xtdate = response.data.data.xtdate;
4214
         this.predialysis = response.data.data.PredialysisEvaluation;
4216
         this.predialysis = response.data.data.PredialysisEvaluation;
4707
         } else {
4709
         } else {
4708
           birth = val.id_card_no.substr(6, 8)
4710
           birth = val.id_card_no.substr(6, 8)
4709
         }
4711
         }
4710
-        var birthtwo =
4711
-          birth.substr(0, 4) +
4712
-          '-' +
4713
-          birth.substr(4, 2) +
4714
-          '-' +
4715
-          birth.substr(6, 2)
4716
-
4717
-        var age = jsGetAge(birthtwo, '-')
4718
-        return age
4712
+      
4713
+        if(this.org_id == 0){
4714
+          console.log("this.ageDattewowow",this.ageDate)
4715
+          var birthtwo = birth.substr(0, 4)  + birth.substr(4, 2)  + birth.substr(6, 2)
4716
+          var year = birth.substr(0,4) 
4717
+          var month = birth.substr(4, 2)
4718
+          var day = birth.substr(6, 2)
4719
+         
4720
+          var age = jsGetAgeOne(birthtwo,"-",year,month,day)
4721
+          return age
4722
+        }else{
4723
+            var birthtwo =
4724
+            birth.substr(0, 4) +
4725
+            '-' +
4726
+            birth.substr(4, 2) +
4727
+            '-' +
4728
+            birth.substr(6, 2)
4729
+            console.log("brithwo3333",birthtwo)
4730
+            var age = jsGetAge(birthtwo, '-')
4731
+            return age
4732
+        }
4733
+       
4719
       }
4734
       }
4720
     },
4735
     },
4721
     newAdviceGroupObject: function () {
4736
     newAdviceGroupObject: function () {

+ 12 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

444
                 <p style="height:15px;line-height:15px">上次透后体重</p>
444
                 <p style="height:15px;line-height:15px">上次透后体重</p>
445
               </td>
445
               </td>
446
               <td style="width:8%;">
446
               <td style="width:8%;">
447
+              
447
                  <span v-if="assessmentafter.weight_after == 0">
448
                  <span v-if="assessmentafter.weight_after == 0">
448
-                  {{ afterdialysis.last_after_weight ? assessmentafter.last_after_weight : "0" }}kg
449
+                  {{ afterdialysis.last_after_weight ? afterdialysis.last_after_weight : "0" }}kg
449
                  </span>
450
                  </span>
450
                  <span v-if="assessmentafter.weight_after>0">
451
                  <span v-if="assessmentafter.weight_after>0">
451
                   {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
452
                   {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
460
                 <span v-if="advice.parent_id > 0">---></span>
461
                 <span v-if="advice.parent_id > 0">---></span>
461
                 <span>{{ advice.advice_name }}</span>
462
                 <span>{{ advice.advice_name }}</span>
462
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
463
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
463
-                <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
464
+                <!-- <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span> -->
464
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
465
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
465
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
466
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
466
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
467
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
476
               <td v-if="advice_index === 0">透前体重</td>
477
               <td v-if="advice_index === 0">透前体重</td>
477
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
478
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
478
               <td v-if="advice_index === 1">体重增加量</td>
479
               <td v-if="advice_index === 1">体重增加量</td>
479
-              <td v-if="advice_index === 1">{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg</td>
480
+              <td v-if="advice_index === 1">
481
+                <span v-if="assessmentafter.weight_after == 0">
482
+                  {{ (predialysis.weight_before - afterdialysis.last_after_weight ).toFixed(1) }}kg
483
+                 </span>
484
+                 <span v-if="assessmentafter.weight_after>0">
485
+                   {{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg
486
+                 </span>
487
+                 
488
+              </td>
480
               <td v-if="advice_index === 2">干体重(DW)</td>
489
               <td v-if="advice_index === 2">干体重(DW)</td>
481
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
490
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
482
               <td v-if="advice_index === 3">较干体重增加量</td>
491
               <td v-if="advice_index === 3">较干体重增加量</td>

+ 34 - 13
src/xt_pages/medicalScheduling/index.vue View File

57
                                 <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
57
                                 <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
58
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
58
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
59
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
59
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
60
-                                      circle @click.stop="toClick(scope.row,scope.$index)"   
60
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,1))"   
61
                                     ></el-button>
61
                                     ></el-button>
62
                                   </div>
62
                                   </div>
63
                                 </div>
63
                                 </div>
81
                               <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
81
                               <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
82
                                 <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
82
                                 <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
83
                                   <el-button type="danger" size="mini" icon="el-icon-close" 
83
                                   <el-button type="danger" size="mini" icon="el-icon-close" 
84
-                                    circle @click.stop=""   
84
+                                    circle @click.stop="toClick(getClassId(scope.row.user_name,2))"   
85
                                   ></el-button>
85
                                   ></el-button>
86
                                 </div>
86
                                 </div>
87
                               </div>
87
                               </div>
106
                                 <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
106
                                 <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
107
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
107
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
108
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
108
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
109
-                                      circle @click.stop=""   
109
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,3))"   
110
                                     ></el-button>
110
                                     ></el-button>
111
                                   </div>
111
                                   </div>
112
                                 </div>
112
                                 </div>
130
                                 <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
130
                                 <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
131
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
131
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
132
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
132
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
133
-                                      circle @click.stop=""   
133
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,4))"   
134
                                     ></el-button>
134
                                     ></el-button>
135
                                   </div>
135
                                   </div>
136
                                 </div>
136
                                 </div>
154
                                 <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
154
                                 <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
155
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
155
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
156
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
156
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
157
-                                      circle @click.stop=""   
157
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,5))"   
158
                                     ></el-button>
158
                                     ></el-button>
159
                                   </div>
159
                                   </div>
160
                                 </div>
160
                                 </div>
178
                                 <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
178
                                 <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
179
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
179
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
180
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
180
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
181
-                                      circle @click.stop=""   
181
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,6))"   
182
                                     ></el-button>
182
                                     ></el-button>
183
                                   </div>
183
                                   </div>
184
                                 </div>
184
                                 </div>
202
                                 <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
202
                                 <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
203
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
203
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
204
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
204
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
205
-                                      circle @click.stop=""   
205
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,0))"   
206
                                     ></el-button>
206
                                     ></el-button>
207
                                   </div>
207
                                   </div>
208
                                 </div>
208
                                 </div>
916
                         sixStr = strSix
916
                         sixStr = strSix
917
                      }
917
                      }
918
                     }
918
                     }
919
-
919
+                   console.log("staffList",staffList)
920
                     let tempArr = [], newArr = []
920
                     let tempArr = [], newArr = []
921
                     for (let i = 0; i < staffList.length; i++) {
921
                     for (let i = 0; i < staffList.length; i++) {
922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
927
                                 user_type:staffList[i].doctor_type,
927
                                 user_type:staffList[i].doctor_type,
928
                                 is_sort:staffList[i].is_sort,
928
                                 is_sort:staffList[i].is_sort,
929
                                 sort:staffList[i].sort,
929
                                 sort:staffList[i].sort,
930
-                                list: [{class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes}]
930
+                                list: [{class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributesk,id:staffList[i].id}]
931
                             })
931
                             })
932
                             tempArr.push(staffList[i].user_name);
932
                             tempArr.push(staffList[i].user_name);
933
                         } else {
933
                         } else {
934
                             console.log("staffList",staffList[i].user_name)
934
                             console.log("staffList",staffList[i].user_name)
935
                             for (let j = 0; j < newArr.length; j++) {
935
                             for (let j = 0; j < newArr.length; j++) {
936
                                 if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
936
                                 if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
937
-                                    newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes})
937
+                                    newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes,id:staffList[i].id})
938
                                 }
938
                                 }
939
                             }
939
                             }
940
                         }
940
                         }
1051
                 return newClass
1051
                 return newClass
1052
             }
1052
             }
1053
 
1053
 
1054
+        },
1055
+        getClassId(name,index){
1056
+           
1057
+            if(name != undefined){
1058
+                let id = '';
1059
+                this.tableData.map(item => {
1060
+                if(item.user_name == name){
1061
+                    if(item.list){
1062
+                        item.list.map(it => {
1063
+                            if(it.schedule_week == index){
1064
+                                id = it.id
1065
+                            }
1066
+                        })
1067
+                    }
1068
+
1069
+                }
1070
+                })
1071
+                return id
1072
+            }
1073
+
1054
         },
1074
         },
1055
         getClassAttributes(name,index){
1075
         getClassAttributes(name,index){
1056
             if(name != undefined){
1076
             if(name != undefined){
2051
         return jsonData.map(v => filterVal.map(j => v[j]))
2071
         return jsonData.map(v => filterVal.map(j => v[j]))
2052
        },
2072
        },
2053
 
2073
 
2054
-       toClick(row,index){
2074
+       toClick(id,index){
2055
           this.$confirm(
2075
           this.$confirm(
2056
             '是否要清除当前排班? <br>清除后,信息将无法恢复',
2076
             '是否要清除当前排班? <br>清除后,信息将无法恢复',
2057
             '删除提示',
2077
             '删除提示',
2062
                 type: 'warning'
2082
                 type: 'warning'
2063
             }
2083
             }
2064
             ).then(()=>{
2084
             ).then(()=>{
2065
-
2066
-            DeleteStaffScheduleById(row.id).then(response=>{
2085
+             console.log("rowwoowowow",id)
2086
+           
2087
+            DeleteStaffScheduleById(id).then(response=>{
2067
                 if(response.data.state == 1){
2088
                 if(response.data.state == 1){
2068
                     var msg =  response.data.data.msg
2089
                     var msg =  response.data.data.msg
2069
                     this.$message.success("清除成功")
2090
                     this.$message.success("清除成功")

+ 2 - 2
src/xt_pages/role/admin.vue View File

25
         >医药师登记</el-button>
25
         >医药师登记</el-button>
26
 
26
 
27
 
27
 
28
-       <el-button
28
+       <!-- <el-button
29
           type="primary"
29
           type="primary"
30
           size="small"
30
           size="small"
31
           icon="el-icon-circle-plus-outline"
31
           icon="el-icon-circle-plus-outline"
32
           style="float:left"
32
           style="float:left"
33
-          @click="toJiaBan">首拼</el-button>
33
+          @click="toJiaBan">首拼</el-button> -->
34
 
34
 
35
 
35
 
36
           <!-- <el-button
36
           <!-- <el-button

+ 1 - 0
src/xt_pages/stock/drugs/cancelDrugStockOrderDetail.vue View File

64
           </template>
64
           </template>
65
         </el-table-column>
65
         </el-table-column>
66
 
66
 
67
+       
67
 
68
 
68
       </el-table>
69
       </el-table>
69
     </el-row>
70
     </el-row>

+ 12 - 5
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

143
             {{scope.row.count}}
143
             {{scope.row.count}}
144
           </template>
144
           </template>
145
         </el-table-column>
145
         </el-table-column>
146
+        <el-table-column label="单位" align="center">
147
+          <template slot-scope="scope">
148
+            {{scope.row.unit}}
149
+          </template>
150
+        </el-table-column>
146
         <el-table-column label="总价" align="center">
151
         <el-table-column label="总价" align="center">
147
           <template slot-scope="scope">
152
           <template slot-scope="scope">
148
             {{scope.row.total_price}}
153
             {{scope.row.total_price}}
472
     exportListOne(){
477
     exportListOne(){
473
       // let obj = {'index':'合计','total_price':0}
478
       // let obj = {'index':'合计','total_price':0}
474
     
479
     
475
- 
480
+      console.log("@332322323232332",this.tableList)
476
        for(let i=0;i<this.tableList.length;i++){
481
        for(let i=0;i<this.tableList.length;i++){
477
           this.tableList[i].index = i+1
482
           this.tableList[i].index = i+1
478
-          this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
483
+          this.tableList[i].unit_one = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
479
           if(this.tableList[i].drug_type == 1){
484
           if(this.tableList[i].drug_type == 1){
480
              this.tableList[i].drugtype = "西药"
485
              this.tableList[i].drugtype = "西药"
481
           }
486
           }
490
 
495
 
491
         }
496
         }
492
     
497
     
493
-      console.log("@332322323232332",this.tableList)
498
+    
499
+
500
+  
494
       
501
       
495
        import('@/vendor/Export2Excel').then(excel => {
502
        import('@/vendor/Export2Excel').then(excel => {
496
-       const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','生产厂商','进销商','操作时间','制单人','退货价','数量','总价']
497
-       const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name', 'time','user_name','price','count','total_price']
503
+       const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','生产厂商','进销商','操作时间','制单人','退货价','数量','单位','总价']
504
+       const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name', 'time','user_name','price','count','unit','total_price']
498
 
505
 
499
        const data = this.formatJson(filterVal, this.tableList)
506
        const data = this.formatJson(filterVal, this.tableList)
500
 
507
 

+ 5 - 0
src/xt_pages/stock/drugs/drugCancelDetailPrint.vue View File

21
               <td style="line-height: 50px" width="250">规格型号</td>
21
               <td style="line-height: 50px" width="250">规格型号</td>
22
               <td style="line-height: 50px" width="50">单位</td>
22
               <td style="line-height: 50px" width="50">单位</td>
23
               <td style="line-height: 50px" width="80">数量</td>
23
               <td style="line-height: 50px" width="80">数量</td>
24
+              <td style="line-height: 50px" width="80">单位</td>
24
               <td style="line-height:50px" width="80">单价</td>
25
               <td style="line-height:50px" width="80">单价</td>
25
               <td style="line-height:50px" width="80">总价</td>
26
               <td style="line-height:50px" width="80">总价</td>
26
               <td style="line-height: 50px" width="80">备 注</td>
27
               <td style="line-height: 50px" width="80">备 注</td>
43
               <td style="line-height: 50px">
44
               <td style="line-height: 50px">
44
                   {{item.count}}
45
                   {{item.count}}
45
                
46
                
47
+              </td>
48
+              <td style="line-height: 50px">
49
+                  {{item.unit}}
50
+               
46
               </td>
51
               </td>
47
               <td style="line-height:50px">
52
               <td style="line-height:50px">
48
                   {{item.price}}
53
                   {{item.price}}

+ 5 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue View File

152
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
152
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
153
            </template>
153
            </template>
154
         </el-table-column>
154
         </el-table-column>
155
+        <el-table-column prop="remark" label="备注" align="center">
156
+           <template slot-scope="scope">
157
+             <span > {{scope.row.remark}}</span>
158
+           </template>
159
+        </el-table-column>
155
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
160
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
156
            <template slot-scope="scope">
161
            <template slot-scope="scope">
157
              <span>{{scope.row.batch_number}}</span>
162
              <span>{{scope.row.batch_number}}</span>

+ 5 - 0
src/xt_pages/stock/stockFlow.vue View File

154
              <span > {{scope.row.over_count}}</span>
154
              <span > {{scope.row.over_count}}</span>
155
            </template>
155
            </template>
156
         </el-table-column>
156
         </el-table-column>
157
+        <el-table-column prop="remark" label="备注" align="center">
158
+           <template slot-scope="scope">
159
+             <span > {{scope.row.remark}}</span>
160
+           </template>
161
+        </el-table-column>
157
        </el-table>
162
        </el-table>
158
        
163
        
159
       <el-pagination
164
       <el-pagination

+ 2 - 2
src/xt_pages/user/Sitemap.vue View File

830
 
830
 
831
       var fileType = file.type
831
       var fileType = file.type
832
       const isJPG = fileType.indexOf('image') > -1
832
       const isJPG = fileType.indexOf('image') > -1
833
-      const isLt2M = file.size / 1024 / 1024 < 5
833
+      const isLt2M = file.size / 1024 / 1024 < 20
834
 
834
 
835
       if (!isJPG) {
835
       if (!isJPG) {
836
         this.$message.error('只能上传图片')
836
         this.$message.error('只能上传图片')
837
         return false
837
         return false
838
       }
838
       }
839
       if (!isLt2M) {
839
       if (!isLt2M) {
840
-        this.$message.error('上传头像图片大小不能超过 5MB!')
840
+        this.$message.error('上传头像图片大小不能超过 20MB!')
841
         return false
841
         return false
842
       }
842
       }
843
 
843