Bläddra i källkod

HIS 系统提交

XMLWAN 4 år sedan
förälder
incheckning
fca45bbff4

+ 9 - 0
src/api/project/project.js Visa fil

@@ -434,4 +434,13 @@ export function changePatient(id,params){
434 434
       method:"get",
435 435
       params:params
436 436
     })
437
+  }
438
+
439
+  export function getHisPatientDetail(params){
440
+    console.log("params99999",params)
441
+    return request({
442
+      url:"/api/hispatient/gethispatientdetail",
443
+      method:"Get",
444
+      params:params
445
+    })
437 446
   }

Binär
src/assets/home/100.png Visa fil


Binär
src/assets/home/102.png Visa fil


Binär
src/assets/home/88.png Visa fil


Binär
src/assets/home/99.png Visa fil


+ 4 - 8
src/xt_pages/data/printTemplate/chargePrint.vue Visa fil

@@ -6,12 +6,12 @@
6 6
       element-loading-background="rgba(0, 0, 0, 0.8)"
7 7
     >
8 8
     <p style="margin-top: 10px;margin-bottom: 30px">
9
-        请选择你需要打印的血液透析护理记录单样式
9
+        请选择你需要打印的门诊收费模板
10 10
     </p>
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
13 13
         <div
14
-            @click="imgClick('https://images.shengws.com/fangji.jpg')"
14
+            @click="imgClick('https://images.shengws.com/2020/12/3/admin_avatar_1606985484284.png')"
15 15
         >
16 16
             <el-tooltip
17 17
             class="item"
@@ -20,15 +20,11 @@
20 20
             content="点击查看大图"
21 21
             placement="top-start"
22 22
             >
23
-            <!--<el-image-->
24
-                <!--style="width: 200px; height: 200px"-->
25
-                <!--:src="require('@/assets/home/1.jpg')"-->
26
-                <!--:preview-src-list="imgs_one"-->
27
-            <!--&gt;</el-image>-->
23
+          
28 24
 
29 25
             <el-image
30 26
                 style="width: 200px; height: 200px"
31
-                :src="require('@/assets/home/1.jpg')"
27
+                :src="require('@/assets/home/100.png')"
32 28
             ></el-image>
33 29
 
34 30
             </el-tooltip>

+ 3 - 3
src/xt_pages/data/printTemplate/prescriptionPrint.vue Visa fil

@@ -6,12 +6,12 @@
6 6
       element-loading-background="rgba(0, 0, 0, 0.8)"
7 7
     >
8 8
     <p style="margin-top: 10px;margin-bottom: 30px">
9
-        请选择你需要的处方模板记录单样式
9
+        请选择你需要的电子处方模板记录单样式
10 10
     </p>
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
13 13
         <div
14
-            @click="imgClick('https://images.shengws.com/fangji.jpg')"
14
+            @click="imgClick('https://images.shengws.com/2020/12/3/admin_avatar_1606984919688.png')"
15 15
         >
16 16
             <el-tooltip
17 17
             class="item"
@@ -22,7 +22,7 @@
22 22
             >
23 23
             <el-image
24 24
                 style="width: 200px; height: 200px"
25
-                :src="require('@/assets/home/1.jpg')"
25
+                :src="require('@/assets/home/88.png')"
26 26
             ></el-image>
27 27
 
28 28
             </el-tooltip>

+ 2 - 3
src/xt_pages/data/printTemplate/recordPrint.vue Visa fil

@@ -11,7 +11,7 @@
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
13 13
         <div
14
-            @click="imgClick('https://images.shengws.com/fangji.jpg')"
14
+            @click="imgClick('https://images.shengws.com/2020/12/3/admin_avatar_1606996536109.png')"
15 15
         >
16 16
             <el-tooltip
17 17
             class="item"
@@ -22,7 +22,7 @@
22 22
             >
23 23
             <el-image
24 24
                 style="width: 200px; height: 200px"
25
-                :src="require('@/assets/home/1.jpg')"
25
+                :src="require('@/assets/home/102.png')"
26 26
             ></el-image>
27 27
 
28 28
             </el-tooltip>
@@ -68,7 +68,6 @@ export default {
68 68
       imgs:[],
69 69
 
70 70
       imgs_one: [
71
-        // 'https://images.shengws.com/template_one.jpg'
72 71
         "https://images.shengws.com/fangji.jpg"
73 72
       ],
74 73
       imgs_two: ["https://images.shengws.com/template_two.jpg"],

+ 2 - 2
src/xt_pages/data/printTemplate/treatPrint.vue Visa fil

@@ -11,7 +11,7 @@
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
13 13
         <div
14
-            @click="imgClick('https://images.shengws.com/fangji.jpg')"
14
+            @click="imgClick('https://images.shengws.com/2020/12/3/admin_avatar_1606984919688.png')"
15 15
         >
16 16
             <el-tooltip
17 17
             class="item"
@@ -23,7 +23,7 @@
23 23
 
24 24
             <el-image
25 25
                 style="width: 200px; height: 200px"
26
-                :src="require('@/assets/home/1.jpg')"
26
+                :src="require('@/assets/home/99.png')"
27 27
             ></el-image>
28 28
 
29 29
             </el-tooltip>

+ 12 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -341,7 +341,8 @@
341 341
 
342 342
         ],
343 343
         department:[],
344
-        sick:[]
344
+        sick:[],
345
+        prescription_id:0,
345 346
       }
346 347
     },
347 348
     methods: {
@@ -443,6 +444,9 @@
443 444
         for (let i = 0; i < this.prescriptions.length; i++) {
444 445
           console.log(this.prescriptions[i].name)
445 446
           if (this.prescriptions[i].name == val.name) {
447
+            console.log("2323323",this.prescriptions)
448
+            this.prescription_id = this.prescriptions[i].id
449
+            this.$emit('event1', this.prescription_id)
446 450
             this.curPrescriptions = this.prescriptions[i]
447 451
             this.teamList = []
448 452
             this.curDrugs = []
@@ -485,9 +489,13 @@
485 489
 
486 490
       },
487 491
       setData(data, info) {
492
+        this.prescription_id = data[0].id
493
+        console.log("99999999",data[0].id)
494
+        this.$emit('event1', this.prescription_id)
488 495
         this.curStatus = 0
489 496
         this.prescriptions = data
490 497
         this.curPrescriptions = this.prescriptions[0]
498
+       
491 499
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
492 500
           this.curStatus = 1
493 501
           this.customTabIndex = 1
@@ -984,6 +992,9 @@
984 992
       this.getlist()
985 993
       //获取所以项目组套
986 994
       this.getAllProjectTeam()
995
+      
996
+   
997
+      
987 998
 
988 999
     }
989 1000
   }

+ 9 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

@@ -68,7 +68,7 @@
68 68
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
69 69
         <desk-prescription  :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
70 70
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
71
-                           :hisPatientInfo="hisPatientInfo"
71
+                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
72 72
                            v-show="titleType == '电子处方'" style="flex:1;"></desk-prescription>
73 73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
74 74
                      :hisPatientInfo="hisPatientInfo"   v-show="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
@@ -130,6 +130,7 @@
130 130
         info:{},
131 131
         templatedetail:{},
132 132
         detalid:0,
133
+        prescription_id:0,
133 134
       }
134 135
     },
135 136
     methods: {
@@ -320,16 +321,17 @@
320 321
         })
321 322
       },
322 323
       open(index) {
324
+        console.log("index",index)
323 325
         if (index == 1) {
324 326
           this.$refs.prescriptions.open(1)
325 327
         } else if (index == 2) {
326
-          this.$router.push("/outpatientDoctorStation/print?record="+this.record_date)
328
+          this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
327 329
         } else if (index == 3) {
328 330
           this.$refs.prescriptions.open(3)
329 331
         } else if (index == 4) {
330 332
           this.$refs.prescriptions.open(4)
331 333
         }else if(index == 6){
332
-          this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date)
334
+          this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
333 335
           
334 336
         }
335 337
         
@@ -362,6 +364,10 @@
362 364
         console.log("id----------",id)
363 365
         this.detalid = id
364 366
       },
367
+      changetwo(data){
368
+        console.log("data000000",data)
369
+        this.prescription_id = data
370
+      }
365 371
       //  getTemplateDetail(id){
366 372
       //     getTemplateDetail(id).then(response=>{
367 373
       //         if(response.data.state == 1){

+ 37 - 22
src/xt_pages/outpatientDoctorStation/print.vue Visa fil

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
4
+      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
5 5
        <template>
6 6
         <el-button
7 7
           :loading="loading"
@@ -32,7 +32,7 @@
32 32
             </div>
33 33
             
34 34
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient"></printOne>
35
+              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36 36
             </div>
37 37
         </el-container>
38 38
     </div>
@@ -63,7 +63,12 @@ export default {
63 63
        patientTableData:[],
64 64
        advicePrint:[],
65 65
        hisPatient:{},
66
-       patient:{}
66
+       patient:{},
67
+       doctorPorject:{},
68
+       search_input:"",
69
+       loading:false,
70
+       patient_id:"",
71
+       prescription_id:""
67 72
     };
68 73
   },
69 74
   methods:{
@@ -128,26 +133,34 @@ export default {
128 133
     },
129 134
 
130 135
     changePatient(row){
136
+      this.patient_id = row.patient_id
137
+      this.record_date = this.record_date
138
+      this.prescription_id = this.prescription_id
131 139
       console.log("row",row)
132
-        var params = {
133
-          patient_id:row.patient_id,
134
-          record_date:this.record_date,
135
-        }
136
-      getPrescriptionPrint(params).then(response=>{
137
-          if(response.data.state == 1){
138
-            var advicePrint =  response.data.data.advicePrint
139
-            console.log("adviceprint",advicePrint)
140
-            this.advicePrint = advicePrint
141
-            // var hisPatient =  response.data.data.hisPatient
142
-            // console.log("hispatient",hisPatient)
143
-            // this.hisPatient = hisPatient
144
-            var patient =  response.data.data.patient
145
-            console.log("patient",patient)
146
-            this.patient = patient
147
-            var doctorPorject = response.data.data.doctorPorject
148
-            console.log("doctorporject",doctorPorject)
149
-          }
150
-      })
140
+        // var params = {
141
+        //   patient_id:row.patient_id,
142
+        //   record_date:this.record_date,
143
+        //   prescription_id:this.prescription_id,
144
+        // }
145
+      // getPrescriptionPrint(params).then(response=>{
146
+      //     if(response.data.state == 1){
147
+      //       var advicePrint =  response.data.data.advicePrint
148
+      //       console.log("adviceprint",advicePrint)
149
+      //       this.advicePrint = advicePrint
150
+      //       var patient =  response.data.data.patient
151
+      //       console.log("patient",patient)
152
+      //       this.patient = patient
153
+      //       //  var hisPatient =  response.data.data.hisPatient
154
+      //       // console.log("hispatient",hisPatient)
155
+      //       // this.hisPatient = hisPatient
156
+      //       var doctorPorject = response.data.data.doctorPorject
157
+      //       console.log("doctorporject",doctorPorject)
158
+      //       this.doctorPorject = doctorPorject
159
+      //     }
160
+      // })
161
+    },
162
+    searchAction(){
163
+
151 164
     }
152 165
     
153 166
   },
@@ -157,6 +170,8 @@ export default {
157 170
     var record_date = this.$route.query.record
158 171
     this.record_date = record_date
159 172
     console.log("record_date",record_date)
173
+    var prescription_id = this.$route.query.prescription_id
174
+    this.prescription_id = prescription_id
160 175
     this.getAllHisPatientList(record_date)
161 176
   },
162 177
 

+ 91 - 17
src/xt_pages/outpatientDoctorStation/template/printOne.vue Visa fil

@@ -10,9 +10,9 @@
10 10
             <p>年龄:{{patient.age}}岁</p>
11 11
         </div>
12 12
         <div class="infoMain">
13
-            <p style="margin-bottom: 10px;">门诊号:</p>
14
-            <p style="margin-bottom: 10px;">科室:</p>
15
-            <p style="margin-bottom: 10px;">医保卡号:</p>
13
+            <p style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
14
+            <p style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</p>
15
+            <p style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
16 16
             <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
17 17
             <p>地址:{{patient.home_address}}</p>
18 18
             <p>临床诊断:{{patient.diagnose}}</p>
@@ -20,35 +20,42 @@
20 20
         <div class="prescriptionBox">
21 21
             <p class="Rp">Rp:</p>
22 22
             <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <p class="drugsOne">{{item.advice_name}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
23
+                <p class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
24 24
                 <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
25 25
             </div>
26 26
         </div>
27 27
         <div class="doctorBox">
28
-            <p>医师:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
29
-            <p>日期:{{getTime(advicePrint[0].advice_date)}}</p>
28
+            <p>医师:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
29
+            <p>日期:{{getTime(advicePrint[0].advice_date)?getTime(advicePrint[0].advice_date):""}}</p>
30 30
         </div>
31 31
         <div class="actionBar">
32
-            <p>审核:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
33
-            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
34
-            <p>核对:{{getDoctor(advicePrint[0].checker)}}</p>
35
-            <p>发药:{{getDoctor(advicePrint[0].execution_staff)}}</p>
36
-            <p>药费:{{advicePrint[0].price}}</p>
32
+            <p>审核:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
33
+            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
34
+            <p>核对:{{getDoctor(advicePrint[0].checker)?getDoctor(advicePrint[0].checker):""}}</p>
35
+            <p>发药:{{getDoctor(advicePrint[0].execution_staff)?getDoctor(advicePrint[0].execution_staff):""}}</p>
36
+            <p>药费:{{advicePrint[0].price?advicePrint[0].price:""}}</p>
37 37
         </div>
38 38
     </div>
39 39
 </template>
40 40
 <script>
41 41
 import { jsGetAge, uParseTime } from '@/utils/tools'
42
-  import {getAllDoctorList} from "@/api/project/project"
42
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
43
+import {getInitData} from "@/api/his/his"
43 44
 export default {
44 45
     props:{
45
-      patient:Object,
46
-      advicePrint:Array,
47
-      hisPatient:Object,
46
+      patient_id:Number,
47
+      record_date:String,
48
+      prescription_id:Number
48 49
     }, 
49 50
     data(){
50
-      return{
51
-        doctorList:[]
51
+      return {
52
+        doctorList:[],
53
+        advicePrint:{},
54
+        patient:{},
55
+        tableData:[],
56
+        prescriptionInfo:[],
57
+        hisPatient:{},
58
+        department:[]
52 59
       }
53 60
     },
54 61
    methods:{
@@ -78,9 +85,76 @@ export default {
78 85
         }
79 86
         return ''
80 87
      },
88
+       getPrescriptionPrint(){
89
+         var params = {
90
+          patient_id:this.patient_id,
91
+          record_date:this.record_date,
92
+          prescription_id:this.prescription_id,
93
+        }
94
+        console.log("params---",params)
95
+       getPrescriptionPrint(params).then(response=>{
96
+         if(response.data.state == 1){
97
+            var advicePrint =  response.data.data.advicePrint
98
+            console.log("adviceprint",advicePrint)
99
+            this.advicePrint = advicePrint
100
+            var patient =  response.data.data.patient
101
+            console.log("patient",patient)
102
+            this.patient = patient
103
+            var doctorPorject = response.data.data.doctorPorject
104
+          
105
+            var arr = doctorPorject.project
106
+              console.log("我的中谷歌",arr)
107
+            for(let i=0;i<arr.length;i++){
108
+              console.log("arr",arr[i].project_name)
109
+            }
110
+            this.tableData = arr
111
+            console.log("3333",this.tableData)
112
+            var prescriptioninfo = response.data.data.prescriptionInfo
113
+            console.log("prescriptioninfo",prescriptioninfo)
114
+            this.prescriptionInfo = prescriptioninfo
115
+          }
116
+       })
117
+     },
118
+     getHisPatientDetail(){
119
+          const params = {
120
+              patient_id:this.patient_id
121
+          }
122
+       getHisPatientDetail(params).then(response=>{
123
+          if(response.data.state == 1){
124
+             var hisPatient =  response.data.data.hisPatient
125
+             console.log("挂号病人",hisPatient)
126
+             this.hisPatient = hisPatient
127
+          }
128
+       })
129
+     },
130
+     getInitData(){
131
+       getInitData().then(response=>{
132
+          if(response.data.state == 1){
133
+            this.department = response.data.data.department
134
+           
135
+          }
136
+       })
137
+     },
138
+     getDepart(id){
139
+         var name = ""
140
+       for(let i=0;i<this.department.length;i++){
141
+           if(id == this.department[i].id){
142
+               name = this.department[i].name
143
+           }
144
+       }
145
+       return name
146
+     }
81 147
    },
82 148
    created(){
83 149
       this.getAllDoctorList()
150
+      this.getInitData()
151
+   },
152
+   watch:{
153
+     patient_id:function(val){
154
+       console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
155
+       this.getPrescriptionPrint()
156
+       this.getHisPatientDetail()
157
+     }
84 158
    }
85 159
 }
86 160
 </script>

+ 34 - 22
src/xt_pages/outpatientDoctorStation/treatPrint.vue Visa fil

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
4
+      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
5 5
        <template>
6 6
         <el-button
7 7
           :loading="loading"
@@ -32,7 +32,7 @@
32 32
             </div>
33 33
             
34 34
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient"></printOne>
35
+              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36 36
             </div>
37 37
         </el-container>
38 38
     </div>
@@ -63,7 +63,11 @@ export default {
63 63
        patientTableData:[],
64 64
        advicePrint:[],
65 65
        hisPatient:{},
66
-       patient:{}
66
+       patient:{},
67
+       search_input:"",
68
+       loading:false,
69
+       patient_id:0,
70
+       prescription_id:0
67 71
     };
68 72
   },
69 73
   methods:{
@@ -129,25 +133,32 @@ export default {
129 133
 
130 134
     changePatient(row){
131 135
       console.log("row",row)
132
-        var params = {
133
-          patient_id:row.patient_id,
134
-          record_date:this.record_date,
135
-        }
136
-      getPrescriptionPrint(params).then(response=>{
137
-          if(response.data.state == 1){
138
-            var advicePrint =  response.data.data.advicePrint
139
-            console.log("adviceprint",advicePrint)
140
-            this.advicePrint = advicePrint
141
-            // var hisPatient =  response.data.data.hisPatient
142
-            // console.log("hispatient",hisPatient)
143
-            // this.hisPatient = hisPatient
144
-            var patient =  response.data.data.patient
145
-            console.log("patient",patient)
146
-            this.patient = patient
147
-            var doctorPorject = response.data.data.doctorPorject
148
-            console.log("doctorporject",doctorPorject)
149
-          }
150
-      })
136
+      this.patient_id = row.patient_id
137
+      this.record_date = this.record_date
138
+      this.prescription_id = this.prescription_id
139
+      //   var params = {
140
+      //     patient_id:row.patient_id,
141
+      //     record_date:this.record_date,
142
+      //     prescription_id:this.prescription_id,
143
+      //   }
144
+      // getPrescriptionPrint(params).then(response=>{
145
+      //     if(response.data.state == 1){
146
+      //       var advicePrint =  response.data.data.advicePrint
147
+      //       console.log("adviceprint",advicePrint)
148
+      //       this.advicePrint = advicePrint
149
+      //       // var hisPatient =  response.data.data.hisPatient
150
+      //       // console.log("hispatient",hisPatient)
151
+      //       // this.hisPatient = hisPatient
152
+      //       var patient =  response.data.data.patient
153
+      //       console.log("patient",patient)
154
+      //       this.patient = patient
155
+      //       var doctorPorject = response.data.data.doctorPorject
156
+      //       console.log("doctorporject",doctorPorject)
157
+      //     }
158
+      // })
159
+    },
160
+    searchAction(){
161
+
151 162
     }
152 163
     
153 164
   },
@@ -157,6 +168,7 @@ export default {
157 168
     var record_date = this.$route.query.record
158 169
     this.record_date = record_date
159 170
     console.log("record_date",record_date)
171
+    this.prescription_id = this.$route.query.prescription_id
160 172
     this.getAllHisPatientList(record_date)
161 173
   },
162 174
 

+ 72 - 26
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Visa fil

@@ -8,7 +8,7 @@
8 8
                 <span>保险</span>
9 9
                 <span>其他</span>
10 10
             </p>
11
-            <p>就诊日期:2020-11-01 09:22:12</p>
11
+            <p>就诊日期:{{this.$route.query.record}}</p>
12 12
         </div>
13 13
         <div class="printTitle">血液透析中心</div>
14 14
         <div class="printTitle">处方、治疗单</div>
@@ -17,13 +17,18 @@
17 17
             <p>电脑号:</p>
18 18
         </div>
19 19
         <div class="infoMain">
20
-            <p style="margin-bottom: 10px;width:25%">姓名:阿萨德</p>
21
-            <p style="margin-bottom: 10px;width:25%">性别:男</p>
22
-            <p style="margin-bottom: 10px;width:25%">年龄:12</p>
20
+            <p style="margin-bottom: 10px;width:25%">姓名:{{patient.name}}</p>
21
+            <p style="margin-bottom: 10px;width:25%">性别:
22
+                <span v-if="patient.gender == 1">男</span>
23
+                <span v-if="patient.gender == 2">女</span>
24
+            </p>
25
+            <p style="margin-bottom: 10px;width:25%">年龄:
26
+                <span>{{patient.age}}</span>
27
+            </p>
23 28
             <p style="margin-bottom: 10px;width:25%">参保类型:</p>
24
-            <p style="margin-bottom: 10px;width:50%;">联系电话</p>
25
-            <p style="width:50%;">地址:</p>
26
-            <p style="width:50%;">诊断:</p>
29
+            <p style="margin-bottom: 10px;width:50%;">联系电话:{{patient.phone}}</p>
30
+            <p style="width:50%;">地址:{{patient.unit_address}}</p>
31
+            <p style="width:50%;">诊断:{{patient.diagnose}}</p>
27 32
         </div>
28 33
         <div class="prescriptionBox">
29 34
             <table style="width:100%;text-align:center;line-height:25px;">
@@ -37,24 +42,25 @@
37 42
                     <td>备注</td>
38 43
                     <td>天数</td>
39 44
                 </tr>
40
-                <tr v-for='item in 4'>
41
-                    <td>1</td>
42
-                    <td>啊势均力敌框架爱实力坑爹就爱上了肯德基</td>
43
-                    <td>1</td>
44
-                    <td>1</td>
45
-                    <td>1</td>
46
-                    <td>1</td>
47
-                    <td>1</td>
48
-                    <td>1</td>
45
+                <tr v-for="(item,index) in this.tableData" :key="index">
46
+                    <td>{{index+1}}</td>
47
+                    <td>{{item.project_name}}</td>
48
+                    <td>{{item.single_dose}}</td>
49
+                    <td>{{item.unit}}</td>
50
+                    <td>{{item.price}}</td>
51
+                    <td></td>
52
+                    <td>{{item.remark}}</td>
53
+                    <td>{{item.day}}</td>
54
+                   
49 55
                 </tr>
50 56
             </table>
51 57
         </div>
52 58
         <div class="infoTitle">
53
-            <p>开单医生:就看见</p>
54
-            <p>签章:2020-11-01 09:22:12</p>
59
+            <p>开单医生:{{getDoctor(this.prescriptionInfo[0].creator)?getDoctor(this.prescriptionInfo[0].creator):""}}</p>
60
+            <p>签章:</p>
55 61
         </div>
56 62
         <div class="actionBar">
57
-            <p>执行医生:</p>
63
+            <p>执行医生:{{getDoctor(this.prescriptionInfo[0].creator)?getDoctor(this.prescriptionInfo[0].creator):""}}</p>
58 64
             <p>费用:</p>
59 65
         </div>
60 66
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
@@ -87,16 +93,20 @@
87 93
 </template>
88 94
 <script>
89 95
 import { jsGetAge, uParseTime } from '@/utils/tools'
90
-  import {getAllDoctorList} from "@/api/project/project"
96
+import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
91 97
 export default {
92 98
     props:{
93
-      patient:Object,
94
-      advicePrint:Array,
95
-      hisPatient:Object,
99
+      patient_id:Number,
100
+      record_date:String,
101
+      prescription_id:Number
96 102
     }, 
97 103
     data(){
98
-      return{
99
-        doctorList:[]
104
+      return {
105
+        doctorList:[],
106
+        advicePrint:{},
107
+        patient:{},
108
+        tableData:[],
109
+        prescriptionInfo:[]
100 110
       }
101 111
     },
102 112
    methods:{
@@ -138,9 +148,45 @@ export default {
138 148
         }
139 149
         return ''
140 150
      },
151
+     getPrescriptionPrint(){
152
+         var params = {
153
+          patient_id:this.patient_id,
154
+          record_date:this.record_date,
155
+          prescription_id:this.prescription_id,
156
+        }
157
+        console.log("params---",params)
158
+       getPrescriptionPrint(params).then(response=>{
159
+         if(response.data.state == 1){
160
+            var advicePrint =  response.data.data.advicePrint
161
+            console.log("adviceprint",advicePrint)
162
+            this.advicePrint = advicePrint
163
+            var patient =  response.data.data.patient
164
+            console.log("patient",patient)
165
+            this.patient = patient
166
+            var doctorPorject = response.data.data.doctorPorject
167
+          
168
+            var arr = doctorPorject.project
169
+              console.log("我的中谷歌",arr)
170
+            for(let i=0;i<arr.length;i++){
171
+              console.log("arr",arr[i].project_name)
172
+            }
173
+            this.tableData = arr
174
+            console.log("3333",this.tableData)
175
+            var prescriptioninfo = response.data.data.prescriptionInfo
176
+            console.log("prescriptioninfo",prescriptioninfo)
177
+            this.prescriptionInfo = prescriptioninfo
178
+          }
179
+       })
180
+     }
141 181
    },
142 182
    created(){
143
-    //   this.getAllDoctorList()
183
+      this.getAllDoctorList()
184
+   },
185
+   watch:{
186
+     patient_id:function(val){
187
+       console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
188
+       this.getPrescriptionPrint()
189
+     }
144 190
    }
145 191
 }
146 192
 </script>