see999 3 years ago
parent
commit
87ecb4ac7b

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue View File

6
         <div class="app-container">
6
         <div class="app-container">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
                 <div>
8
                 <div>
9
-                    <el-input size="small" style="width:150px;" v-model="keywords"
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction" @keyup.enter.native='searchAction'
10
                               class="filter-item"/>
10
                               class="filter-item"/>
11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
                                @click="searchAction">
12
                                @click="searchAction">

+ 27 - 5
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

252
      },
252
      },
253
 
253
 
254
      getDiagnosis(ids){
254
      getDiagnosis(ids){
255
-        let id = ids.split(',')
255
+        let newIds = ids.split(',').sort(function(a,b){
256
+          return a-b;
257
+        })
258
+        
259
+        let diagnoses = this.diagnoses.sort(this.compare('id'))
256
         var name = ""
260
         var name = ""
257
-        for(let i=0;i<this.diagnoses.length;i++){
261
+        let nameArr = []
262
+        for(let i=0;i<diagnoses.length;i++){
258
           // if(id == this.diagnoses[i].id){
263
           // if(id == this.diagnoses[i].id){
259
           //    name = this.diagnoses[i].class_name
264
           //    name = this.diagnoses[i].class_name
260
           // }
265
           // }
261
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
262
-            name += this.diagnoses[i].class_name + ' '
266
+          
267
+          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
268
+            // name += diagnoses[i].class_name + ' '
269
+            nameArr.push(diagnoses[i].class_name)
263
           }
270
           }
264
         }
271
         }
265
-        return name
272
+        let newNameArr = []
273
+        nameArr.map((item,index) => {
274
+          if(item == '尿毒症'){
275
+            newNameArr.push(item)
276
+            nameArr.splice(index,1,'') 
277
+          }
278
+        })
279
+        newNameArr.push(...nameArr)
280
+        return newNameArr.join(' ')
266
      },
281
      },
282
+     compare(property) {
283
+        return function(a,b){
284
+          var value1 = a[property];
285
+          var value2 = b[property];
286
+          return value1 - value2;//升序排序
287
+        }
288
+      },
267
      getPage(){
289
      getPage(){
268
         this.page = 1
290
         this.page = 1
269
         this.pageArr = []
291
         this.pageArr = []

+ 27 - 5
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

261
      },
261
      },
262
 
262
 
263
      getDiagnosis(ids){
263
      getDiagnosis(ids){
264
-        let id = ids.split(',')
264
+        let newIds = ids.split(',').sort(function(a,b){
265
+          return a-b;
266
+        })
267
+        
268
+        let diagnoses = this.diagnoses.sort(this.compare('id'))
265
         var name = ""
269
         var name = ""
266
-        for(let i=0;i<this.diagnoses.length;i++){
270
+        let nameArr = []
271
+        for(let i=0;i<diagnoses.length;i++){
267
           // if(id == this.diagnoses[i].id){
272
           // if(id == this.diagnoses[i].id){
268
           //    name = this.diagnoses[i].class_name
273
           //    name = this.diagnoses[i].class_name
269
           // }
274
           // }
270
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
271
-            name += this.diagnoses[i].class_name + ' '
275
+          
276
+          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
277
+            // name += diagnoses[i].class_name + ' '
278
+            nameArr.push(diagnoses[i].class_name)
272
           }
279
           }
273
         }
280
         }
274
-        return name
281
+        let newNameArr = []
282
+        nameArr.map((item,index) => {
283
+          if(item == '尿毒症'){
284
+            newNameArr.push(item)
285
+            nameArr.splice(index,1,'') 
286
+          }
287
+        })
288
+        newNameArr.push(...nameArr)
289
+        return newNameArr.join(' ')
275
      },
290
      },
291
+     compare(property) {
292
+        return function(a,b){
293
+          var value1 = a[property];
294
+          var value2 = b[property];
295
+          return value1 - value2;//升序排序
296
+        }
297
+      },
276
      getPage(){
298
      getPage(){
277
         this.page = 1
299
         this.page = 1
278
         this.pageArr = []
300
         this.pageArr = []

+ 27 - 5
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

395
        })
395
        })
396
      },
396
      },
397
      getDiagnosis(ids){
397
      getDiagnosis(ids){
398
-        let id = ids.split(',')
398
+        let newIds = ids.split(',').sort(function(a,b){
399
+          return a-b;
400
+        })
401
+        
402
+        let diagnoses = this.diagnoses.sort(this.compare('id'))
399
         var name = ""
403
         var name = ""
400
-        for(let i=0;i<this.diagnoses.length;i++){
404
+        let nameArr = []
405
+        for(let i=0;i<diagnoses.length;i++){
401
           // if(id == this.diagnoses[i].id){
406
           // if(id == this.diagnoses[i].id){
402
           //    name = this.diagnoses[i].class_name
407
           //    name = this.diagnoses[i].class_name
403
           // }
408
           // }
404
-          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
405
-            name += this.diagnoses[i].class_name + ' '
409
+          
410
+          if(newIds.indexOf(diagnoses[i].id.toString()) > -1){
411
+            // name += diagnoses[i].class_name + ' '
412
+            nameArr.push(diagnoses[i].class_name)
406
           }
413
           }
407
         }
414
         }
408
-        return name
415
+        let newNameArr = []
416
+        nameArr.map((item,index) => {
417
+          if(item == '尿毒症'){
418
+            newNameArr.push(item)
419
+            nameArr.splice(index,1,'') 
420
+          }
421
+        })
422
+        newNameArr.push(...nameArr)
423
+        return newNameArr.join(' ')
409
      },
424
      },
425
+     compare(property) {
426
+        return function(a,b){
427
+          var value1 = a[property];
428
+          var value2 = b[property];
429
+          return value1 - value2;//升序排序
430
+        }
431
+      },
410
      getName(list) {
432
      getName(list) {
411
         console.log('list',list)
433
         console.log('list',list)
412
         let new_list = []
434
         let new_list = []

+ 3 - 3
src/xt_pages/workforce/remind_print_setting.vue View File

22
               <div class="signPrint">
22
               <div class="signPrint">
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24
                 <div>姓名:{{main_collection.patient.name}}</div> 
24
                 <div>姓名:{{main_collection.patient.name}}</div> 
25
-                <div>抗凝剂: {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}} </div> 
26
-                <div>量:  
25
+                <div>抗凝剂: {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name + ' 5000iu/瓶' : ''}}</div> 
26
+                <div>量:  
27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
34
                 </div> 
34
                 </div> 
35
-                <div>用法:透析备用</div> 
35
+                <div>用法:静脉注射</div> 
36
                 <div>打印时间:{{currentDate}}</div>
36
                 <div>打印时间:{{currentDate}}</div>
37
               </div>
37
               </div>
38
            </div>
38
            </div>