XMLWAN 2 anni fa
parent
commit
aff421452f

+ 16 - 0
src/api/advice.js Vedi File

@@ -504,6 +504,14 @@ export function getSchedualDoctors(params) {
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 515
 export function getDoctorAdviceCount(params) {
508 516
   return request({
509 517
     url: '/api/schedule/getdoctoradvicecount',
@@ -527,3 +535,11 @@ export function getPatientSchedule(params) {
527 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 Vedi File

@@ -209,3 +209,11 @@ export function changeDrugOpenConfig(params) {
209 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 Vedi File

@@ -38,9 +38,18 @@ export default {
38 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 51
       path: '/dialysis/dialysisDoctorAdvice',
43
-      component: () => import('@/xt_pages/dialysis/dialysisDoctorAdvice'),
52
+      component: () => import('@/xt_pages/dialysis/newDoctorAdvice'),
44 53
       name: '透析医嘱',
45 54
       meta: {
46 55
         title: '透析医嘱',
@@ -58,6 +67,7 @@ export default {
58 67
         noCache: true
59 68
       }
60 69
     },
70
+
61 71
     {
62 72
       path: '/dialysis/signPrint',
63 73
       component: () => import('@/xt_pages/dialysis/signPrint'),

+ 5 - 2
src/utils/tools.js Vedi File

@@ -152,7 +152,7 @@ export function uParseTime(time, cFormat) {
152 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 156
   console.log('t', type)
157 157
   var t = 0.5
158 158
   if (type == 1) {
@@ -165,11 +165,14 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
165 165
   shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
166 166
   shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
167 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 171
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169 172
     return 0
170 173
   }
171 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 178
 export function formatDate(date, format) {

+ 31 - 1
src/xt_pages/data/basicConfig.vue Vedi File

@@ -42,6 +42,10 @@
42 42
             <p style="margin-top:20px;">药品在保存处方时出库:
43 43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44 44
             </p>
45
+
46
+            <p style="margin-top:20px;">药品耗材在结算时出库:
47
+                <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
48
+            </p>
45 49
         </div>
46 50
 
47 51
 
@@ -97,7 +101,7 @@
97 101
 
98 102
 <script>
99 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 106
 export default {
103 107
   name: "printTemplate",
@@ -119,6 +123,7 @@ export default {
119 123
       is_open_advice_xt_his:false,
120 124
       is_open_prescription_xt_his:false,
121 125
       drug_out_open:false,
126
+      drug_settle_open:false,
122 127
     };
123 128
   },
124 129
   methods: {
@@ -164,6 +169,12 @@ export default {
164 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 178
           } else {
168 179
             this.$message.error(response.data.msg)
169 180
           }
@@ -405,6 +416,25 @@ export default {
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 Vedi File

@@ -477,6 +477,80 @@
477 477
           <label>带水上机: </label>
478 478
           <span class="content">{{this.prescription.water_machine}}</span>
479 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 555
       </ul>
482 556
     </div>
@@ -795,6 +869,12 @@ export default {
795 869
     displace_speed:function(){
796 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 880
   created() {

+ 6 - 6
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Vedi File

@@ -1663,12 +1663,12 @@
1663 1663
           this.$message.error('你没有执行医嘱的权限')
1664 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 1672
         this.execTimeDialogVisible = true
1673 1673
         if (this.current_select_object == 1) {
1674 1674
           var isExecution = true

+ 143 - 19
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -211,9 +211,9 @@
211 211
 
212 212
                     <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
213 213
                         <el-form-item label="鱼精蛋白(mg/h):">
214
-                            <el-input
214
+                            <el-input肝素
215 215
                                     v-model="dialysisPrescription.nucleoprotamine"
216
-                            ></el-input>
216
+                            ></el-input肝素>
217 217
                         </el-form-item>
218 218
                     </el-col>
219 219
 
@@ -225,12 +225,37 @@
225 225
                         </el-form-item>
226 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 259
                     </el-col>
235 260
 
236 261
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
@@ -272,7 +297,7 @@
272 297
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
273 298
                             </el-form-item>
274 299
 
275
-
300
+ 
276 301
 
277 302
                           </div>
278 303
 
@@ -374,6 +399,8 @@
374 399
 
375 400
                     </el-col>
376 401
 
402
+
403
+
377 404
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
378 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 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,6 +1465,9 @@
1438 1465
           is_water:0,
1439 1466
           dry_water_hour:"",
1440 1467
           water_machine:"否",
1468
+          add_amount:"",
1469
+          reduce_amount:"",
1470
+          
1441 1471
         },
1442 1472
 
1443 1473
         anticoagulant: {
@@ -1481,7 +1511,8 @@
1481 1511
         machineList:[
1482 1512
           {id:1,name:"是"},
1483 1513
           {id:2,name:"否"}
1484
-        ]
1514
+        ],
1515
+        zongliang:""
1485 1516
       }
1486 1517
     },
1487 1518
     methods: {
@@ -2206,6 +2237,7 @@
2206 2237
         if (pre.id > 0) {
2207 2238
           this.dialysisPrescription.mode_id = pre.mode_id
2208 2239
           this.dialysisPrescription.water_machine = pre.water_machine
2240
+          this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
2209 2241
         }
2210 2242
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2211 2243
         // console.log('this.schedual', schedual.mode_id)
@@ -2267,7 +2299,8 @@
2267 2299
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
2268 2300
             this.dialysisPrescription.package = last.package
2269 2301
             this.dialysisPrescription.a_liquid = last.a_liquid
2270
-          
2302
+            this.zongliang = last.anticoagulant_zongliang
2303
+            this.remark = last.remark
2271 2304
             weight_before = 0
2272 2305
 
2273 2306
           }
@@ -3468,6 +3501,8 @@
3468 3501
           } else {
3469 3502
             console.log('切换数据', response.data.data.solution)
3470 3503
             this.$message.success('切换成功')
3504
+            console.log("dialysisPrescription",response.data.data.dialysisPrescription)
3505
+            
3471 3506
             if (response.data.data.solution != null) {
3472 3507
               for (const key in response.data.data.solution) {
3473 3508
                 // 长期处方不为空
@@ -3512,6 +3547,10 @@
3512 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 3556
           if (
@@ -3624,7 +3663,6 @@
3624 3663
         const res = new Map()
3625 3664
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3626 3665
       },
3627
-   
3628 3666
 
3629 3667
     },
3630 3668
 
@@ -3649,10 +3687,11 @@
3649 3687
         }
3650 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 3691
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3654 3692
           this.dialysisPrescription.anticoagulant_zongliang = ''
3655 3693
         }
3694
+        this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3656 3695
       },
3657 3696
       'dialysisPrescription.dialysis_duration_minute': function() {
3658 3697
         let dialysis_duration_minute = 0
@@ -3676,7 +3715,7 @@
3676 3715
           parseFloat(dialysis_duration_minute) / 60
3677 3716
 
3678 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 3720
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3682 3721
           this.dialysisPrescription.anticoagulant_zongliang = ''
@@ -3707,17 +3746,20 @@
3707 3746
           1,
3708 3747
           this.dialysisPrescription.anticoagulant_shouji,
3709 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 3754
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3713 3755
           this.dialysisPrescription.anticoagulant_zongliang = ''
3714 3756
         }
3715
-
3757
+    
3716 3758
       if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3717 3759
           this.dialysisPrescription.anticoagulant_zongliang = ""
3718 3760
           this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3719 3761
        }
3720
-
3762
+ 
3721 3763
       },
3722 3764
       'dialysisPrescription.anticoagulant_weichi': function() {
3723 3765
         let dialysis_duration_minute = 0
@@ -3739,16 +3781,20 @@
3739 3781
         }
3740 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 3785
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3744 3786
           this.dialysisPrescription.anticoagulant_zongliang = ''
3745 3787
         }
3746
-
3788
+         this.zongliang =  this.dialysisPrescription.anticoagulant_zongliang
3747 3789
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3748 3790
          this.dialysisPrescription.anticoagulant_zongliang = ""
3749 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 3798
       'prescription.id': {
3753 3799
         immediate: true,
3754 3800
         deep: true,
@@ -4104,6 +4150,84 @@
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 4231
       stockType: function() {
4108 4232
         console.log('stockType', this.stockType)
4109 4233
         var arr = []

+ 8 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Vedi File

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

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Vedi File

@@ -20,8 +20,8 @@
20 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 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 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 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26 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 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 Vedi File

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

File diff suppressed because it is too large
+ 1260 - 0
src/xt_pages/dialysis/newDoctorAdvice.vue


+ 23 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Vedi File

@@ -1450,6 +1450,28 @@ export default {
1450 1450
             this.$refs.charge.hide()
1451 1451
             return false
1452 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 1475
             this.$refs.charge.hide()
1454 1476
             this.radio = 2
1455 1477
             this.changeRadioAndPatient(2)
@@ -3019,8 +3041,7 @@ export default {
3019 3041
             }
3020 3042
             axios.get('http://127.0.0.1:9532/api/refund/post', {
3021 3043
               params: params
3022
-            })
3023
-                .then(function(response) {
3044
+            }).then(function(response) {
3024 3045
                   if (response.data.state == 0) {
3025 3046
                     that.$message.error(response.data.msg)
3026 3047
                     that.loadingtwo = false