XMLWAN пре 2 година
родитељ
комит
aff421452f

+ 16 - 0
src/api/advice.js Прегледај датотеку

504
   })
504
   })
505
 }
505
 }
506
 
506
 
507
+export function getNewSchedualDoctors(params) {
508
+  return request({
509
+    url: '/api/schedule/new/advices',
510
+    method: 'get',
511
+    params: params
512
+  })
513
+}
514
+
507
 export function getDoctorAdviceCount(params) {
515
 export function getDoctorAdviceCount(params) {
508
   return request({
516
   return request({
509
     url: '/api/schedule/getdoctoradvicecount',
517
     url: '/api/schedule/getdoctoradvicecount',
527
     params: params
535
     params: params
528
   })
536
   })
529
 }
537
 }
538
+
539
+export function excutionDoctorAdvice(params) {
540
+  return request({
541
+    url: '/api/schedule/excutiondoctoradvice',
542
+    method: 'Get',
543
+    params: params
544
+  })
545
+}

+ 8 - 0
src/api/config.js Прегледај датотеку

209
     params: params
209
     params: params
210
   })
210
   })
211
 }
211
 }
212
+
213
+export function changeSettleOpenConfig(params) {
214
+  return request({
215
+    url: '/api/changesettleopenconfig',
216
+    method: 'get',
217
+    params: params
218
+  })
219
+}

+ 11 - 1
src/router/modules/dialysis.js Прегледај датотеку

38
     //     noCache: true
38
     //     noCache: true
39
     //   }
39
     //   }
40
     // },
40
     // },
41
+    // {
42
+    //   path: '/dialysis/dialysisDoctorAdvice',
43
+    //   component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
44
+    //   name: '透析医嘱',
45
+    //   meta: {
46
+    //     title: '透析医嘱',
47
+    //     noCache: true
48
+    //   }
49
+    // },
41
     {
50
     {
42
       path: '/dialysis/dialysisDoctorAdvice',
51
       path: '/dialysis/dialysisDoctorAdvice',
43
-      component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
52
+      component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
44
       name: '透析医嘱',
53
       name: '透析医嘱',
45
       meta: {
54
       meta: {
46
         title: '透析医嘱',
55
         title: '透析医嘱',
58
         noCache: true
67
         noCache: true
59
       }
68
       }
60
     },
69
     },
70
+
61
     {
71
     {
62
       path: '/dialysis/signPrint',
72
       path: '/dialysis/signPrint',
63
       component: () => import('@/xt_pages/dialysis/signPrint'),
73
       component: () => import('@/xt_pages/dialysis/signPrint'),

+ 5 - 2
src/utils/tools.js Прегледај датотеку

152
   return time_str
152
   return time_str
153
 }
153
 }
154
 
154
 
155
-export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
155
+export function calculateAnticoagulantZL(type, shouji, shichang, weichi, add_amount, reduce_amount) {
156
   console.log('t', type)
156
   console.log('t', type)
157
   var t = 0.5
157
   var t = 0.5
158
   if (type == 1) {
158
   if (type == 1) {
165
   shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
165
   shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
166
   shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
166
   shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
167
   weichi = parseFloat(weichi) ? parseFloat(weichi) : 0
167
   weichi = parseFloat(weichi) ? parseFloat(weichi) : 0
168
+  shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
169
+  add_amount = parseFloat(add_amount) ? parseFloat(add_amount) : 0
170
+  reduce_amount = parseFloat(reduce_amount) ? parseFloat(reduce_amount) : 0
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
171
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169
     return 0
172
     return 0
170
   }
173
   }
171
   console.log((shouji + (shichang - t) * weichi).toFixed(1))
174
   console.log((shouji + (shichang - t) * weichi).toFixed(1))
172
-  return (shouji + (shichang - t) * weichi).toFixed(1)
175
+  return (shouji + (shichang - t) * weichi + add_amount - reduce_amount).toFixed(1)
173
 }
176
 }
174
 
177
 
175
 export function formatDate(date, format) {
178
 export function formatDate(date, format) {

+ 31 - 1
src/xt_pages/data/basicConfig.vue Прегледај датотеку

42
             <p style="margin-top:20px;">药品在保存处方时出库:
42
             <p style="margin-top:20px;">药品在保存处方时出库:
43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
             </p>
44
             </p>
45
+
46
+            <p style="margin-top:20px;">药品耗材在结算时出库:
47
+                <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
48
+            </p>
45
         </div>
49
         </div>
46
 
50
 
47
 
51
 
97
 
101
 
98
 <script>
102
 <script>
99
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
103
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
100
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig} from '@/api/config'
104
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig} from '@/api/config'
101
 
105
 
102
 export default {
106
 export default {
103
   name: "printTemplate",
107
   name: "printTemplate",
119
       is_open_advice_xt_his:false,
123
       is_open_advice_xt_his:false,
120
       is_open_prescription_xt_his:false,
124
       is_open_prescription_xt_his:false,
121
       drug_out_open:false,
125
       drug_out_open:false,
126
+      drug_settle_open:false,
122
     };
127
     };
123
   },
128
   },
124
   methods: {
129
   methods: {
164
               this.drug_out_open = false
169
               this.drug_out_open = false
165
             }
170
             }
166
 
171
 
172
+            if(response.data.data.is_seetle_open == 1){
173
+               this.drug_settle_open = true
174
+            }else{
175
+              this.drug_settle_open = false
176
+            }
177
+
167
           } else {
178
           } else {
168
             this.$message.error(response.data.msg)
179
             this.$message.error(response.data.msg)
169
           }
180
           }
405
         }
416
         }
406
       })
417
       })
407
 
418
 
419
+    },
420
+
421
+    changeSettleOpen(){
422
+      var settle_open = 0
423
+      if(this.drug_settle_open == false){
424
+        settle_open = 2
425
+      }
426
+      if(this.drug_settle_open == true){
427
+       settle_open = 1
428
+      }
429
+      var params= {
430
+        drug_settle_open:settle_open,
431
+      }
432
+      changeSettleOpenConfig(params).then(response=>{
433
+          if(response.data.state == 1){
434
+            this.$message.success("保存成功!")
435
+            this.getInitIsOpenConfig()
436
+          }
437
+      })
408
     }
438
     }
409
 
439
 
410
   },
440
   },

+ 80 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

477
           <label>带水上机: </label>
477
           <label>带水上机: </label>
478
           <span class="content">{{this.prescription.water_machine}}</span>
478
           <span class="content">{{this.prescription.water_machine}}</span>
479
         </li>
479
         </li>
480
+
481
+        <li v-if=" isShow('追加肝素量')" >
482
+          <label>追加肝素量 : </label>
483
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ add_amount != "0" ? add_amount : "" }}</span>
484
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
485
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
486
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ add_amount != "0" ? "iu" : "" }}</span>
487
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ add_amount != "0" ? "mg" : "" }}</span>
488
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
489
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
490
+                 {{ add_amount != "0" ? "mg" : "" }}
491
+              </span>
492
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
493
+            </span>
494
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ add_amount != "0" ? "mg" : "" }}</span>
495
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ add_amount != "0" ? "mg" : "" }}</span >
496
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ add_amount != "0" ? "mg" : "" }}</span>
497
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >
498
+             <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
499
+                 {{ add_amount != "0" ? "mg" : "" }}
500
+              </span>
501
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
502
+            </span >
503
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >
504
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
505
+                 {{ add_amount != "0" ? "mg" : "" }}
506
+              </span>
507
+              <span v-else> {{ add_amount != "0" ? "iu" : "" }}</span>
508
+            </span>
509
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ add_amount != "0" ? "iu" : "" }}</span>
510
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ add_amount != "0" ? "iu" : "" }}</span>
511
+          </span>
512
+          <span v-else>
513
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ add_amount != "0" ? "mg" : "" }}</span>
514
+            <span class="unit"  v-else>{{ add_amount != "0" ? "iu" : "" }}</span>
515
+          </span>
516
+        </li>
517
+
518
+       <li v-if=" isShow('减肝素量')" >
519
+          <label>减肝素量 : </label>
520
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ reduce_amount != "0" ? reduce_amount : "" }}</span>
521
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
522
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
523
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 ">{{ reduce_amount != "0" ? "iu" : "" }}</span>
524
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
525
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">
526
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
527
+                 {{ reduce_amount != "0" ? "mg" : "" }}
528
+              </span>
529
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
530
+            </span>
531
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
532
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ reduce_amount != "0" ? "mg" : "" }}</span >
533
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ reduce_amount != "0" ? "mg" : "" }}</span>
534
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >
535
+             <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
536
+                 {{ reduce_amount != "0" ? "mg" : "" }}
537
+              </span>
538
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
539
+            </span >
540
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >
541
+              <span v-if="this.$store.getters.xt_user.template_info.org_id == 9671">
542
+                 {{ reduce_amount != "0" ? "mg" : "" }}
543
+              </span>
544
+              <span v-else> {{ reduce_amount != "0" ? "iu" : "" }}</span>
545
+            </span>
546
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ reduce_amount != "0" ? "iu" : "" }}</span>
547
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ reduce_amount != "0" ? "iu" : "" }}</span>
548
+          </span>
549
+          <span v-else>
550
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ reduce_amount != "0" ? "mg" : "" }}</span>
551
+            <span class="unit"  v-else>{{ reduce_amount != "0" ? "iu" : "" }}</span>
552
+          </span>
553
+        </li>
480
        
554
        
481
       </ul>
555
       </ul>
482
     </div>
556
     </div>
795
     displace_speed:function(){
869
     displace_speed:function(){
796
       return this.getValueStr('displace_speed','displace_speed')
870
       return this.getValueStr('displace_speed','displace_speed')
797
     },
871
     },
872
+    add_amount:function(){
873
+       return this.getValueStr('add_amount','add_amount')
874
+    },
875
+    reduce_amount:function(){
876
+       return this.getValueStr('reduce_amount','reduce_amount')
877
+    }
798
   
878
   
799
   },
879
   },
800
   created() {
880
   created() {

+ 6 - 6
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Прегледај датотеку

1663
           this.$message.error('你没有执行医嘱的权限')
1663
           this.$message.error('你没有执行医嘱的权限')
1664
           return false
1664
           return false
1665
         }
1665
         }
1666
-        if(this.org_id == 9671){
1667
-           if(this.currentRow.checker == 0){
1668
-              this.$message.error("请先核对医嘱")
1669
-              return
1670
-           }
1671
-        }
1666
+        // if(this.org_id == 9671){
1667
+        //    if(this.currentRow.checker == 0){
1668
+        //       this.$message.error("请先核对医嘱")
1669
+        //       return
1670
+        //    }
1671
+        // }
1672
         this.execTimeDialogVisible = true
1672
         this.execTimeDialogVisible = true
1673
         if (this.current_select_object == 1) {
1673
         if (this.current_select_object == 1) {
1674
           var isExecution = true
1674
           var isExecution = true

+ 143 - 19
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

211
 
211
 
212
                     <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
212
                     <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
213
                         <el-form-item label="鱼精蛋白(mg/h):">
213
                         <el-form-item label="鱼精蛋白(mg/h):">
214
-                            <el-input
214
+                            <el-input肝素
215
                                     v-model="dialysisPrescription.nucleoprotamine"
215
                                     v-model="dialysisPrescription.nucleoprotamine"
216
-                            ></el-input>
216
+                            ></el-input肝素>
217
                         </el-form-item>
217
                         </el-form-item>
218
                     </el-col>
218
                     </el-col>
219
 
219
 
225
                         </el-form-item>
225
                         </el-form-item>
226
                     </el-col>
226
                     </el-col>
227
 
227
 
228
-                    <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
229
-                        <el-form-item label="无肝素备注:">
230
-                            <el-input
231
-                                    v-model="dialysisPrescription.no_heparin_remarks"
232
-                            ></el-input>
233
-                        </el-form-item>
228
+                    <el-col :span="8" v-if="isShows('追加肝素量')">
229
+                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'追加肝素量(mg) : '">
230
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
231
+                                          v-model="dialysisPrescription.add_amount"></el-input>
232
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
233
+                                          v-model="dialysisPrescription.add_amount"></el-input>
234
+                            </el-form-item>
235
+
236
+                            <el-form-item v-else :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '">
237
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
238
+                                          v-model="dialysisPrescription.add_amount"></el-input>
239
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
240
+                                          v-model="dialysisPrescription.add_amount"></el-input>
241
+                            </el-form-item>
242
+                    </el-col>
243
+
244
+                   
245
+                  <el-col :span="8" v-if="isShows('减肝素量')">
246
+                       <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '">
247
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
248
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
249
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
250
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
251
+                            </el-form-item>
252
+
253
+                            <el-form-item v-else :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '">
254
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
255
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
256
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
257
+                                          v-model="dialysisPrescription.reduce_amount" v-on:input="searchReduceAmount"></el-input>
258
+                            </el-form-item>
234
                     </el-col>
259
                     </el-col>
235
 
260
 
236
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
261
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
272
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
297
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
273
                             </el-form-item>
298
                             </el-form-item>
274
 
299
 
275
-
300
+ 
276
 
301
 
277
                           </div>
302
                           </div>
278
 
303
 
374
 
399
 
375
                     </el-col>
400
                     </el-col>
376
 
401
 
402
+
403
+
377
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
404
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
378
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
405
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432">
379
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
406
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
1438
           is_water:0,
1465
           is_water:0,
1439
           dry_water_hour:"",
1466
           dry_water_hour:"",
1440
           water_machine:"否",
1467
           water_machine:"否",
1468
+          add_amount:"",
1469
+          reduce_amount:"",
1470
+          
1441
         },
1471
         },
1442
 
1472
 
1443
         anticoagulant: {
1473
         anticoagulant: {
1481
         machineList:[
1511
         machineList:[
1482
           {id:1,name:"是"},
1512
           {id:1,name:"是"},
1483
           {id:2,name:"否"}
1513
           {id:2,name:"否"}
1484
-        ]
1514
+        ],
1515
+        zongliang:""
1485
       }
1516
       }
1486
     },
1517
     },
1487
     methods: {
1518
     methods: {
2206
         if (pre.id > 0) {
2237
         if (pre.id > 0) {
2207
           this.dialysisPrescription.mode_id = pre.mode_id
2238
           this.dialysisPrescription.mode_id = pre.mode_id
2208
           this.dialysisPrescription.water_machine = pre.water_machine
2239
           this.dialysisPrescription.water_machine = pre.water_machine
2240
+          this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
2209
         }
2241
         }
2210
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2242
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2211
         // console.log('this.schedual', schedual.mode_id)
2243
         // console.log('this.schedual', schedual.mode_id)
2267
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2299
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2268
             this.dialysisPrescription.package = last.package
2300
             this.dialysisPrescription.package = last.package
2269
             this.dialysisPrescription.a_liquid = last.a_liquid
2301
             this.dialysisPrescription.a_liquid = last.a_liquid
2270
-          
2302
+            this.zongliang = last.anticoagulant_zongliang
2303
+            this.remark = last.remark
2271
             weight_before = 0
2304
             weight_before = 0
2272
 
2305
 
2273
           }
2306
           }
3468
           } else {
3501
           } else {
3469
             console.log('切换数据', response.data.data.solution)
3502
             console.log('切换数据', response.data.data.solution)
3470
             this.$message.success('切换成功')
3503
             this.$message.success('切换成功')
3504
+            console.log("dialysisPrescription",response.data.data.dialysisPrescription)
3505
+            
3471
             if (response.data.data.solution != null) {
3506
             if (response.data.data.solution != null) {
3472
               for (const key in response.data.data.solution) {
3507
               for (const key in response.data.data.solution) {
3473
                 // 长期处方不为空
3508
                 // 长期处方不为空
3512
                 this.dialysisPrescription.mode_id = id
3547
                 this.dialysisPrescription.mode_id = id
3513
               }
3548
               }
3514
             }
3549
             }
3550
+
3551
+            if(response.data.data.dialysisPrescription!=null){
3552
+               this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark 
3553
+            }
3515
           }
3554
           }
3516
 
3555
 
3517
           if (
3556
           if (
3624
         const res = new Map()
3663
         const res = new Map()
3625
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3664
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3626
       },
3665
       },
3627
-   
3628
 
3666
 
3629
     },
3667
     },
3630
 
3668
 
3649
         }
3687
         }
3650
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3688
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3651
 
3689
 
3652
-        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3690
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
3653
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3691
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3654
           this.dialysisPrescription.anticoagulant_zongliang = ''
3692
           this.dialysisPrescription.anticoagulant_zongliang = ''
3655
         }
3693
         }
3694
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3656
       },
3695
       },
3657
       'dialysisPrescription.dialysis_duration_minute': function() {
3696
       'dialysisPrescription.dialysis_duration_minute': function() {
3658
         let dialysis_duration_minute = 0
3697
         let dialysis_duration_minute = 0
3676
           parseFloat(dialysis_duration_minute) / 60
3715
           parseFloat(dialysis_duration_minute) / 60
3677
 
3716
 
3678
         this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
3717
         this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
3679
-          this.dialysisPrescription.anticoagulant_weichi
3718
+          this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
3680
         )
3719
         )
3681
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3720
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3682
           this.dialysisPrescription.anticoagulant_zongliang = ''
3721
           this.dialysisPrescription.anticoagulant_zongliang = ''
3707
           1,
3746
           1,
3708
           this.dialysisPrescription.anticoagulant_shouji,
3747
           this.dialysisPrescription.anticoagulant_shouji,
3709
           duration,
3748
           duration,
3710
-          this.dialysisPrescription.anticoagulant_weichi
3749
+          this.dialysisPrescription.anticoagulant_weichi,
3750
+          this.dialysisPrescription.add_amount,
3751
+          this.dialysisPrescription.reduce_amount
3711
         )
3752
         )
3753
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3712
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3754
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3713
           this.dialysisPrescription.anticoagulant_zongliang = ''
3755
           this.dialysisPrescription.anticoagulant_zongliang = ''
3714
         }
3756
         }
3715
-
3757
+    
3716
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3758
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3717
           this.dialysisPrescription.anticoagulant_zongliang = ""
3759
           this.dialysisPrescription.anticoagulant_zongliang = ""
3718
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3760
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3719
        }
3761
        }
3720
-
3762
+ 
3721
       },
3763
       },
3722
       'dialysisPrescription.anticoagulant_weichi': function() {
3764
       'dialysisPrescription.anticoagulant_weichi': function() {
3723
         let dialysis_duration_minute = 0
3765
         let dialysis_duration_minute = 0
3739
         }
3781
         }
3740
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3782
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
3741
 
3783
 
3742
-        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
3784
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
3743
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3785
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3744
           this.dialysisPrescription.anticoagulant_zongliang = ''
3786
           this.dialysisPrescription.anticoagulant_zongliang = ''
3745
         }
3787
         }
3746
-
3788
+         this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3747
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3789
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3748
          this.dialysisPrescription.anticoagulant_zongliang = ""
3790
          this.dialysisPrescription.anticoagulant_zongliang = ""
3749
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3791
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3750
        }
3792
        }
3793
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3794
+     
3751
       },
3795
       },
3796
+   
3797
+   
3752
       'prescription.id': {
3798
       'prescription.id': {
3753
         immediate: true,
3799
         immediate: true,
3754
         deep: true,
3800
         deep: true,
4104
           }
4150
           }
4105
         }
4151
         }
4106
       },
4152
       },
4153
+      'dialysisPrescription.add_amount': function() {
4154
+        let dialysis_duration_minute = 0
4155
+        let dialysis_duration_hour = 0
4156
+        let duration = 0
4157
+        if (this.dialysisPrescription.dialysis_duration_minute == '') {
4158
+          dialysis_duration_minute = 0
4159
+        } else {
4160
+          dialysis_duration_minute = this.dialysisPrescription
4161
+            .dialysis_duration_minute
4162
+        }
4163
+        if (this.dialysisPrescription.dialysis_duration_hour == '') {
4164
+          dialysis_duration_hour = 0
4165
+        } else {
4166
+          dialysis_duration_hour = this.dialysisPrescription
4167
+            .dialysis_duration_hour
4168
+        }
4169
+        duration =
4170
+          parseFloat(dialysis_duration_hour) +
4171
+          parseFloat(dialysis_duration_minute) / 60
4172
+
4173
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
4174
+          1,
4175
+          this.dialysisPrescription.anticoagulant_shouji,
4176
+          duration,
4177
+          this.dialysisPrescription.anticoagulant_weichi,
4178
+          this.dialysisPrescription.add_amount,
4179
+          this.dialysisPrescription.reduce_amount
4180
+        )
4181
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
4182
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4183
+          this.dialysisPrescription.anticoagulant_zongliang = ''
4184
+        }
4185
+    
4186
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4187
+          this.dialysisPrescription.anticoagulant_zongliang = ""
4188
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4189
+       }
4190
+ 
4191
+      },
4192
+      'dialysisPrescription.reduce_amount': function() {
4193
+        let dialysis_duration_minute = 0
4194
+        let dialysis_duration_hour = 0
4195
+        let duration = 0
4196
+        if (this.dialysisPrescription.dialysis_duration_minute == '') {
4197
+          dialysis_duration_minute = 0
4198
+        } else {
4199
+          dialysis_duration_minute = this.dialysisPrescription
4200
+            .dialysis_duration_minute
4201
+        }
4202
+        if (this.dialysisPrescription.dialysis_duration_hour == '') {
4203
+          dialysis_duration_hour = 0
4204
+        } else {
4205
+          dialysis_duration_hour = this.dialysisPrescription
4206
+            .dialysis_duration_hour
4207
+        }
4208
+        duration =
4209
+          parseFloat(dialysis_duration_hour) +
4210
+          parseFloat(dialysis_duration_minute) / 60
4211
+
4212
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
4213
+          1,
4214
+          this.dialysisPrescription.anticoagulant_shouji,
4215
+          duration,
4216
+          this.dialysisPrescription.anticoagulant_weichi,
4217
+          this.dialysisPrescription.add_amount,
4218
+          this.dialysisPrescription.reduce_amount
4219
+        )
4220
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
4221
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
4222
+          this.dialysisPrescription.anticoagulant_zongliang = ''
4223
+        }
4224
+    
4225
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
4226
+          this.dialysisPrescription.anticoagulant_zongliang = ""
4227
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
4228
+       }
4229
+ 
4230
+      },
4107
       stockType: function() {
4231
       stockType: function() {
4108
         console.log('stockType', this.stockType)
4232
         console.log('stockType', this.stockType)
4109
         var arr = []
4233
         var arr = []

+ 8 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Прегледај датотеку

448
                 template_id == 48 ||
448
                 template_id == 48 ||
449
                 template_id == 53 ||
449
                 template_id == 53 ||
450
                 template_id == 54 ||
450
                 template_id == 54 ||
451
-                template_id == 56 
451
+                template_id == 56 ||
452
+                org_id ==10432
452
                )
453
                )
453
             "
454
             "
454
           >
455
           >
473
               template_id != 48 &&
474
               template_id != 48 &&
474
               template_id != 53 &&
475
               template_id != 53 &&
475
               template_id != 54 &&
476
               template_id != 54 &&
476
-              template_id != 56 
477
+              template_id != 56 &&
478
+              org_id !=10432
477
             "
479
             "
478
           >
480
           >
479
             <template slot-scope="scope">
481
             <template slot-scope="scope">
1217
               template_id != 48 &&
1219
               template_id != 48 &&
1218
               template_id != 54 &&
1220
               template_id != 54 &&
1219
               template_id != 56 &&
1221
               template_id != 56 &&
1220
-              template_id != 53
1222
+              template_id != 53 &&
1223
+              org_id!=10432
1221
             "
1224
             "
1222
           >
1225
           >
1223
             <el-form-item label="置换率(L/h):">
1226
             <el-form-item label="置换率(L/h):">
1238
                 template_id == 53 ||
1241
                 template_id == 53 ||
1239
                 template_id == 54 ||
1242
                 template_id == 54 ||
1240
                 template_id == 56 ||
1243
                 template_id == 56 ||
1241
-                template_id == 48)
1244
+                template_id == 48 ||
1245
+                org_id==10432)
1242
             "
1246
             "
1243
           >
1247
           >
1244
             <el-form-item label="置换率(ml/min):">
1248
             <el-form-item label="置换率(ml/min):">

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Прегледај датотеку

20
           <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432" width="50px"> 超滤率 <br />(L/h) </th>
20
           <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432" width="50px"> 超滤率 <br />(L/h) </th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432" width="92px" > 置换率(L/h)  </th>
25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432 )" width="92px"  > 置换量(ml)  </th>
26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432 )" width="92px"  > 置换量(ml)  </th>
27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432)" width="92px" > 置换量(L) </th>
27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432)" width="92px" > 置换量(L) </th>

+ 0 - 5
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Прегледај датотеку

1009
           )
1009
           )
1010
         }
1010
         }
1011
     },
1011
     },
1012
-    handleSelectionChange(val){
1013
-        // console.log('val',val)
1014
-        this.selecting_schs = val;
1015
-    },
1016
-
1017
     querySearchAsync(keyword, cb) {
1012
     querySearchAsync(keyword, cb) {
1018
         let key = '';
1013
         let key = '';
1019
         if (keyword != undefined) {
1014
         if (keyword != undefined) {

Разлика између датотеке није приказан због своје велике величине
+ 1260 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue


+ 23 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

1450
             this.$refs.charge.hide()
1450
             this.$refs.charge.hide()
1451
             return false
1451
             return false
1452
           } else {
1452
           } else {
1453
+            if(response.data.data.msg == 2){
1454
+              var drug_name = response.data.data.drug.drug_name
1455
+              var dose = response.data.data.drug.dose
1456
+              var dose_unit = response.data.data.drug.dose_unit
1457
+              var min_number = response.data.data.drug.min_number
1458
+              var min_unit = response.data.data.drug.min_unit
1459
+              var max_unit = response.data.data.drug.max_unit
1460
+              var str = drug_name + " " + dose + dose_unit +"*" + min_number + min_unit + "/"+max_unit
1461
+              this.$message.error(str + "库存不足,结算失败!")
1462
+              this.loadingtwo = false
1463
+              this.newLoading = false
1464
+              return
1465
+            }
1466
+            if(response.data.data.msg == 3){
1467
+              var good_name = response.data.data.good.good_name
1468
+              var specification_name =  response.data.data.good.specification_name
1469
+              var str = good_name + " " + specification_name
1470
+              this.$message.error(str+"库存不足,结算失败!")
1471
+              this.loadingtwo = false
1472
+              this.newLoading = false
1473
+              return
1474
+            }
1453
             this.$refs.charge.hide()
1475
             this.$refs.charge.hide()
1454
             this.radio = 2
1476
             this.radio = 2
1455
             this.changeRadioAndPatient(2)
1477
             this.changeRadioAndPatient(2)
3019
             }
3041
             }
3020
             axios.get('http://127.0.0.1:9532/api/refund/post', {
3042
             axios.get('http://127.0.0.1:9532/api/refund/post', {
3021
               params: params
3043
               params: params
3022
-            })
3023
-                .then(function(response) {
3044
+            }).then(function(response) {
3024
                   if (response.data.state == 0) {
3045
                   if (response.data.state == 0) {
3025
                     that.$message.error(response.data.msg)
3046
                     that.$message.error(response.data.msg)
3026
                     that.loadingtwo = false
3047
                     that.loadingtwo = false