瀏覽代碼

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

csx 3 年之前
父節點
當前提交
833cb6f469
共有 42 個文件被更改,包括 2932 次插入402 次删除
  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 查看文件

255
     pastInquiries: '既往查询',
255
     pastInquiries: '既往查询',
256
 
256
 
257
     prescriptionTemplate: '处方模版',
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
   navbar: {
266
   navbar: {
267
     logOut: '退出登录',
267
     logOut: '退出登录',
368
     nursing_record: '透析护理记录',
368
     nursing_record: '透析护理记录',
369
     special_record: '特殊记录',
369
     special_record: '特殊记录',
370
     template_summary: '治疗小结',
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 查看文件

160
       noCache: true
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
     path: '/patients/course',
175
     path: '/patients/course',
165
     component: () => import('@/xt_pages/user/courseOfDisease'),
176
     component: () => import('@/xt_pages/user/courseOfDisease'),

+ 5 - 1
src/xt_pages/data/template.vue 查看文件

47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
48
         { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
48
         { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
49
         { label: this.$t("data_config.template_summary"), key: "template_summary" },
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
       activeName: "education",
56
       activeName: "education",
53
       createdTimes: 0
57
       createdTimes: 0

+ 3 - 4
src/xt_pages/dialysis/PatientBox.vue 查看文件

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

+ 8 - 7
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

109
       <ul>
109
       <ul>
110
         <li v-if="isShow('目标超滤量')">
110
         <li v-if="isShow('目标超滤量')">
111
           <label>目标超滤量 : </label>
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
         </li>
115
         </li>
118
         <li v-if="isShow('葡萄糖')">
116
         <li v-if="isShow('葡萄糖')">
119
           <label>葡萄糖 : </label>
117
           <label>葡萄糖 : </label>
433
   },
431
   },
434
   computed: {
432
   computed: {
435
     note: function () {
433
     note: function () {
434
+      // console.log("世界人民呃232323223232323323223",this.prescription)
436
       return this.getValueStr('remark', 'remark')
435
       return this.getValueStr('remark', 'remark')
437
     },
436
     },
438
     target_ultrafiltration: function() {
437
     target_ultrafiltration: function() {
712
     displace_speed:function(){
711
     displace_speed:function(){
713
       return this.getValueStr('displace_speed','displace_speed')
712
       return this.getValueStr('displace_speed','displace_speed')
714
     },
713
     },
715
-
714
+  
716
   },
715
   },
717
   created() {
716
   created() {
718
-    console.log("中国出口233232323233223",this.prescription)
717
+   
719
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
718
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
720
     var map = {}
719
     var map = {}
721
     for (let index = 0; index < perfusion_apparatus.length; index++) {
720
     for (let index = 0; index < perfusion_apparatus.length; index++) {
736
   },
735
   },
737
   methods: {
736
   methods: {
738
     getValueStr(pkey, skey) {
737
     getValueStr(pkey, skey) {
738
+      
739
       if (
739
       if (
740
         (this.prescription == null || this.prescription.id == '') &&
740
         (this.prescription == null || this.prescription.id == '') &&
741
         (this.solution == null || this.solution.id == '')
741
         (this.solution == null || this.solution.id == '')
779
        return name
779
        return name
780
     }
780
     }
781
   }
781
   }
782
+  
782
 }
783
 }
783
 </script>
784
 </script>
784
 
785
 

+ 1 - 2
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

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

+ 2 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue 查看文件

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

+ 6 - 8
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

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

+ 1 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

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

+ 25 - 78
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

1384
         this.InnerDialogProps.visibility = true
1384
         this.InnerDialogProps.visibility = true
1385
         switch (val) {
1385
         switch (val) {
1386
           case '5': // 透析器/灌流器
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
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1388
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1423
             this.InnerDialogProps.titles = '透析器/灌流器'
1389
             this.InnerDialogProps.titles = '透析器/灌流器'
1424
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1390
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1957
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1923
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1958
       },
1924
       },
1959
       show(pre, schedual, last, his_is_open) {
1925
       show(pre, schedual, last, his_is_open) {
1960
-        console.log('pre222222', this.predialysis)
1926
+        
1961
         if (pre != undefined) {
1927
         if (pre != undefined) {
1962
           if (pre.oxygen_uptake == 1) {
1928
           if (pre.oxygen_uptake == 1) {
1963
             this.oxygenShow = true
1929
             this.oxygenShow = true
2071
         if (pre.id > 0) {
2037
         if (pre.id > 0) {
2072
           this.dialysisPrescription.mode_id = pre.mode_id
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
         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) {
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
           this.zhiShow = true
2043
           this.zhiShow = true
2078
           this.huShow = true
2044
           this.huShow = true
2107
         } else {
2073
         } else {
2108
           last_weight_after = this.last_record.weight_after
2074
           last_weight_after = this.last_record.weight_after
2109
         }
2075
         }
2110
-
2076
+        console.log("last2323232323232332",last)
2111
         if (this.predialysis == null || this.predialysis.id == 0) {
2077
         if (this.predialysis == null || this.predialysis.id == 0) {
2112
           if (last != null) {
2078
           if (last != null) {
2113
-
2079
+            
2114
             this.dialysisPrescription.niprocart = last.niprocart
2080
             this.dialysisPrescription.niprocart = last.niprocart
2115
             this.dialysisPrescription.jms = last.jms
2081
             this.dialysisPrescription.jms = last.jms
2116
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
2082
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
2125
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2091
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2126
             this.dialysisPrescription.package = last.package
2092
             this.dialysisPrescription.package = last.package
2127
             this.dialysisPrescription.a_liquid = last.a_liquid
2093
             this.dialysisPrescription.a_liquid = last.a_liquid
2094
+            
2128
 
2095
 
2129
             weight_before = 0
2096
             weight_before = 0
2130
 
2097
 
2134
           weight_before = this.predialysis.weight_before
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
         if (weight_before > 0 && last_weight_after > 0) {
2105
         if (weight_before > 0 && last_weight_after > 0) {
2164
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
2106
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
2206
           this.anticoagulant.weichi_unit = 'ml'
2148
           this.anticoagulant.weichi_unit = 'ml'
2207
           this.anticoagulant.zongliang_unit = 'ml'
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
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2151
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2214
           this.dialysisPrescription.anticoagulant_zongliang = ""
2152
           this.dialysisPrescription.anticoagulant_zongliang = ""
2215
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
2153
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
2218
 
2156
 
2219
       },
2157
       },
2220
       handleCommit: function() {
2158
       handleCommit: function() {
2159
+        console.log("触发了么2323323233223")
2221
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2222
           this.dialysisPrescription.anticoagulant = 3
2161
           this.dialysisPrescription.anticoagulant = 3
2223
         }
2162
         }
2257
             ParamsQuery['patient'] = this.patient.id
2196
             ParamsQuery['patient'] = this.patient.id
2258
             ParamsQuery['record_date'] = this.record_date
2197
             ParamsQuery['record_date'] = this.record_date
2259
             ParamsQuery['mode'] = '1'
2198
             ParamsQuery['mode'] = '1'
2260
-
2199
+            ParamsQuery['patient_id'] = this.patient.id
2261
             console.log('第一', ParamsQuery)
2200
             console.log('第一', ParamsQuery)
2262
             postPrescription(ParamsQuery).then(response => {
2201
             postPrescription(ParamsQuery).then(response => {
2263
               if (response.data.state == 0) {
2202
               if (response.data.state == 0) {
2300
               ParamsQuery['patient'] = this.patient.id
2239
               ParamsQuery['patient'] = this.patient.id
2301
               ParamsQuery['record_date'] = this.record_date
2240
               ParamsQuery['record_date'] = this.record_date
2302
               ParamsQuery['mode'] = '1'
2241
               ParamsQuery['mode'] = '1'
2242
+              ParamsQuery['patient_id'] = this.patient.id
2303
                console.log('第二')
2243
                console.log('第二')
2304
               postPrescription(ParamsQuery).then(response => {
2244
               postPrescription(ParamsQuery).then(response => {
2305
                 if (response.data.state == 0) {
2245
                 if (response.data.state == 0) {
2347
               ParamsQuery['patient'] = this.patient.id
2287
               ParamsQuery['patient'] = this.patient.id
2348
               ParamsQuery['record_date'] = this.record_date
2288
               ParamsQuery['record_date'] = this.record_date
2349
               ParamsQuery['mode'] = '1'
2289
               ParamsQuery['mode'] = '1'
2290
+              ParamsQuery['patient_id'] = this.patient.id
2350
               console.log('第三')
2291
               console.log('第三')
2351
-
2292
+            
2352
               postPrescription(ParamsQuery).then(response => {
2293
               postPrescription(ParamsQuery).then(response => {
2353
                 if (response.data.state == 0) {
2294
                 if (response.data.state == 0) {
2354
                   this.$message.error(response.data.msg)
2295
                   this.$message.error(response.data.msg)
2420
               ParamsQuery['record_date'] = this.record_date
2361
               ParamsQuery['record_date'] = this.record_date
2421
               // console.log(this.prescription);
2362
               // console.log(this.prescription);
2422
               console.log('第四')
2363
               console.log('第四')
2364
+              ParamsQuery['patient_id'] = this.patient.id
2423
               postPrescription(ParamsQuery).then(response => {
2365
               postPrescription(ParamsQuery).then(response => {
2424
                 if (response.data.state == 0) {
2366
                 if (response.data.state == 0) {
2425
                   this.$message.error(response.data.msg)
2367
                   this.$message.error(response.data.msg)
2461
               ParamsQuery['patient'] = this.patient.id
2403
               ParamsQuery['patient'] = this.patient.id
2462
               ParamsQuery['record_date'] = this.record_date
2404
               ParamsQuery['record_date'] = this.record_date
2463
               ParamsQuery['mode'] = '1'
2405
               ParamsQuery['mode'] = '1'
2406
+              ParamsQuery['patient_id'] = this.patient.id
2464
               console.log('第五')
2407
               console.log('第五')
2465
               postPrescription(ParamsQuery).then(response => {
2408
               postPrescription(ParamsQuery).then(response => {
2466
                 if (response.data.state == 0) {
2409
                 if (response.data.state == 0) {
2504
                 ParamsQuery['record_date'] = this.record_date
2447
                 ParamsQuery['record_date'] = this.record_date
2505
                 ParamsQuery['mode'] = '1'
2448
                 ParamsQuery['mode'] = '1'
2506
                 console.log('第6')
2449
                 console.log('第6')
2450
+                ParamsQuery['patient_id'] = this.patient.id
2507
                 postPrescription(ParamsQuery).then(response => {
2451
                 postPrescription(ParamsQuery).then(response => {
2508
                   if (response.data.state == 0) {
2452
                   if (response.data.state == 0) {
2509
                     this.$message.error(response.data.msg)
2453
                     this.$message.error(response.data.msg)
2552
                 ParamsQuery['record_date'] = this.record_date
2496
                 ParamsQuery['record_date'] = this.record_date
2553
                 ParamsQuery['mode'] = '1'
2497
                 ParamsQuery['mode'] = '1'
2554
                 console.log('第七')
2498
                 console.log('第七')
2499
+                ParamsQuery['patient_id'] = this.patient.id
2555
                 postPrescription(ParamsQuery).then(response => {
2500
                 postPrescription(ParamsQuery).then(response => {
2556
                   if (response.data.state == 0) {
2501
                   if (response.data.state == 0) {
2557
                     this.$message.error(response.data.msg)
2502
                     this.$message.error(response.data.msg)
2621
                 ParamsQuery['patient'] = this.patient.id
2566
                 ParamsQuery['patient'] = this.patient.id
2622
                 ParamsQuery['record_date'] = this.record_date
2567
                 ParamsQuery['record_date'] = this.record_date
2623
                 ParamsQuery['mode'] = '1'
2568
                 ParamsQuery['mode'] = '1'
2569
+                ParamsQuery['patient_id'] = this.patient.id
2624
                 console.log('第八')
2570
                 console.log('第八')
2571
+                
2625
                 postPrescription(ParamsQuery).then(response => {
2572
                 postPrescription(ParamsQuery).then(response => {
2626
                   if (response.data.state == 0) {
2573
                   if (response.data.state == 0) {
2627
                     this.$message.error(response.data.msg)
2574
                     this.$message.error(response.data.msg)
2660
             ParamsQuery['patient'] = this.patient.id
2607
             ParamsQuery['patient'] = this.patient.id
2661
             ParamsQuery['record_date'] = this.record_date
2608
             ParamsQuery['record_date'] = this.record_date
2662
             ParamsQuery['mode'] = '2'
2609
             ParamsQuery['mode'] = '2'
2663
-
2610
+            ParamsQuery['patient_id'] = this.patient.id
2611
+          
2664
             if (
2612
             if (
2665
               this.$store.getters.xt_user.user.id !=
2613
               this.$store.getters.xt_user.user.id !=
2666
               this.dialysisPrescription.creater
2614
               this.dialysisPrescription.creater
2667
             ) {
2615
             ) {
2668
               ParamsQuery['mode'] = '3'
2616
               ParamsQuery['mode'] = '3'
2669
             }
2617
             }
2670
-            console.log('第九')
2618
+            console.log('第九',ParamsQuery)
2671
             postPrescription(ParamsQuery).then(response => {
2619
             postPrescription(ParamsQuery).then(response => {
2672
               if (response.data.state == 0) {
2620
               if (response.data.state == 0) {
2673
                 this.$message.error(response.data.msg)
2621
                 this.$message.error(response.data.msg)
3221
       isShows(name) {
3169
       isShows(name) {
3222
         var filedList = store.getters.xt_user.fileds
3170
         var filedList = store.getters.xt_user.fileds
3223
         for (let i = 0; i < filedList.length; i++) {
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
             return true
3175
             return true
3230
           }
3176
           }
3177
+
3231
         }
3178
         }
3232
         return false
3179
         return false
3233
       },
3180
       },

+ 156 - 59
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

47
         <el-checkbox :label="replacement_total"></el-checkbox>
47
         <el-checkbox :label="replacement_total"></el-checkbox>
48
         <el-checkbox :label="blood_flow_volume"></el-checkbox>
48
         <el-checkbox :label="blood_flow_volume"></el-checkbox>
49
         <el-checkbox :label="dialysate_flow"></el-checkbox>
49
         <el-checkbox :label="dialysate_flow"></el-checkbox>
50
+        <el-checkbox :label="displace_liqui_value"></el-checkbox>
50
      </el-checkbox-group>
51
      </el-checkbox-group>
51
     </el-form>
52
     </el-form>
52
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
53
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
197
         anticoagulant_weichi:"维持:",
198
         anticoagulant_weichi:"维持:",
198
         anticoagulant_zongliang:"总量:",
199
         anticoagulant_zongliang:"总量:",
199
         displace_liqui_part:"置换液:",
200
         displace_liqui_part:"置换液:",
200
-        replacement_total:"置换量:",
201
+        replacement_total:"置换量:",
201
         blood_flow_volume:"处方血流量:",
202
         blood_flow_volume:"处方血流量:",
202
         dialysate_flow:"透析液流量:",
203
         dialysate_flow:"透析液流量:",
203
-        blood_access_part_opera_id:"通路类型:"
204
+        blood_access_part_opera_id:"通路类型:",
205
+        displace_liqui_value:"置换液总量:",
204
       }
206
       }
205
     }, methods: {
207
     }, methods: {
206
       
208
       
222
                   '{y}-{m}-{d} {h}:{i}'
224
                   '{y}-{m}-{d} {h}:{i}'
223
                 ).split(' ')[1]
225
                 ).split(' ')[1]
224
 
226
 
225
-                console.log('真性感')
227
+                
226
             }
228
             }
227
 
229
 
228
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
230
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
235
           if(this.doubleReview.modifier == 0){
237
           if(this.doubleReview.modifier == 0){
236
             this.doubleReview.modifier = ""
238
             this.doubleReview.modifier = ""
237
           }
239
           }
238
-          console.log( this.first_check_time )
239
-          console.log( this.check_time )
240
-
241
-
240
+       
242
         } else {
241
         } else {
243
           var nowDate = new Date()
242
           var nowDate = new Date()
244
           var nowHours = nowDate.getHours()
243
           var nowHours = nowDate.getHours()
245
           var nowMinutes = nowDate.getMinutes()
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
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
248
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
250
           console.log( this.first_check_time )
249
           console.log( this.first_check_time )
251
           console.log( this.check_time )
250
           console.log( this.check_time )
326
            
325
            
327
 
326
 
328
             let doublecheck_resp = response.data.data.doubleCheck
327
             let doublecheck_resp = response.data.data.doubleCheck
329
-            console.log("双核2332322323",doublecheck_resp)
328
+            console.log("处方233232323232232332",this.prescription)
330
             var doubleCheck = this.double_check
329
             var doubleCheck = this.double_check
331
             for (var index in doublecheck_resp) {        
330
             for (var index in doublecheck_resp) {        
332
               this.$set(doubleCheck, index, doublecheck_resp[index])
331
               this.$set(doubleCheck, index, doublecheck_resp[index])
582
       changeBoxOne(val){
581
       changeBoxOne(val){
583
          var arr = []
582
          var arr = []
584
          var str = val.join(';')
583
          var str = val.join(';')
585
-         console.log("strw222222222",str)
584
+        
586
         if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
585
         if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
587
             arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
586
             arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
588
         }
587
         }
633
         }
632
         }
634
 
633
 
635
        if(str.indexOf("置换液")!=-1 && this.prescription!=null){
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
        if(str.indexOf("置换液")!=-1 && this.prescription==null){
638
        if(str.indexOf("置换液")!=-1 && this.prescription==null){
640
            arr.push("置换液:")
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
        if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
650
        if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
663
        if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
662
        if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
664
            arr.push("透析液流量:")
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
         console.log("arr",arr)
671
         console.log("arr",arr)
667
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
672
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
668
         if(val.length>0){
673
         if(val.length>0){
674
       changeBoxTwo(val){
679
       changeBoxTwo(val){
675
          var arr = []
680
          var arr = []
676
          var str = val.join(';')
681
          var str = val.join(';')
677
-         console.log("strw222222222",str)
678
- 
682
+         
679
           if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
683
           if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
680
             arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
684
             arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
681
           
685
           
710
       changeBoxThree(val){
714
       changeBoxThree(val){
711
          var arr = []
715
          var arr = []
712
          var str = val.join(';')
716
          var str = val.join(';')
713
-         console.log("strw222222222",str)
717
+      
714
          if(str.indexOf('泵前补液测管未夹')!=-1){
718
          if(str.indexOf('泵前补液测管未夹')!=-1){
715
            arr.push("泵前补液测管未夹:")
719
            arr.push("泵前补液测管未夹:")
716
          }
720
          }
867
        }
871
        }
868
        return name
872
        return name
869
      },
873
      },
874
+   
870
      getBloodAccess(id){
875
      getBloodAccess(id){
871
        
876
        
872
         let vascular_access_desc = getDataConfig(
877
         let vascular_access_desc = getDataConfig(
880
           }
885
           }
881
         }
886
         }
882
         return name
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
     props: {
902
     props: {
920
     },
936
     },
921
     watch: {
937
     watch: {
922
       isVisibility(val) {
938
       isVisibility(val) {
923
-        
939
+         
924
         if(this.prescription!=null && this.prescription.id!=0){
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
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1048
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1049
+          this.puncture_needle = "穿刺针:"
959
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
1050
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
960
           this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
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
         if(this.double_check !=null && this.double_check.id!=0){
1053
         if(this.double_check !=null && this.double_check.id!=0){
963
-           console.log("双人核对",this.double_check)
1054
+        
964
            if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
1055
            if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
965
              this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
1056
              this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
966
-             console.log("222222",this.checkList)
1057
+            
967
            }
1058
            }
968
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
1059
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
1060
+          
969
               this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
1061
               this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
970
            }
1062
            }
971
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
1063
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
978
                this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
1070
                this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
979
            }
1071
            }
980
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
1072
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
1073
+              
981
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
1074
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
982
            }
1075
            }
983
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
1076
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
987
               this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
1080
               this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
988
            }
1081
            }
989
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
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
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
1085
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
993
               this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
1086
               this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
999
               this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
1092
               this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
1000
            }
1093
            }
1001
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
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
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
1100
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
1008
              this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1101
              this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1010
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1103
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1011
              this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
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
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1110
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1014
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
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 查看文件

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

+ 1 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

3232
           }, 400)
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
 </script>
3239
 </script>

+ 18 - 7
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

410
         this.$refs.multipleTable3.toggleAllSelection()
410
         this.$refs.multipleTable3.toggleAllSelection()
411
       },
411
       },
412
       printThisPage() {
412
       printThisPage() {
413
-        const style =
413
+        if(this.org_id == 10138){
414
+          const style =
414
           '@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
           '@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
         this.innerVisible = false
432
         this.innerVisible = false
422
         // this.$nextTick(() => {
433
         // this.$nextTick(() => {
423
         //   this.$refs.print.printThisPage()
434
         //   this.$refs.print.printThisPage()

+ 12 - 5
src/xt_pages/hospitalStation/print.vue 查看文件

12
           >
12
           >
13
         </template>
13
         </template>
14
 
14
 
15
-        <div class='dialysisPage' style="padding-top:40px;">
15
+        <div class='dialysisPage'>
16
             <div v-if="org_id != 10138">
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
             </div>
20
             </div>
20
             <div v-else>
21
             <div v-else>
21
                 <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>
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
   import printOne from "./template/printOne"
38
   import printOne from "./template/printOne"
38
   import printThree from "./template/printThree"
39
   import printThree from "./template/printThree"
39
   import printFour from "./template/printFour"
40
   import printFour from "./template/printFour"
41
+  import printFive from "./template/printFive"
40
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
42
   import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41
   export default {
43
   export default {
42
     name: "dialysisPrintOrder",
44
     name: "dialysisPrintOrder",
44
       BreadCrumb,
46
       BreadCrumb,
45
       printOne,
47
       printOne,
46
       printThree,
48
       printThree,
47
-      printFour
49
+      printFour,
50
+      printFive
48
     },
51
     },
49
     props:{
52
     props:{
50
       paramsObj:Object,
53
       paramsObj:Object,
372
 </style>
375
 </style>
373
 
376
 
374
 <style lang="scss">
377
 <style lang="scss">
375
-
378
+    .dialysisPage{
379
+      padding-top:40px;
380
+    }
376
     .newContainer{
381
     .newContainer{
377
     .dialysisPage::-webkit-scrollbar {
382
     .dialysisPage::-webkit-scrollbar {
378
         height: 15px;
383
         height: 15px;
379
     }
384
     }
385
+    
386
+    
380
 
387
 
381
     .el-date-editor{
388
     .el-date-editor{
382
     .el-input__inner{
389
     .el-input__inner{

+ 375 - 0
src/xt_pages/hospitalStation/template/printFive.vue 查看文件

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 查看文件

3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
               :row-style="{ color: '#303133' }"
4
               :row-style="{ color: '#303133' }"
5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
9
       </el-table-column>
9
       </el-table-column>
10
 
10
 
48
       </el-table-column>
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
         <template slot-scope="scope">
52
         <template slot-scope="scope">
53
           <div> {{scope.row.code}}</div>
53
           <div> {{scope.row.code}}</div>
54
         </template>
54
         </template>
55
       </el-table-column>
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
         <template slot-scope="scope">
59
         <template slot-scope="scope">
60
           <div> {{scope.row.spec}}</div>
60
           <div> {{scope.row.spec}}</div>
61
         </template>
61
         </template>
68
       </el-table-column>
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
         <template slot-scope="scope">
72
         <template slot-scope="scope">
73
           <div> {{getName(scope.row.name_id)}}</div>
73
           <div> {{getName(scope.row.name_id)}}</div>
74
         </template>
74
         </template>
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
         <template slot-scope="scope">
80
         <template slot-scope="scope">
81
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
81
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
82
         </template>
82
         </template>
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
         <template slot-scope="scope">
88
         <template slot-scope="scope">
89
           <div> {{scope.row.overlmt_amt}}元</div>
89
           <div> {{scope.row.overlmt_amt}}元</div>
90
         </template>
90
         </template>
91
       </el-table-column>
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
         <template slot-scope="scope">
95
         <template slot-scope="scope">
96
           <div> {{scope.row.preselfpay_amt}}元</div>
96
           <div> {{scope.row.preselfpay_amt}}元</div>
97
         </template>
97
         </template>
98
       </el-table-column>
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
         <template slot-scope="scope">
102
         <template slot-scope="scope">
103
           <div> {{scope.row.inscp_scp_amt}}元</div>
103
           <div> {{scope.row.inscp_scp_amt}}元</div>
104
         </template>
104
         </template>
120
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
120
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
121
               :row-style="{ color: '#303133' }"
121
               :row-style="{ color: '#303133' }"
122
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
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
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
125
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
126
       </el-table-column>
126
       </el-table-column>
127
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
127
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
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
         <template slot-scope="scope">
156
         <template slot-scope="scope">
157
           <div> {{scope.row.medical_code}}</div>
157
           <div> {{scope.row.medical_code}}</div>
158
         </template>
158
         </template>
159
       </el-table-column>
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
         <template slot-scope="scope">
163
         <template slot-scope="scope">
164
           <div> {{scope.row.spec}}</div>
164
           <div> {{scope.row.spec}}</div>
165
         </template>
165
         </template>
172
       </el-table-column>
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
         <template slot-scope="scope">
176
         <template slot-scope="scope">
177
           <div> {{getName(scope.row.name_id)}}</div>
177
           <div> {{getName(scope.row.name_id)}}</div>
178
         </template>
178
         </template>
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
         <template slot-scope="scope">
184
         <template slot-scope="scope">
185
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
185
           <div> {{scope.row.fulamt_ownpay_amt}}元</div>
186
         </template>
186
         </template>
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
         <template slot-scope="scope">
192
         <template slot-scope="scope">
193
           <div> {{scope.row.overlmt_amt}}元</div>
193
           <div> {{scope.row.overlmt_amt}}元</div>
194
         </template>
194
         </template>
195
       </el-table-column>
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
         <template slot-scope="scope">
199
         <template slot-scope="scope">
200
           <div> {{scope.row.preselfpay_amt}}元</div>
200
           <div> {{scope.row.preselfpay_amt}}元</div>
201
         </template>
201
         </template>
202
       </el-table-column>
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
         <template slot-scope="scope">
206
         <template slot-scope="scope">
207
           <div> {{scope.row.inscp_scp_amt}}元</div>
207
           <div> {{scope.row.inscp_scp_amt}}元</div>
208
         </template>
208
         </template>

+ 4 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

453
           })
453
           })
454
         }else{
454
         }else{
455
           const style =
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
           printJS({
457
           printJS({
458
             printable: 'printMain',
458
             printable: 'printMain',
459
             type: 'html',
459
             type: 'html',

+ 6 - 3
src/xt_pages/outpatientDoctorStation/print.vue 查看文件

14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
       <div v-if="org_id != 10138">
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
       </div>
20
       </div>
20
       <div v-else>
21
       <div v-else>
21
         <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>
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
 import printOne from "./template/printOne"
38
 import printOne from "./template/printOne"
38
 import printThree from "./template/printThree"
39
 import printThree from "./template/printThree"
39
 import printFour from "./template/printFour"
40
 import printFour from "./template/printFour"
41
+import printFive from "./template/printFive"
40
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
42
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
41
 export default {
43
 export default {
42
   name: "dialysisPrintOrder",
44
   name: "dialysisPrintOrder",
44
     BreadCrumb,
46
     BreadCrumb,
45
     printOne,
47
     printOne,
46
     printThree,
48
     printThree,
47
-    printFour
49
+    printFour,
50
+    printFive
48
   },
51
   },
49
   props:{
52
   props:{
50
     paramsObj:Object
53
     paramsObj:Object

+ 375 - 0
src/xt_pages/outpatientDoctorStation/template/printFive.vue 查看文件

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 查看文件

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
           const params = {
569
           const params = {
565
             cancelStock: this.recordInfo.recordData
570
             cancelStock: this.recordInfo.recordData
566
           };
571
           };
576
           ).then(response => {
581
           ).then(response => {
577
             if (response.data.state == 0) {
582
             if (response.data.state == 0) {
578
               this.$message.error(response.data.msg);
583
               this.$message.error(response.data.msg);
584
+              loading.close()
579
               return false;
585
               return false;
580
             } else {
586
             } else {
581
              var msg =  response.data.data.msg
587
              var msg =  response.data.data.msg
601
               });
607
               });
602
               this.recordInfo.recordData = [];
608
               this.recordInfo.recordData = [];
603
               this.$router.back(-1);
609
               this.$router.back(-1);
604
-             }        
610
+             }  
611
+             loading.close()      
605
             }
612
             }
606
           });
613
           });
607
         } else {
614
         } else {

+ 9 - 2
src/xt_pages/stock/cancelStockOrderEdit.vue 查看文件

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
             const params = {
536
             const params = {
532
               'cancelStock': this.recordInfo.recordData
537
               'cancelStock': this.recordInfo.recordData
533
             }
538
             }
536
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
537
               if (response.data.state == 0) {
542
               if (response.data.state == 0) {
538
                 this.$message.error(response.data.msg)
543
                 this.$message.error(response.data.msg)
544
+                loading.close()
539
                 return false
545
                 return false
540
               } else {
546
               } else {
541
                 var msg =  response.data.data.msg
547
                 var msg =  response.data.data.msg
561
                   });
567
                   });
562
                   this.recordInfo.recordData = [];
568
                   this.recordInfo.recordData = [];
563
                   this.$router.back(-1);
569
                   this.$router.back(-1);
564
-                }        
570
+                }  
571
+                loading.close()       
565
               }
572
               }
566
             })
573
             })
567
           } else {
574
           } else {

+ 23 - 50
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 查看文件

70
       </div>
70
       </div>
71
     </div>
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
     <el-row :gutter="12" style="margin-top: 10px">
73
     <el-row :gutter="12" style="margin-top: 10px">
114
       <el-table
74
       <el-table
115
         :data="tableData"
75
         :data="tableData"
135
             <span v-if="scope.row.drug_type == 1">西药</span>
95
             <span v-if="scope.row.drug_type == 1">西药</span>
136
             <span v-if="scope.row.drug_type == 2">草药</span>
96
             <span v-if="scope.row.drug_type == 2">草药</span>
137
             <span v-if="scope.row.drug_type == 3">成药</span>
97
             <span v-if="scope.row.drug_type == 3">成药</span>
98
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
138
           </template>
99
           </template>
139
         </el-table-column>
100
         </el-table-column>
140
 
101
 
273
       tableData:[],
234
       tableData:[],
274
       tableList:[],
235
       tableList:[],
275
       tableDataList:[],
236
       tableDataList:[],
237
+      drugTypeList:[],
276
     };
238
     };
277
   },
239
   },
278
   methods: {
240
   methods: {
386
          if(response.data.state == 1){
348
          if(response.data.state == 1){
387
            var order =  response.data.data.order
349
            var order =  response.data.data.order
388
            var list = response.data.data.orderPrint
350
            var list = response.data.data.orderPrint
351
+           //this.drugTypeList = response.data.data.drugTypeList
389
            for(let i=0;i<list.length;i++){
352
            for(let i=0;i<list.length;i++){
390
              list[i].child = []
353
              list[i].child = []
391
             for(let j=0;j<order.length;j++){
354
             for(let j=0;j<order.length;j++){
436
     },
399
     },
437
     exportList(){
400
     exportList(){
438
        for(let i=0;i<this.tableDataList.length;i++){
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
           this.tableDataList[i].index = i+1
412
           this.tableDataList[i].index = i+1
449
           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
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
           this.tableDataList[i].user_name = this.getAdminUser(this.tableDataList[i].creater)
414
           this.tableDataList[i].user_name = this.getAdminUser(this.tableDataList[i].creater)
516
          }
480
          }
517
       }
481
       }
518
       return total
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
 </script>
495
 </script>

+ 15 - 51
src/xt_pages/stock/drugs/components/drugInOrder.vue 查看文件

73
       </div>
73
       </div>
74
     </div>
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
     <el-row :gutter="12" style="margin-top: 10px">
76
     <el-row :gutter="12" style="margin-top: 10px">
117
       <el-table
77
       <el-table
118
         :data="cancelStockDate"
78
         :data="cancelStockDate"
138
             <span v-if="scope.row.drug_type == 1">西药</span>
98
             <span v-if="scope.row.drug_type == 1">西药</span>
139
             <span v-if="scope.row.drug_type == 2">草药</span>
99
             <span v-if="scope.row.drug_type == 2">草药</span>
140
             <span v-if="scope.row.drug_type == 3">成药</span>
100
             <span v-if="scope.row.drug_type == 3">成药</span>
101
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
141
           </template>
102
           </template>
142
         </el-table-column>
103
         </el-table-column>
143
 
104
 
276
       dealer: [],
237
       dealer: [],
277
       tableList:[],
238
       tableList:[],
278
       tabelePrintList:[],
239
       tabelePrintList:[],
240
+      drugTypeList:[],
279
     };
241
     };
280
   },
242
   },
281
   methods: {
243
   methods: {
384
       getDrugIndetail(params).then(response=>{
346
       getDrugIndetail(params).then(response=>{
385
         if(response.data.state == 1){
347
         if(response.data.state == 1){
386
           var drugInOrder = response.data.data.detail
348
           var drugInOrder = response.data.data.detail
349
+          var drugTypeParent = response.data.data.drugTypeParent
350
+          console.log("药品类型",drugTypeParent)
351
+        //  this.drugTypeList = drugTypeParent
387
           var total_price = 0
352
           var total_price = 0
388
           for(let i=0;i<drugInOrder.length;i++){
353
           for(let i=0;i<drugInOrder.length;i++){
389
              drugInOrder[i].specification_name  = drugInOrder[i].dose + drugInOrder[i].dose_unit + "*" + drugInOrder[i].min_number +  drugInOrder[i].min_unit + "/" + drugInOrder[i].max_unit
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
        for(let i=0;i<newArr.length;i++){
488
        for(let i=0;i<newArr.length;i++){
524
           newArr.specification_name = ""
489
           newArr.specification_name = ""
525
           newArr.index = i+1
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
          newArr[i].specification_name = newArr[i].dose + newArr[i].dose_unit +"*" + newArr[i].min_number + newArr[i].min_unit +  "/" + newArr[i].max_unit
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
          newArr[i].time = this.getTime(newArr[i].ctime)
494
          newArr[i].time = this.getTime(newArr[i].ctime)
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
 </script>
523
 </script>

+ 15 - 9
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

136
             <span v-if="scope.row.drug_type == 1">西药</span>
136
             <span v-if="scope.row.drug_type == 1">西药</span>
137
             <span v-if="scope.row.drug_type == 2">草药</span>
137
             <span v-if="scope.row.drug_type == 2">草药</span>
138
             <span v-if="scope.row.drug_type == 3">成药</span>
138
             <span v-if="scope.row.drug_type == 3">成药</span>
139
+            <!-- {{getTypeList(scope.row.drug_type)}} -->
139
           </template>
140
           </template>
140
         </el-table-column>
141
         </el-table-column>
141
 
142
 
285
       drugList:[],
286
       drugList:[],
286
       tablePrint:[],
287
       tablePrint:[],
287
       org_id:0,
288
       org_id:0,
289
+      drugTypeList:[],
288
     };
290
     };
289
   },
291
   },
290
   methods: {
292
   methods: {
441
           for(let i=0;i<order.length;i++){
443
           for(let i=0;i<order.length;i++){
442
             order[i].total_price = order[i].total_price.toFixed(2)
444
             order[i].total_price = order[i].total_price.toFixed(2)
443
           }
445
           }
446
+        //  this.drugTypeList = response.data.data.drugTypeList
447
+          
444
           this.tableData = order
448
           this.tableData = order
445
            let objInfo = {}
449
            let objInfo = {}
446
           order.forEach((item,index)=>{
450
           order.forEach((item,index)=>{
558
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','time','user_name','price','count','total_price']
562
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','time','user_name','price','count','total_price']
559
        for(let i=0;i<this.tableData.length;i++){
563
        for(let i=0;i<this.tableData.length;i++){
560
          this.tableData[i].index = i+1
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
         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
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
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
568
         this.tableData[i].time = this.getTime(this.tableData[i].ctime)
572
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
569
         this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
744
         }
741
         }
745
         return (count*price)
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
 </script>
755
 </script>

+ 3 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue 查看文件

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

+ 4 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue 查看文件

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

+ 15 - 36
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue 查看文件

26
 
26
 
27
     <div class="app-container">
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
       <div class="cell clearfix">
29
       <div class="cell clearfix">
39
         <label class="title"><span class="name">出库时间</span> : </label>
30
         <label class="title"><span class="name">出库时间</span> : </label>
40
         <el-date-picker
31
         <el-date-picker
54
     
45
     
55
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
46
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
56
         <el-table
47
         <el-table
48
+           v-loading="listLoading"
57
           :data="recordInfo.recordData"
49
           :data="recordInfo.recordData"
58
           :class="signAndWeighBoxPatients"
50
           :class="signAndWeighBoxPatients"
59
           style="width: 100%"
51
           style="width: 100%"
116
               </el-form-item>
108
               </el-form-item>
117
             </template>
109
             </template>
118
           </el-table-column>
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
           <el-table-column width="200" align="center">
112
           <el-table-column width="200" align="center">
137
             <template slot="header" slot-scope="scope">
113
             <template slot="header" slot-scope="scope">
138
               <span>出库数量<span style="color: red">*</span></span>
114
               <span>出库数量<span style="color: red">*</span></span>
368
       drugTypeList:[],
344
       drugTypeList:[],
369
       totalPrice:0,
345
       totalPrice:0,
370
       unitList:[],
346
       unitList:[],
371
-      numberList:[]
347
+      numberList:[],
348
+      listLoading: false,
372
     };
349
     };
373
   },
350
   },
374
   methods: {
351
   methods: {
575
           const params = {
552
           const params = {
576
             stockOut: this.recordInfo.recordData
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
           postDrugWarehouseOut(
561
           postDrugWarehouseOut(
581
             params,
562
             params,
582
             this.warehouse_out_time,
563
             this.warehouse_out_time,
586
           ).then(response => {
567
           ).then(response => {
587
             if (response.data.state == 0) {
568
             if (response.data.state == 0) {
588
               this.$message.error("库存不足");
569
               this.$message.error("库存不足");
570
+              loading.close()
589
               return false;
571
               return false;
590
             } else {
572
             } else {
573
+              this.loading = false
574
+              loading.close()
591
               var msg = response.data.data.msg
575
               var msg = response.data.data.msg
592
               var drug_name =  response.data.data.drug_name
576
               var drug_name =  response.data.data.drug_name
593
-              console.log("drug_name",drug_name)
594
               var dose = response.data.data.dose
577
               var dose = response.data.data.dose
595
-              console.log("dose",dose)
596
               var dose_unit = response.data.data.dose_unit
578
               var dose_unit = response.data.data.dose_unit
597
-              console.log("dose_unit",dose_unit)
598
               var min_number = response.data.data.min_number
579
               var min_number = response.data.data.min_number
599
-              console.log("min_number",min_number)
600
               var min_unit =  response.data.data.min_unit
580
               var min_unit =  response.data.data.min_unit
601
-              console.log("min_unit",min_unit)
602
               var max_unit =  response.data.data.max_unit
581
               var max_unit =  response.data.data.max_unit
603
-              console.log("max_unit",max_unit)
604
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
582
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
605
-              console.log("str22222222",str)
583
+      
606
               if(msg == 1){
584
               if(msg == 1){
607
                 this.$message.error(str + "库存不足")
585
                 this.$message.error(str + "库存不足")
608
               }else{
586
               }else{
587
+                loading.close()
609
                 this.$message.success("出库成功");
588
                 this.$message.success("出库成功");
610
                 this.recordInfo.recordData = [];
589
                 this.recordInfo.recordData = [];
611
                 this.$router.back(-1);
590
                 this.$router.back(-1);

+ 10 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue 查看文件

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

+ 8 - 1
src/xt_pages/stock/stockInOrderAdd.vue 查看文件

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
             const params = {
685
             const params = {
680
               'stockIn': this.recordInfo.recordData
686
               'stockIn': this.recordInfo.recordData
681
             }
687
             }
684
             postWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
690
             postWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
685
               if (response.data.state == 0) {
691
               if (response.data.state == 0) {
686
                 this.$message.error(response.data.msg)
692
                 this.$message.error(response.data.msg)
693
+                loading.close()
687
                 return false
694
                 return false
688
               } else {
695
               } else {
696
+                loading.close()
689
                 this.$message.success('入库成功')
697
                 this.$message.success('入库成功')
690
-
691
                 this.$router.back(-1)
698
                 this.$router.back(-1)
692
               }
699
               }
693
             })
700
             })

+ 8 - 2
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

667
             stockIn: this.recordInfo.recordData
667
             stockIn: this.recordInfo.recordData
668
           };
668
           };
669
           console.log("params2222",params)
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
           EditWarehouse(
676
           EditWarehouse(
672
             params,
677
             params,
673
             this.warehousing_time,
678
             this.warehousing_time,
678
           ).then(response => {
683
           ).then(response => {
679
             if (response.data.state == 0) {
684
             if (response.data.state == 0) {
680
               this.$message.error(response.data.msg);
685
               this.$message.error(response.data.msg);
686
+              loading.close()
681
               return false;
687
               return false;
682
             } else {
688
             } else {
689
+              loading.close()
683
               this.$message.success("入库成功");
690
               this.$message.success("入库成功");
684
-
685
               this.$router.back(-1);
691
               this.$router.back(-1);
686
             }
692
             }
687
           });
693
           });

+ 9 - 2
src/xt_pages/stock/stockOutOrderAdd.vue 查看文件

594
           const params = {
594
           const params = {
595
             stockOut: this.recordInfo.recordData
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
           postWarehouseOut(
603
           postWarehouseOut(
599
             params,
604
             params,
600
             this.warehouse_out_time,
605
             this.warehouse_out_time,
604
           ).then(response => {
609
           ).then(response => {
605
             if (response.data.state == 0) {
610
             if (response.data.state == 0) {
606
               this.$message.error("库存不足")
611
               this.$message.error("库存不足")
612
+              loading.close()
607
               return false;
613
               return false;
608
             } else {
614
             } else {
609
                var msg = response.data.data.msg
615
                var msg = response.data.data.msg
614
                if(msg == 1){
620
                if(msg == 1){
615
                   this.$message.error(str)
621
                   this.$message.error(str)
616
                }
622
                }
623
+              
617
                if(msg == 2){
624
                if(msg == 2){
618
                  this.$message.success("出库成功");
625
                  this.$message.success("出库成功");
619
                  this.recordInfo.recordData = [];
626
                  this.recordInfo.recordData = [];
620
                  this.$router.back(-1);
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 查看文件

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

+ 27 - 22
src/xt_pages/stock/stockPrint.vue 查看文件

41
                                    <td>
41
                                    <td>
42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
42
                                       <span v-if="getWareInfo(item.xt_warehouse_info)>0">{{getWareInfo(item.xt_warehouse_info)}}{{item.packing_unit}}</span>
43
                                    </td>
43
                                    </td>
44
-                                   <td>
44
+                                   <td v-if="end_time == ''">
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">
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
                                         <span>
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
                                         </span>
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
                                    </td>
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
                                    </td>
67
                                    </td>
58
                                 </tr>
68
                                 </tr>
59
                             </tbody>
69
                             </tbody>
120
         const params = {
130
         const params = {
121
           page: this.page,
131
           page: this.page,
122
           limit: this.limit,
132
           limit: this.limit,
123
-          keywords: this.keywords,
133
+          keywords:this.keyword,
124
           start_time:this.start_time,
134
           start_time:this.start_time,
125
           end_time:this.end_time,
135
           end_time:this.end_time,
126
           type:this.type_name,
136
           type:this.type_name,
127
         }
137
         }
138
+        console.log("打印",params)
128
         getAllStockList(params).then(response=>{
139
         getAllStockList(params).then(response=>{
129
          if(response.data.state == 1){
140
          if(response.data.state == 1){
130
            var list = response.data.data.list
141
            var list = response.data.data.list
131
-          //  console.log("list22222",list)
132
            this.tableList = list
142
            this.tableList = list
133
            var total = response.data.data.total
143
            var total = response.data.data.total
134
-          //  console.log("total",total)
135
            this.total = total
144
            this.total = total
136
            var manufacturerList = response.data.data.manufacturerList
145
            var manufacturerList = response.data.data.manufacturerList
137
            this.manufacturerList = manufacturerList
146
            this.manufacturerList = manufacturerList
198
      },
207
      },
199
      getStockDrugCount(){
208
      getStockDrugCount(){
200
         var params ={
209
         var params ={
201
-          keywords: this.keywords,
210
+          keywords: this.keyword,
202
           start_time:this.start_time,
211
           start_time:this.start_time,
203
           end_time:this.end_time,
212
           end_time:this.end_time,
204
         }
213
         }
214
+      console.log("打印按钮",params)
205
       getStockDrugCount(params).then(response=>{
215
       getStockDrugCount(params).then(response=>{
206
          if(response.data.state == 1){
216
          if(response.data.state == 1){
207
            var count = response.data.data.count
217
            var count = response.data.data.count
208
-          //  console.log("入库统计",count)
209
            this.countList = count
218
            this.countList = count
210
            var outlist = response.data.data.outList
219
            var outlist = response.data.data.outList
211
-          //  console.log("出库数量",outlist)
212
            this.outCountList = outlist
220
            this.outCountList = outlist
213
            var autoCount = response.data.data.autoCount
221
            var autoCount = response.data.data.autoCount
214
-          //  console.log("autoCount",autoCount)
215
            this.autoCountList = autoCount
222
            this.autoCountList = autoCount
216
            var totalCount = response.data.data.totalCount
223
            var totalCount = response.data.data.totalCount
217
-          //  console.log("totalcount",totalCount)
218
            this.cancelCountList = totalCount
224
            this.cancelCountList = totalCount
219
          }
225
          }
220
       })
226
       })
304
         total += arr[i].stock_count
310
         total += arr[i].stock_count
305
       }
311
       }
306
      }
312
      }
313
+     console.log("totla23323232",total)
307
      return total
314
      return total
308
    },
315
    },
309
    getCancelSotckInfo(arr){
316
    getCancelSotckInfo(arr){
310
-     console.log("2332323232322332",arr)
311
      var cancle_toal = 0
317
      var cancle_toal = 0
312
      if(arr.length >0){
318
      if(arr.length >0){
313
       for(let z=0;z<arr.length;z++){
319
       for(let z=0;z<arr.length;z++){
314
         cancle_toal += arr[z].count
320
         cancle_toal += arr[z].count
315
       }
321
       }
316
      }
322
      }
317
-     console.log("total",cancle_toal)
318
      return cancle_toal
323
      return cancle_toal
319
    }
324
    }
320
    },
325
    },
321
     created(){
326
     created(){
322
       this.org_id =  this.$store.getters.xt_user.org_id
327
       this.org_id =  this.$store.getters.xt_user.org_id
323
-      console.log("机构ID232323323233232",this.org_id)
328
+     
324
       var starttime =  this.$route.query.start_time
329
       var starttime =  this.$route.query.start_time
325
       this.start_time = starttime
330
       this.start_time = starttime
326
       var endtime =  this.$route.query.end_time
331
       var endtime =  this.$route.query.end_time
327
       this.end_time = endtime
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
       this.type_name = type_name
334
       this.type_name = type_name
330
       var keyword = this.$route.query.keyword
335
       var keyword = this.$route.query.keyword
331
       this.keyword = keyword
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
       this.getlist()
339
       this.getlist()
335
       this.GetAllGoodType()
340
       this.GetAllGoodType()
336
       this.getStockDrugCount()
341
       this.getStockDrugCount()

+ 13 - 6
src/xt_pages/stock/stockQuery.vue 查看文件

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

+ 2 - 1
src/xt_pages/user/components/PatientDetail.vue 查看文件

955
               <div class="proj">
955
               <div class="proj">
956
                 <span class="proj_title">日期:</span>
956
                 <span class="proj_title">日期:</span>
957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
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
               </div>
960
               </div>
960
               <div class="proj"><span class="proj_title">医生签名:</span></div>
961
               <div class="proj"><span class="proj_title">医生签名:</span></div>
961
             </div>
962
             </div>

+ 6 - 0
src/xt_pages/user/components/PatientSidebar.vue 查看文件

106
               name: '1-9',
106
               name: '1-9',
107
               label: '阶段小结'
107
               label: '阶段小结'
108
             },
108
             },
109
+            // {
110
+            //   name: '1-10',
111
+            //   label: '住院小结'
112
+            // },
109
             {
113
             {
110
               name: '1-3',
114
               name: '1-3',
111
               label: '检验检查'
115
               label: '检验检查'
189
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
193
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
190
       }else if (name == '1-9'){
194
       }else if (name == '1-9'){
191
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
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
     changePatient(value) {
200
     changePatient(value) {

文件差異過大導致無法顯示
+ 1689 - 0
src/xt_pages/user/hospitalSummary.vue