Browse Source

提交代码

陈少旭 1 year ago
parent
commit
774fcfae9f

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkPrint.vue View File

15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
         <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
16
         <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17
         <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
17
         <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
18
-        <printThree v-if="this.$store.getters.xt_user.org_id == 10375 || this.$store.getters.xt_user.org_id == 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
18
+        <printThree v-if="this.$store.getters.xt_user.org_id == 10375" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
19
         <!--      <print-two></print-two>-->
19
         <!--      <print-two></print-two>-->
20
       </div>
20
       </div>
21
 
21
 

+ 12 - 17
src/xt_pages/outpatientDoctorStation/checkTemplate/printTwo.vue View File

1
 <template>
1
 <template>
2
-  <div>
3
-    <div id="prescription-print3" class="prescription-print">
4
-      <img
5
-        style="width: 100%; height: 80px"
6
-        v-if="org_id == 10138"
7
-        src="https://kuyi.shengws.com/bailin/bltotle.jpg"
8
-        alt=""
9
-      />
10
-      <img
11
-        style="width: 100%; height: 80px"
12
-        v-if="org_id == 10278 || org_id == 0"
13
-        src="https://kuyi.shengws.com/beierlog.png"
14
-        alt=""
15
-      />
2
+  <div id="prescription-print">
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
+    <div      id="prescription-print"  class="prescription-print"     style="page-break-after: always">
16
       <div class="printTitle">检验申请单</div>
5
       <div class="printTitle">检验申请单</div>
17
 
6
 
18
       <div style="border: 1px solid #000;margin-bottom: 10px;">
7
       <div style="border: 1px solid #000;margin-bottom: 10px;">
91
 <!--            <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
80
 <!--            <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
92
 <!--              {{ item.team.project_team }}-->
81
 <!--              {{ item.team.project_team }}-->
93
 <!--            </div>-->
82
 <!--            </div>-->
94
-            <div v-for="item in singleProjectPrint" style="margin-bottom: 10px">
95
-              {{ item.project.project_name }}
83
+            <div v-for="subitem in item.singleProjectPrint" style="margin-bottom: 10px">
84
+              {{ subitem.project.project_name }}
96
             </div>
85
             </div>
97
           </div>
86
           </div>
98
         </div>
87
         </div>
140
       />
129
       />
141
       <img
130
       <img
142
         style="width: 100%"
131
         style="width: 100%"
143
-        v-if="org_id == 10278 || org_id == 0"
132
+        v-if="org_id == 10278"
144
         src="https://kuyi.shengws.com/bailinbeier.png"
133
         src="https://kuyi.shengws.com/bailinbeier.png"
145
         alt=""
134
         alt=""
146
       />
135
       />
147
     </div>
136
     </div>
137
+    </div>
138
+
148
   </div>
139
   </div>
149
 </template>
140
 </template>
150
 <script>
141
 <script>
266
           let projectPrint = [];
257
           let projectPrint = [];
267
           let total = 0;
258
           let total = 0;
268
           this.advicePrint.map((item) => {
259
           this.advicePrint.map((item) => {
260
+            let singleProjectPrint = []
269
             // console.log("imte233232323232323223", item.project);
261
             // console.log("imte233232323232323223", item.project);
270
             if (item.project.length > 0) {
262
             if (item.project.length > 0) {
271
               item.project.map((it) => {
263
               item.project.map((it) => {
272
                 if (it.type == 2) {
264
                 if (it.type == 2) {
273
                   if (it.project.cost_classify == 3) {
265
                   if (it.project.cost_classify == 3) {
274
                     projectPrint.push(it);
266
                     projectPrint.push(it);
267
+                    singleProjectPrint.push(it)
275
                     total += it.project.price * parseInt(it.count);
268
                     total += it.project.price * parseInt(it.count);
276
                   }
269
                   }
277
                 }
270
                 }
278
               });
271
               });
279
             }
272
             }
273
+            item["singleProjectPrint"] = singleProjectPrint
274
+
280
           });
275
           });
281
           this.doctorList_1 = response.data.data.eles;
276
           this.doctorList_1 = response.data.data.eles;
282
           // console.log(this.doctorList_1, "医生列表");
277
           // console.log(this.doctorList_1, "医生列表");

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

252
           :data="tableData3"
252
           :data="tableData3"
253
           tooltip-effect="dark"
253
           tooltip-effect="dark"
254
           style="width: 600px"
254
           style="width: 600px"
255
-
256
           @selection-change="handleSelectionChange3">
255
           @selection-change="handleSelectionChange3">
257
         <el-table-column
256
         <el-table-column
258
             align='center'
257
             align='center'
668
           style: style,
667
           style: style,
669
           scanStyles: false
668
           scanStyles: false
670
         })
669
         })
671
-      } else if(this.org_id == 10188 || this.org_id == 0){
670
+      } else if(this.org_id == 10188){
672
         const style =
671
         const style =
673
           '@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;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.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;} .doctorBox p {margin-left: auto} .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:450px;}.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;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.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;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
672
           '@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;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.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;} .doctorBox p {margin-left: auto} .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:450px;}.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;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.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;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
674
         printJS({
673
         printJS({
5020
             this.tableData1 = arr1
5019
             this.tableData1 = arr1
5021
             this.tableData2 = arr2
5020
             this.tableData2 = arr2
5022
             this.tableData4 = arr4
5021
             this.tableData4 = arr4
5023
-            this.tableData3 = [arr3[0]]
5024
-
5022
+            if(this.org_id == 10402 || this.org_id == 0){
5023
+              this.tableData3 = arr3
5024
+            }else{
5025
+              this.tableData3 = [arr3[0]]
5026
+            }
5025
           } else {
5027
           } else {
5026
             var list = response.data.data.list
5028
             var list = response.data.data.list
5027
             let arr = []
5029
             let arr = []
5049
       this.selecting_schs2 = val
5051
       this.selecting_schs2 = val
5050
     },
5052
     },
5051
     handleSelectionChange3(val) {
5053
     handleSelectionChange3(val) {
5054
+      console.log(val)
5052
       if (val.length == 0) {
5055
       if (val.length == 0) {
5053
         this.selecting_schs3 = []
5056
         this.selecting_schs3 = []
5054
       } else {
5057
       } else {
5055
-        this.selecting_schs3 = this.tableData4
5058
+        if(this.org_id == 10402 || this.org_id == 0){
5059
+          this.selecting_schs3 = val
5060
+
5061
+        }else{
5062
+          this.selecting_schs3 = this.tableData4
5063
+
5064
+        }
5056
       }
5065
       }
5057
     },
5066
     },
5058
     handleClick() {
5067
     handleClick() {
5121
         for (let i = 0; i < this.selecting_schs3.length; i++) {
5130
         for (let i = 0; i < this.selecting_schs3.length; i++) {
5122
           arr3.push(this.selecting_schs3[i].id)
5131
           arr3.push(this.selecting_schs3[i].id)
5123
         }
5132
         }
5133
+        console.log(arr3)
5124
         var ids2 = arr3.join(',')
5134
         var ids2 = arr3.join(',')
5135
+        console.log(ids2)
5125
         let obj3 = {
5136
         let obj3 = {
5126
           record: this.record_date,
5137
           record: this.record_date,
5127
           prescription_id: this.prescription_id,
5138
           prescription_id: this.prescription_id,