Browse Source

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

陈少旭 9 months ago
parent
commit
a201803d00
31 changed files with 3330 additions and 2227 deletions
  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 View File

172
     params: params
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 View File

652
     params: params
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 View File

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

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

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

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

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

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

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

+ 5 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

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

+ 6 - 0
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

206
              </template>
206
              </template>
207
           </el-table-column>
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
           <el-table-column align="center" label="封管液" v-if="gatherSetting.tube==1">
215
           <el-table-column align="center" label="封管液" v-if="gatherSetting.tube==1">
210
              <template slot-scope="scope">
216
              <template slot-scope="scope">
211
                <span v-if="getBloodAccessOption(scope.row.dialysis_prescription.blood_access).indexOf('导管')!==-1">1</span>
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 View File

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

+ 14 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

58
             </el-form-item>
58
             </el-form-item>
59
           </el-col>
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
           <el-col :span="8" v-if="isShow('穿刺处血肿')">
67
           <el-col :span="8" v-if="isShow('穿刺处血肿')">
62
             <el-form-item label="穿刺处血肿: " :prop="isName('穿刺处血肿')" :rules="isCheckmust('穿刺处血肿')">
68
             <el-form-item label="穿刺处血肿: " :prop="isName('穿刺处血肿')" :rules="isCheckmust('穿刺处血肿')">
63
               <el-radio-group v-model="form.puncture_point_haematoma">
69
               <el-radio-group v-model="form.puncture_point_haematoma">
879
         after_urea:"",
885
         after_urea:"",
880
         accumulated_blood_volume:"",
886
         accumulated_blood_volume:"",
881
         transfusion_volume:"",
887
         transfusion_volume:"",
882
-        condenser:""
888
+        condenser:"",
889
+        last_after_weight:""
883
       },
890
       },
884
       lapseList:[],
891
       lapseList:[],
885
       leaveOfficeMethod:[],
892
       leaveOfficeMethod:[],
1221
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1228
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1222
           data["transfusion_volume"] = this.form.transfusion_volume
1229
           data["transfusion_volume"] = this.form.transfusion_volume
1223
           data["condenser"] = this.form.condenser
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
           console.log("Paramsquery",data)
1237
           console.log("Paramsquery",data)
1225
 
1238
 
1226
           postAssessmentAfterDislysis(ParamsQuery, data)
1239
           postAssessmentAfterDislysis(ParamsQuery, data)

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

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

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

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

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

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

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

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

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

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

+ 105 - 36
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

169
           <div style="flex: 1;">
169
           <div style="flex: 1;">
170
             透析机
170
             透析机
171
            <span class="under-line" style="display: inline-block;width: 50%">
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
                ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number
176
                ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number
174
-            }}
177
+            }} -->
175
            </span>
178
            </span>
176
           </div>
179
           </div>
177
           <div style="flex: 1;">
180
           <div style="flex: 1;">
186
             灌流器
189
             灌流器
187
             <span class="under-line" style="display: inline-block;width: 50%;">
190
             <span class="under-line" style="display: inline-block;width: 50%;">
188
               {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
191
               {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
189
-            </span>L
192
+            </span>
190
           </div>
193
           </div>
191
           <div style="flex: 1;display: flex">
194
           <div style="flex: 1;display: flex">
192
             透析液:
195
             透析液:
193
             <div style="">
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
               <!-- <check-box :checked="patientInfo_gender_2"></check-box>&nbsp; -->
200
               <!-- <check-box :checked="patientInfo_gender_2"></check-box>&nbsp; -->
197
             </div>
201
             </div>
198
               <!-- <div class="under_line" style="width: 100px; text-align: center;display: inline-block;" v-if="prescription.dialyzate.indexOf('碳酸')>-1">
202
               <!-- <div class="under_line" style="width: 100px; text-align: center;display: inline-block;" v-if="prescription.dialyzate.indexOf('碳酸')>-1">
243
         <table border="1" style="border-collapse: collapse;text-align: center;">
247
         <table border="1" style="border-collapse: collapse;text-align: center;">
244
           <tr>
248
           <tr>
245
             <td style="width: 60px;text-align: center;" rowspan="2" >时间</td>
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
             <td colspan="5" style="text-align: center;">生命体征</td>
251
             <td colspan="5" style="text-align: center;">生命体征</td>
248
             <td colspan="2" style="text-align: center;">治疗中病情变化</td>
252
             <td colspan="2" style="text-align: center;">治疗中病情变化</td>
249
           </tr>
253
           </tr>
252
               <p style="height: 20px; line-height: 20px">TMP</p>
256
               <p style="height: 20px; line-height: 20px">TMP</p>
253
               <p style="height: 20px; line-height: 20px">mmHg</p>
257
               <p style="height: 20px; line-height: 20px">mmHg</p>
254
             </th>
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
             <th style="width: 70px; font-weight: normal">
263
             <th style="width: 70px; font-weight: normal">
256
               <p style="height: 20px; line-height: 20px">静脉压</p>
264
               <p style="height: 20px; line-height: 20px">静脉压</p>
257
               <p style="height: 20px; line-height: 20px">mmHg</p>
265
               <p style="height: 20px; line-height: 20px">mmHg</p>
264
               <p style="height: 20px; line-height: 20px">脱水量</p>
272
               <p style="height: 20px; line-height: 20px">脱水量</p>
265
               <p style="height: 20px; line-height: 20px">ml</p>
273
               <p style="height: 20px; line-height: 20px">ml</p>
266
             </th>
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
               <p style="height: 20px; line-height: 20px">℃</p>
277
               <p style="height: 20px; line-height: 20px">℃</p>
270
             </th>
278
             </th>
271
             <th style="width: 60px; font-weight: normal">
279
             <th style="width: 60px; font-weight: normal">
272
               <p style="height: 20px; line-height: 20px">HR</p>
280
               <p style="height: 20px; line-height: 20px">HR</p>
273
               <p style="height: 20px; line-height: 20px">bpm</p>
281
               <p style="height: 20px; line-height: 20px">bpm</p>
274
             </th>
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
             <th style="width: 60px; font-weight: normal">
287
             <th style="width: 60px; font-weight: normal">
276
               <p style="height: 20px; line-height: 20px">R</p>
288
               <p style="height: 20px; line-height: 20px">R</p>
277
               <p style="height: 20px; line-height: 20px">bpm</p>
289
               <p style="height: 20px; line-height: 20px">bpm</p>
282
             </th>
294
             </th>
283
 
295
 
284
             <th style="width: 80px; font-weight: normal">
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
             </th>
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
             <th style="width: 333px; font-weight: normal">
303
             <th style="width: 333px; font-weight: normal">
292
               <p style="height: 20px; line-height: 20px">
304
               <p style="height: 20px; line-height: 20px">
293
                 记&nbsp;&nbsp;&nbsp;&nbsp;录
305
                 记&nbsp;&nbsp;&nbsp;&nbsp;录
298
             <td style="min-width: 60px; height: 30px">
310
             <td style="min-width: 60px; height: 30px">
299
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
311
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
300
             </td>
312
             </td>
313
+            
301
             <td>
314
             <td>
302
               <span v-if="getTime(monitor.operate_time) != ''">
315
               <span v-if="getTime(monitor.operate_time) != ''">
303
                 {{
316
                 {{
304
                   monitor.transmembrane_pressure
317
                   monitor.transmembrane_pressure
305
                     ? monitor.transmembrane_pressure
318
                     ? monitor.transmembrane_pressure
306
-                    : ""
319
+                    : "/"
307
                 }}
320
                 }}
308
               </span>
321
               </span>
309
             </td>
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
             <td>
334
             <td>
311
               <span v-if="getTime(monitor.operate_time) != ''">
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
               </span>
337
               </span>
314
             </td>
338
             </td>
315
             <td>
339
             <td>
316
               <span v-if="getTime(monitor.operate_time) != ''">
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
               </span>
342
               </span>
319
             </td>
343
             </td>
320
             <td style="min-width: 45px">
344
             <td style="min-width: 45px">
321
               <span v-if="getTime(monitor.operate_time) != ''">
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
                   monitor.ultrafiltration_volume
349
                   monitor.ultrafiltration_volume
324
                     ? monitor.ultrafiltration_volume
350
                     ? monitor.ultrafiltration_volume
325
-                    : " "
326
-                }}
351
+                    : ""
352
+                 }}
353
+                </span>
354
+              
327
               </span>
355
               </span>
328
             </td>
356
             </td>
329
             <!-- 生命体征 -->
357
             <!-- 生命体征 -->
330
             <!-- T -->
358
             <!-- T -->
331
             <td>
359
             <td>
332
               <span v-if="getTime(monitor.operate_time) != ''">
360
               <span v-if="getTime(monitor.operate_time) != ''">
333
-                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
361
+                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "/" }}
334
               </span>
362
               </span>
335
             </td>
363
             </td>
336
             <!-- HR -->
364
             <!-- HR -->
337
             <td>
365
             <td>
338
               <span v-if="getTime(monitor.operate_time) != ''">
366
               <span v-if="getTime(monitor.operate_time) != ''">
339
-                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
367
+                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}
340
               </span>
368
               </span>
341
             </td>
369
             </td>
342
             <!-- R -->
370
             <!-- R -->
343
             <td>
371
             <td>
344
               <span v-if="getTime(monitor.operate_time) != ''">
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
               </span>
379
               </span>
347
             </td>
380
             </td>
348
             <!-- BP -->
381
             <!-- BP -->
351
                 {{
384
                 {{
352
                   monitor.systolic_blood_pressure
385
                   monitor.systolic_blood_pressure
353
                     ? monitor.systolic_blood_pressure
386
                     ? monitor.systolic_blood_pressure
354
-                    : ""
387
+                    : "/"
355
                 }}/{{
388
                 }}/{{
356
                   monitor.diastolic_blood_pressure
389
                   monitor.diastolic_blood_pressure
357
                     ? monitor.diastolic_blood_pressure
390
                     ? monitor.diastolic_blood_pressure
358
-                    : ""
391
+                    : "/"
359
                 }}
392
                 }}
360
               </span>
393
               </span>
361
             </td>
394
             </td>
363
             <td>
396
             <td>
364
               <span v-if="getTime(monitor.operate_time) != ''">
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
               </span>
403
               </span>
371
             </td>
404
             </td>
372
 
405
 
373
             <!-- 病情变化 -->
406
             <!-- 病情变化 -->
374
-            <td style="min-width: 60px; height: 30px">
407
+            <!-- <td style="min-width: 60px; height: 30px">
375
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
408
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
376
-            </td>
409
+            </td> -->
377
             <td>
410
             <td>
378
               <template 
411
               <template 
379
               v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)&&(org_id!=10414) "
412
               v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)&&(org_id!=10414) "
380
               >
413
               >
381
-                【开始透析】
414
+                开始上机,引血100ml/min
382
               </template>
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
                   monitor.result
418
                   monitor.result
386
                 }}
419
                 }}
387
               </span>
420
               </span>
411
                 <p style="height:15px;line-height:15px">上次透后体重</p>
444
                 <p style="height:15px;line-height:15px">上次透后体重</p>
412
               </td>
445
               </td>
413
               <td style="width:8%;">
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
               </td>
455
               </td>
416
             </tr>
456
             </tr>
417
 
457
 
421
                 <span v-if="advice.parent_id > 0">---></span>
461
                 <span v-if="advice.parent_id > 0">---></span>
422
                 <span>{{ advice.advice_name }}</span>
462
                 <span>{{ advice.advice_name }}</span>
423
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
463
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
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
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
465
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
426
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
466
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
427
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
467
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
437
               <td v-if="advice_index === 0">透前体重</td>
477
               <td v-if="advice_index === 0">透前体重</td>
438
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
478
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
439
               <td v-if="advice_index === 1">体重增加量</td>
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
               <td v-if="advice_index === 2">干体重(DW)</td>
489
               <td v-if="advice_index === 2">干体重(DW)</td>
442
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
490
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
443
               <td v-if="advice_index === 3">较干体重增加量</td>
491
               <td v-if="advice_index === 3">较干体重增加量</td>
1223
               this.monitors.push([]);
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
           this.jilurow = this.monitors.length + 1;
1293
           this.jilurow = this.monitors.length + 1;
1227
 
1294
 
1228
           this.advice_jilurow = this.advices.length + 1;
1295
           this.advice_jilurow = this.advices.length + 1;
1456
       }
1523
       }
1457
     },
1524
     },
1458
     "prescription.dialyzate": function() {
1525
     "prescription.dialyzate": function() {
1526
+      console.log("this.prescription",this.prescription.dialyzate)
1459
       if(this.prescription.dialyzate !='undefined'){
1527
       if(this.prescription.dialyzate !='undefined'){
1460
-        if(prescription.dialyzate.indexOf('碳酸')>-1){
1528
+        this.prescription.dialyzate="碳酸"
1529
+        if(this.prescription.dialyzate.indexOf('碳酸')>-1){
1461
           this.prescription_dialyzate1 =true
1530
           this.prescription_dialyzate1 =true
1462
           this.prescription_dialyzate2 = false
1531
           this.prescription_dialyzate2 = false
1463
-        }else if(prescription.dialyzate.indexOf('醋酸')>-1){
1532
+        }else if(this.prescription.dialyzate.indexOf('醋酸')>-1){
1464
           this.prescription_dialyzate1 =false
1533
           this.prescription_dialyzate1 =false
1465
           this.prescription_dialyzate2 = true
1534
           this.prescription_dialyzate2 = true
1466
         }else{
1535
         }else{

+ 137 - 16
src/xt_pages/medicalScheduling/index.vue View File

42
             </div>
42
             </div>
43
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
43
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
44
                 <div style="width: 70%">
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
                         <el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
50
                         <el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
47
                             <template slot-scope="scope">
51
                             <template slot-scope="scope">
48
                                 <span>{{scope.row.user_name}}</span>
52
                                 <span>{{scope.row.user_name}}</span>
50
                         </el-table-column>
54
                         </el-table-column>
51
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
55
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
52
                             <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
64
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
54
-                                    <el-dropdown trigger="click" @command="changeSchedule">
65
+                                    <el-dropdown trigger="click" @command="changeSchedule" >
55
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
66
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
56
                                             <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>
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
                                         </span>
68
                                         </span>
67
                         </el-table-column>
78
                         </el-table-column>
68
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
79
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
69
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
89
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
71
                                     <el-dropdown trigger="click" @command="changeSchedule">
90
                                     <el-dropdown trigger="click" @command="changeSchedule">
72
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
91
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
84
                         </el-table-column>
103
                         </el-table-column>
85
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
104
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
86
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
113
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
88
                                     <el-dropdown trigger="click" @command="changeSchedule">
114
                                     <el-dropdown trigger="click" @command="changeSchedule">
89
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
115
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
101
                         </el-table-column>
127
                         </el-table-column>
102
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
128
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
103
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
137
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
105
                                     <el-dropdown trigger="click" @command="changeSchedule">
138
                                     <el-dropdown trigger="click" @command="changeSchedule">
106
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
139
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
118
                         </el-table-column>
151
                         </el-table-column>
119
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
152
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
120
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
161
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
122
                                     <el-dropdown trigger="click" @command="changeSchedule">
162
                                     <el-dropdown trigger="click" @command="changeSchedule">
123
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
163
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
135
                         </el-table-column>
175
                         </el-table-column>
136
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
176
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
137
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
185
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
139
                                     <el-dropdown trigger="click" @command="changeSchedule">
186
                                     <el-dropdown trigger="click" @command="changeSchedule">
140
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
187
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
152
                         </el-table-column>
199
                         </el-table-column>
153
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
200
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
154
                              <template slot-scope="scope">
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
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
209
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
156
                                     <el-dropdown trigger="click" @command="changeSchedule">
210
                                     <el-dropdown trigger="click" @command="changeSchedule">
157
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
211
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
276
                                   {{scope.row.user_name}}
330
                                   {{scope.row.user_name}}
277
                               </template>
331
                               </template>
278
                              </el-table-column>
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
                                 <template slot-scope="scope">
334
                                 <template slot-scope="scope">
281
                                     <span v-if="scope.row.user_title == 1">医士</span>
335
                                     <span v-if="scope.row.user_title == 1">医士</span>
282
                                     <span v-if="scope.row.user_title == 2">医师</span>
336
                                     <span v-if="scope.row.user_title == 2">医师</span>
342
     </div>
396
     </div>
343
 </template>
397
 </template>
344
 
398
 
345
-
346
 <script>
399
 <script>
347
 const moment = require('moment')
400
 const moment = require('moment')
348
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
 import { constants } from 'crypto'
403
 import { constants } from 'crypto'
351
 export default {
404
 export default {
352
     components:{
405
     components:{
411
            nurseTableData:[],
464
            nurseTableData:[],
412
            doctorTableData:[],
465
            doctorTableData:[],
413
            exportDialogVisible:false,
466
            exportDialogVisible:false,
414
-           month_time:""
467
+           month_time:"",
468
+           name:'',
469
+           column_lie:''
415
         }
470
         }
416
     },
471
     },
417
     methods:{
472
     methods:{
443
                     this.getStaffScheduleList()
498
                     this.getStaffScheduleList()
444
 
499
 
445
                     var doctorlist =  response.data.data.doctorlist
500
                     var doctorlist =  response.data.data.doctorlist
446
-                  
501
+
447
                     for(let i=0;i<doctorlist.length;i++){
502
                     for(let i=0;i<doctorlist.length;i++){
448
                         if(doctorlist[i].sort == 0){
503
                         if(doctorlist[i].sort == 0){
449
                           doctorlist[i].sort = ""
504
                           doctorlist[i].sort = ""
691
                         })
746
                         })
692
                         sevenStr = zeroStr
747
                         sevenStr = zeroStr
693
                     }
748
                     }
694
-                    
749
+
695
                     if(staffList[i].schedule_week == 1){
750
                     if(staffList[i].schedule_week == 1){
696
                         staffList[i].class_index = 1
751
                         staffList[i].class_index = 1
697
                         var arr = []
752
                         var arr = []
803
                         fourStr = strFour
858
                         fourStr = strFour
804
                     }
859
                     }
805
 
860
 
806
-                    
861
+
807
                     if(staffList[i].schedule_week == 5){
862
                     if(staffList[i].schedule_week == 5){
808
                         staffList[i].class_index = 5
863
                         staffList[i].class_index = 5
809
 
864
 
861
                         sixStr = strSix
916
                         sixStr = strSix
862
                      }
917
                      }
863
                     }
918
                     }
919
+                   console.log("staffList",staffList)
864
                     let tempArr = [], newArr = []
920
                     let tempArr = [], newArr = []
865
                     for (let i = 0; i < staffList.length; i++) {
921
                     for (let i = 0; i < staffList.length; i++) {
866
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
867
                             newArr.push({
923
                             newArr.push({
924
+                                id:staffList[i].id,
868
                                 user_name: staffList[i].user_name,
925
                                 user_name: staffList[i].user_name,
869
                                 admin_user_id:staffList[i].admin_user_id,
926
                                 admin_user_id:staffList[i].admin_user_id,
870
                                 user_type:staffList[i].doctor_type,
927
                                 user_type:staffList[i].doctor_type,
871
                                 is_sort:staffList[i].is_sort,
928
                                 is_sort:staffList[i].is_sort,
872
                                 sort:staffList[i].sort,
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
                             tempArr.push(staffList[i].user_name);
932
                             tempArr.push(staffList[i].user_name);
876
                         } else {
933
                         } else {
877
                             console.log("staffList",staffList[i].user_name)
934
                             console.log("staffList",staffList[i].user_name)
878
                             for (let j = 0; j < newArr.length; j++) {
935
                             for (let j = 0; j < newArr.length; j++) {
879
                                 if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
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
                     let arrTen = [...newArr]
943
                     let arrTen = [...newArr]
887
                     console.log("newArr22o2o2o2o2wo",arrTen)
944
                     console.log("newArr22o2o2o2o2wo",arrTen)
888
                     let newNurse = []
945
                     let newNurse = []
914
                         }
971
                         }
915
                     })
972
                     })
916
                     newNurse.sort(this.compare('sort'))
973
                     newNurse.sort(this.compare('sort'))
917
-                  
974
+
918
                     // //医生
975
                     // //医生
919
                     newDoctor.sort(this.compare('admin_user_id'))
976
                     newDoctor.sort(this.compare('admin_user_id'))
920
                     let newDoctorTableData = []
977
                     let newDoctorTableData = []
935
 
992
 
936
 
993
 
937
                     let arr2 = []
994
                     let arr2 = []
938
-                    
995
+
939
                     arr2.push({class_name:oneStr,schedule_week:1})
996
                     arr2.push({class_name:oneStr,schedule_week:1})
940
                     arr2.push({class_name:twoStr,schedule_week:2})
997
                     arr2.push({class_name:twoStr,schedule_week:2})
941
                     arr2.push({class_name:threeStr,schedule_week:3})
998
                     arr2.push({class_name:threeStr,schedule_week:3})
951
                     arr.push(obj)
1008
                     arr.push(obj)
952
 
1009
 
953
                     let data = []
1010
                     let data = []
954
-                  
1011
+
955
                     data.push(...newNurse)
1012
                     data.push(...newNurse)
956
                     data.push(...newDoctor)
1013
                     data.push(...newDoctor)
957
                     data.push(obj)
1014
                     data.push(obj)
958
                     console.log("data2o2oo2o2o2o22o",data)
1015
                     console.log("data2o2oo2o2o2o22o",data)
959
-                    
1016
+
960
                     // this.tableData = this.distinct(data)
1017
                     // this.tableData = this.distinct(data)
961
                     this.tableData = data
1018
                     this.tableData = data
962
 
1019
 
994
                 return newClass
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
         getClassAttributes(name,index){
1075
         getClassAttributes(name,index){
999
             if(name != undefined){
1076
             if(name != undefined){
1734
                         data.push(...newNurse)
1811
                         data.push(...newNurse)
1735
                         data.push(obj)
1812
                         data.push(obj)
1736
                         this.tableData = data
1813
                         this.tableData = data
1814
+                        console.log('cccccc',this.tableData);
1737
                     }
1815
                     }
1738
 
1816
 
1739
             }
1817
             }
1993
         return jsonData.map(v => filterVal.map(j => v[j]))
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
     created(){
2108
     created(){
1999
         //获取医护人员
2109
         //获取医护人员
2086
     max-height:96%;
2196
     max-height:96%;
2087
     overflow-y: auto;
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
 </style>
2211
 </style>

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

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

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

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

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

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

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

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

+ 2 - 2
src/xt_pages/stock/drugs/drugNewQuery.vue View File

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

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

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

+ 2 - 3
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

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']
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
            const data = this.formatJson(filterVal, this.tableList)
1062
            const data = this.formatJson(filterVal, this.tableList)
1063
-           
1063
+        
1064
            const filename = '进销存查询'
1064
            const filename = '进销存查询'
1065
-     
1066
-          
1065
+            
1067
             excel.export_json_to_excel({
1066
             excel.export_json_to_excel({
1068
               multiHeader,
1067
               multiHeader,
1069
               header,
1068
               header,

+ 74 - 46
src/xt_pages/stock/query/purchaseStockQuery.vue View File

53
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
53
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
54
          </div>
54
          </div>
55
          <div>
55
          <div>
56
+       
56
            <el-button type="primary" size="small" @click="toPrint">打印</el-button>
57
            <el-button type="primary" size="small" @click="toPrint">打印</el-button>
57
            <el-button type="primary" size="small" @click="exportList">导出</el-button>
58
            <el-button type="primary" size="small" @click="exportList">导出</el-button>
58
          </div>
59
          </div>
68
             :class="signAndWeighBoxPatients"
69
             :class="signAndWeighBoxPatients"
69
             border
70
             border
70
           >
71
           >
72
+        
71
             <el-table-column label="耗材类型" align="center">
73
             <el-table-column label="耗材类型" align="center">
72
               <template slot-scope="scope">
74
               <template slot-scope="scope">
73
                  {{getGoodTypeName(scope.row.good_type_id)}}
75
                  {{getGoodTypeName(scope.row.good_type_id)}}
74
               </template>
76
               </template>
75
             </el-table-column>
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
             <el-table-column label="耗材名称" align="center">
83
             <el-table-column label="耗材名称" align="center">
77
               <template slot-scope="scope">
84
               <template slot-scope="scope">
78
                 {{scope.row.good_name}}
85
                 {{scope.row.good_name}}
79
               </template>
86
               </template>
80
             </el-table-column>
87
             </el-table-column>
88
+
81
             <el-table-column label="规格&单位" align="center">
89
             <el-table-column label="规格&单位" align="center">
82
                 <template slot-scope="scope">
90
                 <template slot-scope="scope">
83
                   {{scope.row.specification_name}}/{{scope.row.packing_unit}}
91
                   {{scope.row.specification_name}}/{{scope.row.packing_unit}}
88
                  {{getManufacturName(scope.row.manufacturer)}}
96
                  {{getManufacturName(scope.row.manufacturer)}}
89
               </template>
97
               </template>
90
             </el-table-column>
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
             <el-table-column label="期初结余" align="center">
110
             <el-table-column label="期初结余" align="center">
92
                
111
                
93
                  <el-table-column prop="stockIn" label="数量" width="100">
112
                  <el-table-column prop="stockIn" label="数量" width="100">
157
   </div>
176
   </div>
158
 </template>
177
 </template>
159
 <script>
178
 <script>
160
-import { getStorehouseList,getPurchaseStockQuery } from "@/api/drug/drug"
179
+import { getStorehouseList,getPurchaseStockQueryList,getGoodOverCount } from "@/api/drug/drug"
161
 import {
180
 import {
162
   getStockDrugCount
181
   getStockDrugCount
163
 } from "@/api/stock";
182
 } from "@/api/stock";
201
      loading:false,
220
      loading:false,
202
      pickerOptions:{ //禁用当前日期之前的日期
221
      pickerOptions:{ //禁用当前日期之前的日期
203
            disabledDate(v) {
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
              this.goodTypeList.push(goodTypeList[i])
251
              this.goodTypeList.push(goodTypeList[i])
232
             }
252
             }
233
            this.patientList = response.data.data.patientList
253
            this.patientList = response.data.data.patientList
254
+           this.dealerList = response.data.data.dealerList
234
          }
255
          }
235
       })
256
       })
236
     },
257
     },
244
           start_time:this.start_time,
265
           start_time:this.start_time,
245
           end_time:this.end_time,
266
           end_time:this.end_time,
246
         }
267
         }
247
-      getPurchaseStockQuery(params).then(response=>{
268
+      getPurchaseStockQueryList(params).then(response=>{
248
          if(response.data.state == 1){
269
          if(response.data.state == 1){
249
             var list = response.data.data.list
270
             var list = response.data.data.list
271
+           
250
             this.loading = false
272
             this.loading = false
251
             for(let i=0;i<list.length;i++){
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
               list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
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
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
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
               list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
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
             this.tableList = list
294
             this.tableList = list
273
             this.total = response.data.data.total
295
             this.total = response.data.data.total
274
 
296
 
275
            this.manufacturerList = response.data.data.manufacturerList
297
            this.manufacturerList = response.data.data.manufacturerList
298
+          
276
            
299
            
277
          }
300
          }
278
       })
301
       })
572
         countfive +=arr5[i].count
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
     count = countOne - countTwo + countthree - countfour + countfive
599
     count = countOne - countTwo + countthree - countfour + countfive
581
     if(count > 0 ){
600
     if(count > 0 ){
582
       return count
601
       return count
610
      }
629
      }
611
     }
630
     }
612
     all_count = count + countOne
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
     if(all_count > 0 ){
633
     if(all_count > 0 ){
618
       return all_count
634
       return all_count
619
     }else{
635
     }else{
674
     }
690
     }
675
    },
691
    },
676
    open(){
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
     this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
695
     this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
679
     this.houseList = []
696
     this.houseList = []
680
     this.goodTypeList= []
697
     this.goodTypeList= []
788
         count_two +=val3[i].count
805
         count_two +=val3[i].count
789
       }
806
       }
790
      }
807
      }
808
+    
791
      all_count = count +count_one - count_two
809
      all_count = count +count_one - count_two
792
      if(all_count >0){
810
      if(all_count >0){
793
        return all_count
811
        return all_count
920
          total_price_four +=val4[i].count * val4[i].buy_price
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
      all_price = total_price- total_price_three +total_price_one - total_price_two + total_price_four
942
      all_price = total_price- total_price_three +total_price_one - total_price_two + total_price_four
929
      console.log("arrll_price",all_price)
943
      console.log("arrll_price",all_price)
930
      if(all_price >0){
944
      if(all_price >0){
976
     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})
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
    exportList: function() {
992
    exportList: function() {
993
+
979
         for(let i=0;i<this.tableList.length;i++){
994
         for(let i=0;i<this.tableList.length;i++){
980
           this.tableList[i].index = i+1
995
           this.tableList[i].index = i+1
981
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
996
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
982
           this.tableList[i].good_type = this.getGoodTypeName(this.tableList[i].good_type_id)
997
           this.tableList[i].good_type = this.getGoodTypeName(this.tableList[i].good_type_id)
983
           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
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
           this.tableList[i].specification_name_one = this.tableList[i].specification_name + "/"+this.tableList[i].packing_unit
1000
           this.tableList[i].specification_name_one = this.tableList[i].specification_name + "/"+this.tableList[i].packing_unit
985
         }
1001
         }
986
         import('@/vendor/Export2Excel').then(excel => {
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
             excel.export_json_to_excel({
1012
             excel.export_json_to_excel({
998
               multiHeader,
1013
               multiHeader,
999
               header,
1014
               header,
1002
               filename
1017
               filename
1003
             })
1018
             })
1004
         })
1019
         })
1020
+
1005
       },
1021
       },
1006
       formatJson(filterVal, jsonData) {
1022
       formatJson(filterVal, jsonData) {
1007
         return jsonData.map(v => filterVal.map(j => v[j]));
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
 </script>
1045
 </script>
1018
 
1046
 

File diff suppressed because it is too large
+ 703 - 688
src/xt_pages/stock/query/purchaseStockQueryPrint.vue


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

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

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

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

+ 19 - 6
src/xt_pages/user/physiqueprinting.vue View File

6
       </el-button>
6
       </el-button>
7
     </div>
7
     </div>
8
     <div class="app-container">
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
         <div class="print_page_main_content">
10
         <div class="print_page_main_content">
11
           <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
11
           <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
12
           <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
12
           <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
69
           </div>
69
           </div>
70
           <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
70
           <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
71
           <div style="word-break: break-all; word-wrap: break-word;">
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
           </div>
73
           </div>
74
           <h3 v-if="item.XtPatientPhysiqueCheck.id > 0" style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
74
           <h3 v-if="item.XtPatientPhysiqueCheck.id > 0" style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
75
           <div v-if="item.XtPatientPhysiqueCheck.id > 0">
75
           <div v-if="item.XtPatientPhysiqueCheck.id > 0">
120
 
120
 
121
           <div style="margin-top: 30px;">
121
           <div style="margin-top: 30px;">
122
             <span style="font-weight: bold; display: block;">初步诊断:</span>
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
             <span style="font-weight: bold;">日期:</span>
135
             <span style="font-weight: bold;">日期:</span>
127
             {{getTime(item.record_time,'{y}-{m}-{d}')}}
136
             {{getTime(item.record_time,'{y}-{m}-{d}')}}
128
           </div>
137
           </div>
198
         abdomen: '',
207
         abdomen: '',
199
         other: ''
208
         other: ''
200
       },
209
       },
201
-      diagnosis: ''
210
+      diagnosis: [],
211
+      org_id:0
202
     }
212
     }
203
   },
213
   },
204
   components: {
214
   components: {
668
       getSickhistoryCheckRecordsPrint(params).then(response => {
678
       getSickhistoryCheckRecordsPrint(params).then(response => {
669
         if (response.data.state == 1) {
679
         if (response.data.state == 1) {
670
           this.patient = response.data.data.patient
680
           this.patient = response.data.data.patient
681
+          this.diagnosis = this.patient.diagnose.split(',')
682
+          console.log('ttttttt',this.diagnosis);
671
           this.list = response.data.data.sickhistorys
683
           this.list = response.data.data.sickhistorys
672
         }
684
         }
673
       })
685
       })
684
     }
696
     }
685
   },
697
   },
686
   created() {
698
   created() {
699
+    this.org_id = this.$store.getters.xt_user.org.id
687
     this.getPhysiquePrintList()
700
     this.getPhysiquePrintList()
688
     this.fetchAllDoctorAndNurse()
701
     this.fetchAllDoctorAndNurse()
689
   }
702
   }

File diff suppressed because it is too large
+ 793 - 843
src/xt_pages/workforce/appointment.vue


File diff suppressed because it is too large
+ 1300 - 542
src/xt_pages/workforce/components/tableData.vue