yq1 9 месяцев назад
Родитель
Сommit
14ef161a02
1 измененных файлов: 285 добавлений и 157 удалений
  1. 285 157
      src/xt_pages/outpatientDoctorStation/template/printTwoteen.vue

+ 285 - 157
src/xt_pages/outpatientDoctorStation/template/printTwoteen.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">
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
       <div
4
       <div
5
         id="prescription-print"
5
         id="prescription-print"
6
         class="prescription-print"
6
         class="prescription-print"
7
-
7
+        style="page-break-after: always;"
8
       >
8
       >
9
         <!-- <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
9
         <!-- <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
           {{ orgname }}第一类精神处方笺
10
           {{ orgname }}第一类精神处方笺
12
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
12
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
           {{ orgname }}第二类精神处方笺
13
           {{ orgname }}第二类精神处方笺
14
         </div> -->
14
         </div> -->
15
-        <div style="text-align: right;" v-if="prescriptions[index].med_type == '1112'">精二</div>
16
-        <div class="printTitle">
15
+        <div
16
+          class="printTitle"
17
+          v-if="
18
+            prescriptions[index].med_type != '1111' &&
19
+            prescriptions[index].med_type != '1112'
20
+          "
21
+        >
22
+          {{ orgname }}处方笺
23
+        </div>
24
+        <div class="printTitle" v-else>
17
           <span>{{ orgname }}处方笺</span>
25
           <span>{{ orgname }}处方笺</span>
26
+          <span style="font-size: 14px;font-weight: normal;color: red;" 
27
+            v-if="prescriptions[index].med_type == '1112'">(精)</span>
18
         </div>
28
         </div>
19
         <div >
29
         <div >
20
-          <div class="infoTitle">
30
+          <div class="">
21
             <span>费别:</span>
31
             <span>费别:</span>
22
             <input type="checkbox" @click="check" :checked="hisPatient.balance_accounts_type!=1&& hisPatient.insutype!=390 && hisPatient.insutype!=310?true :false" >自费 &nbsp;
32
             <input type="checkbox" @click="check" :checked="hisPatient.balance_accounts_type!=1&& hisPatient.insutype!=390 && hisPatient.insutype!=310?true :false" >自费 &nbsp;
23
             <input type="checkbox" @click="check" :checked="hisPatient.insutype==310?true :false" >职工 &nbsp;
33
             <input type="checkbox" @click="check" :checked="hisPatient.insutype==310?true :false" >职工 &nbsp;
62
 
72
 
63
           </div>
73
           </div>
64
         </div>
74
         </div>
65
-        <div class="prescriptionBox" style="min-height: 350px;">
75
+        <div class="prescriptionBox" style="height: 400px;">
66
           <div class="Rp">Rp:</div>
76
           <div class="Rp">Rp:</div>
67
           <div
77
           <div
68
             class="drugsBox"
78
             class="drugsBox"
69
-            v-for="(it, index) in item.advices"
70
-            :key="index"
79
+            v-for="(it, index) in item.advices" :key="index"
71
             :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
80
             :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
72
           >
81
           >
73
-            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
74
-            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
75
-            <div class="drugsOne">
76
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
77
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
78
-              v-if="it.drug.min_unit != it.drug.dose_unit"
79
-            >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
80
-            >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
81
-                it.drug.max_unit
82
-              }}&nbsp;×&nbsp; {{ it.prescribing_number
83
-              }}{{ it.prescribing_number_unit }}
84
-            </div>
85
-            <div style="margin-left: 100px">
86
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
87
-              >&nbsp;&nbsp;<span
88
-            >{{ it.execution_frequency }}&nbsp;{{
89
-                it.delivery_way
90
-              }}&nbsp;</span
91
-            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
82
+            <template v-if="index==yi+1&&item.advices.length>5">
83
+              <div style="margin: 20px 0px;">
84
+                <div class="">
85
+                  <span>费别:</span>
86
+                  <input type="checkbox" @click="check" :checked="hisPatient.balance_accounts_type!=1&& hisPatient.insutype!=390 && hisPatient.insutype!=310?true :false" >自费 &nbsp;
87
+                  <input type="checkbox" @click="check" :checked="hisPatient.insutype==310?true :false" >职工 &nbsp;
88
+                  <input type="checkbox" @click="check" :checked="hisPatient.insutype==390?true :false" >居民 &nbsp;
89
+                  <input type="checkbox" @click="check" :checked="false">其他 &nbsp;
90
+                </div>
91
+                <div class="infoMain" style="border-top: 1px solid black;">
92
+                  <div style="display: flex;width: 100%;">
93
+                    <div style="flex: 1;">姓名:
94
+                      <span style="">{{ item.patient.name ? item.patient.name : "" }}</span>
95
+                    </div>
96
+                    <div style="flex: 1;">
97
+                      性别:
98
+                      <span style="">{{ item.patient.gender == 1 ? '男':'女' }}</span>
99
+                    </div>
100
+                    <div style="flex: 1;">年龄:
101
+                      <span style="">{{ getAge(item.patient) ? getAge(item.patient) : "" }}</span>岁
102
+                    </div>
103
+                  </div>
104
+                  <div style="display: flex;width: 100%;">
105
+                    <div style="flex: 1;">
106
+                      科室:{{ item.info ? getDepart(item.info.departments) : "" }}
107
+                    </div>
108
+                    <div style="flex: 1;">
109
+                      床号:{{ bed_num }}
110
+                    </div>
111
+                    <div style="flex: 2;">
112
+                      门诊住院号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
113
+                    </div>
114
+                  </div>
115
+                  <div style="display: flex;width: 100%;">
116
+                    <div style="flex: 1;">
117
+                      临床诊断:{{ item.info ? getDepart(item.info.departments) : "" }}
118
+                    </div>
119
+                    <div style="flex: 1;">
120
+                      开具日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
121
+                    </div>
122
+                  </div>
123
+                  <div style="width: 100%;">
124
+                    地址电话:{{ item.patient.home_address }}{{ item.patient.phone }}
125
+                  </div>
126
+
127
+                </div>
128
+              </div>
129
+            </template>
130
+            <div style="position: relative;">
131
+              <div v-if="it.arr !== undefined">
132
+                <div class="drugsOne" :style="{'border-right':it.arr.length>0 ? '1px solid black': 'none','width':'80%'}">
133
+                  <span style="font-weight: bold" >
134
+                    {{ index + 1 + "."}}
135
+                  </span>
136
+                  {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
137
+                  <span v-if="it.drug.min_unit != it.drug.dose_unit">
138
+                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
139
+                    {{it.drug.max_unit}}
140
+                  </span>&nbsp;
141
+                  <div>
142
+                    <template>
143
+                      <div>
144
+                        <span style="margin-left: 38px;">{{it.arr[0].advice_name ? it.arr[0].advice_name : ""}}</span>&nbsp;&nbsp;
145
+                        <!-- v-if="ite[0].drug.min_unit != ite[0].drug.dose_unit" -->
146
+                        <span >
147
+                          {{ it.arr[0].drug.dose }}{{ it.arr[0].drug.dose_unit }}&nbsp;* {{ it.arr[0].drug.min_number }}{{ it.arr[0].drug.min_unit }}/
148
+                          {{it.arr[0].drug.max_unit}}
149
+                        </span>&nbsp;
150
+                      </div>
151
+                      <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
152
+                        &nbsp;共{{ it.arr[0].single_dose }}{{ it.arr[0].single_dose_unit }}
153
+                      </div>
154
+                    </template>
155
+                  </div>
156
+
157
+                  <div style="margin-left: 70px" >
158
+                    <template>
159
+                        用法:
160
+                      &nbsp;&nbsp;<span>
161
+                        {{ it.execution_frequency }}&nbsp;{{
162
+                          it.delivery_way
163
+                        }}&nbsp;共{{ it.day}}天</span>&nbsp;&nbsp;<span>{{ it.advice_desc}}</span>
164
+                    </template>
165
+                  </div>
166
+
167
+                  <div style="margin-left: 70px" v-if="it.remark !=''">
168
+                    备注:<span > {{ it.remark }}</span>
169
+                  </div>
170
+                </div>
171
+
172
+                <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
173
+                  ×&nbsp;{{ it.prescribing_number}}
174
+                </div>
175
+                <!-- <div> -->
176
+                  <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
177
+                    ×&nbsp;{{ it.arr[0].prescribing_number}}
178
+                  </div>
179
+                <!-- </div> -->
180
+                <template>
181
+                    <!-- <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&ite[0].groupno!=it.groupno) ||item.arr.length==0">
182
+                      &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
183
+                    </div> -->
184
+
185
+                    <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
186
+                      &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
187
+                    </div>
188
+                </template>
189
+              </div>
190
+              <div v-if="it.arr === undefined">
191
+                <div class="drugsOne" >
192
+                  <span style="font-weight: bold" >
193
+                    {{ index + 1 + "."}}
194
+                  </span>
195
+                  {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
196
+                  <span v-if="it.drug.min_unit != it.drug.dose_unit">
197
+                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
198
+                    {{it.drug.max_unit}}
199
+                  </span>&nbsp;
200
+                  
201
+                  <div style="margin-left: 70px" >
202
+                    <template>
203
+                        用法:
204
+                        <span style="margin-right: 0;" >{{ it.single_dose }}{{ it.single_dose_unit }}</span>
205
+                      &nbsp;&nbsp;<span>
206
+                        {{ it.execution_frequency }}&nbsp;{{
207
+                          it.delivery_way
208
+                        }}&nbsp;共{{ it.day}}天</span><span>{{ it.advice_desc}} </span>
209
+                    </template>
210
+                  </div>
211
+
212
+                  <div style="margin-left: 70px" v-if="it.remark !=''">
213
+                    备注:<span > {{ it.remark }}</span>
214
+                  </div>
215
+                </div>
216
+
217
+                <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
218
+                  ×&nbsp;{{ it.prescribing_number}}
219
+                </div>
220
+                <template>
221
+                    <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;">
222
+                      &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
223
+                    </div>
224
+                </template>
225
+              </div>
92
             </div>
226
             </div>
227
+            <template v-if="index==yi&&item.advices.length>5">
228
+              <div style="margin: 20px 0px;">
229
+                <div class="doctorBox">
230
+                  <p>
231
+                    医师: {{ item.doctor ? item.doctor : "" }}
232
+                  </p>
233
+                  <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
234
+                </div>
235
+                <div class="actionBar">
236
+                  <p>审核:</p>
237
+                  <p>配对:</p>
238
+                  <p>核对:</p>
239
+                  <p>发药:</p>
240
+                  <p>
241
+                    药费:{{
242
+                      getTotalOne(item.id).toFixed(2)
243
+                        ? getTotalOne(item.id).toFixed(2)
244
+                        : 0
245
+                    }}元
246
+                  </p>
247
+                </div>
248
+              </div>
249
+            </template>
93
           </div>
250
           </div>
94
 
251
 
95
           <div
252
           <div
110
             :key="index"
267
             :key="index"
111
           >
268
           >
112
             <div class="drugsOne">
269
             <div class="drugsOne">
113
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
114
-              >{{
270
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span>
271
+              {{
115
                 it.type == 2
272
                 it.type == 2
116
                   ? getProjectName(it.project_id)
273
                   ? getProjectName(it.project_id)
117
                     ? getProjectName(it.project_id)
274
                     ? getProjectName(it.project_id)
123
             <div style="margin-left: 100px">
280
             <div style="margin-left: 100px">
124
               <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
281
               <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
125
               >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
282
               >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
126
-            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
283
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
127
             </div>
284
             </div>
128
           </div>
285
           </div>
129
 
286
 
141
           <div style="text-align: center">(以下空白)</div>
298
           <div style="text-align: center">(以下空白)</div>
142
         </div>
299
         </div>
143
 
300
 
301
+
144
         <div class="doctorBox">
302
         <div class="doctorBox">
145
-          <p v-if="org_id == 10217">
146
-            医师:
147
-            <span
148
-              style="width: 100px; display: inline-block"
149
-              v-if="item.creator == ''"
150
-            >
151
-                {{ item.doctor }}
152
-              </span>
153
-            <span
154
-              style="width: 100px; display: inline-block"
155
-              v-else-if="doc_name != ''"
156
-            >
157
-                {{ doc_name }}
158
-              </span>
159
-            <img
160
-              style="height: 50px;"
161
-              :src="setAdminUserES(item.creator,item.doctor)"
162
-              alt=""
163
-              srcset=""
164
-              v-else
165
-            />
166
-          </p>
167
-          <p v-if="org_id == 10510">
168
-            医师:
169
-            <span
170
-              style="width: 100px; display: inline-block"
171
-              v-if="item.creator == ''"
172
-            >
173
-                {{ item.doctor }}
174
-              </span>
175
-            <span
176
-              style="width: 100px; display: inline-block"
177
-              v-else-if="doc_name != ''"
178
-            >
179
-                {{ doc_name }}
180
-              </span>
181
-            <img
182
-              style="height: 50px;"
183
-              :src="setAdminUserES(item.creator,item.doctor)"
184
-              alt=""
185
-              srcset=""
186
-              v-else
187
-            />
188
-          </p>
189
-          <p v-if="org_id!=10217 && org_id!=10510">
303
+          <p>
190
             医师: {{ item.doctor ? item.doctor : "" }}
304
             医师: {{ item.doctor ? item.doctor : "" }}
191
           </p>
305
           </p>
192
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
306
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
217
   getHisPatientDetail,
331
   getHisPatientDetail,
218
 } from "@/api/project/project";
332
 } from "@/api/project/project";
219
 import { getInitData } from "@/api/his/his";
333
 import { getInitData } from "@/api/his/his";
220
-import LabelBox from '../../dialysis/printItem/LabelBox'
221
-// import LabelBox from "@/printItem/LabelBox";
222
 export default{
334
 export default{
223
   props: {
335
   props: {
224
     patient_id: Number,
336
     patient_id: Number,
226
     prescription_id: Number,
338
     prescription_id: Number,
227
     ids: String,
339
     ids: String,
228
   },
340
   },
229
-  components:{
230
-    LabelBox
231
-  },
232
   data() {
341
   data() {
233
     return {
342
     return {
234
       doc_name:"",
343
       doc_name:"",
235
       doctorList: [],
344
       doctorList: [],
236
       advicePrint: {},
345
       advicePrint: {},
237
       yi:4,
346
       yi:4,
347
+      radio:'',
238
       arr:[],
348
       arr:[],
239
-      arrs:{},
240
       advicess:[],
349
       advicess:[],
241
       page:sessionStorage.getItem('dayin'),
350
       page:sessionStorage.getItem('dayin'),
242
       patient: {},
351
       patient: {},
252
       operatorMaps: {},
361
       operatorMaps: {},
253
       operators: [],
362
       operators: [],
254
       doctorList_1: [],
363
       doctorList_1: [],
364
+      adminUser:[],
255
       bed_num:''
365
       bed_num:''
256
     };
366
     };
257
-  },filters: {
258
-    testfile (value) {
259
-      const start = value.slice(0, 6)
260
-      const end = value.slice(-4)
261
-      return `${start}******${end}`
262
-    }
263
   },
367
   },
264
   methods: {
368
   methods: {
265
     // 电子签名
369
     // 电子签名
266
-    setAdminUserES(id,name) {
267
-      console.log(id)
268
-      console.log(name)
269
-      console.log(this.operatorMaps)
270
-
271
-
370
+    // setAdminUserES(id,name) {
371
+    //   console.log(id)
372
+    //   console.log(name)
373
+    //   console.log(this.operatorMaps)
374
+    //   if (id == 0) {
375
+    //     return "";
376
+    //   }
377
+    //   if (id in this.operatorMaps) {
378
+    //     return this.operatorMaps[id].url;
379
+    //   } else {
380
+    //     this.doc_name = name
381
+    //     return "";
382
+    //   }
383
+    // },
384
+    setAdminUserES(id) {
385
+      console.log('5555555555',this.operatorMaps);
272
       if (id == 0) {
386
       if (id == 0) {
273
         return "";
387
         return "";
274
       }
388
       }
275
       if (id in this.operatorMaps) {
389
       if (id in this.operatorMaps) {
276
         return this.operatorMaps[id].url;
390
         return this.operatorMaps[id].url;
277
       } else {
391
       } else {
278
-        this.doc_name = name
279
         return "";
392
         return "";
280
       }
393
       }
281
     },
394
     },
395
+    getAdminUser(id) {
396
+      if (id == 0) {
397
+        return "";
398
+      }
399
+      if (id == undefined) {
400
+        return "";
401
+      }
402
+      for (let i = 0; i < this.adminUser.length; i++) {
403
+        if (this.adminUser[i].admin_user_id == id) {
404
+          return this.adminUser[i].user_name;
405
+        }
406
+      }
407
+    },
282
     getAge(patient) {
408
     getAge(patient) {
283
       if(patient.id_card_no == "TWN001836483"){
409
       if(patient.id_card_no == "TWN001836483"){
284
         return patient.age
410
         return patient.age
327
       }
453
       }
328
       return "";
454
       return "";
329
     },
455
     },
456
+    //数据源
330
     getPrescriptionPrint() {
457
     getPrescriptionPrint() {
331
       var params = {
458
       var params = {
332
-        // patient_id:this.patient_id,
333
-        // record_date:this.record_date,
334
-        // prescription_id:this.prescription_id,
335
         patient_id: this.patient_id,
459
         patient_id: this.patient_id,
336
         record_date: this.record_date,
460
         record_date: this.record_date,
337
         prescription_id: this.prescription_id,
461
         prescription_id: this.prescription_id,
338
         ids: this.ids,
462
         ids: this.ids,
339
         p_type: 2,
463
         p_type: 2,
340
       };
464
       };
341
-      console.log("params", params);
342
       getPrescriptionPrint(params).then((response) => {
465
       getPrescriptionPrint(params).then((response) => {
343
         if (response.data.state == 1) {
466
         if (response.data.state == 1) {
344
           var advicePrint = response.data.data.advicePrint;
467
           var advicePrint = response.data.data.advicePrint;
345
-          console.log("adviceprint9999", response.data.data);
468
+          console.log("adviceprint9999", advicePrint);
469
+          console.log("response.data.data", response.data.data);
346
           this.advicePrint = advicePrint;
470
           this.advicePrint = advicePrint;
347
           this.prescriptions = advicePrint;
471
           this.prescriptions = advicePrint;
348
           this.bed_num = response.data.data.sch.number.number
472
           this.bed_num = response.data.data.sch.number.number
473
+          this.adminUser = response.data.data.roles
349
           this.doctorList_1 = response.data.data.eles;
474
           this.doctorList_1 = response.data.data.eles;
350
-          console.log(this.doctorList_1, "医生列表");
475
+         for(let i=0;i<this.advicePrint.length;i++){
476
+          const arr = new Array()
477
+          var advicess = new Array()
478
+          var advicess=advicePrint[i].advices
479
+
480
+         for(let j=0;j<advicess.length;j++){
481
+            for(let x=j+1;x<advicess.length;x++){
482
+              if(advicess[j].groupno == advicess[x].groupno){
483
+                arr.push(advicess.splice(x,1))
484
+              }
485
+            }
486
+          }
487
+
488
+          for(let x in arr){
489
+            for(let j in this.advicePrint[i].advices){
490
+              if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){
491
+                this.advicePrint[i]['advices'][j]['arr'] = arr[x]
492
+              }
493
+            }
494
+          }
495
+        }
496
+
497
+          // console.log('4444444',this.advicePrint);
498
+        //  console.log('55555555',this.arr);
499
+
500
+          // console.log(this.doctorList_1, "医生列表");
351
           if (this.doctorList_1.length > 0) {
501
           if (this.doctorList_1.length > 0) {
352
             var operatorsLen = this.doctorList_1.length;
502
             var operatorsLen = this.doctorList_1.length;
353
             for (var index = 0; index < operatorsLen; index++) {
503
             for (var index = 0; index < operatorsLen; index++) {
358
               );
508
               );
359
             }
509
             }
360
           }
510
           }
511
+
512
+          // console.log("处方222222", this.prescriptions);
361
           var hisPatient = response.data.data.hisPatient;
513
           var hisPatient = response.data.data.hisPatient;
362
-          console.log("hisPatient", hisPatient);
514
+          // console.log("hisPatient", hisPatient);
363
           this.hisPatient = hisPatient;
515
           this.hisPatient = hisPatient;
364
           var projectlist = response.data.data.projectlist;
516
           var projectlist = response.data.data.projectlist;
365
-          console.log("所有项目列表", projectlist);
517
+          // console.log("所有项目列表", projectlist);
366
           this.projectList = projectlist;
518
           this.projectList = projectlist;
367
         }
519
         }
368
       });
520
       });
398
       return name;
550
       return name;
399
     },
551
     },
400
     getTotalOne(id) {
552
     getTotalOne(id) {
553
+      // console.log('999999999',this.prescriptions);
401
       var total = 0;
554
       var total = 0;
402
       var addtotal = 0;
555
       var addtotal = 0;
556
+      var zimuyao = 0;
403
       for (let i = 0; i < this.prescriptions.length; i++) {
557
       for (let i = 0; i < this.prescriptions.length; i++) {
404
         if (id == this.prescriptions[i].id) {
558
         if (id == this.prescriptions[i].id) {
405
           if (this.prescriptions[i].project != null) {
559
           if (this.prescriptions[i].project != null) {
407
               total =
561
               total =
408
                 total +
562
                 total +
409
                 this.prescriptions[i].project[a].price *
563
                 this.prescriptions[i].project[a].price *
410
-                this.prescriptions[i].project[a].count;
564
+                  this.prescriptions[i].project[a].count ;
411
             }
565
             }
412
           }
566
           }
413
 
567
 
420
               addtotal =
574
               addtotal =
421
                 addtotal +
575
                 addtotal +
422
                 this.prescriptions[i].additionalcharge[a].price *
576
                 this.prescriptions[i].additionalcharge[a].price *
423
-                this.prescriptions[i].additionalcharge[a].count;
577
+                  this.prescriptions[i].additionalcharge[a].count ;
424
             }
578
             }
425
           }
579
           }
426
           addtotal = Math.floor(addtotal * 100) / 100;
580
           addtotal = Math.floor(addtotal * 100) / 100;
433
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
587
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
434
               total =
588
               total =
435
                 total +
589
                 total +
436
-                this.prescriptions[i].advices[a].price *
437
-                this.prescriptions[i].advices[a].prescribing_number;
590
+                (this.prescriptions[i].advices[a].price *
591
+                  this.prescriptions[i].advices[a].prescribing_number) ;
592
+
593
+                if(this.prescriptions[i].advices[a].arr !=undefined){
594
+                  zimuyao = zimuyao +
595
+                  this.prescriptions[i].advices[a].arr[0].price *
596
+                  this.prescriptions[i].advices[a].arr[0].prescribing_number
597
+                }
438
             }
598
             }
439
           }
599
           }
440
-
600
+          // if(this.prescriptions[i].arr[0] != null){
601
+          //   for(let b=0;b<this.prescriptions[i].arr[0].length;b++){
602
+          //     zimuyao = zimuyao +
603
+          //     this.prescriptions[i].arr[b][0].price *
604
+          //     this.prescriptions[i].arr[b][0].prescribing_number
605
+          //   }
606
+          // }
441
           if (this.prescriptions[i].additionalcharge != null) {
607
           if (this.prescriptions[i].additionalcharge != null) {
442
             for (
608
             for (
443
               let a = 0;
609
               let a = 0;
446
             ) {
612
             ) {
447
               addtotal =
613
               addtotal =
448
                 addtotal +
614
                 addtotal +
449
-                this.prescriptions[i].additionalcharge[a].price *
450
-                this.prescriptions[i].additionalcharge[a].count;
615
+                (this.prescriptions[i].additionalcharge[a].price *
616
+                  this.prescriptions[i].additionalcharge[a].count );
451
             }
617
             }
452
           }
618
           }
453
           addtotal = Math.floor(addtotal * 100) / 100;
619
           addtotal = Math.floor(addtotal * 100) / 100;
454
         }
620
         }
455
       }
621
       }
456
 
622
 
457
-      return total + addtotal;
623
+      return total + addtotal + zimuyao ;
458
     },
624
     },
459
 
625
 
460
     getProjectName(id) {
626
     getProjectName(id) {
515
     var xtuser = this.$store.getters.xt_user;
681
     var xtuser = this.$store.getters.xt_user;
516
     this.orgname = xtuser.org.org_name;
682
     this.orgname = xtuser.org.org_name;
517
     this.org_id = xtuser.org.id;
683
     this.org_id = xtuser.org.id;
518
-
684
+    console.log('jjjjjj',this.orgname);
519
     // for(let j=0;j<this.advicess.length;j++){
685
     // for(let j=0;j<this.advicess.length;j++){
520
     //   console.log('44444444');
686
     //   console.log('44444444');
521
     //   for(let x=j+1;x<this.advicess.length;x++){
687
     //   for(let x=j+1;x<this.advicess.length;x++){
542
 <style lang="scss" scoped>
708
 <style lang="scss" scoped>
543
 .prescription-print {
709
 .prescription-print {
544
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
710
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
545
-  0 0 60px rgba(0, 0, 0, 0.06) inset;
711
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
546
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
712
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
547
-  0 0 40px rgba(0, 0, 0, 0.06) inset;
713
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
548
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
714
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
549
   margin-bottom: 20px;
715
   margin-bottom: 20px;
550
   padding: 20px 10px;
716
   padding: 20px 10px;
556
 }
722
 }
557
 .infoTitle {
723
 .infoTitle {
558
   display: flex;
724
   display: flex;
559
-  border-bottom: 2px solid #000;
725
+  border-top: 2px solid #000;
560
   margin-top: 10px;
726
   margin-top: 10px;
561
   line-height: 24px;
727
   line-height: 24px;
562
   padding: 0 10px;
728
   padding: 0 10px;
729
+
563
 }
730
 }
564
 .infoTitle p {
731
 .infoTitle p {
565
   width: 200px;
732
   width: 200px;
566
 }
733
 }
567
 .infoMain {
734
 .infoMain {
568
-  // display: flex;
735
+  display: flex;
569
   flex-wrap: wrap;
736
   flex-wrap: wrap;
570
   border-bottom: 2px solid #000;
737
   border-bottom: 2px solid #000;
571
   padding: 0 10px;
738
   padding: 0 10px;
572
 }
739
 }
573
 .infoMain div {
740
 .infoMain div {
574
-  // width: 50%;
741
+  width: 50%;
575
   line-height: 24px;
742
   line-height: 24px;
576
 }
743
 }
577
 .prescriptionBox {
744
 .prescriptionBox {
578
   padding: 0 10px;
745
   padding: 0 10px;
579
-  min-height: 450px;
746
+  max-height: 450px;
580
 }
747
 }
581
 .Rp {
748
 .Rp {
582
   font-size: 22px;
749
   font-size: 22px;
593
 .drugsOne {
760
 .drugsOne {
594
   line-height: 24px;
761
   line-height: 24px;
595
   display: inline-block;
762
   display: inline-block;
763
+  width: 80%;
596
 }
764
 }
597
 .drugsOne span {
765
 .drugsOne span {
598
   margin-right: 20px;
766
   margin-right: 20px;
628
 .actionBar p {
796
 .actionBar p {
629
   width: 150px;
797
   width: 150px;
630
 }
798
 }
631
-.labelbox .radio-inner .radio-fang {
632
-  // {
633
-  //    {
634
-      display: inline-block;
635
-      position: relative;
636
-      border: 1px solid #000;
637
-      box-sizing: border-box;
638
-      width: 30px;
639
-      height: 30px;
640
-      background-color: #fff;
641
-      z-index: 1;
642
-      transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
643
-        background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
644
-  //   }
645
-  // }
646
-}
647
-.prescription-print .is-checked-radio::after {
648
-  content: "√";
649
-  font-size: 20px;
650
-  font-weight: 200;
651
-}
652
 input{
799
 input{
653
     -webkit-appearance: checkbox;
800
     -webkit-appearance: checkbox;
654
 }
801
 }
655
-// input[type="checkbox"] {
656
-//   width: 20px;
657
-//   height: 20px;
658
-//   display: inline-block;
659
-//   text-align: center;
660
-//   vertical-align: middle;
661
-//   line-height: 18px;
662
-//   position: relative;
663
-// }
664
-// input[type="checkbox"]::before {
665
-//   content: "√";
666
-//   position: absolute;
667
-//   top: 0;
668
-//   left: 0;
669
-//   background: #fff;
670
-//   width: 100%;
671
-//   height: 100%;
672
-//   border: 1px solid #d9d9d9;
673
-// }
674
 </style>
802
 </style>