Преглед изворни кода

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 пре 9 месеци
родитељ
комит
a201803d00
31 измењених фајлова са 3330 додато и 2227 уклоњено
  1. 9 0
      src/api/doctorSchedule.js
  2. 10 0
      src/api/drug/drug.js
  3. 55 0
      src/utils/tools.js
  4. 2 3
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  5. 1 1
      src/xt_pages/dialysis/bloodPresssWatch.vue
  6. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  7. 5 0
      src/xt_pages/dialysis/details/assessmentAfter.vue
  8. 6 0
      src/xt_pages/dialysis/details/consumable/dialysisGather.vue
  9. 4 0
      src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue
  10. 14 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  11. 2 0
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  12. 11 5
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  13. 11 8
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  14. 4 4
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  15. 27 12
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  16. 105 36
      src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue
  17. 137 16
      src/xt_pages/medicalScheduling/index.vue
  18. 2 2
      src/xt_pages/role/admin.vue
  19. 1 0
      src/xt_pages/stock/drugs/cancelDrugStockOrderDetail.vue
  20. 12 5
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  21. 5 0
      src/xt_pages/stock/drugs/drugCancelDetailPrint.vue
  22. 2 2
      src/xt_pages/stock/drugs/drugNewQuery.vue
  23. 5 0
      src/xt_pages/stock/drugs/drugStockFlow.vue
  24. 2 3
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  25. 74 46
      src/xt_pages/stock/query/purchaseStockQuery.vue
  26. 703 688
      src/xt_pages/stock/query/purchaseStockQueryPrint.vue
  27. 5 0
      src/xt_pages/stock/stockFlow.vue
  28. 2 2
      src/xt_pages/user/Sitemap.vue
  29. 19 6
      src/xt_pages/user/physiqueprinting.vue
  30. 793 843
      src/xt_pages/workforce/appointment.vue
  31. 1300 542
      src/xt_pages/workforce/components/tableData.vue

+ 9 - 0
src/api/doctorSchedule.js Прегледај датотеку

@@ -172,3 +172,12 @@ export function getchartlist(params) {
172 172
     params: params
173 173
   })
174 174
 }
175
+
176
+export function DeleteStaffScheduleById(id,params){
177
+  
178
+  return request({
179
+    url:"/api/deletestaffschedulebyid?id="+id,
180
+    methods:"get",
181
+    params:params
182
+  })
183
+}

+ 10 - 0
src/api/drug/drug.js Прегледај датотеку

@@ -652,3 +652,13 @@ export function getDrugInventoryWarehouseInfoList(params) {
652 652
     params: params
653 653
   })
654 654
 }
655
+
656
+
657
+export function getPurchaseStockQueryList(params){
658
+  
659
+  return request({
660
+    url:"/api/stock/getpurchasestockquerylist",
661
+    method:"Get",
662
+    params:params,
663
+  })
664
+}

+ 55 - 0
src/utils/tools.js Прегледај датотеку

@@ -21,13 +21,68 @@ export function jsGetAge(strBirthday, splitstr) {
21 21
   // debugger
22 22
   var returnAge
23 23
   var strBirthdayArr = strBirthday.split(splitstr)
24
+ 
24 25
   var birthYear = strBirthdayArr[0]
25 26
   var birthMonth = strBirthdayArr[1]
26 27
   var birthDay = strBirthdayArr[2]
28
+
29
+  
27 30
   var d = new Date()
28 31
   var nowYear = d.getFullYear()
29 32
   var nowMonth = d.getMonth() + 1
30 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 86
   if (nowYear == birthYear) {
32 87
     returnAge = 0 // 同年 则为0岁
33 88
   } else {

+ 2 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue Прегледај датотеку

@@ -56,9 +56,8 @@
56 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 57
                <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date>=1672502400">{{record.patient.total_dialysis}}</span>   -->
58 58
               <span>
59
-                            <!-- {{ record.Count ? record.Count:''}} -->
60
-                            {{ record.patient.total_dialysis }}
61
-                        </span>
59
+                 {{ record.Count ? record.Count:''}}  
60
+                </span>
62 61
               </span>
63 62
             </td>
64 63
                   <td style="text-align:center;">

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Прегледај датотеку

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

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

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

+ 5 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue Прегледај датотеку

@@ -338,6 +338,11 @@
338 338
           <label>灌流器凝血: </label>
339 339
           <span class="content" >{{ this.record.condenser}}</span>
340 340
         </li>
341
+
342
+        <li v-if="isShow('上次透后体重')">
343
+          <label>上次透后体重: </label>
344
+          <span class="content" >{{ this.record.last_after_weight}}</span>
345
+        </li>
341 346
       </ul>
342 347
     </div>
343 348
     <!-- <div class="note">

+ 6 - 0
src/xt_pages/dialysis/details/consumable/dialysisGather.vue Прегледај датотеку

@@ -206,6 +206,12 @@
206 206
              </template>
207 207
           </el-table-column>
208 208
 
209
+          <el-table-column align="center" label="穿刺针" v-if="gatherSetting.puncture_needle==1">
210
+             <template slot-scope="scope">
211
+               <span>{{ scope.row.assessment_befor_dislysis.puncture_needle }}</span>
212
+             </template>
213
+          </el-table-column>
214
+
209 215
           <el-table-column align="center" label="封管液" v-if="gatherSetting.tube==1">
210 216
              <template slot-scope="scope">
211 217
                <span v-if="getBloodAccessOption(scope.row.dialysis_prescription.blood_access).indexOf('导管')!==-1">1</span>

+ 4 - 0
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue Прегледај датотеку

@@ -34,6 +34,7 @@
34 34
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">灌流器</td>
35 35
                   <td width="100"  v-if="gatherSetting.dialysis_strainer ==1">滤过器</td>
36 36
                   <td width="100"  v-if="gatherSetting.change_nurse ==1">换药包/穿刺针</td>
37
+                  <td width="100"  v-if="gatherSetting.puncture_needle ==1">穿刺针</td>
37 38
                   <td width="100" v-if="gatherSetting.anticoagulant==1">抗凝剂(首剂)(维持)(总量)</td>
38 39
                   <td width="200" v-if="gatherSetting.tube==1">封管液</td>
39 40
                   <td width="100" v-if="gatherSetting.kalium==1">钾</td>
@@ -126,6 +127,9 @@
126 127
                     <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('内瘘')==-1">0</span>
127 128
                     <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('内瘘')!=-1">1</span>
128 129
                   </td>
130
+                  <td  width="100"  v-if="gatherSetting.puncture_needle ==1">
131
+                    {{ item.assessment_befor_dislysis.puncture_needle }}
132
+                  </td>
129 133
                   <td width="100" v-if="gatherSetting.anticoagulant==1">
130 134
                   
131 135
 

+ 14 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Прегледај датотеку

@@ -58,6 +58,12 @@
58 58
             </el-form-item>
59 59
           </el-col>
60 60
 
61
+          <el-col :span="8" v-if="isShow('上次透后体重')">
62
+            <el-form-item label="上次透后体重(kg): " :prop="isName('上次透后体重')" :rules="isCheckmust('上次透后体重')">
63
+              <el-input v-model="form.last_after_weight"></el-input>
64
+            </el-form-item>
65
+          </el-col>
66
+
61 67
           <el-col :span="8" v-if="isShow('穿刺处血肿')">
62 68
             <el-form-item label="穿刺处血肿: " :prop="isName('穿刺处血肿')" :rules="isCheckmust('穿刺处血肿')">
63 69
               <el-radio-group v-model="form.puncture_point_haematoma">
@@ -879,7 +885,8 @@ export default {
879 885
         after_urea:"",
880 886
         accumulated_blood_volume:"",
881 887
         transfusion_volume:"",
882
-        condenser:""
888
+        condenser:"",
889
+        last_after_weight:""
883 890
       },
884 891
       lapseList:[],
885 892
       leaveOfficeMethod:[],
@@ -1221,6 +1228,12 @@ export default {
1221 1228
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1222 1229
           data["transfusion_volume"] = this.form.transfusion_volume
1223 1230
           data["condenser"] = this.form.condenser
1231
+          if(this.form.last_after_weight >0){
1232
+            data["last_after_weight"] = this.form.last_after_weight.toString()
1233
+          }else{
1234
+            data["last_after_weight"] = ""
1235
+          }
1236
+         
1224 1237
           console.log("Paramsquery",data)
1225 1238
 
1226 1239
           postAssessmentAfterDislysis(ParamsQuery, data)

+ 2 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Прегледај датотеку

@@ -475,6 +475,8 @@ export default {
475 475
         accepts.way =1
476 476
         accepts.posture=1
477 477
         accepts.condition =2
478
+        accepts.consciousness = 1
479
+        accepts.appetite =1
478 480
 
479 481
       }
480 482
       this.accepts = accepts;

+ 11 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -2803,7 +2803,7 @@ mu
2803 2803
         }
2804 2804
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2805 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 2807
           this.zhiShow = true
2808 2808
           this.huShow = true
2809 2809
           this.totalShow = true
@@ -2815,7 +2815,6 @@ mu
2815 2815
           pre.mode_id == 7 ||
2816 2816
           pre.mode_id == 8 ||
2817 2817
           pre.mode_id == 9 ||
2818
-          pre.mode_id == 10 ||
2819 2818
           pre.mode_id == 11 ||
2820 2819
           pre.mode_id == 13 ||
2821 2820
           pre.mode_id == 14 ||
@@ -2852,11 +2851,19 @@ mu
2852 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 2855
                if(this.dialysisPrescription.dialysis_duration_minute == ""){
2857 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 2869
         if (this.predialysis == null || this.predialysis.id == 0) {
@@ -3036,7 +3043,7 @@ mu
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 3047
               this.dialysisPrescription.displace_liqui_part = 0
3041 3048
               this.dialysisPrescription.displace_liqui_value = 0
3042 3049
               this.dialysisPrescription.replacement_total = 0
@@ -4446,7 +4453,6 @@ mu
4446 4453
         id === 7 ||
4447 4454
         id === 8 ||
4448 4455
         id === 9 ||
4449
-        id === 10 ||
4450 4456
         id === 11 ||
4451 4457
         id === 13 ||
4452 4458
         id === 14 ||

+ 11 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

@@ -265,7 +265,8 @@
265 265
                 org_id == 10551 ||
266 266
                 org_id == 10599 ||
267 267
                 org_id == 10597 ||
268
-                org_id == 10599) &&
268
+                org_id == 10599 || 
269
+                org_id == 10612) &&
269 270
                 org_id!=10387
270 271
             "
271 272
           >
@@ -336,7 +337,7 @@
336 337
               && org_id!=10432 && org_id!=10445
337 338
               && org_id!=10410 && org_id!=10495 &&
338 339
                org_id!=10485 && org_id!=10395 && org_id!=10375
339
-               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599)
340
+               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612)
340 341
               || org_id == 10387
341 342
             "
342 343
           >
@@ -392,7 +393,7 @@
392 393
                 org_id == 10410 ||
393 394
                 org_id == 10495  ||
394 395
                 org_id == 10395
395
-                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599)
396
+                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612)
396 397
                 && org_id!=10387
397 398
             "
398 399
           >
@@ -445,7 +446,7 @@
445 446
               org_id!=10432 &&
446 447
               org_id!=10445 &&
447 448
               org_id!=10410 && org_id!=10495
448
-              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599 ) ||
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 ) ||
449 450
               org_id == 10387
450 451
             "
451 452
           >
@@ -1176,7 +1177,7 @@
1176 1177
                 org_id== 10432 ||
1177 1178
                 org_id== 10445 ||
1178 1179
                 org_id== 10410 ||
1179
-                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551) &&
1180
+                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612) &&
1180 1181
                 org_id!=10387
1181 1182
             "
1182 1183
           >
@@ -1224,7 +1225,7 @@
1224 1225
               org_id!=10445 &&
1225 1226
               org_id!=10410 &&
1226 1227
               org_id!=10485 &&
1227
-              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551)
1228
+              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612)
1228 1229
               || org_id == 10387
1229 1230
             "
1230 1231
           >
@@ -1287,7 +1288,8 @@
1287 1288
                 org_id == 10480 ||
1288 1289
                 org_id == 10551 ||
1289 1290
                 org_id == 10597||
1290
-                org_id == 10599)
1291
+                org_id == 10599 ||
1292
+                org_id ==10612)
1291 1293
                 && org_id!=10387
1292 1294
             "
1293 1295
           >
@@ -1350,7 +1352,8 @@
1350 1352
               org_id!=10480 &&
1351 1353
               org_id!=10551 &&
1352 1354
               org_id!=10597 &&
1353
-              org_id!=10599
1355
+              org_id!=10599 &&
1356
+              org_id!=10612
1354 1357
               )
1355 1358
               || org_id == 10387
1356 1359
             "

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue Прегледај датотеку

@@ -15,10 +15,10 @@
15 15
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16 16
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
17 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!=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 == 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!=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==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 22
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
23 23
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
24 24
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || 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 Прегледај датотеку

@@ -1606,7 +1606,7 @@
1606 1606
                           置换量<br />(ml)
1607 1607
                         </td>
1608 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 1610
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1611 1611
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1612 1612
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
@@ -1735,7 +1735,7 @@
1735 1735
                           </span>
1736 1736
                         </td>
1737 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 1739
                           {{ monitor.ktv?monitor.ktv:"" }}
1740 1740
                         </td>
1741 1741
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
@@ -3554,7 +3554,7 @@
3554 3554
 import CheckBox from "../batch_print/option_check_box";
3555 3555
 import { getDialysisRecord } from "@/api/dialysis";
3556 3556
 import { getDataConfig } from "@/utils/data";
3557
-import { jsGetAge, uParseTime } from "@/utils/tools";
3557
+import { jsGetAge, uParseTime,jsGetAgeOne } from "@/utils/tools";
3558 3558
 
3559 3559
 import LabelBox from "../printItem/LabelBox";
3560 3560
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
@@ -3689,6 +3689,7 @@ export default {
3689 3689
       },
3690 3690
       org_id: 0,
3691 3691
       projectsOne: [],
3692
+      ageDate:""
3692 3693
     };
3693 3694
   },
3694 3695
   methods: {
@@ -4209,6 +4210,7 @@ export default {
4209 4210
         } else {
4210 4211
           this.patientInfo.first_dialysis_date = "";
4211 4212
         }
4213
+        this.ageDate = uParseTime(response.data.data.schedule.schedule_date,"{y}-{m}-{d}");
4212 4214
         this.check = response.data.data.check;
4213 4215
         this.xtdate = response.data.data.xtdate;
4214 4216
         this.predialysis = response.data.data.PredialysisEvaluation;
@@ -4707,15 +4709,28 @@ export default {
4707 4709
         } else {
4708 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 4736
     newAdviceGroupObject: function () {

+ 105 - 36
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue Прегледај датотеку

@@ -169,9 +169,12 @@
169 169
           <div style="flex: 1;">
170 170
             透析机
171 171
            <span class="under-line" style="display: inline-block;width: 50%">
172
-            {{ dialysisOrder &&dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
172
+            {{
173
+              predialysis.machine_type ? predialysis.machine_type : ""
174
+           }}
175
+            <!-- {{ dialysisOrder &&dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
173 176
                ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number
174
-            }}
177
+            }} -->
175 178
            </span>
176 179
           </div>
177 180
           <div style="flex: 1;">
@@ -186,13 +189,14 @@
186 189
             灌流器
187 190
             <span class="under-line" style="display: inline-block;width: 50%;">
188 191
               {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
189
-            </span>L
192
+            </span>
190 193
           </div>
191 194
           <div style="flex: 1;display: flex">
192 195
             透析液:
193 196
             <div style="">
194
-              <check-box text="碳酸" :checked="prescription_dialyzate1"></check-box>&nbsp;
195
-              <check-box text="醋酸" :checked="prescription_dialyzate2"></check-box>
197
+              碳酸
198
+              <!-- <check-box text="碳酸" :checked="prescription_dialyzate1"></check-box>&nbsp;
199
+              <check-box text="醋酸" :checked="prescription_dialyzate2"></check-box> -->
196 200
               <!-- <check-box :checked="patientInfo_gender_2"></check-box>&nbsp; -->
197 201
             </div>
198 202
               <!-- <div class="under_line" style="width: 100px; text-align: center;display: inline-block;" v-if="prescription.dialyzate.indexOf('碳酸')>-1">
@@ -243,7 +247,7 @@
243 247
         <table border="1" style="border-collapse: collapse;text-align: center;">
244 248
           <tr>
245 249
             <td style="width: 60px;text-align: center;" rowspan="2" >时间</td>
246
-            <td colspan="4" style="text-align: center;">透析参数</td>
250
+            <td colspan="6" style="text-align: center;">透析参数</td>
247 251
             <td colspan="5" style="text-align: center;">生命体征</td>
248 252
             <td colspan="2" style="text-align: center;">治疗中病情变化</td>
249 253
           </tr>
@@ -252,6 +256,10 @@
252 256
               <p style="height: 20px; line-height: 20px">TMP</p>
253 257
               <p style="height: 20px; line-height: 20px">mmHg</p>
254 258
             </th>
259
+            <th style="width: 70px; font-weight: normal">
260
+              <p style="height: 20px; line-height: 20px">动脉压</p>
261
+              <p style="height: 20px; line-height: 20px">mmHg</p>
262
+            </th>
255 263
             <th style="width: 70px; font-weight: normal">
256 264
               <p style="height: 20px; line-height: 20px">静脉压</p>
257 265
               <p style="height: 20px; line-height: 20px">mmHg</p>
@@ -264,14 +272,18 @@
264 272
               <p style="height: 20px; line-height: 20px">脱水量</p>
265 273
               <p style="height: 20px; line-height: 20px">ml</p>
266 274
             </th>
267
-            <th style="width: 80px; font-weight: normal">
268
-              <p style="height: 20px; line-height: 20px">T</p>
275
+            <th style="width: 130px; font-weight: normal">
276
+              <p style="height: 20px; line-height: 30px">透析液温度</p>
269 277
               <p style="height: 20px; line-height: 20px">℃</p>
270 278
             </th>
271 279
             <th style="width: 60px; font-weight: normal">
272 280
               <p style="height: 20px; line-height: 20px">HR</p>
273 281
               <p style="height: 20px; line-height: 20px">bpm</p>
274 282
             </th>
283
+            <th style="width: 60px; font-weight: normal">
284
+              <p style="height: 20px; line-height: 30px">T</p>
285
+              <p style="height: 20px; line-height: 20px">℃</p>
286
+            </th>
275 287
             <th style="width: 60px; font-weight: normal">
276 288
               <p style="height: 20px; line-height: 20px">R</p>
277 289
               <p style="height: 20px; line-height: 20px">bpm</p>
@@ -282,12 +294,12 @@
282 294
             </th>
283 295
 
284 296
             <th style="width: 80px; font-weight: normal">
285
-              <p style="height: 20px; line-height: 20px">SpO₂</p>
286
-              <p style="height: 20px; line-height: 20px">%</p>
297
+              <p style="height: 20px; line-height: 20px">电导度</p>
298
+              <p style="height: 20px; line-height: 20px">mS/m</p>
287 299
             </th>
288
-            <th style="width: 70px; font-weight: normal">
300
+            <!-- <th style="width: 70px; font-weight: normal">
289 301
               时间
290
-            </th>
302
+            </th> -->
291 303
             <th style="width: 333px; font-weight: normal">
292 304
               <p style="height: 20px; line-height: 20px">
293 305
                 记&nbsp;&nbsp;&nbsp;&nbsp;录
@@ -298,51 +310,72 @@
298 310
             <td style="min-width: 60px; height: 30px">
299 311
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
300 312
             </td>
313
+            
301 314
             <td>
302 315
               <span v-if="getTime(monitor.operate_time) != ''">
303 316
                 {{
304 317
                   monitor.transmembrane_pressure
305 318
                     ? monitor.transmembrane_pressure
306
-                    : ""
319
+                    : "/"
307 320
                 }}
308 321
               </span>
309 322
             </td>
323
+
324
+            <th style="width: 70px; font-weight: normal">
325
+              <span v-if="getTime(monitor.operate_time) != ''">
326
+                {{
327
+                  monitor.arterial_pressure
328
+                    ? monitor.arterial_pressure
329
+                    : "/"
330
+                }}
331
+              </span>
332
+            </th>
333
+            
310 334
             <td>
311 335
               <span v-if="getTime(monitor.operate_time) != ''">
312
-                &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
336
+                &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "/" }}
313 337
               </span>
314 338
             </td>
315 339
             <td>
316 340
               <span v-if="getTime(monitor.operate_time) != ''">
317
-                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
341
+                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "/" }}
318 342
               </span>
319 343
             </td>
320 344
             <td style="min-width: 45px">
321 345
               <span v-if="getTime(monitor.operate_time) != ''">
322
-                {{
346
+                <span v-if="monindex == 1">0</span>
347
+                <span v-if="monindex != 1">
348
+                  {{
323 349
                   monitor.ultrafiltration_volume
324 350
                     ? monitor.ultrafiltration_volume
325
-                    : " "
326
-                }}
351
+                    : ""
352
+                 }}
353
+                </span>
354
+              
327 355
               </span>
328 356
             </td>
329 357
             <!-- 生命体征 -->
330 358
             <!-- T -->
331 359
             <td>
332 360
               <span v-if="getTime(monitor.operate_time) != ''">
333
-                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
361
+                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "/" }}
334 362
               </span>
335 363
             </td>
336 364
             <!-- HR -->
337 365
             <td>
338 366
               <span v-if="getTime(monitor.operate_time) != ''">
339
-                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
367
+                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}
340 368
               </span>
341 369
             </td>
342 370
             <!-- R -->
343 371
             <td>
344 372
               <span v-if="getTime(monitor.operate_time) != ''">
345
-                {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
373
+                {{ monitor.temperature ? monitor.temperature : "/" }}
374
+              </span>
375
+            </td>
376
+            <td>
377
+              <span v-if="getTime(monitor.operate_time) != ''">
378
+                {{ monitor.breathing_rate ? monitor.breathing_rate : "/" }}
346 379
               </span>
347 380
             </td>
348 381
             <!-- BP -->
@@ -351,11 +384,11 @@
351 384
                 {{
352 385
                   monitor.systolic_blood_pressure
353 386
                     ? monitor.systolic_blood_pressure
354
-                    : ""
387
+                    : "/"
355 388
                 }}/{{
356 389
                   monitor.diastolic_blood_pressure
357 390
                     ? monitor.diastolic_blood_pressure
358
-                    : ""
391
+                    : "/"
359 392
                 }}
360 393
               </span>
361 394
             </td>
@@ -363,25 +396,25 @@
363 396
             <td>
364 397
               <span v-if="getTime(monitor.operate_time) != ''">
365 398
                 {{
366
-                  monitor.blood_oxygen_saturation
367
-                    ? monitor.blood_oxygen_saturation
368
-                    : ""
399
+                  monitor.conductivity
400
+                    ? monitor.conductivity
401
+                    : "/"
369 402
                 }}
370 403
               </span>
371 404
             </td>
372 405
 
373 406
             <!-- 病情变化 -->
374
-            <td style="min-width: 60px; height: 30px">
407
+            <!-- <td style="min-width: 60px; height: 30px">
375 408
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
376
-            </td>
409
+            </td> -->
377 410
             <td>
378 411
               <template 
379 412
               v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)&&(org_id!=10414) "
380 413
               >
381
-                【开始透析】
414
+                开始上机,引血100ml/min
382 415
               </template>
383
-              <span v-if="monitor.symptom || monitor.dispose || monitor.result">
384
-                {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{
416
+              <span v-if="monitor.symptom || monitor.dispose || monitor.result || monitor.end ">
417
+                {{ monitor.end }}  {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{
385 418
                   monitor.result
386 419
                 }}
387 420
               </span>
@@ -411,7 +444,14 @@
411 444
                 <p style="height:15px;line-height:15px">上次透后体重</p>
412 445
               </td>
413 446
               <td style="width:8%;">
414
-                {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
447
+              
448
+                 <span v-if="assessmentafter.weight_after == 0">
449
+                  {{ afterdialysis.last_after_weight ? afterdialysis.last_after_weight : "0" }}kg
450
+                 </span>
451
+                 <span v-if="assessmentafter.weight_after>0">
452
+                  {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
453
+                 </span>
454
+                  
415 455
               </td>
416 456
             </tr>
417 457
 
@@ -421,7 +461,7 @@
421 461
                 <span v-if="advice.parent_id > 0">---></span>
422 462
                 <span>{{ advice.advice_name }}</span>
423 463
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
424
-                <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> -->
425 465
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
426 466
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
427 467
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
@@ -437,7 +477,15 @@
437 477
               <td v-if="advice_index === 0">透前体重</td>
438 478
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
439 479
               <td v-if="advice_index === 1">体重增加量</td>
440
-              <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>
441 489
               <td v-if="advice_index === 2">干体重(DW)</td>
442 490
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
443 491
               <td v-if="advice_index === 3">较干体重增加量</td>
@@ -1223,6 +1271,25 @@ export default {
1223 1271
               this.monitors.push([]);
1224 1272
             }
1225 1273
           }
1274
+
1275
+          var tempmonitorflag = true;
1276
+          for (let index = 0; index < this.monitors.length; index++) {
1277
+            const monitor = this.monitors[index];
1278
+            this.monitors[index].end = "";
1279
+            if (Object.keys(monitor).length > 0 && index > 1) {
1280
+              if (
1281
+                (this.dialysisOrder &&
1282
+                monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)
1283
+              ) {
1284
+                this.monitors[index].end = "结束治疗,予下机";
1285
+                tempmonitorflag = false;
1286
+              }
1287
+              if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
1288
+                this.monitors[index].end = "结束治疗,予下机";
1289
+              }
1290
+            }
1291
+          }
1292
+
1226 1293
           this.jilurow = this.monitors.length + 1;
1227 1294
 
1228 1295
           this.advice_jilurow = this.advices.length + 1;
@@ -1456,11 +1523,13 @@ export default {
1456 1523
       }
1457 1524
     },
1458 1525
     "prescription.dialyzate": function() {
1526
+      console.log("this.prescription",this.prescription.dialyzate)
1459 1527
       if(this.prescription.dialyzate !='undefined'){
1460
-        if(prescription.dialyzate.indexOf('碳酸')>-1){
1528
+        this.prescription.dialyzate="碳酸"
1529
+        if(this.prescription.dialyzate.indexOf('碳酸')>-1){
1461 1530
           this.prescription_dialyzate1 =true
1462 1531
           this.prescription_dialyzate2 = false
1463
-        }else if(prescription.dialyzate.indexOf('醋酸')>-1){
1532
+        }else if(this.prescription.dialyzate.indexOf('醋酸')>-1){
1464 1533
           this.prescription_dialyzate1 =false
1465 1534
           this.prescription_dialyzate2 = true
1466 1535
         }else{

+ 137 - 16
src/xt_pages/medicalScheduling/index.vue Прегледај датотеку

@@ -42,7 +42,11 @@
42 42
             </div>
43 43
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
44 44
                 <div style="width: 70%">
45
-                    <el-table :data="tableData" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" :row-style="{ color: '#303133' }"  @cell-click="clickThis" :cell-style="tableCellStyle">
45
+                    <el-table :data="tableData" border 
46
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" 
47
+                    :row-style="{ color: '#303133' }"  @cell-click="clickThis" :cell-style="tableCellStyle"
48
+                    @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse">
49
+                    <!-- @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse" -->
46 50
                         <el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
47 51
                             <template slot-scope="scope">
48 52
                                 <span>{{scope.row.user_name}}</span>
@@ -50,8 +54,15 @@
50 54
                         </el-table-column>
51 55
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
52 56
                             <template slot-scope="scope">
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" >
59
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
60
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,1))"   
61
+                                    ></el-button>
62
+                                  </div>
63
+                                </div>
53 64
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
54
-                                    <el-dropdown trigger="click" @command="changeSchedule">
65
+                                    <el-dropdown trigger="click" @command="changeSchedule" >
55 66
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
56 67
                                             <span>{{ getClass(scope.row.user_name,1) }}</span><i v-if="getTimestamp(weekDayArr[0])>=timeNow && scope.row.admin_user_id!=1000000?true:false" class="el-icon-arrow-down el-icon--right"></i>
57 68
                                         </span>
@@ -67,6 +78,14 @@
67 78
                         </el-table-column>
68 79
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
69 80
                              <template slot-scope="scope">
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">
83
+                                  <el-button type="danger" size="mini" icon="el-icon-close" 
84
+                                    circle @click.stop="toClick(getClassId(scope.row.user_name,2))"   
85
+                                  ></el-button>
86
+                                </div>
87
+                              </div>
88
+                                
70 89
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
71 90
                                     <el-dropdown trigger="click" @command="changeSchedule">
72 91
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
@@ -84,6 +103,13 @@
84 103
                         </el-table-column>
85 104
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
86 105
                              <template slot-scope="scope">
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">
108
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
109
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,3))"   
110
+                                    ></el-button>
111
+                                  </div>
112
+                                </div>
87 113
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
88 114
                                     <el-dropdown trigger="click" @command="changeSchedule">
89 115
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
@@ -101,6 +127,13 @@
101 127
                         </el-table-column>
102 128
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
103 129
                              <template slot-scope="scope">
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">
132
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
133
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,4))"   
134
+                                    ></el-button>
135
+                                  </div>
136
+                                </div>
104 137
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
105 138
                                     <el-dropdown trigger="click" @command="changeSchedule">
106 139
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
@@ -118,6 +151,13 @@
118 151
                         </el-table-column>
119 152
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
120 153
                              <template slot-scope="scope">
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">
156
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
157
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,5))"   
158
+                                    ></el-button>
159
+                                  </div>
160
+                                </div>
121 161
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
122 162
                                     <el-dropdown trigger="click" @command="changeSchedule">
123 163
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
@@ -135,6 +175,13 @@
135 175
                         </el-table-column>
136 176
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
137 177
                              <template slot-scope="scope">
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">
180
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
181
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,6))"   
182
+                                    ></el-button>
183
+                                  </div>
184
+                                </div>
138 185
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
139 186
                                     <el-dropdown trigger="click" @command="changeSchedule">
140 187
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
@@ -152,6 +199,13 @@
152 199
                         </el-table-column>
153 200
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
154 201
                              <template slot-scope="scope">
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">
204
+                                    <el-button type="danger" size="mini" icon="el-icon-close" 
205
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,0))"   
206
+                                    ></el-button>
207
+                                  </div>
208
+                                </div>
155 209
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
156 210
                                     <el-dropdown trigger="click" @command="changeSchedule">
157 211
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
@@ -276,7 +330,7 @@
276 330
                                   {{scope.row.user_name}}
277 331
                               </template>
278 332
                              </el-table-column>
279
-                             <el-table-column align="center" prop="date" label="职称"width="180">
333
+                             <el-table-column align="center" prop="date" label="职称" width="180">
280 334
                                 <template slot-scope="scope">
281 335
                                     <span v-if="scope.row.user_title == 1">医士</span>
282 336
                                     <span v-if="scope.row.user_title == 2">医师</span>
@@ -342,11 +396,10 @@
342 396
     </div>
343 397
 </template>
344 398
 
345
-
346 399
 <script>
347 400
 const moment = require('moment')
348 401
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
349
-import { getDoctorList,getScheduleList,addSchedule,getStaffScheduleList,getNextWeekList,getScheduleByDoctorId,toSearchScheduleList,DeleteStaffSchedule,copyStaffSchedule,UpdateContinusSchedule,SaveNurseSort,SaveIsSchedule } from '@/api/doctorSchedule'
402
+import { getDoctorList,getScheduleList,addSchedule,getStaffScheduleList,getNextWeekList,getScheduleByDoctorId,toSearchScheduleList,DeleteStaffSchedule,copyStaffSchedule,UpdateContinusSchedule,SaveNurseSort,SaveIsSchedule,DeleteStaffScheduleById } from '@/api/doctorSchedule'
350 403
 import { constants } from 'crypto'
351 404
 export default {
352 405
     components:{
@@ -411,7 +464,9 @@ export default {
411 464
            nurseTableData:[],
412 465
            doctorTableData:[],
413 466
            exportDialogVisible:false,
414
-           month_time:""
467
+           month_time:"",
468
+           name:'',
469
+           column_lie:''
415 470
         }
416 471
     },
417 472
     methods:{
@@ -443,7 +498,7 @@ export default {
443 498
                     this.getStaffScheduleList()
444 499
 
445 500
                     var doctorlist =  response.data.data.doctorlist
446
-                  
501
+
447 502
                     for(let i=0;i<doctorlist.length;i++){
448 503
                         if(doctorlist[i].sort == 0){
449 504
                           doctorlist[i].sort = ""
@@ -691,7 +746,7 @@ export default {
691 746
                         })
692 747
                         sevenStr = zeroStr
693 748
                     }
694
-                    
749
+
695 750
                     if(staffList[i].schedule_week == 1){
696 751
                         staffList[i].class_index = 1
697 752
                         var arr = []
@@ -803,7 +858,7 @@ export default {
803 858
                         fourStr = strFour
804 859
                     }
805 860
 
806
-                    
861
+
807 862
                     if(staffList[i].schedule_week == 5){
808 863
                         staffList[i].class_index = 5
809 864
 
@@ -861,28 +916,30 @@ export default {
861 916
                         sixStr = strSix
862 917
                      }
863 918
                     }
919
+                   console.log("staffList",staffList)
864 920
                     let tempArr = [], newArr = []
865 921
                     for (let i = 0; i < staffList.length; i++) {
866 922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
867 923
                             newArr.push({
924
+                                id:staffList[i].id,
868 925
                                 user_name: staffList[i].user_name,
869 926
                                 admin_user_id:staffList[i].admin_user_id,
870 927
                                 user_type:staffList[i].doctor_type,
871 928
                                 is_sort:staffList[i].is_sort,
872 929
                                 sort:staffList[i].sort,
873
-                                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}]
874 931
                             })
875 932
                             tempArr.push(staffList[i].user_name);
876 933
                         } else {
877 934
                             console.log("staffList",staffList[i].user_name)
878 935
                             for (let j = 0; j < newArr.length; j++) {
879 936
                                 if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
880
-                                    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})
881 938
                                 }
882 939
                             }
883 940
                         }
884 941
                     }
885
-                    
942
+
886 943
                     let arrTen = [...newArr]
887 944
                     console.log("newArr22o2o2o2o2wo",arrTen)
888 945
                     let newNurse = []
@@ -914,7 +971,7 @@ export default {
914 971
                         }
915 972
                     })
916 973
                     newNurse.sort(this.compare('sort'))
917
-                  
974
+
918 975
                     // //医生
919 976
                     newDoctor.sort(this.compare('admin_user_id'))
920 977
                     let newDoctorTableData = []
@@ -935,7 +992,7 @@ export default {
935 992
 
936 993
 
937 994
                     let arr2 = []
938
-                    
995
+
939 996
                     arr2.push({class_name:oneStr,schedule_week:1})
940 997
                     arr2.push({class_name:twoStr,schedule_week:2})
941 998
                     arr2.push({class_name:threeStr,schedule_week:3})
@@ -951,12 +1008,12 @@ export default {
951 1008
                     arr.push(obj)
952 1009
 
953 1010
                     let data = []
954
-                  
1011
+
955 1012
                     data.push(...newNurse)
956 1013
                     data.push(...newDoctor)
957 1014
                     data.push(obj)
958 1015
                     console.log("data2o2oo2o2o2o22o",data)
959
-                    
1016
+
960 1017
                     // this.tableData = this.distinct(data)
961 1018
                     this.tableData = data
962 1019
 
@@ -994,6 +1051,26 @@ export default {
994 1051
                 return newClass
995 1052
             }
996 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
+
997 1074
         },
998 1075
         getClassAttributes(name,index){
999 1076
             if(name != undefined){
@@ -1734,6 +1811,7 @@ export default {
1734 1811
                         data.push(...newNurse)
1735 1812
                         data.push(obj)
1736 1813
                         this.tableData = data
1814
+                        console.log('cccccc',this.tableData);
1737 1815
                     }
1738 1816
 
1739 1817
             }
@@ -1993,7 +2071,39 @@ export default {
1993 2071
         return jsonData.map(v => filterVal.map(j => v[j]))
1994 2072
        },
1995 2073
 
2074
+       toClick(id,index){
2075
+          this.$confirm(
2076
+            '是否要清除当前排班? <br>清除后,信息将无法恢复',
2077
+            '删除提示',
2078
+            {
2079
+                dangerouslyUseHTMLString: true,
2080
+                confirmButtonText: '确定',
2081
+                cancelButtonText: '取消',
2082
+                type: 'warning'
2083
+            }
2084
+            ).then(()=>{
2085
+             console.log("rowwoowowow",id)
2086
+           
2087
+            DeleteStaffScheduleById(id).then(response=>{
2088
+                if(response.data.state == 1){
2089
+                    var msg =  response.data.data.msg
2090
+                    this.$message.success("清除成功")
2091
+                    this.getStaffScheduleList()
1996 2092
 
2093
+                }
2094
+            })
2095
+         })
2096
+       },
2097
+
2098
+
2099
+       hoverMouse(row,column, cell, event){
2100
+        this.name=row.user_name
2101
+        this.column_lie= column.label.split('\n')[0]
2102
+
2103
+       },
2104
+       leavemouse(row, column, cell, event){
2105
+        this.name=''
2106
+       }
1997 2107
     },
1998 2108
     created(){
1999 2109
         //获取医护人员
@@ -2086,5 +2196,16 @@ export default {
2086 2196
     max-height:96%;
2087 2197
     overflow-y: auto;
2088 2198
 }
2199
+.del_table_btns {
2200
+    position: absolute;
2201
+    right: 0px;
2202
+    top: -3px;
2203
+    // visibility: hidden;
2204
+  .el-button {
2205
+    width: 15px;
2206
+    height: 15px;
2207
+    padding: 0px;
2208
+  }
2209
+}
2089 2210
 
2090 2211
 </style>

+ 2 - 2
src/xt_pages/role/admin.vue Прегледај датотеку

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

+ 1 - 0
src/xt_pages/stock/drugs/cancelDrugStockOrderDetail.vue Прегледај датотеку

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

+ 12 - 5
src/xt_pages/stock/drugs/components/drugCancelDetail.vue Прегледај датотеку

@@ -143,6 +143,11 @@
143 143
             {{scope.row.count}}
144 144
           </template>
145 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 151
         <el-table-column label="总价" align="center">
147 152
           <template slot-scope="scope">
148 153
             {{scope.row.total_price}}
@@ -472,10 +477,10 @@ export default {
472 477
     exportListOne(){
473 478
       // let obj = {'index':'合计','total_price':0}
474 479
     
475
- 
480
+      console.log("@332322323232332",this.tableList)
476 481
        for(let i=0;i<this.tableList.length;i++){
477 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 484
           if(this.tableList[i].drug_type == 1){
480 485
              this.tableList[i].drugtype = "西药"
481 486
           }
@@ -490,11 +495,13 @@ export default {
490 495
 
491 496
         }
492 497
     
493
-      console.log("@332322323232332",this.tableList)
498
+    
499
+
500
+  
494 501
       
495 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 506
        const data = this.formatJson(filterVal, this.tableList)
500 507
 

+ 5 - 0
src/xt_pages/stock/drugs/drugCancelDetailPrint.vue Прегледај датотеку

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

+ 2 - 2
src/xt_pages/stock/drugs/drugNewQuery.vue Прегледај датотеку

@@ -14,9 +14,9 @@
14 14
                <PurchaseNewDrugQuery ref="mychildfive"></PurchaseNewDrugQuery>
15 15
             </el-tab-pane>
16 16
         
17
-            <el-tab-pane label="进销存查询" name="second">
17
+            <!-- <el-tab-pane label="进销存查询" name="second">
18 18
               <PurchaseDrugQuery ref="mychild"></PurchaseDrugQuery>
19
-            </el-tab-pane> 
19
+            </el-tab-pane>  -->
20 20
 
21 21
             <el-tab-pane label="有效期查询" name="third">
22 22
                 <ExpiryDateDrugQuery ref="mychildOne"></ExpiryDateDrugQuery>

+ 5 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue Прегледај датотеку

@@ -152,6 +152,11 @@
152 152
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
153 153
            </template>
154 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 160
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
156 161
            <template slot-scope="scope">
157 162
              <span>{{scope.row.batch_number}}</span>

+ 2 - 3
src/xt_pages/stock/query/purchaseNewStockQuery.vue Прегледај датотеку

@@ -1060,10 +1060,9 @@ export default {
1060 1060
            const filterVal = ['index','good_number', 'query_date', 'good_type','good_name','specification_name_one','manufacturer_name','dealer_name','stockIn','stock_in_price','stockMoney','stockAdd','addStockMoney','saleStockMoney','outStock','stockOutprice','saleOutMoney','overStock','overPrice','overMoney']
1061 1061
     
1062 1062
            const data = this.formatJson(filterVal, this.tableList)
1063
-           
1063
+        
1064 1064
            const filename = '进销存查询'
1065
-     
1066
-          
1065
+            
1067 1066
             excel.export_json_to_excel({
1068 1067
               multiHeader,
1069 1068
               header,

+ 74 - 46
src/xt_pages/stock/query/purchaseStockQuery.vue Прегледај датотеку

@@ -53,6 +53,7 @@
53 53
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
54 54
          </div>
55 55
          <div>
56
+       
56 57
            <el-button type="primary" size="small" @click="toPrint">打印</el-button>
57 58
            <el-button type="primary" size="small" @click="exportList">导出</el-button>
58 59
          </div>
@@ -68,16 +69,23 @@
68 69
             :class="signAndWeighBoxPatients"
69 70
             border
70 71
           >
72
+        
71 73
             <el-table-column label="耗材类型" align="center">
72 74
               <template slot-scope="scope">
73 75
                  {{getGoodTypeName(scope.row.good_type_id)}}
74 76
               </template>
75 77
             </el-table-column>
78
+            <el-table-column label="耗材编码" align="center">
79
+              <template slot-scope="scope">
80
+                <span v-if="scope.row.good_number>0">{{ scope.row.good_number?scope.row.good_number:"" }}</span> 
81
+              </template>
82
+            </el-table-column>
76 83
             <el-table-column label="耗材名称" align="center">
77 84
               <template slot-scope="scope">
78 85
                 {{scope.row.good_name}}
79 86
               </template>
80 87
             </el-table-column>
88
+
81 89
             <el-table-column label="规格&单位" align="center">
82 90
                 <template slot-scope="scope">
83 91
                   {{scope.row.specification_name}}/{{scope.row.packing_unit}}
@@ -88,6 +96,17 @@
88 96
                  {{getManufacturName(scope.row.manufacturer)}}
89 97
               </template>
90 98
             </el-table-column>
99
+            <el-table-column label="经销商" align="center">
100
+              <template slot-scope="scope">
101
+                 {{getDearName(scope.row.dealer)}}
102
+              </template>
103
+            </el-table-column>
104
+
105
+            <el-table-column label="单位" align="center">
106
+              <template slot-scope="scope">
107
+                 {{scope.row.packing_unit}}
108
+              </template>
109
+            </el-table-column>
91 110
             <el-table-column label="期初结余" align="center">
92 111
                
93 112
                  <el-table-column prop="stockIn" label="数量" width="100">
@@ -157,7 +176,7 @@
157 176
   </div>
158 177
 </template>
159 178
 <script>
160
-import { getStorehouseList,getPurchaseStockQuery } from "@/api/drug/drug"
179
+import { getStorehouseList,getPurchaseStockQueryList,getGoodOverCount } from "@/api/drug/drug"
161 180
 import {
162 181
   getStockDrugCount
163 182
 } from "@/api/stock";
@@ -201,9 +220,10 @@ export default {
201 220
      loading:false,
202 221
      pickerOptions:{ //禁用当前日期之前的日期
203 222
            disabledDate(v) {
204
-            return v.getTime() < 1667232000000
223
+            return v.getTime() < 1667491200000
205 224
           },
206 225
       },
226
+     dealerList:[],
207 227
     }
208 228
   
209 229
   },
@@ -231,6 +251,7 @@ export default {
231 251
              this.goodTypeList.push(goodTypeList[i])
232 252
             }
233 253
            this.patientList = response.data.data.patientList
254
+           this.dealerList = response.data.data.dealerList
234 255
          }
235 256
       })
236 257
     },
@@ -244,35 +265,37 @@ export default {
244 265
           start_time:this.start_time,
245 266
           end_time:this.end_time,
246 267
         }
247
-      getPurchaseStockQuery(params).then(response=>{
268
+      getPurchaseStockQueryList(params).then(response=>{
248 269
          if(response.data.state == 1){
249 270
             var list = response.data.data.list
271
+           
250 272
             this.loading = false
251 273
             for(let i=0;i<list.length;i++){
252 274
                
253
-              list[i].stockIn = this.getWarehouseInfoStart(list[i].StartFlowInfo,list[i].StartOutFlowInfo,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].StartCancelFlowInfo) //期初结余
254
-              list[i].stock_in_price = this.getWarehouseInfoStartPrice(list[i].StartFlowInfo,list[i].StartOutFlowInfo,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].StartCancelFlowInfo)
255
-              list[i].stockMoney = this.getWarehouseInfoStartMoney(list[i].StartFlowInfo,list[i].StartOutFlowInfo,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].StartCancelFlowInfo)
256
-              
275
+               list[i].stockIn = list[i].GoodStartFlowInfo.over_count
276
+               list[i].stock_in_price = list[i].buy_price
277
+               list[i].stockMoney = (list[i].buy_price * list[i].GoodStartFlowInfo.over_count).toFixed(2)
278
+            
257 279
               list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
258
-              list[i].addStockMoney = this.getAddStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
259
-              list[i].saleStockMoney = this.getSaleStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
280
+              list[i].addStockMoney = list[i].buy_price
281
+              list[i].saleStockMoney = (list[i].stockAdd * list[i].buy_price).toFixed(2)
260 282
 
261 283
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
262
-              list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
263
-              list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
264
-              
265
-              // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
266
-
284
+              list[i].stockOutprice = list[i].retail_price
285
+              list[i].saleOutMoney = (list[i].outStock * list[i].stockOutprice).toFixed(2)
286
+             
287
+             
267 288
               list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
268
-              list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
269
-              list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
289
+              list[i].overPrice = list[i].buy_price
290
+              list[i].overMoney = (list[i].overStock * list[i].buy_price).toFixed(2)
270 291
              
271 292
             }
293
+            console.log("listwowowoowowowow",list)
272 294
             this.tableList = list
273 295
             this.total = response.data.data.total
274 296
 
275 297
            this.manufacturerList = response.data.data.manufacturerList
298
+          
276 299
            
277 300
          }
278 301
       })
@@ -572,11 +595,7 @@ export default {
572 595
         countfive +=arr5[i].count
573 596
       }
574 597
     }
575
-    console.log("countOne",countOne)
576
-    console.log("countTwo",countTwo)
577
-    console.log("countthree",countthree)
578
-    console.log("countfour",countfour)
579
-    console.log("*********************")
598
+   
580 599
     count = countOne - countTwo + countthree - countfour + countfive
581 600
     if(count > 0 ){
582 601
       return count
@@ -610,10 +629,7 @@ export default {
610 629
      }
611 630
     }
612 631
     all_count = count + countOne
613
-    console.log("count2332323223232o2222222222wide",count)
614
-    console.log("countONE23232322323323223",countOne)
615
-    console.log("all_count9999999999999wode",all_count)
616
-    console.log("-------------------------------------------")
632
+   
617 633
     if(all_count > 0 ){
618 634
       return all_count
619 635
     }else{
@@ -674,7 +690,8 @@ export default {
674 690
     }
675 691
    },
676 692
    open(){
677
-    this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
693
+    // this.start_time = moment().year(2022).month(10).date(4).format('YYYY-MM-DD')
694
+    this.start_time = moment().startOf('month').format('YYYY-MM-DD')
678 695
     this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
679 696
     this.houseList = []
680 697
     this.goodTypeList= []
@@ -788,6 +805,7 @@ export default {
788 805
         count_two +=val3[i].count
789 806
       }
790 807
      }
808
+    
791 809
      all_count = count +count_one - count_two
792 810
      if(all_count >0){
793 811
        return all_count
@@ -920,11 +938,7 @@ export default {
920 938
          total_price_four +=val4[i].count * val4[i].buy_price
921 939
        }
922 940
      }
923
-     console.log("total_price",total_price)
924
-     console.log("total_price_three",total_price_three)
925
-     console.log("total_price_two",total_price_two)
926
-     console.log("total_price_one",total_price_one)
927
-     console.log("total_price_four",total_price_four)
941
+   
928 942
      all_price = total_price- total_price_three +total_price_one - total_price_two + total_price_four
929 943
      console.log("arrll_price",all_price)
930 944
      if(all_price >0){
@@ -976,24 +990,25 @@ export default {
976 990
     this.$router.push({path:"/purchase/stock/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
977 991
    },
978 992
    exportList: function() {
993
+
979 994
         for(let i=0;i<this.tableList.length;i++){
980 995
           this.tableList[i].index = i+1
981 996
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
982 997
           this.tableList[i].good_type = this.getGoodTypeName(this.tableList[i].good_type_id)
983 998
           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
999
+          this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
984 1000
           this.tableList[i].specification_name_one = this.tableList[i].specification_name + "/"+this.tableList[i].packing_unit
985 1001
         }
986 1002
         import('@/vendor/Export2Excel').then(excel => {
987
-           const multiHeader = [['序号', '查询日期',' 耗材类型','耗材名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
988
-           const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
989
-           const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
990
-           const filterVal = ['index', 'query_date', 'good_type','good_name','specification_name_one','manufacturer_name','stockIn','stock_in_price','stockMoney','stockAdd','addStockMoney','saleStockMoney','outStock','stockOutprice','saleOutMoney','overStock','overPrice','overMoney']
1003
+            const multiHeader = [['序号', '查询日期',' 耗材类型','耗材编码','耗材名称','规格&单位','生产产商','经销商','单位', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1004
+            const header = ['','','','','','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
1005
+            const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:G2','H1:H2','I1:I2', 'J1:L1', 'M1:O1', 'P1:R1','S1:U1']
1006
+            const filterVal = ['index', 'query_date', 'good_type','good_number','good_name','specification_name_one','manufacturer_name','dealer_name','packing_unit','stockIn','stock_in_price','stockMoney','stockAdd','addStockMoney','saleStockMoney','outStock','stockOutprice','saleOutMoney','overStock','overPrice','overMoney']
991 1007
     
992
-           const data = this.formatJson(filterVal, this.tableList)
993
-           
994
-           const filename = '进销存查询'
995
-     
996
-          
1008
+            const data = this.formatJson(filterVal, this.tableList)
1009
+            console.log("datae3ooo2o2o2o",data)
1010
+            const filename = '进销存查询'
1011
+      
997 1012
             excel.export_json_to_excel({
998 1013
               multiHeader,
999 1014
               header,
@@ -1002,17 +1017,30 @@ export default {
1002 1017
               filename
1003 1018
             })
1004 1019
         })
1020
+
1005 1021
       },
1006 1022
       formatJson(filterVal, jsonData) {
1007 1023
         return jsonData.map(v => filterVal.map(j => v[j]));
1008 1024
       },
1009
-     
1025
+     toOverCount(){
1026
+       getGoodOverCount().then(response=>{
1027
+         if(response.data.state == 1){
1028
+           var msg = response.data.data.msg
1029
+           this.$message.success("调试成功")
1030
+         }
1031
+       })
1032
+     },
1033
+     getDearName(id){
1034
+      var dear_name = ""
1035
+      for(let i=0;i<this.dealerList.length;i++){
1036
+        if(id == this.dealerList[i].id){
1037
+          dear_name = this.dealerList[i].dealer_name
1038
+        }
1039
+      }
1040
+      return dear_name
1041
+    },
1010 1042
   },
1011
-  // created(){
1012
-  //   this.getStorehouseList()
1013
-  //   this.getlist()
1014
-  //   this.getStockDrugCount()
1015
-  // }
1043
+
1016 1044
 }
1017 1045
 </script>
1018 1046
 

Разлика између датотеке није приказан због своје велике величине
+ 703 - 688
src/xt_pages/stock/query/purchaseStockQueryPrint.vue


+ 5 - 0
src/xt_pages/stock/stockFlow.vue Прегледај датотеку

@@ -154,6 +154,11 @@
154 154
              <span > {{scope.row.over_count}}</span>
155 155
            </template>
156 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 162
        </el-table>
158 163
        
159 164
       <el-pagination

+ 2 - 2
src/xt_pages/user/Sitemap.vue Прегледај датотеку

@@ -830,14 +830,14 @@ export default{
830 830
 
831 831
       var fileType = file.type
832 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 835
       if (!isJPG) {
836 836
         this.$message.error('只能上传图片')
837 837
         return false
838 838
       }
839 839
       if (!isLt2M) {
840
-        this.$message.error('上传头像图片大小不能超过 5MB!')
840
+        this.$message.error('上传头像图片大小不能超过 20MB!')
841 841
         return false
842 842
       }
843 843
 

+ 19 - 6
src/xt_pages/user/physiqueprinting.vue Прегледај датотеку

@@ -6,7 +6,7 @@
6 6
       </el-button>
7 7
     </div>
8 8
     <div class="app-container">
9
-      <div id="print_content" v-for="item in this.list">
9
+      <div id="print_content" v-for="item in this.list" style="font-family: Microsoft YaHei;font-size: 16px;">
10 10
         <div class="print_page_main_content">
11 11
           <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
12 12
           <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
@@ -69,7 +69,7 @@
69 69
           </div>
70 70
           <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
71 71
           <div style="word-break: break-all; word-wrap: break-word;">
72
-            <div v-html="item.content"></div>
72
+            <div v-html="item.content" style="font-family: Microsoft YaHei;"></div>
73 73
           </div>
74 74
           <h3 v-if="item.XtPatientPhysiqueCheck.id > 0" style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
75 75
           <div v-if="item.XtPatientPhysiqueCheck.id > 0">
@@ -120,9 +120,18 @@
120 120
 
121 121
           <div style="margin-top: 30px;">
122 122
             <span style="font-weight: bold; display: block;">初步诊断:</span>
123
-            {{ patient.diagnose }}
124
-            <span style="font-weight: bold;">病历书写者:</span>
125
-            {{getDoctorName(item.doctor_id)}}
123
+            <div v-for="(item,index) in diagnosis" :key="index" style="line-height: 20px;" v-if="org_id==10612">
124
+              {{index+1}}.<span>{{ item }}</span><br/>
125
+            </div>
126
+            <span v-if="org_id!=10612">{{ patient.diagnose }}</span>
127
+            <div style="text-align: right;margin-bottom: 10px;">
128
+              <span style="font-weight: bold;">病历书写者:</span>
129
+              {{getDoctorName(item.doctor_id)}}
130
+            </div>
131
+            
132
+
133
+          </div>
134
+          <div style="float: right;">
126 135
             <span style="font-weight: bold;">日期:</span>
127 136
             {{getTime(item.record_time,'{y}-{m}-{d}')}}
128 137
           </div>
@@ -198,7 +207,8 @@ export default {
198 207
         abdomen: '',
199 208
         other: ''
200 209
       },
201
-      diagnosis: ''
210
+      diagnosis: [],
211
+      org_id:0
202 212
     }
203 213
   },
204 214
   components: {
@@ -668,6 +678,8 @@ export default {
668 678
       getSickhistoryCheckRecordsPrint(params).then(response => {
669 679
         if (response.data.state == 1) {
670 680
           this.patient = response.data.data.patient
681
+          this.diagnosis = this.patient.diagnose.split(',')
682
+          console.log('ttttttt',this.diagnosis);
671 683
           this.list = response.data.data.sickhistorys
672 684
         }
673 685
       })
@@ -684,6 +696,7 @@ export default {
684 696
     }
685 697
   },
686 698
   created() {
699
+    this.org_id = this.$store.getters.xt_user.org.id
687 700
     this.getPhysiquePrintList()
688 701
     this.fetchAllDoctorAndNurse()
689 702
   }

Разлика између датотеке није приказан због своје велике величине
+ 793 - 843
src/xt_pages/workforce/appointment.vue


Разлика између датотеке није приказан због своје велике величине
+ 1300 - 542
src/xt_pages/workforce/components/tableData.vue