Browse Source

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

XMLWAN 2 years ago
parent
commit
6e107ea2d3

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -754,10 +754,12 @@
754 754
                             ? prescription.dialyzer_perfusion_apparatus
755 755
                             : ""
756 756
                         }}
757
+                        <span v-if="!prescription.dialysis_dialyszers&&!prescription.dialyzer_perfusion_apparatus">/</span>
758
+                        <span v-if="prescription.dialysis_dialyszers">/</span>
757 759
                         {{
758 760
                           prescription.dialysis_dialyszers
759 761
                             ? prescription.dialysis_dialyszers
760
-                            : "/"
762
+                            : ""
761 763
                         }}
762 764
                       </div>
763 765
                     </div>

+ 5 - 2
src/xt_pages/hospitalStation/components/deskRecord.vue View File

@@ -132,6 +132,7 @@
132 132
 
133 133
       <el-form-item label="体格检查: " prop="name">
134 134
         <el-input
135
+          type="textarea"
135 136
           v-model="physical_examination"
136 137
           placeholder="体格检查"
137 138
         ></el-input>
@@ -139,6 +140,7 @@
139 140
 
140 141
       <el-form-item label="专科检查: " prop="name">
141 142
         <el-input
143
+          type="textarea"
142 144
           v-model="special_inspection"
143 145
           placeholder="专科检查"
144 146
         ></el-input>
@@ -146,6 +148,7 @@
146 148
 
147 149
       <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
148 150
         <el-input
151
+          type="textarea"
149 152
           v-model="lab_apparatus"
150 153
           placeholder="实验室及器械检查"
151 154
         ></el-input>
@@ -180,13 +183,13 @@
180 183
         <el-input
181 184
           v-model="case_history.sbp"
182 185
           placeholder="血压"
183
-          style="width: 50px"
186
+          style="width: 60px"
184 187
         ></el-input>
185 188
         /
186 189
         <el-input
187 190
           v-model="case_history.dbp"
188 191
           placeholder="血压"
189
-          style="width: 50px"
192
+          style="width: 60px"
190 193
         ></el-input>
191 194
         mmHg
192 195
       </el-form-item>

+ 21 - 19
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -3878,27 +3878,29 @@
3878 3878
 
3879 3879
       },
3880 3880
 
3881
-      opentwo(index) {
3882
-        
3883
-        if (index == 1) {
3884
-          if (this.patientInfo.id == undefined) {
3885
-            this.$message.error('请先选择病人')
3886
-            return
3887
-          }
3888
-          this.$refs.child.createCaseHistory()
3889
-        } else if (index == 2) {
3890
-          this.recordVisible = true
3891
-          this.$refs.recordPrint.show(this.patientid)
3892
-
3893
-          // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
3894
-        } else if (index == 3) {
3895
-          var mode_status = this.$refs.saveRecordTemplate.mode_status
3896
-          this.$refs.medicalRecord.show(mode_status)
3897
-        } else if (index == 4) {
3898
-          this.$refs.saveRecordTemplate.show(this.case_history)
3881
+    // 电子病历打印
3882
+    opentwo(index) {
3883
+      if (index == 1) {
3884
+        if (this.patientInfo.id == undefined) {
3885
+          this.$message.error('请先选择病人')
3886
+          return
3899 3887
         }
3888
+        this.$refs.child.createCaseHistory()
3889
+      } else if (index == 2) {
3890
+        this.recordVisible = true
3891
+        this.$nextTick(() => {
3892
+          this.$refs.recordPrint.show(this.patientid,this.org_id)
3893
+        })
3894
+        // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
3895
+      } else if (index == 3) {
3896
+        var mode_status = this.$refs.saveRecordTemplate.mode_status
3897
+        this.$refs.medicalRecord.show(mode_status)
3898
+      } else if (index == 4) {
3899
+        this.$refs.saveRecordTemplate.show(this.case_history)
3900
+      }
3901
+
3902
+    },
3900 3903
 
3901
-      },
3902 3904
       // changePatient(val){
3903 3905
       //   console.log("患者val",val)
3904 3906
       //   this.hisPatientInfo = val.hisPatientInfo

+ 18 - 8
src/xt_pages/hospitalStation/recordPrint.vue View File

@@ -70,10 +70,20 @@ export default {
70 70
       educationOptions:[],
71 71
       history:{},
72 72
       keyword:"",
73
-      org_id,
73
+      org_id:0,
74 74
     };
75 75
   },
76 76
   methods: {
77
+
78
+    show(val, id) {
79
+      this.org_id = id;
80
+      if (id == 10217 || id == 9675 || id == 9671 || id == 0) {
81
+        this.$refs.printTwo.show(val);
82
+      } else {
83
+        this.$refs.printOne.show(val);
84
+      }
85
+    },
86
+
77 87
     getAdminUser(id) {
78 88
       if (id == 0) {
79 89
         return "";
@@ -106,14 +116,14 @@ export default {
106 116
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
107 117
       
108 118
       
109
-      if (this.org_id != 10217 && this.org_id != 0) {
119
+      if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675) {
110 120
         printJS({
111 121
           printable: "prescription-print",
112 122
           type: "html",
113 123
           style: style,
114 124
           scanStyles: false,
115 125
         });
116
-      } else if (this.org_id == 10217 || this.org_id == 0) {
126
+      } else if (this.org_id == 10217 || this.org_id == 0|| this.org_id == 9675) {
117 127
         printJS({
118 128
           printable: "prescription-print",
119 129
           type: "html",
@@ -173,11 +183,11 @@ export default {
173 183
 
174 184
   },
175 185
   created() {
176
-    // this.getPatientList()
177
-     this.org_id = this.$store.getters.xt_user.org.id;
178
-    console.log("=====", this.org_id);
179
-    this.$refs.printOne.show(this.patientid);
180
-    this.$refs.printTwo.show(this.patientid);
186
+    // // this.getPatientList()
187
+    //  this.org_id = this.$store.getters.xt_user.org.id;
188
+    // console.log("=====", this.org_id);
189
+    // this.$refs.printOne.show(this.patientid);
190
+    // this.$refs.printTwo.show(this.patientid);
181 191
 
182 192
   },
183 193
   // computed:{

+ 5 - 5
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue View File

@@ -14,7 +14,7 @@
14 14
       <div class="infoTitle" style="margin-top:20px;">
15 15
         <div class="name_slot">姓名:{{ patient.name ? patient.name : "" }}</div>
16 16
         <div class="address_slot">
17
-          家庭住址:{{ patient.home_address ? patient.home_address : "" }}深圳市南山区桃园街道新屋村东区三号楼303
17
+          家庭住址:{{ patient.home_address ? patient.home_address : "" }}
18 18
         </div>
19 19
       </div>
20 20
       <div class="infoTitle">
@@ -119,7 +119,7 @@
119 119
         <div>实验室及器械检查</div>
120 120
         <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
121 121
       </div>
122
-      <div style="display: flex; justify-content: end">
122
+      <div style="display: flex; justify-content:flex-end">
123 123
         <div class="endInfo">
124 124
           <div style="height: 100px">
125 125
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
@@ -270,9 +270,9 @@ export default {
270 270
   },
271 271
   created() {
272 272
     this.educationOptions = getDataConfig("patient", "education_types");
273
-    this.getAllDoctorList();
274
-    this.getPatientCaseHistory();
275
-    this.getAccessList()
273
+    // this.getAllDoctorList();
274
+    // this.getPatientCaseHistory();
275
+    // this.getAccessList()
276 276
     var xtuser = this.$store.getters.xt_user;
277 277
     this.orgname = xtuser.org.org_name;
278 278
     var data = new Date();

+ 5 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -132,6 +132,7 @@
132 132
 
133 133
       <el-form-item label="体格检查: " prop="name">
134 134
         <el-input
135
+          type="textarea"
135 136
           v-model="physical_examination"
136 137
           placeholder="体格检查"
137 138
         ></el-input>
@@ -139,6 +140,7 @@
139 140
 
140 141
       <el-form-item label="专科检查: " prop="name">
141 142
         <el-input
143
+          type="textarea"
142 144
           v-model="special_inspection"
143 145
           placeholder="专科检查"
144 146
         ></el-input>
@@ -146,6 +148,7 @@
146 148
 
147 149
       <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
148 150
         <el-input
151
+          type="textarea"
149 152
           v-model="lab_apparatus"
150 153
           placeholder="实验室及器械检查"
151 154
         ></el-input>
@@ -180,13 +183,13 @@
180 183
         <el-input
181 184
           v-model="case_history.sbp"
182 185
           placeholder="血压"
183
-          style="width: 50px"
186
+          style="width: 60px"
184 187
         ></el-input>
185 188
         /
186 189
         <el-input
187 190
           v-model="case_history.dbp"
188 191
           placeholder="血压"
189
-          style="width: 50px"
192
+          style="width: 60px"
190 193
         ></el-input>
191 194
         mmHg
192 195
       </el-form-item>

+ 25 - 22
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -305,7 +305,6 @@
305 305
         class="centerDialog"
306 306
         width="600px"
307 307
         title="打印"
308
-        destroy-on-close
309 308
         :visible.sync="recordVisible">
310 309
       <recordPrint :patientid="patientid" ref="recordPrint">
311 310
     </recordPrint>
@@ -433,10 +432,35 @@ export default {
433 432
     changeTimeTwo() {
434 433
       this.getList()
435 434
     },
435
+    // 电子处方打印
436 436
     openPrint() {
437 437
       // this.centerDialogVisible = true
438 438
       this.getPrescriptionList(this.patientInfo.id, this.record_date)
439 439
     },
440
+
441
+    // 电子病历打印
442
+    opentwo(index) {
443
+      if (index == 1) {
444
+        if (this.patientInfo.id == undefined) {
445
+          this.$message.error('请先选择病人')
446
+          return
447
+        }
448
+        this.$refs.child.createCaseHistory()
449
+      } else if (index == 2) {
450
+        this.recordVisible = true
451
+        this.$nextTick(() => {
452
+          this.$refs.recordPrint.show(this.patientid,this.org_id)
453
+        })
454
+        // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
455
+      } else if (index == 3) {
456
+        var mode_status = this.$refs.saveRecordTemplate.mode_status
457
+        this.$refs.medicalRecord.show(mode_status)
458
+      } else if (index == 4) {
459
+        this.$refs.saveRecordTemplate.show(this.case_history)
460
+      }
461
+
462
+    },
463
+
440 464
     allCheck() {
441 465
       this.$refs.multipleTable1.toggleAllSelection()
442 466
       this.$refs.multipleTable2.toggleAllSelection()
@@ -4590,27 +4614,6 @@ export default {
4590 4614
 
4591 4615
     },
4592 4616
 
4593
-    opentwo(index) {
4594
-      if (index == 1) {
4595
-        if (this.patientInfo.id == undefined) {
4596
-          this.$message.error('请先选择病人')
4597
-          return
4598
-        }
4599
-        this.$refs.child.createCaseHistory()
4600
-      } else if (index == 2) {
4601
-
4602
-          this.recordVisible = true
4603
-        this.$refs.recordPrint.show(this.patientid)
4604
-        
4605
-        // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
4606
-      } else if (index == 3) {
4607
-        var mode_status = this.$refs.saveRecordTemplate.mode_status
4608
-        this.$refs.medicalRecord.show(mode_status)
4609
-      } else if (index == 4) {
4610
-        this.$refs.saveRecordTemplate.show(this.case_history)
4611
-      }
4612
-
4613
-    },
4614 4617
     // changePatient(val){
4615 4618
     //   console.log("患者val",val)
4616 4619
     //   this.hisPatientInfo = val.hisPatientInfo

+ 16 - 10
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -13,7 +13,7 @@
13 13
 
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 15
       <printOne
16
-        v-if="org_id != 9675 && org_id != 9671 && org_id != 0"
16
+        v-if="org_id && org_id != 9675 && org_id != 9671 && org_id != 0"
17 17
         ref="printOne"
18 18
         v-bind:childResponse="childResponse"
19 19
         :patient="patient"
@@ -70,16 +70,18 @@ export default {
70 70
       educationOptions: [],
71 71
       history: {},
72 72
       keyword: "",
73
-      org_id,
73
+      org_id: 0,
74 74
     };
75 75
   },
76 76
 
77
-
78 77
   methods: {
79
-    show(val) {
80
-      console.log(val,'ooooooo')
81
-      this.$refs.printOne.show(val);
82
-      this.$refs.printTwo.show(val);
78
+    show(val, id) {
79
+      this.org_id = id;
80
+      if (id == 10217 || id == 9675 || id == 9671 || id == 0) {
81
+        this.$refs.printTwo.show(val);
82
+      } else {
83
+        this.$refs.printOne.show(val);
84
+      }
83 85
     },
84 86
     getAdminUser(id) {
85 87
       if (id == 0) {
@@ -112,14 +114,18 @@ export default {
112 114
       const style1 =
113 115
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
114 116
 
115
-      if (this.org_id != 10217 && this.org_id != 0) {
117
+      if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675) {
116 118
         printJS({
117 119
           printable: "prescription-print",
118 120
           type: "html",
119 121
           style: style,
120 122
           scanStyles: false,
121 123
         });
122
-      } else if (this.org_id == 10217 || this.org_id == 0) {
124
+      } else if (
125
+        this.org_id == 10217 ||
126
+        this.org_id == 0 ||
127
+        this.org_id == 9675
128
+      ) {
123 129
         printJS({
124 130
           printable: "prescription-print",
125 131
           type: "html",
@@ -177,7 +183,7 @@ export default {
177 183
   },
178 184
   created() {
179 185
     // this.getPatientList()
180
-    this.org_id = this.$store.getters.xt_user.org.id;
186
+    // this.org_id = this.$store.getters.xt_user.org.id;
181 187
     // console.log("=====", this.org_id);
182 188
     // this.$refs.printOne.show(this.patientid);
183 189
     // this.$refs.printTwo.show(this.patientid);

+ 8 - 5
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue View File

@@ -128,8 +128,11 @@
128 128
             >
129 129
             <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
130 130
           </div>
131
+           <div style="text-align:left;">
132
+          {{history.physical_examination}}
131 133
         </div>
132
-        <div></div>
134
+        </div>
135
+
133 136
       </div>
134 137
       <div class="recordTitle">
135 138
         <div>专科检查</div>
@@ -141,7 +144,7 @@
141 144
           {{ history.lab_apparatus }}
142 145
         </div>
143 146
       </div>
144
-      <div style="display: flex; justify-content: end">
147
+      <div style="display: flex; justify-content: flex-end">
145 148
         <div class="endInfo">
146 149
           <div style="height: 100px">
147 150
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
@@ -298,9 +301,9 @@ export default {
298 301
   },
299 302
   created() {
300 303
     this.educationOptions = getDataConfig("patient", "education_types");
301
-    this.getAllDoctorList();
302
-    this.getPatientCaseHistory();
303
-    this.getAccessList();
304
+    // this.getAllDoctorList();
305
+    // this.getPatientCaseHistory();
306
+    // this.getAccessList();
304 307
     var xtuser = this.$store.getters.xt_user;
305 308
     this.orgname = xtuser.org.org_name;
306 309
     var data = new Date();