See999 4 years ago
parent
commit
a604a83608

+ 3 - 2
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -3,6 +3,7 @@
3 3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4 4
               :row-style="{ color: '#303133' }"
5 5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6 7
       <el-table-column align="center" prop="name" label="名称">
7 8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8 9
       </el-table-column>
@@ -55,7 +56,7 @@
55 56
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
56 57
               :row-style="{ color: '#303133' }"
57 58
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
58
-
59
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
59 60
       <el-table-column align="center" prop="project_name" label="名称">
60 61
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
61 62
       </el-table-column>
@@ -189,7 +190,7 @@
189 190
           white-space: nowrap;
190 191
           overflow: hidden;
191 192
           text-overflow: ellipsis;
192
-          width:60px;
193
+          width:80px;
193 194
           display: inline-block;
194 195
           font-size: 14px;
195 196
         }

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue View File

@@ -1,16 +1,16 @@
1 1
 <template>
2 2
   <el-dialog
3 3
     title="附加收费"
4
-    width="300px"
4
+    width="600px"
5 5
     :visible.sync="visible"
6 6
     :before-close="_close"
7 7
   >
8
-    <el-table :data="chargeTable" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }"
8
+    <el-table :data="chargeTable" border style="width: 100%;" height="350" :row-style="{ color: '#303133' }"
9 9
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
10 10
               @select-all="handleSelectionChange"
11 11
               @select='selectDrugs'>
12
-      <el-table-column align="center" type="selection" width="40"></el-table-column>
13
-      <el-table-column align="center" prop="name" label="名称" width="100">
12
+      <el-table-column align="center" type="selection" width="60"></el-table-column>
13
+      <el-table-column align="center" prop="name" label="名称" width="160">
14 14
         <template slot-scope="scope">{{ scope.row.item_name }}</template>
15 15
       </el-table-column>
16 16
       <el-table-column align="center" prop="name" label="金额(元)">

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -129,7 +129,7 @@
129 129
 
130 130
     <div class="additionalBox">
131 131
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
132
-        <span>{{item.item_name}}</span>
132
+        <span :title="item.item_name">{{item.item_name}}</span>
133 133
         <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
134 134
135 135
         <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
@@ -371,7 +371,7 @@
371 371
           white-space: nowrap;
372 372
           overflow: hidden;
373 373
           text-overflow: ellipsis;
374
-          width:60px;
374
+          width:80px;
375 375
           display: inline-block;
376 376
           font-size: 14px;
377 377
         }

+ 32 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -92,19 +92,19 @@
92 92
 
93 93
       @selection-change="handleSelectionChange">
94 94
       <el-table-column
95
+        align='center'
95 96
         type="selection"
96 97
         width="50">
97 98
       </el-table-column>
98 99
       <el-table-column
100
+        align='center'
99 101
         label="处方编号"
100 102
         width="120">
101 103
         <template  slot-scope="scope">
102 104
           <span>处方编号</span>
103 105
         </template>
104 106
       </el-table-column>
105
-      <el-table-column
106
-        label="处方号"
107
-        width="200">
107
+      <el-table-column label="处方号">
108 108
         <template slot-scope="scope">
109 109
           <span>
110 110
            <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
@@ -112,6 +112,15 @@
112 112
         </template>
113 113
       </el-table-column>
114 114
     </el-table>
115
+    <el-dialog
116
+      class="centerDialog"
117
+      width="560px"
118
+      title="打印"
119
+      :visible.sync="innerVisible"
120
+      append-to-body>
121
+      
122
+      <print :paramsObj='paramsObj'></print>
123
+    </el-dialog>
115 124
       <span slot="footer" class="dialog-footer">
116 125
         <el-button @click="centerDialogVisible = false">取 消</el-button>
117 126
         <el-button type="primary" @click="savePrint">确 定</el-button>
@@ -131,13 +140,15 @@
131 140
   import saveRecordTemplate from './components/saveRecordTemplate'
132 141
   import { uParseTime } from '@/utils/tools'
133 142
   import { getPrescriptionList } from "@/api/project/project"
143
+  import print from './print'
134 144
   export default {
135 145
     components: {
136 146
       BreadCrumb,
137 147
       deskPrescription,
138 148
       deskRecord,
139 149
       medicalRecord,
140
-      saveRecordTemplate
150
+      saveRecordTemplate,
151
+      print
141 152
     },
142 153
     data() {
143 154
       return {
@@ -184,6 +195,8 @@
184 195
         index:0,
185 196
         admin_info:{},
186 197
         saveLoading:false,
198
+        innerVisible:false,
199
+        paramsObj:{}
187 200
 
188 201
       }
189 202
     },
@@ -688,7 +701,16 @@
688 701
          var ids = arr.join(",")
689 702
          console.log("ids",ids)
690 703
          if(this.index == 2){
691
-           this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
704
+           let obj = {
705
+             record:this.record_date,
706
+             prescription_id:this.prescription_id,
707
+             ids:ids,
708
+             patient_id:this.patientid
709
+           }
710
+           this.paramsObj = obj
711
+           this.innerVisible = true
712
+           
713
+          //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
692 714
          }
693 715
          if(this.index == 6){
694 716
             this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
@@ -978,4 +1000,9 @@
978 1000
   }
979 1001
 
980 1002
   }
1003
+  .centerDialog{
1004
+    .el-dialog__body{
1005
+      max-height: calc(100vh - 100px) !important;
1006
+    }
1007
+  }
981 1008
 </style>

+ 36 - 31
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -1,7 +1,5 @@
1 1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
2
+  <div>
5 3
        <template>
6 4
         <el-button
7 5
           :loading="loading"
@@ -12,29 +10,9 @@
12 10
           >打印</el-button
13 11
         >
14 12
       </template>
15
-    </div>
16
-    <div class="app-container" style="min-height:0;">
17
-        <el-container class="newContainer">
18
-            <!-- <div style="width:270px;margin-right:20px;">
19
-                <div class="cell clearfix" style="margin-bottom:10px;">
20
-                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
21
-                    <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
22
-                </div>
23
-                <el-table ref="tab"   @current-change="changePatient" highlight-current-row :data="patientTableData" 
24
-                 height="480" border style="width: 100%">
25
-                    <el-table-column prop="date"  label="患者">   
26
-                      <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template> 
27
-                    </el-table-column>
28
-                    <el-table-column prop="name" label="就诊号">
29
-                        <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
30
-                    </el-table-column>
31
-                </el-table>
32
-            </div> -->
33 13
             
34
-            <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px;margin:0 auto;width:960px;">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36
-            </div>
37
-        </el-container>
14
+    <div class='dialysisPage'>
15
+      <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
38 16
     </div>
39 17
   </div>
40 18
 </template>
@@ -57,6 +35,9 @@ export default {
57 35
     BreadCrumb,
58 36
     printOne
59 37
   },
38
+  props:{
39
+    paramsObj:Object
40
+  },
60 41
   data() {
61 42
     return {
62 43
       crumbs: [
@@ -72,7 +53,9 @@ export default {
72 53
        search_input:"",
73 54
        loading:false,
74 55
        patient_id:"",
75
-       prescription_id:""
56
+       prescription_id:"",
57
+       ids:'',
58
+       paramsObj:{}
76 59
     };
77 60
   },
78 61
   methods:{
@@ -127,9 +110,9 @@ export default {
127 110
                 cal_two = cal_two + 1
128 111
               }
129 112
             }
130
-            this.$refs.tab.setCurrentRow(this.patientTableData[0])
131
-            console.log(this.patientTableData[0])
132
-            this.choosePatient(this.patientTableData[0])
113
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
114
+            // console.log(this.patientTableData[0])
115
+            // this.choosePatient(this.patientTableData[0])
133 116
             this.cal_one = cal_one
134 117
             this.cal_two = cal_two   
135 118
          }
@@ -171,13 +154,35 @@ export default {
171 154
 
172 155
   created() {
173 156
     this.getAllDoctorList()
174
-    var record_date = this.$route.query.record
157
+    var record_date = this.paramsObj.record
175 158
     this.record_date = record_date
176 159
     console.log("record_date",record_date)
177
-    var prescription_id = this.$route.query.prescription_id
160
+    var prescription_id = this.paramsObj.prescription_id
178 161
     this.prescription_id = prescription_id
162
+    this.patient_id = this.paramsObj.patient_id
163
+    this.ids = this.paramsObj.ids
164
+    // var record_date = this.$route.query.record
165
+    // this.record_date = record_date
166
+    // console.log("record_date",record_date)
167
+    // var prescription_id = this.$route.query.prescription_id
168
+    // this.prescription_id = prescription_id
179 169
     this.getAllHisPatientList(record_date)
180 170
   },
171
+  watch:{
172
+    paramsObj:{//深度监听,可监听到对象、数组的变化
173
+      handler(val, oldVal){
174
+        this.paramsObj = val
175
+        this.patient_id = this.paramsObj.patient_id
176
+        var record_date = this.paramsObj.record
177
+        this.record_date = record_date
178
+        console.log("record_date",record_date)
179
+        var prescription_id = this.paramsObj.prescription_id
180
+        this.prescription_id = prescription_id
181
+        this.ids = this.paramsObj.ids
182
+      },
183
+      deep:true
184
+    }
185
+  }
181 186
 
182 187
 };
183 188
 </script>

+ 13 - 5
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -57,7 +57,8 @@ export default {
57 57
     props:{
58 58
       patient_id:Number,
59 59
       record_date:String,
60
-      prescription_id:Number
60
+      prescription_id:Number,
61
+      ids:String
61 62
     }, 
62 63
     data(){
63 64
       return {
@@ -104,10 +105,10 @@ export default {
104 105
           // patient_id:this.patient_id,
105 106
           // record_date:this.record_date,
106 107
           // prescription_id:this.prescription_id,
107
-          patient_id:this.$route.query.patient_id,
108
-          record_date:this.$route.query.record,
109
-          prescription_id:this.$route.query.prescription_id,
110
-          ids:this.$route.query.ids
108
+          patient_id:this.patient_id,
109
+          record_date:this.record_date,
110
+          prescription_id:this.prescription_id,
111
+          ids:this.ids
111 112
         }
112 113
         console.log("params",params)
113 114
        getPrescriptionPrint(params).then(response=>{
@@ -194,6 +195,13 @@ export default {
194 195
 
195 196
 
196 197
 <style lang="scss" scoped>
198
+.prescription-print{
199
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
200
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
201
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
202
+    margin-bottom: 20px;
203
+    padding:20px 0px;
204
+}
197 205
 .printTitle{
198 206
     font-size: 22px;
199 207
     text-align: center;