Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 6 months ago
parent
commit
adee07a01e

+ 254 - 12
src/xt_pages/dialysis/details/consumable/dialysisGather.vue View File

28
       </div>
28
       </div>
29
       <div class="cell clearfix" style="justify-content: space-between;">
29
       <div class="cell clearfix" style="justify-content: space-between;">
30
         <label class="title"><span class="name">分区</span> : </label>
30
         <label class="title"><span class="name">分区</span> : </label>
31
-        <el-select v-model="partition_id" multiple  placeholder="请选择分区" style="margin-left:-400px"  @change="selectPartitionType">
31
+        <el-select v-model="partition_id" multiple  placeholder="请选择分区" style="margin-left:-800px"  @change="selectPartitionType">
32
           <el-option
32
           <el-option
33
             v-for="item in partitionArrOne"
33
             v-for="item in partitionArrOne"
34
             :key="item.id"
34
             :key="item.id"
117
               <span v-if="scope.row.mode_id == 35">HDF600</span>
117
               <span v-if="scope.row.mode_id == 35">HDF600</span>
118
               <span v-if="scope.row.mode_id == 36">HDF800</span>
118
               <span v-if="scope.row.mode_id == 36">HDF800</span>
119
               <span v-if="scope.row.mode_id == 37">HDF1000</span>
119
               <span v-if="scope.row.mode_id == 37">HDF1000</span>
120
+              <span v-if="scope.row.mode_id == 38">HDF80</span>
121
+              <span v-if="scope.row.mode_id == 39">HF16</span>
122
+              <span v-if="scope.row.mode_id == 40">HD(无肝素)</span>
123
+              <span v-if="scope.row.mode_id == 41">HDF17H</span>
124
+              <span v-if="scope.row.mode_id == 42">HD.</span>
125
+              <span v-if="scope.row.mode_id == 43">HD(2)</span>
120
              </template>
126
              </template>
121
           </el-table-column>
127
           </el-table-column>
122
              
128
              
127
                 <span v-if="scope.row.dialysis_prescription.dialysis_dialyszers==''">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span> 
133
                 <span v-if="scope.row.dialysis_prescription.dialysis_dialyszers==''">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span> 
128
                </span>
134
                </span>
129
 
135
 
130
-               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
136
+               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
131
 
137
 
132
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
138
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
133
              </template>
139
              </template>
144
                   {{scope.row.dialysis_solution.dialysis_irrigation}}
150
                   {{scope.row.dialysis_solution.dialysis_irrigation}}
145
                  </span> 
151
                  </span> 
146
                </span>
152
                </span>
147
-               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
153
+               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
148
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
154
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
149
 
155
 
150
              </template>
156
              </template>
161
                   {{ scope.row.dialysis_solution.dialysis_strainer }}
167
                   {{ scope.row.dialysis_solution.dialysis_strainer }}
162
                 </span>
168
                 </span>
163
                </span>
169
                </span>
164
-               <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
170
+               <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_prescription.dialysis_strainer }}</span>
165
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
171
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
166
              </template>
172
              </template>
167
           </el-table-column>
173
           </el-table-column>
235
   
241
   
236
           <el-table-column align="center" label="促红素" v-if="gatherSetting.cuhong == 1">
242
           <el-table-column align="center" label="促红素" v-if="gatherSetting.cuhong == 1">
237
              <template slot-scope="scope">
243
              <template slot-scope="scope">
238
-                {{ scope.row.advice_spc }}
244
+               <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc }}</span>
245
+               <span v-if="scope.row.schedule_date > timenow"> {{ getLongAdvice(scope.row.long_doctor_advice,scope.row.schedule_date) }} </span>
239
              </template>
246
              </template>
240
           </el-table-column>
247
           </el-table-column>
241
 
248
 
242
           <el-table-column align="center" label="左卡" v-if="gatherSetting.zuoka == 1">
249
           <el-table-column align="center" label="左卡" v-if="gatherSetting.zuoka == 1">
243
              <template slot-scope="scope">
250
              <template slot-scope="scope">
244
-                {{ scope.row.advice_spc_one }}
251
+                <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_one }}</span>
252
+                <span v-if="scope.row.schedule_date > timenow"> {{ getLongAdviceOne(scope.row.long_doctor_advice,scope.row.schedule_date) }} </span>
245
              </template>
253
              </template>
246
           </el-table-column>
254
           </el-table-column>
247
 
255
 
248
           <el-table-column align="center" label="尿激酶" v-if="gatherSetting.niaojimei == 1">
256
           <el-table-column align="center" label="尿激酶" v-if="gatherSetting.niaojimei == 1">
249
              <template slot-scope="scope">
257
              <template slot-scope="scope">
250
-                {{ scope.row.advice_spc_two }}
258
+               <span v-if="scope.row.schedule_date <= timenow">{{ scope.row.advice_spc_two }}</span>
259
+               <span v-if="scope.row.schedule_date > timenow"> {{ getLongAdviceTwo(scope.row.long_doctor_advice,scope.row.schedule_date) }} </span>
251
              </template>
260
              </template>
252
           </el-table-column>
261
           </el-table-column>
253
 
262
 
254
 
263
 
255
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
264
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
256
              <template slot-scope="scope">
265
              <template slot-scope="scope">
257
-                {{ scope.row.advice_spc_three }}
266
+              <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_three }}</span>
267
+              <span v-if="scope.row.schedule_date <= timenow">{{ getLongAdviceThree(scope.row.long_doctor_advice,scope.row.schedule_date) }}</span>
268
+             </template>
269
+          </el-table-column>
270
+
271
+          <el-table-column align="center" label="肝素钠" v-if="org_id == 0 || org_id == 10683">
272
+             <template slot-scope="scope">
273
+              <span v-if="scope.row.schedule_date <= timenow"> {{ scope.row.advice_spc_four }}</span>
274
+              <span v-if="scope.row.schedule_date <= timenow">{{ getLongAdviceFour(scope.row.long_doctor_advice,scope.row.schedule_date)  }}</span>
258
              </template>
275
              </template>
259
           </el-table-column>
276
           </el-table-column>
260
-        
261
-  
262
           
277
           
263
         </el-table>
278
         </el-table>
264
   
279
   
619
           gatherSetting:{},
634
           gatherSetting:{},
620
           timenow:0,
635
           timenow:0,
621
           startDialogVisibleOne:false,
636
           startDialogVisibleOne:false,
637
+          org_id:0,
622
         }
638
         }
623
       },
639
       },
624
       open(){
640
       open(){
625
         console.log("寄哪里地方到付阿道夫")
641
         console.log("寄哪里地方到付阿道夫")
626
       },
642
       },
627
       created() {
643
       created() {
644
+         this.org_id = this.$store.getters.xt_user.org.id
628
          this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
645
          this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
629
          this.displace_liqui_part_option = this.$store.getters.displace_liqui
646
          this.displace_liqui_part_option = this.$store.getters.displace_liqui
630
       
647
       
716
                   list[i].advice_spc_one =""
733
                   list[i].advice_spc_one =""
717
                   list[i].advice_spc_two =""
734
                   list[i].advice_spc_two =""
718
                   list[i].advice_spc_three = ""
735
                   list[i].advice_spc_three = ""
719
-                   for(let j=0;j<list[i].advice.length;j++){
736
+                  list[i].advice_spc_four = ""
737
+                  for(let j=0;j<list[i].advice.length;j++){
720
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
738
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
721
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
739
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
722
                        }
740
                        }
733
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
751
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
734
                        }
752
                        }
735
 
753
 
754
+                       if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
755
+                          list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
756
+                       }
757
+
736
                    }
758
                    }
737
                 }
759
                 }
738
                 console.log("listwowowowowowo日本",this.list)
760
                 console.log("listwowowowowowo日本",this.list)
1106
            if(id ==37){
1128
            if(id ==37){
1107
              mode_name ="HDF1000"
1129
              mode_name ="HDF1000"
1108
            }
1130
            }
1131
+
1132
+           if(id ==38){
1133
+             mode_name ="HDF80"
1134
+           }
1135
+
1136
+           if(id ==39){
1137
+             mode_name ="HF16"
1138
+           }
1139
+
1140
+           if(id ==40){
1141
+             mode_name ="HD(无肝素)"
1142
+           }
1143
+
1144
+           if(id ==41){
1145
+             mode_name ="HDF17H"
1146
+           }
1147
+
1148
+           if(id ==42){
1149
+             mode_name ="HD."
1150
+           }
1151
+
1152
+           if(id ==43){
1153
+             mode_name ="HD(2)"
1154
+           }
1109
           
1155
           
1110
            return mode_name
1156
            return mode_name
1111
         },
1157
         },
1126
            if(id == 7){
1172
            if(id == 7){
1127
              name ="低分子肝素钠"
1173
              name ="低分子肝素钠"
1128
            }
1174
            }
1175
+           if(id == 8){
1176
+             name ="依诺肝素"
1177
+           }
1178
+           if(id == 9){
1179
+             name ="达肝素"
1180
+           }
1181
+           if(id == 10){
1182
+             name ="体外抗凝"
1183
+           }
1184
+           if(id == 11){
1185
+             name ="那屈肝素"
1186
+           }
1187
+           if(id == 12){
1188
+             name ="无抗凝剂"
1189
+           }
1190
+           if(id == 13){
1191
+             name ="那屈肝素钙"
1192
+           }
1193
+           if(id == 14){
1194
+             name ="肝素钙注射液"
1195
+           }
1196
+           if(id == 15){
1197
+             name ="甲磺酸萘莫司他"
1198
+           }
1199
+           if(id == 16){
1200
+             name ="低分子量肝素钙"
1201
+           }
1202
+           if(id == 17){
1203
+             name ="肝素钠"
1204
+           }
1205
+
1206
+           if(id == 18){
1207
+             name ="贝米肝素钠注射液"
1208
+           }
1209
+           
1129
            return name
1210
            return name
1130
         },
1211
         },
1131
         handleScheduleDateChange(val) {
1212
         handleScheduleDateChange(val) {
1876
          if(id == 13){
1957
          if(id == 13){
1877
            name ="那屈肝素钙"
1958
            name ="那屈肝素钙"
1878
          }
1959
          }
1960
+         if(id == 14){
1961
+           name ="肝素钙注射液"
1962
+         }
1963
+         if(id == 15){
1964
+           name ="甲磺酸萘莫司他"
1965
+         }
1966
+         if(id == 16){
1967
+           name ="低分子量肝素钙"
1968
+         }
1969
+         if(id == 17){
1970
+           name ="肝素钠"
1971
+         }
1972
+         if(id == 18){
1973
+           name ="贝米肝素钠注射液"
1974
+         }
1975
+
1879
          return name
1976
          return name
1880
        },
1977
        },
1881
        getBloodAccessOption(id){
1978
        getBloodAccessOption(id){
2135
        toStatic(){
2232
        toStatic(){
2136
         
2233
         
2137
         this.startDialogVisibleOne = true
2234
         this.startDialogVisibleOne = true
2138
-       }
2235
+       },
2236
+       getLongAdvice(val,schedule_date){
2237
+        var newArrList = []
2238
+        var newArr = []
2239
+        var advice_name = ""
2240
+         if(val!=null && val.length>0){
2241
+            for(let i=0;i<val.length;i++){
2242
+              if(val[i].advice_name.indexOf("促红")!=-1){
2243
+                newArrList.push(val[i])
2244
+              }
2245
+            }
2246
+         }
2247
+         
2248
+         if(newArrList!=null && newArrList.length>0){
2249
+           for(let i=0;i<newArrList.length;i++){
2250
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2251
+                  newArr.push(newArrList[i])
2252
+             }
2253
+           }
2254
+         }
2255
+       
2256
+         if(newArr!=null && newArr.length>0){
2257
+           for(let i=0;i<newArr.length;i++){
2258
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2259
+           }
2260
+         }
2261
+         return advice_name
2262
+       },
2263
+       getLongAdviceOne(val,schedule_date){
2264
+        var newArrList = []
2265
+        var newArr = []
2266
+        var advice_name = ""
2267
+         if(val!=null && val.length>0){
2268
+            for(let i=0;i<val.length;i++){
2269
+              if(val[i].advice_name.indexOf("左卡")!=-1){
2270
+                newArrList.push(val[i])
2271
+              }
2272
+            }
2273
+         }
2274
+        
2275
+         if(newArrList!=null && newArrList.length>0){
2276
+           for(let i=0;i<newArrList.length;i++){
2277
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2278
+                  
2279
+                  newArr.push(newArrList[i])
2280
+             }
2281
+           }
2282
+         }
2283
+       
2284
+         if(newArr!=null && newArr.length>0){
2285
+           for(let i=0;i<newArr.length;i++){
2286
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2287
+           }
2288
+         }
2289
+         return advice_name
2290
+       },
2291
+
2292
+       getLongAdviceTwo(val,schedule_date){
2293
+        var newArrList = []
2294
+        var newArr = []
2295
+        var advice_name = ""
2296
+         if(val!=null && val.length>0){
2297
+            for(let i=0;i<val.length;i++){
2298
+              if(val[i].advice_name.indexOf("尿激酶")!=-1){
2299
+                newArrList.push(val[i])
2300
+              }
2301
+            }
2302
+         }
2303
+        
2304
+         if(newArrList!=null && newArrList.length>0){
2305
+           for(let i=0;i<newArrList.length;i++){
2306
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2307
+                  
2308
+                  newArr.push(newArrList[i])
2309
+             }
2310
+           }
2311
+         }
2312
+       
2313
+         if(newArr!=null && newArr.length>0){
2314
+           for(let i=0;i<newArr.length;i++){
2315
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2316
+           }
2317
+         }
2318
+         return advice_name
2319
+       },
2320
+       getLongAdviceThree(val,schedule_date){
2321
+        var newArrList = []
2322
+        var newArr = []
2323
+        var advice_name = ""
2324
+         if(val!=null && val.length>0){
2325
+            for(let i=0;i<val.length;i++){
2326
+              if(val[i].advice_name.indexOf("葡萄糖酸钙")!=-1){
2327
+                newArrList.push(val[i])
2328
+              }
2329
+            }
2330
+         }
2331
+        
2332
+         if(newArrList!=null && newArrList.length>0){
2333
+           for(let i=0;i<newArrList.length;i++){
2334
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2335
+                  
2336
+                  newArr.push(newArrList[i])
2337
+             }
2338
+           }
2339
+         }
2340
+       
2341
+         if(newArr!=null && newArr.length>0){
2342
+           for(let i=0;i<newArr.length;i++){
2343
+            advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2344
+           }
2345
+         }
2346
+         return advice_name
2347
+       },
2348
+       getLongAdviceFour(val,schedule_date){
2349
+        var newArrList = []
2350
+        var newArr = []
2351
+        var advice_name = ""
2352
+         if(val!=null && val.length>0){
2353
+            for(let i=0;i<val.length;i++){
2354
+              if(val[i].advice_name.indexOf("肝素钠")!=-1){
2355
+                newArrList.push(val[i])
2356
+              }
2357
+            }
2358
+         }
2359
+        
2360
+         if(newArrList!=null && newArrList.length>0){
2361
+           for(let i=0;i<newArrList.length;i++){
2362
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2 && newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
2363
+                  
2364
+                  newArr.push(newArrList[i])
2365
+             }
2366
+           }
2367
+         }
2368
+       
2369
+         if(newArr!=null && newArr.length>0){
2370
+           for(let i=0;i<newArr.length;i++){
2371
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
2372
+           }
2373
+         }
2374
+         return advice_name
2375
+       },
2376
+       getweekday(date){
2377
+          var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
2378
+          var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
2379
+         return week;
2380
+      },
2139
       }
2381
       }
2140
     }
2382
     }
2141
   </script>
2383
   </script>

+ 193 - 10
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue View File

26
                 <thead>
26
                 <thead>
27
                 <tr>
27
                 <tr>
28
                   <td width="60" v-if="gatherSetting.index_number == 1">序号</td>
28
                   <td width="60" v-if="gatherSetting.index_number == 1">序号</td>
29
+                  <td width="200" v-if="org_id == 0 || org_id ==10683">备注</td>
29
                   <td width="100"  v-if="gatherSetting.name==1">姓名</td>
30
                   <td width="100"  v-if="gatherSetting.name==1">姓名</td>
30
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
31
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
31
                   <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
32
                   <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
43
                   <td width="100"  v-if="gatherSetting.zuoka == 1">左卡</td>
44
                   <td width="100"  v-if="gatherSetting.zuoka == 1">左卡</td>
44
                   <td width="100" v-if="gatherSetting.niaojimei == 1">尿激酶</td>
45
                   <td width="100" v-if="gatherSetting.niaojimei == 1">尿激酶</td>
45
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
46
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
47
+
48
+                  <td width="100" v-if="org_id == 0 || org_id ==10683">肝素钠</td>
46
                  
49
                  
47
                 </tr>
50
                 </tr>
48
                 </thead>
51
                 </thead>
49
                 <tbody>
52
                 <tbody>
50
                  <tr v-for="(item,i) in list" :key="i">
53
                  <tr v-for="(item,i) in list" :key="i">
54
+                  <td width="100" v-if="org_id == 0 || org_id ==10683"> </td>
51
                    <td width="60" v-if="gatherSetting.index_number == 1">{{ i+1 }}</td>
55
                    <td width="60" v-if="gatherSetting.index_number == 1">{{ i+1 }}</td>
52
                   <td width="100"  v-if="gatherSetting.name==1">
56
                   <td width="100"  v-if="gatherSetting.name==1">
53
                     {{item.patient.name}}
57
                     {{item.patient.name}}
89
                     <span v-if="item.mode_id == 33">HFD</span>
93
                     <span v-if="item.mode_id == 33">HFD</span>
90
                     <span v-if="item.mode_id == 34">HDF100</span>
94
                     <span v-if="item.mode_id == 34">HDF100</span>
91
                     <span v-if="item.mode_id == 35">HDF600</span>
95
                     <span v-if="item.mode_id == 35">HDF600</span>
92
-                    <span v-if="item.mode_id == 35">HDF800</span>
93
-                    <span v-if="item.mode_id == 35">HDF1000</span>
96
+                    <span v-if="item.mode_id == 36">HDF800</span>
97
+                    <span v-if="item.mode_id == 37">HDF1000</span>
98
+                    <span v-if="item.mode_id == 38">HDF80</span>
99
+                    <span v-if="item.mode_id == 39">HF16</span>
100
+                    <span v-if="item.mode_id == 40">HD(无肝素)</span>
101
+                    <span v-if="item.mode_id == 41">HDF17H</span>
102
+                    <span v-if="item.mode_id == 42">HD.</span>
103
+                    <span v-if="item.mode_id == 43">HD(2)</span>
94
                  </td>
104
                  </td>
95
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
105
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
96
                     <span v-if="item.schedule_date == timenow">
106
                     <span v-if="item.schedule_date == timenow">
97
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers!=''">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
107
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers!=''">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
98
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers==''">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
108
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers==''">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
99
                      </span> 
109
                      </span> 
100
-                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
110
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
101
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
111
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
102
                   </td>
112
                   </td>
103
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
113
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
106
                       <span v-if="item.dialysis_prescription.dialysis_irrigation==''"> {{item.dialysis_solution.dialysis_irrigation}}</span>
116
                       <span v-if="item.dialysis_prescription.dialysis_irrigation==''"> {{item.dialysis_solution.dialysis_irrigation}}</span>
107
                     </span>
117
                     </span>
108
 
118
 
109
-                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
119
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_irrigation}}</span>
110
 
120
 
111
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
121
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
112
                   </td>
122
                   </td>
116
                       <span v-if="item.dialysis_prescription.dialysis_strainer==''">{{item.dialysis_solution.dialysis_strainer}}</span> 
126
                       <span v-if="item.dialysis_prescription.dialysis_strainer==''">{{item.dialysis_solution.dialysis_strainer}}</span> 
117
                     </span>
127
                     </span>
118
 
128
 
119
-                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
129
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_prescription.dialysis_strainer}}</span>
120
 
130
 
121
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
131
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
122
                   </td>
132
                   </td>
164
                     <span v-if="item.dialysis_prescription.calcium>0">{{item.dialysis_prescription.calcium}}</span>
174
                     <span v-if="item.dialysis_prescription.calcium>0">{{item.dialysis_prescription.calcium}}</span>
165
                  </td>
175
                  </td>
166
                   <td width="100" v-if="gatherSetting.cuhong == 1">
176
                   <td width="100" v-if="gatherSetting.cuhong == 1">
167
-                    {{ item.advice_spc }}
177
+                     <span v-if="item.schedule_date <= timenow">{{ item.advice_spc }}</span>   
178
+                     <span v-if="item.schedule_date > timenow">{{ getLongAdvice(item.long_doctor_advice,item.schedule_date)  }}</span>   
168
                  </td>
179
                  </td>
169
                   <td width="100"  v-if="gatherSetting.zuoka == 1">
180
                   <td width="100"  v-if="gatherSetting.zuoka == 1">
170
-                    {{ item.advice_spc_one }}
181
+                    <span  v-if="item.schedule_date <= timenow">{{ item.advice_spc_one }}</span>  
182
+                    <span v-if="item.schedule_date>timenow">{{  getLongAdviceOne(item.long_doctor_advice,item.schedule_date) }}</span>
171
                  </td>
183
                  </td>
172
                   <td width="100" v-if="gatherSetting.niaojimei == 1">
184
                   <td width="100" v-if="gatherSetting.niaojimei == 1">
173
-                    {{ item.advice_spc_two }}
185
+                    <span v-if="item.schedule_date<=timenow"> {{ item.advice_spc_two }}</span>
186
+                    <span v-if="item.schedule_date > timenow"> {{getLongAdviceTwo(item.long_doctor_advice,item.schedule_date)}}</span>
174
                  </td>
187
                  </td>
175
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">
188
                   <td width="100" v-if="gatherSetting.putaosuangai == 1">
176
-                    {{ item.advice_spc_three }}
189
+                    <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_three }}</span>
190
+                    <span v-if="item.schedule_date>timenow">{{ getLongAdviceThree(item.long_doctor_advice,item.schedule_date) }}</span>
191
+                 </td>
192
+                 <td width="100" v-if="org_id == 0 || org_id ==10683">
193
+                  <span v-if="item.schedule_date<=timenow">  {{ item.advice_spc_four }}</span>
194
+                  <span v-if="item.schedule_date>timenow">{{ getLongAdviceFour(item.long_doctor_advice,item.schedule_date) }}</span>
177
                  </td>
195
                  </td>
178
-                 
179
                  </tr>
196
                  </tr>
180
                 </tbody>
197
                 </tbody>
181
               </table>
198
               </table>
289
                   list[i].advice_spc_one =""
306
                   list[i].advice_spc_one =""
290
                   list[i].advice_spc_two =""
307
                   list[i].advice_spc_two =""
291
                   list[i].advice_spc_three = ""
308
                   list[i].advice_spc_three = ""
309
+                   list[i].advice_spc_four = ""
292
                    for(let j=0;j<list[i].advice.length;j++){
310
                    for(let j=0;j<list[i].advice.length;j++){
293
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
311
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
294
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
312
                           list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
306
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
324
                           list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
307
                        }
325
                        }
308
 
326
 
327
+                       if((list[i].advice[j].advice_name).indexOf("肝素钠")!=-1){
328
+                          list[i].advice_spc_four+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
329
+                       }
330
+
309
                    }
331
                    }
310
                 }
332
                 }
311
               this.list = list
333
               this.list = list
384
          if(id == 13){
406
          if(id == 13){
385
            name ="那屈肝素钙"
407
            name ="那屈肝素钙"
386
          }
408
          }
409
+         if(id == 14){
410
+           name ="肝素钙注射液"
411
+         }
412
+         if(id == 15){
413
+           name ="甲磺酸萘莫司他"
414
+         }
415
+         if(id == 16){
416
+           name ="低分子量肝素钙"
417
+         }
418
+         if(id == 17){
419
+           name ="肝素钠"
420
+         }
421
+         if(id == 18){
422
+           name ="贝米肝素钠注射液"
423
+         }
387
          return name
424
          return name
388
        },
425
        },
389
        getBloodAccessOption(id){
426
        getBloodAccessOption(id){
411
             return a - b; //升序
448
             return a - b; //升序
412
           }
449
           }
413
         },
450
         },
451
+
452
+        getLongAdvice(val,schedule_date){
453
+        var newArrList = []
454
+        var newArr = []
455
+        var advice_name = ""
456
+         if(val!=null && val.length>0){
457
+            for(let i=0;i<val.length;i++){
458
+              if(val[i].advice_name.indexOf("促红")!=-1){
459
+                newArrList.push(val[i])
460
+              }
461
+            }
462
+         }
463
+         
464
+         if(newArrList!=null && newArrList.length>0){
465
+           for(let i=0;i<newArrList.length;i++){
466
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
467
+                  newArr.push(newArrList[i])
468
+             }
469
+           }
470
+         }
471
+       
472
+         if(newArr!=null && newArr.length>0){
473
+           for(let i=0;i<newArr.length;i++){
474
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
475
+           }
476
+         }
477
+         return advice_name
478
+       },
479
+       getLongAdviceOne(val,schedule_date){
480
+        var newArrList = []
481
+        var newArr = []
482
+        var advice_name = ""
483
+         if(val!=null && val.length>0){
484
+            for(let i=0;i<val.length;i++){
485
+              if(val[i].advice_name.indexOf("左卡")!=-1){
486
+                newArrList.push(val[i])
487
+              }
488
+            }
489
+         }
490
+        
491
+         if(newArrList!=null && newArrList.length>0){
492
+           for(let i=0;i<newArrList.length;i++){
493
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
494
+                  
495
+                  newArr.push(newArrList[i])
496
+             }
497
+           }
498
+         }
499
+       
500
+         if(newArr!=null && newArr.length>0){
501
+           for(let i=0;i<newArr.length;i++){
502
+              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
503
+           }
504
+         }
505
+         return advice_name
506
+       },
507
+
508
+       getLongAdviceTwo(val,schedule_date){
509
+        var newArrList = []
510
+        var newArr = []
511
+        var advice_name = ""
512
+         if(val!=null && val.length>0){
513
+            for(let i=0;i<val.length;i++){
514
+              if(val[i].advice_name.indexOf("尿激酶")!=-1){
515
+                newArrList.push(val[i])
516
+              }
517
+            }
518
+         }
519
+        
520
+         if(newArrList!=null && newArrList.length>0){
521
+           for(let i=0;i<newArrList.length;i++){
522
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
523
+                  
524
+                  newArr.push(newArrList[i])
525
+             }
526
+           }
527
+         }
528
+       
529
+         if(newArr!=null && newArr.length>0){
530
+           for(let i=0;i<newArr.length;i++){
531
+             advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
532
+           }
533
+         }
534
+         return advice_name
535
+       },
536
+       getLongAdviceThree(val,schedule_date){
537
+        var newArrList = []
538
+        var newArr = []
539
+        var advice_name = ""
540
+         if(val!=null && val.length>0){
541
+            for(let i=0;i<val.length;i++){
542
+              if(val[i].advice_name.indexOf("葡萄糖酸钙")!=-1){
543
+                newArrList.push(val[i])
544
+              }
545
+            }
546
+         }
547
+        
548
+         if(newArrList!=null && newArrList.length>0){
549
+           for(let i=0;i<newArrList.length;i++){
550
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
551
+                  
552
+                  newArr.push(newArrList[i])
553
+             }
554
+           }
555
+         }
556
+       
557
+         if(newArr!=null && newArr.length>0){
558
+           for(let i=0;i<newArr.length;i++){
559
+              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
560
+           }
561
+         }
562
+         return advice_name
563
+       },
564
+       getLongAdviceFour(val,schedule_date){
565
+        var newArrList = []
566
+        var newArr = []
567
+        var advice_name = ""
568
+         if(val!=null && val.length>0){
569
+            for(let i=0;i<val.length;i++){
570
+              if(val[i].advice_name.indexOf("肝素钠")!=-1){
571
+                newArrList.push(val[i])
572
+              }
573
+            }
574
+         }
575
+        
576
+         if(newArrList!=null && newArrList.length>0){
577
+           for(let i=0;i<newArrList.length;i++){
578
+             if(newArrList[i].frequency_type == 1 || (newArrList[i].frequency_type == 2&& newArrList[i].day_count == 1) || (newArrList[i].frequency_type == 3 && newArrList[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
579
+                  
580
+                  newArr.push(newArrList[i])
581
+             }
582
+           }
583
+         }
584
+       
585
+         if(newArr!=null && newArr.length>0){
586
+           for(let i=0;i<newArr.length;i++){
587
+              advice_name += (newArr[i].single_dose + newArr[i].single_dose_unit+"/"+ newArr[i].prescribing_number_unit)+","
588
+           }
589
+         }
590
+         return advice_name
591
+       },
592
+       getweekday(date){
593
+          var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
594
+          var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
595
+         return week;
596
+      },
414
       
597
       
415
       }
598
       }
416
     }
599
     }

+ 6 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

125
             <span v-if="scope.row.mode_id == 35">HDF600</span>
125
             <span v-if="scope.row.mode_id == 35">HDF600</span>
126
             <span v-if="scope.row.mode_id == 36">HDF800</span>
126
             <span v-if="scope.row.mode_id == 36">HDF800</span>
127
             <span v-if="scope.row.mode_id == 37">HDF1000</span>
127
             <span v-if="scope.row.mode_id == 37">HDF1000</span>
128
+            <span v-if="scope.row.mode_id == 38">HDF80</span>
129
+            <span v-if="scope.row.mode_id == 39">HF16</span>
130
+            <span v-if="scope.row.mode_id == 40">HD(无肝素)</span>
131
+            <span v-if="scope.row.mode_id == 41">HDF17H</span>
132
+            <span v-if="scope.row.mode_id == 42">HD.</span>
133
+            <span v-if="scope.row.mode_id == 43">HD(2)</span>
128
            </template>
134
            </template>
129
         </el-table-column>
135
         </el-table-column>
130
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
136
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">

+ 32 - 19
src/xt_pages/qcd/patientControlAnalysis.vue View File

82
                     :row-style="{ color: '#303133' }"
82
                     :row-style="{ color: '#303133' }"
83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
84
             <el-table-column fixed prop="name" label="姓名" width="100"></el-table-column>
84
             <el-table-column fixed prop="name" label="姓名" width="100"></el-table-column>
85
+            <el-table-column label="检验日期" width="100">
86
+              <template slot-scope="scope">
87
+                {{getTime(scope.row.inspect_date)}}
88
+              </template>
89
+            </el-table-column>
85
             <el-table-column label="透析号" width="80">
90
             <el-table-column label="透析号" width="80">
86
               <template slot-scope="scope">
91
               <template slot-scope="scope">
87
                 {{ scope.row.dialysis_no }}
92
                 {{ scope.row.dialysis_no }}
157
 import echarts from 'echarts'
162
 import echarts from 'echarts'
158
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
163
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
159
 import LineChart from '../qcd/components/LineChart'
164
 import LineChart from '../qcd/components/LineChart'
165
+import { uParseTime } from '@/utils/tools'
160
 import {
166
 import {
161
   getCartogramlist,
167
   getCartogramlist,
162
   getCurrentOrgPatients,
168
   getCurrentOrgPatients,
173
   },
179
   },
174
   data() {
180
   data() {
175
     return {
181
     return {
182
+      getTime(val) {
183
+         if(val < 0){
184
+           return ""
185
+         }
186
+         if(val == ""){
187
+          return ""
188
+         }else {
189
+          return uParseTime(val, '{y}-{m}-{d}')
190
+         }
191
+      },
176
       pickerOptions: {
192
       pickerOptions: {
177
         disabledDate(time) {
193
         disabledDate(time) {
178
           let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
194
           let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
409
           this.isLoadingTwo = false
425
           this.isLoadingTwo = false
410
 
426
 
411
           var control = response.data.data.patientcontorDetail
427
           var control = response.data.data.patientcontorDetail
412
-          console.log("control",control)
428
+          
413
           let dataInfo = {}
429
           let dataInfo = {}
414
           control.forEach((item, index) => {
430
           control.forEach((item, index) => {
415
             let { inspect_date } = item
431
             let { inspect_date } = item
420
                 child: [],
436
                 child: [],
421
                 patient_id: item.patient_id,
437
                 patient_id: item.patient_id,
422
                 range_type: item.range_type,
438
                 range_type: item.range_type,
423
-                dialysis_no: item.dialysis_no
439
+                dialysis_no: item.dialysis_no,
440
+                inspect_date:item.inspect_date
424
               }
441
               }
425
             }
442
             }
426
           })
443
           })
505
               }
522
               }
506
             })
523
             })
507
           })
524
           })
525
+
526
+          console.log("tableData============================",this.tableData)
508
           //   let projectArr = []
527
           //   let projectArr = []
509
           //   this.newArr.map(item => {
528
           //   this.newArr.map(item => {
510
           //     projectArr.push(item.item_name)
529
           //     projectArr.push(item.item_name)
568
           })
587
           })
569
 
588
 
570
 
589
 
571
-          //  var newPatinteArr = []
572
-          //  patientlist.map(item=>{
573
-          //    for(let i=0;i<control.length;i++){
574
-          //       if(item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id){
575
-          //            item.child.push(control[i])
576
-          //       }
577
-          //    }
578
-          //  })
579
-          //  console.log("patientlist",patientlist)
580
-
581
           var newArr = []
590
           var newArr = []
582
           // 分页
591
           // 分页
583
           for (let i = 0; i < control.length; i++) {
592
           for (let i = 0; i < control.length; i++) {
597
                 name: item.name,
606
                 name: item.name,
598
                 child: [],
607
                 child: [],
599
                 patient_id: item.patient_id,
608
                 patient_id: item.patient_id,
600
-                range_type: item.range_type
609
+                range_type: item.range_type,
610
+                inspect_date:item.inspect_date
601
               }
611
               }
602
             }
612
             }
603
           })
613
           })
621
             })
631
             })
622
           })
632
           })
623
 
633
 
624
-          console.log("list")
625
-          console.log(list)
626
-          console.log(newarrtwo)
634
+       
627
 
635
 
628
 
636
 
629
           // 配置的才显示
637
           // 配置的才显示
665
                 name: item.name,
673
                 name: item.name,
666
                 inspect_value: item.inspect_value,
674
                 inspect_value: item.inspect_value,
667
                 id: item.id,
675
                 id: item.id,
676
+                inspect_date:item.inspect_date,
668
               }
677
               }
669
             }
678
             }
670
           })
679
           })
677
                   item_name: this.ObjectData[mkey].item_name,
686
                   item_name: this.ObjectData[mkey].item_name,
678
                   name: mkey,
687
                   name: mkey,
679
                   inspect_value: 0,
688
                   inspect_value: 0,
680
-                  range_type: this.ObjectData[mkey].range_type
689
+                  range_type: this.ObjectData[mkey].range_type,
690
+                  inspect_date:this.ObjectData[mkey].inspect_date
681
                 }
691
                 }
682
               }
692
               }
683
             }
693
             }
694
+
695
+            console.log("haaaaaaaaaaaaa",this.tableData)
684
             this.tableData.push({ name: key, data: dd[key] })
696
             this.tableData.push({ name: key, data: dd[key] })
685
           }
697
           }
686
 
698
 
799
     toExportList(){
811
     toExportList(){
800
       import("@/vendor/Export2Excel").then((excel) => {
812
       import("@/vendor/Export2Excel").then((excel) => {
801
        
813
        
802
-         var arr =["序号","姓名","透析号"]
814
+         var arr =["序号","检验日期","姓名","透析号"]
803
           if(this.normData!=null && this.normData.length>0){
815
           if(this.normData!=null && this.normData.length>0){
804
             for(let i=0;i<this.normData.length;i++){
816
             for(let i=0;i<this.normData.length;i++){
805
                arr.push(this.normData[i].item_name)
817
                arr.push(this.normData[i].item_name)
813
           for(let i=0;i<this.tableData.length;i++){
825
           for(let i=0;i<this.tableData.length;i++){
814
             var obj = {index:0,name:"",patient_id:0,dialysis_no:"",item_name:""}
826
             var obj = {index:0,name:"",patient_id:0,dialysis_no:"",item_name:""}
815
             for(let j=0;j<this.normData.length;j++){
827
             for(let j=0;j<this.normData.length;j++){
828
+              obj.inspect_date_str = this.getTime(this.tableData[i].inspect_date)
816
                obj.index = i+1
829
                obj.index = i+1
817
                obj.patient_id = this.tableData[i].patient_id
830
                obj.patient_id = this.tableData[i].patient_id
818
                obj.name = this.tableData[i].name
831
                obj.name = this.tableData[i].name
824
          }
837
          }
825
         console.log("患者质控达标统计",newArr) 
838
         console.log("患者质控达标统计",newArr) 
826
         const tHeader = arr
839
         const tHeader = arr
827
-         var newList = ["index","name","dialysis_no"]
840
+         var newList = ["index","inspect_date_str","name","dialysis_no"]
828
          if(this.normData!=null && this.normData.length>0){
841
          if(this.normData!=null && this.normData.length>0){
829
             for(let i=0;i<this.normData.length;i++){
842
             for(let i=0;i<this.normData.length;i++){
830
               newList.push(this.normData[i].item_name)
843
               newList.push(this.normData[i].item_name)

+ 44 - 2
src/xt_pages/workforce/next_remind_print.vue View File

36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
                   <td width="100" >血管通路</td>
38
                   <td width="100" >血管通路</td>
39
+                  <td width="" v-if="org_id == 0 || org_id ==10567">管路</td>
39
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
40
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
40
                 </tr>
41
                 </tr>
41
               </thead>
42
               </thead>
98
                 <td :width="td_1_width">
99
                 <td :width="td_1_width">
99
                   <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
100
                   <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
100
                 </td>
101
                 </td>
102
+                <td v-if="org_id == 0 || org_id ==10567">
103
+                   <span>
104
+                     {{ getProjectName(main_collection.projectList,main_collection.schedule_date) }}
105
+                   </span>
106
+                </td>
101
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
107
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
102
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
108
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
103
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
109
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
220
           var scheduleData = resp.data.schedule
226
           var scheduleData = resp.data.schedule
221
 
227
 
222
             if(this.pre_status == 0){
228
             if(this.pre_status == 0){
223
-                for(let i=0;i<scheduleData.length;i++){
224
-                scheduleData[i].sort = scheduleData[i].number.sort
229
+               for(let i=0;i<scheduleData.length;i++){
230
+                if(this.org_id == 10567){
231
+                  
232
+                  scheduleData[i].projectList = []
233
+                  if(scheduleData[i].his_prescription_template.his_prescription_info!=null && scheduleData[i].his_prescription_template.his_prescription_info.length>0){
234
+                    for(let j=0;j<scheduleData[i].his_prescription_template.his_prescription_info.length;j++){
235
+                      if(scheduleData[i].his_prescription_template.his_prescription_info[j].project!=null && scheduleData[i].his_prescription_template.his_prescription_info[j].project.length >0){
236
+                        for(let z=0;z<scheduleData[i].his_prescription_template.his_prescription_info[j].project.length;z++){
237
+                          scheduleData[i].projectList.push(scheduleData[i].his_prescription_template.his_prescription_info[j].project[z])
238
+                        }
239
+                        
240
+                      }
241
+                    }
242
+                  }
243
+                }
244
+              
245
+                 scheduleData[i].sort = scheduleData[i].number.sort
225
               }
246
               }
226
               var arr =   scheduleData.sort(this.compare('sort'))
247
               var arr =   scheduleData.sort(this.compare('sort'))
227
             
248
             
509
 
530
 
510
         return type_name 
531
         return type_name 
511
 
532
 
533
+      },
534
+      getProjectName(val,schedule_date){
535
+       var project_name = ""
536
+       if(val!=null && val.length>0){
537
+         for(let i=0;i<val.length;i++){
538
+          if(val[i].good_info.good_type_id == 9716){
539
+            if(val[i].frequency_type == 1 || (val[i].frequency_type == 3 && val[i].week_day.indexOf(this.getweekday(schedule_date))!=-1)){
540
+              project_name += val[i].good_info.good_name +val[i].count + val[i].good_info.packing_unit +","
541
+            }
542
+          }
543
+           
544
+         }
545
+       }
546
+       return project_name
547
+      },
548
+      getweekday(date){
549
+        var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
550
+
551
+        var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
552
+
553
+        return week;
512
       }
554
       }
513
     }
555
     }
514
   }
556
   }

+ 12 - 9
src/xt_pages/workforce/remind_print.vue View File

37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
39
                   <td width="">血管通路</td>
39
                   <td width="">血管通路</td>
40
-                  <td width="" v-if="org_id == 0 || org_id ==10567">管路</td>
40
+                  <td width="" v-if="org_id ==10567">管路</td>
41
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
41
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
42
                 </tr>
42
                 </tr>
43
               </thead>
43
               </thead>
126
                 <td >
126
                 <td >
127
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
127
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
128
                 </td>
128
                 </td>
129
-                <td v-if="org_id == 0 || org_id ==10567">
129
+                <td v-if="org_id ==10567">
130
                    <span>
130
                    <span>
131
                      {{ getProjectName(main_collection.projectList,main_collection.schedule_date) }}
131
                      {{ getProjectName(main_collection.projectList,main_collection.schedule_date) }}
132
                    </span>
132
                    </span>
213
            console.log("list2323323",list)
213
            console.log("list2323323",list)
214
            for(let i=0;i<list.length;i++){
214
            for(let i=0;i<list.length;i++){
215
               list[i].sort = list[i].number.sort
215
               list[i].sort = list[i].number.sort
216
-              list[i].projectList = []
217
-              if(list[i].his_prescription_template.his_prescription_info.length>0){
218
-                for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
219
-                  if(list[i].his_prescription_template.his_prescription_info[j].project.length >0){
220
-                    for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
221
-                      list[i].projectList.push(list[i].his_prescription_template.his_prescription_info[j].project[z])
216
+              if(this.org_id == 10567){
217
+                list[i].projectList = []
218
+                if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length>0){
219
+                  for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
220
+                    if(list[i].his_prescription_template.his_prescription_info[j].project!=null && list[i].his_prescription_template.his_prescription_info[j].project.length >0){
221
+                      for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
222
+                        list[i].projectList.push(list[i].his_prescription_template.his_prescription_info[j].project[z])
223
+                      }
224
+                      
222
                     }
225
                     }
223
-                    
224
                   }
226
                   }
225
                 }
227
                 }
226
               }
228
               }
229
+             
227
            }
230
            }
228
            console.log("likst==========================",list)
231
            console.log("likst==========================",list)
229
            var arr = list.sort(this.compare('sort'))
232
            var arr = list.sort(this.compare('sort'))