Browse Source

新分支

28169 7 months ago
parent
commit
cf052546be

+ 2 - 2
src/xt_pages/data/components/consumables.vue View File

@@ -81,14 +81,14 @@
81 81
         >点击导出
82 82
         </el-button>
83 83
 
84
-        <!-- <el-button
84
+       <!-- <el-button
85 85
           style="margin-left:10px;"
86 86
           @click="jiaoBen()"
87 87
           class="filter-item"
88 88
           type="primary"
89 89
           size="small"
90 90
         >脚本
91
-        </el-button> -->
91
+        </el-button>  -->
92 92
       </div>
93 93
 
94 94
     <el-table

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue View File

@@ -490,7 +490,7 @@
490 490
                                 <td width="20">mg</td>
491 491
                                 <td width="10">)</td>
492 492
                                 <td width="100">
493
-                                    <label-box :isChecked="record.prescription.anticoagulant==3?true:false" showValue='低分子肝素'></label-box> 
493
+                                    <label-box :isChecked="record.prescription.anticoagulant==3 || record.prescription.anticoagulant==6 || record.prescription.anticoagulant==7?true:false" showValue='低分子肝素'></label-box> 
494 494
                                 </td>
495 495
                                 
496 496
                                 <td width="10">(</td>

+ 18 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -1511,8 +1511,10 @@ export default {
1511 1511
 
1512 1512
       if(predialysis != null && predialysis.id == 0){
1513 1513
         if (last_after != null) {
1514
-          for (var key in last_after){
1515
-            if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after'  && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency'  && key != 'actual_ultrafiltration'  ){
1514
+          
1515
+          if(this.$store.getters.xt_user.template_info.org_id==10101){
1516
+            for (var key in last_after){
1517
+            if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after'  && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' ){
1516 1518
               this.$set(
1517 1519
                 this.form,
1518 1520
                 key,
@@ -1521,6 +1523,20 @@ export default {
1521 1523
 
1522 1524
             }
1523 1525
           }
1526
+          }else{
1527
+            for (var key in last_after){
1528
+            if (key != 'actual_treatment_hour' && key != 'actual_treatment_minute' && key != 'weight_loss' && key != 'weight_after'  && key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency'  && key != 'actual_ultrafiltration'  ){
1529
+              this.$set(
1530
+                this.form,
1531
+                key,
1532
+                last_after[key]
1533
+              )
1534
+
1535
+             }
1536
+           }
1537
+          }
1538
+        
1539
+
1524 1540
         }
1525 1541
         // 5.15
1526 1542
         if(last_after.id > 0){

+ 9 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -387,7 +387,7 @@
387 387
                 org_id == 10599 || 
388 388
                 org_id == 10612 ||
389 389
                 org_id == 10617 ||
390
-                org_id ==10580 || org_id ==10629 || org_id==10677 || org_id ==10667 || org_id ==10697 || org_id ==10635 || org_id ==10702) &&
390
+                org_id ==10580 || org_id ==10629 || org_id==10677 || org_id ==10667 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id ==10090) &&
391 391
                 org_id!=10387
392 392
             "
393 393
           >
@@ -458,7 +458,7 @@
458 458
               && org_id!=10432 && org_id!=10445
459 459
               && org_id!=10410 && org_id!=10495 &&
460 460
                org_id!=10485 && org_id!=10395 && org_id!=10375
461
-               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10697 && org_id!=10635  && org_id!=10702)
461
+               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10697 && org_id!=10635  && org_id!=10702  && org_id!=10090)
462 462
               || org_id == 10387
463 463
             "
464 464
           >
@@ -529,7 +529,7 @@
529 529
                 org_id == 10410 ||
530 530
                 org_id == 10495  ||
531 531
                 org_id == 10395
532
-                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id==10617 || org_id ==10580 || org_id ==10629 || org_id ==10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id ==10635 || org_id ==10702)
532
+                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612 || org_id==10617 || org_id ==10580 || org_id ==10629 || org_id ==10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id ==10635 || org_id ==10702 || org_id == 10090)
533 533
                 && org_id!=10387
534 534
             "
535 535
           >
@@ -584,7 +584,7 @@
584 584
               org_id!=10432 &&
585 585
               org_id!=10445 &&
586 586
               org_id!=10410 && org_id!=10495
587
-              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10693  && org_id!=10697  && org_id!=10635  && org_id!=10702) ||
587
+              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10629 && org_id!=10677 && org_id!=10667 && org_id!=10693  && org_id!=10697  && org_id!=10635  && org_id!=10702 && org_id!=10090) ||
588 588
               org_id == 10387
589 589
             "
590 590
           >
@@ -1681,7 +1681,7 @@
1681 1681
                 org_id== 10432 ||
1682 1682
                 org_id== 10445 ||
1683 1683
                 org_id== 10410 ||
1684
-                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612 || org_id ==10580 || org_id ==10617 || org_id ==10667 || org_id == 10693 || org_id ==10697 || org_id ==10635 || org_id ==10702) &&
1684
+                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612 || org_id ==10580 || org_id ==10617 || org_id ==10667 || org_id == 10693 || org_id ==10697 || org_id ==10635 || org_id ==10702 || org_id == 10090) &&
1685 1685
                 org_id!=10387
1686 1686
             "
1687 1687
           >
@@ -1729,7 +1729,7 @@
1729 1729
               org_id!=10445 &&
1730 1730
               org_id!=10410 &&
1731 1731
               org_id!=10485 &&
1732
-              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10667 && org_id!=10693 && org_id!=10697 && org_id!=10635 && org_id!=10702)
1732
+              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612 && org_id!=10617 && org_id!=10580 && org_id!=10667 && org_id!=10693 && org_id!=10697 && org_id!=10635 && org_id!=10702 && org_id!=10090)
1733 1733
               || org_id == 10387
1734 1734
             "
1735 1735
           >
@@ -1802,7 +1802,7 @@
1802 1802
                 org_id == 10599 ||
1803 1803
                 org_id ==10612 || 
1804 1804
                 org_id ==10617 || 
1805
-                org_id==10580 || org_id ==10629 || org_id == 10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id == 10635 || org_id == 10702)
1805
+                org_id==10580 || org_id ==10629 || org_id == 10677 || org_id == 10667 || org_id == 10693 || org_id == 10697 || org_id == 10635 || org_id == 10702 || org_id == 10090)
1806 1806
                 && org_id!=10387 && org_id!=10694
1807 1807
             "
1808 1808
           >
@@ -1875,7 +1875,8 @@
1875 1875
               org_id!=10693 &&
1876 1876
               org_id!=10697 &&
1877 1877
               org_id!=10635 &&
1878
-              org_id!=10702
1878
+              org_id!=10702 &&
1879
+              org_id!=10090
1879 1880
               )
1880 1881
               || org_id == 10387 || org_id == 10694
1881 1882
             "

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue View File

@@ -576,7 +576,7 @@
576 576
                   <td width="20">mg</td>
577 577
                   <td width="10">)</td>
578 578
                   <td width="100">
579
-                      <label-box :isChecked="prescription.anticoagulant==3?true:false" showValue='低分子肝素'></label-box> 
579
+                      <label-box :isChecked="prescription.anticoagulant==3 || prescription.anticoagulant==6 || prescription.anticoagulant==7?true:false" showValue='低分子肝素'></label-box> 
580 580
                   </td>
581 581
                   
582 582
                   <td width="10">(</td>

+ 6 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

@@ -291,6 +291,12 @@
291 291
             <span v-if="scope.row.is_total == 0"> {{ scope.row.batch_number }}</span>
292 292
           </template>
293 293
         </el-table-column>
294
+
295
+        <el-table-column label="药品追溯码" align="center">
296
+          <template slot-scope="scope">
297
+             {{ scope.row.drug_code }}
298
+          </template>
299
+        </el-table-column>
294 300
         <el-table-column label="仓库名称" align="center">
295 301
           <template slot-scope="scope">
296 302
             <span v-if="scope.row.is_total == 0">

+ 12 - 8
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -180,10 +180,10 @@ export default {
180 180
               name: '1-10',
181 181
               label: '出院小结'
182 182
             },
183
-            {
184
-              name: '1-12',
185
-              label: '转归记录'
186
-            }
183
+            // {
184
+            //   name: '1-12',
185
+            //   label: '转归记录'
186
+            // }
187 187
 
188 188
           ]
189 189
         },
@@ -281,6 +281,10 @@ export default {
281 281
             },
282 282
           ]
283 283
         },
284
+        {
285
+          name: '7',
286
+          label: '转归记录',
287
+        },
284 288
 
285 289
       ],
286 290
       name:""
@@ -334,8 +338,6 @@ export default {
334 338
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
335 339
       } else if(name == '1-11'){
336 340
         this.$router.push({path:'/patient/patient/'+this.id+'/firstDisease'})
337
-      }else if(name == '1-12'){
338
-        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
339 341
       } else if(name == '3-1'){
340 342
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
341 343
 
@@ -386,6 +388,8 @@ export default {
386 388
         this.$router.push({path:'/patients/patient/' + this.id+'/Muscleforce'})
387 389
       }else if(name == '6-1'){
388 390
         this.$router.push({path: '/patients/patient/' + this.id+ '/Informedconsent'})
391
+      }else if(name == '7'){
392
+        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
389 393
       }
390 394
 
391 395
     },
@@ -528,8 +532,6 @@ export default {
528 532
         })
529 533
       }else if(patientKey == '1-11'){
530 534
        this.$router.push({path: '/patients/patient/' + this.id + '/firstDisease'})
531
-      }else if(patientKey == '1-12'){
532
-        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
533 535
       }else if (patientKey == '1-5') {
534 536
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
535 537
       } else if (patientKey == '2-1') {
@@ -550,6 +552,8 @@ export default {
550 552
         })
551 553
       } else if (patientKey == '3-1') {
552 554
         this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
555
+      }else if(patientKey == '7'){
556
+        this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
553 557
       }
554 558
 
555 559
      }else{

+ 162 - 21
src/xt_pages/user/lapsoSummary.vue View File

@@ -1,23 +1,25 @@
1 1
 <template>
2 2
     <div class="patient-container">
3
-      <patient-sidebar :id="patientID" defaultActive="1-12" v-on:tran-patient="onTranPatient"></patient-sidebar>
3
+      <patient-sidebar :id="patientID" defaultActive="7" v-on:tran-patient="onTranPatient"></patient-sidebar>
4 4
       <div class="patient-app-container advice-container app-container">
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 8
         </div>
9 9
         <el-table class="oictable" :data="tableData" border style="width:100%">
10
-        <el-table-column prop="start_time" label="转出日期" align="center">
10
+        <el-table-column prop="start_time" label="日期" align="center">
11 11
             <template slot-scope="scope">
12 12
               <span>{{ getTime(scope.row.record_date)}}</span>
13 13
             </template>
14 14
        </el-table-column>
15 15
         <el-table-column prop="blood_access_part_opera_id" label="转归类型" align="center">
16 16
           <template slot-scope="scope">
17
-             <span v-if="scope.row.lapse_type == 1">转出</span>
18
-             <span v-if="scope.row.lapse_type == 2">院内转诊</span>
17
+             <span v-if="scope.row.lapse_type == 1">转入</span>
18
+             <span v-if="scope.row.lapse_type == 2">转出</span>
19
+             <span v-if="scope.row.lapse_type == 3">死亡</span>
20
+             <span v-if="scope.row.lapse_type == 4">院内转诊</span>
19 21
           </template>
20
-       </el-table-column>
22
+        </el-table-column>
21 23
        <el-table-column prop="blood_access_part_id" label="转归分类" align="center">
22 24
           <template slot-scope="scope">
23 25
             <span v-if="scope.row.lapse_class == 1">终止透析</span>
@@ -29,7 +31,7 @@
29 31
             <span v-if="scope.row.lapse_class == 7">变更透析医院</span>
30 32
           </template>
31 33
        </el-table-column>
32
-        <el-table-column prop="inflow_pass" label="转归原因"  align="center">
34
+        <el-table-column prop="inflow_pass" label="原因"  align="center">
33 35
            <template slot-scope="scope">
34 36
               {{ scope.row.lapse_reason }}
35 37
            </template>
@@ -78,7 +80,7 @@
78 80
           :total="total"></el-pagination>
79 81
   
80 82
         <el-dialog
81
-            title="新增"
83
+            title="新增转归记录"
82 84
             :visible.sync="dialogVisible"
83 85
             width="65%"
84 86
             center>
@@ -98,17 +100,56 @@
98 100
                  </el-form-item>
99 101
               </el-col>
100 102
             </el-row>
101
-            <el-row :gutter="24">
103
+            <el-row :gutter="24" v-if="lapseto == 1">
104
+                <el-col :span="24">
105
+                    <el-form-item label="转归类型:"> 
106
+                        <el-radio-group style="padding: 10px;" v-model="lapse_type">
107
+                            <el-radio  label="2">转出</el-radio>
108
+                            <el-radio  label="3">死亡</el-radio>
109
+                            <el-radio  label="4">院内转诊</el-radio>
110
+                      </el-radio-group>
111
+                    </el-form-item>
112
+                </el-col>
113
+            </el-row>
114
+            <el-row :gutter="24" v-if="lapseto == 2">
102 115
                 <el-col :span="24">
103 116
                     <el-form-item label="转归类型:"> 
104 117
                         <el-radio-group style="padding: 10px;" v-model="lapse_type">
105
-                            <el-radio  label="1">转出</el-radio>
106
-                            <el-radio  label="2">院内转诊</el-radio>
118
+                            <el-radio  label="1">转入</el-radio>
119
+                      </el-radio-group>
120
+                    </el-form-item>
121
+                </el-col>
122
+            </el-row>
123
+
124
+            <el-row :gutter="24" v-if="lapse_type == 3">
125
+                <el-col :span="24">
126
+                    <el-form-item label="住院/门诊:"> 
127
+                      <el-radio-group style="padding: 10px;" v-model="his_type">
128
+                            <el-radio  label="1">门诊</el-radio>
129
+                            <el-radio  label="2">住院</el-radio>
107 130
                       </el-radio-group>
108 131
                     </el-form-item>
109 132
                 </el-col>
110 133
             </el-row>
111 134
 
135
+
136
+            <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
137
+                <el-col :span="24">
138
+                    <el-form-item label="病区:"> 
139
+                       <el-input style="width: 200px" v-model="his_zone"></el-input> 
140
+                    </el-form-item>
141
+                </el-col>
142
+            </el-row>
143
+
144
+            <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
145
+                <el-col :span="24">
146
+                    <el-form-item label="床号:"> 
147
+                        <el-input style="width: 200px" v-model="his_bed"></el-input> 
148
+                    </el-form-item>
149
+                </el-col>
150
+            </el-row>
151
+
152
+          
112 153
             <el-row :gutter="24">
113 154
                 <el-col :span="24">
114 155
                     <el-form-item label="转归分类:"> 
@@ -120,22 +161,26 @@
120 161
                             <el-radio  label="5">转腹膜透析</el-radio>
121 162
                             <el-radio  label="6">其他</el-radio>
122 163
                             <el-radio  label="7">变更透析医院</el-radio>
164
+                            <el-radio  label="8">住院</el-radio>
165
+                            <el-radio  label="9">转血透科</el-radio>
123 166
                       </el-radio-group>
124 167
                     </el-form-item>
125 168
                 </el-col>
126 169
             </el-row>
127 170
 
171
+            
172
+
128 173
             <el-row :gutter="24">
129 174
                 <el-col :span="24">
130
-                    <el-form-item label="转出原因:"> 
131
-                        <el-input style="width: 300px;height: 50px;"  type="textarea" v-model="lapse_reason"></el-input>
175
+                    <el-form-item label="原因:"> 
176
+                        <el-input style="width: 300px;height: 100px;"  type="textarea" v-model="lapse_reason"></el-input>
132 177
                     </el-form-item>
133 178
                 </el-col>
134 179
             </el-row>
135 180
 
136 181
             <el-row :gutter="24">
137 182
                 <el-col :span="24">
138
-                    <el-form-item label="转出日期:"> 
183
+                    <el-form-item label="日期:"> 
139 184
                         <el-date-picker
140 185
                             v-model="record_date"
141 186
                             type="date"
@@ -180,7 +225,7 @@
180 225
 
181 226
 
182 227
         <el-dialog
183
-            title="编辑"
228
+            title="编辑转归记录"
184 229
             :visible.sync="editDialogVisible"
185 230
             width="65%"
186 231
             center>
@@ -204,13 +249,42 @@
204 249
                 <el-col :span="24">
205 250
                     <el-form-item label="转归类型:"> 
206 251
                         <el-radio-group style="padding: 10px;" v-model="lapse_type">
207
-                            <el-radio  label="1">转出</el-radio>
208
-                            <el-radio  label="2">院内转诊</el-radio>
252
+                            <el-radio  label="2">转出</el-radio>
253
+                            <el-radio  label="3">死亡</el-radio>
254
+                            <el-radio  label="4">院内转诊</el-radio>
255
+                           
209 256
                       </el-radio-group>
210 257
                     </el-form-item>
211 258
                 </el-col>
212 259
             </el-row>
213 260
 
261
+            <el-row :gutter="24" v-if="lapse_type == 3">
262
+                <el-col :span="24">
263
+                    <el-form-item label="住院/门诊:"> 
264
+                      <el-radio-group style="padding: 10px;" v-model="his_type">
265
+                            <el-radio  label="1">门诊</el-radio>
266
+                            <el-radio  label="2">住院</el-radio>
267
+                      </el-radio-group>
268
+                    </el-form-item>
269
+                </el-col>
270
+            </el-row>
271
+
272
+            <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
273
+                <el-col :span="24">
274
+                    <el-form-item label="病区:"> 
275
+                       <el-input style="width: 200px" v-model="his_zone"></el-input> 
276
+                    </el-form-item>
277
+                </el-col>
278
+            </el-row>
279
+
280
+            <el-row :gutter="24" v-if="lapse_type == 3 && his_type==2">
281
+                <el-col :span="24">
282
+                    <el-form-item label="床号:"> 
283
+                        <el-input style="width: 200px" v-model="his_bed"></el-input> 
284
+                    </el-form-item>
285
+                </el-col>
286
+            </el-row>
287
+
214 288
             <el-row :gutter="24">
215 289
                 <el-col :span="24">
216 290
                     <el-form-item label="转归分类:"> 
@@ -222,22 +296,26 @@
222 296
                             <el-radio  label="5">转腹膜透析</el-radio>
223 297
                             <el-radio  label="6">其他</el-radio>
224 298
                             <el-radio  label="7">变更透析医院</el-radio>
299
+                            <el-radio  label="8">住院</el-radio>
300
+                            <el-radio  label="9">转血透科</el-radio>
225 301
                       </el-radio-group>
226 302
                     </el-form-item>
227 303
                 </el-col>
228 304
             </el-row>
229 305
 
306
+         
307
+
230 308
             <el-row :gutter="24">
231 309
                 <el-col :span="24">
232
-                    <el-form-item label="转出原因:"> 
233
-                        <el-input style="width: 300px;height: 50px;"  type="textarea" v-model="lapse_reason"></el-input>
310
+                    <el-form-item label="原因:"> 
311
+                        <el-input style="width: 300px;height: 100px;"  type="textarea" v-model="lapse_reason"></el-input>
234 312
                     </el-form-item>
235 313
                 </el-col>
236 314
             </el-row>
237 315
 
238 316
             <el-row :gutter="24">
239 317
                 <el-col :span="24">
240
-                    <el-form-item label="转出日期:"> 
318
+                    <el-form-item label="日期:"> 
241 319
                         <el-date-picker
242 320
                             v-model="record_date"
243 321
                             type="date"
@@ -392,7 +470,11 @@
392 470
           page:1,
393 471
           total:0,
394 472
           id:0,
395
-          admin_user_id:this.$store.getters.xt_user.user.id
473
+          admin_user_id:this.$store.getters.xt_user.user.id,
474
+          lapseto:0,
475
+          his_type:"1",
476
+          his_zone:"",
477
+          his_bed:"",
396 478
         }
397 479
       },
398 480
       methods: {
@@ -445,7 +527,13 @@
445 527
         getPatientById(id).then(response=>{
446 528
            if(response.data.state ==1){
447 529
              var patient = response.data.data.patients
448
-            
530
+             if(patient.lapseto == 1){
531
+               this.lapse_type="2"
532
+             }
533
+             if(patient.lapseto == 2){
534
+               this.lapse_type="1"
535
+             }
536
+             this.lapseto = patient.lapseto
449 537
              this.dialysis_no = patient.dialysis_no
450 538
              this.name = patient.name
451 539
              
@@ -460,7 +548,44 @@
460 548
           }
461 549
         })
462 550
       },
551
+      getLapseType(id){
552
+        var name = ""
553
+        if(id == 1){
554
+          name = "终止透析"
555
+        }
556
+        if(id == 2){
557
+          name = "转出院外"
558
+        }
559
+        if(id == 3){
560
+          name = "回居住地透析"
561
+        }
562
+        if(id == 4){
563
+          name = "临时透析"
564
+        }
565
+        if(id == 5){
566
+          name = "转腹膜透析"
567
+        }
568
+        if(id == 6){
569
+          name = "其他"
570
+        }
571
+        if(id == 7){
572
+          name = "变更透析医院"
573
+        }
574
+        if(id == 8){
575
+          name = "住院"
576
+        }
577
+        if(id == 9){
578
+          name = "转血透科"
579
+        }
580
+
581
+        return name
582
+
583
+      },
463 584
       savePatientLapse(){
585
+          if(this.lapse_type!=1 && this.lapse_reason == ""){
586
+             this.$message.error("转出或者死亡原因不能为空!")
587
+             return false
588
+          }
464 589
           var params = {
465 590
             patient_id:this.patientID,
466 591
             lapse_type:parseInt(this.lapse_type),
@@ -469,6 +594,10 @@
469 594
             record_date:this.record_date,
470 595
             admin_user_id:this.admin_user_id,
471 596
             remark:this.remark,
597
+            lapse_type_name:this.getLapseType(this.lapse_type),
598
+            his_bed:this.his_bed,
599
+            his_type: parseInt(this.his_type),
600
+            his_zone:this.his_zone,
472 601
           }
473 602
           console.log("params=====",params)
474 603
         savePatientLapse(params).then(response=>{
@@ -509,6 +638,9 @@
509 638
              this.record_date = this.getTime(lapsorecord.record_date)
510 639
              this.remark = lapsorecord.remark
511 640
              this.admin_user_id = lapsorecord.admin_user_id
641
+             this.his_bed = lapsorecord.his_bed
642
+             this.his_zone = lapsorecord.his_zone
643
+             this.his_type = lapsorecord.his_type
512 644
              this.id = lapsorecord.id
513 645
              this.editDialogVisible = true
514 646
            
@@ -517,16 +649,25 @@
517 649
 
518 650
       },
519 651
       updatePatientLapse(){
652
+        if (this.lapse_type !=1 &&this.lapse_reason == ""){
653
+             this.$message.error("转出或者死亡原因不能为空!")
654
+             return false
655
+        }
520 656
         var params = {
521 657
             patient_id:this.patientID,
522 658
             lapse_type:parseInt(this.lapse_type),
523 659
             lapse_class:parseInt(this.lapse_class), 
660
+            lapse_type_name:this.getLapseType(this.lapse_type),
524 661
             lapse_reason:this.lapse_reason,
525 662
             record_date:this.record_date,
526 663
             admin_user_id:this.admin_user_id,
527 664
             remark:this.remark,
528 665
             id:this.id,
666
+            his_bed:this.his_bed,
667
+            his_type:parseInt(this.his_type),
668
+            his_zone:this.his_zone,
529 669
           }
670
+         
530 671
         updatePatientLapseRecord(params).then(response=>{
531 672
            if(response.data.state== 1){
532 673
              var record = response.data.data.record

+ 14 - 9
src/xt_pages/user/patients.vue View File

@@ -466,6 +466,7 @@
466 466
         </el-table-column>
467 467
         <el-table-column label="操作" align="center" min-width="140">
468 468
           <template slot-scope="scope">
469
+           
469 470
             <el-tooltip
470 471
               class="item"
471 472
               effect="dark"
@@ -478,6 +479,7 @@
478 479
                 size="small"
479 480
                 @click="OpenSetLapseto(scope.row, scope.$index)"
480 481
               ></el-button>
482
+              
481 483
             </el-tooltip>
482 484
             <el-tooltip
483 485
               class="item"
@@ -1421,15 +1423,18 @@
1421 1423
         )
1422 1424
       },
1423 1425
       OpenSetLapseto(row, index) {
1424
-        // if(row.lapseto == 1){
1425
-        //   this.lapeseto = "转出"
1426
-        // }
1427
-        // if(row.lapseto == 2){
1428
-        //   this.lapeseto = "留治"
1429
-        // }
1430
-        // if(row.lapeseto == 3){
1431
-        //   this.lapeseto = "死亡"
1432
-        // }
1426
+        //  this.$router.push({path:"/patients/patient/"+row.id})
1427
+        // this.$router.push({path:'/patient/patient/'+row.id+'/lapsoSummary'})
1428
+       
1429
+        if(row.lapseto == 1){
1430
+          this.lapeseto = "转出"
1431
+        }
1432
+        if(row.lapseto == 2){
1433
+          this.lapeseto = "留治"
1434
+        }
1435
+        if(row.lapeseto == 3){
1436
+          this.lapeseto = "死亡"
1437
+        }
1433 1438
         this.patient = row
1434 1439
         this.currentIndex = index
1435 1440
         this.lapsetoForm.lapseto_time = ''