Kaynağa Gözat

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

csx 3 yıl önce
ebeveyn
işleme
833cb6f469
42 değiştirilmiş dosya ile 2932 ekleme ve 402 silme
  1. 11 7
      src/lang/zh.js
  2. 11 0
      src/router/modules/patient.js
  3. 5 1
      src/xt_pages/data/template.vue
  4. 3 4
      src/xt_pages/dialysis/PatientBox.vue
  5. 8 7
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  6. 1 2
      src/xt_pages/dialysis/details/NavIgation.vue
  7. 2 1
      src/xt_pages/dialysis/details/acceptsAssessment.vue
  8. 6 8
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  9. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  10. 1 0
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  11. 1 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  12. 25 78
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  13. 156 59
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  14. 15 3
      src/xt_pages/dialysis/details/index.vue
  15. 1 4
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  16. 18 7
      src/xt_pages/hospitalStation/doctorDesk.vue
  17. 12 5
      src/xt_pages/hospitalStation/print.vue
  18. 375 0
      src/xt_pages/hospitalStation/template/printFive.vue
  19. 18 18
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue
  20. 4 1
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  21. 1 1
      src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue
  22. 1 1
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  23. 6 3
      src/xt_pages/outpatientDoctorStation/print.vue
  24. 375 0
      src/xt_pages/outpatientDoctorStation/template/printFive.vue
  25. 9 2
      src/xt_pages/stock/cancelStockOrderAdd.vue
  26. 9 2
      src/xt_pages/stock/cancelStockOrderEdit.vue
  27. 23 50
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  28. 15 51
      src/xt_pages/stock/drugs/components/drugInOrder.vue
  29. 15 9
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  30. 3 2
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  31. 4 1
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  32. 15 36
      src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue
  33. 10 1
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  34. 8 1
      src/xt_pages/stock/stockInOrderAdd.vue
  35. 8 2
      src/xt_pages/stock/stockInOrderEdit.vue
  36. 9 2
      src/xt_pages/stock/stockOutOrderAdd.vue
  37. 10 2
      src/xt_pages/stock/stockOutOrderEdit.vue
  38. 27 22
      src/xt_pages/stock/stockPrint.vue
  39. 13 6
      src/xt_pages/stock/stockQuery.vue
  40. 2 1
      src/xt_pages/user/components/PatientDetail.vue
  41. 6 0
      src/xt_pages/user/components/PatientSidebar.vue
  42. 1689 0
      src/xt_pages/user/hospitalSummary.vue

+ 11 - 7
src/lang/zh.js Dosyayı Görüntüle

@@ -255,13 +255,13 @@ export default {
255 255
     pastInquiries: '既往查询',
256 256
 
257 257
     prescriptionTemplate: '处方模版',
258
-    hospitalRecord:"住院登记",
259
-    hisTool:"HIS工具",
260
-    hospitalCharges:'住院收费',
258
+    hospitalRecord: '住院登记',
259
+    hisTool: 'HIS工具',
260
+    hospitalCharges: '住院收费',
261 261
 
262
-    summary_tool:'项目消费明细汇总',
263
-    labelPrint:'标签打印',
264
-    faPiao:"发票设置",
262
+    summary_tool: '项目消费明细汇总',
263
+    labelPrint: '标签打印',
264
+    faPiao: '发票设置'
265 265
   },
266 266
   navbar: {
267 267
     logOut: '退出登录',
@@ -368,6 +368,10 @@ export default {
368 368
     nursing_record: '透析护理记录',
369 369
     special_record: '特殊记录',
370 370
     template_summary: '治疗小结',
371
-    template_plan: '个性化方案'
371
+    template_plan: '个性化方案',
372
+    admitting_diagnosis: '入院诊断',
373
+    discharge_diagnosis: '出院诊断',
374
+    treatment: '诊疗经过',
375
+    illness_discharge: '出院时病情'
372 376
   }
373 377
 }

+ 11 - 0
src/router/modules/patient.js Dosyayı Görüntüle

@@ -160,6 +160,17 @@ export default {
160 160
       noCache: true
161 161
     }
162 162
   },
163
+  {
164
+    path: '/patient/patient/:id/hospitalSummary',
165
+    component: () => import('@/xt_pages/user/hospitalSummary'),
166
+    hidden: true,
167
+    is_menu: false,
168
+    name: 'hospitalSummary',
169
+    meta: {
170
+      title: 'hospitalSummary',
171
+      noCache: true
172
+    }
173
+  },
163 174
   {
164 175
     path: '/patients/course',
165 176
     component: () => import('@/xt_pages/user/courseOfDisease'),

+ 5 - 1
src/xt_pages/data/template.vue Dosyayı Görüntüle

@@ -47,7 +47,11 @@ export default {
47 47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
48 48
         { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
49 49
         { label: this.$t("data_config.template_summary"), key: "template_summary" },
50
-        { label: this.$t("data_config.template_plan"), key: "template_plan" }
50
+        { label: this.$t("data_config.template_plan"), key: "template_plan" },
51
+        { label: this.$t("data_config.admitting_diagnosis"), key: "admitting_diagnosis" },
52
+        { label: this.$t("data_config.discharge_diagnosis"), key:"discharge_diagnosis"},
53
+        { label: this.$t("data_config.treatment"), key:"treatment"},
54
+        { label: this.$t("data_config.illness_discharge"), key:"illness_discharge"},
51 55
       ],
52 56
       activeName: "education",
53 57
       createdTimes: 0

+ 3 - 4
src/xt_pages/dialysis/PatientBox.vue Dosyayı Görüntüle

@@ -55,9 +55,9 @@
55 55
       <div class="dislysisInfo">
56 56
         <p>体重(前/后kg):
57 57
           {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
58
-          <span v-if="schedule.assessment_after_dislysis>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
58
+          <span v-if="schedule.assessment_after_dislysis && schedule.assessment_after_dislysis.weight_after>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
59 59
         <p>目标超滤量:
60
-          <span v-if="schedule.prescription>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
60
+          <span v-if="schedule.prescription && schedule.prescription.target_ultrafiltration>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
61 61
        
62 62
         </p>
63 63
         <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">
@@ -410,7 +410,7 @@ export default {
410 410
                  prescription.body_fluid = 0
411 411
              }
412 412
           }
413
-          console.log("透析处方",prescription)
413
+          console.log("透析处方323332323223323223",prescription)
414 414
           var solution = resp.data.solution; // 透析方案
415 415
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
416 416
           console.log("receiver_treatment_access",receiver_treatment_access)
@@ -617,7 +617,6 @@ export default {
617 617
     },
618 618
     open(schedual){
619 619
      
620
-     
621 620
       this.date = schedual.schedule_date
622 621
       this.patient_id = schedual.patient_id
623 622
       this.modedata = 1

+ 8 - 7
src/xt_pages/dialysis/details/DialysisPrescription.vue Dosyayı Görüntüle

@@ -109,11 +109,9 @@
109 109
       <ul>
110 110
         <li v-if="isShow('目标超滤量')">
111 111
           <label>目标超滤量 : </label>
112
-          <span class="content">{{
113
-            target_ultrafiltration != "0" ? target_ultrafiltration : ""
114
-          }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
116
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
112
+          <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555 && this.$store.getters.xt_user.template_info.org_id != 9671"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
114
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 9671" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
117 115
         </li>
118 116
         <li v-if="isShow('葡萄糖')">
119 117
           <label>葡萄糖 : </label>
@@ -433,6 +431,7 @@ export default {
433 431
   },
434 432
   computed: {
435 433
     note: function () {
434
+      // console.log("世界人民呃232323223232323323223",this.prescription)
436 435
       return this.getValueStr('remark', 'remark')
437 436
     },
438 437
     target_ultrafiltration: function() {
@@ -712,10 +711,10 @@ export default {
712 711
     displace_speed:function(){
713 712
       return this.getValueStr('displace_speed','displace_speed')
714 713
     },
715
-
714
+  
716 715
   },
717 716
   created() {
718
-    console.log("中国出口233232323233223",this.prescription)
717
+   
719 718
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
720 719
     var map = {}
721 720
     for (let index = 0; index < perfusion_apparatus.length; index++) {
@@ -736,6 +735,7 @@ export default {
736 735
   },
737 736
   methods: {
738 737
     getValueStr(pkey, skey) {
738
+      
739 739
       if (
740 740
         (this.prescription == null || this.prescription.id == '') &&
741 741
         (this.solution == null || this.solution.id == '')
@@ -779,6 +779,7 @@ export default {
779 779
        return name
780 780
     }
781 781
   }
782
+  
782 783
 }
783 784
 </script>
784 785
 

+ 1 - 2
src/xt_pages/dialysis/details/NavIgation.vue Dosyayı Görüntüle

@@ -623,7 +623,6 @@ export default {
623 623
       this.$refs.finish_dialog.show(this.dialysis_order);
624 624
     },
625 625
     showPrescription: function() {
626
-      console.log("粗32323232",this.prescription)
627 626
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
628 627
     },
629 628
     showAccepts: function() {
@@ -635,7 +634,7 @@ export default {
635 634
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
636 635
     },
637 636
     showDoubleCheck: function() {
638
-       
637
+      
639 638
       this.$refs.doubleCheck.show();
640 639
     },
641 640
     showrTeatmentSummary: function() {

+ 2 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue Dosyayı Görüntüle

@@ -137,7 +137,8 @@
137 137
         conditions: {
138 138
           '1': '住院',
139 139
           '2': '门诊',
140
-          '3': '手术期'
140
+          '3': '手术期',
141
+          '4': '急诊'
141 142
         },
142 143
         consciousnesses:[],
143 144
         appetites: [],

+ 6 - 8
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Dosyayı Görüntüle

@@ -371,7 +371,7 @@
371 371
             <span v-if="scope.row.parent_id == 0">
372 372
               {{getXuserName(scope.row.execution_staff)}}
373 373
             </span>
374
-            <span v-else></span>
374
+            <span v-else>{{getXuserName(scope.row.execution_staff)}}</span>
375 375
           </template>
376 376
         </el-table-column>
377 377
         <el-table-column
@@ -385,7 +385,7 @@
385 385
             <span v-if="scope.row.parent_id == 0">
386 386
               {{getXuserName(scope.row.checker)}}
387 387
             </span>
388
-            <span v-else></span>
388
+            <span v-else>{{getXuserName(scope.row.checker)}}</span>
389 389
           </template>
390 390
         </el-table-column>
391 391
       </el-table>
@@ -853,11 +853,7 @@
853 853
       'dialysis_order.id': function() {
854 854
         this.form['dialysis_order_id'] = this.dialysis_order.id
855 855
       },
856
-      doctor_advices: function() {
857
-        // this.handleSpanTempArr()
858
-        // this.hoverOrderArr = []
859
-        // this.handleStyle()
860
-      }
856
+     
861 857
     },
862 858
     methods: {
863 859
       getContent: function() {
@@ -2329,6 +2325,7 @@
2329 2325
 
2330 2326
       },
2331 2327
       getDialysisScheduleDetail() {
2328
+        console.log("触发伏组件")
2332 2329
         if(this.$route.query.showView && this.$route.query.showView == true){
2333 2330
           return
2334 2331
         }
@@ -2336,6 +2333,7 @@
2336 2333
           if (response.data.state == 1) {
2337 2334
             var doctor_advices = response.data.data.doctor_advices
2338 2335
             this.doctorAdvices = doctor_advices
2336
+            this.doctor_advices = doctor_advices
2339 2337
           }
2340 2338
         })
2341 2339
       }
@@ -2564,7 +2562,7 @@
2564 2562
       this.patientid = this.$route.query.patient_id
2565 2563
       this.request_record_date = this.record_date
2566 2564
 
2567
-      this.getDialysisScheduleDetail()
2565
+      // this.getDialysisScheduleDetail()
2568 2566
        //获取自备药
2569 2567
       this.getSelfMedicalList()
2570 2568
     },mounted(){

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Dosyayı Görüntüle

@@ -1750,7 +1750,7 @@ export default {
1750 1750
   created(){
1751 1751
     //获取自备药
1752 1752
     this.getSelfMedicalList()
1753
-    console.log("模板数据",this.adviceTemplates)
1753
+    
1754 1754
   }
1755 1755
 };
1756 1756
 </script>

+ 1 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Dosyayı Görüntüle

@@ -2305,6 +2305,7 @@ export default {
2305 2305
           var advice = response.data.data.advice;
2306 2306
           this.$message.success("保存成功!");
2307 2307
           this.groupEditFormVisible = false;
2308
+          this.$parent.getDialysisScheduleDetail()
2308 2309
         }
2309 2310
       });
2310 2311
     },

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -1296,7 +1296,7 @@
1296 1296
       this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
1297 1297
       //获取皮肤
1298 1298
       this.skins = getDataConfig('hemodialysis','skin')
1299
-      console.log("皮肤",this.skins)
1299
+      
1300 1300
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1301 1301
       console.log("针眼",this.pinholings)
1302 1302
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')

+ 25 - 78
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -1384,41 +1384,7 @@
1384 1384
         this.InnerDialogProps.visibility = true
1385 1385
         switch (val) {
1386 1386
           case '5': // 透析器/灌流器
1387
-            // var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1388
-            // console.log("arr333333",arr)
1389
-            // var newArr =  arr.split(",")
1390
-            // console.log("透析器/灌流器",newArr)
1391
-            // var Arr = []
1392
-            // for(let i=0;i<newArr.length;i++){
1393
-            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1394
-            //      var newarr = newArr[i].toUpperCase()
1395
-
1396
-            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1397
-
1398
-            //      if(newarr == dialy){
1399
-            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1400
-            //      }
1401
-            //   }
1402
-            // }
1403
-            // var arrtwo = Arr.join(",")
1404
-            // console.log("Arr",arrtwo)
1405
-            //  var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1406
-            //  var newArr =  arr.split(",")
1407
-            // console.log("透析器/灌流器",newArr)
1408
-            // var Arr = []
1409
-            // for(let i=0;i<newArr.length;i++){
1410
-            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1411
-            //      var newarr = newArr[i].toUpperCase()
1412
-            //
1413
-            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1414
-            //
1415
-            //      if(newarr == dialy){
1416
-            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1417
-            //      }
1418
-            //   }
1419
-            // }
1420
-            // var arrtwo = Arr.join(",")
1421
-            // console.log("Arr",arrtwo)
1387
+
1422 1388
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1423 1389
             this.InnerDialogProps.titles = '透析器/灌流器'
1424 1390
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
@@ -1957,7 +1923,7 @@
1957 1923
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1958 1924
       },
1959 1925
       show(pre, schedual, last, his_is_open) {
1960
-        console.log('pre222222', this.predialysis)
1926
+        
1961 1927
         if (pre != undefined) {
1962 1928
           if (pre.oxygen_uptake == 1) {
1963 1929
             this.oxygenShow = true
@@ -2071,8 +2037,8 @@
2071 2037
         if (pre.id > 0) {
2072 2038
           this.dialysisPrescription.mode_id = pre.mode_id
2073 2039
         }
2074
-        console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2075
-        console.log('this.schedual', schedual.mode_id)
2040
+        // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2041
+        // console.log('this.schedual', schedual.mode_id)
2076 2042
         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) {
2077 2043
           this.zhiShow = true
2078 2044
           this.huShow = true
@@ -2107,10 +2073,10 @@
2107 2073
         } else {
2108 2074
           last_weight_after = this.last_record.weight_after
2109 2075
         }
2110
-
2076
+        console.log("last2323232323232332",last)
2111 2077
         if (this.predialysis == null || this.predialysis.id == 0) {
2112 2078
           if (last != null) {
2113
-
2079
+            
2114 2080
             this.dialysisPrescription.niprocart = last.niprocart
2115 2081
             this.dialysisPrescription.jms = last.jms
2116 2082
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
@@ -2125,6 +2091,7 @@
2125 2091
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2126 2092
             this.dialysisPrescription.package = last.package
2127 2093
             this.dialysisPrescription.a_liquid = last.a_liquid
2094
+            
2128 2095
 
2129 2096
             weight_before = 0
2130 2097
 
@@ -2134,31 +2101,6 @@
2134 2101
           weight_before = this.predialysis.weight_before
2135 2102
         }
2136 2103
 
2137
-        //获取最后一次血管通路
2138
-        //   console.log("最后一次血管通路",this.predialysis)
2139
-        //  if(this.predialysis!=null){
2140
-        //     if(this.lastAssessment!=null){
2141
-        //       var blood_id = 0
2142
-        //       for(let i= 0;i<this.blood_access_option.length;i++){
2143
-        //           if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
2144
-        //             blood_id = this.blood_access_option[i].id
2145
-        //           }
2146
-        //       }
2147
-        //        console.log("中国人名职员",this.lastAssessment)
2148
-        //        this.dialysisPrescription.blood_access = blood_id
2149
-        //     }else{
2150
-        //       if(this.last_prescription!=null){
2151
-        //           var blood_id = 0
2152
-        //           for(let i= 0;i<this.blood_access_option.length;i++){
2153
-        //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
2154
-        //                 blood_id = this.blood_access_option[i].id
2155
-        //               }
2156
-        //           }
2157
-        //            this.dialysisPrescription.blood_access = blood_id
2158
-        //       }
2159
-        //     }
2160
-
2161
-        //  }
2162 2104
 
2163 2105
         if (weight_before > 0 && last_weight_after > 0) {
2164 2106
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
@@ -2206,10 +2148,6 @@
2206 2148
           this.anticoagulant.weichi_unit = 'ml'
2207 2149
           this.anticoagulant.zongliang_unit = 'ml'
2208 2150
         }
2209
-
2210
-        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
2211
-        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
2212
-        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
2213 2151
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2214 2152
           this.dialysisPrescription.anticoagulant_zongliang = ""
2215 2153
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
@@ -2218,6 +2156,7 @@
2218 2156
 
2219 2157
       },
2220 2158
       handleCommit: function() {
2159
+        console.log("触发了么2323323233223")
2221 2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2222 2161
           this.dialysisPrescription.anticoagulant = 3
2223 2162
         }
@@ -2257,7 +2196,7 @@
2257 2196
             ParamsQuery['patient'] = this.patient.id
2258 2197
             ParamsQuery['record_date'] = this.record_date
2259 2198
             ParamsQuery['mode'] = '1'
2260
-
2199
+            ParamsQuery['patient_id'] = this.patient.id
2261 2200
             console.log('第一', ParamsQuery)
2262 2201
             postPrescription(ParamsQuery).then(response => {
2263 2202
               if (response.data.state == 0) {
@@ -2300,6 +2239,7 @@
2300 2239
               ParamsQuery['patient'] = this.patient.id
2301 2240
               ParamsQuery['record_date'] = this.record_date
2302 2241
               ParamsQuery['mode'] = '1'
2242
+              ParamsQuery['patient_id'] = this.patient.id
2303 2243
                console.log('第二')
2304 2244
               postPrescription(ParamsQuery).then(response => {
2305 2245
                 if (response.data.state == 0) {
@@ -2347,8 +2287,9 @@
2347 2287
               ParamsQuery['patient'] = this.patient.id
2348 2288
               ParamsQuery['record_date'] = this.record_date
2349 2289
               ParamsQuery['mode'] = '1'
2290
+              ParamsQuery['patient_id'] = this.patient.id
2350 2291
               console.log('第三')
2351
-
2292
+            
2352 2293
               postPrescription(ParamsQuery).then(response => {
2353 2294
                 if (response.data.state == 0) {
2354 2295
                   this.$message.error(response.data.msg)
@@ -2420,6 +2361,7 @@
2420 2361
               ParamsQuery['record_date'] = this.record_date
2421 2362
               // console.log(this.prescription);
2422 2363
               console.log('第四')
2364
+              ParamsQuery['patient_id'] = this.patient.id
2423 2365
               postPrescription(ParamsQuery).then(response => {
2424 2366
                 if (response.data.state == 0) {
2425 2367
                   this.$message.error(response.data.msg)
@@ -2461,6 +2403,7 @@
2461 2403
               ParamsQuery['patient'] = this.patient.id
2462 2404
               ParamsQuery['record_date'] = this.record_date
2463 2405
               ParamsQuery['mode'] = '1'
2406
+              ParamsQuery['patient_id'] = this.patient.id
2464 2407
               console.log('第五')
2465 2408
               postPrescription(ParamsQuery).then(response => {
2466 2409
                 if (response.data.state == 0) {
@@ -2504,6 +2447,7 @@
2504 2447
                 ParamsQuery['record_date'] = this.record_date
2505 2448
                 ParamsQuery['mode'] = '1'
2506 2449
                 console.log('第6')
2450
+                ParamsQuery['patient_id'] = this.patient.id
2507 2451
                 postPrescription(ParamsQuery).then(response => {
2508 2452
                   if (response.data.state == 0) {
2509 2453
                     this.$message.error(response.data.msg)
@@ -2552,6 +2496,7 @@
2552 2496
                 ParamsQuery['record_date'] = this.record_date
2553 2497
                 ParamsQuery['mode'] = '1'
2554 2498
                 console.log('第七')
2499
+                ParamsQuery['patient_id'] = this.patient.id
2555 2500
                 postPrescription(ParamsQuery).then(response => {
2556 2501
                   if (response.data.state == 0) {
2557 2502
                     this.$message.error(response.data.msg)
@@ -2621,7 +2566,9 @@
2621 2566
                 ParamsQuery['patient'] = this.patient.id
2622 2567
                 ParamsQuery['record_date'] = this.record_date
2623 2568
                 ParamsQuery['mode'] = '1'
2569
+                ParamsQuery['patient_id'] = this.patient.id
2624 2570
                 console.log('第八')
2571
+                
2625 2572
                 postPrescription(ParamsQuery).then(response => {
2626 2573
                   if (response.data.state == 0) {
2627 2574
                     this.$message.error(response.data.msg)
@@ -2660,14 +2607,15 @@
2660 2607
             ParamsQuery['patient'] = this.patient.id
2661 2608
             ParamsQuery['record_date'] = this.record_date
2662 2609
             ParamsQuery['mode'] = '2'
2663
-
2610
+            ParamsQuery['patient_id'] = this.patient.id
2611
+          
2664 2612
             if (
2665 2613
               this.$store.getters.xt_user.user.id !=
2666 2614
               this.dialysisPrescription.creater
2667 2615
             ) {
2668 2616
               ParamsQuery['mode'] = '3'
2669 2617
             }
2670
-            console.log('第九')
2618
+            console.log('第九',ParamsQuery)
2671 2619
             postPrescription(ParamsQuery).then(response => {
2672 2620
               if (response.data.state == 0) {
2673 2621
                 this.$message.error(response.data.msg)
@@ -3221,13 +3169,12 @@
3221 3169
       isShows(name) {
3222 3170
         var filedList = store.getters.xt_user.fileds
3223 3171
         for (let i = 0; i < filedList.length; i++) {
3224
-          if (
3225
-            filedList[i].module == 1 &&
3226
-            filedList[i].filed_name_cn == name &&
3227
-            filedList[i].is_show == 1
3228
-          ) {
3172
+         
3173
+          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
3174
+
3229 3175
             return true
3230 3176
           }
3177
+
3231 3178
         }
3232 3179
         return false
3233 3180
       },

+ 156 - 59
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Dosyayı Görüntüle

@@ -47,6 +47,7 @@
47 47
         <el-checkbox :label="replacement_total"></el-checkbox>
48 48
         <el-checkbox :label="blood_flow_volume"></el-checkbox>
49 49
         <el-checkbox :label="dialysate_flow"></el-checkbox>
50
+        <el-checkbox :label="displace_liqui_value"></el-checkbox>
50 51
      </el-checkbox-group>
51 52
     </el-form>
52 53
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
@@ -197,10 +198,11 @@
197 198
         anticoagulant_weichi:"维持:",
198 199
         anticoagulant_zongliang:"总量:",
199 200
         displace_liqui_part:"置换液:",
200
-        replacement_total:"置换量:",
201
+        replacement_total:"置换量:",
201 202
         blood_flow_volume:"处方血流量:",
202 203
         dialysate_flow:"透析液流量:",
203
-        blood_access_part_opera_id:"通路类型:"
204
+        blood_access_part_opera_id:"通路类型:",
205
+        displace_liqui_value:"置换液总量:",
204 206
       }
205 207
     }, methods: {
206 208
       
@@ -222,7 +224,7 @@
222 224
                   '{y}-{m}-{d} {h}:{i}'
223 225
                 ).split(' ')[1]
224 226
 
225
-                console.log('真性感')
227
+                
226 228
             }
227 229
 
228 230
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
@@ -235,17 +237,14 @@
235 237
           if(this.doubleReview.modifier == 0){
236 238
             this.doubleReview.modifier = ""
237 239
           }
238
-          console.log( this.first_check_time )
239
-          console.log( this.check_time )
240
-
241
-
240
+       
242 241
         } else {
243 242
           var nowDate = new Date()
244 243
           var nowHours = nowDate.getHours()
245 244
           var nowMinutes = nowDate.getMinutes()
246
-          if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
247
-            this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
248
-          }
245
+          // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
246
+          //   this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
247
+          // }
249 248
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
250 249
           console.log( this.first_check_time )
251 250
           console.log( this.check_time )
@@ -326,7 +325,7 @@
326 325
            
327 326
 
328 327
             let doublecheck_resp = response.data.data.doubleCheck
329
-            console.log("双核2332322323",doublecheck_resp)
328
+            console.log("处方233232323232232332",this.prescription)
330 329
             var doubleCheck = this.double_check
331 330
             for (var index in doublecheck_resp) {        
332 331
               this.$set(doubleCheck, index, doublecheck_resp[index])
@@ -582,7 +581,7 @@
582 581
       changeBoxOne(val){
583 582
          var arr = []
584 583
          var str = val.join(';')
585
-         console.log("strw222222222",str)
584
+        
586 585
         if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
587 586
             arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
588 587
         }
@@ -633,19 +632,19 @@
633 632
         }
634 633
 
635 634
        if(str.indexOf("置换液")!=-1 && this.prescription!=null){
636
-           arr.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
635
+           arr.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
637 636
         } 
638 637
 
639 638
        if(str.indexOf("置换液")!=-1 && this.prescription==null){
640 639
            arr.push("置换液:")
641 640
         } 
642 641
       
643
-       if(str.indexOf("置换量")!=-1 && this.prescription!=null){
644
-           arr.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
642
+       if(str.indexOf("置换量")!=-1 && this.prescription!=null){
643
+           arr.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
645 644
         } 
646 645
 
647
-        if(str.indexOf("置换量")!=-1 && this.prescription==null){
648
-           arr.push("置换量:")
646
+        if(str.indexOf("置换量")!=-1 && this.prescription==null){
647
+           arr.push("置换量:")
649 648
         } 
650 649
 
651 650
        if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
@@ -663,6 +662,12 @@
663 662
        if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
664 663
            arr.push("透析液流量:")
665 664
         } 
665
+        if(str.indexOf("置换液总量")!=-1 && this.prescription!=null){
666
+           arr.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
667
+        } 
668
+        if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
669
+           arr.push("置换液总量:")
670
+        }
666 671
         console.log("arr",arr)
667 672
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
668 673
         if(val.length>0){
@@ -674,8 +679,7 @@
674 679
       changeBoxTwo(val){
675 680
          var arr = []
676 681
          var str = val.join(';')
677
-         console.log("strw222222222",str)
678
- 
682
+         
679 683
           if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
680 684
             arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
681 685
           
@@ -710,7 +714,7 @@
710 714
       changeBoxThree(val){
711 715
          var arr = []
712 716
          var str = val.join(';')
713
-         console.log("strw222222222",str)
717
+      
714 718
          if(str.indexOf('泵前补液测管未夹')!=-1){
715 719
            arr.push("泵前补液测管未夹:")
716 720
          }
@@ -867,6 +871,7 @@
867 871
        }
868 872
        return name
869 873
      },
874
+   
870 875
      getBloodAccess(id){
871 876
        
872 877
         let vascular_access_desc = getDataConfig(
@@ -880,7 +885,18 @@
880 885
           }
881 886
         }
882 887
         return name
883
-     }
888
+     },
889
+     getDisplace(id){
890
+       var name = ""
891
+       var arr = this.$store.getters.displace_liqui
892
+       console.log("arr233233233223",arr)
893
+       for(let i=0;i<arr.length;i++){
894
+        if(id == arr[i].id){
895
+          name = arr[i].name
896
+        }
897
+       }
898
+       return name
899
+     },
884 900
     },
885 901
 
886 902
     props: {
@@ -920,52 +936,128 @@
920 936
     },
921 937
     watch: {
922 938
       isVisibility(val) {
923
-        
939
+         
924 940
         if(this.prescription!=null && this.prescription.id!=0){
941
+          if(this.prescription.dialyzer_perfusion_apparatus !="" || this.prescription.dialysis_dialyszers!="" || this.prescription.dialysis_irrigation!=""){
942
+            this.diazes = "透析器/灌流器:"
943
+            this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
944
+            this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
945
+          }else{
946
+            this.diazes = ""
947
+            this.diazes = this.diazes 
948
+          }
949
+          
950
+          if(this.prescription.dialysate_formulation!=""){
951
+            this.dialysate_formulation = "透析液配方:"
952
+             this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
953
+          }else{
954
+            this.dialysate_formulation = this.dialysate_formulation 
955
+          }
956
+          
957
+          if(this.prescription.kalium!=""){
958
+            this.kalium = "钾:"
959
+           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
960
+          }else{
961
+            this.kalium = this.kalium 
962
+          }
963
+       
964
+          if(this.prescription.calcium!=""){
965
+           this.calcium = "钙:"
966
+           this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
967
+          }else{
968
+            this.calcium = this.calcium
969
+          }
970
+         
971
+          if(this.prescription.mode_id > 0){
972
+            this.dialys_mode= "透析模式:"
973
+            this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id) 
974
+          }else{
975
+             this.dialys_mode = this.dialys_mode
976
+          }
977
+          
978
+          if(this.prescription.dialysis_duration_hour !="" || this.prescription.dialysis_duration_minute!=""){
979
+            this.long_time ="透析时长:"
980
+            this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +(this.prescription.dialysis_duration_minute?this.prescription.dialysis_duration_minute:"") +"分"
981
+          }else{
982
+             this.long_time = this.long_time
983
+          }
984
+          
985
+          if(this.prescription.target_ultrafiltration!=""){
986
+           this.target_ultrafiltration = "目标超滤量:"
987
+           this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
988
+          }else{
989
+            this.target_ultrafiltration = this.target_ultrafiltration
990
+          }
991
+          
992
+          if(this.prescription.anticoagulant!=""){
993
+            this.anticoagulant = "抗凝剂:"
994
+            this.anticoagulant = this.anticoagulant + (this.getAnticoagulant(this.prescription.anticoagulant)?this.getAnticoagulant(this.prescription.anticoagulant):"")
995
+          }else{
996
+            this.anticoagulant = this.anticoagulant 
997
+          }
998
+         
999
+          if(this.prescription.anticoagulant_shouji!=""){
1000
+            this.anticoagulant_shouji="首剂:"
1001
+            this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
1002
+          }else{
1003
+             this.anticoagulant_shouji = this.anticoagulant_shouji
1004
+          }
1005
+          
1006
+          if(this.prescription.anticoagulant_weichi!=""){
1007
+             this.anticoagulant_weichi = "维持:"
1008
+             this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
1009
+          }else{
1010
+           this.anticoagulant_weichi = this.anticoagulant_weichi 
1011
+          }
925 1012
           
926
-          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
927
-          this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
928
-          this.prescription.dialyzer_perfusion_apparatus = ""
929
-          this.prescription.dialysis_dialyszers = ""
930
-          this.prescription.dialysis_irrigation = ""
931
-          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
932
-          // this.prescription.dialysate_formulation = ""
933
-          this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
934
-          this.prescription.kalium = ""
935
-          this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
936
-          this.prescription.calcium = ""
937
-          this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
938
-          this.prescription.mode_id= ""
939
-          this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +this.prescription.dialysis_duration_minute +"分"
940
-          this.prescription.dialysis_duration_hour=""
941
-          this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
942
-          this.prescription.target_ultrafiltration = ""
943
-          this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
944
-          this.prescription.anticoagulant=""
945
-          this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
946
-          this.prescription.anticoagulant_shouji = ""
947
-          this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
948
-         this.prescription.anticoagulant_weichi=""
949
-         this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
950
-         this.prescription.anticoagulant_zongliang = ""
951
-         this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
952
-          this.prescription.displace_liqui_part
953
-          this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
954
-          this.prescription.replacement_total= ""
955
-          this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
956
-          this.prescription.dialysate_flow= ""
1013
+          if(this.prescription.anticoagulant_zongliang!=""){
1014
+             this.anticoagulant_zongliang = "总量:"
1015
+             this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
1016
+          }else{
1017
+             this.anticoagulant_zongliang = this.anticoagulant_zongliang
1018
+          }
1019
+       
1020
+          if(this.prescription.displace_liqui_part!=""){
1021
+             this.displace_liqui_part="置换液:"
1022
+            this.displace_liqui_part = this.displace_liqui_part + (this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):"")
1023
+          }else{
1024
+             this.displace_liqui_part = this.getDisplace(this.displace_liqui_part)
1025
+          }
1026
+          
1027
+          if(this.prescription.replacement_total!=""){
1028
+             this.replacement_total = "置换量:"
1029
+             this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
1030
+          }else{
1031
+             this.replacement_total = this.replacement_total
1032
+          }
1033
+        
1034
+          if(this.prescription.dialysate_flow!=""){
1035
+             this.dialysate_flow = "透析液流量:"
1036
+             this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
1037
+          }else{
1038
+             this.dialysate_flow = this.dialysate_flow
1039
+          }
1040
+         
1041
+          if(this.prescription.displace_liqui_value!=""){
1042
+            this.displace_liqui_value = "置换液总量:"
1043
+            this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
1044
+            console.log("置换液总量",this.displace_liqui_value)
1045
+          }
1046
+        
957 1047
         }
958 1048
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1049
+          this.puncture_needle = "穿刺针:"
959 1050
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
960 1051
           this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
961 1052
         } 
962 1053
         if(this.double_check !=null && this.double_check.id!=0){
963
-           console.log("双人核对",this.double_check)
1054
+        
964 1055
            if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
965 1056
              this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
966
-             console.log("222222",this.checkList)
1057
+            
967 1058
            }
968 1059
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
1060
+          
969 1061
               this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
970 1062
            }
971 1063
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
@@ -978,6 +1070,7 @@
978 1070
                this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
979 1071
            }
980 1072
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
1073
+              
981 1074
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
982 1075
            }
983 1076
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
@@ -987,7 +1080,7 @@
987 1080
               this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
988 1081
            }
989 1082
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
990
-              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
1083
+              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
991 1084
            }
992 1085
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
993 1086
               this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
@@ -999,10 +1092,10 @@
999 1092
               this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
1000 1093
            }
1001 1094
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
1002
-              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
1095
+              this.checkListOne.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
1003 1096
            }
1004
-           if(this.double_check.dialysis_parameter_desc.indexOf("置换量")!=-1){
1005
-             this.checkListOne.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
1097
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换量")!=-1){
1098
+             this.checkListOne.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
1006 1099
            }
1007 1100
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
1008 1101
              this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
@@ -1010,6 +1103,10 @@
1010 1103
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1011 1104
              this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1012 1105
            }
1106
+
1107
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换液总量")!=-1){
1108
+             this.checkListOne.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
1109
+           }
1013 1110
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1014 1111
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1015 1112
            }

+ 15 - 3
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

@@ -981,6 +981,7 @@ export default {
981 981
           var schedual = resp.data.schedual // 患者排班信息
982 982
           console.log("排班22222222222",schedual)
983 983
           var prescription = resp.data.prescription // 透析处方
984
+        
984 985
           if (prescription != null) {
985 986
             if (prescription.body_fluid == -2) {
986 987
               prescription.body_fluid = 0
@@ -993,7 +994,7 @@ export default {
993 994
                prescription.plasma_separator  = ""
994 995
             }
995 996
           }
996
-
997
+        
997 998
           var solution = resp.data.solution // 透析方案
998 999
           console.log("透析方案22223333333333",solution)
999 1000
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
@@ -1204,7 +1205,8 @@ export default {
1204 1205
         } else {
1205 1206
           this.$message.error(resp.msg)
1206 1207
         }
1207
-
1208
+       
1209
+       // 目标超滤量是否默认上次数据
1208 1210
         if (this.lastDialysisPrescribe != null) {
1209 1211
           delete this.lastDialysisPrescribe.target_ultrafiltration
1210 1212
         }
@@ -1334,11 +1336,21 @@ export default {
1334 1336
     },
1335 1337
     requestDialysisSchedules: function() {
1336 1338
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1339
+      console.log("ymd233223232",ymd)
1340
+      console.log("prescription",this.prescription)
1337 1341
       getDialysisSchedules(ymd).then(rs => {
1338 1342
         var resp = rs.data
1339 1343
         if (resp.state == 1) {
1340 1344
           var schedules = resp.data.schedules
1341
-          console.log("当前排班信息4444444444444444",schedules)
1345
+          // if(this.prescription!=null){
1346
+          //   for(let i=0;i<schedules.length;i++){
1347
+          //     if(this.prescription.patient_id == schedules[i].patient_id){
1348
+          //       this.prescription = schedules[i].prescription
1349
+          //     }
1350
+          //   }
1351
+          // }
1352
+         
1353
+          console.log("hh2332223323232",schedules)
1342 1354
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1343 1355
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1344 1356
           if (this.activeName == 'first') {

+ 1 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -3232,11 +3232,8 @@
3232 3232
           }, 400)
3233 3233
         }
3234 3234
       }
3235
-    },
3236
-    created(){
3237
-      console.log("中华任命工商过多水分我333323232",this.org_id)
3238
-      console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjj",this.drugs)
3239 3235
     }
3236
+  
3240 3237
 
3241 3238
   }
3242 3239
 </script>

+ 18 - 7
src/xt_pages/hospitalStation/doctorDesk.vue Dosyayı Görüntüle

@@ -410,14 +410,25 @@
410 410
         this.$refs.multipleTable3.toggleAllSelection()
411 411
       },
412 412
       printThisPage() {
413
-        const style =
413
+        if(this.org_id == 10138){
414
+          const style =
414 415
           '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}'
415
-        printJS({
416
-          printable: 'printMain',
417
-          type: 'html',
418
-          style: style,
419
-          scanStyles: false
420
-        })
416
+          printJS({
417
+            printable: 'printMain',
418
+            type: 'html',
419
+            style: style,
420
+            scanStyles: false
421
+          })
422
+        }else{
423
+          const style =
424
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
425
+          printJS({
426
+            printable: 'printMain',
427
+            type: 'html',
428
+            style: style,
429
+            scanStyles: false
430
+          })
431
+        }
421 432
         this.innerVisible = false
422 433
         // this.$nextTick(() => {
423 434
         //   this.$refs.print.printThisPage()

+ 12 - 5
src/xt_pages/hospitalStation/print.vue Dosyayı Görüntüle

@@ -12,10 +12,11 @@
12 12
           >
13 13
         </template>
14 14
 
15
-        <div class='dialysisPage' style="padding-top:40px;">
15
+        <div class='dialysisPage'>
16 16
             <div v-if="org_id != 10138">
17
-                <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-                <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
17
+                <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
+                <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
+                <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
19 20
             </div>
20 21
             <div v-else>
21 22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
@@ -37,6 +38,7 @@
37 38
   import printOne from "./template/printOne"
38 39
   import printThree from "./template/printThree"
39 40
   import printFour from "./template/printFour"
41
+  import printFive from "./template/printFive"
40 42
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41 43
   export default {
42 44
     name: "dialysisPrintOrder",
@@ -44,7 +46,8 @@
44 46
       BreadCrumb,
45 47
       printOne,
46 48
       printThree,
47
-      printFour
49
+      printFour,
50
+      printFive
48 51
     },
49 52
     props:{
50 53
       paramsObj:Object,
@@ -372,11 +375,15 @@
372 375
 </style>
373 376
 
374 377
 <style lang="scss">
375
-
378
+    .dialysisPage{
379
+      padding-top:40px;
380
+    }
376 381
     .newContainer{
377 382
     .dialysisPage::-webkit-scrollbar {
378 383
         height: 15px;
379 384
     }
385
+    
386
+    
380 387
 
381 388
     .el-date-editor{
382 389
     .el-input__inner{

+ 375 - 0
src/xt_pages/hospitalStation/template/printFive.vue Dosyayı Görüntüle

@@ -0,0 +1,375 @@
1
+<template>
2
+  <div id='prescriptionPrint'>
3
+    <div v-for="(item,index) in advicePrint" :key="index">
4
+      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
+          <div class="printTitle"  v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
+          <div class="printTitle" v-if="prescriptions[0].med_type != '1111' && prescriptions[0].med_type != '1112'">{{orgname}}处方笺</div>
8
+          <div class="NoCell">
9
+              <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;">{{ (item.prescription_number + (index + 1)).substring(item.prescription_number.length-6) }}</div></div>
10
+              <div style="display:flex;">
11
+                  <div style="display: flex;flex-direction: column-reverse;">开具日期</div>
12
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(0,4):""}}</div><div style="display: flex;flex-direction: column-reverse;">年</div>
13
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(5,7):""}}</div><div style="display: flex;flex-direction: column-reverse;">月</div>
14
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(8,11):""}}</div><div style="display: flex;flex-direction: column-reverse;">日</div>
15
+              </div>
16
+          </div>
17
+          <div class="basicCell">
18
+              <span>透析号</span>
19
+              <span class="underLine" style="width:100px;">{{ item.patient.dialysis_no ? item.patient.dialysis_no : '' }}</span>
20
+              <span>治疗区</span>
21
+              <span class="underLine" style="width:100px;">{{item.info?getDepart(item.info.departments):''}}</span>
22
+              <span>费别</span>
23
+              <span class="underLine" style="width:100px;"></span>
24
+          </div>
25
+          <div class="basicCell">
26
+              <span>姓名</span>
27
+              <span class="underLine" style="width:100px;">{{item.patient.name?item.patient.name:""}}</span>
28
+              <span>性别</span>
29
+              <span class="underLine" style="width:60px;">
30
+                <span v-if="item.patient.gender == 1">男</span>
31
+                <span v-if="item.patient.gender == 2">女</span>
32
+              </span>
33
+              <span>年龄</span>
34
+              <span class="underLine" style="width:60px;">{{getAge(item.patient)?getAge(item.patient):""}}岁</span>
35
+              <span>电话</span>
36
+              <span class="underLine" style="width:120px;">{{item.patient.phone}}</span>
37
+          </div>
38
+          <div class="basicCell" style="margin-bottom:30px;">
39
+              <span>临床诊断</span>
40
+              <span class="underLine" style="width:100%;flex:1;text-align:left;padding-left:10px;">{{getDiagnosis(item.info.diagnosis)}}</span>
41
+          </div>
42
+          <div class="prescriptionBox" style="border-top: 1px solid #000;border-bottom: 1px solid #000;">
43
+              <div class="Rp">Rp:</div>
44
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
45
+                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
46
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
47
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
48
+              </div>
49
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
50
+                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
51
+               </div>
52
+
53
+              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
54
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
55
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
56
+              </div>
57
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
58
+                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price.toFixed(2)}}元/{{it.count}}次</div>
59
+               </div>
60
+               <div style="text-align:center;" >(以下空白)</div>
61
+
62
+          </div>
63
+          <div class="NoCell" style="margin-top:20px;">
64
+              <div style="display:flex;">
65
+                <span>医师</span>
66
+                <span class="underLine" style="width:100px;">{{item.doctor?item.doctor:""}}</span>
67
+              </div>
68
+              <div style="display:flex;">
69
+                <span>金额</span>
70
+                <span class="underLine" style="width:100px;"></span>
71
+              </div>
72
+          </div>
73
+          <div class="NoCell">
74
+              <div style="display:flex;">
75
+                <span>药师(审核、核对、发药)</span>
76
+                <span class="underLine" style="width:100px;"></span>
77
+              </div>
78
+              <div style="display:flex;">
79
+                <span>调配</span>
80
+                <span class="underLine" style="width:100px;"></span>
81
+              </div>
82
+          </div>
83
+          <div style="page-break-after:always"></div>
84
+      </div>
85
+    </div>
86
+
87
+  </div>
88
+
89
+
90
+</template>
91
+<script>
92
+import { jsGetAge, uParseTime } from '@/utils/tools'
93
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
94
+import {getInitData} from "@/api/his/his"
95
+export default {
96
+    props:{
97
+      patient_id:Number,
98
+      record_date:String,
99
+      prescription_id:Number,
100
+      ids:String
101
+    },
102
+    data(){
103
+      return {
104
+        doctorList:[],
105
+        advicePrint:{},
106
+        patient:{},
107
+        tableData:[],
108
+        prescriptionInfo:[],
109
+        hisPatient:{},
110
+        department:[],
111
+        prescriptions:[],
112
+        projectList:[],
113
+        orgname:"",
114
+        diagnoses:[],
115
+        org_id: 0
116
+      }
117
+    },
118
+   methods:{
119
+     getAge(patient){
120
+       var thisLen = patient.id_card_no.length
121
+       var birth = ''
122
+       if (thisLen == 15) {
123
+         birth = '19' + patient.id_card_no.substr(6, 6)
124
+       } else {
125
+         birth = patient.id_card_no.substr(6, 8)
126
+       }
127
+       var births =
128
+         birth.substr(0, 4) +
129
+         '-' +
130
+         birth.substr(4, 2) +
131
+         '-' +
132
+         birth.substr(6, 2)
133
+       return jsGetAge(births, '-')
134
+
135
+     },
136
+
137
+     getAllDoctorList(){
138
+      getAllDoctorList().then(response=>{
139
+        if(response.data.state == 1){
140
+               var doctor =  response.data.data.doctor
141
+
142
+               this.doctorList = doctor
143
+             }
144
+         })
145
+     },
146
+
147
+      getDoctor(id){
148
+        var name = ""
149
+        for(let i=0;i<this.doctorList.length;i++){
150
+          if(id == this.doctorList[i].admin_user_id){
151
+              name = this.doctorList[i].user_name
152
+          }
153
+        }
154
+        return name
155
+      },
156
+      getTime(value, temp) {
157
+        if (value != undefined) {
158
+            return uParseTime(value, temp)
159
+        }
160
+        return ''
161
+     },
162
+       getPrescriptionPrint(){
163
+         var params = {
164
+          // patient_id:this.patient_id,
165
+          // record_date:this.record_date,
166
+          // prescription_id:this.prescription_id,
167
+          patient_id:this.patient_id,
168
+          record_date:this.record_date,
169
+          prescription_id:this.prescription_id,
170
+          ids:this.ids
171
+        }
172
+        console.log("params",params)
173
+       getPrescriptionPrint(params).then(response=>{
174
+         if(response.data.state == 1){
175
+            var advicePrint =  response.data.data.advicePrint
176
+            console.log("adviceprint9999",advicePrint)
177
+            this.advicePrint = advicePrint
178
+            this.prescriptions = advicePrint
179
+            console.log("处方222222",this.prescriptions)
180
+            var hisPatient = response.data.data.hisPatient
181
+            console.log("hisPatient",hisPatient)
182
+            this.hisPatient = hisPatient
183
+            var projectlist =  response.data.data.projectlist
184
+            console.log("所有项目列表",projectlist)
185
+            this.projectList = projectlist
186
+          }
187
+       })
188
+     },
189
+     getHisPatientDetail(){
190
+          const params = {
191
+              patient_id:this.patient_id
192
+          }
193
+       getHisPatientDetail(params).then(response=>{
194
+          if(response.data.state == 1){
195
+             var hisPatient =  response.data.data.hisPatient
196
+             console.log("挂号病人",hisPatient)
197
+             this.hisPatient = hisPatient
198
+          }
199
+       })
200
+     },
201
+     getInitData(){
202
+       getInitData().then(response=>{
203
+          if(response.data.state == 1){
204
+            this.department = response.data.data.department
205
+            this.diagnoses = response.data.data.diagnose
206
+            console.log("争端",this.diagnoses)
207
+          }
208
+       })
209
+     },
210
+     getDepart(id){
211
+         var name = ""
212
+       for(let i=0;i<this.department.length;i++){
213
+           if(id == this.department[i].id){
214
+               name = this.department[i].name
215
+           }
216
+       }
217
+       return name
218
+     },
219
+    getTotalOne(id) {
220
+
221
+        var total = 0
222
+        var addtotal = 0
223
+        for (let i = 0; i < this.prescriptions.length; i++) {
224
+          if(id == this.prescriptions[i].id){
225
+            if (this.prescriptions[i].project != null) {
226
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
227
+                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
228
+              }
229
+            }
230
+
231
+            if (this.prescriptions[i].additionalcharge != null) {
232
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
233
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
234
+              }
235
+            }
236
+              addtotal =  Math.floor(addtotal * 100) / 100
237
+        }
238
+
239
+       }
240
+
241
+      for (let i = 0; i < this.prescriptions.length; i++) {
242
+          if(id == this.prescriptions[i].id){
243
+            if (this.prescriptions[i].advices != null) {
244
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
245
+                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
246
+              }
247
+            }
248
+
249
+            if (this.prescriptions[i].additionalcharge != null) {
250
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
251
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
252
+              }
253
+            }
254
+              addtotal =  Math.floor(addtotal * 100) / 100
255
+        }
256
+       }
257
+
258
+        return total + addtotal
259
+      },
260
+
261
+     getProjectName(id){
262
+        var project_name = ""
263
+        for(let i=0;i<this.projectList.length;i++){
264
+           if(id == this.projectList[i].id){
265
+               project_name = this.projectList[i].project_name
266
+           }
267
+        }
268
+        return project_name
269
+     },
270
+
271
+     getDiagnosis(id){
272
+        let arr = id.split(',')
273
+        var name = ""
274
+        for(let i=0;i<this.diagnoses.length;i++){
275
+          if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
+             name += this.diagnoses[i].class_name + ' '
277
+          }
278
+        }
279
+        return name
280
+     }
281
+
282
+   },
283
+   created(){
284
+      this.getAllDoctorList()
285
+      this.getInitData()
286
+      this.getPrescriptionPrint()
287
+      this.getHisPatientDetail()
288
+      var xtuser = this.$store.getters.xt_user;
289
+      this.orgname = xtuser.org.org_name;
290
+      this.org_id = xtuser.org.id
291
+   },
292
+   watch:{
293
+     ids:function(val){
294
+      this.ids = val
295
+      this.getPrescriptionPrint()
296
+    }
297
+   }
298
+}
299
+</script>
300
+
301
+
302
+<style lang="scss" scoped>
303
+.prescription-print{
304
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
305
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
306
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
307
+    margin-bottom: 20px;
308
+    padding:20px 10px;
309
+}
310
+.printTitle{
311
+    font-size: 22px;
312
+    text-align: center;
313
+    font-weight: bold;
314
+}
315
+.infoTitle{
316
+    display: flex;
317
+    border-bottom: 2px solid #000;
318
+    margin-top:10px;
319
+    line-height: 24px;
320
+    padding:0 10px;
321
+}
322
+.infoTitle p{
323
+    width: 200px;
324
+}
325
+.infoMain{
326
+    display: flex;
327
+    flex-wrap: wrap;
328
+    border-bottom: 2px solid #000;
329
+    padding:0 10px;
330
+}
331
+.infoMain div{
332
+    width: 50%;
333
+    line-height: 24px;
334
+}
335
+.prescriptionBox{
336
+    padding:0 10px;
337
+    min-height:450px;
338
+}
339
+.Rp{
340
+    font-size: 22px;
341
+    font-weight: bold;
342
+}
343
+.drugsBox{
344
+    padding-left: 40px;
345
+    margin-bottom: 10px;
346
+}
347
+.drugsBox div{
348
+    line-height: 20px;
349
+}
350
+.drugsOne{
351
+    line-height: 24px;
352
+}
353
+.drugsOne span{
354
+    margin-right: 20px;
355
+}
356
+.doctorBox{
357
+    display: flex;
358
+    justify-content: space-between;
359
+    padding:0 10px;
360
+    line-height: 24px;
361
+    border-bottom: 2px solid #000;
362
+}
363
+.actionBar{
364
+    display: flex;
365
+    justify-content: space-between;
366
+    line-height: 24px;
367
+    padding:0 10px;
368
+}
369
+.actionBar p{
370
+    width:150px;
371
+}
372
+.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}
373
+.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}
374
+.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}
375
+</style>

+ 18 - 18
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Dosyayı Görüntüle

@@ -3,8 +3,8 @@
3 3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4 4
               :row-style="{ color: '#303133' }"
5 5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
7
-      <el-table-column align="center" prop="name" label="名称">
6
+      <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
7
+      <el-table-column fixed align="center" prop="name" label="名称">
8 8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
9 9
       </el-table-column>
10 10
 
@@ -48,14 +48,14 @@
48 48
       </el-table-column>
49 49
 
50 50
 
51
-      <el-table-column align="center" prop="name" width="60" label="医保编码">
51
+      <el-table-column align="center" prop="name" width="120" label="医保编码">
52 52
         <template slot-scope="scope">
53 53
           <div> {{scope.row.code}}</div>
54 54
         </template>
55 55
       </el-table-column>
56 56
 
57 57
 
58
-      <el-table-column align="center" prop="name" width="60" label="规格/型号">
58
+      <el-table-column align="center" prop="name" width="80" label="规格/型号">
59 59
         <template slot-scope="scope">
60 60
           <div> {{scope.row.spec}}</div>
61 61
         </template>
@@ -68,7 +68,7 @@
68 68
       </el-table-column>
69 69
 
70 70
 
71
-      <el-table-column align="center" prop="name" width="60" label="生产厂家">
71
+      <el-table-column align="center" prop="name" width="120" label="生产厂家">
72 72
         <template slot-scope="scope">
73 73
           <div> {{getName(scope.row.name_id)}}</div>
74 74
         </template>
@@ -76,7 +76,7 @@
76 76
 
77 77
 
78 78
 
79
-      <el-table-column align="center" prop="name" width="60" label="全自费金额">
79
+      <el-table-column align="center" prop="name" width="90" label="全自费金额">
80 80
         <template slot-scope="scope">
81 81
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
82 82
         </template>
@@ -84,21 +84,21 @@
84 84
 
85 85
 
86 86
 
87
-      <el-table-column align="center" prop="name" width="60" label="超限价金额">
87
+      <el-table-column align="center" prop="name" width="90" label="超限价金额">
88 88
         <template slot-scope="scope">
89 89
           <div> {{scope.row.overlmt_amt}}元</div>
90 90
         </template>
91 91
       </el-table-column>
92 92
 
93 93
 
94
-      <el-table-column align="center" prop="name" width="60" label="先行自付金额">
94
+      <el-table-column align="center" prop="name" width="90" label="先行自付金额">
95 95
         <template slot-scope="scope">
96 96
           <div> {{scope.row.preselfpay_amt}}元</div>
97 97
         </template>
98 98
       </el-table-column>
99 99
 
100 100
 
101
-      <el-table-column align="center" prop="name" width="60" label="符合正常范围金额">
101
+      <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
102 102
         <template slot-scope="scope">
103 103
           <div> {{scope.row.inscp_scp_amt}}元</div>
104 104
         </template>
@@ -120,8 +120,8 @@
120 120
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
121 121
               :row-style="{ color: '#303133' }"
122 122
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
123
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
124
-      <el-table-column align="center" prop="project_name" label="名称">
123
+      <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
124
+      <el-table-column fixed align="center" prop="project_name" label="名称">
125 125
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
126 126
       </el-table-column>
127 127
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
@@ -152,14 +152,14 @@
152 152
 
153 153
 
154 154
 
155
-      <el-table-column align="center" prop="name" width="60" label="医保编码">
155
+      <el-table-column align="center" prop="name" width="120" label="医保编码">
156 156
         <template slot-scope="scope">
157 157
           <div> {{scope.row.medical_code}}</div>
158 158
         </template>
159 159
       </el-table-column>
160 160
 
161 161
 
162
-      <el-table-column align="center" prop="name" width="60" label="规格/型号">
162
+      <el-table-column align="center" prop="name" width="80" label="规格/型号">
163 163
         <template slot-scope="scope">
164 164
           <div> {{scope.row.spec}}</div>
165 165
         </template>
@@ -172,7 +172,7 @@
172 172
       </el-table-column>
173 173
 
174 174
 
175
-      <el-table-column align="center" prop="name" width="60" label="生产厂家">
175
+      <el-table-column align="center" prop="name" width="120" label="生产厂家">
176 176
         <template slot-scope="scope">
177 177
           <div> {{getName(scope.row.name_id)}}</div>
178 178
         </template>
@@ -180,7 +180,7 @@
180 180
 
181 181
 
182 182
 
183
-      <el-table-column align="center" prop="name" width="60" label="全自费金额">
183
+      <el-table-column align="center" prop="name" width="90" label="全自费金额">
184 184
         <template slot-scope="scope">
185 185
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
186 186
         </template>
@@ -188,21 +188,21 @@
188 188
 
189 189
 
190 190
 
191
-      <el-table-column align="center" prop="name" width="60" label="超限价金额">
191
+      <el-table-column align="center" prop="name" width="90" label="超限价金额">
192 192
         <template slot-scope="scope">
193 193
           <div> {{scope.row.overlmt_amt}}元</div>
194 194
         </template>
195 195
       </el-table-column>
196 196
 
197 197
 
198
-      <el-table-column align="center" prop="name" width="60" label="先行自付金额">
198
+      <el-table-column align="center" prop="name" width="90" label="先行自付金额">
199 199
         <template slot-scope="scope">
200 200
           <div> {{scope.row.preselfpay_amt}}元</div>
201 201
         </template>
202 202
       </el-table-column>
203 203
 
204 204
 
205
-      <el-table-column align="center" prop="name" width="60" label="符合正常范围金额">
205
+      <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
206 206
         <template slot-scope="scope">
207 207
           <div> {{scope.row.inscp_scp_amt}}元</div>
208 208
         </template>

+ 4 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Dosyayı Görüntüle

@@ -4238,7 +4238,7 @@
4238 4238
 
4239 4239
     .settlementTabs {
4240 4240
         flex: 1;
4241
-
4241
+        width: 100%;
4242 4242
     .el-tab-pane {
4243 4243
         height: 100%;
4244 4244
     }
@@ -4322,5 +4322,8 @@
4322 4322
     }
4323 4323
 
4324 4324
     }
4325
+    ::-webkit-scrollbar {
4326
+      height: 20px;
4327
+    }
4325 4328
 </style>
4326 4329
 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Dosyayı Görüntüle

@@ -169,7 +169,7 @@ export default {
169 169
               
170 170
             })
171 171
           
172
-            this.total = total
172
+            this.total = total.toFixed(2)
173 173
             this.pre_time = this.advicePrint[0].pre_time
174 174
             this.doctor = this.advicePrint[0].doctor
175 175
             this.projectPrint = data

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Dosyayı Görüntüle

@@ -453,7 +453,7 @@
453 453
           })
454 454
         }else{
455 455
           const style =
456
-          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}'
456
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
457 457
           printJS({
458 458
             printable: 'printMain',
459 459
             type: 'html',

+ 6 - 3
src/xt_pages/outpatientDoctorStation/print.vue Dosyayı Görüntüle

@@ -14,8 +14,9 @@
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16 16
       <div v-if="org_id != 10138">
17
-        <printOne v-if="org_id != 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-        <printFour v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
17
+        <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
+        <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
+        <printFive v-if="org_id == 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
19 20
       </div>
20 21
       <div v-else>
21 22
         <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
@@ -37,6 +38,7 @@ import print from "print-js";
37 38
 import printOne from "./template/printOne"
38 39
 import printThree from "./template/printThree"
39 40
 import printFour from "./template/printFour"
41
+import printFive from "./template/printFive"
40 42
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41 43
 export default {
42 44
   name: "dialysisPrintOrder",
@@ -44,7 +46,8 @@ export default {
44 46
     BreadCrumb,
45 47
     printOne,
46 48
     printThree,
47
-    printFour
49
+    printFour,
50
+    printFive
48 51
   },
49 52
   props:{
50 53
     paramsObj:Object

+ 375 - 0
src/xt_pages/outpatientDoctorStation/template/printFive.vue Dosyayı Görüntüle

@@ -0,0 +1,375 @@
1
+<template>
2
+  <div id='prescriptionPrint'>
3
+    <div v-for="(item,index) in advicePrint" :key="index">
4
+      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
+          <div class="printTitle"  v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
+          <div class="printTitle" v-if="prescriptions[0].med_type != '1111' && prescriptions[0].med_type != '1112'">{{orgname}}处方笺</div>
8
+          <div class="NoCell">
9
+              <div><span style="font-size:20px;font-weight:bold;">No</span><div class="underLine" style="width:120px;"></div></div>
10
+              <div style="display:flex;">
11
+                  <div style="display: flex;flex-direction: column-reverse;">开具日期</div>
12
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(0,4):""}}</div><div style="display: flex;flex-direction: column-reverse;">年</div>
13
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(5,7):""}}</div><div style="display: flex;flex-direction: column-reverse;">月</div>
14
+                  <div class="underLine" style="width:60px;">{{getTime(item.ctime)?getTime(item.ctime).split(' ')[0].slice(8,11):""}}</div><div style="display: flex;flex-direction: column-reverse;">日</div>
15
+              </div>
16
+          </div>
17
+          <div class="basicCell">
18
+              <span>透析号</span>
19
+              <span class="underLine" style="width:100px;">{{ item.patient.dialysis_no ? item.patient.dialysis_no : '' }}</span>
20
+              <span>治疗区</span>
21
+              <span class="underLine" style="width:100px;">{{item.info?getDepart(item.info.departments):''}}</span>
22
+              <span>费别</span>
23
+              <span class="underLine" style="width:100px;"></span>
24
+          </div>
25
+          <div class="basicCell">
26
+              <span>姓名</span>
27
+              <span class="underLine" style="width:100px;">{{item.patient.name?item.patient.name:""}}</span>
28
+              <span>性别</span>
29
+              <span class="underLine" style="width:60px;">
30
+                <span v-if="item.patient.gender == 1">男</span>
31
+                <span v-if="item.patient.gender == 2">女</span>
32
+              </span>
33
+              <span>年龄</span>
34
+              <span class="underLine" style="width:60px;">{{getAge(item.patient)?getAge(item.patient):""}}岁</span>
35
+              <span>电话</span>
36
+              <span class="underLine" style="width:120px;">{{item.patient.phone}}</span>
37
+          </div>
38
+          <div class="basicCell" style="margin-bottom:30px;">
39
+              <span>临床诊断</span>
40
+              <span class="underLine" style="width:100%;flex:1;text-align:left;padding-left:10px;">{{getDiagnosis(item.info.diagnosis)}}</span>
41
+          </div>
42
+          <div class="prescriptionBox" style="border-top: 1px solid #000;border-bottom: 1px solid #000;">
43
+              <div class="Rp">Rp:</div>
44
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
45
+                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
46
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
47
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
48
+              </div>
49
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
50
+                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
51
+               </div>
52
+
53
+              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
54
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
55
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
56
+              </div>
57
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
58
+                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price.toFixed(2)}}元/{{it.count}}次</div>
59
+               </div>
60
+               <div style="text-align:center;" >(以下空白)</div>
61
+
62
+          </div>
63
+          <div class="NoCell" style="margin-top:20px;">
64
+              <div style="display:flex;">
65
+                <span>医师</span>
66
+                <span class="underLine" style="width:100px;">{{item.doctor?item.doctor:""}}</span>
67
+              </div>
68
+              <div style="display:flex;">
69
+                <span>金额</span>
70
+                <span class="underLine" style="width:100px;"></span>
71
+              </div>
72
+          </div>
73
+          <div class="NoCell">
74
+              <div style="display:flex;">
75
+                <span>药师(审核、核对、发药)</span>
76
+                <span class="underLine" style="width:100px;"></span>
77
+              </div>
78
+              <div style="display:flex;">
79
+                <span>调配</span>
80
+                <span class="underLine" style="width:100px;"></span>
81
+              </div>
82
+          </div>
83
+          <div style="page-break-after:always"></div>
84
+      </div>
85
+    </div>
86
+
87
+  </div>
88
+
89
+
90
+</template>
91
+<script>
92
+import { jsGetAge, uParseTime } from '@/utils/tools'
93
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
94
+import {getInitData} from "@/api/his/his"
95
+export default {
96
+    props:{
97
+      patient_id:Number,
98
+      record_date:String,
99
+      prescription_id:Number,
100
+      ids:String
101
+    },
102
+    data(){
103
+      return {
104
+        doctorList:[],
105
+        advicePrint:{},
106
+        patient:{},
107
+        tableData:[],
108
+        prescriptionInfo:[],
109
+        hisPatient:{},
110
+        department:[],
111
+        prescriptions:[],
112
+        projectList:[],
113
+        orgname:"",
114
+        diagnoses:[],
115
+        org_id: 0
116
+      }
117
+    },
118
+   methods:{
119
+     getAge(patient){
120
+       var thisLen = patient.id_card_no.length
121
+       var birth = ''
122
+       if (thisLen == 15) {
123
+         birth = '19' + patient.id_card_no.substr(6, 6)
124
+       } else {
125
+         birth = patient.id_card_no.substr(6, 8)
126
+       }
127
+       var births =
128
+         birth.substr(0, 4) +
129
+         '-' +
130
+         birth.substr(4, 2) +
131
+         '-' +
132
+         birth.substr(6, 2)
133
+       return jsGetAge(births, '-')
134
+
135
+     },
136
+
137
+     getAllDoctorList(){
138
+      getAllDoctorList().then(response=>{
139
+        if(response.data.state == 1){
140
+               var doctor =  response.data.data.doctor
141
+
142
+               this.doctorList = doctor
143
+             }
144
+         })
145
+     },
146
+
147
+      getDoctor(id){
148
+        var name = ""
149
+        for(let i=0;i<this.doctorList.length;i++){
150
+          if(id == this.doctorList[i].admin_user_id){
151
+              name = this.doctorList[i].user_name
152
+          }
153
+        }
154
+        return name
155
+      },
156
+      getTime(value, temp) {
157
+        if (value != undefined) {
158
+            return uParseTime(value, temp)
159
+        }
160
+        return ''
161
+     },
162
+       getPrescriptionPrint(){
163
+         var params = {
164
+          // patient_id:this.patient_id,
165
+          // record_date:this.record_date,
166
+          // prescription_id:this.prescription_id,
167
+          patient_id:this.patient_id,
168
+          record_date:this.record_date,
169
+          prescription_id:this.prescription_id,
170
+          ids:this.ids
171
+        }
172
+        console.log("params",params)
173
+       getPrescriptionPrint(params).then(response=>{
174
+         if(response.data.state == 1){
175
+            var advicePrint =  response.data.data.advicePrint
176
+            console.log("adviceprint9999",advicePrint)
177
+            this.advicePrint = advicePrint
178
+            this.prescriptions = advicePrint
179
+            console.log("处方222222",this.prescriptions)
180
+            var hisPatient = response.data.data.hisPatient
181
+            console.log("hisPatient",hisPatient)
182
+            this.hisPatient = hisPatient
183
+            var projectlist =  response.data.data.projectlist
184
+            console.log("所有项目列表",projectlist)
185
+            this.projectList = projectlist
186
+          }
187
+       })
188
+     },
189
+     getHisPatientDetail(){
190
+          const params = {
191
+              patient_id:this.patient_id
192
+          }
193
+       getHisPatientDetail(params).then(response=>{
194
+          if(response.data.state == 1){
195
+             var hisPatient =  response.data.data.hisPatient
196
+             console.log("挂号病人",hisPatient)
197
+             this.hisPatient = hisPatient
198
+          }
199
+       })
200
+     },
201
+     getInitData(){
202
+       getInitData().then(response=>{
203
+          if(response.data.state == 1){
204
+            this.department = response.data.data.department
205
+            this.diagnoses = response.data.data.diagnose
206
+            console.log("争端",this.diagnoses)
207
+          }
208
+       })
209
+     },
210
+     getDepart(id){
211
+         var name = ""
212
+       for(let i=0;i<this.department.length;i++){
213
+           if(id == this.department[i].id){
214
+               name = this.department[i].name
215
+           }
216
+       }
217
+       return name
218
+     },
219
+    getTotalOne(id) {
220
+
221
+        var total = 0
222
+        var addtotal = 0
223
+        for (let i = 0; i < this.prescriptions.length; i++) {
224
+          if(id == this.prescriptions[i].id){
225
+            if (this.prescriptions[i].project != null) {
226
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
227
+                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
228
+              }
229
+            }
230
+
231
+            if (this.prescriptions[i].additionalcharge != null) {
232
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
233
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
234
+              }
235
+            }
236
+              addtotal =  Math.floor(addtotal * 100) / 100
237
+        }
238
+
239
+       }
240
+
241
+      for (let i = 0; i < this.prescriptions.length; i++) {
242
+          if(id == this.prescriptions[i].id){
243
+            if (this.prescriptions[i].advices != null) {
244
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
245
+                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
246
+              }
247
+            }
248
+
249
+            if (this.prescriptions[i].additionalcharge != null) {
250
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
251
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
252
+              }
253
+            }
254
+              addtotal =  Math.floor(addtotal * 100) / 100
255
+        }
256
+       }
257
+
258
+        return total + addtotal
259
+      },
260
+
261
+     getProjectName(id){
262
+        var project_name = ""
263
+        for(let i=0;i<this.projectList.length;i++){
264
+           if(id == this.projectList[i].id){
265
+               project_name = this.projectList[i].project_name
266
+           }
267
+        }
268
+        return project_name
269
+     },
270
+
271
+     getDiagnosis(id){
272
+        let arr = id.split(',')
273
+        var name = ""
274
+        for(let i=0;i<this.diagnoses.length;i++){
275
+          if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
+             name += this.diagnoses[i].class_name + ' '
277
+          }
278
+        }
279
+        return name
280
+     }
281
+
282
+   },
283
+   created(){
284
+      this.getAllDoctorList()
285
+      this.getInitData()
286
+      this.getPrescriptionPrint()
287
+      this.getHisPatientDetail()
288
+      var xtuser = this.$store.getters.xt_user;
289
+      this.orgname = xtuser.org.org_name;
290
+      this.org_id = xtuser.org.id
291
+   },
292
+   watch:{
293
+     ids:function(val){
294
+      this.ids = val
295
+      this.getPrescriptionPrint()
296
+    }
297
+   }
298
+}
299
+</script>
300
+
301
+
302
+<style lang="scss" scoped>
303
+.prescription-print{
304
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
305
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
306
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
307
+    margin-bottom: 20px;
308
+    padding:20px 10px;
309
+}
310
+.printTitle{
311
+    font-size: 22px;
312
+    text-align: center;
313
+    font-weight: bold;
314
+}
315
+.infoTitle{
316
+    display: flex;
317
+    border-bottom: 2px solid #000;
318
+    margin-top:10px;
319
+    line-height: 24px;
320
+    padding:0 10px;
321
+}
322
+.infoTitle p{
323
+    width: 200px;
324
+}
325
+.infoMain{
326
+    display: flex;
327
+    flex-wrap: wrap;
328
+    border-bottom: 2px solid #000;
329
+    padding:0 10px;
330
+}
331
+.infoMain div{
332
+    width: 50%;
333
+    line-height: 24px;
334
+}
335
+.prescriptionBox{
336
+    padding:0 10px;
337
+    min-height:450px;
338
+}
339
+.Rp{
340
+    font-size: 22px;
341
+    font-weight: bold;
342
+}
343
+.drugsBox{
344
+    padding-left: 40px;
345
+    margin-bottom: 10px;
346
+}
347
+.drugsBox div{
348
+    line-height: 20px;
349
+}
350
+.drugsOne{
351
+    line-height: 24px;
352
+}
353
+.drugsOne span{
354
+    margin-right: 20px;
355
+}
356
+.doctorBox{
357
+    display: flex;
358
+    justify-content: space-between;
359
+    padding:0 10px;
360
+    line-height: 24px;
361
+    border-bottom: 2px solid #000;
362
+}
363
+.actionBar{
364
+    display: flex;
365
+    justify-content: space-between;
366
+    line-height: 24px;
367
+    padding:0 10px;
368
+}
369
+.actionBar p{
370
+    width:150px;
371
+}
372
+.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}
373
+.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}
374
+.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}
375
+</style>

+ 9 - 2
src/xt_pages/stock/cancelStockOrderAdd.vue Dosyayı Görüntüle

@@ -560,7 +560,12 @@ export default {
560 560
                }
561 561
             }     
562 562
           }
563
-
563
+          const loading = this.$loading({
564
+            lock: true,
565
+            text: 'Loading',
566
+            spinner: 'el-icon-loading',
567
+            background: 'rgba(0, 0, 0, 0.7)'
568
+          })
564 569
           const params = {
565 570
             cancelStock: this.recordInfo.recordData
566 571
           };
@@ -576,6 +581,7 @@ export default {
576 581
           ).then(response => {
577 582
             if (response.data.state == 0) {
578 583
               this.$message.error(response.data.msg);
584
+              loading.close()
579 585
               return false;
580 586
             } else {
581 587
              var msg =  response.data.data.msg
@@ -601,7 +607,8 @@ export default {
601 607
               });
602 608
               this.recordInfo.recordData = [];
603 609
               this.$router.back(-1);
604
-             }        
610
+             }  
611
+             loading.close()      
605 612
             }
606 613
           });
607 614
         } else {

+ 9 - 2
src/xt_pages/stock/cancelStockOrderEdit.vue Dosyayı Görüntüle

@@ -527,7 +527,12 @@
527 527
                 }
528 528
               }     
529 529
             }
530
-
530
+            const loading = this.$loading({
531
+              lock: true,
532
+              text: 'Loading',
533
+              spinner: 'el-icon-loading',
534
+              background: 'rgba(0, 0, 0, 0.7)'
535
+            })
531 536
             const params = {
532 537
               'cancelStock': this.recordInfo.recordData
533 538
             }
@@ -536,6 +541,7 @@
536 541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
537 542
               if (response.data.state == 0) {
538 543
                 this.$message.error(response.data.msg)
544
+                loading.close()
539 545
                 return false
540 546
               } else {
541 547
                 var msg =  response.data.data.msg
@@ -561,7 +567,8 @@
561 567
                   });
562 568
                   this.recordInfo.recordData = [];
563 569
                   this.$router.back(-1);
564
-                }        
570
+                }  
571
+                loading.close()       
565 572
               }
566 573
             })
567 574
           } else {

+ 23 - 50
src/xt_pages/stock/drugs/components/drugCancelDetail.vue Dosyayı Görüntüle

@@ -70,46 +70,6 @@
70 70
       </div>
71 71
     </div>
72 72
 
73
-    
74
-
75
-    <!-- <div class="cell clearfix">
76
-      <label class="title"><span class="name">单据类型</span> : </label>
77
-      <el-select
78
-        size="small"
79
-        v-model="order_type"
80
-        clearable
81
-        placeholder="单据类型"
82
-        @change="changeType"
83
-      >
84
-        <el-option
85
-          v-for="item in orderTypeArr"
86
-          :key="item.value"
87
-          :label="item.label"
88
-          :value="item.value"
89
-        >
90
-        </el-option>
91
-      </el-select>
92
-    </div> -->
93
-<!-- 
94
-    <div class="cell clearfix">
95
-      <label class="title"><span class="name">其它</span> : </label>
96
-      <el-select
97
-        size="small"
98
-        v-model="manufacturer_id"
99
-        clearable
100
-        placeholder="厂商"
101
-        @change="changeManufacturer"
102
-      >
103
-        <el-option
104
-          v-for="item in manufacturer"
105
-          :key="item.id"
106
-          :label="item.manufacturer_name"
107
-          :value="item.id"
108
-        >
109
-        </el-option>
110
-      </el-select>
111
-    </div> -->
112
-
113 73
     <el-row :gutter="12" style="margin-top: 10px">
114 74
       <el-table
115 75
         :data="tableData"
@@ -135,6 +95,7 @@
135 95
             <span v-if="scope.row.drug_type == 1">西药</span>
136 96
             <span v-if="scope.row.drug_type == 2">草药</span>
137 97
             <span v-if="scope.row.drug_type == 3">成药</span>
98
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
138 99
           </template>
139 100
         </el-table-column>
140 101
 
@@ -273,6 +234,7 @@ export default {
273 234
       tableData:[],
274 235
       tableList:[],
275 236
       tableDataList:[],
237
+      drugTypeList:[],
276 238
     };
277 239
   },
278 240
   methods: {
@@ -386,6 +348,7 @@ export default {
386 348
          if(response.data.state == 1){
387 349
            var order =  response.data.data.order
388 350
            var list = response.data.data.orderPrint
351
+           //this.drugTypeList = response.data.data.drugTypeList
389 352
            for(let i=0;i<list.length;i++){
390 353
              list[i].child = []
391 354
             for(let j=0;j<order.length;j++){
@@ -436,15 +399,16 @@ export default {
436 399
     },
437 400
     exportList(){
438 401
        for(let i=0;i<this.tableDataList.length;i++){
439
-          if(this.tableDataList[i].drug_type == 1){
440
-            this.tableDataList[i].drug_type == "西药"
441
-          }
442
-          if(this.tableDataList[i].drug_type == 2){
443
-            this.tableDataList[i].drug_type == "草药"
444
-          }
445
-         if(this.tableDataList[i].drug_type == 3){
446
-            this.tableDataList[i].drug_type == "成药"
447
-          }
402
+        //   if(this.tableDataList[i].drug_type == 1){
403
+        //     this.tableDataList[i].drug_type == "西药"
404
+        //   }
405
+        //   if(this.tableDataList[i].drug_type == 2){
406
+        //     this.tableDataList[i].drug_type == "草药"
407
+        //   }
408
+        //  if(this.tableDataList[i].drug_type == 3){
409
+        //     this.tableDataList[i].drug_type == "成药"
410
+        //   }
411
+          this.tableList[i].drug_type = this.getTypeList(scope.row.drug_type)
448 412
           this.tableDataList[i].index = i+1
449 413
           this.tableDataList[i].unit = this.tableDataList[i].dose + this.tableDataList[i].dose_unit + "*"+this.tableDataList[i].min_number + this.tableDataList[i].min_unit+"/"+this.tableDataList[i].max_unit
450 414
           this.tableDataList[i].user_name = this.getAdminUser(this.tableDataList[i].creater)
@@ -516,7 +480,16 @@ export default {
516 480
          }
517 481
       }
518 482
       return total
519
-    }
483
+    },
484
+    getTypeList(id){
485
+      var name = ""
486
+      for(let i=0;i<this.drugTypeList.length;i++){
487
+        if(id == this.drugTypeList[i].value){
488
+          name = this.drugTypeList[i].name
489
+        }
490
+      }
491
+      return name
492
+    } 
520 493
   }
521 494
 };
522 495
 </script>

+ 15 - 51
src/xt_pages/stock/drugs/components/drugInOrder.vue Dosyayı Görüntüle

@@ -73,46 +73,6 @@
73 73
       </div>
74 74
     </div>
75 75
 
76
-    
77
-
78
-    <!-- <div class="cell clearfix">
79
-      <label class="title"><span class="name">单据类型</span> : </label>
80
-      <el-select
81
-        size="small"
82
-        v-model="order_type"
83
-        clearable
84
-        placeholder="单据类型"
85
-        @change="changeType"
86
-      >
87
-        <el-option
88
-          v-for="item in orderTypeArr"
89
-          :key="item.value"
90
-          :label="item.label"
91
-          :value="item.value"
92
-        >
93
-        </el-option>
94
-      </el-select>
95
-    </div> -->
96
-
97
-    <!-- <div class="cell clearfix">
98
-      <label class="title"><span class="name">其它</span> : </label>
99
-      <el-select
100
-        size="small"
101
-        v-model="manufacturer_id"
102
-        clearable
103
-        placeholder="厂商"
104
-        @change="changeManufacturer"
105
-      >
106
-        <el-option
107
-          v-for="item in manufacturer"
108
-          :key="item.id"
109
-          :label="item.manufacturer_name"
110
-          :value="item.id"
111
-        >
112
-        </el-option>
113
-      </el-select>
114
-    </div> -->
115
-
116 76
     <el-row :gutter="12" style="margin-top: 10px">
117 77
       <el-table
118 78
         :data="cancelStockDate"
@@ -138,6 +98,7 @@
138 98
             <span v-if="scope.row.drug_type == 1">西药</span>
139 99
             <span v-if="scope.row.drug_type == 2">草药</span>
140 100
             <span v-if="scope.row.drug_type == 3">成药</span>
101
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
141 102
           </template>
142 103
         </el-table-column>
143 104
 
@@ -276,6 +237,7 @@ export default {
276 237
       dealer: [],
277 238
       tableList:[],
278 239
       tabelePrintList:[],
240
+      drugTypeList:[],
279 241
     };
280 242
   },
281 243
   methods: {
@@ -384,6 +346,9 @@ export default {
384 346
       getDrugIndetail(params).then(response=>{
385 347
         if(response.data.state == 1){
386 348
           var drugInOrder = response.data.data.detail
349
+          var drugTypeParent = response.data.data.drugTypeParent
350
+          console.log("药品类型",drugTypeParent)
351
+        //  this.drugTypeList = drugTypeParent
387 352
           var total_price = 0
388 353
           for(let i=0;i<drugInOrder.length;i++){
389 354
              drugInOrder[i].specification_name  = drugInOrder[i].dose + drugInOrder[i].dose_unit + "*" + drugInOrder[i].min_number +  drugInOrder[i].min_unit + "/" + drugInOrder[i].max_unit
@@ -523,16 +488,7 @@ export default {
523 488
        for(let i=0;i<newArr.length;i++){
524 489
           newArr.specification_name = ""
525 490
           newArr.index = i+1
526
-          if(newArr[i].drug_type == 1){
527
-             newArr[i].drugtype = "西药"
528
-          }
529
-          if(newArr[i].drug_type == 2){
530
-             newArr[i].drugtype = "草药"
531
-          }
532
-          if(newArr[i].drug_type == 3){
533
-             newArr[i].drugtype = "成药"
534
-          }
535
-        
491
+         newArr[i].drugtype = this.getTypeList(newArr[i].drug_type)
536 492
          newArr[i].specification_name = newArr[i].dose + newArr[i].dose_unit +"*" + newArr[i].min_number + newArr[i].min_unit +  "/" + newArr[i].max_unit
537 493
 
538 494
          newArr[i].time = this.getTime(newArr[i].ctime)
@@ -553,7 +509,15 @@ export default {
553 509
         })
554 510
 
555 511
      },
556
-    
512
+    getTypeList(id){
513
+      var name = ""
514
+      for(let i=0;i<this.drugTypeList.length;i++){
515
+        if(id == this.drugTypeList[i].value){
516
+           name = this.drugTypeList[i].name
517
+        }
518
+      }
519
+      return name
520
+    }
557 521
   }
558 522
 };
559 523
 </script>

+ 15 - 9
src/xt_pages/stock/drugs/components/drugOutDetail.vue Dosyayı Görüntüle

@@ -136,6 +136,7 @@
136 136
             <span v-if="scope.row.drug_type == 1">西药</span>
137 137
             <span v-if="scope.row.drug_type == 2">草药</span>
138 138
             <span v-if="scope.row.drug_type == 3">成药</span>
139
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
139 140
           </template>
140 141
         </el-table-column>
141 142
 
@@ -285,6 +286,7 @@ export default {
285 286
       drugList:[],
286 287
       tablePrint:[],
287 288
       org_id:0,
289
+      drugTypeList:[],
288 290
     };
289 291
   },
290 292
   methods: {
@@ -441,6 +443,8 @@ export default {
441 443
           for(let i=0;i<order.length;i++){
442 444
             order[i].total_price = order[i].total_price.toFixed(2)
443 445
           }
446
+        //  this.drugTypeList = response.data.data.drugTypeList
447
+          
444 448
           this.tableData = order
445 449
            let objInfo = {}
446 450
           order.forEach((item,index)=>{
@@ -558,15 +562,8 @@ export default {
558 562
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','time','user_name','price','count','total_price']
559 563
        for(let i=0;i<this.tableData.length;i++){
560 564
          this.tableData[i].index = i+1
561
-         if(this.tableData[i].drug_type == 1){
562
-            this.tableData[i].drugtype = "西药"
563
-         }
564
-         if(this.tableData[i].drug_type == 2){
565
-            this.tableData[i].drugtype = "草药"
566
-         }
567
-         if(this.tableData[i].drug_type == 3){
568
-            this.tableData[i].drugtype = "成药"
569
-         }
565
+   
566
+        this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
570 567
         this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
571 568
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
572 569
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
@@ -744,6 +741,15 @@ export default {
744 741
         }
745 742
         return (count*price)
746 743
       },
744
+      getTypeList(id){
745
+        var name = ""
746
+        for(let i=0;i<this.drugTypeList.length;i++){
747
+          if(id == this.drugTypeList[i].value){
748
+            name = this.drugTypeList[i].name
749
+          }
750
+        }
751
+        return name
752
+      } 
747 753
   }
748 754
 };
749 755
 </script>

+ 3 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Dosyayı Görüntüle

@@ -41,6 +41,7 @@
41 41
           style="width: 100%"
42 42
           border
43 43
           max-height="450"
44
+          v-loading="listLoading"
44 45
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
45 46
         >
46 47
           <el-table-column align="center" width="200" fixed="left">
@@ -329,7 +330,7 @@
329 330
         warehousing_time: '',
330 331
         adminUserOptions: null,
331 332
         currentIndex: 0,
332
-
333
+        listLoading: false,
333 334
         recordInfo: {
334 335
           recordData: [],
335 336
           stock_in_code: '',
@@ -717,7 +718,7 @@
717 718
                 return false
718 719
               } else {
719 720
                 this.$message.success('入库成功')
720
-
721
+                this.listLoading = false
721 722
                 this.$router.back(-1)
722 723
               }
723 724
             })

+ 4 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Dosyayı Görüntüle

@@ -106,6 +106,7 @@
106 106
           style="width: 100%"
107 107
           border
108 108
           max-height="450"
109
+          v-loading="listLoading"
109 110
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
110 111
         >
111 112
           <el-table-column align="center" width="200">
@@ -442,6 +443,7 @@ export default {
442 443
       manufacturerList:[],
443 444
       dealerList:[],
444 445
       org_id:0,
446
+      listLoading:false,
445 447
     };
446 448
   },
447 449
   methods: {
@@ -700,10 +702,11 @@ export default {
700 702
           ).then(response => {
701 703
             if (response.data.state == 0) {
702 704
               this.$message.error(response.data.msg);
705
+              this.listLoading = false
703 706
               return false;
704 707
             } else {
705 708
               this.$message.success("入库成功");
706
-
709
+              this.listLoading = false
707 710
               this.$router.back(-1);
708 711
             }
709 712
           });

+ 15 - 36
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Dosyayı Görüntüle

@@ -26,15 +26,6 @@
26 26
 
27 27
     <div class="app-container">
28 28
   
29
-
30
-      <!-- <drugs-stock-dialog
31
-        ref="dialog" :propForm="propForm"
32
-        :visibility="isVisibility"
33
-        v-on:dialog-comfirm="comfirm"
34
-        v-on:dialog-cancle="cancle"
35
-      ></drugs-stock-dialog> -->
36
-
37
-
38 29
       <div class="cell clearfix">
39 30
         <label class="title"><span class="name">出库时间</span> : </label>
40 31
         <el-date-picker
@@ -54,6 +45,7 @@
54 45
     
55 46
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
56 47
         <el-table
48
+           v-loading="listLoading"
57 49
           :data="recordInfo.recordData"
58 50
           :class="signAndWeighBoxPatients"
59 51
           style="width: 100%"
@@ -116,23 +108,7 @@
116 108
               </el-form-item>
117 109
             </template>
118 110
           </el-table-column>
119
-          <!-- <el-table-column align="center" width="150">
120
-            <template slot="header" slot-scope="scope" >
121
-                  <span>批号</span>
122
-              </template>
123
-                <template slot-scope="scope">
124
-                  <el-form-item style="padding-top: 20px">
125
-                    <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" @change="changeBatchNumber(scope.row)">
126
-                      <el-option
127
-                        v-for="(item,index) in numberList"
128
-                        :key="index"
129
-                        :label="item.batch_number"
130
-                        :value="item.id">
131
-                      </el-option>
132
-                    </el-select>
133
-                  </el-form-item>
134
-              </template>
135
-          </el-table-column> -->
111
+          
136 112
           <el-table-column width="200" align="center">
137 113
             <template slot="header" slot-scope="scope">
138 114
               <span>出库数量<span style="color: red">*</span></span>
@@ -368,7 +344,8 @@ export default {
368 344
       drugTypeList:[],
369 345
       totalPrice:0,
370 346
       unitList:[],
371
-      numberList:[]
347
+      numberList:[],
348
+      listLoading: false,
372 349
     };
373 350
   },
374 351
   methods: {
@@ -575,8 +552,12 @@ export default {
575 552
           const params = {
576 553
             stockOut: this.recordInfo.recordData
577 554
           };
578
-          console.log("params222222",params)
579
-        
555
+          const loading = this.$loading({
556
+            lock: true,
557
+            text: 'Loading',
558
+            spinner: 'el-icon-loading',
559
+            background: 'rgba(0, 0, 0, 0.7)'
560
+          })
580 561
           postDrugWarehouseOut(
581 562
             params,
582 563
             this.warehouse_out_time,
@@ -586,26 +567,24 @@ export default {
586 567
           ).then(response => {
587 568
             if (response.data.state == 0) {
588 569
               this.$message.error("库存不足");
570
+              loading.close()
589 571
               return false;
590 572
             } else {
573
+              this.loading = false
574
+              loading.close()
591 575
               var msg = response.data.data.msg
592 576
               var drug_name =  response.data.data.drug_name
593
-              console.log("drug_name",drug_name)
594 577
               var dose = response.data.data.dose
595
-              console.log("dose",dose)
596 578
               var dose_unit = response.data.data.dose_unit
597
-              console.log("dose_unit",dose_unit)
598 579
               var min_number = response.data.data.min_number
599
-              console.log("min_number",min_number)
600 580
               var min_unit =  response.data.data.min_unit
601
-              console.log("min_unit",min_unit)
602 581
               var max_unit =  response.data.data.max_unit
603
-              console.log("max_unit",max_unit)
604 582
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
605
-              console.log("str22222222",str)
583
+      
606 584
               if(msg == 1){
607 585
                 this.$message.error(str + "库存不足")
608 586
               }else{
587
+                loading.close()
609 588
                 this.$message.success("出库成功");
610 589
                 this.recordInfo.recordData = [];
611 590
                 this.$router.back(-1);

+ 10 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Dosyayı Görüntüle

@@ -583,6 +583,12 @@
583 583
                }
584 584
 
585 585
             }
586
+            const loading = this.$loading({
587
+              lock: true,
588
+              text: 'Loading',
589
+              spinner: 'el-icon-loading',
590
+              background: 'rgba(0, 0, 0, 0.7)'
591
+            })
586 592
             const params = {
587 593
               'stockOut': this.recordInfo.recordData
588 594
             }
@@ -591,6 +597,7 @@
591 597
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
592 598
               if (response.data.state == 0) {
593 599
                 this.$message.error(response.data.msg)
600
+                loading.close()
594 601
                 return false
595 602
               } else {
596 603
                 var msg = response.data.data.msg
@@ -601,13 +608,15 @@
601 608
                 var min_unit =  response.data.data.min_unit
602 609
                 var max_unit =  response.data.data.max_unit
603 610
                 var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
604
-               
611
+               loading.close()  
605 612
               if(msg == 1){
606 613
                 this.$message.error(str + "库存不足,请入库")
614
+                loading.close()
607 615
               }else{
608 616
                 this.$message.success("出库成功");
609 617
                 this.recordInfo.recordData = [];
610 618
                 this.$router.back(-1);
619
+                loading.close()
611 620
               }
612 621
               }
613 622
             })

+ 8 - 1
src/xt_pages/stock/stockInOrderAdd.vue Dosyayı Görüntüle

@@ -676,6 +676,12 @@
676 676
                  }
677 677
               }
678 678
             }
679
+            const loading = this.$loading({
680
+              lock: true,
681
+              text: 'Loading',
682
+              spinner: 'el-icon-loading',
683
+              background: 'rgba(0, 0, 0, 0.7)'
684
+            })
679 685
             const params = {
680 686
               'stockIn': this.recordInfo.recordData
681 687
             }
@@ -684,10 +690,11 @@
684 690
             postWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
685 691
               if (response.data.state == 0) {
686 692
                 this.$message.error(response.data.msg)
693
+                loading.close()
687 694
                 return false
688 695
               } else {
696
+                loading.close()
689 697
                 this.$message.success('入库成功')
690
-
691 698
                 this.$router.back(-1)
692 699
               }
693 700
             })

+ 8 - 2
src/xt_pages/stock/stockInOrderEdit.vue Dosyayı Görüntüle

@@ -667,7 +667,12 @@ export default {
667 667
             stockIn: this.recordInfo.recordData
668 668
           };
669 669
           console.log("params2222",params)
670
-          
670
+          const loading = this.$loading({
671
+            lock: true,
672
+            text: 'Loading',
673
+            spinner: 'el-icon-loading',
674
+            background: 'rgba(0, 0, 0, 0.7)'
675
+          })
671 676
           EditWarehouse(
672 677
             params,
673 678
             this.warehousing_time,
@@ -678,10 +683,11 @@ export default {
678 683
           ).then(response => {
679 684
             if (response.data.state == 0) {
680 685
               this.$message.error(response.data.msg);
686
+              loading.close()
681 687
               return false;
682 688
             } else {
689
+              loading.close()
683 690
               this.$message.success("入库成功");
684
-
685 691
               this.$router.back(-1);
686 692
             }
687 693
           });

+ 9 - 2
src/xt_pages/stock/stockOutOrderAdd.vue Dosyayı Görüntüle

@@ -594,7 +594,12 @@ export default {
594 594
           const params = {
595 595
             stockOut: this.recordInfo.recordData
596 596
           };
597
- 
597
+          const loading = this.$loading({
598
+            lock: true,
599
+            text: 'Loading',
600
+            spinner: 'el-icon-loading',
601
+            background: 'rgba(0, 0, 0, 0.7)'
602
+          })
598 603
           postWarehouseOut(
599 604
             params,
600 605
             this.warehouse_out_time,
@@ -604,6 +609,7 @@ export default {
604 609
           ).then(response => {
605 610
             if (response.data.state == 0) {
606 611
               this.$message.error("库存不足")
612
+              loading.close()
607 613
               return false;
608 614
             } else {
609 615
                var msg = response.data.data.msg
@@ -614,12 +620,13 @@ export default {
614 620
                if(msg == 1){
615 621
                   this.$message.error(str)
616 622
                }
623
+              
617 624
                if(msg == 2){
618 625
                  this.$message.success("出库成功");
619 626
                  this.recordInfo.recordData = [];
620 627
                  this.$router.back(-1);
621 628
                }
622
-             
629
+               loading.close()
623 630
              
624 631
             }
625 632
           });

+ 10 - 2
src/xt_pages/stock/stockOutOrderEdit.vue Dosyayı Görüntüle

@@ -523,10 +523,10 @@
523 523
         this.$router.go(-1)
524 524
       },
525 525
        submit() {
526
+       
526 527
         this.$refs['tableForm'].validate((valid) => {
527 528
           if (valid) {
528 529
             const array = this.recordInfo.recordData
529
-            console.log("2332232323232323",array)
530 530
             for (let i = 0; i < array.length; i++) {
531 531
               if (array[i].good_type_id == 0) {
532 532
                 this.$message.error('商品类型不能为空')
@@ -566,6 +566,12 @@
566 566
                }
567 567
              }
568 568
             }
569
+              const loading = this.$loading({
570
+                lock: true,
571
+                text: 'Loading',
572
+                spinner: 'el-icon-loading',
573
+                background: 'rgba(0, 0, 0, 0.7)'
574
+            })
569 575
             const params = {
570 576
               'warehouse_out_time':this.warehouse_out_time,
571 577
               'stockOut': this.recordInfo.recordData,
@@ -577,11 +583,13 @@
577 583
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
578 584
               if (response.data.state == 0) {
579 585
                 this.$message.error(response.data.msg)
586
+                loading.close()
580 587
                 return false
581 588
               } else {
582 589
                 if(response.data.data.msg == 1){
583 590
                   this.$message.success('保存成功')
584 591
                   this.$router.back(-1)
592
+                   loading.close()
585 593
                 }
586 594
 
587 595
                 if(response.data.data.msg == 5){
@@ -600,7 +608,7 @@
600 608
                 if(response.data.data.msg == 6){
601 609
                   this.$message.error("该耗材的退库数量大于入库数量,无法出库,请新增出库另一个批次")
602 610
                 }
603
-                
611
+                loading.close()
604 612
               }
605 613
             })
606 614
           } else {

+ 27 - 22
src/xt_pages/stock/stockPrint.vue Dosyayı Görüntüle

@@ -41,19 +41,29 @@
41 41
                                    <td>
42 42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
43 43
                                    </td>
44
-                                   <td>
44
+                                   <td v-if="end_time == ''">
45 45
                                       <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245 || org_id == 9779">
46 46
                                         <span>
47
-                                          {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info) }}
48
-                                          </span>
47
+                                          {{getWareInfo(item.xt_warehouse_info) - getOverFlushInfo(item.xt_warehouse_info) + getCancelSotckInfo(item.cancel_stock_info)}}
49 48
                                         </span>
50
-                                        <span v-else>{{getAutoCount(item.id) + getOutCount(item.id)}} </span>
49
+                                      </span>
50
+                                      <span v-else>{{getAutoCount(item.id) + getOutCount(item.id)}} </span>
51
+                                   </td>
52
+
53
+                                   <td v-if="end_time!=''">
54
+                                    {{getAutoCount(item.id) + getOutCount(item.id)}} 
51 55
                                    </td>
52 56
                                   
53
-                                   <td>
54
-                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">{{getOverFlushInfo(item.xt_warehouse_info)}}</span>
55
-                                     <span v-else>{{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}</span>
56
-                                    
57
+                                   <td v-if="end_time == ''">
58
+                                     <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779">
59
+                                        {{getOverFlushInfo(item.xt_warehouse_info)}}
60
+                                     </span>
61
+                                     <span v-else>
62
+                                       {{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}
63
+                                     </span>
64
+                                   </td>
65
+                                   <td v-if="end_time!=''">
66
+                                    {{getWareInfo(item.xt_warehouse_info) - getAutoCount(item.id) - getOutCount(item.id) + getCancelCount(item.id) }}
57 67
                                    </td>
58 68
                                 </tr>
59 69
                             </tbody>
@@ -120,18 +130,17 @@ export default {
120 130
         const params = {
121 131
           page: this.page,
122 132
           limit: this.limit,
123
-          keywords: this.keywords,
133
+          keywords:this.keyword,
124 134
           start_time:this.start_time,
125 135
           end_time:this.end_time,
126 136
           type:this.type_name,
127 137
         }
138
+        console.log("打印",params)
128 139
         getAllStockList(params).then(response=>{
129 140
          if(response.data.state == 1){
130 141
            var list = response.data.data.list
131
-          //  console.log("list22222",list)
132 142
            this.tableList = list
133 143
            var total = response.data.data.total
134
-          //  console.log("total",total)
135 144
            this.total = total
136 145
            var manufacturerList = response.data.data.manufacturerList
137 146
            this.manufacturerList = manufacturerList
@@ -198,23 +207,20 @@ export default {
198 207
      },
199 208
      getStockDrugCount(){
200 209
         var params ={
201
-          keywords: this.keywords,
210
+          keywords: this.keyword,
202 211
           start_time:this.start_time,
203 212
           end_time:this.end_time,
204 213
         }
214
+      console.log("打印按钮",params)
205 215
       getStockDrugCount(params).then(response=>{
206 216
          if(response.data.state == 1){
207 217
            var count = response.data.data.count
208
-          //  console.log("入库统计",count)
209 218
            this.countList = count
210 219
            var outlist = response.data.data.outList
211
-          //  console.log("出库数量",outlist)
212 220
            this.outCountList = outlist
213 221
            var autoCount = response.data.data.autoCount
214
-          //  console.log("autoCount",autoCount)
215 222
            this.autoCountList = autoCount
216 223
            var totalCount = response.data.data.totalCount
217
-          //  console.log("totalcount",totalCount)
218 224
            this.cancelCountList = totalCount
219 225
          }
220 226
       })
@@ -304,33 +310,32 @@ export default {
304 310
         total += arr[i].stock_count
305 311
       }
306 312
      }
313
+     console.log("totla23323232",total)
307 314
      return total
308 315
    },
309 316
    getCancelSotckInfo(arr){
310
-     console.log("2332323232322332",arr)
311 317
      var cancle_toal = 0
312 318
      if(arr.length >0){
313 319
       for(let z=0;z<arr.length;z++){
314 320
         cancle_toal += arr[z].count
315 321
       }
316 322
      }
317
-     console.log("total",cancle_toal)
318 323
      return cancle_toal
319 324
    }
320 325
    },
321 326
     created(){
322 327
       this.org_id =  this.$store.getters.xt_user.org_id
323
-      console.log("机构ID232323323233232",this.org_id)
328
+     
324 329
       var starttime =  this.$route.query.start_time
325 330
       this.start_time = starttime
326 331
       var endtime =  this.$route.query.end_time
327 332
       this.end_time = endtime
328
-      var type_name = this.$route.query.type_name
333
+      var type_name = parseInt(this.$route.query.type_name)
329 334
       this.type_name = type_name
330 335
       var keyword = this.$route.query.keyword
331 336
       this.keyword = keyword
332
-      this.page = this.$route.query.page
333
-      this.limit = this.$route.query.limit
337
+      this.page = parseInt(this.$route.query.page)
338
+      this.limit = parseInt(this.$route.query.limit)
334 339
       this.getlist()
335 340
       this.GetAllGoodType()
336 341
       this.getStockDrugCount()

+ 13 - 6
src/xt_pages/stock/stockQuery.vue Dosyayı Görüntüle

@@ -125,7 +125,9 @@
125 125
 
126 126
        <el-table-column label="剩余库存量" align="center" v-if="showThree">
127 127
          <template slot-scope="scope">
128
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
128
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9779 || org_id == 10106 || org_id == 9504 || org_id ==  10215 || org_id == 10088 || org_id == 10191">
129
+            {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
130
+          </span>
129 131
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
130 132
          </template>
131 133
        </el-table-column>
@@ -431,19 +433,23 @@ export default {
431 433
         end_time:this.end_time,
432 434
         type:this.type_name,
433 435
       };
436
+     console.log("params232322323",params)
434 437
     getAllStockList(params).then(response=>{
435 438
          if(response.data.state == 1){
436 439
          
437 440
           if(this.end_time == ""){
438
-             this.showOne = true
439 441
              this.showTwo = false
440
-             this.showThree = true
441 442
              this.showFour = false
443
+             this.showThree = true
444
+             this.showOne = true
445
+            
446
+            
442 447
           }
443 448
           if(this.end_time !=""){
444
-            this.showOne = false
445
-            this.showTwo = true
446 449
             this.showThree = false
450
+            this.showTwo = true
451
+            console.log("hh3223322323",this.showTwo)
452
+            this.showOne = false
447 453
             this.showFour = true
448 454
           }
449 455
           var list = response.data.data.list
@@ -495,10 +501,11 @@ export default {
495 501
     },
496 502
     getStockDrugCount(){
497 503
         var params ={
498
-           keywords: this.$route.query.keywords,
504
+           keywords: this.keywords,
499 505
            start_time:this.start_time,
500 506
            end_time:this.end_time,
501 507
         }
508
+      console.log("参数23233223",params)
502 509
       getStockDrugCount(params).then(response=>{
503 510
          if(response.data.state == 1){
504 511
            var outlist = response.data.data.outList

+ 2 - 1
src/xt_pages/user/components/PatientDetail.vue Dosyayı Görüntüle

@@ -955,7 +955,8 @@
955 955
               <div class="proj">
956 956
                 <span class="proj_title">日期:</span>
957 957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
958
-                {{printDate}}
958
+                <span v-if="org_id ==3907 || org_id == 9671">{{ getTime(patientPrint.created_time) }}</span>
959
+                <span v-else>{{printDate}}</span> 
959 960
               </div>
960 961
               <div class="proj"><span class="proj_title">医生签名:</span></div>
961 962
             </div>

+ 6 - 0
src/xt_pages/user/components/PatientSidebar.vue Dosyayı Görüntüle

@@ -106,6 +106,10 @@ export default {
106 106
               name: '1-9',
107 107
               label: '阶段小结'
108 108
             },
109
+            // {
110
+            //   name: '1-10',
111
+            //   label: '住院小结'
112
+            // },
109 113
             {
110 114
               name: '1-3',
111 115
               label: '检验检查'
@@ -189,6 +193,8 @@ export default {
189 193
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
190 194
       }else if (name == '1-9'){
191 195
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
196
+      }else if(name == '1-10'){
197
+        this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
192 198
       }
193 199
     },
194 200
     changePatient(value) {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1689 - 0
src/xt_pages/user/hospitalSummary.vue