Browse Source

修改bug

csx 5 years ago
parent
commit
75c52b61fd

+ 0 - 8
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

30
         </li>
30
         </li>
31
 
31
 
32
 
32
 
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
         <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
33
         <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
42
           <label>钙剂量: </label>
34
           <label>钙剂量: </label>
43
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>
35
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>

+ 28 - 26
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

93
                          v-else>
93
                          v-else>
94
           <template slot-scope="scope">
94
           <template slot-scope="scope">
95
             <span v-if="scope.row.parent_id == 0 " class="el-dropdown-link">{{getAdviceContent(scope.row,1)}}</span>
95
             <span v-if="scope.row.parent_id == 0 " class="el-dropdown-link">{{getAdviceContent(scope.row,1)}}</span>
96
-            <span v-if="scope.row.parent_id > 0 " class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}</span>
96
+            <span v-if="scope.row.parent_id > 0 "
97
+                  class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}</span>
97
           </template>
98
           </template>
98
         </el-table-column>
99
         </el-table-column>
99
 
100
 
122
       <!-- 医嘱表单 -->
123
       <!-- 医嘱表单 -->
123
       <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
124
       <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
124
         <el-row :gutter="20">
125
         <el-row :gutter="20">
125
-          <el-col :span="8">
126
-            <el-form-item label="医嘱类型:">
127
-              <el-input value="临时" disabled></el-input>
128
-            </el-form-item>
129
-          </el-col>
130
-          <el-col :span="8">
131
-            <el-form-item label="医嘱时间:">
132
-              <el-input v-model="form.advice_date" readonly></el-input>
133
-              <!-- <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> -->
134
-            </el-form-item>
135
-          </el-col>
126
+          <!--<el-col :span="8">-->
127
+          <!--<el-form-item label="医嘱类型:">-->
128
+          <!--<el-input value="临时" disabled></el-input>-->
129
+          <!--</el-form-item>-->
130
+          <!--</el-col>-->
131
+          <!--<el-col :span="8">-->
132
+          <!--<el-form-item label="医嘱时间:">-->
133
+          <!--<el-input v-model="form.advice_date" readonly></el-input>-->
134
+          <!--&lt;!&ndash; <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> &ndash;&gt;-->
135
+          <!--</el-form-item>-->
136
+          <!--</el-col>-->
136
           <el-col :span="8">
137
           <el-col :span="8">
137
             <el-form-item label="开始时间:">
138
             <el-form-item label="开始时间:">
138
-              <el-date-picker format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime"
139
+              <el-date-picker format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" :disabled="form.parent_id==0?false:true"
139
                               placeholder="选择日期" v-model="form.start_time" style="width: 100%;"></el-date-picker>
140
                               placeholder="选择日期" v-model="form.start_time" style="width: 100%;"></el-date-picker>
140
             </el-form-item>
141
             </el-form-item>
141
           </el-col>
142
           </el-col>
142
-        </el-row>
143
 
143
 
144
-        <el-row :gutter="20">
145
           <el-col :span="8">
144
           <el-col :span="8">
146
             <el-form-item label="医嘱名称:">
145
             <el-form-item label="医嘱名称:">
147
               <el-input v-model="form.advice_name"></el-input>
146
               <el-input v-model="form.advice_name"></el-input>
148
 
147
 
149
             </el-form-item>
148
             </el-form-item>
150
           </el-col>
149
           </el-col>
150
+
151
           <el-col :span="8">
151
           <el-col :span="8">
152
             <el-form-item label="药品规格:">
152
             <el-form-item label="药品规格:">
153
               <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
153
               <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
156
                 </el-option>
156
                 </el-option>
157
               </el-select>
157
               </el-select>
158
             </el-form-item>
158
             </el-form-item>
159
-            <!-- <el-form-item label="医嘱内容:">
160
-                <el-input v-model="form.advice_desc"></el-input>
161
-            </el-form-item> -->
162
           </el-col>
159
           </el-col>
160
+        </el-row>
161
+
162
+        <el-row :gutter="20">
163
+
163
 
164
 
164
           <el-col :span="8">
165
           <el-col :span="8">
165
             <el-form-item label="开药数量:">
166
             <el-form-item label="开药数量:">
172
             </el-form-item>
173
             </el-form-item>
173
           </el-col>
174
           </el-col>
174
 
175
 
175
-
176
-
177
-        </el-row>
178
-
179
-        <el-row :gutter="20">
180
           <el-col :span="8">
176
           <el-col :span="8">
181
             <el-form-item label="单次用量:">
177
             <el-form-item label="单次用量:">
182
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
178
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
189
             </el-form-item>
185
             </el-form-item>
190
           </el-col>
186
           </el-col>
191
 
187
 
188
+
192
           <el-col :span="8">
189
           <el-col :span="8">
193
             <el-form-item label="给药途径:">
190
             <el-form-item label="给药途径:">
194
               <el-select v-model="form.delivery_way" :disabled="form.parent_id==0?false:true" filterable
191
               <el-select v-model="form.delivery_way" :disabled="form.parent_id==0?false:true" filterable
198
               </el-select>
195
               </el-select>
199
             </el-form-item>
196
             </el-form-item>
200
           </el-col>
197
           </el-col>
198
+
199
+
200
+        </el-row>
201
+
202
+        <el-row :gutter="20">
203
+
204
+
201
           <el-col :span="8">
205
           <el-col :span="8">
202
             <el-form-item label="执行频率:">
206
             <el-form-item label="执行频率:">
203
               <el-select v-model="form.execution_frequency" :disabled="form.parent_id==0?false:true" filterable
207
               <el-select v-model="form.execution_frequency" :disabled="form.parent_id==0?false:true" filterable
1329
           }
1333
           }
1330
         }
1334
         }
1331
 
1335
 
1332
-        if(row.advice_desc){
1336
+        if (row.advice_desc) {
1333
           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1337
           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1334
         }
1338
         }
1335
 
1339
 
1336
-
1337
         if (isChild == 1) { // 不是子药
1340
         if (isChild == 1) { // 不是子药
1338
 
1341
 
1339
-
1340
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1342
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1341
         } else { // 是子药
1343
         } else { // 是子药
1342
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc
1344
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc

+ 2 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

446
         </el-button>
446
         </el-button>
447
       </div>
447
       </div>
448
     </el-dialog>
448
     </el-dialog>
449
+
450
+
449
   </div>
451
   </div>
450
 </template>
452
 </template>
451
 
453
 

+ 2 - 2
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

5
 
5
 
6
 
6
 
7
         <el-row>
7
         <el-row>
8
-          <el-col :span="12">
8
+          <el-col :span="12" >
9
             <el-form-item label="医嘱类型 :" required prop="advice_type">
9
             <el-form-item label="医嘱类型 :" required prop="advice_type">
10
               <el-input value="临时" disabled></el-input>
10
               <el-input value="临时" disabled></el-input>
11
             </el-form-item>
11
             </el-form-item>
12
           </el-col>
12
           </el-col>
13
-          <el-col :span="12">
13
+          <el-col :span="12" >
14
             <el-form-item label="开始时间 :" required prop="start_time">
14
             <el-form-item label="开始时间 :" required prop="start_time">
15
               <el-date-picker
15
               <el-date-picker
16
                 type="datetime"
16
                 type="datetime"

+ 67 - 33
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

148
 
148
 
149
 
149
 
150
 
150
 
151
-          <el-col :span="8" v-if="isShows('透析器/灌流器')">
152
-            <el-form-item label="透析器/灌流器:">
153
-              <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
154
-            </el-form-item>
155
-          </el-col>
151
+
156
 
152
 
157
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
153
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
158
             <el-form-item label="碳酸氢盐(mmol/L):">
154
             <el-form-item label="碳酸氢盐(mmol/L):">
165
               <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
161
               <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
166
             </el-form-item>
162
             </el-form-item>
167
           </el-col>
163
           </el-col>
164
+          <el-col :span="8" v-if="isShows('透析液流量')">
165
+            <el-form-item label="透析液流量(ml/min):">
166
+              <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
167
+            </el-form-item>
168
+          </el-col>
168
 
169
 
169
           <el-col :span="8" v-if="isShows('透析液温度')">
170
           <el-col :span="8" v-if="isShows('透析液温度')">
170
             <el-form-item label="透析液温度(°C):">
171
             <el-form-item label="透析液温度(°C):">
172
             </el-form-item>
173
             </el-form-item>
173
           </el-col>
174
           </el-col>
174
 
175
 
175
-          <!-- </el-row>
176
 
176
 
177
-          <el-row :gutter="20"> -->
178
-          <el-col :span="8" v-if="isShows('透析液流量')">
179
-            <el-form-item label="透析液流量(ml/min):">
180
-              <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
181
-            </el-form-item>
182
-          </el-col>
177
+
183
           <el-col :span="8" v-if="isShows('电导度')">
178
           <el-col :span="8" v-if="isShows('电导度')">
184
             <el-form-item label="电导度(mS/m): ">
179
             <el-form-item label="电导度(mS/m): ">
185
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
180
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
186
             </el-form-item>
181
             </el-form-item>
187
           </el-col>
182
           </el-col>
183
+
184
+          <el-col :span="8" v-if="isShows('透析器/灌流器')">
185
+            <el-form-item label="透析器/灌流器:">
186
+              <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
187
+            </el-form-item>
188
+          </el-col>
189
+
190
+
188
           <el-col :span="8" v-if="isShows('体液过多症状')">
191
           <el-col :span="8" v-if="isShows('体液过多症状')">
189
             <el-form-item label="体液过多症状:">
192
             <el-form-item label="体液过多症状:">
190
               <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
193
               <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
224
 
227
 
225
 
228
 
226
           <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
229
           <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
227
-            <el-form-item label="使用其他特殊药物">
230
+            <el-form-item label="透析前使用其他特殊药物">
228
               <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
231
               <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
229
             </el-form-item>
232
             </el-form-item>
230
           </el-col>
233
           </el-col>
231
 
234
 
235
+          <el-col :span="8" v-if="isShows('目标KT/V')">
236
+            <el-form-item label="目标KT/V">
237
+              <el-input v-model="dialysisPrescription.target_ktv"></el-input>
238
+            </el-form-item>
239
+          </el-col>
240
+
241
+
232
           <!-- </el-row>
242
           <!-- </el-row>
233
 
243
 
234
           <el-row :gutter="20" > -->
244
           <el-row :gutter="20" > -->
235
           <el-col :span="8">
245
           <el-col :span="8">
236
-            <el-form-item label="置换液:" v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id != 6"
246
+            <el-form-item label="置换液:" v-if="isShows('置换液')"
237
                           v-show="huShow">
247
                           v-show="huShow">
238
               <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
248
               <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
239
                 <el-option :key="0" label="请选择" :value="0"></el-option>
249
                 <el-option :key="0" label="请选择" :value="0"></el-option>
241
                            :label="option.name" :value="option.id"></el-option>
251
                            :label="option.name" :value="option.id"></el-option>
242
               </el-select>
252
               </el-select>
243
             </el-form-item>
253
             </el-form-item>
244
-
245
-
246
-            <el-form-item label="置换方式:"
247
-                          v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id == 6">
248
-              <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
249
-                <el-option :key="0" label="请选择" :value="0"></el-option>
250
-                <el-option v-for="(option, index) in displace_liqui_part_option" :key="index+1"
251
-                           :label="option.name" :value="option.id"></el-option>
252
-              </el-select>
253
-            </el-form-item>
254
-
255
           </el-col>
254
           </el-col>
256
 
255
 
257
           <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
256
           <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
281
           </el-col>
280
           </el-col>
282
 
281
 
283
 
282
 
284
-          <el-col :span="8" v-if="isShows('目标KT/V')">
285
-            <el-form-item label="目标KT/V">
286
-              <el-input v-model="dialysisPrescription.target_ktv"></el-input>
287
-            </el-form-item>
288
-          </el-col>
289
-
290
 
283
 
291
           <!--透析耗材-->
284
           <!--透析耗材-->
292
           <el-col :span="8" v-if="isShows('血液透析干粉')&&config.is_open == 1">
285
           <el-col :span="8" v-if="isShows('血液透析干粉')&&config.is_open == 1">
537
       </div>
530
       </div>
538
       <div class="newLine">
531
       <div class="newLine">
539
         <span>上次透后体重(kg)</span>
532
         <span>上次透后体重(kg)</span>
540
-        <span>{{last_record?last_record.weight_after:''}}</span>
533
+        <span>{{getLastAfterWeight(last_record)}}</span>
541
       </div>
534
       </div>
542
 
535
 
543
       <span slot="footer" class="dialog-footer">
536
       <span slot="footer" class="dialog-footer">
874
       }
867
       }
875
     },
868
     },
876
     methods: {
869
     methods: {
870
+      getLastAfterWeight(record){
871
+        if(record != null&& record.id > 0){
872
+          if(record.weight_after > 0) {
873
+            let additional_weight = 0
874
+            if(this.predialysis.additional_weight != undefined){
875
+              additional_weight = this.predialysis.additional_weight
876
+            }
877
+            return parseFloat(record.weight_after - additional_weight).toFixed(1);
878
+          }else{
879
+            return ''
880
+          }
881
+        }
882
+      },
877
       getBeforeWeight(predialysis){
883
       getBeforeWeight(predialysis){
878
         if(predialysis.id > 0){
884
         if(predialysis.id > 0){
879
           if(predialysis.weight_before > 0) {
885
           if(predialysis.weight_before > 0) {
1209
         }
1215
         }
1210
         this.anticoagulant = this.anticoagulantsConfit[thismode]
1216
         this.anticoagulant = this.anticoagulantsConfit[thismode]
1211
       }, handleCommit: function() {
1217
       }, handleCommit: function() {
1218
+        if(this.dialysisPrescription.anticoagulant == 1){
1219
+          this.dialysisPrescription.anticoagulant_weichi = '0'
1220
+          this.dialysisPrescription.anticoagulant_shouji = '0'
1221
+          this.dialysisPrescription.anticoagulant_zongliang = '0'
1222
+        }
1223
+        if (this.$store.getters.xt_user.template_info.template_id == 6) {
1224
+          if (this.dialysisPrescription.mode_id == 2) {
1225
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
1226
+              this.$message.error('HDF模式下置换液和置换液总量不能为空!')
1227
+              return
1228
+            }
1229
+          }
1230
+        }
1231
+
1232
+
1212
         this.is_pre = 1
1233
         this.is_pre = 1
1213
         if (this.prescription.id == 0) {
1234
         if (this.prescription.id == 0) {
1214
           if (this.is_open == 0) {
1235
           if (this.is_open == 0) {
1562
       }, handleCancle: function() {
1583
       }, handleCancle: function() {
1563
         this.hide()
1584
         this.hide()
1564
       }, handleSolution: function() {
1585
       }, handleSolution: function() {
1565
-        this.is_pre = 2
1586
+        if(this.dialysisPrescription.anticoagulant == 1){
1587
+          this.dialysisPrescription.anticoagulant_weichi = '0'
1588
+          this.dialysisPrescription.anticoagulant_shouji = '0'
1589
+          this.dialysisPrescription.anticoagulant_zongliang = '0'
1590
+        }
1591
+        if (this.$store.getters.xt_user.template_info.template_id == 6) {
1592
+          if (this.dialysisPrescription.mode_id == 2) {
1593
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
1594
+              this.$message.error('HDF模式下置换液和置换液总量不能为空!')
1595
+              return
1596
+            }
1597
+          }
1598
+        }
1566
 
1599
 
1600
+        this.is_pre = 2
1567
         if (this.prescription.id == 0) {
1601
         if (this.prescription.id == 0) {
1568
           if (this.is_open == 0) {
1602
           if (this.is_open == 0) {
1569
             if (this.patient.id <= 0) {
1603
             if (this.patient.id <= 0) {

+ 1 - 7
src/xt_pages/user/dialysisRecord.vue View File

247
           >
247
           >
248
             <template slot-scope="scope"
248
             <template slot-scope="scope"
249
               ><span>{{
249
               ><span>{{
250
-                getDoctorName(scope.row.prescription.creater)
250
+               scope.row.prescription.role.user_name
251
               }}</span></template
251
               }}</span></template
252
             >
252
             >
253
           </el-table-column>
253
           </el-table-column>
419
             response.data.data.nursers == null
419
             response.data.data.nursers == null
420
               ? []
420
               ? []
421
               : response.data.data.nursers;
421
               : response.data.data.nursers;
422
-
423
-          console.log(response.data.data)
424
-
425
-
426
-
427
-
428
         }
422
         }
429
       });
423
       });
430
     },
424
     },