Browse Source

检验单

huangyw 2 years ago
parent
commit
575dde3d8b

+ 47 - 51
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

108
             开单日期:
108
             开单日期:
109
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
109
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
110
           </div>
110
           </div>
111
-          <div>医生签字:
112
-            <span
113
-            style="width: 100px; display: inline-block"
114
-            v-if="item.creator == ''"
115
-          >
116
-            {{ item.doctor ? item.doctor : "" }}
117
-          </span>
118
-            <span
119
-            style="width: 100px; display: inline-block"
120
-            v-else-if="doc_name != ''"
121
-          >
122
-            {{ doc_name }}
123
-          </span>
124
-          <img
125
-            style="height: 30px"
126
-            :src="setAdminUserES(item.creator,item.doctor)"
127
-            alt=""
128
-            srcset=""
129
-            v-else
130
-          />
131
-        </div>
132
-            </div>
111
+          <div>
112
+            医生签字:
113
+           
114
+            <img
115
+              v-if="setAdminUserES(projectPrint[0].doctor)"
116
+              style="height: 30px"
117
+              :src="setAdminUserES(projectPrint[0].doctor)"
118
+              alt=""
119
+              srcset=""
120
+            />
121
+             <span
122
+              style="width: 100px; display: inline-block"
123
+              v-else-if="advicePrint[0].doctor != ''"
124
+            >
125
+              {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
126
+            </span>
127
+          </div>
133
         </div>
128
         </div>
134
       </div>
129
       </div>
135
-      <img
136
-        style="width: 100%"
137
-        v-if="org_id == 10138"
138
-        src="https://kuyi.shengws.com/bailin/blend.jpg"
139
-        alt=""
140
-      />
141
-      <img
142
-        style="width: 100%"
143
-        v-if="org_id == 10278"
144
-        src="https://kuyi.shengws.com/bailinbeier.png"
145
-        alt=""
146
-      />
147
     </div>
130
     </div>
131
+    <img
132
+      style="width: 100%"
133
+      v-if="org_id == 10138"
134
+      src="https://kuyi.shengws.com/bailin/blend.jpg"
135
+      alt=""
136
+    />
137
+    <img
138
+      style="width: 100%"
139
+      v-if="org_id == 10278"
140
+      src="https://kuyi.shengws.com/bailinbeier.png"
141
+      alt=""
142
+    />
148
   </div>
143
   </div>
149
 </template>
144
 </template>
150
 <script>
145
 <script>
165
   },
160
   },
166
   data() {
161
   data() {
167
     return {
162
     return {
168
-      doctorList_1:[],
163
+      doctorList_1: [],
169
       doctorList: [],
164
       doctorList: [],
170
       advicePrint: {},
165
       advicePrint: {},
171
       patient: {},
166
       patient: {},
175
       department: [],
170
       department: [],
176
       prescriptions: [],
171
       prescriptions: [],
177
       projectList: [],
172
       projectList: [],
178
-      doc_name:"",
173
+      doc_name: "",
179
       orgname: "",
174
       orgname: "",
180
       diagnoses: [],
175
       diagnoses: [],
181
       pageArr: [],
176
       pageArr: [],
197
       getPatientCaseHistory(params).then((response) => {
192
       getPatientCaseHistory(params).then((response) => {
198
         if (response.data.state == 1) {
193
         if (response.data.state == 1) {
199
           var history = response.data.data.history;
194
           var history = response.data.data.history;
200
-          console.log("中国history222222", history);
195
+          // console.log("中国history222222", history);
201
           this.history = history;
196
           this.history = history;
202
         }
197
         }
203
       });
198
       });
227
       }
222
       }
228
       return "";
223
       return "";
229
     },
224
     },
230
-    
225
+
231
     getPrescriptionPrint() {
226
     getPrescriptionPrint() {
232
       var params = {
227
       var params = {
233
         // patient_id:this.patient_id,
228
         // patient_id:this.patient_id,
239
         ids: this.ids,
234
         ids: this.ids,
240
         p_type: 2,
235
         p_type: 2,
241
       };
236
       };
242
-      console.log("params", params);
237
+      // console.log("params", params);
243
       getPrescriptionPrint(params).then((response) => {
238
       getPrescriptionPrint(params).then((response) => {
244
         if (response.data.state == 1) {
239
         if (response.data.state == 1) {
245
           var advicePrint = response.data.data.advicePrint;
240
           var advicePrint = response.data.data.advicePrint;
246
-          console.log("adviceprint9999", advicePrint);
241
+          // console.log("adviceprint9999", advicePrint);
247
           this.advicePrint = advicePrint;
242
           this.advicePrint = advicePrint;
248
           this.prescriptions = advicePrint;
243
           this.prescriptions = advicePrint;
249
-          console.log("处方222222", this.prescriptions);
244
+          // console.log("处方222222", this.prescriptions);
250
           var hisPatient = response.data.data.hisPatient;
245
           var hisPatient = response.data.data.hisPatient;
251
-          console.log("hisPatient", hisPatient);
246
+          // console.log("hisPatient", hisPatient);
252
           this.hisPatient = hisPatient;
247
           this.hisPatient = hisPatient;
253
           let projectPrint = [];
248
           let projectPrint = [];
254
           let total = 0;
249
           let total = 0;
255
           this.advicePrint.map((item) => {
250
           this.advicePrint.map((item) => {
256
-            console.log("imte233232323232323223", item.project);
251
+            // console.log("imte233232323232323223", item.project);
257
             if (item.project.length > 0) {
252
             if (item.project.length > 0) {
258
               item.project.map((it) => {
253
               item.project.map((it) => {
259
                 if (it.type == 2) {
254
                 if (it.type == 2) {
265
               });
260
               });
266
             }
261
             }
267
           });
262
           });
263
+          // console.log(projectPrint,'projectPrint')
268
           this.doctorList_1 = response.data.data.eles;
264
           this.doctorList_1 = response.data.data.eles;
269
-          console.log(this.doctorList_1, "医生列表");
265
+          // console.log(this.doctorList_1, "医生列表");
270
           if (this.doctorList_1.length > 0) {
266
           if (this.doctorList_1.length > 0) {
271
             var operatorsLen = this.doctorList_1.length;
267
             var operatorsLen = this.doctorList_1.length;
272
             for (var index = 0; index < operatorsLen; index++) {
268
             for (var index = 0; index < operatorsLen; index++) {
296
           this.doctor = this.advicePrint[0].doctor;
292
           this.doctor = this.advicePrint[0].doctor;
297
           this.projectPrint = data;
293
           this.projectPrint = data;
298
           this.singleProjectPrint = data2;
294
           this.singleProjectPrint = data2;
299
-          console.log("99999999999999999", projectPrint);
295
+          console.log("列表", this.projectPrint);
300
           var projectlist = response.data.data.projectlist;
296
           var projectlist = response.data.data.projectlist;
301
 
297
 
302
           var projectlist = response.data.data.projectlist;
298
           var projectlist = response.data.data.projectlist;
303
-          console.log("所有项目列表", projectlist);
299
+          // console.log("所有项目列表", projectlist);
304
           this.projectList = projectlist;
300
           this.projectList = projectlist;
305
           this.getPage();
301
           this.getPage();
306
           let outputlist1Name = response.data.data.his.patient_info
302
           let outputlist1Name = response.data.data.his.patient_info
310
         }
306
         }
311
       });
307
       });
312
     },
308
     },
313
-     // 电子签名
314
-    setAdminUserES(id,name) {
309
+    // 电子签名
310
+    setAdminUserES(id) {
315
       if (id == 0) {
311
       if (id == 0) {
316
         return "";
312
         return "";
317
       }
313
       }
318
       if (id in this.operatorMaps) {
314
       if (id in this.operatorMaps) {
315
+        console.log(this.operatorMaps, "this.operatorMaps");
319
         return this.operatorMaps[id].url;
316
         return this.operatorMaps[id].url;
320
       } else {
317
       } else {
321
-        this.doc_name = name
322
         return "";
318
         return "";
323
       }
319
       }
324
     },
320
     },
329
       getHisPatientDetail(params).then((response) => {
325
       getHisPatientDetail(params).then((response) => {
330
         if (response.data.state == 1) {
326
         if (response.data.state == 1) {
331
           var hisPatient = response.data.data.hisPatient;
327
           var hisPatient = response.data.data.hisPatient;
332
-          console.log("挂号病人", hisPatient);
328
+          // console.log("挂号病人", hisPatient);
333
           this.hisPatient = hisPatient;
329
           this.hisPatient = hisPatient;
334
         }
330
         }
335
       });
331
       });
339
         if (response.data.state == 1) {
335
         if (response.data.state == 1) {
340
           this.department = response.data.data.department;
336
           this.department = response.data.data.department;
341
           this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
337
           this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
342
-          console.log("争端", this.diagnoses);
338
+          // console.log("争端", this.diagnoses);
343
         }
339
         }
344
       });
340
       });
345
     },
341
     },

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

255
             label="处方编号"
255
             label="处方编号"
256
             width="120">
256
             width="120">
257
           <template slot-scope="scope">
257
           <template slot-scope="scope">
258
-            <span>检验单1</span>
258
+            <span>检验单</span>
259
           </template>
259
           </template>
260
         </el-table-column>
260
         </el-table-column>
261
         <el-table-column label="检验单号">
261
         <el-table-column label="检验单号">