28169 преди 1 месец
родител
ревизия
4e6ef87fa9

+ 11 - 3
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue Целия файл

@@ -22,9 +22,13 @@
22 22
                       value-format="yyyy-MM-dd"
23 23
                       placeholder="选择日期时间" align="right"
24 24
                      :picker-options="pickerOptions"></el-date-picker>
25
-      <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
25
+      <el-input size="small" style="width: 100px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
26 26
                 class="filter-item" v-model="query.keywords"/>
27
-      <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
27
+      <el-button size="small" class="filter-item" type="primary" placeholder="请输入患者姓名" icon="el-icon-search" @click="search">搜索</el-button>&nbsp;&nbsp;
28
+
29
+      <!-- <el-input size="small" style="width: 100px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
30
+                class="filter-item" v-model="query.keyword"/>
31
+      <el-button size="small" class="filter-item" type="primary" placeholder="请输入药品名称" icon="el-icon-search" @click="searchOne">搜索2</el-button> -->
28 32
     </div>
29 33
     <div class="cell clearfix" style="justify-content: space-between;">
30 34
       <div style="display:flex;">
@@ -209,6 +213,7 @@
209 213
           page:1,
210 214
           limit:10,
211 215
           keywords:"",
216
+          keyword:"",
212 217
           good_type:0,
213 218
           ids:"",
214 219
         },
@@ -593,6 +598,9 @@
593 598
         this.query.page = 1
594 599
         this.getlist()
595 600
       },
601
+      searchOne() {
602
+        this.getlist()
603
+      },
596 604
 
597 605
       exportList(){
598 606
         import('@/vendor/Export2Excel').then(excel => { 
@@ -812,7 +820,7 @@
812 820
         return week;
813 821
       },
814 822
       toBiaoqian(){
815
-        this.$router.push({path:"/dialysis/hisLongSignPrint?selected_date="+this.selected_date+"&schedule_type="+this.query.schedule_type+"&partition_id="+this.query.partition_id})
823
+        this.$router.push({path:"/dialysis/hisLongSignPrint?selected_date="+this.selected_date+"&schedule_type="+this.query.schedule_type+"&partition_id="+this.query.partition_id+"&ids="+this.ids+"&keywords="+this.query.keywords})
816 824
       }
817 825
     }
818 826
   }

+ 1 - 0
src/xt_pages/dialysis/details/consumable/dialysisDrugPrint.vue Целия файл

@@ -120,6 +120,7 @@
120 120
           partition_id:this.$route.query.partition_id,
121 121
           ids:this.$route.query.ids,
122 122
          }
123
+         console.log("HHAHDHAHHDAH",params)
123 124
         getDialysisAdviceTemplateList(params).then(response=>{
124 125
           if(response.data.state == 1){
125 126
           

+ 13 - 5
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Целия файл

@@ -98,10 +98,10 @@
98 98
           :label="item.filed_name_cn"
99 99
         >
100 100
           <template slot-scope="scope">
101
-            <span v-if="org_id !=10599">
101
+            <!-- <span v-if="org_id !=10599 && org_id!=10138 && org_id!=10278">
102 102
               {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
103
-            </span>
104
-            <span v-if="org_id==10599">
103
+            </span> -->
104
+            <span>
105 105
               <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
106 106
               <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
107 107
             </span>
@@ -179,7 +179,9 @@
179 179
           :label="item.type_name"
180 180
         >
181 181
           <template slot-scope="scope">
182
-             {{getStr(scope.row.typeList[index].id,scope.row.projectList,scope.row.patient_id)}}
182
+            <span v-if="scope.row.his_prescription_project.length>0"> {{getStr(scope.row.typeList[index].id,scope.row.his_prescription_project,scope.row.patient_id)}}</span>
183
+            <span v-if="scope.row.his_prescription_project.length==0">  {{getStr(scope.row.typeList[index].id,scope.row.projectList,scope.row.patient_id)}}</span>
184
+           
183 185
           </template>
184 186
 
185 187
         </el-table-column>
@@ -609,7 +611,13 @@
609 611
             this.list[i].name3 = this.list[i].patient.dialysis_no
610 612
             if(this.typeList!=null && this.typeList.length > 0){
611 613
               for(let j=0;j<this.typeList.length;j++){
612
-                this.list[i]['name'+(j+4)] = this.getStr(this.list[i].typeList[j].id,this.list[i].projectList,this.list[i].patient_id)
614
+                if(this.list[i].his_prescription_project.length>0){
615
+                  this.list[i]['name'+(j+4)] = this.getStr(this.list[i].typeList[j].id,this.list[i].his_prescription_project,this.list[i].patient_id)
616
+                }
617
+                if(this.list[i].his_prescription_project.length == 0){
618
+                  this.list[i]['name'+(j+4)] = this.getStr(this.list[i].typeList[j].id,this.list[i].projectList,this.list[i].patient_id)
619
+                }
620
+              
613 621
               }
614 622
             }
615 623
 

+ 3 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Целия файл

@@ -74,7 +74,9 @@
74 74
                  <td>{{item.patient.name}}</td>
75 75
                 <td>{{item.patient.dialysis_no}}</td>
76 76
                 <td v-for="(it,index) in typeList" :key="index">
77
-                  {{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}
77
+                  <span v-if="item.his_prescription_project.length>0"> {{getStr(item.typeList[index].id,item.his_prescription_project,item.patient_id)}}</span>
78
+                  <span v-if="item.his_prescription_project.length==0">{{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}</span>
79
+                 
78 80
                 </td>
79 81
                </tr>
80 82
               </tbody>

+ 11 - 13
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Целия файл

@@ -515,18 +515,9 @@ export default {
515 515
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
516 516
     this.patient_id = this.$route.query.patient_id;
517 517
     this.schedule_date = this.$route.query.date;
518
-    this.form.nurse_id =
519
-      this.dialysis_order.id == 0
520
-        ? this.$store.getters.xt_user.user.id
521
-        : this.dialysis_order.start_nurse;
522
-    this.form.puncture_nurse_id =
523
-      this.dialysis_order.id == 0
524
-        ? this.$store.getters.xt_user.user.id
525
-        : this.dialysis_order.puncture_nurse;
526
-    this.form.washpipe_nurse =
527
-      this.dialysis_order.id == 0
528
-        ? this.$store.getters.xt_user.user.id
529
-        : this.dialysis_order.washpipe_nurse;
518
+    this.form.nurse_id =this.dialysis_order.id == 0? this.$store.getters.xt_user.user.id: this.dialysis_order.start_nurse;
519
+    this.form.puncture_nurse_id =this.dialysis_order.id == 0? this.$store.getters.xt_user.user.id: this.dialysis_order.puncture_nurse;
520
+    this.form.washpipe_nurse =this.dialysis_order.id == 0? this.$store.getters.xt_user.user.id: this.dialysis_order.washpipe_nurse;
530 521
 
531 522
     if (this.form.puncture_nurse_id == 0) {
532 523
       this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id;
@@ -902,7 +893,14 @@ export default {
902 893
           console.log(this.dialysis_order);
903 894
           this.loading = true;
904 895
           let mode = "1";
905
-          var blood_drawing = this.form.blood_drawing.toString();
896
+          if(this.form.blood_drawing!=undefined){
897
+            var blood_drawing = this.form.blood_drawing.toString();
898
+          }else{
899
+            blood_drawing = ""
900
+          }
901
+
902
+
903
+         
906 904
           console.log("质控护士", this.form.quality_nurse_id);
907 905
           console.log("this.form.nuclein_date", this.form.nuclein_date);
908 906
 

+ 24 - 3
src/xt_pages/dialysis/hisLongSignPrint.vue Целия файл

@@ -177,8 +177,9 @@ export default {
177 177
           page:this.$route.query.page,
178 178
           limit:1000,
179 179
           keywords:"",
180
+          keyword:this.$route.query.keywords,
180 181
           good_type:0,
181
-          ids:"",
182
+          ids:this.$route.query.ids,
182 183
           
183 184
 
184 185
       }
@@ -198,8 +199,6 @@ export default {
198 199
         var adviceList = response.data.data.adviceList
199 200
         this.adviceList = adviceList
200 201
 
201
-        var longHisAdviceList = response.data.data.longHisAdviceList
202
-
203 202
 
204 203
         var tablelist = response.data.data.tablelist
205 204
         console.log("tablelsit",tablelist)
@@ -240,7 +239,29 @@ export default {
240 239
                     }
241 240
                 }
242 241
              }
242
+             console.log("寄哪里地方5555",this.$route.query.keywords)
243
+             if(this.$route.query.keywords!=""){
244
+                console.log("寄哪里地方",this.$route.query.keywords)
245
+               for(let i=0;i<list.length;i++){
246
+                 list[i].new_arr = []
247
+                 for(let j=0;j<list[i].his_advice_list.length;j++){
248
+                    console.log("iiiiii",list[i].his_advice_list[j].advice_name.indexOf(this.$route.query.keywords))
249
+                    if(list[i].his_advice_list[j].advice_name.indexOf(this.$route.query.keywords)!=-1){
250
+                       list[i].new_arr.push(list[i].his_advice_list[j])
251
+                    }
252
+                 }
253
+               }
254
+          }
255
+          if(list!=null && list.length>0){
256
+            for(let i=0;i<list.length;i++){
257
+                list[i].his_advice_list =[]
258
+                list[i].his_advice_list = list[i].new_arr 
259
+            }
260
+         }
243 261
         }
262
+        
263
+       
264
+      
244 265
        
245 266
         console.log("list-------------",list)
246 267
         this.list = list