see999 hace 3 años
padre
commit
87ecb4ac7b

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Ver fichero

@@ -6,7 +6,7 @@
6 6
         <div class="app-container">
7 7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 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 10
                               class="filter-item"/>
11 11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12 12
                                @click="searchAction">

+ 27 - 5
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Ver fichero

@@ -252,18 +252,40 @@ export default {
252 252
      },
253 253
 
254 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 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 263
           // if(id == this.diagnoses[i].id){
259 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 289
      getPage(){
268 290
         this.page = 1
269 291
         this.pageArr = []

+ 27 - 5
src/xt_pages/outpatientDoctorStation/template/printThree.vue Ver fichero

@@ -261,18 +261,40 @@ export default {
261 261
      },
262 262
 
263 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 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 272
           // if(id == this.diagnoses[i].id){
268 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 298
      getPage(){
277 299
         this.page = 1
278 300
         this.pageArr = []

+ 27 - 5
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Ver fichero

@@ -395,18 +395,40 @@ export default {
395 395
        })
396 396
      },
397 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 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 406
           // if(id == this.diagnoses[i].id){
402 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 432
      getName(list) {
411 433
         console.log('list',list)
412 434
         let new_list = []

+ 3 - 3
src/xt_pages/workforce/remind_print_setting.vue Ver fichero

@@ -22,8 +22,8 @@
22 22
               <div class="signPrint">
23 23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24 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 27
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
28 28
                   <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
29 29
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
@@ -32,7 +32,7 @@
32 32
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
33 33
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
34 34
                 </div> 
35
-                <div>用法:透析备用</div> 
35
+                <div>用法:静脉注射</div> 
36 36
                 <div>打印时间:{{currentDate}}</div>
37 37
               </div>
38 38
            </div>