see999 пре 3 година
родитељ
комит
8347520632

+ 4 - 5
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Прегледај датотеку

@@ -185,7 +185,7 @@ export default {
185 185
        getInitData().then(response=>{
186 186
           if(response.data.state == 1){
187 187
             this.department = response.data.data.department
188
-            this.diagnoses = response.data.data.diagnose
188
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
189 189
             console.log("争端",this.diagnoses)
190 190
           }
191 191
        })
@@ -256,17 +256,16 @@ export default {
256 256
           return a-b;
257 257
         })
258 258
         
259
-        let diagnoses = this.diagnoses.sort(this.compare('id'))
260 259
         var name = ""
261 260
         let nameArr = []
262
-        for(let i=0;i<diagnoses.length;i++){
261
+        for(let i=0;i<this.diagnoses.length;i++){
263 262
           // if(id == this.diagnoses[i].id){
264 263
           //    name = this.diagnoses[i].class_name
265 264
           // }
266 265
           
267
-          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
266
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
268 267
             // name += diagnoses[i].class_name + ' '
269
-            nameArr.push(diagnoses[i].class_name)
268
+            nameArr.push(this.diagnoses[i].class_name)
270 269
           }
271 270
         }
272 271
         let newNameArr = []

+ 14 - 13
src/xt_pages/outpatientDoctorStation/template/printThree.vue Прегледај датотеку

@@ -10,7 +10,7 @@
10 10
             <span v-if="item.med_type == '1112'" style="margin-left: 50px;border: 1px solid #000;">精二</span>
11 11
           </div>
12 12
           <div style="display:flex;">
13
-            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></div>
13
+            <div style="width:33%;display:flex;">费别:<span class="under_line"><span v-if="faber && faber.transBody">{{ faber && faber.transBody ? getName(faber.transBody.outputlist1) : '' }}</span></span></div>
14 14
             <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber && faber.transBody ? faber.transBody.aac999 : ''  }}</span></div>
15 15
             <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
16 16
           </div>
@@ -25,9 +25,9 @@
25 25
               <div>年龄:{{item.patient.age?item.patient.age:""}}岁</div>
26 26
           </div>
27 27
           <div class="infoMain">
28
-              <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line">{{hisPatient.number?hisPatient.number:""}}</span></div>
29
-              <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line">{{item.info?getDepart(item.info.departments):''}}</span></div>
30
-              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
28
+              <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line" v-if="hisPatient.number">{{hisPatient.number?hisPatient.number:""}}</span></div>
29
+              <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line" v-if="item.info">{{item.info?getDepart(item.info.departments):''}}</span></div>
30
+              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{ item.info.diagnosis ? getDiagnosis(item.info.diagnosis) : ''}}</div>
31 31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32 32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33 33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
@@ -162,6 +162,7 @@ export default {
162 162
             var advicePrint =  response.data.data.advicePrint
163 163
             console.log("adviceprint9999",advicePrint)
164 164
             this.advicePrint = advicePrint
165
+            this.getPage()
165 166
             this.prescriptions = advicePrint
166 167
             console.log("处方222222",this.prescriptions)
167 168
             var hisPatient = response.data.data.hisPatient
@@ -170,7 +171,7 @@ export default {
170 171
             var projectlist =  response.data.data.projectlist
171 172
             console.log("所有项目列表",projectlist)
172 173
             this.projectList = projectlist
173
-            this.getPage()
174
+            
174 175
             let outputlist1Name = response.data.data.his.patient_info ? JSON.parse(response.data.data.his.patient_info) : {};
175 176
             this.faber = outputlist1Name
176 177
 
@@ -194,7 +195,7 @@ export default {
194 195
        getInitData().then(response=>{
195 196
           if(response.data.state == 1){
196 197
             this.department = response.data.data.department
197
-            this.diagnoses = response.data.data.diagnose
198
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
198 199
             console.log("争端",this.diagnoses)
199 200
           }
200 201
        })
@@ -209,7 +210,7 @@ export default {
209 210
        return name
210 211
      },
211 212
     getTotalOne(id) {
212
-
213
+        console.log('id',id)
213 214
         var total = 0
214 215
         var addtotal = 0
215 216
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -264,18 +265,16 @@ export default {
264 265
         let newIds = ids.split(',').sort(function(a,b){
265 266
           return a-b;
266 267
         })
267
-        
268
-        let diagnoses = this.diagnoses.sort(this.compare('id'))
269 268
         var name = ""
270 269
         let nameArr = []
271
-        for(let i=0;i<diagnoses.length;i++){
270
+        for(let i=0;i<this.diagnoses.length;i++){
272 271
           // if(id == this.diagnoses[i].id){
273 272
           //    name = this.diagnoses[i].class_name
274 273
           // }
275 274
           
276
-          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
275
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
277 276
             // name += diagnoses[i].class_name + ' '
278
-            nameArr.push(diagnoses[i].class_name)
277
+            nameArr.push(this.diagnoses[i].class_name)
279 278
           }
280 279
         }
281 280
         let newNameArr = []
@@ -396,9 +395,10 @@ export default {
396 395
 
397 396
    },
398 397
    created(){
398
+      this.getPrescriptionPrint()
399 399
       this.getAllDoctorList()
400 400
       this.getInitData()
401
-      this.getPrescriptionPrint()
401
+      
402 402
       this.getHisPatientDetail()
403 403
       var xtuser = this.$store.getters.xt_user;
404 404
       this.orgname = xtuser.org.org_name;
@@ -406,6 +406,7 @@ export default {
406 406
    },
407 407
    watch:{
408 408
      ids:function(val){
409
+       console.log('val1111111111111111111111111111',val)
409 410
       this.ids = val
410 411
       this.getPrescriptionPrint()
411 412
     }

+ 5 - 6
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Прегледај датотеку

@@ -389,7 +389,7 @@ export default {
389 389
        getInitData().then(response=>{
390 390
           if(response.data.state == 1){
391 391
             this.department = response.data.data.department
392
-            this.diagnoses = response.data.data.diagnose
392
+            this.diagnoses = response.data.data.diagnose.sort(this.compare('id'))
393 393
             console.log("争端",this.diagnoses)
394 394
           }
395 395
        })
@@ -399,17 +399,16 @@ export default {
399 399
           return a-b;
400 400
         })
401 401
         
402
-        let diagnoses = this.diagnoses.sort(this.compare('id'))
403 402
         var name = ""
404 403
         let nameArr = []
405
-        for(let i=0;i<diagnoses.length;i++){
404
+        for(let i=0;i<this.diagnoses.length;i++){
406 405
           // if(id == this.diagnoses[i].id){
407 406
           //    name = this.diagnoses[i].class_name
408 407
           // }
409 408
           
410
-          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
409
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
411 410
             // name += diagnoses[i].class_name + ' '
412
-            nameArr.push(diagnoses[i].class_name)
411
+            nameArr.push(this.diagnoses[i].class_name)
413 412
           }
414 413
         }
415 414
         let newNameArr = []
@@ -430,7 +429,7 @@ export default {
430 429
         }
431 430
       },
432 431
      getName(list) {
433
-        console.log('list',list)
432
+        console.log('list22',list)
434 433
         let new_list = []
435 434
         for (let i = 0; i < list.length; i++) {
436 435
           if (list[i].aac031 == '1') {