瀏覽代碼

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

28169 3 月之前
父節點
當前提交
8dc0693e24

+ 5 - 1
src/xt_pages/drugSourceCode/drugQuery.vue 查看文件

173
             <div>{{scope.row.DrugTracCodg}}</div>
173
             <div>{{scope.row.DrugTracCodg}}</div>
174
           </template>
174
           </template>
175
         </el-table-column>
175
         </el-table-column>
176
-
176
+        <el-table-column align="center" prop="name" label="上传日期">
177
+          <template slot-scope="scope">
178
+            <div>{{scope.row.UpdtTime}}</div>
179
+          </template>
180
+        </el-table-column>
177
 
181
 
178
         <el-table-column align="center" prop="total" label="批次流水号">
182
         <el-table-column align="center" prop="total" label="批次流水号">
179
           <template slot-scope="scope">
183
           <template slot-scope="scope">

+ 108 - 168
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="prescriptionPrint">
2
   <div id="prescriptionPrint">
3
-    <div v-for="(item, index) in advicePrint" :key="index"  style="page-break-after: always">
4
-      <div
5
-        id="prescription-print"
6
-        class="prescription-print"
7
-       
8
-      >
3
+    <div v-for="(item, index) in advicePrint" :key="index" style="page-break-after: always">
4
+      <div id="prescription-print" class="prescription-print">
9
         <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
5
         <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
           {{ orgname }}第一类精神处方笺
6
           {{ orgname }}第一类精神处方笺
11
         </div>
7
         </div>
12
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
8
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
           {{ orgname }}第二类精神处方笺
9
           {{ orgname }}第二类精神处方笺
14
         </div>
10
         </div>
15
-        <div
16
-          class="printTitle"
17
-          v-if="
18
-            prescriptions[index].med_type != '1111' &&
19
-            prescriptions[index].med_type != '1112'
20
-          "
21
-        >
11
+        <div class="printTitle" v-if="
12
+          prescriptions[index].med_type != '1111' &&
13
+          prescriptions[index].med_type != '1112'
14
+        ">
22
           {{ orgname }}处方笺
15
           {{ orgname }}处方笺
23
         </div>
16
         </div>
24
-        <div >
17
+        <div>
25
           <div class="infoTitle">
18
           <div class="infoTitle">
26
             <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
19
             <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
             <p>
20
             <p>
39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
             </div>
33
             </div>
41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
34
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
42
-              身份证号:{{newHisPatient.id_card_no | testfile}}
35
+              身份证号:{{ newHisPatient.id_card_no | testfile }}
43
             </div>
36
             </div>
44
             <div style="margin-bottom: 10px" v-else>
37
             <div style="margin-bottom: 10px" v-else>
45
               医保卡号:
38
               医保卡号:
56
             </div>
49
             </div>
57
           </div>
50
           </div>
58
         </div>
51
         </div>
59
-        <div class="prescriptionBox" :style="{'min-height':org_id != 10724? '350px':'450px'}">
52
+        <div class="prescriptionBox" :style="{ 'min-height': org_id != 10724 ? '350px' : '450px' }">
60
           <div class="Rp">Rp:</div>
53
           <div class="Rp">Rp:</div>
61
-          <div class="drugsBox" 
62
-            v-for="(it, index1) in item.advices"
63
-            :key="index1"
64
-            :style="{'page-break-after':index1==yi&&item.advices.length>7? 'always':'auto','position': 'relative'}"
65
-          >
66
-            <template v-if="index1==yi+1&&item.advices.length>7">
54
+          <div class="drugsBox" v-for="(it, index1) in item.advices" :key="index1"
55
+            :style="{ 'page-break-after': index1 == yi && item.advices.length > 7 ? 'always' : 'auto', 'position': 'relative' }">
56
+            <template v-if="index1 == yi + 1 && item.advices.length > 7">
67
 
57
 
68
               <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
58
               <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
69
                 {{ orgname }}第一类精神处方笺
59
                 {{ orgname }}第一类精神处方笺
71
               <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
61
               <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
72
                 {{ orgname }}第二类精神处方笺
62
                 {{ orgname }}第二类精神处方笺
73
               </div>
63
               </div>
74
-              <div
75
-                class="printTitle"
76
-                v-if="
77
-                  prescriptions[index].med_type != '1111' &&
78
-                  prescriptions[index].med_type != '1112'
79
-                "
80
-              >
64
+              <div class="printTitle" v-if="
65
+                prescriptions[index].med_type != '1111' &&
66
+                prescriptions[index].med_type != '1112'
67
+              ">
81
                 {{ orgname }}处方笺
68
                 {{ orgname }}处方笺
82
               </div>
69
               </div>
83
               <div style="margin-bottom: 10px;">
70
               <div style="margin-bottom: 10px;">
98
                     科室:{{ item.info ? getDepart(item.info.departments) : "" }}
85
                     科室:{{ item.info ? getDepart(item.info.departments) : "" }}
99
                   </div>
86
                   </div>
100
                   <div style="margin-bottom: 10px" v-if="org_id == 10537">
87
                   <div style="margin-bottom: 10px" v-if="org_id == 10537">
101
-                    身份证号:{{newHisPatient.id_card_no | testfile}}
88
+                    身份证号:{{ newHisPatient.id_card_no | testfile }}
102
                   </div>
89
                   </div>
103
                   <div style="margin-bottom: 10px" v-else>
90
                   <div style="margin-bottom: 10px" v-else>
104
                     医保卡号:
91
                     医保卡号:
117
               </div>
104
               </div>
118
             </template>
105
             </template>
119
             <div class="drugsOne">
106
             <div class="drugsOne">
120
-              <span style="font-weight: bold">{{ index1 + 1 + "." }}</span
121
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
122
-              v-if="it.drug.min_unit != it.drug.dose_unit"
123
-              >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
124
-              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
107
+              <span style="font-weight: bold">{{ index1 + 1 + "." }}</span>{{ it.advice_name ? it.advice_name : ""
108
+              }}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{ it.drug.dose }}{{ it.drug.dose_unit
109
+                }}&nbsp;*
110
+                &nbsp;</span>{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
125
                   it.drug.max_unit
111
                   it.drug.max_unit
126
                 }}&nbsp;×&nbsp; {{ it.prescribing_number
112
                 }}&nbsp;×&nbsp; {{ it.prescribing_number
127
-                }}{{ it.prescribing_number_unit }}
113
+              }}{{ it.prescribing_number_unit }}
128
               <!-- <div style="display: inline-block;margin-left: 30px;" v-if="org_id ==10210 || org_id ==0">
114
               <!-- <div style="display: inline-block;margin-left: 30px;" v-if="org_id ==10210 || org_id ==0">
129
                 <span>{{ it.price}}</span>
115
                 <span>{{ it.price}}</span>
130
               </div> -->
116
               </div> -->
131
             </div>
117
             </div>
132
             <div style="margin-left: 100px">
118
             <div style="margin-left: 100px">
133
-                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
134
-                >&nbsp;&nbsp;<span
135
-              >{{ it.execution_frequency }}&nbsp;{{
119
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.execution_frequency
120
+                }}&nbsp;{{
136
                   it.delivery_way
121
                   it.delivery_way
137
-                }}&nbsp;</span
138
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
122
+                }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
139
             </div>
123
             </div>
140
             <!-- 单价 -->
124
             <!-- 单价 -->
141
             <div style="display: inline-block;position: relative; top:-38px;left: 80%;"
125
             <div style="display: inline-block;position: relative; top:-38px;left: 80%;"
142
-              v-if="org_id ==10210 || org_id ==0">
143
-                <span>{{ it.price}}</span>
126
+              v-if="org_id == 10210">
127
+              <span>{{ it.price }}</span>
144
             </div>
128
             </div>
145
-            <template v-if="index1==yi&&item.advices.length>7">
129
+            <template v-if="index1 == yi && item.advices.length > 7">
146
               <div class="doctorBox">
130
               <div class="doctorBox">
147
                 <p v-if="org_id == 10217">
131
                 <p v-if="org_id == 10217">
148
                   医师:
132
                   医师:
149
-                  <span
150
-                    style="width: 100px; display: inline-block"
151
-                    v-if="item.creator == ''"
152
-                  >
153
-                      {{ item.doctor }}
154
-                    </span>
155
-                  <span
156
-                    style="width: 100px; display: inline-block"
157
-                    v-else-if="doc_name != ''"
158
-                  >
159
-                      {{ doc_name }}
160
-                    </span>
161
-                  <img
162
-                    style="height: 50px;"
163
-                    :src="setAdminUserES(item.creator,item.doctor)"
164
-                    alt=""
165
-                    srcset=""
166
-                    v-else
167
-                  />
133
+                  <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
134
+                    {{ item.doctor }}
135
+                  </span>
136
+                  <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
137
+                    {{ doc_name }}
138
+                  </span>
139
+                  <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
168
                 </p>
140
                 </p>
169
                 <p v-if="org_id == 10510 || org_id == 10265">
141
                 <p v-if="org_id == 10510 || org_id == 10265">
170
                   医师:
142
                   医师:
171
-                  <span
172
-                    style="width: 100px; display: inline-block"
173
-                    v-if="item.creator == ''"
174
-                  >
175
-                      {{ item.doctor }}
176
-                    </span>
177
-                  <span
178
-                    style="width: 100px; display: inline-block"
179
-                    v-else-if="doc_name != ''"
180
-                  >
181
-                      {{ doc_name }}
182
-                    </span>
183
-                  <img
184
-                    style="height: 50px;"
185
-                    :src="setAdminUserES(item.creator,item.doctor)"
186
-                    alt=""
187
-                    srcset=""
188
-                    v-else
189
-                  />
143
+                  <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
144
+                    {{ item.doctor }}
145
+                  </span>
146
+                  <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
147
+                    {{ doc_name }}
148
+                  </span>
149
+                  <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
190
                 </p>
150
                 </p>
191
-                <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265">
151
+                <p v-if="org_id != 10217 && org_id != 10510 && org_id != 10265">
192
                   医师: {{ item.doctor ? item.doctor : "" }}
152
                   医师: {{ item.doctor ? item.doctor : "" }}
193
                 </p>
153
                 </p>
194
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
154
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
209
             </template>
169
             </template>
210
           </div>
170
           </div>
211
 
171
 
212
-          <div
213
-            class="drugsBox"
214
-            v-for="(it, i) in item.additionalcharge"
215
-            :key="i"
216
-          >
172
+          <div class="drugsBox" v-for="(it, i) in item.additionalcharge" :key="i">
217
             <div class="drugsOne">
173
             <div class="drugsOne">
218
               {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
174
               {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
219
                 it.count
175
                 it.count
221
             </div>
177
             </div>
222
           </div>
178
           </div>
223
 
179
 
224
-          <div
225
-            class="drugsBox"
226
-            v-for="(it, index) in item.project"
227
-            :key="index"
228
-          >
180
+          <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
229
             <div class="drugsOne">
181
             <div class="drugsOne">
230
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
231
-              >{{
182
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span>{{
232
                 it.type == 2
183
                 it.type == 2
233
                   ? getProjectName(it.project_id)
184
                   ? getProjectName(it.project_id)
234
                     ? getProjectName(it.project_id)
185
                     ? getProjectName(it.project_id)
238
               }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
189
               }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
239
             </div>
190
             </div>
240
             <div style="margin-left: 100px">
191
             <div style="margin-left: 100px">
241
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
242
-              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
243
-            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
192
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.delivery_way
193
+                }}</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
244
             </div>
194
             </div>
245
           </div>
195
           </div>
246
 
196
 
247
-          <div
248
-            class="drugsBox"
249
-            v-for="(it, i) in item.additionalcharge"
250
-            :key="i"
251
-          >
197
+          <div class="drugsBox" v-for="(it, i) in item.additionalcharge" :key="i">
252
             <div class="drugsOne">
198
             <div class="drugsOne">
253
               {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
199
               {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
254
                 it.price.toFixed(2)
200
                 it.price.toFixed(2)
261
         <div class="doctorBox">
207
         <div class="doctorBox">
262
           <p v-if="org_id == 10217">
208
           <p v-if="org_id == 10217">
263
             医师:
209
             医师:
264
-            <span
265
-              style="width: 100px; display: inline-block"
266
-              v-if="item.creator == ''"
267
-            >
268
-                {{ item.doctor }}
269
-              </span>
270
-            <span
271
-              style="width: 100px; display: inline-block"
272
-              v-else-if="doc_name != ''"
273
-            >
274
-                {{ doc_name }}
275
-              </span>
276
-            <img
277
-              style="height: 50px;"
278
-              :src="setAdminUserES(item.creator,item.doctor)"
279
-              alt=""
280
-              srcset=""
281
-              v-else
282
-            />
210
+            <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
211
+              {{ item.doctor }}
212
+            </span>
213
+            <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
214
+              {{ doc_name }}
215
+            </span>
216
+            <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
283
           </p>
217
           </p>
284
-          <p v-if="org_id == 10510  || org_id == 10265 || org_id ==0">
218
+          <p v-if="org_id == 10510 || org_id == 10265">
285
             医师:
219
             医师:
286
-            <span
287
-              style="width: 100px; display: inline-block"
288
-              v-if="item.creator == ''"
289
-            >
290
-                {{ item.doctor }}
291
-              </span>
292
-            <span
293
-              style="width: 100px; display: inline-block"
294
-              v-else-if="doc_name != ''"
295
-            >
296
-                {{ doc_name }}
297
-              </span>
298
-            <img
299
-              style="height: 50px;"
300
-              :src="setAdminUserES(item.creator,item.doctor)"
301
-              alt=""
302
-              srcset=""
303
-              v-else
304
-            /> &nbsp;&nbsp;
305
-            <span v-if="org_id == 10265 || org_id ==0">
220
+            <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
221
+              {{ item.doctor }}
222
+            </span>
223
+            <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
224
+              {{ doc_name }}
225
+            </span>
226
+            <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
227
+            &nbsp;&nbsp;
228
+            <span v-if="org_id == 10265 || org_id == 0">
306
               {{ item.doctor ? item.doctor : "" }}
229
               {{ item.doctor ? item.doctor : "" }}
307
             </span>
230
             </span>
308
-            
231
+
309
           </p>
232
           </p>
310
-          <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265 && org_id !=0">
233
+          <p v-if="org_id != 10217 && org_id != 10510 && org_id != 10265 && org_id != 0">
311
             医师: {{ item.doctor ? item.doctor : "" }}
234
             医师: {{ item.doctor ? item.doctor : "" }}
312
           </p>
235
           </p>
313
-          <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
236
+          <p v-if="org_id !=10751">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
237
+          <p v-if="org_id ==10751 || org_id == 0">日期:{{ getTime(item.pre_time) ? getTime(item.pre_time) : "" }}</p>
314
         </div>
238
         </div>
315
         <div class="actionBar">
239
         <div class="actionBar">
316
           <p>审核:</p>
240
           <p>审核:</p>
338
   getHisPatientDetail,
262
   getHisPatientDetail,
339
 } from "@/api/project/project";
263
 } from "@/api/project/project";
340
 import { getInitData } from "@/api/his/his";
264
 import { getInitData } from "@/api/his/his";
341
-export default{
265
+export default {
342
   props: {
266
   props: {
343
     patient_id: Number,
267
     patient_id: Number,
344
     record_date: String,
268
     record_date: String,
347
   },
271
   },
348
   data() {
272
   data() {
349
     return {
273
     return {
350
-      doc_name:"",
274
+      doc_name: "",
351
       doctorList: [],
275
       doctorList: [],
352
       advicePrint: {},
276
       advicePrint: {},
353
-      yi:4,
354
-      arr:[],
355
-      arrs:{},
356
-      advicess:[],
357
-      page:sessionStorage.getItem('dayin'),
277
+      yi: 4,
278
+      arr: [],
279
+      arrs: {},
280
+      advicess: [],
281
+      page: sessionStorage.getItem('dayin'),
358
       patient: {},
282
       patient: {},
359
       tableData: [],
283
       tableData: [],
360
       prescriptionInfo: [],
284
       prescriptionInfo: [],
369
       operators: [],
293
       operators: [],
370
       doctorList_1: [],
294
       doctorList_1: [],
371
     };
295
     };
372
-  },filters: {
373
-    testfile (value) {
296
+  }, filters: {
297
+    testfile(value) {
374
       const start = value.slice(0, 6)
298
       const start = value.slice(0, 6)
375
       const end = value.slice(-4)
299
       const end = value.slice(-4)
376
       return `${start}******${end}`
300
       return `${start}******${end}`
378
   },
302
   },
379
   methods: {
303
   methods: {
380
     // 电子签名
304
     // 电子签名
381
-    setAdminUserES(id,name) {
305
+    setAdminUserES(id, name) {
382
       console.log(id)
306
       console.log(id)
383
       console.log(name)
307
       console.log(name)
384
       console.log(this.operatorMaps)
308
       console.log(this.operatorMaps)
395
       }
319
       }
396
     },
320
     },
397
     getAge(patient) {
321
     getAge(patient) {
398
-      if(patient.id_card_no == "TWN001836483"){
322
+      if (patient.id_card_no == "TWN001836483") {
399
         return patient.age
323
         return patient.age
400
-      }else{
324
+      } else {
401
         var thisLen = patient.id_card_no.length;
325
         var thisLen = patient.id_card_no.length;
402
         var birth = "";
326
         var birth = "";
403
         if (thisLen == 15) {
327
         if (thisLen == 15) {
592
       }
516
       }
593
       return name;
517
       return name;
594
     },
518
     },
595
-    merge(arrA){
596
-      var len=arrA.lenfth
519
+    merge(arrA) {
520
+      var len = arrA.lenfth
597
       // for(let j=0;j<this.advicess.length;j++){
521
       // for(let j=0;j<this.advicess.length;j++){
598
       //   for(let x=j+1;x<this.advicess.length;x++){
522
       //   for(let x=j+1;x<this.advicess.length;x++){
599
       //     if(this.advicess[j].groupno == this.advicess[x].groupno){
523
       //     if(this.advicess[j].groupno == this.advicess[x].groupno){
602
       //     }
526
       //     }
603
       //   }
527
       //   }
604
       // }
528
       // }
605
-      for(let j=0;j<len;j++){
606
-        for(let x=j+1;x<len;x++){
607
-          if(arrA[j].groupno == arrA[x].groupno){
608
-            this.arr.push(arrA.splice(x,1))
529
+      for (let j = 0; j < len; j++) {
530
+        for (let x = j + 1; x < len; x++) {
531
+          if (arrA[j].groupno == arrA[x].groupno) {
532
+            this.arr.push(arrA.splice(x, 1))
609
           }
533
           }
610
         }
534
         }
611
       }
535
       }
612
-      console.log('777777777',this.arr);
536
+      console.log('777777777', this.arr);
613
       return this.arr
537
       return this.arr
614
     }
538
     }
615
   },
539
   },
648
 <style lang="scss" scoped>
572
 <style lang="scss" scoped>
649
 .prescription-print {
573
 .prescription-print {
650
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
574
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
651
-  0 0 60px rgba(0, 0, 0, 0.06) inset;
575
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
652
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
576
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
653
-  0 0 40px rgba(0, 0, 0, 0.06) inset;
577
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
654
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
578
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
655
   margin-bottom: 20px;
579
   margin-bottom: 20px;
656
   padding: 20px 10px;
580
   padding: 20px 10px;
657
 }
581
 }
582
+
658
 .printTitle {
583
 .printTitle {
659
   font-size: 22px;
584
   font-size: 22px;
660
   text-align: center;
585
   text-align: center;
661
   font-weight: bold;
586
   font-weight: bold;
662
 }
587
 }
588
+
663
 .infoTitle {
589
 .infoTitle {
664
   display: flex;
590
   display: flex;
665
   border-bottom: 2px solid #000;
591
   border-bottom: 2px solid #000;
667
   line-height: 24px;
593
   line-height: 24px;
668
   padding: 0 10px;
594
   padding: 0 10px;
669
 }
595
 }
596
+
670
 .infoTitle p {
597
 .infoTitle p {
671
   width: 200px;
598
   width: 200px;
672
 }
599
 }
600
+
673
 .infoMain {
601
 .infoMain {
674
   display: flex;
602
   display: flex;
675
   flex-wrap: wrap;
603
   flex-wrap: wrap;
676
   border-bottom: 2px solid #000;
604
   border-bottom: 2px solid #000;
677
   padding: 0 10px;
605
   padding: 0 10px;
678
 }
606
 }
607
+
679
 .infoMain div {
608
 .infoMain div {
680
   width: 50%;
609
   width: 50%;
681
   line-height: 24px;
610
   line-height: 24px;
682
 }
611
 }
612
+
683
 .prescriptionBox {
613
 .prescriptionBox {
684
   padding: 0 10px;
614
   padding: 0 10px;
685
   min-height: 450px;
615
   min-height: 450px;
686
 }
616
 }
617
+
687
 .Rp {
618
 .Rp {
688
   font-size: 22px;
619
   font-size: 22px;
689
   font-weight: bold;
620
   font-weight: bold;
690
 }
621
 }
622
+
691
 .drugsBox {
623
 .drugsBox {
692
   padding-left: 40px;
624
   padding-left: 40px;
693
   margin-bottom: 10px;
625
   margin-bottom: 10px;
694
   position: relative;
626
   position: relative;
695
 }
627
 }
628
+
696
 .drugsBox div {
629
 .drugsBox div {
697
   line-height: 20px;
630
   line-height: 20px;
698
 }
631
 }
632
+
699
 .drugsOne {
633
 .drugsOne {
700
   line-height: 24px;
634
   line-height: 24px;
701
   display: inline-block;
635
   display: inline-block;
702
 }
636
 }
637
+
703
 .drugsOne span {
638
 .drugsOne span {
704
   margin-right: 20px;
639
   margin-right: 20px;
705
 }
640
 }
641
+
706
 .doctorBox {
642
 .doctorBox {
707
   display: flex;
643
   display: flex;
708
   justify-content: space-between;
644
   justify-content: space-between;
710
   line-height: 24px;
646
   line-height: 24px;
711
   border-bottom: 2px solid #000;
647
   border-bottom: 2px solid #000;
712
 }
648
 }
713
-.doctorBoxs{
649
+
650
+.doctorBoxs {
714
   width: 100%;
651
   width: 100%;
715
   margin-right: 30px;
652
   margin-right: 30px;
716
   text-align: right;
653
   text-align: right;
718
   line-height: 24px;
655
   line-height: 24px;
719
 
656
 
720
 }
657
 }
658
+
721
 .doctorBoxtwo {
659
 .doctorBoxtwo {
722
   display: flex;
660
   display: flex;
723
   justify-content: space-between;
661
   justify-content: space-between;
725
   line-height: 24px;
663
   line-height: 24px;
726
 
664
 
727
 }
665
 }
666
+
728
 .actionBar {
667
 .actionBar {
729
   display: flex;
668
   display: flex;
730
   justify-content: space-between;
669
   justify-content: space-between;
731
   line-height: 24px;
670
   line-height: 24px;
732
   padding: 0 10px;
671
   padding: 0 10px;
733
 }
672
 }
673
+
734
 .actionBar p {
674
 .actionBar p {
735
   width: 150px;
675
   width: 150px;
736
 }
676
 }

+ 2 - 1
src/xt_pages/outpatientTool/labelPrint.vue 查看文件

557
                         textPosition:"top",//设置文本的垂直位置
557
                         textPosition:"top",//设置文本的垂直位置
558
                         textMargin:5,//设置条形码和文本之间的间距
558
                         textMargin:5,//设置条形码和文本之间的间距
559
                         fontSize:15,//设置文本的大小
559
                         fontSize:15,//设置文本的大小
560
-                        margin:15//设置条形码周围的空白边距
560
+                        margin:0,//设置条形码周围的空白边距
561
+                        marginTop:0
561
                       })
562
                       })
562
 
563
 
563
                     });
564
                     });

+ 152 - 35
src/xt_pages/user/inspection.vue 查看文件

1324
             this.queryParams.project_id = this.project.project_id
1324
             this.queryParams.project_id = this.project.project_id
1325
             this.queryParams.page = 1
1325
             this.queryParams.page = 1
1326
             this.total = 0
1326
             this.total = 0
1327
+            console.log('bbbbbvvvv',this.queryParams);
1328
+            
1327
             this.fetchPatientInspections(this.queryParams)
1329
             this.fetchPatientInspections(this.queryParams)
1328
           } else {
1330
           } else {
1329
             this.$message.error(response.data.msg)
1331
             this.$message.error(response.data.msg)
1414
             }else{
1416
             }else{
1415
               this.is_open = false
1417
               this.is_open = false
1416
             }
1418
             }
1417
-
1418
-
1419
             if(remind.id > 0 && remind.remind_cycle > 0){
1419
             if(remind.id > 0 && remind.remind_cycle > 0){
1420
               this.temp_remind_cycle = remind.remind_cycle
1420
               this.temp_remind_cycle = remind.remind_cycle
1421
             }else{
1421
             }else{
1438
             console.log("inspectionsMap",this.inspectionsMap)
1438
             console.log("inspectionsMap",this.inspectionsMap)
1439
             var items = this.project.inspection_reference
1439
             var items = this.project.inspection_reference
1440
             console.log("时间",items)
1440
             console.log("时间",items)
1441
-            for (var index in items) {
1442
-             console.log("obj",items[index])
1441
+            for(let index in items){
1442
+              console.log("obj",items)
1443
               // console.log("inspectionsMap",inspectionsMap[items[index].item_id])
1443
               // console.log("inspectionsMap",inspectionsMap[items[index].item_id])
1444
               var item = {}
1444
               var item = {}
1445
-              for (var key in items[index]) {
1445
+              for (let key in items[index]) {
1446
                 //  console.log("key",key,items[index][key])
1446
                 //  console.log("key",key,items[index][key])
1447
                 // console.log("item[key]",items[index])
1447
                 // console.log("item[key]",items[index])
1448
                 item[key] = items[index][key]
1448
                 item[key] = items[index][key]
1449
               }
1449
               }
1450
-
1451
-              console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1450
+              console.log("item=-----------------12",item,inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1452
               if (item.item_id > 0) {
1451
               if (item.item_id > 0) {
1453
-
1454
-                if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1452
+                if(inspectionsMap[parseInt(items[index].item_id)] == null){
1453
+                  console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1455
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1454
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1456
-                    item.value = inspectionsMap[items[index].id].inspect_value
1457
-                    item.item_name = inspectionsMap[items[index].id].item_name
1455
+                    if(inspectionsMap[items[index].id] !=null){
1456
+                      item.value = inspectionsMap[items[index].id].inspect_value
1457
+                      item.item_name = inspectionsMap[items[index].id].item_name
1458
+                    }
1458
                   }else{
1459
                   }else{
1459
-                    console.log('执行1');
1460
-
1461
-                    if(this.org_id == 10702){
1460
+                    if((this.org_id == 10702 || this.org_id==0) && inspectionsMap[items[index].id] !=null){
1462
                       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1461
                       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1463
                           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1462
                           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1464
                           item.project_name == '传染病检查'
1463
                           item.project_name == '传染病检查'
1471
                         item.item_name = ''
1470
                         item.item_name = ''
1472
                       }
1471
                       }
1473
                     } else{
1472
                     } else{
1474
-                      console.log('执行2');
1473
+                      console.log('执行2',inspectionsMap[items[index].id]);
1474
+                      // item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1475
+                      // item.item_name = inspectionsMap[items[index].id].item_name
1475
                       item.value = ''
1476
                       item.value = ''
1476
                       item.item_name = ''
1477
                       item.item_name = ''
1477
                     }
1478
                     }
1478
                   }
1479
                   }
1479
                 } else {
1480
                 } else {
1480
-                  console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1481
-                  item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1482
-                  item.item_name = inspectionsMap[items[index].item_id].item_name
1481
+                  if(inspectionsMap[parseInt(items[index].item_id)] != null){
1482
+                    console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1483
+                    item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1484
+                    item.item_name = inspectionsMap[items[index].item_id].item_name
1485
+                  }
1483
                 }
1486
                 }
1484
                 if(this.org_id ==10191){
1487
                 if(this.org_id ==10191){
1485
-                  if(item.project_name == "乙肝定性(五项)"){
1488
+                  if(item.project_name == "乙肝定性(五项)" && inspectionsMap[items[index].id] !=null){
1486
                     console.log("金阿迪发到付阿打发")
1489
                     console.log("金阿迪发到付阿打发")
1487
                     item.value = inspectionsMap[items[index].id].inspect_value
1490
                     item.value = inspectionsMap[items[index].id].inspect_value
1488
                     item.item_name = inspectionsMap[items[index].id].item_name
1491
                     item.item_name = inspectionsMap[items[index].id].item_name
1489
                   }
1492
                   }
1490
                 }
1493
                 }
1494
+                // if ((inspectionsMap[parseInt(items[index].item_id)])  == null) {
1495
+                //   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1496
+                //     item.value = inspectionsMap[items[index].id].inspect_value
1497
+                //     item.item_name = inspectionsMap[items[index].id].item_name
1498
+                //   }else{
1499
+                //     console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1500
+
1501
+                //     if(this.org_id == 10702 || this.org_id==0){
1502
+                //       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1503
+                //           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1504
+                //           item.project_name == '传染病检查'
1505
+                //         ){
1506
+
1507
+                //         item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1508
+                //         item.item_name = inspectionsMap[items[index].id].item_name
1509
+                //       }else{
1510
+                //         item.value = ''
1511
+                //         item.item_name = ''
1512
+                //       }
1513
+                //     } else{
1514
+                //       console.log('执行2');
1515
+                //       item.value = ''
1516
+                //       item.item_name = ''
1517
+                //     }
1518
+                //   }
1519
+                // } else {
1520
+                //   console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1521
+                //   item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1522
+                //   item.item_name = inspectionsMap[items[index].item_id].item_name
1523
+                // }
1524
+                // if(this.org_id ==10191){
1525
+                //   if(item.project_name == "乙肝定性(五项)"){
1526
+                //     console.log("金阿迪发到付阿打发")
1527
+                //     item.value = inspectionsMap[items[index].id].inspect_value
1528
+                //     item.item_name = inspectionsMap[items[index].id].item_name
1529
+                //   }
1530
+                // }
1491
               } else {
1531
               } else {
1492
-                if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1532
+                if(typeof(inspectionsMap[parseInt(items[index].id)])  == null){
1493
                   continue
1533
                   continue
1534
+                }else{
1535
+                  console.log('执行4',inspectionsMap);
1536
+                  item.value = inspectionsMap[items[index].id].inspect_value
1537
+                  item.item_name = inspectionsMap[items[index].id].item_name
1494
                 }
1538
                 }
1495
-                console.log('执行4',inspectionsMap);
1496
-                item.value = inspectionsMap[items[index].id].inspect_value
1497
-                item.item_name = inspectionsMap[items[index].id].item_name
1498
               }
1539
               }
1499
-              // item["inspect_desc"] = inspectionsMap[items[index].id].inspect_desc
1500
-              // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1501
               item.value_direction = ''
1540
               item.value_direction = ''
1502
               if (item.range_type == 1) {
1541
               if (item.range_type == 1) {
1503
                 console.log('执行5',item.value);
1542
                 console.log('执行5',item.value);
1510
                   item.value_direction = '↑'
1549
                   item.value_direction = '↑'
1511
                 }
1550
                 }
1512
               }
1551
               }
1513
-              // if(this.org_id!=10503 && this.org_id!=0){
1514
-              //   if(item.project_name!="" && item.item_name !=''){
1515
-              //    this.items.push(item)
1516
-              //   }
1517
-              // }else{
1518
-                this.items.push(item)
1519
-              // }
1520
-
1552
+              
1553
+              this.items.push(item)
1521
               console.log('fffff',this.items);
1554
               console.log('fffff',this.items);
1522
               if(item.value.indexOf("http") !=-1){
1555
               if(item.value.indexOf("http") !=-1){
1523
-
1524
                 this.isPic = true
1556
                 this.isPic = true
1525
               }
1557
               }
1526
-
1558
+              if(this.isPic == true){
1559
+                for(let x in this.items){
1560
+                  if(this.items[x].value ==''){
1561
+                    this.items.splice(x,1)
1562
+                  }
1563
+                }
1564
+              }
1527
               console.log("woowwoow",this.isPic)
1565
               console.log("woowwoow",this.isPic)
1528
               console.log("isPicwowowow",this.items)
1566
               console.log("isPicwowowow",this.items)
1529
             }
1567
             }
1568
+            // for (var index in items) {
1569
+            //  console.log("obj",items[index].id)
1570
+            //   // console.log("inspectionsMap",inspectionsMap[items[index].item_id])
1571
+            //   var item = {}
1572
+            //   for (var key in items[index]) {
1573
+            //     //  console.log("key",key,items[index][key])
1574
+            //     // console.log("item[key]",items[index])
1575
+            //     item[key] = items[index][key]
1576
+            //   }
1577
+
1578
+            //   console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1579
+            //   if (item.item_id > 0) {
1580
+            //     if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1581
+            //       if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1582
+            //         item.value = inspectionsMap[items[index].id].inspect_value
1583
+            //         item.item_name = inspectionsMap[items[index].id].item_name
1584
+            //       }else{
1585
+            //         console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1586
+
1587
+            //         if(this.org_id == 10702 || this.org_id==0){
1588
+            //           if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1589
+            //               item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1590
+            //               item.project_name == '传染病检查'
1591
+            //             ){
1592
+
1593
+            //             item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1594
+            //             item.item_name = inspectionsMap[items[index].id].item_name
1595
+            //           }else{
1596
+            //             item.value = ''
1597
+            //             item.item_name = ''
1598
+            //           }
1599
+            //         } else{
1600
+            //           console.log('执行2');
1601
+            //           item.value = ''
1602
+            //           item.item_name = ''
1603
+            //         }
1604
+            //       }
1605
+            //     } else {
1606
+            //       console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1607
+            //       item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1608
+            //       item.item_name = inspectionsMap[items[index].item_id].item_name
1609
+            //     }
1610
+            //     if(this.org_id ==10191){
1611
+            //       if(item.project_name == "乙肝定性(五项)"){
1612
+            //         console.log("金阿迪发到付阿打发")
1613
+            //         item.value = inspectionsMap[items[index].id].inspect_value
1614
+            //         item.item_name = inspectionsMap[items[index].id].item_name
1615
+            //       }
1616
+            //     }
1617
+            //   } else {
1618
+            //     if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1619
+            //       continue
1620
+            //     }
1621
+            //     console.log('执行4',inspectionsMap);
1622
+            //     item.value = inspectionsMap[items[index].id].inspect_value
1623
+            //     item.item_name = inspectionsMap[items[index].id].item_name
1624
+            //   }
1625
+            //   // item["inspect_desc"] = inspectionsMap[items[index].id].inspect_desc
1626
+            //   // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1627
+            //   item.value_direction = ''
1628
+            //   if (item.range_type == 1) {
1629
+            //     console.log('执行5',item.value);
1630
+            //     var value = parseFloat(item.value)
1631
+            //     var range_min = parseFloat(item.range_min)
1632
+            //     var range_max = parseFloat(item.range_max)
1633
+            //     if (value < range_min) {
1634
+            //       item.value_direction = '↓'
1635
+            //     } else if (value > range_max) {
1636
+            //       item.value_direction = '↑'
1637
+            //     }
1638
+            //   }
1639
+            //   this.items.push(item)
1640
+            //   console.log('fffff',this.items);
1641
+            //   if(item.value.indexOf("http") !=-1){
1642
+            //     this.isPic = true
1643
+            //   }
1644
+            //   console.log("woowwoow",this.isPic)
1645
+            //   console.log("isPicwowowow",this.items)
1646
+            // }
1530
           }
1647
           }
1531
         })
1648
         })
1532
         .catch(v => {
1649
         .catch(v => {