浏览代码

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

csx 3 年前
父节点
当前提交
031031148b

文件差异内容过多而无法显示
+ 1111 - 1018
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 23 - 11
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

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

+ 128 - 126
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

13
                  <p>已收费:<span  style="color: red">{{cal_two}}</span>人</p>
13
                  <p>已收费:<span  style="color: red">{{cal_two}}</span>人</p>
14
                  <p>已退费:<span  style="color: red">{{cal_three}}</span>人</p>
14
                  <p>已退费:<span  style="color: red">{{cal_three}}</span>人</p>
15
                </div> -->
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
                 <div class="mainCell" style="margin: 10px">
31
                 <div class="mainCell" style="margin: 10px">
139
                                    type="primary">挂号
138
                                    type="primary">挂号
140
                         </el-button>
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
                         <el-button size="small" @click="open(5)" type="primary"
142
                         <el-button size="small" @click="open(5)" type="primary"
156
                                    v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
143
                                    v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
169
                         >退号
156
                         >退号
170
                         </el-button>
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
                     </div>
159
                     </div>
179
-                    <!--<el-button size="small" @click="query" type="primary"-->
180
-                    <!--&gt;查询-->
181
-                    <!--</el-button>-->
182
 
160
 
183
 
161
 
184
                 </div>
162
                 </div>
263
                                                         </div>
241
                                                         </div>
264
                                                         <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
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
                                                             <el-button v-loading="loadingtwo"
254
                                                             <el-button v-loading="loadingtwo"
281
                                                             </el-button>
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
                                                         </div>
268
                                                         </div>
291
                                                     </div>
269
                                                     </div>
504
                                                         </div>
482
                                                         </div>
505
                                                         <div v-if="org_id != 9504 && org_id != 10028 &&org_id != 10138">
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
                                                             <el-button v-loading="loadingtwo"
494
                                                             <el-button v-loading="loadingtwo"
522
 
500
 
523
 
501
 
524
                                                             <el-button
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
                                                             </el-button>
506
                                                             </el-button>
529
 
507
 
715
             <new-statement-print-two :params-obj="newOrderObj"></new-statement-print-two>
693
             <new-statement-print-two :params-obj="newOrderObj"></new-statement-print-two>
716
             <!--<newStatementPrint ref="print" :paramsObj='newOrderObj'></newStatementPrint>-->
694
             <!--<newStatementPrint ref="print" :paramsObj='newOrderObj'></newStatementPrint>-->
717
         </el-dialog>
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
     </div>
710
     </div>
719
 
711
 
720
 </template>
712
 </template>
776
       return {
768
       return {
777
         temp_med_type: '',
769
         temp_med_type: '',
778
         dialogVisible: false,
770
         dialogVisible: false,
771
+        pwdFormVisible: false,
772
+        pwd:"",
779
         form: {
773
         form: {
780
           p_type: '',
774
           p_type: '',
781
           sick_type: '',
775
           sick_type: '',
917
 
911
 
918
         temp_prescriptions: null,
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
       this.getPatientList()
938
       this.getPatientList()
941
     },
939
     },
942
     methods: {
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
       openDialog(item) {
981
       openDialog(item) {
944
         this.dialogVisible = true
982
         this.dialogVisible = true
945
         this.temp_prescriptions = item
983
         this.temp_prescriptions = item
963
       changevalue(val) {
1001
       changevalue(val) {
964
         this.$forceUpdate()
1002
         this.$forceUpdate()
965
 
1003
 
966
-      },  GetDiagnosisName(ids){
967
-
968
-
969
-
1004
+      }, GetDiagnosisName(ids) {
970
 
1005
 
971
       },
1006
       },
972
       query() {
1007
       query() {
1919
             for (let i = 0; i < this.all_table_data.length; i++) {
1954
             for (let i = 0; i < this.all_table_data.length; i++) {
1920
               let isHasUnCharge = false
1955
               let isHasUnCharge = false
1921
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
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
                   isHasUnCharge = true
1958
                   isHasUnCharge = true
1924
                 } else {
1959
                 } else {
1925
                   if (this.all_table_data[i].his_patient_id > 0) {
1960
                   if (this.all_table_data[i].his_patient_id > 0) {
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
                 isHasUnCharge = true
1969
                 isHasUnCharge = true
1935
 
1970
 
1936
               }
1971
               }
1966
                 for (let i = 0; i < this.all_table_data.length; i++) {
2001
                 for (let i = 0; i < this.all_table_data.length; i++) {
1967
                   let isHasUnCharge = false
2002
                   let isHasUnCharge = false
1968
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
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
                       isHasUnCharge = true
2005
                       isHasUnCharge = true
1971
                     } else {
2006
                     } else {
1972
                       if (this.all_table_data[i].his_patient_id > 0) {
2007
                       if (this.all_table_data[i].his_patient_id > 0) {
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
                     isHasUnCharge = true
2017
                     isHasUnCharge = true
1983
 
2018
 
1984
                   }
2019
                   }
2139
             for (let i = 0; i < this.all_table_data.length; i++) {
2174
             for (let i = 0; i < this.all_table_data.length; i++) {
2140
               let isHasUnCharge = false
2175
               let isHasUnCharge = false
2141
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
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
                   isHasUnCharge = true
2178
                   isHasUnCharge = true
2144
                 } else {
2179
                 } else {
2145
                   if (this.all_table_data[i].his_patient_id > 0) {
2180
                   if (this.all_table_data[i].his_patient_id > 0) {
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
                 isHasUnCharge = true
2189
                 isHasUnCharge = true
2155
 
2190
 
2156
               }
2191
               }
2507
         }
2542
         }
2508
       },
2543
       },
2509
       open(index, med_type, order, prescriptions) {
2544
       open(index, med_type, order, prescriptions) {
2545
+        this.other_prescriptions = prescriptions
2510
 
2546
 
2511
         if (index == 1) {
2547
         if (index == 1) {
2512
 
2548
 
2526
           this.treatVisible = true
2562
           this.treatVisible = true
2527
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
2563
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
2528
         } else if (index == 4) {
2564
         } else if (index == 4) {
2565
+
2529
           this.currentOrder = order
2566
           this.currentOrder = order
2530
           this.current_med_type = med_type
2567
           this.current_med_type = med_type
2531
           if (this.patientInfo.id == 0) {
2568
           if (this.patientInfo.id == 0) {
2538
             return
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
         } else if (index == 5) {
2596
         } else if (index == 5) {
2593
           if (that.hisPatientInfo.balance_accounts_type == 2) {
2597
           if (that.hisPatientInfo.balance_accounts_type == 2) {
2594
             let params = {
2598
             let params = {
2939
             'number': this.order.number,
2943
             'number': this.order.number,
2940
             'patient_id': this.patientInfo.id,
2944
             'patient_id': this.patientInfo.id,
2941
             'record_time': this.record_date,
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
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
2949
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
2945
             params: params
2950
             params: params
2947
             .then(function(response) {
2952
             .then(function(response) {
2948
               if (response.data.state == 0) {
2953
               if (response.data.state == 0) {
2949
                 that.$message.error(response.data.msg)
2954
                 that.$message.error(response.data.msg)
2950
-                that.loadingtwo = false
2951
                 return false
2955
                 return false
2952
               } else {
2956
               } else {
2957
+                that.changeRadioAndPatient(1)
2953
                 // that.$message({ message: '退号成功', type: 'success' })
2958
                 // that.$message({ message: '退号成功', type: 'success' })
2954
                 that.$message({ message: '退明细成功', type: 'success', duration: 5000 })
2959
                 that.$message({ message: '退明细成功', type: 'success', duration: 5000 })
2955
-                that.loadingtwo = false
2956
               }
2960
               }
2957
             })
2961
             })
2958
             .catch(function(error) {
2962
             .catch(function(error) {
3430
                   this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id, this.patientTableData[i].order.id)
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
               for (let i = 0; i < this.patientTableData.length; i++) {
3439
               for (let i = 0; i < this.patientTableData.length; i++) {
3436
                 // console.log(this.patientTableData[i])
3440
                 // console.log(this.patientTableData[i])
3443
 
3447
 
3444
               }
3448
               }
3445
 
3449
 
3446
-
3447
-
3448
             }
3450
             }
3449
           }
3451
           }
3450
         })
3452
         })
3565
             for (let i = 0; i < this.all_table_data.length; i++) {
3567
             for (let i = 0; i < this.all_table_data.length; i++) {
3566
               let isHasUnCharge = false
3568
               let isHasUnCharge = false
3567
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
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
                   isHasUnCharge = true
3571
                   isHasUnCharge = true
3570
                 } else {
3572
                 } else {
3571
                   if (this.all_table_data[i].his_patient_id > 0) {
3573
                   if (this.all_table_data[i].his_patient_id > 0) {
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
                 isHasUnCharge = true
3582
                 isHasUnCharge = true
3581
 
3583
 
3582
               }
3584
               }
3612
                 for (let i = 0; i < this.all_table_data.length; i++) {
3614
                 for (let i = 0; i < this.all_table_data.length; i++) {
3613
                   let isHasUnCharge = false
3615
                   let isHasUnCharge = false
3614
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
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
                       isHasUnCharge = true
3618
                       isHasUnCharge = true
3617
                     } else {
3619
                     } else {
3618
                       if (this.all_table_data[i].his_patient_id > 0) {
3620
                       if (this.all_table_data[i].his_patient_id > 0) {
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
                     isHasUnCharge = true
3630
                     isHasUnCharge = true
3629
 
3631
 
3630
                   }
3632
                   }
3724
                       }
3726
                       }
3725
                       this.all_table_data.push(obj)
3727
                       this.all_table_data.push(obj)
3726
 
3728
 
3727
-                      if(obj.name == "许德范"){
3729
+                      if (obj.name == '许德范') {
3728
                         console.log(obj)
3730
                         console.log(obj)
3729
 
3731
 
3730
                       }
3732
                       }
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
                     isHasUnCharge = true
3859
                     isHasUnCharge = true
3858
 
3860
 
3859
                   }
3861
                   }
4515
 
4517
 
4516
           }
4518
           }
4517
         })
4519
         })
4518
-      },changeTimeTwo(){
4520
+      }, changeTimeTwo() {
4519
         this.getPatientList()
4521
         this.getPatientList()
4520
 
4522
 
4521
       },
4523
       },
4697
                   record_time: this.record_date,
4699
                   record_time: this.record_date,
4698
                   admin_user_id: this.$store.getters.xt_user.user.id,
4700
                   admin_user_id: this.$store.getters.xt_user.user.id,
4699
                   patient_id: this.patientInfo.id,
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 查看文件

253
                 single_dose: prescription.doctor_advice[b].single_dose,
253
                 single_dose: prescription.doctor_advice[b].single_dose,
254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
255
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
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
                 remark: prescription.doctor_advice[b].remark,
257
                 remark: prescription.doctor_advice[b].remark,
258
                 day:prescription.doctor_advice[b].day,
258
                 day:prescription.doctor_advice[b].day,
259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263
                 id:prescription.doctor_advice[b].drug_id,
263
                 id:prescription.doctor_advice[b].drug_id,
264
                 drug:prescription.doctor_advice[b].drug,
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
               tempAdvice.push(obj)
274
               tempAdvice.push(obj)
268
 
275
 
269
             }
276
             }
281
                 execution_frequency: prescription.project[b].execution_frequency,
288
                 execution_frequency: prescription.project[b].execution_frequency,
282
                 number_days: prescription.project[b].day,
289
                 number_days: prescription.project[b].day,
283
                 total:prescription.project[b].count,
290
                 total:prescription.project[b].count,
284
-                price:prescription.project[b].price,
285
                 remark:prescription.project[b].remark,
291
                 remark:prescription.project[b].remark,
286
                 unit: prescription.project[b].unit,
292
                 unit: prescription.project[b].unit,
287
                 type: prescription.project[b].type
293
                 type: prescription.project[b].type
288
-
289
                 // medical_code:prescription.project[b].project.medical_code,
294
                 // medical_code:prescription.project[b].project.medical_code,
290
               };
295
               };
291
-              console.log(prescription.project[b].type)
292
               if(prescription.project[b].type == 2){
296
               if(prescription.project[b].type == 2){
293
-                console.log("pre")
294
-
295
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
297
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
296
                 obj['medical_code'] =  prescription.project[b].project.medical_code
298
                 obj['medical_code'] =  prescription.project[b].project.medical_code
297
                 obj['project_name'] =  prescription.project[b].project.project_name
299
                 obj['project_name'] =  prescription.project[b].project.project_name
298
-
300
+                obj['price'] = prescription.project[b].project.price
299
               }else if(prescription.project[b].type == 3){
301
               }else if(prescription.project[b].type == 3){
300
-                console.log("pre2")
301
-
302
                 obj['statistical_classification'] = ""
302
                 obj['statistical_classification'] = ""
303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
304
                 obj['project_name'] =  prescription.project[b].good_info.good_name
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
               tempProject.push(obj)
308
               tempProject.push(obj)

+ 25 - 33
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

2524
       },
2524
       },
2525
 
2525
 
2526
       comfirm() {
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
         // if (this.curPrescriptions.order_status == 2) {
2554
         // if (this.curPrescriptions.order_status == 2) {
2563
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
2555
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')

+ 12 - 3
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue 查看文件

310
                 single_dose: prescription.doctor_advice[b].single_dose,
310
                 single_dose: prescription.doctor_advice[b].single_dose,
311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
312
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
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
                 remark: prescription.doctor_advice[b].remark,
314
                 remark: prescription.doctor_advice[b].remark,
315
                 day:prescription.doctor_advice[b].day,
315
                 day:prescription.doctor_advice[b].day,
316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
320
                 id:prescription.doctor_advice[b].drug_id,
320
                 id:prescription.doctor_advice[b].drug_id,
321
                 drug:prescription.doctor_advice[b].drug,
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
               tempAdvice.push(obj)
331
               tempAdvice.push(obj)
324
 
332
 
325
             }
333
             }
336
                 execution_frequency: prescription.project[b].execution_frequency,
344
                 execution_frequency: prescription.project[b].execution_frequency,
337
                 number_days: prescription.project[b].day,
345
                 number_days: prescription.project[b].day,
338
                 total:prescription.project[b].count.toString(),
346
                 total:prescription.project[b].count.toString(),
339
-                price:prescription.project[b].price,
347
+                // price:prescription.project[b].price,
340
                 remark:prescription.project[b].remark,
348
                 remark:prescription.project[b].remark,
341
                 unit: prescription.project[b].unit,
349
                 unit: prescription.project[b].unit,
342
                 type: prescription.project[b].type
350
                 type: prescription.project[b].type
348
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
356
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
349
                 obj['medical_code'] =  prescription.project[b].project.medical_code
357
                 obj['medical_code'] =  prescription.project[b].project.medical_code
350
                 obj['project_name'] =  prescription.project[b].project.project_name
358
                 obj['project_name'] =  prescription.project[b].project.project_name
351
-
359
+                obj['price'] = prescription.project[b].project.price
352
               }else if(prescription.project[b].type == 3){
360
               }else if(prescription.project[b].type == 3){
353
                 obj['statistical_classification'] = ""
361
                 obj['statistical_classification'] = ""
354
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
362
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
355
                 obj['project_name'] =  prescription.project[b].good_info.good_name
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
               tempProject.push(obj)
367
               tempProject.push(obj)

+ 93 - 37
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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

+ 33 - 33
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 查看文件

1263
         //   this.$refs.multipleTable.clearSelection()
1263
         //   this.$refs.multipleTable.clearSelection()
1264
         //   return
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
         if (this.curStatus == 1 && this.rightTab == 2) {
1300
         if (this.curStatus == 1 && this.rightTab == 2) {
1301
           this.$message.error('改处方是药品,无法添加项目')
1301
           this.$message.error('改处方是药品,无法添加项目')

+ 116 - 9
src/xt_pages/user/dialysisSolution.vue 查看文件

533
             </el-form-item>
533
             </el-form-item>
534
           </el-col>
534
           </el-col>
535
 
535
 
536
-          
536
+
537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
538
              <el-form-item label="吸氧流量(L/分):">
538
              <el-form-item label="吸氧流量(L/分):">
539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
540
              </el-form-item>
540
              </el-form-item>
541
           </el-col>
541
           </el-col>
542
-         
542
+
543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
544
              <el-form-item label="吸氧时长(h):">
544
              <el-form-item label="吸氧时长(h):">
545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
551
               <el-input v-model="addPlan.target_ktv"></el-input>
551
               <el-input v-model="addPlan.target_ktv"></el-input>
552
             </el-form-item>
552
             </el-form-item>
553
           </el-col>
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
         <el-row :gutter="24">
613
         <el-row :gutter="24">
665
       callback()
718
       callback()
666
     }
719
     }
667
     return {
720
     return {
721
+      hemodialysisPipelinesOptions:[],
722
+      punctureNeedleOptions:[],
723
+      epoOptions:[],
668
       zhiShow:false,
724
       zhiShow:false,
669
       huShow:false,
725
       huShow:false,
670
       totalShow:false,
726
       totalShow:false,
751
         oxygen_flow:"",
807
         oxygen_flow:"",
752
         oxygen_time:"",
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
       childPlan: {
819
       childPlan: {
756
         mode: '',
820
         mode: '',
966
 
1030
 
967
           break
1031
           break
968
         case '8':
1032
         case '8':
969
-         
1033
+
970
           this.InnerDialogProps.values = this.plasmaSeparatorList
1034
           this.InnerDialogProps.values = this.plasmaSeparatorList
971
           this.InnerDialogProps.titles = '血浆分离器'
1035
           this.InnerDialogProps.titles = '血浆分离器'
972
           this.InnerDialogProps.type = 'plasma_separator'
1036
           this.InnerDialogProps.type = 'plasma_separator'
975
 
1039
 
976
           break
1040
           break
977
          case '9':
1041
          case '9':
978
-         
1042
+
979
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
1043
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
980
           this.InnerDialogProps.titles = '胆红素吸附柱'
1044
           this.InnerDialogProps.titles = '胆红素吸附柱'
981
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
1045
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
982
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
1046
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
983
           this.InnerDialogProps.isShowTextArea = false
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
           break
1059
           break
986
       }
1060
       }
987
     },
1061
     },
1004
         case 'bilirubin_adsorption_column':
1078
         case 'bilirubin_adsorption_column':
1005
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1079
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1006
           break
1080
           break
1081
+        case 'puncture_needle':
1082
+          this.addPlan.puncture_needle = val.value.join(',')
1083
+          break
1007
       }
1084
       }
1008
     },
1085
     },
1009
     innerDialogCancle: function() {
1086
     innerDialogCancle: function() {
1315
           }
1392
           }
1316
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1393
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1317
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1394
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1318
-          console.log("2233333",this.addPlan)
1319
-          
1395
+
1320
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1396
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1321
             if (response.data.state == 0) {
1397
             if (response.data.state == 0) {
1322
               this.$message.error(response.data.msg)
1398
               this.$message.error(response.data.msg)
1440
       this.addPlan.kalium = row.kalium.toString()
1516
       this.addPlan.kalium = row.kalium.toString()
1441
       this.addPlan.sodium = row.sodium.toString()
1517
       this.addPlan.sodium = row.sodium.toString()
1442
       this.addPlan.calcium = row.calcium.toString()
1518
       this.addPlan.calcium = row.calcium.toString()
1519
+
1520
+
1521
+
1443
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1522
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1444
       this.addPlan.glucose = row.glucose.toString()
1523
       this.addPlan.glucose = row.glucose.toString()
1445
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1524
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1447
       this.addPlan.conductivity = row.conductivity.toString()
1526
       this.addPlan.conductivity = row.conductivity.toString()
1448
       this.addPlan.remark = row.remark
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
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1537
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1451
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1538
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1452
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1539
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1553
         ultrafiltration: '',
1640
         ultrafiltration: '',
1554
         blood_access: '',
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
         dialysis_duration: '3.30',
1652
         dialysis_duration: '3.30',
1557
         dialysis_duration_hour: '3',
1653
         dialysis_duration_hour: '3',
1558
         dialysis_duration_minute: '30',
1654
         dialysis_duration_minute: '30',
1803
               oxygen_time:"",
1899
               oxygen_time:"",
1804
               oxygen_uptake:"",
1900
               oxygen_uptake:"",
1805
               oxygen_flow:"",
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
             for (const key in tempAddPlan) {
1912
             for (const key in tempAddPlan) {
1884
       })
1988
       })
1885
       this.$router.back(-1)
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
     this.GetDeviceData()
1995
     this.GetDeviceData()
1889
     this.fetchAllAdminUsers()
1996
     this.fetchAllAdminUsers()