Browse Source

5月31日晚

xiaoming_global 6 years ago
parent
commit
3d2f1d0e24
1 changed files with 38 additions and 31 deletions
  1. 38 31
      src/xt_pages/sign/index.vue

+ 38 - 31
src/xt_pages/sign/index.vue View File

@@ -10,7 +10,7 @@
10 10
                 <div class="dataTitle">患者列表</div>
11 11
                 <div style="margin-bottom: 10px;">
12 12
                     <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>&nbsp;
13
-                    <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>
13
+                    <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>&nbsp;&nbsp;&nbsp;&nbsp;
14 14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
15 15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
16 16
                     </el-select>
@@ -26,8 +26,9 @@
26 26
 
27 27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
28 28
                         <template slot-scope="scope">
29
-                            <span v-if="scope.row.signin.id ==0">未签到</span>
30
-                            <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
29
+                            <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
30
+                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">透析中</span>
31
+                            <span v-else-if="scope.row.signin.id ==0">未签到</span>
31 32
                             <span v-else>已签到</span>
32 33
                         </template>
33 34
                     </el-table-column>
@@ -141,6 +142,7 @@ export default {
141 142
 
142 143
       },
143 144
       weigh_list: {
145
+        id:'',
144 146
         weight_before: '', // 透前体重
145 147
         temperature: '', // 体温
146 148
         pulse_frequency: '', // 脉搏
@@ -199,6 +201,7 @@ export default {
199 201
         if (response.data.state === 1) {
200 202
           this.patients = response.data.data.patients
201 203
           // console.log('病人信息', this.patients[0].schedule)
204
+          console.log("病人信息:",this.patients)
202 205
           // 将没有排班的信息排除
203 206
           for (let i = this.patients.length - 1; i >= 0; i--) {
204 207
             if (this.patients[i].schedule.id == 0) {
@@ -207,7 +210,6 @@ export default {
207 210
           }
208 211
           this.queryParams.schedule_type = response.data.data.schedule_type
209 212
           this.querySignParams.date_time = response.data.data.today
210
-
211 213
           if (this.queryParams.need_schedule_type === 1) {
212 214
             var sl = this.schedules.length
213 215
             console.log('s1是什么东西')
@@ -226,36 +228,36 @@ export default {
226 228
         }
227 229
       })
228 230
     },
229
-    // getPatientSign(){
230
-    //     getPatientSign(this.querySignParams).then(response=>{
231
-    //         if (response.data.state==1) {
231
+    //  getPatientSign(){
232
+    //      getPatientSign(this.querySignParams).then(response=>{
233
+    //          if (response.data.state==1) {
232 234
     //             if (response.data.data.sign != null) {
233
-    //                 var sign = response.data.data.sign;
234
-    //                 this.weigh_form.dry_weight = sign.dry_weight;
235
+    //                  var sign = response.data.data.sign;
236
+    //                  this.weigh_form.dry_weight = sign.dry_weight;
235 237
     //                 this.weigh_form.clothes_weight = sign.clothes_weight;
236 238
     //                   // 透前
237
-    //                 this.weigh_form.weigh_before = sign.weigh_before;
238
-    //                 this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
239
-    //                 this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
240
-    //                 this.weigh_form.weight_before = sign.weight_before;
241
-    //                 this.weigh_form.temperature_before = sign.temperature_before;
239
+    //                  this.weigh_form.weigh_before = sign.weigh_before;
240
+    //                  this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
241
+    //                  this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
242
+    //                  this.weigh_form.weight_before = sign.weight_before;
243
+    //                  this.weigh_form.temperature_before = sign.temperature_before;
242 244
     //                 this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
243
-    //                 this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
244
-    //                 this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
245
-    //                 this.weigh_form.SBP_before = sign.SBP_before // 收缩压
246
-    //                   // 透后
247
-    //                 this.weigh_form.weigh_after = sign.weigh_after;
248
-    //                 this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
249
-    //                 this.weigh_form.weight_after = sign.weight_after
250
-    //                 this.weigh_form.temperature_after = sign.temperature_after;
251
-    //                 this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
252
-    //                 this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
253
-    //                 this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
254
-    //                 this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
245
+    //                  this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
246
+    //                  this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
247
+    //                  this.weigh_form.SBP_before = sign.SBP_before // 收缩压
248
+    //                    // 透后
249
+    //                  this.weigh_form.weigh_after = sign.weigh_after;
250
+    //                  this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
251
+    //                  this.weigh_form.weight_after = sign.weight_after
252
+    //                  this.weigh_form.temperature_after = sign.temperature_after;
253
+    //                  this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
254
+    //                  this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
255
+    //                  this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
256
+    //                  this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
255 257
     //                 this.weigh_form.id=sign.id;
256
-    //             }
257
-    //         }
258
-    //     });
258
+    //              }
259
+    //          }
260
+    //      });
259 261
     // },
260 262
     changeSearch() {
261 263
       this.queryParams.need_schedule_type = 0
@@ -270,9 +272,11 @@ export default {
270 272
       this.weigh_form.patient_id = row.id
271 273
       this.querySignParams.patient_id = row.id
272 274
       this.dialysis_stege = row.dialysis_order.stage
275
+      console.log("呵呵呵",this.dialysis_stege)
273 276
       this.getDialysisInforInfomation(row.id)
274 277
       this.getDialysisAfterInfomation(row.id)
275
-
278
+      this.weigh_list.id=row.signin.id
279
+      //console.log("是否有数据",this.weigh_list.id)
276 280
       // this.getsignweigh(row.id)
277 281
     },
278 282
     // submitSign() {
@@ -321,6 +325,9 @@ export default {
321 325
       getDialysisInforInfomation(id).then(response => {
322 326
         if (response.data.data.patientlist != null) {
323 327
           var patientlist = response.data.data.patientlist
328
+          console.log("patientlist是什么?",patientlist)
329
+          this.weigh_list.id = patientlist.id
330
+          console.log(this.weigh_list.id)
324 331
           this.weigh_list.dry_weight = patientlist.dry_weight
325 332
           console.log('干体重:' + this.weigh_list.dry_weight)
326 333
           if (this.weigh_list.dry_weight == 0) {
@@ -496,7 +503,7 @@ export default {
496 503
               break
497 504
             }
498 505
           }
499
-          this.weigh_form.id = response.data.data.signs.id
506
+          this.weigh_list.id = response.data.data.signs.id
500 507
         } else {
501 508
           this.$message.error(response.data.msg)
502 509
           return false