Browse Source

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

yq1 7 months ago
parent
commit
9c265d5df2

+ 10 - 0
src/api/patient.js View File

@@ -1174,4 +1174,14 @@ export function deletePatientLapsoRrecord(id,params){
1174 1174
     method:"get",
1175 1175
     params:params,
1176 1176
   })
1177
+}
1178
+
1179
+
1180
+export function getPatientLapsoList(params){
1181
+
1182
+  return request({
1183
+    url:"/api/patient/getpatientlapselist",
1184
+    method:"Get",
1185
+    params:params,
1186
+  })
1177 1187
 }

+ 12 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -1660,6 +1660,7 @@
1660 1660
                           置换液的速度<br />(ml/h)
1661 1661
                           </td>
1662 1662
                           <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1663
+                          <td width="50" v-if=" org_id ==0 || org_id ==10164">超滤率<br />(ml/h)</td>
1663 1664
                           <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id!=10600 && org_id!=10683  && org_id!=0">超滤量<br />(ml)</td>
1664 1665
                           <td width="50" v-if="org_id == 10600 || org_id ==10683 || org_id ==0">超滤率<br />(ml/h)</td>
1665 1666
                           <td width="50" v-if="org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
@@ -1877,6 +1878,14 @@
1877 1878
                           <td width="50" v-if="org_id == 10375"><br />
1878 1879
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1879 1880
                           </td>
1881
+                          <td width="50" v-if="org_id == 10489 || org_id ==0"><br />
1882
+                                   
1883
+                                   {{
1884
+                                     monitor_record.ultrafiltration_rate
1885
+                                       ? monitor_record.ultrafiltration_rate
1886
+                                       : ""
1887
+                                   }}
1888
+                         </td>
1880 1889
                           <td v-if="org_id!=10683&& org_id!=0">
1881 1890
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471">
1882 1891
                                 {{
@@ -1902,7 +1911,7 @@
1902 1911
                                         ? monitor_record.ultrafiltration_rate
1903 1912
                                         : ""
1904 1913
                                     }}
1905
-                              </td>
1914
+                          </td>
1906 1915
 
1907 1916
                           <td
1908 1917
                             v-if="
@@ -2102,7 +2111,7 @@
2102 2111
                             执行人签名
2103 2112
                           </td>
2104 2113
                           <td style="font-size: 16px" width="10%">时间</td>
2105
-                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206 || org_id == 10571 || org_id ==10600">核对护士</td>
2114
+                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206 || org_id == 10571 || org_id ==10600 || org_id == 10489">核对护士</td>
2106 2115
                         </tr>
2107 2116
                         <!-- <template v-for="group in doctor_advices" > -->
2108 2117
 
@@ -2210,7 +2219,7 @@
2210 2219
                                 getTime(advice[0].execution_time, " {h}:{i}")
2211 2220
                               }}</span>
2212 2221
                             </td>
2213
-                            <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206|| org_id == 10571 || org_id ==10600">
2222
+                            <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206|| org_id == 10571 || org_id ==10600 || org_id ==10489">
2214 2223
                               <span
2215 2224
                                 v-if="
2216 2225
                                   setAdminUserES(

+ 38 - 4
src/xt_pages/dialysis/doctorAdviceStaticPrint.vue View File

@@ -29,7 +29,7 @@
29 29
                 <td width="100">药品名称</td>
30 30
                 <td width="100">规格</td>
31 31
                 <td width="100">数量</td>
32
-                
32
+                <td width="100" v-if="org_id == 0 || org_id==10644">数量</td>
33 33
               </tr>
34 34
               </thead>
35 35
               <tbody>
@@ -41,6 +41,7 @@
41 41
                   <span v-if="config.is_open == 1">{{getHisCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
42 42
                   <span v-if="config.is_open != 1">{{getCount(item.child)}}</span>
43 43
                 </td>
44
+                <td width="100">{{item.manufacturer_name}}</td>
44 45
                </tr>
45 46
               </tbody>
46 47
             </table>
@@ -92,13 +93,16 @@
92 93
         hemodialysisPipelinesOptions:[],
93 94
         tableList:[],
94 95
         druglist:[],
95
-        config:{}
96
+        config:{},
97
+        org_id:0,
98
+        manufacturerList:[],
96 99
       }
97 100
     },
98 101
     components: {
99 102
       BreadCrumb
100 103
     },
101 104
     created() {
105
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
102 106
       this.getDialysisAdviceSchedudeList()
103 107
     },
104 108
     methods: {
@@ -113,7 +117,9 @@
113 117
           if(response.data.state == 1){
114 118
              var doctorList = []
115 119
              var druglist = response.data.data.drug
120
+
116 121
              this.druglist = druglist
122
+             this.manufacturerList = response.data.data.manufacturerList
117 123
              this.startdialogVisible = true
118 124
              var list = response.data.data.list
119 125
           
@@ -212,7 +218,9 @@
212 218
                       patient_id:item.patient_id,
213 219
                       min_number:item.drug.min_number,
214 220
                       max_unit:item.drug.max_unit,
215
-                      min_unit:item.drug.min_unit
221
+                      min_unit:item.drug.min_unit,
222
+                      manufacturer_name:this.getManufacturer(item.drug.manufacturer) ,
223
+                      delivery_way:item.delivery_way,
216 224
                     }
217 225
                   }
218 226
                 })
@@ -227,10 +235,27 @@
227 235
                     }
228 236
                   }
229 237
                 }
230
-                console.log("hisarr",hisarr)
238
+               
239
+                if(this.org_id == 0 || this.org_id ==10644){
240
+                  var newArr = []
241
+                  var arr_one = []
242
+                  for(let i=0;i<hisarr.length;i++){
243
+                    if(hisarr[i].delivery_way.indexOf('口服')!=-1){
244
+                      newArr.push(hisarr[i])
245
+                    }
246
+                  }
247
+                  for(let i=0;i<hisarr.length;i++){
248
+                    if(hisarr[i].delivery_way.indexOf('口服')==-1){
249
+                      newArr.push(hisarr[i])
250
+                    }
251
+                  }
252
+                  this.tableList = []
253
+                  this.tableList = newArr
254
+              }else{
231 255
                 this.tableList = []
232 256
                 this.tableList = hisarr
233 257
               }
258
+              }
234 259
 
235 260
               console.log("中国人民解放军",this.tableList)
236 261
              }
@@ -302,6 +327,15 @@
302 327
       return max_str + min_str;
303 328
         
304 329
       },
330
+      getManufacturer(id){
331
+        var  manufacturer_name = ""
332
+        for(let i=0;i<this.manufacturerList.length;i++){
333
+            if(id== this.manufacturerList[i].id){
334
+              manufacturer_name = this.manufacturerList[i].manufacturer_name
335
+            }
336
+        }
337
+        return manufacturer_name
338
+    }
305 339
    }
306 340
   }
307 341
 </script>

+ 49 - 6
src/xt_pages/dialysis/newDoctorAdvice.vue View File

@@ -597,7 +597,12 @@
597 597
              <span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
598 598
            </template>
599 599
         </el-table-column>
600
-
600
+      
601
+        <el-table-column align="center" label="厂家">
602
+           <template slot-scope="scope">
603
+             {{scope.row.manufacturer_name}}
604
+           </template>
605
+        </el-table-column>
601 606
 
602 607
 
603 608
       </el-table>
@@ -915,6 +920,7 @@ export default {
915 920
       partion_str:"",
916 921
       keyword:"",
917 922
       tableProjectList:[],
923
+      manufacturerList:[]
918 924
     };
919 925
   },
920 926
   created() {
@@ -1845,8 +1851,8 @@ export default {
1845 1851
              var list = response.data.data.list
1846 1852
 
1847 1853
              var config = response.data.data.config
1848
-
1849
-             console.log("dcotor---------------",this.doctorList)
1854
+             this.manufacturerList = response.data.data.manufacturerList
1855
+             console.log("dcotor---------------",this.manufacturerList)
1850 1856
              if(list!=null && list.length > 0){
1851 1857
                for(let i=0;i<list.length;i++){
1852 1858
                 for(let j=0;j<list[i].xt_doctor_advice.length;j++){
@@ -1868,6 +1874,7 @@ export default {
1868 1874
                       drug_id:item.drug_id,
1869 1875
                       specification_name:item.advice_desc +item.drug_spec_unit,
1870 1876
                       patient_id:item.patient_id,
1877
+                      delivery_way:"",
1871 1878
                     }
1872 1879
                   }
1873 1880
                 })
@@ -1939,7 +1946,9 @@ export default {
1939 1946
                       patient_id:item.patient_id,
1940 1947
                       min_number:item.drug.min_number,
1941 1948
                       max_unit:item.drug.max_unit,
1942
-                      min_unit:item.drug.min_unit
1949
+                      min_unit:item.drug.min_unit,
1950
+                      delivery_way:item.delivery_way,
1951
+                      manufacturer_name:this.getManufacturer(item.drug.manufacturer) ,
1943 1952
                     }
1944 1953
                   }
1945 1954
                 })
@@ -1954,10 +1963,29 @@ export default {
1954 1963
                     }
1955 1964
                   }
1956 1965
                 }
1957
-                console.log("hisarr",hisarr)
1966
+
1967
+              if(this.org_id == 0 || this.org_id ==10644){
1968
+                  var newArr = []
1969
+                  var arr_one = []
1970
+                  for(let i=0;i<hisarr.length;i++){
1971
+                    if(hisarr[i].delivery_way.indexOf('口服')!=-1){
1972
+                      newArr.push(hisarr[i])
1973
+                    }
1974
+                  }
1975
+                  for(let i=0;i<hisarr.length;i++){
1976
+                    if(hisarr[i].delivery_way.indexOf('口服')==-1){
1977
+                      newArr.push(hisarr[i])
1978
+                    }
1979
+                  }
1980
+                  this.tableList = []
1981
+                  this.tableList = newArr
1982
+              }else{
1958 1983
                 this.tableList = []
1959 1984
                 this.tableList = hisarr
1960 1985
               }
1986
+                
1987
+               
1988
+              }
1961 1989
 
1962 1990
 
1963 1991
              }
@@ -1965,6 +1993,13 @@ export default {
1965 1993
         })
1966 1994
 
1967 1995
       },
1996
+      arraySort(property) {
1997
+      return function (a, b) {
1998
+        var value1 = a[property];
1999
+        var value2 = b[property];
2000
+        return value1 - value2;
2001
+      };
2002
+     },
1968 2003
       toStaticOne() {
1969 2004
          var str = ""
1970 2005
          if(this.partion_type==0){
@@ -2646,7 +2681,15 @@ export default {
2646 2681
         }
2647 2682
       })
2648 2683
     },
2649
-
2684
+    getManufacturer(id){
2685
+        var  manufacturer_name = ""
2686
+        for(let i=0;i<this.manufacturerList.length;i++){
2687
+            if(id== this.manufacturerList[i].id){
2688
+              manufacturer_name = this.manufacturerList[i].manufacturer_name
2689
+            }
2690
+        }
2691
+        return manufacturer_name
2692
+    }
2650 2693
 
2651 2694
   },
2652 2695
   components: {

+ 24 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -1260,7 +1260,8 @@
1260 1260
                         class="under_line"
1261 1261
                         style="width: 50px; text-align: center"
1262 1262
                       >
1263
-                        {{ prescription.kalium ? prescription.kalium : "/" }}
1263
+                       <span v-if="org_id!=0&&org_id!=10489">{{ prescription.kalium ? prescription.kalium : "/" }}</span>  
1264
+                       <span v-if="org_id==0||org_id==10489">{{ prescription.kalium ? prescription.kalium : "" }}</span>  
1264 1265
                       </div>
1265 1266
                       mmol/L
1266 1267
                     </div>
@@ -1270,7 +1271,8 @@
1270 1271
                         class="under_line"
1271 1272
                         style="width: 50px; text-align: center"
1272 1273
                       >
1273
-                        {{ prescription.sodium ? prescription.sodium : "/" }}
1274
+                       <span v-if="org_id!=0&&org_id!=10489">{{ prescription.sodium ? prescription.sodium : "/" }}</span> 
1275
+                       <span v-if="org_id==0||org_id==10489">{{ prescription.sodium ? prescription.sodium : "" }}</span>  
1274 1276
                       </div>
1275 1277
                       mmol/L
1276 1278
                     </div>
@@ -1280,7 +1282,8 @@
1280 1282
                         class="under_line"
1281 1283
                         style="width: 50px; text-align: center"
1282 1284
                       >
1283
-                        {{ prescription.calcium ? prescription.calcium : "/" }}
1285
+                       <span v-if="org_id!=0 && org_id!=10489"> {{ prescription.calcium ? prescription.calcium : "/" }}</span>
1286
+                       <span v-if="org_id ==0 || org_id==10489"> {{ prescription.calcium ? prescription.calcium : "" }}</span>
1284 1287
                       </div>
1285 1288
                       mmol/L
1286 1289
                     </div>
@@ -1290,9 +1293,15 @@
1290 1293
                         class="under_line"
1291 1294
                         style="width: 50px; text-align: center"
1292 1295
                       >
1293
-                        {{
1296
+                       <span v-if="org_id!=0&&org_id!=10489">{{
1294 1297
                           prescription.bicarbonate ? prescription.bicarbonate : "/"
1295 1298
                         }}
1299
+                        </span>  
1300
+                        <span v-if="org_id == 0 || org_id == 10489">
1301
+                          {{
1302
+                          prescription.bicarbonate ? prescription.bicarbonate : ""
1303
+                         }}
1304
+                        </span>
1296 1305
                       </div>
1297 1306
                       mmol/L
1298 1307
                     </div>
@@ -1732,6 +1741,7 @@
1732 1741
                         </td>
1733 1742
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1734 1743
                         <td width="50" v-if="org_id == 10375 || org_id == 0">置换率<br />(ml/h)</td>
1744
+                        <td width="50" v-if="org_id == 0 || org_id ==10489">超滤率<br/>(ml/h)</td>
1735 1745
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 10600&& org_id != 10683">超滤量<br />(ml)</td>
1736 1746
                         <td width="50" v-if="org_id == 10600 || org_id ==10598 || org_id ==10683">超滤率<br/>(ml/h)</td>
1737 1747
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
@@ -1853,7 +1863,7 @@
1853 1863
                           {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1854 1864
                         </td>
1855 1865
                         <td v-if="org_id!=10600 && org_id!=10644  && org_id!=10683">
1856
-                          <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10617"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1866
+                          <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1857 1867
                           <span v-if="org_id==9671 || org_id==10440 || org_id ==10617">
1858 1868
                               <span v-if="org_id ==10617 && monindex == 0">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
1859 1869
                               <span v-if="org_id ==10617 && monindex == monitors.length-1">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
@@ -1861,6 +1871,9 @@
1861 1871
                               <span v-if="org_id !=10617">{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1862 1872
                            </span>
1863 1873
                         </td>
1874
+                        <td v-if="org_id == 10489 || org_id == 0"><br />
1875
+                          {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1876
+                        </td>
1864 1877
                         <td width="50" v-if="org_id == 10600 || org_id == 10598 || org_id==10644 || org_id == 10683 || org_id == 0"><br/>
1865 1878
                            <span v-if="org_id!=10644 && org_id!=0">{{ monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}</span>
1866 1879
                            <span v-if="org_id==10644 || org_id == 0">
@@ -2056,7 +2069,7 @@
2056 2069
                         <td style="font-size: 16px" width="10%">医生签名</td>
2057 2070
                         <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
2058 2071
                         <td style="font-size: 16px" width="10%">执行人签名</td>
2059
-                        <td style="font-size: 16px" width="10%" v-if="org_id == 10598">核对护士</td>
2072
+                        <td style="font-size: 16px" width="10%" v-if="org_id == 10598 || org_id == 10489 || org_id == 0">核对护士</td>
2060 2073
                         <td style="font-size: 16px" width="10%">时间</td>
2061 2074
                         <td
2062 2075
                           style="font-size: 16px"
@@ -2148,7 +2161,7 @@
2148 2161
                             />
2149 2162
                         </span>
2150 2163
                         </td>
2151
-                        <td v-if="org_id == 10598">
2164
+                        <td v-if="org_id == 10598 || org_id==10489 || org_id == 0">
2152 2165
                           <span v-if="advice!=null && advice.checker>0">
2153 2166
                               <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
2154 2167
                               <img
@@ -2165,8 +2178,8 @@
2165 2178
                             getTime(advice.execution_time, "{h}:{i}")
2166 2179
                           }}</span>
2167 2180
                         </td>
2168
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 ||
2169
-                            org_id ==10375 || org_id ==10571 || org_id ==10600 ">
2181
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538  ||
2182
+                            org_id ==10375 || org_id ==10571 || org_id ==10600">
2170 2183
                           <span v-if="advice!=null && advice.checker>0">
2171 2184
                             <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
2172 2185
                             <img
@@ -2292,7 +2305,7 @@
2292 2305
                         <td style="font-size: 16px" width="10%">医生签名</td>
2293 2306
 
2294 2307
                         <td style="font-size: 16px" width="10%">执行人签名</td>
2295
-                        <td style="font-size: 16px" width="10%" v-if="org_id == 10598">核对护士</td>
2308
+                        <td style="font-size: 16px" width="10%" v-if="org_id == 10598 || org_id == 0 || org_id == 10489">核对护士</td>
2296 2309
                         <td style="font-size: 16px" width="10%">时间</td>
2297 2310
                         <td
2298 2311
                           style="font-size: 16px"
@@ -2367,7 +2380,7 @@
2367 2380
                             />
2368 2381
                         </span>
2369 2382
                         </td>
2370
-                        <td v-if="org_id == 10598">
2383
+                        <td v-if="org_id == 10598 || org_id == 10489 || org_id == 0">
2371 2384
                           <span v-if="advice!=null && advice.checker>0">
2372 2385
                               <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
2373 2386
                               <img

+ 2 - 2
src/xt_pages/management/components/UserForm.vue View File

@@ -854,7 +854,7 @@
854 854
                 <td
855 855
                   :rowspan="2"
856 856
                   style="text-align:center;min-width:40px;font-size:15px"
857
-                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
857
+                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340 && org_id!=0 && org_id!=10495"
858 858
                 >
859 859
                  透析机消毒液(更换)
860 860
                  
@@ -862,7 +862,7 @@
862 862
                 <td
863 863
                   :rowspan="2"
864 864
                   style="text-align:center;width:80px;font-size:15px"
865
-                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
865
+                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340 && org_id!=10495 && org_id!=0"
866 866
                 >
867 867
                  细菌过滤器(更换)
868 868
                 </td>

+ 39 - 4
src/xt_pages/user/dialysisRecord.vue View File

@@ -169,6 +169,7 @@
169 169
                  {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
170 170
                  {{ scope.row.prescription.dialysis_dialyszers }}
171 171
               <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{ scope.row.prescription.dialysis_irrigation }}</span>
172
+              <span v-if="scope.row.prescription.dialysis_strainer!=''">/{{ scope.row.prescription.dialysis_strainer }}</span>
172 173
              </template>
173 174
           </el-table-column>
174 175
 
@@ -180,19 +181,40 @@
180 181
           >
181 182
           </el-table-column>
182 183
           <el-table-column
184
+            v-if="org_id!=0&&org_id!=10702"
183 185
             prop="predialysis_evaluation.weight_before"
184 186
             width="110"
185 187
             align="center"
186 188
             label="透前称重(kg)"
187 189
           >
188 190
           </el-table-column>
191
+
192
+          <el-table-column
193
+            v-if="org_id==0 || org_id==10702"
194
+            prop="weight_before"
195
+            width="110"
196
+            align="center"
197
+            label="透前体重(kg)"
198
+          >
199
+          </el-table-column>
200
+          
189 201
           <el-table-column
202
+            v-if="org_id!=0&&org_id!=10702"
190 203
             prop="assessment_after_dislysis.weight_after"
191 204
             width="110"
192 205
             align="center"
193 206
             label="透后称重(kg)"
194 207
           >
195 208
           </el-table-column>
209
+
210
+          <el-table-column
211
+            v-if="org_id==0 || org_id==10702"
212
+            prop="weight_after"
213
+            width="110"
214
+            align="center"
215
+            label="透后体重(kg)"
216
+          >
217
+          </el-table-column>
196 218
           <el-table-column
197 219
             prop="predialysis_evaluation"
198 220
             width="140"
@@ -370,8 +392,11 @@
370 392
               <th>透析时长(h)</th>
371 393
               <th>透析器/灌流器</th>
372 394
               <th>干体重(kg)</th>
373
-              <th>透前称重(kg)</th>
374
-              <th>透后称重(kg)</th>
395
+              <th v-if="org_id!=0&&org_id!=10702">透前称重(kg)</th>
396
+              <th v-if="org_id!=0&&org_id!=10702">透后称重(kg)</th>
397
+
398
+              <th v-if="org_id ==0 || org_id!=10702">透前体重(kg)</th>
399
+              <th v-if="org_id==0 || org_id==10702">透后体重(kg)</th>
375 400
               <th>透前血压(mmhg)</th>
376 401
               <th>透后血压(mmhg)</th>
377 402
               <th>目标超滤量(L)</th>
@@ -395,8 +420,11 @@
395 420
                    <span v-if="item.prescription.dialysis_irrigation!=''">/{{ item.prescription.dialysis_irrigation }} </span>
396 421
                 </td>
397 422
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
398
-                <td>{{ item.predialysis_evaluation.weight_before }}</td>
399
-                <td>{{ item.assessment_after_dislysis.weight_after }}</td>
423
+                <td v-if="org_id!=0&&org_id!=10702">{{ item.predialysis_evaluation.weight_before }}</td>
424
+                <td v-if="org_id!=0&&org_id!=10702">{{ item.assessment_after_dislysis.weight_after }}</td>
425
+
426
+                <td  v-if="org_id==0 || org_id==10702">{{ item.weight_before }}</td>
427
+                <td  v-if="org_id==0 || org_id==10702">{{ item.weight_after }}</td>
400 428
                 <td>
401 429
                   {{ item.predialysis_evaluation.systolic_blood_pressure }}/{{
402 430
                     item.predialysis_evaluation.diastolic_blood_pressure
@@ -622,6 +650,13 @@ export default {
622 650
         if (response.data.state == 1) {
623 651
           this.total = response.data.data.total;
624 652
           this.recordData = response.data.data.records;
653
+
654
+          for(let i=0;i<this.recordData.length;i++){
655
+               
656
+            this.recordData[i].weight_before = (this.recordData[i].predialysis_evaluation.weight_before - this.recordData[i].predialysis_evaluation.additional_weight).toFixed(2)
657
+
658
+            this.recordData[i].weight_after = (this.recordData[i].assessment_after_dislysis.weight_after - this.recordData[i].assessment_after_dislysis.additional_weight).toFixed(2)
659
+          }
625 660
           console.log("郭23232323232232323",this.recordData)
626 661
         
627 662
         }

+ 196 - 31
src/xt_pages/user/lapsoSummary.vue View File

@@ -5,6 +5,8 @@
5 5
         <div style="display:flex;justify-content: space-between;align-items: center;margin-bottom: 12px;">
6 6
            <span style="font-weight:bold;">转归记录列表</span>
7 7
            <el-button size="medium" type="primary" @click="dialogVisible =true">新增</el-button>
8
+
9
+           <!-- <el-button size="medium" type="primary" @click="toJiaoBen">脚本</el-button> -->
8 10
         </div>
9 11
         <el-table class="oictable" :data="tableData" border style="width:100%">
10 12
         <el-table-column prop="start_time" label="日期" align="center">
@@ -22,13 +24,27 @@
22 24
         </el-table-column>
23 25
        <el-table-column prop="blood_access_part_id" label="转归分类" align="center">
24 26
           <template slot-scope="scope">
25
-            <span v-if="scope.row.lapse_class == 1">终止透析</span>
27
+            <!-- <span v-if="scope.row.lapse_class == 1">终止透析</span>
26 28
             <span v-if="scope.row.lapse_class == 2">转出院外</span>
27 29
             <span v-if="scope.row.lapse_class == 3">回居住地透析</span>
28 30
             <span v-if="scope.row.lapse_class == 4">临时透析</span>
29 31
             <span v-if="scope.row.lapse_class == 5">转腹膜透析</span>
30 32
             <span v-if="scope.row.lapse_class == 6">其他</span>
31
-            <span v-if="scope.row.lapse_class == 7">变更透析医院</span>
33
+            <span v-if="scope.row.lapse_class == 7">变更透析医院</span> -->
34
+            <!-- <span v-if="scope.row.lapse_class == 1">留治</span>
35
+            <span v-if="scope.row.lapse_class == 2">转出</span>
36
+            <span v-if="scope.row.lapse_class == 3">死亡</span> -->
37
+            <span v-if="scope.row.lapse_class == 4">转出院外</span>
38
+            <span v-if="scope.row.lapse_class == 5">肾移植</span>
39
+            <span v-if="scope.row.lapse_class == 6">转腹膜透析</span>
40
+            <span v-if="scope.row.lapse_class == 7">出院</span>
41
+            <span v-if="scope.row.lapse_class == 8">好转</span>
42
+            <span v-if="scope.row.lapse_class == 9">放弃治疗</span>
43
+            <span v-if="scope.row.lapse_class == 10">其他状态</span>
44
+            <span v-if="scope.row.lapse_class ==11">请假</span>
45
+            <span v-if="scope.row.lapse_class ==12">临时透析</span>
46
+            <span v-if="scope.row.lapse_class ==13">回居住地透析</span>
47
+            <span v-if="scope.row.lapse_class ==14">变更透析医院</span>
32 48
           </template>
33 49
        </el-table-column>
34 50
         <el-table-column prop="inflow_pass" label="原因"  align="center">
@@ -129,6 +145,39 @@
129 145
             </el-row>
130 146
 
131 147
 
148
+            <el-row :gutter="20" v-if="lapse_type == 4">
149
+                <el-col :span="8">
150
+                    <el-form-item label="开始时间:"> 
151
+                      <el-date-picker
152
+                          v-model="start_time"
153
+                          type="date"
154
+                            value-format="yyyy-MM-dd"
155
+                          placeholder="选择日期">
156
+                        </el-date-picker>
157
+                    </el-form-item>
158
+                </el-col>
159
+
160
+                <el-col :span="8">
161
+                    <el-form-item label="结束时间:"> 
162
+                      <el-date-picker
163
+                          v-model="end_time"
164
+                          type="date"
165
+                            value-format="yyyy-MM-dd"
166
+                          placeholder="选择日期">
167
+                        </el-date-picker>
168
+                    </el-form-item>
169
+                </el-col>
170
+
171
+                <el-col :span="8">
172
+                    <el-form-item label="转院地区:"> 
173
+                      <el-input style="width: 200px" v-model="patient_address"></el-input> 
174
+                    </el-form-item>
175
+                </el-col>
176
+            </el-row>
177
+
178
+            
179
+
180
+
132 181
             <el-row :gutter="20" v-if="lapse_type == 3 && his_type==2">
133 182
                 <el-col :span="11">
134 183
                     <el-form-item label="病区:"> 
@@ -147,20 +196,46 @@
147 196
                 <el-col :span="23">
148 197
                     <el-form-item label="转归分类:"> 
149 198
                         <el-radio-group style="padding: 10px;" v-model="lapse_class">
150
-                            <el-radio  label="1">终止透析</el-radio>
151
-                            <el-radio  label="2">转出院外</el-radio>
152
-                            <el-radio  label="3">回居住地透析</el-radio>
153
-                            <el-radio  label="4">临时透析</el-radio>
154
-                            <el-radio  label="5">转腹膜透析</el-radio>
155
-                            <el-radio  label="6">其他</el-radio>
156
-                            <el-radio  label="7">变更透析医院</el-radio>
157
-                            <el-radio  label="8">住院</el-radio>
158
-                            <el-radio  label="9">转血透科</el-radio>
199
+                            <el-radio  label="4">转出院外</el-radio>
200
+                            <el-radio  label="5">肾移植</el-radio>
201
+                            <el-radio  label="6">转腹膜透析</el-radio>
202
+                            <el-radio  label="7">出院</el-radio>
203
+                            <el-radio  label="8">好转</el-radio>
204
+                            <el-radio  label="9">放弃治疗</el-radio>
205
+                            <el-radio  label="10">其他状态</el-radio>
206
+                            <el-radio  label="11">请假</el-radio>
207
+                            <el-radio  label="12">临时透析</el-radio>
208
+                            <el-radio  label="13">回居住地透析</el-radio>
209
+                            <el-radio  label="14">变更透析医院</el-radio>
159 210
                       </el-radio-group>
160 211
                     </el-form-item>
161 212
                 </el-col>
162 213
             </el-row>
163 214
 
215
+            <el-row :gutter="20" v-if="lapse_class == 11">
216
+                <el-col :span="8">
217
+                    <el-form-item label="开始时间:"> 
218
+                      <el-date-picker
219
+                          v-model="start_time_one"
220
+                          type="date"
221
+                            value-format="yyyy-MM-dd"
222
+                          placeholder="选择日期">
223
+                        </el-date-picker>
224
+                    </el-form-item>
225
+                </el-col>
226
+
227
+                <el-col :span="8">
228
+                    <el-form-item label="结束时间:"> 
229
+                      <el-date-picker
230
+                          v-model="end_time_one"
231
+                          type="date"
232
+                            value-format="yyyy-MM-dd"
233
+                          placeholder="选择日期">
234
+                        </el-date-picker>
235
+                    </el-form-item>
236
+                </el-col>
237
+            </el-row>
238
+
164 239
             <el-row :gutter="20">
165 240
                 <el-col :span="23">
166 241
                     <el-form-item label="原因:"> 
@@ -261,6 +336,36 @@
261 336
                 </el-col>
262 337
             </el-row>
263 338
 
339
+            <el-row :gutter="20" v-if="lapse_type == 4">
340
+                <el-col :span="8">
341
+                    <el-form-item label="开始时间:"> 
342
+                      <el-date-picker
343
+                          v-model="start_time"
344
+                          type="date"
345
+                            value-format="yyyy-MM-dd"
346
+                          placeholder="选择日期">
347
+                        </el-date-picker>
348
+                    </el-form-item>
349
+                </el-col>
350
+
351
+                <el-col :span="8">
352
+                    <el-form-item label="结束时间:"> 
353
+                      <el-date-picker
354
+                          v-model="end_time"
355
+                          type="date"
356
+                            value-format="yyyy-MM-dd"
357
+                          placeholder="选择日期">
358
+                        </el-date-picker>
359
+                    </el-form-item>
360
+                </el-col>
361
+
362
+                <el-col :span="8">
363
+                    <el-form-item label="转院地区:"> 
364
+                      <el-input style="width: 200px" v-model="patient_address"></el-input> 
365
+                    </el-form-item>
366
+                </el-col>
367
+            </el-row>
368
+
264 369
             <el-row :gutter="20" v-if="lapse_type == 3 && his_type==2">
265 370
                 <el-col :span="11">
266 371
                     <el-form-item label="病区:"> 
@@ -278,20 +383,48 @@
278 383
                 <el-col :span="24">
279 384
                     <el-form-item label="转归分类:"> 
280 385
                         <el-radio-group style="padding: 10px;" v-model="lapse_class">
281
-                            <el-radio  label="1">终止透析</el-radio>
282
-                            <el-radio  label="2">转出院外</el-radio>
283
-                            <el-radio  label="3">回居住地透析</el-radio>
284
-                            <el-radio  label="4">临时透析</el-radio>
285
-                            <el-radio  label="5">转腹膜透析</el-radio>
286
-                            <el-radio  label="6">其他</el-radio>
287
-                            <el-radio  label="7">变更透析医院</el-radio>
288
-                            <el-radio  label="8">住院</el-radio>
289
-                            <el-radio  label="9">转血透科</el-radio>
386
+                            <el-radio  label="4">转出院外</el-radio>
387
+                            <el-radio  label="5">肾移植</el-radio>
388
+                            <el-radio  label="6">转腹膜透析</el-radio>
389
+                            <el-radio  label="7">出院</el-radio>
390
+                            <el-radio  label="8">好转</el-radio>
391
+                            <el-radio  label="9">放弃治疗</el-radio>
392
+                            <el-radio  label="10">其他状态</el-radio>
393
+                            <el-radio  label="11">请假</el-radio>
394
+                            <el-radio  label="12">临时透析</el-radio>
395
+                            <el-radio  label="13">回居住地透析</el-radio>
396
+                            <el-radio  label="14">变更透析医院</el-radio>
290 397
                       </el-radio-group>
291 398
                     </el-form-item>
292 399
                 </el-col>
293 400
             </el-row>
294 401
 
402
+            
403
+            <el-row :gutter="20" v-if="lapse_class == 11">
404
+                <el-col :span="8">
405
+                    <el-form-item label="开始时间:"> 
406
+                      <el-date-picker
407
+                          v-model="start_time_one"
408
+                          type="date"
409
+                            value-format="yyyy-MM-dd"
410
+                          placeholder="选择日期">
411
+                        </el-date-picker>
412
+                    </el-form-item>
413
+                </el-col>
414
+
415
+                <el-col :span="8">
416
+                    <el-form-item label="结束时间:"> 
417
+                      <el-date-picker
418
+                          v-model="end_time_one"
419
+                          type="date"
420
+                            value-format="yyyy-MM-dd"
421
+                          placeholder="选择日期">
422
+                        </el-date-picker>
423
+                    </el-form-item>
424
+                </el-col>
425
+            </el-row>
426
+
427
+
295 428
             <el-row :gutter="20">
296 429
                 <el-col :span="24">
297 430
                     <el-form-item label="原因:"> 
@@ -348,7 +481,7 @@
348 481
   <script>
349 482
     const moment = require('moment')
350 483
     import PatientSidebar from './components/PatientSidebar'
351
-    import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord} from '@/api/patient'
484
+    import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord,getPatientLapsoList} from '@/api/patient'
352 485
   
353 486
     import { jsGetAge, uParseTime } from '@/utils/tools'
354 487
     import { getDataConfig } from '@/utils/data'
@@ -459,9 +592,19 @@
459 592
           his_type:"1",
460 593
           his_zone:"",
461 594
           his_bed:"",
595
+          start_time:"",
596
+          end_time:"",
597
+          patient_address:"",
598
+          start_time_one:"",
599
+          end_time_one:"",
462 600
         }
463 601
       },
464 602
       methods: {
603
+        toJiaoBen(){
604
+           getPatientLapsoList().then(response=>{
605
+
606
+           })      
607
+        },
465 608
         clickuseradvicecell(row, column, cell, event) {
466 609
         },
467 610
         onTranPatient: function(tranPatient) {
@@ -532,35 +675,42 @@
532 675
           }
533 676
         })
534 677
       },
678
+
535 679
       getLapseType(id){
536 680
         var name = ""
537
-        if(id == 1){
538
-          name = "终止透析"
681
+        if(id == 4){
682
+          name = "转出院外"
539 683
         }
540
-        if(id == 2){
684
+        if(id == 5){
541 685
           name = "转出院外"
542 686
         }
543
-        if(id == 3){
687
+        if(id == 6){
544 688
           name = "回居住地透析"
545 689
         }
546
-        if(id == 4){
690
+        if(id == 7){
547 691
           name = "临时透析"
548 692
         }
549
-        if(id == 5){
693
+        if(id == 8){
550 694
           name = "转腹膜透析"
551 695
         }
552
-        if(id == 6){
696
+        if(id == 9){
553 697
           name = "其他"
554 698
         }
555
-        if(id == 7){
699
+        if(id == 10){
556 700
           name = "变更透析医院"
557 701
         }
558
-        if(id == 8){
702
+        if(id == 11){
559 703
           name = "住院"
560 704
         }
561
-        if(id == 9){
705
+        if(id == 12){
562 706
           name = "转血透科"
563 707
         }
708
+        if(id == 13){
709
+          name = "回居住地透析"
710
+        }
711
+        if(id == 14){
712
+          name = "变更透析医院"
713
+        }
564 714
 
565 715
         return name
566 716
 
@@ -582,6 +732,11 @@
582 732
             his_bed:this.his_bed,
583 733
             his_type: parseInt(this.his_type),
584 734
             his_zone:this.his_zone,
735
+            patient_address:this.patient_address,
736
+            start_time:this.start_time,
737
+            end_time:this.end_time,
738
+            start_time_one:this.start_time_one,
739
+            end_time_one:this.end_time_one,
585 740
           }
586 741
           console.log("params=====",params)
587 742
         savePatientLapse(params).then(response=>{
@@ -626,6 +781,11 @@
626 781
              this.his_zone = lapsorecord.his_zone
627 782
              this.his_type = lapsorecord.his_type
628 783
              this.id = lapsorecord.id
784
+             this.patient_address = lapsorecord.patient_address
785
+             this.start_time =  this.getTime(lapsorecord.start_time)
786
+             this.end_time =  this.getTime(lapsorecord.end_time)
787
+             this.start_time_one =  this.getTime(lapsorecord.start_time_one)
788
+             this.end_time_one =  this.getTime(lapsorecord.end_time_one)
629 789
              this.editDialogVisible = true
630 790
            
631 791
           }
@@ -650,6 +810,11 @@
650 810
             his_bed:this.his_bed,
651 811
             his_type:parseInt(this.his_type),
652 812
             his_zone:this.his_zone,
813
+            patient_address:this.patient_address,
814
+            start_time:this.start_time,
815
+            end_time:this.end_time,
816
+            start_time_one:this.start_time_one,
817
+            end_time_one:this.end_time_one,
653 818
           }
654 819
          
655 820
         updatePatientLapseRecord(params).then(response=>{