Browse Source

新分支

28169 5 months ago
parent
commit
5bc1319078

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

@@ -28,7 +28,7 @@
28 28
       </div>
29 29
       <div class="cell clearfix" style="justify-content: space-between;">
30 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 32
           <el-option
33 33
             v-for="item in partitionArrOne"
34 34
             :key="item.id"
@@ -117,6 +117,12 @@
117 117
               <span v-if="scope.row.mode_id == 35">HDF600</span>
118 118
               <span v-if="scope.row.mode_id == 36">HDF800</span>
119 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 126
              </template>
121 127
           </el-table-column>
122 128
              
@@ -127,7 +133,7 @@
127 133
                 <span v-if="scope.row.dialysis_prescription.dialysis_dialyszers==''">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span> 
128 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 138
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
133 139
              </template>
@@ -144,7 +150,7 @@
144 150
                   {{scope.row.dialysis_solution.dialysis_irrigation}}
145 151
                  </span> 
146 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 154
                <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
149 155
 
150 156
              </template>
@@ -161,7 +167,7 @@
161 167
                   {{ scope.row.dialysis_solution.dialysis_strainer }}
162 168
                 </span>
163 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 171
                <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
166 172
              </template>
167 173
           </el-table-column>
@@ -235,30 +241,39 @@
235 241
   
236 242
           <el-table-column align="center" label="促红素" v-if="gatherSetting.cuhong == 1">
237 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 246
              </template>
240 247
           </el-table-column>
241 248
 
242 249
           <el-table-column align="center" label="左卡" v-if="gatherSetting.zuoka == 1">
243 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 253
              </template>
246 254
           </el-table-column>
247 255
 
248 256
           <el-table-column align="center" label="尿激酶" v-if="gatherSetting.niaojimei == 1">
249 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 260
              </template>
252 261
           </el-table-column>
253 262
 
254 263
 
255 264
           <el-table-column align="center" label="葡萄糖酸钙" v-if="gatherSetting.putaosuangai == 1">
256 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 275
              </template>
259 276
           </el-table-column>
260
-        
261
-  
262 277
           
263 278
         </el-table>
264 279
   
@@ -619,12 +634,14 @@
619 634
           gatherSetting:{},
620 635
           timenow:0,
621 636
           startDialogVisibleOne:false,
637
+          org_id:0,
622 638
         }
623 639
       },
624 640
       open(){
625 641
         console.log("寄哪里地方到付阿道夫")
626 642
       },
627 643
       created() {
644
+         this.org_id = this.$store.getters.xt_user.org.id
628 645
          this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
629 646
          this.displace_liqui_part_option = this.$store.getters.displace_liqui
630 647
       
@@ -716,7 +733,8 @@
716 733
                   list[i].advice_spc_one =""
717 734
                   list[i].advice_spc_two =""
718 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 738
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
721 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,6 +751,10 @@
733 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 760
                 console.log("listwowowowowowo日本",this.list)
@@ -1106,6 +1128,30 @@
1106 1128
            if(id ==37){
1107 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 1156
            return mode_name
1111 1157
         },
@@ -1126,6 +1172,41 @@
1126 1172
            if(id == 7){
1127 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 1210
            return name
1130 1211
         },
1131 1212
         handleScheduleDateChange(val) {
@@ -1876,6 +1957,22 @@
1876 1957
          if(id == 13){
1877 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 1976
          return name
1880 1977
        },
1881 1978
        getBloodAccessOption(id){
@@ -2135,7 +2232,152 @@
2135 2232
        toStatic(){
2136 2233
         
2137 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 2383
   </script>

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

@@ -26,6 +26,7 @@
26 26
                 <thead>
27 27
                 <tr>
28 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 30
                   <td width="100"  v-if="gatherSetting.name==1">姓名</td>
30 31
                   <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
31 32
                   <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
@@ -43,11 +44,14 @@
43 44
                   <td width="100"  v-if="gatherSetting.zuoka == 1">左卡</td>
44 45
                   <td width="100" v-if="gatherSetting.niaojimei == 1">尿激酶</td>
45 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 50
                 </tr>
48 51
                 </thead>
49 52
                 <tbody>
50 53
                  <tr v-for="(item,i) in list" :key="i">
54
+                  <td width="100" v-if="org_id == 0 || org_id ==10683"> </td>
51 55
                    <td width="60" v-if="gatherSetting.index_number == 1">{{ i+1 }}</td>
52 56
                   <td width="100"  v-if="gatherSetting.name==1">
53 57
                     {{item.patient.name}}
@@ -89,15 +93,21 @@
89 93
                     <span v-if="item.mode_id == 33">HFD</span>
90 94
                     <span v-if="item.mode_id == 34">HDF100</span>
91 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 104
                  </td>
95 105
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
96 106
                     <span v-if="item.schedule_date == timenow">
97 107
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers!=''">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
98 108
                       <span v-if="item.dialysis_prescription.dialysis_dialyszers==''">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
99 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 111
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
102 112
                   </td>
103 113
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
@@ -106,7 +116,7 @@
106 116
                       <span v-if="item.dialysis_prescription.dialysis_irrigation==''"> {{item.dialysis_solution.dialysis_irrigation}}</span>
107 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 121
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
112 122
                   </td>
@@ -116,7 +126,7 @@
116 126
                       <span v-if="item.dialysis_prescription.dialysis_strainer==''">{{item.dialysis_solution.dialysis_strainer}}</span> 
117 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 131
                     <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
122 132
                   </td>
@@ -164,18 +174,25 @@
164 174
                     <span v-if="item.dialysis_prescription.calcium>0">{{item.dialysis_prescription.calcium}}</span>
165 175
                  </td>
166 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 179
                  </td>
169 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 183
                  </td>
172 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 187
                  </td>
175 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 195
                  </td>
178
-                 
179 196
                  </tr>
180 197
                 </tbody>
181 198
               </table>
@@ -289,6 +306,7 @@
289 306
                   list[i].advice_spc_one =""
290 307
                   list[i].advice_spc_two =""
291 308
                   list[i].advice_spc_three = ""
309
+                   list[i].advice_spc_four = ""
292 310
                    for(let j=0;j<list[i].advice.length;j++){
293 311
                        if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
294 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,6 +324,10 @@
306 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 333
               this.list = list
@@ -384,6 +406,21 @@
384 406
          if(id == 13){
385 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 424
          return name
388 425
        },
389 426
        getBloodAccessOption(id){
@@ -411,6 +448,152 @@
411 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,6 +125,12 @@
125 125
             <span v-if="scope.row.mode_id == 35">HDF600</span>
126 126
             <span v-if="scope.row.mode_id == 36">HDF800</span>
127 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 134
            </template>
129 135
         </el-table-column>
130 136
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">

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

@@ -82,6 +82,11 @@
82 82
                     :row-style="{ color: '#303133' }"
83 83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
84 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 90
             <el-table-column label="透析号" width="80">
86 91
               <template slot-scope="scope">
87 92
                 {{ scope.row.dialysis_no }}
@@ -157,6 +162,7 @@ import { PostSearch } from '@/api/patient'
157 162
 import echarts from 'echarts'
158 163
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
159 164
 import LineChart from '../qcd/components/LineChart'
165
+import { uParseTime } from '@/utils/tools'
160 166
 import {
161 167
   getCartogramlist,
162 168
   getCurrentOrgPatients,
@@ -173,6 +179,16 @@ export default {
173 179
   },
174 180
   data() {
175 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 192
       pickerOptions: {
177 193
         disabledDate(time) {
178 194
           let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
@@ -409,7 +425,7 @@ export default {
409 425
           this.isLoadingTwo = false
410 426
 
411 427
           var control = response.data.data.patientcontorDetail
412
-          console.log("control",control)
428
+          
413 429
           let dataInfo = {}
414 430
           control.forEach((item, index) => {
415 431
             let { inspect_date } = item
@@ -420,7 +436,8 @@ export default {
420 436
                 child: [],
421 437
                 patient_id: item.patient_id,
422 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,6 +522,8 @@ export default {
505 522
               }
506 523
             })
507 524
           })
525
+
526
+          console.log("tableData============================",this.tableData)
508 527
           //   let projectArr = []
509 528
           //   this.newArr.map(item => {
510 529
           //     projectArr.push(item.item_name)
@@ -568,16 +587,6 @@ export default {
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 590
           var newArr = []
582 591
           // 分页
583 592
           for (let i = 0; i < control.length; i++) {
@@ -597,7 +606,8 @@ export default {
597 606
                 name: item.name,
598 607
                 child: [],
599 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,9 +631,7 @@ export default {
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,6 +673,7 @@ export default {
665 673
                 name: item.name,
666 674
                 inspect_value: item.inspect_value,
667 675
                 id: item.id,
676
+                inspect_date:item.inspect_date,
668 677
               }
669 678
             }
670 679
           })
@@ -677,10 +686,13 @@ export default {
677 686
                   item_name: this.ObjectData[mkey].item_name,
678 687
                   name: mkey,
679 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 696
             this.tableData.push({ name: key, data: dd[key] })
685 697
           }
686 698
 
@@ -799,7 +811,7 @@ export default {
799 811
     toExportList(){
800 812
       import("@/vendor/Export2Excel").then((excel) => {
801 813
        
802
-         var arr =["序号","姓名","透析号"]
814
+         var arr =["序号","检验日期","姓名","透析号"]
803 815
           if(this.normData!=null && this.normData.length>0){
804 816
             for(let i=0;i<this.normData.length;i++){
805 817
                arr.push(this.normData[i].item_name)
@@ -813,6 +825,7 @@ export default {
813 825
           for(let i=0;i<this.tableData.length;i++){
814 826
             var obj = {index:0,name:"",patient_id:0,dialysis_no:"",item_name:""}
815 827
             for(let j=0;j<this.normData.length;j++){
828
+              obj.inspect_date_str = this.getTime(this.tableData[i].inspect_date)
816 829
                obj.index = i+1
817 830
                obj.patient_id = this.tableData[i].patient_id
818 831
                obj.name = this.tableData[i].name
@@ -824,7 +837,7 @@ export default {
824 837
          }
825 838
         console.log("患者质控达标统计",newArr) 
826 839
         const tHeader = arr
827
-         var newList = ["index","name","dialysis_no"]
840
+         var newList = ["index","inspect_date_str","name","dialysis_no"]
828 841
          if(this.normData!=null && this.normData.length>0){
829 842
             for(let i=0;i<this.normData.length;i++){
830 843
               newList.push(this.normData[i].item_name)

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

@@ -36,6 +36,7 @@
36 36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
37 37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38 38
                   <td width="100" >血管通路</td>
39
+                  <td width="" v-if="org_id == 0 || org_id ==10567">管路</td>
39 40
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
40 41
                 </tr>
41 42
               </thead>
@@ -98,6 +99,11 @@
98 99
                 <td :width="td_1_width">
99 100
                   <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
100 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 107
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
102 108
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
103 109
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
@@ -220,8 +226,23 @@
220 226
           var scheduleData = resp.data.schedule
221 227
 
222 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 247
               var arr =   scheduleData.sort(this.compare('sort'))
227 248
             
@@ -509,6 +530,27 @@
509 530
 
510 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,7 +37,7 @@
37 37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
38 38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
39 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 41
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
42 42
                 </tr>
43 43
               </thead>
@@ -126,7 +126,7 @@
126 126
                 <td >
127 127
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
128 128
                 </td>
129
-                <td v-if="org_id == 0 || org_id ==10567">
129
+                <td v-if="org_id ==10567">
130 130
                    <span>
131 131
                      {{ getProjectName(main_collection.projectList,main_collection.schedule_date) }}
132 132
                    </span>
@@ -213,17 +213,20 @@
213 213
            console.log("list2323323",list)
214 214
            for(let i=0;i<list.length;i++){
215 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 231
            console.log("likst==========================",list)
229 232
            var arr = list.sort(this.compare('sort'))