see999 3 years ago
parent
commit
e525fcd283
1 changed files with 19 additions and 3 deletions
  1. 19 3
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue

+ 19 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

152
                 :visible.sync="centerDialogVisible"
152
                 :visible.sync="centerDialogVisible"
153
                 width="600px"
153
                 width="600px"
154
                 center>
154
                 center>
155
+                <el-button @click="allCheck">全选</el-button>
155
                 <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156
                 <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
156
                 <el-table
157
                 <el-table
157
-                    ref="multipleTable"
158
+                    ref="multipleTable1"
158
                     :data="tableData1"
159
                     :data="tableData1"
159
                     tooltip-effect="dark"
160
                     tooltip-effect="dark"
160
                     style="width: 600px"
161
                     style="width: 600px"
183
             </el-table>
184
             </el-table>
184
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">治疗单打印</div>
185
                 <el-table
186
                 <el-table
186
-                    ref="multipleTable"
187
+                    ref="multipleTable2"
187
                     :data="tableData2"
188
                     :data="tableData2"
188
                     tooltip-effect="dark"
189
                     tooltip-effect="dark"
189
                     style="width: 600px"
190
                     style="width: 600px"
212
             </el-table>
213
             </el-table>
213
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214
             <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">检验单打印</div>
214
                 <el-table
215
                 <el-table
215
-                    ref="multipleTable"
216
+                    ref="multipleTable3"
216
                     :data="tableData3"
217
                     :data="tableData3"
217
                     tooltip-effect="dark"
218
                     tooltip-effect="dark"
218
                     style="width: 600px"
219
                     style="width: 600px"
396
         // this.centerDialogVisible = true
397
         // this.centerDialogVisible = true
397
         this.getPrescriptionList(this.patientInfo.id)
398
         this.getPrescriptionList(this.patientInfo.id)
398
       },
399
       },
400
+      allCheck(){
401
+        // if(this.tableData1.length > 0){
402
+        //   this.selecting_schs1 = this.tableData1
403
+        // }
404
+        // if(this.tableData2.length > 0){
405
+        //   this.selecting_schs2 = this.tableData2
406
+        // }
407
+        // if(this.tableData3.length > 0){
408
+        //   this.selecting_schs3 = this.tableData4
409
+        // }
410
+        this.$refs.multipleTable1.toggleAllSelection();
411
+        this.$refs.multipleTable2.toggleAllSelection();
412
+        this.$refs.multipleTable3.toggleAllSelection();
413
+      },
399
       printThisPage(){
414
       printThisPage(){
400
         const style =
415
         const style =
401
           '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}';
416
           '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}';
3876
         })
3891
         })
3877
       },
3892
       },
3878
       handleSelectionChange1(val) {
3893
       handleSelectionChange1(val) {
3894
+        console.log('val',val)
3879
         this.selecting_schs1 = val
3895
         this.selecting_schs1 = val
3880
       },
3896
       },
3881
       handleSelectionChange2(val) {
3897
       handleSelectionChange2(val) {