Browse Source

Merge branch 'superman' of http://git.shengws.com:3000/zhangbj/xt_vue into superman

zhengchengwu 6 years ago
parent
commit
83840fc7c2
2 changed files with 28 additions and 64 deletions
  1. 1 1
      config/dev.env.js
  2. 27 63
      src/xt_pages/sign/index.vue

+ 1 - 1
config/dev.env.js View File

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://localhost:9529"',//'"http://112.74.16.180:9527"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://112.74.16.180:9527"',//'"http://112.74.16.180:9527"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10
 }
10
 }

+ 27 - 63
src/xt_pages/sign/index.vue View File

10
                 <div class="dataTitle">患者列表</div>
10
                 <div class="dataTitle">患者列表</div>
11
                 <div style="margin-bottom: 10px;">
11
                 <div style="margin-bottom: 10px;">
12
                     <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>&nbsp;
12
                     <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>&nbsp;
13
-                    <el-button type="primary" @change="changeSearch">搜索</el-button>
13
+                    <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>
14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
16
                     </el-select>
16
                     </el-select>
17
                 </div>
17
                 </div>
18
 
18
 
19
-                <el-table  :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
19
+                <el-table :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
20
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
20
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
21
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
21
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
22
                        <template slot-scope="scope">
22
                        <template slot-scope="scope">
39
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
39
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
40
                     <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
40
                     <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
41
                         <template slot-scope="scope">
41
                         <template slot-scope="scope">
42
-                            {{scope.row.before}} / {{scope.row.after}}
42
+                             {{scope.row.before}} / {{scope.row.after}}
43
                         </template>
43
                         </template>
44
                     </el-table-column>
44
                     </el-table-column>
45
                 </el-table>
45
                 </el-table>
47
 
47
 
48
             <el-col :span="16">
48
             <el-col :span="16">
49
                 <div class="dataTitle">患者信息</div>
49
                 <div class="dataTitle">患者信息</div>
50
-                <el-form class="information" label-position="left">
50
+                <el-form class="information">
51
                   <div class="inforTitle">
51
                   <div class="inforTitle">
52
                   <el-button  @click="change()" style="float:right;">修改</el-button>
52
                   <el-button  @click="change()" style="float:right;">修改</el-button>
53
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
53
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
54
                    </div>
54
                    </div>
55
-                    <div class="border"></div>
55
+                    <div class="border"></div>       
56
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
56
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
57
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
57
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
58
                     干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input><br>
58
                     干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input><br>
59
                     </div>
59
                     </div>
60
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
60
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
61
-                     体温(℃):&nbsp;<el-input v-model="weigh_list.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
62
-                     脉搏(次/分):&nbsp;<el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
63
-                     呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
64
-                     血压(mmHg):&nbsp;<el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
65
-                    </div>
66
-                    <div class="border"></div>
67
-                    <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
61
+                     体温(℃):&nbsp;<el-input v-model="weigh_list.temperature" :disabled="disa" style="width:90px"></el-input>&nbsp;&nbsp;&nbsp;
62
+                     <!-- 呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp; -->
63
+                     血压(mmHg):&nbsp;<el-input v-model="weigh_list.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;
64
+                     脉率(次/分):&nbsp;<el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
65
+                    </div> 
66
+                     <div class="border"></div> 
67
+                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
68
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
68
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
69
                      干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
69
                      干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
70
                     </div>
70
                     </div>
71
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
71
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
72
-                      体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73
-                      脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
74
-                      呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
75
-                      血压(mmHg):&nbsp;<el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
76
-                    </div>
77
-
72
+                      体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:90px"></el-input>&nbsp;&nbsp;&nbsp;
73
+                      <!-- 呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp; -->
74
+                      血压(mmHg):&nbsp;<el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;
75
+                      脉率(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
76
+                    </div>      
78
                     <div class="border"></div>
77
                     <div class="border"></div>
79
                     <div v-if="show">
78
                     <div v-if="show">
80
                     <el-row :gutter="20">
79
                     <el-row :gutter="20">
190
       dialysis_stege: 0,
189
       dialysis_stege: 0,
191
       show: false,
190
       show: false,
192
       disa:true,
191
       disa:true,
192
+      signnid:"",
193
     }
193
     }
194
   },
194
   },
195
   methods: {
195
   methods: {
198
         this.patients = []      
198
         this.patients = []      
199
         if (response.data.state === 1) {
199
         if (response.data.state === 1) {
200
           this.patients = response.data.data.patients
200
           this.patients = response.data.data.patients
201
-          console.log("病人信息",this.patients[0].schedule)           
201
+          // console.log("病人信息",this.patients[0].schedule)           
202
             //将没有排班的信息排除
202
             //将没有排班的信息排除
203
-            for(let i = this.patients.length-1;i >= 0;i--){
204
-      
203
+            console.log("病人信息",this.patients)
204
+            for(let i = this.patients.length-1;i>=0;i--){    
205
              if(this.patients[i].schedule.id == 0){
205
              if(this.patients[i].schedule.id == 0){
206
                  this.patients.splice(i,1)
206
                  this.patients.splice(i,1)
207
-             }
208
-              
207
+             }   
209
           }
208
           }
210
-
211
-          for (let i = this.patients.length - 1; ; i--) {
212
-            if(this.patients[i].schedule.id == 0){
213
-              this.patients.splice(i, 1)
214
-            }
215
-          }
216
-
217
           this.queryParams.schedule_type = response.data.data.schedule_type
209
           this.queryParams.schedule_type = response.data.data.schedule_type
218
           this.querySignParams.date_time = response.data.data.today
210
           this.querySignParams.date_time = response.data.data.today
219
 
211
 
271
       this.fetchSignPatients()
263
       this.fetchSignPatients()
272
     },
264
     },
273
     handleCurrentChange(row, old) {
265
     handleCurrentChange(row, old) {
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
       //     this.weigh_form = {
266
       //     this.weigh_form = {
302
       //     id:0,
267
       //     id:0,
303
       //     choose:false,
268
       //     choose:false,
336
       this.dialysis_stege = row.dialysis_order.stage
301
       this.dialysis_stege = row.dialysis_order.stage
337
       this.getDialysisInforInfomation(row.id)
302
       this.getDialysisInforInfomation(row.id)
338
       this.getDialysisAfterInfomation(row.id) 
303
       this.getDialysisAfterInfomation(row.id) 
339
-
340
       //this.getsignweigh(row.id)    
304
       //this.getsignweigh(row.id)    
341
     },
305
     },
342
     // submitSign() {
306
     // submitSign() {
528
       params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
492
       params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
529
        console.log("params是什么?",params)
493
        console.log("params是什么?",params)
530
       sighdata(params).then(response => {
494
       sighdata(params).then(response => {
531
-        var signs = response.data.data.signs
532
-       // this.patients[this.table_current_index].signin.id = 1
533
         if (response.data.state === 1) {
495
         if (response.data.state === 1) {
496
+           var signs = response.data.data.signs
497
+           this.signnid = signs.id
498
+           console.log("hheh",signs.id)
534
           this.$message({
499
           this.$message({
535
             type: 'success',
500
             type: 'success',
536
             message: '成功!'
501
             message: '成功!'
540
         for(let index=0;index<tlen;index++ ){
505
         for(let index=0;index<tlen;index++ ){
541
            if(this.patients[index].id == params.patient_id){
506
            if(this.patients[index].id == params.patient_id){
542
               var signin = this.patients[index].signin
507
               var signin = this.patients[index].signin
543
-              this.patients[index].signin = response.data.data.signs  
544
-             
508
+              this.patients[index].signin = response.data.data.signs              
545
               if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
509
               if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
546
                     var sl = this.schedules.length
510
                     var sl = this.schedules.length
547
                     for(let j = 0; j < sl; j++){
511
                     for(let j = 0; j < sl; j++){
568
            return false
532
            return false
569
         }
533
         }
570
       })
534
       })
571
-     }
535
+     }   
572
   },
536
   },
573
   watch: {
537
   watch: {
574
     'weigh_form.weigh_before': function() {
538
     'weigh_form.weigh_before': function() {