Procházet zdrojové kódy

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 před 1 rokem
rodič
revize
deb7dfb817

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkPrint.vue Zobrazit soubor

@@ -15,7 +15,7 @@
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 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 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 19
         <!--      <print-two></print-two>-->
20 20
       </div>
21 21
 

+ 12 - 17
src/xt_pages/outpatientDoctorStation/checkTemplate/printTwo.vue Zobrazit soubor

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

+ 16 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -252,7 +252,6 @@
252 252
           :data="tableData3"
253 253
           tooltip-effect="dark"
254 254
           style="width: 600px"
255
-
256 255
           @selection-change="handleSelectionChange3">
257 256
         <el-table-column
258 257
             align='center'
@@ -668,7 +667,7 @@ export default {
668 667
           style: style,
669 668
           scanStyles: false
670 669
         })
671
-      } else if(this.org_id == 10188 || this.org_id == 0){
670
+      } else if(this.org_id == 10188){
672 671
         const style =
673 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 673
         printJS({
@@ -5020,8 +5019,11 @@ export default {
5020 5019
             this.tableData1 = arr1
5021 5020
             this.tableData2 = arr2
5022 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 5027
           } else {
5026 5028
             var list = response.data.data.list
5027 5029
             let arr = []
@@ -5049,10 +5051,17 @@ export default {
5049 5051
       this.selecting_schs2 = val
5050 5052
     },
5051 5053
     handleSelectionChange3(val) {
5054
+      console.log(val)
5052 5055
       if (val.length == 0) {
5053 5056
         this.selecting_schs3 = []
5054 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 5067
     handleClick() {
@@ -5121,7 +5130,9 @@ export default {
5121 5130
         for (let i = 0; i < this.selecting_schs3.length; i++) {
5122 5131
           arr3.push(this.selecting_schs3[i].id)
5123 5132
         }
5133
+        console.log(arr3)
5124 5134
         var ids2 = arr3.join(',')
5135
+        console.log(ids2)
5125 5136
         let obj3 = {
5126 5137
           record: this.record_date,
5127 5138
           prescription_id: this.prescription_id,