Ver código fonte

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 anos atrás
pai
commit
031031148b

Diferenças do arquivo suprimidas por serem muito extensas
+ 1111 - 1018
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 23 - 11
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Ver arquivo

@@ -193,8 +193,8 @@
193 193
                 scanStyles: false
194 194
               });
195 195
             }
196
-            
197
-            
196
+
197
+
198 198
           },500)
199 199
         }else{
200 200
           const style =
@@ -232,7 +232,7 @@
232 232
 
233 233
               return false
234 234
             } else {
235
-              
235
+
236 236
               this.balanceAccounts = response.data.data
237 237
               let arr = []
238 238
               let obj = {
@@ -252,7 +252,7 @@
252 252
               }
253 253
               let num = 0
254 254
               this.balanceAccounts.order_info.map(item => {
255
-                
255
+
256 256
                 if(item.advice_id > 0){
257 257
                   obj.details.push(item)
258 258
                   obj.total += (item.pric * item.advice.prescribing_number)
@@ -378,7 +378,7 @@
378 378
                         }
379 379
                       }
380 380
                       that.info.new_detail_list.push(obj)
381
-                      
381
+
382 382
                     }
383 383
                     let num = 0
384 384
                     that.info.new_detail_list.map(item => {
@@ -394,24 +394,36 @@
394 394
                       if(that.info.transBody.outputlist2[i].aka111 == '07') {
395 395
                         console.log('0707007')
396 396
                         newTotal += that.info.transBody.outputlist2[i].bka058
397
-                        that.info.transBody.outputlist2.splice(i, 1);
397
+                        // that.info.transBody.outputlist2.splice(i, 1);
398 398
                       }
399 399
                       if(that.info.transBody.outputlist2[i].aka111 == '19'){
400 400
                         console.log('191919')
401 401
                         newTotal += that.info.transBody.outputlist2[i].bka058
402
-                        that.info.transBody.outputlist2.splice(i, 1);
402
+                        // that.info.transBody.outputlist2.splice(i, 1);
403 403
                       }
404 404
                     }
405
-                    console.log(1111111111111)
406 405
                     let aka111obj = {
407 406
                       aka111:'99',
408 407
                       bka058:newTotal
409 408
                     }
410
-                    console.log('aka111obj',aka111obj)
411 409
                     that.info.transBody.outputlist2.push(aka111obj)
410
+
411
+                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
412
+                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
413
+                        // console.log('0707007')
414
+                        // newTotal += that.info.transBody.outputlist2[i].bka058
415
+                        that.info.transBody.outputlist2.splice(i, 1);
416
+                      }
417
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
418
+                        // console.log('191919')
419
+                        // newTotal += that.info.transBody.outputlist2[i].bka058
420
+                        that.info.transBody.outputlist2.splice(i, 1);
421
+                      }
422
+                    }
423
+
412 424
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
413 425
                     console.log('this.num222',that.num)
414
-                    
426
+
415 427
                   }
416 428
                 }
417 429
               })
@@ -442,7 +454,7 @@
442 454
 
443 455
     created() {
444 456
       this.org_id = this.$store.getters.xt_user.org_id
445
-      
457
+
446 458
       this.getInfo(this.paramsObj)
447 459
     },
448 460
     watch:{

+ 128 - 126
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -13,20 +13,19 @@
13 13
                  <p>已收费:<span  style="color: red">{{cal_two}}</span>人</p>
14 14
                  <p>已退费:<span  style="color: red">{{cal_three}}</span>人</p>
15 15
                </div> -->
16
-                <!--<el-date-picker-->
17
-                        <!--v-model="record_date"-->
18
-                        <!--prefix-icon="el-icon-date"-->
19
-                        <!--@change="changeTimeTwo"-->
20
-                        <!--:editable="false"-->
21
-                        <!--style="width: 150px;"-->
22
-                        <!--type="date"-->
23
-                        <!--:picker-options="pickerOptions"-->
24
-                        <!--placeholder="选择开始时间"-->
25
-                        <!--align="right"-->
26
-                        <!--format="yyyy-MM-dd"-->
27
-                        <!--value-format="yyyy-MM-dd">-->
28
-                <!--</el-date-picker>-->
29
-
16
+                <el-date-picker
17
+                v-model="record_date"
18
+                prefix-icon="el-icon-date"
19
+                @change="changeTimeTwo"
20
+                :editable="false"
21
+                style="width: 150px;"
22
+                type="date"
23
+                :picker-options="pickerOptions"
24
+                placeholder="选择开始时间"
25
+                align="right"
26
+                format="yyyy-MM-dd"
27
+                value-format="yyyy-MM-dd">
28
+                </el-date-picker>
30 29
 
31 30
 
32 31
                 <div class="mainCell" style="margin: 10px">
@@ -139,18 +138,6 @@
139 138
                                    type="primary">挂号
140 139
                         </el-button>
141 140
 
142
-                        <!--<el-button-->
143
-                        <!--size="small" @click="open(8)" type="primary"-->
144
-                        <!--&gt;预结算-->
145
-                        <!--</el-button>-->
146
-
147
-
148
-                        <!--<el-button v-loading="loadingtwo"-->
149
-                        <!--v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 ||  this.order.order_status == 3"-->
150
-                        <!--size="small"-->
151
-                        <!--@click="open(4)"-->
152
-                        <!--type="primary">收费-->
153
-                        <!--</el-button>-->
154 141
 
155 142
                         <el-button size="small" @click="open(5)" type="primary"
156 143
                                    v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
@@ -169,16 +156,7 @@
169 156
                         >退号
170 157
                         </el-button>
171 158
 
172
-                        <!--<el-button-->
173
-                        <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"-->
174
-                        <!--size="small" @click="open(11)" type="primary"-->
175
-                        <!--&gt;撤销明细-->
176
-                        <!--</el-button>-->
177
-
178 159
                     </div>
179
-                    <!--<el-button size="small" @click="query" type="primary"-->
180
-                    <!--&gt;查询-->
181
-                    <!--</el-button>-->
182 160
 
183 161
 
184 162
                 </div>
@@ -263,14 +241,14 @@
263 241
                                                         </div>
264 242
                                                         <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
265 243
 
266
-                                                            <!--<el-button-->
267
-                                                            <!--v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "-->
244
+                                                            <el-button
245
+                                                            v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) "
268 246
 
269
-                                                            <!--size="small"-->
270
-                                                            <!--@click="open(8,items.med_type,items.prescriptions[0].order)"-->
271
-                                                            <!--type="primary"-->
272
-                                                            <!--&gt;预结算-->
273
-                                                            <!--</el-button>-->
247
+                                                            size="small"
248
+                                                            @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
249
+                                                            type="primary"
250
+                                                            >预结算
251
+                                                            </el-button>
274 252
 
275 253
 
276 254
                                                             <el-button v-loading="loadingtwo"
@@ -281,11 +259,11 @@
281 259
                                                             </el-button>
282 260
 
283 261
 
284
-                                                            <!--<el-button-->
285
-                                                            <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"-->
286
-                                                            <!--size="small" @click="open(11)" type="primary"-->
287
-                                                            <!--&gt;撤销明细-->
288
-                                                            <!--</el-button>-->
262
+                                                            <el-button
263
+                                                            v-if="items.prescriptions[0].order.order_status = 1 && ($store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990)"
264
+                                                            size="small" @click="open(11)" type="primary"
265
+                                                            >撤销明细
266
+                                                            </el-button>
289 267
 
290 268
                                                         </div>
291 269
                                                     </div>
@@ -504,13 +482,13 @@
504 482
                                                         </div>
505 483
                                                         <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
506 484
 
507
-                                                            <!--<el-button-->
508
-                                                            <!--v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "-->
509
-                                                            <!--size="small"-->
510
-                                                            <!--@click="open(8,items.med_type,items.curMonthPrescriptions.order)"-->
511
-                                                            <!--type="primary"-->
512
-                                                            <!--&gt;预结算-->
513
-                                                            <!--</el-button>-->
485
+                                                            <el-button
486
+                                                                    v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
487
+                                                                    size="small"
488
+                                                                    @click="open(8,items.med_type,items.curMonthPrescriptions.order)"
489
+                                                                    type="primary"
490
+                                                            >预结算
491
+                                                            </el-button>
514 492
 
515 493
 
516 494
                                                             <el-button v-loading="loadingtwo"
@@ -522,8 +500,8 @@
522 500
 
523 501
 
524 502
                                                             <el-button
525
-                                                            v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990"
526
-                                                            size="small" @click="open(11)" type="primary"
503
+                                                                    v-if="items.curMonthPrescriptions.order.order_status == 1 && ($store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674   || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990)"
504
+                                                                    size="small" @click="open(11)" type="primary"
527 505
                                                             >撤销明细
528 506
                                                             </el-button>
529 507
 
@@ -715,6 +693,20 @@
715 693
             <new-statement-print-two :params-obj="newOrderObj"></new-statement-print-two>
716 694
             <!--<newStatementPrint ref="print" :paramsObj='newOrderObj'></newStatementPrint>-->
717 695
         </el-dialog>
696
+
697
+
698
+        <el-dialog title="输入密码" :visible.sync="pwdFormVisible">
699
+            <el-form :model="form">
700
+                <el-form-item label="密码" :label-width="20">
701
+                    <el-input v-model="pwd"  show-password="false"></el-input>
702
+                </el-form-item>
703
+            </el-form>
704
+            <div slot="footer" class="dialog-footer">
705
+                <el-button @click="pwdFormVisible = false">取 消</el-button>
706
+                <el-button type="primary" @click="comfirmPWDialog">确 定</el-button>
707
+            </div>
708
+        </el-dialog>
709
+
718 710
     </div>
719 711
 
720 712
 </template>
@@ -776,6 +768,8 @@
776 768
       return {
777 769
         temp_med_type: '',
778 770
         dialogVisible: false,
771
+        pwdFormVisible: false,
772
+        pwd:"",
779 773
         form: {
780 774
           p_type: '',
781 775
           sick_type: '',
@@ -917,7 +911,11 @@
917 911
 
918 912
         temp_prescriptions: null,
919 913
 
920
-        temp_ids: ''
914
+        temp_ids: '',
915
+
916
+        other_prescriptions: [],
917
+
918
+
921 919
 
922 920
       }
923 921
     },
@@ -940,6 +938,46 @@
940 938
       this.getPatientList()
941 939
     },
942 940
     methods: {
941
+      comfirmPWDialog(){
942
+        var that = this
943
+        axios.get('http://127.0.0.1:9532/api/pwd/check', {
944
+          params: {
945
+            "card_pwd":this.pwd,
946
+            "his_patient_id":this.hisPatientInfo.id,
947
+            "admin_user_id": this.$store.getters.xt_user.user.id
948
+          }
949
+        })
950
+          .then(function(response) {
951
+            if (response.data.state == 0) {
952
+              that.$message.error(response.data.msg)
953
+              return false
954
+            } else {
955
+              if (response.data.data.failed_code == -10) {
956
+                this.pwd = ""
957
+                that.$confirm(response.data.data.msg, '医保错误信息', {
958
+                  confirmButtonText: '确 定',
959
+                  type: 'warning'
960
+                }).then(() => {
961
+
962
+                }).catch(() => {
963
+
964
+                })
965
+
966
+              } else {
967
+                that.pwdFormVisible = false
968
+                if (that.activeName == 'first') {
969
+                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder)
970
+                } else {
971
+                  that.$refs.charge.show(that.getTotalFour(that.other_prescriptions), that.currentOrder)
972
+                }
973
+              }
974
+
975
+            }
976
+          })
977
+          .catch(function(error) {
978
+
979
+          })
980
+      },
943 981
       openDialog(item) {
944 982
         this.dialogVisible = true
945 983
         this.temp_prescriptions = item
@@ -963,10 +1001,7 @@
963 1001
       changevalue(val) {
964 1002
         this.$forceUpdate()
965 1003
 
966
-      },  GetDiagnosisName(ids){
967
-
968
-
969
-
1004
+      }, GetDiagnosisName(ids) {
970 1005
 
971 1006
       },
972 1007
       query() {
@@ -1919,7 +1954,7 @@
1919 1954
             for (let i = 0; i < this.all_table_data.length; i++) {
1920 1955
               let isHasUnCharge = false
1921 1956
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1922
-                if (this.all_table_data[i].order_status != 2 ||  this.all_table_data[i].order_status != 3) {
1957
+                if (this.all_table_data[i].order_status != 2 || this.all_table_data[i].order_status != 3) {
1923 1958
                   isHasUnCharge = true
1924 1959
                 } else {
1925 1960
                   if (this.all_table_data[i].his_patient_id > 0) {
@@ -1930,7 +1965,7 @@
1930 1965
 
1931 1966
                 }
1932 1967
               }
1933
-              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
1968
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
1934 1969
                 isHasUnCharge = true
1935 1970
 
1936 1971
               }
@@ -1966,7 +2001,7 @@
1966 2001
                 for (let i = 0; i < this.all_table_data.length; i++) {
1967 2002
                   let isHasUnCharge = false
1968 2003
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1969
-                    if (this.all_table_data[i].order_status != 2 ||  this.all_table_data[i].order_status != 3) {
2004
+                    if (this.all_table_data[i].order_status != 2 || this.all_table_data[i].order_status != 3) {
1970 2005
                       isHasUnCharge = true
1971 2006
                     } else {
1972 2007
                       if (this.all_table_data[i].his_patient_id > 0) {
@@ -1978,7 +2013,7 @@
1978 2013
                     }
1979 2014
 
1980 2015
                   }
1981
-                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
2016
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
1982 2017
                     isHasUnCharge = true
1983 2018
 
1984 2019
                   }
@@ -2139,7 +2174,7 @@
2139 2174
             for (let i = 0; i < this.all_table_data.length; i++) {
2140 2175
               let isHasUnCharge = false
2141 2176
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
2142
-                if (this.all_table_data[i].order_status != 2 ||  this.all_table_data[i].order_status != 3) {
2177
+                if (this.all_table_data[i].order_status != 2 || this.all_table_data[i].order_status != 3) {
2143 2178
                   isHasUnCharge = true
2144 2179
                 } else {
2145 2180
                   if (this.all_table_data[i].his_patient_id > 0) {
@@ -2150,7 +2185,7 @@
2150 2185
 
2151 2186
                 }
2152 2187
               }
2153
-              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
2188
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
2154 2189
                 isHasUnCharge = true
2155 2190
 
2156 2191
               }
@@ -2507,6 +2542,7 @@
2507 2542
         }
2508 2543
       },
2509 2544
       open(index, med_type, order, prescriptions) {
2545
+        this.other_prescriptions = prescriptions
2510 2546
 
2511 2547
         if (index == 1) {
2512 2548
 
@@ -2526,6 +2562,7 @@
2526 2562
           this.treatVisible = true
2527 2563
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
2528 2564
         } else if (index == 4) {
2565
+
2529 2566
           this.currentOrder = order
2530 2567
           this.current_med_type = med_type
2531 2568
           if (this.patientInfo.id == 0) {
@@ -2538,57 +2575,24 @@
2538 2575
             return
2539 2576
           }
2540 2577
 
2541
-          // let ids = []
2542
-          // if (this.activeName == 'first') {
2543
-          //   for (let c = 0; c < this.big_prescriptions.length; c++) {
2544
-          //     for (let i = 0; i < this.big_prescriptions[c].prescriptions.length; i++) {
2545
-          //       for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
2546
-          //         ids.push(this.prescriptions[i].advices[a].id)
2547
-          //       }
2548
-          //       for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
2549
-          //         ids.push(this.prescriptions[i].addition[a].id)
2550
-          //       }
2551
-          //
2552
-          //       for (let a = 0; a < this.prescriptions[i].project.length; a++) {
2553
-          //         ids.push(this.prescriptions[i].project[a].id)
2554
-          //       }
2555
-          //     }
2556
-          //   }
2557
-          //   if (ids.length == 0) {
2558
-          //     this.$message.error('请先到医生工作站开处方再来结算')
2559
-          //     return
2560
-          //   }
2561
-          //
2562
-          // } else {
2563
-          //
2564
-          //   for (let i = 0; i < this.month_prescriptions.length; i++) {
2565
-          //     for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
2566
-          //       ids.push(this.month_prescriptions[i].advices[a].id)
2567
-          //     }
2568
-          //
2569
-          //     for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
2570
-          //       ids.push(this.month_prescriptions[i].addition[a].id)
2571
-          //     }
2572
-          //
2573
-          //     for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
2574
-          //       ids.push(this.month_prescriptions[i].project[a].id)
2575
-          //     }
2576
-          //   }
2577
-          //   if (ids.length == 0) {
2578
-          //     this.$message.error('请先到医生工作站开处方再来结算')
2579
-          //     return
2580
-          //   }
2581
-          // }
2578
+          if (this.hisPatientInfo.id_card_type == 1) {
2579
+            this.pwdFormVisible = true
2580
+            this.pwd = ""
2582 2581
 
2583
-          if (this.activeName == 'first') {
2582
+          }else{
2583
+            if (this.activeName == 'first') {
2584 2584
 
2585
-            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2585
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2586
+
2587
+            } else {
2588
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2589
+
2590
+            }
2586 2591
 
2587
-          } else {
2588
-            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2589 2592
 
2590 2593
           }
2591 2594
 
2595
+
2592 2596
         } else if (index == 5) {
2593 2597
           if (that.hisPatientInfo.balance_accounts_type == 2) {
2594 2598
             let params = {
@@ -2939,7 +2943,8 @@
2939 2943
             'number': this.order.number,
2940 2944
             'patient_id': this.patientInfo.id,
2941 2945
             'record_time': this.record_date,
2942
-            'org_id': this.$store.getters.xt_user.org_id
2946
+            'org_id': this.$store.getters.xt_user.org_id,
2947
+            'his_patient_id':this.hisPatientInfo.id
2943 2948
           }
2944 2949
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
2945 2950
             params: params
@@ -2947,12 +2952,11 @@
2947 2952
             .then(function(response) {
2948 2953
               if (response.data.state == 0) {
2949 2954
                 that.$message.error(response.data.msg)
2950
-                that.loadingtwo = false
2951 2955
                 return false
2952 2956
               } else {
2957
+                that.changeRadioAndPatient(1)
2953 2958
                 // that.$message({ message: '退号成功', type: 'success' })
2954 2959
                 that.$message({ message: '退明细成功', type: 'success', duration: 5000 })
2955
-                that.loadingtwo = false
2956 2960
               }
2957 2961
             })
2958 2962
             .catch(function(error) {
@@ -3430,7 +3434,7 @@
3430 3434
                   this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id, this.patientTableData[i].order.id)
3431 3435
                 }
3432 3436
               }
3433
-            }else{
3437
+            } else {
3434 3438
 
3435 3439
               for (let i = 0; i < this.patientTableData.length; i++) {
3436 3440
                 // console.log(this.patientTableData[i])
@@ -3443,8 +3447,6 @@
3443 3447
 
3444 3448
               }
3445 3449
 
3446
-
3447
-
3448 3450
             }
3449 3451
           }
3450 3452
         })
@@ -3565,7 +3567,7 @@
3565 3567
             for (let i = 0; i < this.all_table_data.length; i++) {
3566 3568
               let isHasUnCharge = false
3567 3569
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3568
-                if (this.all_table_data[i].order_status != 2 ||  this.all_table_data[i].order_status != 3) {
3570
+                if (this.all_table_data[i].order_status != 2 || this.all_table_data[i].order_status != 3) {
3569 3571
                   isHasUnCharge = true
3570 3572
                 } else {
3571 3573
                   if (this.all_table_data[i].his_patient_id > 0) {
@@ -3576,7 +3578,7 @@
3576 3578
 
3577 3579
                 }
3578 3580
               }
3579
-              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
3581
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
3580 3582
                 isHasUnCharge = true
3581 3583
 
3582 3584
               }
@@ -3612,7 +3614,7 @@
3612 3614
                 for (let i = 0; i < this.all_table_data.length; i++) {
3613 3615
                   let isHasUnCharge = false
3614 3616
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3615
-                    if (this.all_table_data[i].order_status != 2 ||  this.all_table_data[i].order_status != 3) {
3617
+                    if (this.all_table_data[i].order_status != 2 || this.all_table_data[i].order_status != 3) {
3616 3618
                       isHasUnCharge = true
3617 3619
                     } else {
3618 3620
                       if (this.all_table_data[i].his_patient_id > 0) {
@@ -3624,7 +3626,7 @@
3624 3626
                     }
3625 3627
 
3626 3628
                   }
3627
-                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
3629
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
3628 3630
                     isHasUnCharge = true
3629 3631
 
3630 3632
                   }
@@ -3724,7 +3726,7 @@
3724 3726
                       }
3725 3727
                       this.all_table_data.push(obj)
3726 3728
 
3727
-                      if(obj.name == "许德范"){
3729
+                      if (obj.name == '许德范') {
3728 3730
                         console.log(obj)
3729 3731
 
3730 3732
                       }
@@ -3853,7 +3855,7 @@
3853 3855
                     }
3854 3856
 
3855 3857
                   }
3856
-                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 &&  this.all_table_data[i].order_status != 3) {
3858
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2 && this.all_table_data[i].order_status != 3) {
3857 3859
                     isHasUnCharge = true
3858 3860
 
3859 3861
                   }
@@ -4515,7 +4517,7 @@
4515 4517
 
4516 4518
           }
4517 4519
         })
4518
-      },changeTimeTwo(){
4520
+      }, changeTimeTwo() {
4519 4521
         this.getPatientList()
4520 4522
 
4521 4523
       },
@@ -4697,7 +4699,7 @@
4697 4699
                   record_time: this.record_date,
4698 4700
                   admin_user_id: this.$store.getters.xt_user.user.id,
4699 4701
                   patient_id: this.patientInfo.id,
4700
-                  his_patient_id:this.hisPatientInfo.id,
4702
+                  his_patient_id: this.hisPatientInfo.id
4701 4703
 
4702 4704
                 }
4703 4705
               })

+ 11 - 10
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Ver arquivo

@@ -253,7 +253,7 @@
253 253
                 single_dose: prescription.doctor_advice[b].single_dose,
254 254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
255 255
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
256
-                retail_price: prescription.doctor_advice[b].price.toString(),
256
+                // retail_price: prescription.doctor_advice[b].price.toString(),
257 257
                 remark: prescription.doctor_advice[b].remark,
258 258
                 day:prescription.doctor_advice[b].day,
259 259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
@@ -262,8 +262,15 @@
262 262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263 263
                 id:prescription.doctor_advice[b].drug_id,
264 264
                 drug:prescription.doctor_advice[b].drug,
265
-
266 265
               };
266
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
267
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
268
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
269
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.max_price
270
+              } else {
271
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
272
+              }
273
+
267 274
               tempAdvice.push(obj)
268 275
 
269 276
             }
@@ -281,27 +288,21 @@
281 288
                 execution_frequency: prescription.project[b].execution_frequency,
282 289
                 number_days: prescription.project[b].day,
283 290
                 total:prescription.project[b].count,
284
-                price:prescription.project[b].price,
285 291
                 remark:prescription.project[b].remark,
286 292
                 unit: prescription.project[b].unit,
287 293
                 type: prescription.project[b].type
288
-
289 294
                 // medical_code:prescription.project[b].project.medical_code,
290 295
               };
291
-              console.log(prescription.project[b].type)
292 296
               if(prescription.project[b].type == 2){
293
-                console.log("pre")
294
-
295 297
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
296 298
                 obj['medical_code'] =  prescription.project[b].project.medical_code
297 299
                 obj['project_name'] =  prescription.project[b].project.project_name
298
-
300
+                obj['price'] = prescription.project[b].project.price
299 301
               }else if(prescription.project[b].type == 3){
300
-                console.log("pre2")
301
-
302 302
                 obj['statistical_classification'] = ""
303 303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
304 304
                 obj['project_name'] =  prescription.project[b].good_info.good_name
305
+                obj['price'] = prescription.project[b].good_info.packing_price
305 306
               }
306 307
 
307 308
               tempProject.push(obj)

+ 25 - 33
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

@@ -2524,40 +2524,32 @@
2524 2524
       },
2525 2525
 
2526 2526
       comfirm() {
2527
+        if(this.curStatus == 1  && this.rightTab == 2){
2528
+          for(let i = 0; i < this.curDrugs.length; i++){
2529
+            if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
2527 2530
 
2528
-        // if(this.curStatus == 1  && this.rightTab == 2){
2529
-        //   for(let i = 0; i < this.curDrugs.length; i++){
2530
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
2531
-        //
2532
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
2533
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2534
-        //         return
2535
-        //       }
2536
-        //
2537
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
2538
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2539
-        //         return
2540
-        //       }
2541
-        //
2542
-        //
2543
-        //     }else{
2544
-        //
2545
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
2546
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2547
-        //         return
2548
-        //       }
2549
-        //
2550
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
2551
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2552
-        //         return
2553
-        //       }
2554
-        //
2555
-        //
2556
-        //
2557
-        //     }
2558
-        //
2559
-        //   }
2560
-        // }
2531
+              if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
2532
+                this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2533
+                return
2534
+              }
2535
+
2536
+              if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
2537
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2538
+                return
2539
+              }
2540
+
2541
+            }else{
2542
+              if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
2543
+                this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2544
+                return
2545
+              }
2546
+              if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
2547
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2548
+                return
2549
+              }
2550
+            }
2551
+          }
2552
+        }
2561 2553
 
2562 2554
         // if (this.curPrescriptions.order_status == 2) {
2563 2555
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')

+ 12 - 3
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Ver arquivo

@@ -310,7 +310,7 @@
310 310
                 single_dose: prescription.doctor_advice[b].single_dose,
311 311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
312 312
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
313
-                retail_price: prescription.doctor_advice[b].price.toString(),
313
+                // retail_price: prescription.doctor_advice[b].price.toString(),
314 314
                 remark: prescription.doctor_advice[b].remark,
315 315
                 day:prescription.doctor_advice[b].day,
316 316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
@@ -320,6 +320,14 @@
320 320
                 id:prescription.doctor_advice[b].drug_id,
321 321
                 drug:prescription.doctor_advice[b].drug,
322 322
               };
323
+
324
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
325
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
326
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
327
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.max_price
328
+              } else {
329
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
330
+              }
323 331
               tempAdvice.push(obj)
324 332
 
325 333
             }
@@ -336,7 +344,7 @@
336 344
                 execution_frequency: prescription.project[b].execution_frequency,
337 345
                 number_days: prescription.project[b].day,
338 346
                 total:prescription.project[b].count.toString(),
339
-                price:prescription.project[b].price,
347
+                // price:prescription.project[b].price,
340 348
                 remark:prescription.project[b].remark,
341 349
                 unit: prescription.project[b].unit,
342 350
                 type: prescription.project[b].type
@@ -348,11 +356,12 @@
348 356
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
349 357
                 obj['medical_code'] =  prescription.project[b].project.medical_code
350 358
                 obj['project_name'] =  prescription.project[b].project.project_name
351
-
359
+                obj['price'] = prescription.project[b].project.price
352 360
               }else if(prescription.project[b].type == 3){
353 361
                 obj['statistical_classification'] = ""
354 362
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
355 363
                 obj['project_name'] =  prescription.project[b].good_info.good_name
364
+                obj['price'] = prescription.project[b].good_info.packing_price
356 365
               }
357 366
 
358 367
               tempProject.push(obj)

+ 93 - 37
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver arquivo

@@ -256,13 +256,13 @@
256 256
                       type="primary"
257 257
                       >打印</el-button
258 258
                     >
259
-                  </template>  
259
+                  </template>
260 260
                   <div id='printMain'>
261 261
                     <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
262 262
                     <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
263 263
                     <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
264 264
                   </div>
265
-                
265
+
266 266
             </el-dialog>
267 267
             <span slot="footer" class="dialog-footer">
268 268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
@@ -1449,7 +1449,7 @@
1449 1449
                       single_dose: prescription.advices[b].single_dose,
1450 1450
                       delivery_way: prescription.advices[b].delivery_way,
1451 1451
                       execution_frequency: prescription.advices[b].execution_frequency,
1452
-                      retail_price: prescription.advices[b].price.toString(),
1452
+                      // retail_price: prescription.advices[b].price.toString(),
1453 1453
                       remark: prescription.advices[b].remark,
1454 1454
                       day: prescription.advices[b].day,
1455 1455
                       prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -1459,6 +1459,13 @@
1459 1459
                       id: prescription.advices[b].drug_id,
1460 1460
                       drug:prescription.advices[b].drug
1461 1461
                     };
1462
+                    if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1463
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1464
+                    } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1465
+                      obj['retail_price'] =  prescription.advices[b].drug.max_price
1466
+                    } else {
1467
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1468
+                    }
1462 1469
                     tempAdvice.push(obj)
1463 1470
                   }
1464 1471
 
@@ -1474,7 +1481,6 @@
1474 1481
                       execution_frequency: prescription.project[b].execution_frequency,
1475 1482
                       number_days: prescription.project[b].day,
1476 1483
                       total: prescription.project[b].count.toString(),
1477
-                      price: prescription.project[b].price,
1478 1484
                       remark: prescription.project[b].remark,
1479 1485
                       medical_code: prescription.project[b].project.medical_code,
1480 1486
                       unit: prescription.project[b].project.unit,
@@ -1485,11 +1491,16 @@
1485 1491
                       obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1486 1492
                       obj['medical_code'] = prescription.project[b].project.medical_code
1487 1493
                       obj['project_name'] = prescription.project[b].project.project_name
1494
+                      obj['price'] = prescription.project[b].project.price
1495
+
1496
+
1488 1497
 
1489 1498
                     } else if (prescription.project[b].type == 3) {
1490 1499
                       obj['statistical_classification'] = ""
1491 1500
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1492 1501
                       obj['project_name'] = prescription.project[b].good_info.good_name
1502
+                      obj['price'] = prescription.project[b].good_info.packing_price
1503
+
1493 1504
                     }
1494 1505
                     tempProject.push(obj)
1495 1506
                   }
@@ -1765,7 +1776,7 @@
1765 1776
                             single_dose: prescription.advices[b].single_dose,
1766 1777
                             delivery_way: prescription.advices[b].delivery_way,
1767 1778
                             execution_frequency: prescription.advices[b].execution_frequency,
1768
-                            retail_price: prescription.advices[b].price.toString(),
1779
+                            // retail_price: prescription.advices[b].price.toString(),
1769 1780
                             remark: prescription.advices[b].remark,
1770 1781
                             day: prescription.advices[b].day,
1771 1782
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -1774,8 +1785,14 @@
1774 1785
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1775 1786
                             id: prescription.advices[b].drug_id,
1776 1787
                             drug:prescription.advices[b].drug
1777
-
1778 1788
                           };
1789
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1790
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1791
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1792
+                            obj['retail_price'] =  prescription.advices[b].drug.max_price
1793
+                          } else {
1794
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1795
+                          }
1779 1796
                           tempAdvice.push(obj)
1780 1797
                         }
1781 1798
 
@@ -1791,7 +1808,6 @@
1791 1808
                             execution_frequency: prescription.project[b].execution_frequency,
1792 1809
                             number_days: prescription.project[b].day,
1793 1810
                             total: prescription.project[b].count.toString(),
1794
-                            price: prescription.project[b].price,
1795 1811
                             remark: prescription.project[b].remark,
1796 1812
                             medical_code: prescription.project[b].project.medical_code,
1797 1813
                             unit: prescription.project[b].project.unit,
@@ -1802,11 +1818,16 @@
1802 1818
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1803 1819
                             obj['medical_code'] = prescription.project[b].project.medical_code
1804 1820
                             obj['project_name'] = prescription.project[b].project.project_name
1821
+                            obj['price'] = prescription.project[b].project.price
1822
+
1823
+
1805 1824
 
1806 1825
                           } else if (prescription.project[b].type == 3) {
1807 1826
                             obj['statistical_classification'] = ""
1808 1827
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1809 1828
                             obj['project_name'] = prescription.project[b].good_info.good_name
1829
+                            obj['price'] = prescription.project[b].good_info.packing_price
1830
+
1810 1831
                           }
1811 1832
                           tempProject.push(obj)
1812 1833
                         }
@@ -1815,9 +1836,6 @@
1815 1836
                         var preTime = nowTime
1816 1837
 
1817 1838
 
1818
-
1819
-
1820
-
1821 1839
                         let index = i + 1;
1822 1840
                         let obj = {
1823 1841
                           id: 0,
@@ -1836,10 +1854,8 @@
1836 1854
 
1837 1855
                         }else{
1838 1856
 
1839
-                          obj.med_type =  parseInt(prescription.med_type)
1857
+                          obj.med_type = parseInt(prescription.med_type)
1840 1858
                         }
1841
-
1842
-
1843 1859
                         if(obj.med_type== 0 || obj.med_type == "") {
1844 1860
                           if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
1845 1861
                             obj.med_type = 13
@@ -2193,7 +2209,7 @@
2193 2209
                             single_dose: prescription.advices[b].single_dose,
2194 2210
                             delivery_way: prescription.advices[b].delivery_way,
2195 2211
                             execution_frequency: prescription.advices[b].execution_frequency,
2196
-                            retail_price: prescription.advices[b].price.toString(),
2212
+                            // retail_price: prescription.advices[b].price.toString(),
2197 2213
                             remark: prescription.advices[b].remark,
2198 2214
                             day: prescription.advices[b].day,
2199 2215
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -2202,8 +2218,14 @@
2202 2218
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2203 2219
                             id: prescription.advices[b].drug_id,
2204 2220
                             drug:prescription.advices[b].drug
2205
-
2206 2221
                           };
2222
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2223
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2224
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2225
+                            obj['retail_price'] =  prescription.advices[b].drug.max_price
2226
+                          } else {
2227
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2228
+                          }
2207 2229
                           tempAdvice.push(obj)
2208 2230
                         }
2209 2231
 
@@ -2219,7 +2241,6 @@
2219 2241
                             execution_frequency: prescription.project[b].execution_frequency,
2220 2242
                             number_days: prescription.project[b].day,
2221 2243
                             total: prescription.project[b].count.toString(),
2222
-                            price: prescription.project[b].price,
2223 2244
                             remark: prescription.project[b].remark,
2224 2245
                             medical_code: prescription.project[b].project.medical_code,
2225 2246
                             unit: prescription.project[b].project.unit,
@@ -2230,11 +2251,16 @@
2230 2251
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2231 2252
                             obj['medical_code'] = prescription.project[b].project.medical_code
2232 2253
                             obj['project_name'] = prescription.project[b].project.project_name
2254
+                            obj['price'] = prescription.project[b].project.price
2255
+
2256
+
2233 2257
 
2234 2258
                           } else if (prescription.project[b].type == 3) {
2235 2259
                             obj['statistical_classification'] = ""
2236 2260
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2237 2261
                             obj['project_name'] = prescription.project[b].good_info.good_name
2262
+                            obj['price'] = prescription.project[b].good_info.packing_price
2263
+
2238 2264
                           }
2239 2265
                           tempProject.push(obj)
2240 2266
                         }
@@ -2242,6 +2268,7 @@
2242 2268
 
2243 2269
                         var preTime = nowTime
2244 2270
 
2271
+
2245 2272
                         let index = i + 1;
2246 2273
                         let obj = {
2247 2274
                           id: 0,
@@ -2260,10 +2287,8 @@
2260 2287
 
2261 2288
                         }else{
2262 2289
 
2263
-                          obj.med_type =  parseInt(prescription.med_type)
2290
+                          obj.med_type = parseInt(prescription.med_type)
2264 2291
                         }
2265
-
2266
-
2267 2292
                         if(obj.med_type== 0 || obj.med_type == "") {
2268 2293
                           if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
2269 2294
                             obj.med_type = 13
@@ -2615,7 +2640,7 @@
2615 2640
                             single_dose: prescription.advices[b].single_dose,
2616 2641
                             delivery_way: prescription.advices[b].delivery_way,
2617 2642
                             execution_frequency: prescription.advices[b].execution_frequency,
2618
-                            retail_price: prescription.advices[b].price.toString(),
2643
+                            // retail_price: prescription.advices[b].price.toString(),
2619 2644
                             remark: prescription.advices[b].remark,
2620 2645
                             day: prescription.advices[b].day,
2621 2646
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -2624,8 +2649,14 @@
2624 2649
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2625 2650
                             id: prescription.advices[b].drug_id,
2626 2651
                             drug:prescription.advices[b].drug
2627
-
2628 2652
                           };
2653
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2654
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2655
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2656
+                            obj['retail_price'] =  prescription.advices[b].drug.max_price
2657
+                          } else {
2658
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2659
+                          }
2629 2660
                           tempAdvice.push(obj)
2630 2661
                         }
2631 2662
 
@@ -2641,7 +2672,6 @@
2641 2672
                             execution_frequency: prescription.project[b].execution_frequency,
2642 2673
                             number_days: prescription.project[b].day,
2643 2674
                             total: prescription.project[b].count.toString(),
2644
-                            price: prescription.project[b].price,
2645 2675
                             remark: prescription.project[b].remark,
2646 2676
                             medical_code: prescription.project[b].project.medical_code,
2647 2677
                             unit: prescription.project[b].project.unit,
@@ -2652,11 +2682,16 @@
2652 2682
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2653 2683
                             obj['medical_code'] = prescription.project[b].project.medical_code
2654 2684
                             obj['project_name'] = prescription.project[b].project.project_name
2685
+                            obj['price'] = prescription.project[b].project.price
2686
+
2687
+
2655 2688
 
2656 2689
                           } else if (prescription.project[b].type == 3) {
2657 2690
                             obj['statistical_classification'] = ""
2658 2691
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2659 2692
                             obj['project_name'] = prescription.project[b].good_info.good_name
2693
+                            obj['price'] = prescription.project[b].good_info.packing_price
2694
+
2660 2695
                           }
2661 2696
                           tempProject.push(obj)
2662 2697
                         }
@@ -3092,7 +3127,7 @@
3092 3127
                           single_dose: prescription.advices[b].single_dose,
3093 3128
                           delivery_way: prescription.advices[b].delivery_way,
3094 3129
                           execution_frequency: prescription.advices[b].execution_frequency,
3095
-                          retail_price: prescription.advices[b].price.toString(),
3130
+                          // retail_price: prescription.advices[b].price.toString(),
3096 3131
                           remark: prescription.advices[b].remark,
3097 3132
                           day: prescription.advices[b].day,
3098 3133
                           prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -3101,8 +3136,14 @@
3101 3136
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3102 3137
                           id: prescription.advices[b].drug_id,
3103 3138
                           drug:prescription.advices[b].drug
3104
-
3105 3139
                         };
3140
+                        if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3141
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3142
+                        } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3143
+                          obj['retail_price'] =  prescription.advices[b].drug.max_price
3144
+                        } else {
3145
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3146
+                        }
3106 3147
                         tempAdvice.push(obj)
3107 3148
                       }
3108 3149
 
@@ -3118,7 +3159,6 @@
3118 3159
                           execution_frequency: prescription.project[b].execution_frequency,
3119 3160
                           number_days: prescription.project[b].day,
3120 3161
                           total: prescription.project[b].count.toString(),
3121
-                          price: prescription.project[b].price,
3122 3162
                           remark: prescription.project[b].remark,
3123 3163
                           medical_code: prescription.project[b].project.medical_code,
3124 3164
                           unit: prescription.project[b].project.unit,
@@ -3129,11 +3169,16 @@
3129 3169
                           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3130 3170
                           obj['medical_code'] = prescription.project[b].project.medical_code
3131 3171
                           obj['project_name'] = prescription.project[b].project.project_name
3172
+                          obj['price'] = prescription.project[b].project.price
3173
+
3174
+
3132 3175
 
3133 3176
                         } else if (prescription.project[b].type == 3) {
3134 3177
                           obj['statistical_classification'] = ""
3135 3178
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3136 3179
                           obj['project_name'] = prescription.project[b].good_info.good_name
3180
+                          obj['price'] = prescription.project[b].good_info.packing_price
3181
+
3137 3182
                         }
3138 3183
                         tempProject.push(obj)
3139 3184
                       }
@@ -3141,6 +3186,7 @@
3141 3186
 
3142 3187
                       var preTime = nowTime
3143 3188
 
3189
+
3144 3190
                       let index = i + 1;
3145 3191
                       let obj = {
3146 3192
                         id: 0,
@@ -3513,7 +3559,7 @@
3513 3559
                         single_dose: prescription.advices[b].single_dose,
3514 3560
                         delivery_way: prescription.advices[b].delivery_way,
3515 3561
                         execution_frequency: prescription.advices[b].execution_frequency,
3516
-                        retail_price: prescription.advices[b].price.toString(),
3562
+                        // retail_price: prescription.advices[b].price.toString(),
3517 3563
                         remark: prescription.advices[b].remark,
3518 3564
                         day: prescription.advices[b].day,
3519 3565
                         prescribing_number: prescription.advices[b].prescribing_number.toString(),
@@ -3522,8 +3568,14 @@
3522 3568
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3523 3569
                         id: prescription.advices[b].drug_id,
3524 3570
                         drug:prescription.advices[b].drug
3525
-
3526 3571
                       };
3572
+                      if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3573
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3574
+                      } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3575
+                        obj['retail_price'] =  prescription.advices[b].drug.max_price
3576
+                      } else {
3577
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3578
+                      }
3527 3579
                       tempAdvice.push(obj)
3528 3580
                     }
3529 3581
 
@@ -3539,7 +3591,6 @@
3539 3591
                         execution_frequency: prescription.project[b].execution_frequency,
3540 3592
                         number_days: prescription.project[b].day,
3541 3593
                         total: prescription.project[b].count.toString(),
3542
-                        price: prescription.project[b].price,
3543 3594
                         remark: prescription.project[b].remark,
3544 3595
                         medical_code: prescription.project[b].project.medical_code,
3545 3596
                         unit: prescription.project[b].project.unit,
@@ -3550,11 +3601,16 @@
3550 3601
                         obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3551 3602
                         obj['medical_code'] = prescription.project[b].project.medical_code
3552 3603
                         obj['project_name'] = prescription.project[b].project.project_name
3604
+                        obj['price'] = prescription.project[b].project.price
3605
+
3606
+
3553 3607
 
3554 3608
                       } else if (prescription.project[b].type == 3) {
3555 3609
                         obj['statistical_classification'] = ""
3556 3610
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3557 3611
                         obj['project_name'] = prescription.project[b].good_info.good_name
3612
+                        obj['price'] = prescription.project[b].good_info.packing_price
3613
+
3558 3614
                       }
3559 3615
                       tempProject.push(obj)
3560 3616
                     }
@@ -3581,7 +3637,7 @@
3581 3637
 
3582 3638
                     }else{
3583 3639
 
3584
-                      obj.med_type =  parseInt(prescription.med_type)
3640
+                      obj.med_type = parseInt(prescription.med_type)
3585 3641
                     }
3586 3642
                     if(obj.med_type== 0 || obj.med_type == "") {
3587 3643
                       if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
@@ -3861,7 +3917,7 @@
3861 3917
               this.tableData2 = arr2
3862 3918
               this.tableData4 = arr4
3863 3919
               this.tableData3 = [arr3[0]]
3864
-              
3920
+
3865 3921
             }else{
3866 3922
               var list = response.data.data.list
3867 3923
               let arr = []
@@ -3874,10 +3930,10 @@
3874 3930
               }
3875 3931
               console.log('arrrrrrrrrr',arr)
3876 3932
               this.selecting_schs = arr
3877
-              
3933
+
3878 3934
               this.savePrint()
3879 3935
             }
3880
-            
3936
+
3881 3937
           }
3882 3938
         })
3883 3939
       },
@@ -3938,7 +3994,7 @@
3938 3994
           };
3939 3995
           this.paramsObj = obj1;
3940 3996
         }
3941
-        
3997
+
3942 3998
         //治疗
3943 3999
         var arr2 = [];
3944 4000
         if(this.selecting_schs2.length > 0){
@@ -3968,10 +4024,10 @@
3968 4024
           };
3969 4025
           this.paramsObj3 = obj3;
3970 4026
         }
3971
-          
3972
-        
3973
-        
3974
-        
4027
+
4028
+
4029
+
4030
+
3975 4031
         this.innerVisible = true
3976 4032
 
3977 4033
         // if(this.index == 20){

+ 33 - 33
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Ver arquivo

@@ -1263,39 +1263,39 @@
1263 1263
         //   this.$refs.multipleTable.clearSelection()
1264 1264
         //   return
1265 1265
         // }
1266
-        // if(this.curStatus == 1  && this.rightTab == 2){
1267
-        //   for(let i = 0; i < this.curDrugs.length; i++){
1268
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
1269
-        //
1270
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
1271
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1272
-        //         return
1273
-        //       }
1274
-        //
1275
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
1276
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1277
-        //         return
1278
-        //       }
1279
-        //
1280
-        //
1281
-        //     }else{
1282
-        //
1283
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
1284
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1285
-        //         return
1286
-        //       }
1287
-        //
1288
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
1289
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1290
-        //         return
1291
-        //       }
1292
-        //
1293
-        //
1294
-        //
1295
-        //     }
1296
-        //
1297
-        //   }
1298
-        // }
1266
+        if(this.curStatus == 1  && this.rightTab == 2){
1267
+          for(let i = 0; i < this.curDrugs.length; i++){
1268
+            if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
1269
+
1270
+              if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
1271
+                this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1272
+                return
1273
+              }
1274
+
1275
+              if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
1276
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1277
+                return
1278
+              }
1279
+
1280
+
1281
+            }else{
1282
+
1283
+              if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
1284
+                this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1285
+                return
1286
+              }
1287
+
1288
+              if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
1289
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1290
+                return
1291
+              }
1292
+
1293
+
1294
+
1295
+            }
1296
+
1297
+          }
1298
+        }
1299 1299
 
1300 1300
         if (this.curStatus == 1 && this.rightTab == 2) {
1301 1301
           this.$message.error('改处方是药品,无法添加项目')

+ 116 - 9
src/xt_pages/user/dialysisSolution.vue Ver arquivo

@@ -533,13 +533,13 @@
533 533
             </el-form-item>
534 534
           </el-col>
535 535
 
536
-          
536
+
537 537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
538 538
              <el-form-item label="吸氧流量(L/分):">
539 539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
540 540
              </el-form-item>
541 541
           </el-col>
542
-         
542
+
543 543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
544 544
              <el-form-item label="吸氧时长(h):">
545 545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
@@ -551,10 +551,63 @@
551 551
               <el-input v-model="addPlan.target_ktv"></el-input>
552 552
             </el-form-item>
553 553
           </el-col>
554
-        </el-row>
555 554
 
556
-    
557
-    
555
+
556
+          <el-col :span="8" v-if="isShows('透析管路')">
557
+            <el-form-item label="透析管路:">
558
+              <el-select v-model="addPlan.hemodialysis_pipelines" >
559
+                <el-option
560
+                        v-for="item in hemodialysisPipelinesOptions"
561
+                        :label="item.name"
562
+                        :key="item.id"
563
+                        :value="item.name"
564
+                ></el-option>
565
+              </el-select>
566
+            </el-form-item>
567
+          </el-col>
568
+
569
+          <el-col :span="8" v-if="isShows('透析管路支数')">
570
+            <el-form-item label="透析管路支数">
571
+              <el-input v-model="addPlan.hemodialysis_pipelines_count"></el-input>
572
+            </el-form-item>
573
+          </el-col>
574
+
575
+
576
+
577
+          <el-col :span="8" v-if="isShows('穿刺针')">
578
+            <el-form-item label="穿刺针:">
579
+              <el-input v-model="addPlan.puncture_needle" @focus="showInnerDialog('10')"></el-input>
580
+            </el-form-item>
581
+          </el-col>
582
+
583
+
584
+
585
+          <el-col :span="8" v-if="isShows('穿刺针支数')">
586
+            <el-form-item label="穿刺针支数">
587
+              <el-input v-model="addPlan.puncture_needle_count"></el-input>
588
+            </el-form-item>
589
+          </el-col>
590
+
591
+          <el-col :span="8" v-if="isShows('促红素')">
592
+            <el-form-item label="促红素:">
593
+              <el-select v-model="addPlan.epo" @change="changeBodyFluid">
594
+                <el-option
595
+                        v-for="item in epo"
596
+                        :label="item.name"
597
+                        :key="item.id"
598
+                        :value="item.name"
599
+                ></el-option>
600
+              </el-select>
601
+            </el-form-item>
602
+          </el-col>
603
+
604
+          <el-col :span="8" v-if="isShows('促红素支数')">
605
+            <el-form-item label="促红素支数">
606
+              <el-input v-model="addPlan.epo_count"></el-input>
607
+            </el-form-item>
608
+          </el-col>
609
+
610
+        </el-row>
558 611
 
559 612
 
560 613
         <el-row :gutter="24">
@@ -665,6 +718,9 @@ export default {
665 718
       callback()
666 719
     }
667 720
     return {
721
+      hemodialysisPipelinesOptions:[],
722
+      punctureNeedleOptions:[],
723
+      epoOptions:[],
668 724
       zhiShow:false,
669 725
       huShow:false,
670 726
       totalShow:false,
@@ -751,6 +807,14 @@ export default {
751 807
         oxygen_flow:"",
752 808
         oxygen_time:"",
753 809
 
810
+        hemodialysis_pipelines:'',
811
+        hemodialysis_pipelines_count:'',
812
+        puncture_needle:"",
813
+        puncture_needle_count:"",
814
+        epo:"",
815
+        epo_count:"",
816
+
817
+
754 818
       },
755 819
       childPlan: {
756 820
         mode: '',
@@ -966,7 +1030,7 @@ export default {
966 1030
 
967 1031
           break
968 1032
         case '8':
969
-         
1033
+
970 1034
           this.InnerDialogProps.values = this.plasmaSeparatorList
971 1035
           this.InnerDialogProps.titles = '血浆分离器'
972 1036
           this.InnerDialogProps.type = 'plasma_separator'
@@ -975,13 +1039,23 @@ export default {
975 1039
 
976 1040
           break
977 1041
          case '9':
978
-         
1042
+
979 1043
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
980 1044
           this.InnerDialogProps.titles = '胆红素吸附柱'
981 1045
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
982 1046
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
983 1047
           this.InnerDialogProps.isShowTextArea = false
984 1048
 
1049
+          break
1050
+
1051
+        case '10':
1052
+
1053
+          this.InnerDialogProps.values = this.punctureNeedleOptions
1054
+          this.InnerDialogProps.titles = '穿刺针'
1055
+          this.InnerDialogProps.type = 'puncture_needle'
1056
+          this.InnerDialogProps.selected = this.addPlan.puncture_needle
1057
+          this.InnerDialogProps.isShowTextArea = false
1058
+
985 1059
           break
986 1060
       }
987 1061
     },
@@ -1004,6 +1078,9 @@ export default {
1004 1078
         case 'bilirubin_adsorption_column':
1005 1079
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1006 1080
           break
1081
+        case 'puncture_needle':
1082
+          this.addPlan.puncture_needle = val.value.join(',')
1083
+          break
1007 1084
       }
1008 1085
     },
1009 1086
     innerDialogCancle: function() {
@@ -1315,8 +1392,7 @@ export default {
1315 1392
           }
1316 1393
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1317 1394
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1318
-          console.log("2233333",this.addPlan)
1319
-          
1395
+
1320 1396
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1321 1397
             if (response.data.state == 0) {
1322 1398
               this.$message.error(response.data.msg)
@@ -1440,6 +1516,9 @@ export default {
1440 1516
       this.addPlan.kalium = row.kalium.toString()
1441 1517
       this.addPlan.sodium = row.sodium.toString()
1442 1518
       this.addPlan.calcium = row.calcium.toString()
1519
+
1520
+
1521
+
1443 1522
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1444 1523
       this.addPlan.glucose = row.glucose.toString()
1445 1524
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
@@ -1447,6 +1526,14 @@ export default {
1447 1526
       this.addPlan.conductivity = row.conductivity.toString()
1448 1527
       this.addPlan.remark = row.remark
1449 1528
 
1529
+      this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1530
+      this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1531
+      this.addPlan.puncture_needle  = row.puncture_needle
1532
+      this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1533
+      this.addPlan.epo  = row.epo
1534
+      this.addPlan.epo_count  = row.epo_count.toString()
1535
+
1536
+
1450 1537
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1451 1538
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1452 1539
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
@@ -1553,6 +1640,15 @@ export default {
1553 1640
         ultrafiltration: '',
1554 1641
         blood_access: '',
1555 1642
 
1643
+
1644
+        hemodialysis_pipelines:'',
1645
+        hemodialysis_pipelines_count:'',
1646
+        puncture_needle:"",
1647
+        puncture_needle_count:"",
1648
+        epo:"",
1649
+        epo_count:"",
1650
+
1651
+
1556 1652
         dialysis_duration: '3.30',
1557 1653
         dialysis_duration_hour: '3',
1558 1654
         dialysis_duration_minute: '30',
@@ -1803,6 +1899,14 @@ export default {
1803 1899
               oxygen_time:"",
1804 1900
               oxygen_uptake:"",
1805 1901
               oxygen_flow:"",
1902
+
1903
+              hemodialysis_pipelines:'',
1904
+              hemodialysis_pipelines_count:'',
1905
+              puncture_needle:"",
1906
+              puncture_needle_count:"",
1907
+              epo:"",
1908
+              epo_count:"",
1909
+
1806 1910
             }
1807 1911
 
1808 1912
             for (const key in tempAddPlan) {
@@ -1884,6 +1988,9 @@ export default {
1884 1988
       })
1885 1989
       this.$router.back(-1)
1886 1990
     }
1991
+    this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
1992
+    this.punctureNeedleOptions =  getDataConfig('hemodialysis', 'puncture_needle')
1993
+    this.epoOptions =getDataConfig('hemodialysis', 'epo')
1887 1994
 
1888 1995
     this.GetDeviceData()
1889 1996
     this.fetchAllAdminUsers()