瀏覽代碼

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

csx 3 年之前
父節點
當前提交
fd0a04e2b5

文件差異過大導致無法顯示
+ 773 - 764
src/xt_pages/hospitalStation/components/deskPrescription.vue


+ 21 - 120
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

@@ -540,6 +540,15 @@
540 540
           this.patientTableData = this.all_data
541 541
         } else {
542 542
           switch (this.radio) {
543
+            case 0:
544
+              let arr4 = []
545
+              for (let i = 0; i < this.all_data.length; i++) {
546
+                if (this.all_data[i].name.indexOf(this.search_input) != -1 || this.all_data[i].his_patient.number.indexOf(this.search_input) != -1) {
547
+                  arr4 = arr4.concat(this.all_data[i])
548
+                }
549
+              }
550
+              this.patientTableData = arr4
551
+              break
543 552
             case 2:
544 553
               let arr2 = []
545 554
               for (let i = 0; i < this.all_data.length; i++) {
@@ -646,7 +655,7 @@
646 655
 
647 656
         }
648 657
         let additions_ids = []
649
-
658
+        let count = 0
650 659
         for (let i = 0; i < month_prescriptions.length; i++) {
651 660
           if (month_prescriptions[i].type == 1) { //药品
652 661
             for (let a = 0; a < month_prescriptions[i].advices.length; a++) {
@@ -664,10 +673,15 @@
664 673
                 price: month_prescriptions[i].project[a].price
665 674
 
666 675
               }
676
+              if(month_prescriptions[i].project[a].project_id == 1735){
677
+
678
+                count = count + 1
679
+              }
667 680
               project_ids.push(obj)
668 681
               project_month_prescriptions.project.push(month_prescriptions[i].project[a])
669 682
             }
670 683
           }
684
+
671 685
           //附加收费
672 686
           // for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
673 687
           //   let obj = {
@@ -679,6 +693,8 @@
679 693
           //   addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
680 694
           // }
681 695
         }
696
+        console.log("打印日志了:")
697
+        console.log(count)
682 698
 
683 699
         const obj = {}
684 700
         const obj1 = {}
@@ -799,10 +815,12 @@
799 815
           addition: []
800 816
 
801 817
         }
802
-
803 818
         this.month_prescriptions.push(p1)
804 819
         this.month_prescriptions.push(p2)
805 820
 
821
+
822
+        this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
823
+
806 824
       },
807 825
 
808 826
       // setMonthPrescription(month_prescriptions){
@@ -1402,6 +1420,7 @@
1402 1420
 
1403 1421
       choosePatient(val) {
1404 1422
         if (this.titleType == '电子病历') {
1423
+
1405 1424
           if (this.$refs.child.watchSign > 2) {
1406 1425
             this.$confirm('是否保存当前病例', '保存', {
1407 1426
               confirmButtonText: '确 定',
@@ -3219,122 +3238,6 @@
3219 3238
 
3220 3239
                       this.prescriptions.push(obj)
3221 3240
 
3222
-                      // if(response.data.data.count <= 1 ){
3223
-                      //   if(response.data.data.last_prescriptions.length == 0){
3224
-                      //     let obj = {
3225
-                      //       id: 0,
3226
-                      //       name: '处方' + 1,
3227
-                      //       advices: [],
3228
-                      //       project: [],
3229
-                      //       addition: [],
3230
-                      //       order_status: 0,
3231
-                      //       pre_time: nowTime,
3232
-                      //
3233
-                      //     };
3234
-                      //     this.prescriptions.push(obj)
3235
-                      //
3236
-                      //
3237
-                      //   }
3238
-                      //   else {
3239
-                      //     for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
3240
-                      //       var prescription = response.data.data.last_prescriptions[i];
3241
-                      //       let tempAdvice = [];
3242
-                      //       let tempProject = [];
3243
-                      //       let tempAddition = [];
3244
-                      //
3245
-                      //       //药品
3246
-                      //       for (let b = 0; b < prescription.advices.length; b++) {
3247
-                      //         let obj = {
3248
-                      //           advice_id:0,
3249
-                      //           drug_name: prescription.advices[b].advice_name,
3250
-                      //           single_dose: prescription.advices[b].single_dose,
3251
-                      //           delivery_way: prescription.advices[b].delivery_way,
3252
-                      //           execution_frequency: prescription.advices[b].execution_frequency,
3253
-                      //           retail_price: prescription.advices[b].price.toString(),
3254
-                      //           remark: prescription.advices[b].remark,
3255
-                      //           day: prescription.advices[b].day,
3256
-                      //           prescribing_number: prescription.advices[b].prescribing_number.toString(),
3257
-                      //           single_dose_unit: prescription.advices[b].single_dose_unit,
3258
-                      //           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3259
-                      //           medical_insurance_number: prescription.advices[b].med_list_codg,
3260
-                      //           id: prescription.advices[b].drug_id,
3261
-                      //           drug:prescription.advices[b].drug
3262
-                      //
3263
-                      //         };
3264
-                      //         tempAdvice.push(obj)
3265
-                      //       }
3266
-                      //
3267
-                      //       //项目
3268
-                      //       for (let b = 0; b < prescription.project.length; b++) {
3269
-                      //         let obj = {
3270
-                      //           id:0,
3271
-                      //           project_id: prescription.project[b].project_id,
3272
-                      //           project_name: prescription.project[b].project.project_name,
3273
-                      //           statistical_classification: prescription.project[b].project.statistical_classification,
3274
-                      //           single_dose: prescription.project[b].single_dose,
3275
-                      //           delivery_way: prescription.project[b].delivery_way,
3276
-                      //           execution_frequency: prescription.project[b].execution_frequency,
3277
-                      //           number_days: prescription.project[b].day,
3278
-                      //           total: prescription.project[b].count.toString(),
3279
-                      //           price: prescription.project[b].price,
3280
-                      //           remark: prescription.project[b].remark,
3281
-                      //           medical_code: prescription.project[b].project.medical_code,
3282
-                      //           unit: prescription.project[b].project.unit,
3283
-                      //           type: prescription.project[b].type
3284
-                      //         };
3285
-                      //
3286
-                      //         if (prescription.project[b].type == 2) {
3287
-                      //           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3288
-                      //           obj['medical_code'] = prescription.project[b].project.medical_code
3289
-                      //           obj['project_name'] = prescription.project[b].project.project_name
3290
-                      //
3291
-                      //         } else if (prescription.project[b].type == 3) {
3292
-                      //           obj['statistical_classification'] = ""
3293
-                      //           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3294
-                      //           obj['project_name'] = prescription.project[b].good_info.good_name
3295
-                      //         }
3296
-                      //         tempProject.push(obj)
3297
-                      //       }
3298
-                      //
3299
-                      //       //附加收费
3300
-                      //       for (let b = 0; b < prescription.addition.length; b++) {
3301
-                      //         let obj = {
3302
-                      //           item_name: prescription.addition[b].item_name,
3303
-                      //           price: prescription.addition[b].price,
3304
-                      //           count: prescription.addition[b].count,
3305
-                      //           item_id: prescription.addition[b].item_id,
3306
-                      //         };
3307
-                      //         tempAddition.push(obj)
3308
-                      //       }
3309
-                      //
3310
-                      //       var preTime = nowTime
3311
-                      //
3312
-                      //       let index = i + 1;
3313
-                      //       let obj = {
3314
-                      //         id: 0,
3315
-                      //         name: '处方' + index,
3316
-                      //         advices: tempAdvice,
3317
-                      //         project: tempProject,
3318
-                      //         addition: tempAddition,
3319
-                      //         order_status: 1,
3320
-                      //         pre_time: preTime
3321
-                      //       };
3322
-                      //       this.prescriptions.push(obj)
3323
-                      //     }
3324
-                      //   }
3325
-                      // }else{
3326
-                      //   let obj = {
3327
-                      //     id: 0,
3328
-                      //     name: '处方' + 1,
3329
-                      //     advices: [],
3330
-                      //     project: [],
3331
-                      //     addition: [],
3332
-                      //     order_status: 0,
3333
-                      //     pre_time: nowTime,
3334
-                      //
3335
-                      //   };
3336
-                      //   this.prescriptions.push(obj)
3337
-                      // }
3338 3241
                     }
3339 3242
                   }
3340 3243
                   this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
@@ -4106,8 +4009,6 @@
4106 4009
         this.current_tab = 'day'
4107 4010
 
4108 4011
       }, changeMonth(val) {
4109
-        console.log('33333333')
4110
-
4111 4012
         this.current_tab = 'month'
4112 4013
         var nowDate = new Date()
4113 4014
         var nowYear = nowDate.getFullYear()

+ 7 - 3
src/xt_pages/hospitalStation/index.vue 查看文件

@@ -217,9 +217,11 @@
217 217
           { value: 41, label: '学龄前儿童' },
218 218
           { value: 42, label: '中小学生' },
219 219
           { value: 43, label: '大学生' },
220
-          { value: 50, label: '成年居民(非从业)' },
220
+          { value: 50, label: '成年居民(非从业)'},
221 221
           { value: 60, label: '老年居民' },
222 222
           { value: 91, label: '其他人员' },
223
+          { value: 1501, label: '未知' },
224
+
223 225
 
224 226
 
225 227
 
@@ -384,13 +386,15 @@
384 386
                   type: 'warning'
385 387
                 }).then(() => {
386 388
 
387
-                  that.form.psn_type = parseNumber(response.data.data.info.output.insuinfo.psn_type)
388
-                  that.form.social_type = parseNumber(response.data.data.insutype)
389 389
 
390 390
                 }).catch(() => {
391 391
                 })
392 392
               } else {
393
+                // console.log(parseNumber(response.data.data.info.output.insuinfo.psn_type))
394
+                // console.log(parseNumber(response.data.data.insutype))
393 395
 
396
+                that.form.psn_type = parseInt(response.data.data.info.output.insuinfo[0].psn_type)
397
+                that.form.social_type = parseInt(response.data.data.insutype)
394 398
 
395 399
               }
396 400
             }

+ 10 - 11
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

@@ -109,7 +109,7 @@
109 109
 
110 110
                         <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
111 111
                         <el-button v-loading="loadingone" size="small"
112
-                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
112
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
113 113
 
114 114
                                    @click="open(2)"
115 115
                                    type="primary">出院
@@ -124,7 +124,7 @@
124 124
 
125 125
 
126 126
                         <el-button v-loading="loadingtwo"
127
-                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
127
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1) || (this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1) ||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
128 128
                                    size="small"
129 129
                                    @click="open(3)"
130 130
                                    type="primary">收费
@@ -1317,12 +1317,11 @@
1317 1317
             cancelButtonText: '取 消',
1318 1318
             type: 'warning'
1319 1319
           }).then(() => {
1320
-
1321 1320
             let params = {
1322 1321
               'id': that.hisPatientInfo.id,
1323
-              'patient_id': this.patientInfo.id,
1324
-              'admin_user_id': this.$store.getters.xt_user.user.id
1325
-
1322
+              'patient_id': that.patientInfo.id,
1323
+              'admin_user_id': that.$store.getters.xt_user.user.id,
1324
+              'record_time':  that.record_date,
1326 1325
             }
1327 1326
             if (this.hisPatientInfo.balance_accounts_type == 2) {
1328 1327
 
@@ -2016,11 +2015,11 @@
2016 2015
 
2017 2016
             let params = {
2018 2017
               'settle_accounts_type':settle_accounts_type,
2019
-              'patient_id':this.patientInfo.id,
2020
-              'his_patient_id':this.hisPatientInfo.id,
2021
-              'record_time': this.record_time,
2022
-              'order_id': this.order.id,
2023
-              'admin_user_id': this.$store.getters.xt_user.user.id
2018
+              'patient_id':that.patientInfo.id,
2019
+              'his_patient_id':that.hisPatientInfo.id,
2020
+              'record_time': that.record_date,
2021
+              'order_id': that.order.id,
2022
+              'admin_user_id': that.$store.getters.xt_user.user.id
2024 2023
             }
2025 2024
             axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
2026 2025
               params: params

+ 379 - 375
src/xt_pages/hospitalStation/statementPrint.vue 查看文件

@@ -1,112 +1,113 @@
1 1
 <template>
2
-  <div>
3
-       <template>
4
-        <el-button
5
-          style="position:fixed;right:25px;z-index:999"
6
-          :loading="loading"
7
-          size="small"
8
-          icon="el-icon-printer"
9
-          @click="printThisPage"
10
-          type="primary"
11
-          >打印</el-button
12
-        >
13
-      </template>
14
-
15
-      <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne :info="info"></printOne>
17
-        <!-- <printTwo  :info="info" v-if="org_id == 9990"></printTwo> -->
18
-      </div>
19
-  </div>
2
+    <div>
3
+        <template>
4
+            <el-button
5
+                    style="position:fixed;right:25px;z-index:999"
6
+                    :loading="loading"
7
+                    size="small"
8
+                    icon="el-icon-printer"
9
+                    @click="printThisPage"
10
+                    type="primary"
11
+            >打印
12
+            </el-button
13
+            >
14
+        </template>
15
+
16
+        <div class='dialysisPage' style="padding-top:40px;">
17
+            <printOne :info="info"></printOne>
18
+            <!-- <printTwo  :info="info" v-if="org_id == 9990"></printTwo> -->
19
+        </div>
20
+    </div>
20 21
 </template>
21 22
 
22 23
 <script>
23 24
 
24 25
 
25
-import { parseTime } from "@/utils";
26
-import { getDialysisRecord } from "@/api/dialysis";
27
-import { getDataConfig } from "@/utils/data";
28
-import { jsGetAge, uParseTime } from "@/utils/tools";
29
-import axios from 'axios'
30
-
31
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
32
-import print from "print-js";
33
-import printOne from "./statementTemplate/printOne"
34
-import printTwo from "./statementTemplate/printTwo"
35
-import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
36
-export default {
37
-  name: "dialysisPrintOrder",
38
-  components: {
39
-    BreadCrumb,
40
-    printOne,
41
-    printTwo
42
-  },
43
-  props:{
44
-    paramsObj:Object
45
-  },
46
-  data() {
47
-    return {
48
-      crumbs: [
49
-        { path: false, name: '门诊医生站' },
50
-        { path: false, name: '打印' }
51
-      ],
52
-      record_date:"",
53
-      patientTableData:[],
54
-      advicePrint:[],
55
-      hisPatient:{},
56
-      patient:{},
57
-      search_input:"",
58
-      loading:false,
59
-      patient_id:0,
60
-      prescription_id:0,
61
-      ids:'',
62
-      info:null,
63
-      org_id:""
64
-    };
65
-  },
66
-  methods:{
67
-    printThisPage() {
68
-      var ptime = Math.round(new Date().getTime() / 1000);
69
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
70
-
71
-      const style =
72
-        '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
73
-        printJS({
74
-            printable: "statement-print",
75
-            type: "html",
76
-            style: style,
77
-            scanStyles: false
78
-        });
79
-
80
-      // if (this.org_template_info.template_id == 1) {
81
-      //   printJS({
82
-      //     printable: "dialysis-print-box",
83
-      //     type: "html",
84
-      //     style: style,
85
-      //     scanStyles: false
86
-      //   });
87
-      // }
26
+  import { parseTime } from '@/utils'
27
+  import { getDialysisRecord } from '@/api/dialysis'
28
+  import { getDataConfig } from '@/utils/data'
29
+  import { jsGetAge, uParseTime } from '@/utils/tools'
30
+  import axios from 'axios'
31
+
32
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
33
+  import printOne from './statementTemplate/printOne'
34
+  import printTwo from './statementTemplate/printTwo'
35
+  import { getAllDoctorList, getAllHisPatientList, getPrescriptionPrint } from '@/api/project/project'
36
+
37
+  export default {
38
+    name: 'dialysisPrintOrder',
39
+    components: {
40
+      BreadCrumb,
41
+      printOne,
42
+      printTwo
43
+    },
44
+    props: {
45
+      paramsObj: Object
46
+    },
47
+    data() {
48
+      return {
49
+        crumbs: [
50
+          { path: false, name: '门诊医生站' },
51
+          { path: false, name: '打印' }
52
+        ],
53
+        record_date: '',
54
+        patientTableData: [],
55
+        advicePrint: [],
56
+        hisPatient: {},
57
+        patient: {},
58
+        search_input: '',
59
+        loading: false,
60
+        patient_id: 0,
61
+        prescription_id: 0,
62
+        ids: '',
63
+        info: null,
64
+        org_id: ''
65
+      }
88 66
     },
89
-    getAllDoctorList(){
90
-      getAllDoctorList().then(response=>{
91
-        if(response.data.state == 1){
92
-               var doctor =  response.data.data.doctor;
93
-
94
-               this.doctorList = doctor
95
-             }
96
-         })
97
-     },
98
-    getAllHisPatientList(){
99
-         const params = {
100
-           record_date:this.record_date
101
-         };
102
-      getAllHisPatientList(params).then(response=>{
103
-         if(response.data.state == 1){
104
-            this.patientTableData = response.data.data.list;
105
-            this.patientTableDataTwo = response.data.data.list;
106
-
107
-            console.log('222', this.patientTableData);
108
-            let cal_one = 0;
109
-            let cal_two = 0;
67
+    methods: {
68
+      printThisPage() {
69
+        var ptime = Math.round(new Date().getTime() / 1000)
70
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
71
+
72
+        const style =
73
+          '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
74
+        printJS({
75
+          printable: 'statement-print',
76
+          type: 'html',
77
+          style: style,
78
+          scanStyles: false
79
+        })
80
+
81
+        // if (this.org_template_info.template_id == 1) {
82
+        //   printJS({
83
+        //     printable: "dialysis-print-box",
84
+        //     type: "html",
85
+        //     style: style,
86
+        //     scanStyles: false
87
+        //   });
88
+        // }
89
+      },
90
+      getAllDoctorList() {
91
+        getAllDoctorList().then(response => {
92
+          if (response.data.state == 1) {
93
+            var doctor = response.data.data.doctor
94
+
95
+            this.doctorList = doctor
96
+          }
97
+        })
98
+      },
99
+      getAllHisPatientList() {
100
+        const params = {
101
+          record_date: this.record_date
102
+        }
103
+        getAllHisPatientList(params).then(response => {
104
+          if (response.data.state == 1) {
105
+            this.patientTableData = response.data.data.list
106
+            this.patientTableDataTwo = response.data.data.list
107
+
108
+            console.log('222', this.patientTableData)
109
+            let cal_one = 0
110
+            let cal_two = 0
110 111
             for (let i = 0; i < response.data.data.list.length; i++) {
111 112
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
112 113
                 cal_one = cal_one + 1
@@ -118,324 +119,327 @@ export default {
118 119
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
119 120
             // console.log(this.patientTableData[0])
120 121
             // this.choosePatient(this.patientTableData[0])
121
-            this.cal_one = cal_one;
122
+            this.cal_one = cal_one
122 123
             this.cal_two = cal_two
123
-         }
124
-      })
125
-    },
124
+          }
125
+        })
126
+      },
126 127
 
127
-    changePatient(row){
128
-      console.log("row",row);
129
-      this.patient_id = row.patient_id;
130
-      this.record_date = this.record_date;
131
-      this.prescription_id = this.prescription_id
132
-      //   var params = {
133
-      //     patient_id:row.patient_id,
134
-      //     record_date:this.record_date,
135
-      //     prescription_id:this.prescription_id,
136
-      //   }
137
-      // getPrescriptionPrint(params).then(response=>{
138
-      //     if(response.data.state == 1){
139
-      //       var advicePrint =  response.data.data.advicePrint
140
-      //       console.log("adviceprint",advicePrint)
141
-      //       this.advicePrint = advicePrint
142
-      //       // var hisPatient =  response.data.data.hisPatient
143
-      //       // console.log("hispatient",hisPatient)
144
-      //       // this.hisPatient = hisPatient
145
-      //       var patient =  response.data.data.patient
146
-      //       console.log("patient",patient)
147
-      //       this.patient = patient
148
-      //       var doctorPorject = response.data.data.doctorPorject
149
-      //       console.log("doctorporject",doctorPorject)
150
-      //     }
151
-      // })
152
-    },
153
-    searchAction(){
128
+      changePatient(row) {
129
+        console.log('row', row)
130
+        this.patient_id = row.patient_id
131
+        this.record_date = this.record_date
132
+        this.prescription_id = this.prescription_id
133
+        //   var params = {
134
+        //     patient_id:row.patient_id,
135
+        //     record_date:this.record_date,
136
+        //     prescription_id:this.prescription_id,
137
+        //   }
138
+        // getPrescriptionPrint(params).then(response=>{
139
+        //     if(response.data.state == 1){
140
+        //       var advicePrint =  response.data.data.advicePrint
141
+        //       console.log("adviceprint",advicePrint)
142
+        //       this.advicePrint = advicePrint
143
+        //       // var hisPatient =  response.data.data.hisPatient
144
+        //       // console.log("hispatient",hisPatient)
145
+        //       // this.hisPatient = hisPatient
146
+        //       var patient =  response.data.data.patient
147
+        //       console.log("patient",patient)
148
+        //       this.patient = patient
149
+        //       var doctorPorject = response.data.data.doctorPorject
150
+        //       console.log("doctorporject",doctorPorject)
151
+        //     }
152
+        // })
153
+      },
154
+      searchAction() {
154 155
 
155
-    },
156
-    getInfo(order_id) {
157
-      if (this.$store.getters.xt_user.org_id == 3877 || 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 == 4 || this.$store.getters.xt_user.org_id == 9990) {
156
+      },
157
+      getInfo(order_id) {
158 158
 
159
-        var that = this;
159
+        var that = this
160 160
 
161 161
         axios.get('http://127.0.0.1:9532/api/settle/query', {
162 162
           params: {
163 163
             order_id: order_id,
164
-            admin_user_id:this.$store.getters.xt_user.user.id,
164
+            admin_user_id: this.$store.getters.xt_user.user.id
165 165
 
166 166
           }
167 167
         })
168
-          .then(function (response) {
168
+          .then(function(response) {
169 169
             if (response.data.state == 0) {
170
-              this.$message.error(response.data.msg);
170
+              this.$message.error(response.data.msg)
171 171
               return false
172 172
             } else {
173
-              console.log("logloglog");
173
+              console.log('logloglog')
174
+
175
+              console.log(response.data.data.info)
176
+              that.info = response.data.data.info
177
+              console.log(that.info)
174 178
 
175
-              console.log(response.data.data.info);
176
-              that.info = response.data.data.info;
177
-              console.log(that.info);
179
+              that.p_admin = response.data.data.printor_admin
180
+              that.charge_admin = response.data.data.charge_admin
181
+              that.order_infos = response.data.data
178 182
 
179
-              that.p_admin = response.data.data.printor_admin;
180
-              that.charge_admin = response.data.data.charge_admin;
181
-              that.order_infos = response.data.data;
183
+              that.info['p_admin'] = that.p_admin
184
+              that.info['charge_admin'] = that.charge_admin
182 185
 
186
+              that.info['date'] = response.data.data.date
187
+              that.info['number'] = response.data.data.number
188
+              that.info['order_infos'] = response.data.data.order_infos
189
+              that.info['diagnosis'] = response.data.data.diagnosis
183 190
 
191
+              that.info['bed_cost_total'] = response.data.data.bedCostTotal
192
+              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
193
+              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
184 194
 
185
-              that.info['p_admin'] =  that.p_admin;
186
-              that.info['charge_admin'] =  that.charge_admin;
195
+              that.info['operation_cost_total'] = response.data.data.operationCostTotal
196
+              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
197
+              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
187 198
 
188
-              that.info['date'] =  response.data.data.date;
189
-              that.info['number'] =  response.data.data.number;
190
-              that.info['order_infos'] =  response.data.data.order_infos;
191
-              that.info['diagnosis'] =  response.data.data.diagnosis;
199
+              that.info['other_cost_total'] = response.data.data.otherCostTotal
200
+              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
201
+              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
192 202
 
203
+              that.info['material_cost_total'] = response.data.data.materialCostTotal
204
+              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
205
+              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
193 206
 
194
-              that.info['bed_cost_total'] = response.data.data.bedCostTotal;
195
-              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
196
-              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
207
+              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
208
+              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
209
+              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
197 210
 
198
-              that.info['operation_cost_total'] = response.data.data.operationCostTotal;
199
-              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
200
-              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
211
+              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
212
+              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
213
+              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
201 214
 
202
-              that.info['other_cost_total'] = response.data.data.otherCostTotal;
203
-              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
204
-              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
215
+              that.info['check_cost_total'] = response.data.data.checkCostTotal
216
+              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
217
+              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
205 218
 
206
-              that.info['material_cost_total'] = response.data.data.materialCostTotal;
207
-              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
208
-              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
219
+              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
220
+              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
221
+              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
209 222
 
210
-              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
211
-              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
212
-              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
223
+              that.info['treat_cost_total'] = response.data.data.treatCostTotal
224
+              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
225
+              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
226
+              that.info['date'] = response.data.data.date
227
+              that.info['number'] = response.data.data.number
228
+              that.info['order_infos'] = response.data.data.order_infos
229
+              that.info['diagnosis'] = response.data.data.diagnosis
213 230
 
214
-              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
215
-              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
216
-              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
231
+            }
232
+          })
233
+          .catch(function(error) {
217 234
 
235
+          })
236
+      }
218 237
 
219
-              that.info['check_cost_total'] = response.data.data.checkCostTotal;
220
-              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
221
-              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
238
+    },
222 239
 
240
+    created() {
241
+      this.getInfo(this.paramsObj.order_id)
242
+      this.org_id = this.$store.getters.xt_user.org_id
243
+    },
244
+    watch: {
245
+      paramsObj: {//深度监听,可监听到对象、数组的变化
246
+        handler(val, oldVal) {
247
+          this.paramsObj = val
248
+          this.getInfo(this.paramsObj.order_id)
249
+
250
+        },
251
+        deep: true
252
+      }
253
+    }
223 254
 
224
-              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
225
-              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
226
-              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
255
+  }
256
+</script>
227 257
 
228
-              that.info['treat_cost_total'] = response.data.data.treatCostTotal;
229
-              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
230
-              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
231
-              that.info['date'] =  response.data.data.date;
232
-              that.info['number'] =  response.data.data.number;
233
-              that.info['order_infos'] =  response.data.data.order_infos;
234
-              that.info['diagnosis'] =  response.data.data.diagnosis
258
+<style>
259
+    .dialysis-print-order {
260
+        width: 960px;
261
+        margin: 0 auto;
262
+    }
235 263
 
236
-            }
237
-          })
238
-          .catch(function (error) {
264
+    .dialysis-print-order .order-yy-name {
265
+        margin: auto;
266
+        text-align: center;
267
+        font-size: 20px;
268
+        letter-spacing: 5px;
269
+    }
239 270
 
240
-          });
241
-      }
271
+    .dialysis-print-order .order-title {
272
+        margin: auto;
273
+        font-weight: 600;
274
+        text-align: center;
275
+        font-size: 22px;
276
+        padding: 10px;
242 277
     }
243 278
 
244
-  },
279
+    .dialysis-print-order .table-box {
280
+        width: 100%;
281
+        line-height: 23px;
282
+        font-size: 14px;
283
+    }
245 284
 
246
-  created() {
247
-    this.getInfo(this.paramsObj.order_id);
248
-    this.org_id = this.$store.getters.xt_user.org_id
249
-  },
250
-  watch:{
251
-    paramsObj:{//深度监听,可监听到对象、数组的变化
252
-      handler(val, oldVal){
253
-        this.paramsObj = val;
254
-        this.getInfo(this.paramsObj.order_id)
285
+    .dialysis-print-order .print-table {
286
+        width: 100%;
287
+        text-align: center;
288
+        border-collapse: collapse;
289
+        line-height: 40px;
290
+        font-size: 14px;
291
+        border-color: #000;
292
+    }
255 293
 
256
-      },
257
-      deep:true
294
+    .dialysis-print-order .print-table-no {
295
+        width: 100%;
296
+        text-align: center;
297
+        border-collapse: collapse;
298
+        font-size: 14px;
258 299
     }
259
-  }
260 300
 
261
-};
262
-</script>
301
+    .dialysis-print-order .under-line {
302
+        border-bottom: 1px solid #999;
303
+        width: 95%;
304
+        text-align: center;
305
+        margin-left: 2px;
306
+    }
263 307
 
264
-<style>
265
-.dialysis-print-order {
266
-  width: 960px;
267
-  margin: 0 auto;
268
-}
269
-
270
-.dialysis-print-order .order-yy-name {
271
-  margin: auto;
272
-  text-align: center;
273
-  font-size: 20px;
274
-  letter-spacing: 5px;
275
-}
276
-
277
-.dialysis-print-order .order-title {
278
-  margin: auto;
279
-  font-weight: 600;
280
-  text-align: center;
281
-  font-size: 22px;
282
-  padding: 10px;
283
-}
284
-
285
-.dialysis-print-order .table-box {
286
-  width: 100%;
287
-  line-height: 23px;
288
-  font-size: 14px;
289
-}
290
-
291
-.dialysis-print-order .print-table {
292
-  width: 100%;
293
-  text-align: center;
294
-  border-collapse: collapse;
295
-  line-height: 40px;
296
-  font-size: 14px;
297
-  border-color: #000;
298
-}
299
-
300
-.dialysis-print-order .print-table-no {
301
-  width: 100%;
302
-  text-align: center;
303
-  border-collapse: collapse;
304
-  font-size: 14px;
305
-}
306
-
307
-.dialysis-print-order .under-line {
308
-  border-bottom: 1px solid #999;
309
-  width: 95%;
310
-  text-align: center;
311
-  margin-left: 2px;
312
-}
313
-
314
-.dialysis-print-order .title-box {
315
-  text-align: center;
316
-  font-size: 16px;
317
-}
318
-
319
-.dialysis-print-order .radio-lebel-box {
320
-  font-weight: 400;
321
-  cursor: pointer;
322
-}
323
-
324
-.dialysis-print-order .radio-no {
325
-  opacity: 0;
326
-  outline: none;
327
-  position: absolute;
328
-  margin: 0;
329
-  width: 0;
330
-  height: 0;
331
-  z-index: -1;
332
-}
333
-
334
-.dialysis-print-order .radio-inner {
335
-  white-space: nowrap;
336
-  cursor: pointer;
337
-  outline: none;
338
-  display: inline-block;
339
-  line-height: 1;
340
-  position: relative;
341
-  vertical-align: middle;
342
-}
343
-
344
-.dialysis-print-order .radio-fang {
345
-  display: inline-block;
346
-  position: relative;
347
-  border: 1px solid #000;
348
-  box-sizing: border-box;
349
-  width: 14px;
350
-  height: 14px;
351
-  background-color: #fff;
352
-  z-index: 1;
353
-  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
354
-    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
355
-}
356
-
357
-.dialysis-print-order .is-checked-radio::after {
358
-  content: "√";
359
-  font-size: 15px;
360
-}
361
-
362
-.dialysis-print-order .print-table-no tr td {
363
-  padding: 8px 5px;
364
-  line-height: 25px;
365
-}
366
-
367
-.dialysis-print-order .print-table tr td {
368
-  padding: 1px 1px;
369
-  /*line-height: 25px;*/
370
-}
371
-
372
-.es-img {
373
-  height: 30px;
374
-}
375
-
376
-.advice-name {
377
-  text-align: left;
378
-}
379
-
380
-.advice-children {
381
-  display: flex;
382
-}
383
-
384
-.title-box-pro {
385
-  border: 0 #fff;
386
-  line-height: 25px;
387
-  height: 25px;
388
-  text-align: left;
389
-  padding-left: 10px !important;
390
-}
391
-.title-box-pro-tr {
392
-  border: 0 #fff;
393
-}
394
-.text-align-left {
395
-  text-align: left !important;
396
-  padding-left: 10px !important;
397
-  font-size: 14px !important;
398
-  line-height: 25px;
399
-}
400
-.print-table-tr-new td {
401
-  line-height: 20px !important;
402
-}
403
-.border-top-solid {
404
-  border: solid 1px #000;
405
-}
406
-.print-template-two tr {
407
-  line-height: 30px;
408
-}
409
-
410
-.table-box1 {
411
-  border: 1px solid #000;
412
-  width: 100%;
413
-  line-height: 30px;
414
-  font-size: 14px;
415
-  border-collapse: collapse;
416
-}
417
-.table-box1 tr {
418
-  border-bottom: 1px solid #000;
419
-}
308
+    .dialysis-print-order .title-box {
309
+        text-align: center;
310
+        font-size: 16px;
311
+    }
312
+
313
+    .dialysis-print-order .radio-lebel-box {
314
+        font-weight: 400;
315
+        cursor: pointer;
316
+    }
317
+
318
+    .dialysis-print-order .radio-no {
319
+        opacity: 0;
320
+        outline: none;
321
+        position: absolute;
322
+        margin: 0;
323
+        width: 0;
324
+        height: 0;
325
+        z-index: -1;
326
+    }
327
+
328
+    .dialysis-print-order .radio-inner {
329
+        white-space: nowrap;
330
+        cursor: pointer;
331
+        outline: none;
332
+        display: inline-block;
333
+        line-height: 1;
334
+        position: relative;
335
+        vertical-align: middle;
336
+    }
337
+
338
+    .dialysis-print-order .radio-fang {
339
+        display: inline-block;
340
+        position: relative;
341
+        border: 1px solid #000;
342
+        box-sizing: border-box;
343
+        width: 14px;
344
+        height: 14px;
345
+        background-color: #fff;
346
+        z-index: 1;
347
+        transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
348
+        background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
349
+    }
350
+
351
+    .dialysis-print-order .is-checked-radio::after {
352
+        content: "√";
353
+        font-size: 15px;
354
+    }
355
+
356
+    .dialysis-print-order .print-table-no tr td {
357
+        padding: 8px 5px;
358
+        line-height: 25px;
359
+    }
360
+
361
+    .dialysis-print-order .print-table tr td {
362
+        padding: 1px 1px;
363
+        /*line-height: 25px;*/
364
+    }
365
+
366
+    .es-img {
367
+        height: 30px;
368
+    }
369
+
370
+    .advice-name {
371
+        text-align: left;
372
+    }
373
+
374
+    .advice-children {
375
+        display: flex;
376
+    }
377
+
378
+    .title-box-pro {
379
+        border: 0 #fff;
380
+        line-height: 25px;
381
+        height: 25px;
382
+        text-align: left;
383
+        padding-left: 10px !important;
384
+    }
385
+
386
+    .title-box-pro-tr {
387
+        border: 0 #fff;
388
+    }
389
+
390
+    .text-align-left {
391
+        text-align: left !important;
392
+        padding-left: 10px !important;
393
+        font-size: 14px !important;
394
+        line-height: 25px;
395
+    }
396
+
397
+    .print-table-tr-new td {
398
+        line-height: 20px !important;
399
+    }
400
+
401
+    .border-top-solid {
402
+        border: solid 1px #000;
403
+    }
404
+
405
+    .print-template-two tr {
406
+        line-height: 30px;
407
+    }
408
+
409
+    .table-box1 {
410
+        border: 1px solid #000;
411
+        width: 100%;
412
+        line-height: 30px;
413
+        font-size: 14px;
414
+        border-collapse: collapse;
415
+    }
416
+
417
+    .table-box1 tr {
418
+        border-bottom: 1px solid #000;
419
+    }
420 420
 </style>
421 421
 
422 422
 <style lang="scss">
423 423
 
424
-.newContainer{
425
-  .dialysisPage::-webkit-scrollbar {
426
-    height: 15px;
427
-  }
424
+    .newContainer {
428 425
 
429
-  .el-date-editor{
430
-    .el-input__inner{
431
-      padding-right:0px;
426
+    .dialysisPage::-webkit-scrollbar {
427
+        height: 15px;
428
+    }
429
+
430
+    .el-date-editor {
431
+
432
+    .el-input__inner {
433
+        padding-right: 0px;
434
+    }
435
+
436
+    }
437
+    .el-table td, .el-table th {
438
+        text-align: center;
439
+    }
440
+
441
+    }
442
+    .newContainer::-webkit-scrollbar {
443
+        height: 15px !important;
432 444
     }
433
-  }
434
-  .el-table td, .el-table th{
435
-    text-align: center;
436
-  }
437
-}
438
-.newContainer::-webkit-scrollbar{
439
-  height: 15px !important;
440
-}
441 445
 </style>

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

@@ -486,6 +486,7 @@
486 486
         createdTemplate(params, data).then(response => {
487 487
           if (response.data.state == 1) {
488 488
             this.$message.success('保存成功')
489
+            this.$emit('save',this.$route.query.patient_name)
489 490
             for (const mkey in this.modeOptions) {
490 491
               if (mkey == this.tempForm.mode_id) {
491 492
                 delete this.modeOptions[mkey]