Browse Source

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

csx 4 years ago
parent
commit
9d44bc2fc1

+ 8 - 8
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue View File

1
 <template>
1
 <template>
2
     <div id='prescription-print' class="prescription-print">
2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
4
         <div class="infoMain">
4
         <div class="infoMain">
5
             <div class="infoP">医院(药店)编号:</div>
5
             <div class="infoP">医院(药店)编号:</div>
6
             <div class="infoP">名称:血液透析中心</div>
6
             <div class="infoP">名称:血液透析中心</div>
32
                         <p style="width:50%;">材料费</p>
32
                         <p style="width:50%;">材料费</p>
33
                         <p style="width:50%;"></p>
33
                         <p style="width:50%;"></p>
34
                     </div>
34
                     </div>
35
-                    <div class="chargeUl" style="border-top:1px solid #000;"> 
35
+                    <div class="chargeUl" style="border-top:1px solid #000;">
36
                         <p style="width:50%;">费用合计</p>
36
                         <p style="width:50%;">费用合计</p>
37
                         <p style="width:50%;">{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:""}}</p>
37
                         <p style="width:50%;">{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:""}}</p>
38
                     </div>
38
                     </div>
50
                     </div>
50
                     </div>
51
                 </div>
51
                 </div>
52
                 <div style="width:80%;display:flex;height:300px;">
52
                 <div style="width:80%;display:flex;height:300px;">
53
-                  
53
+
54
                     <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
54
                     <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
55
                         <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">{{item.advice_name}}</p>
55
                         <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">{{item.advice_name}}</p>
56
                     </div>
56
                     </div>
68
                     </div>
68
                     </div>
69
                 </div>
69
                 </div>
70
             </div>
70
             </div>
71
-            
71
+
72
         </div>
72
         </div>
73
         <div class="moneyBox">
73
         <div class="moneyBox">
74
             <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
74
             <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
92
           prescription:[],
92
           prescription:[],
93
           patient:{},
93
           patient:{},
94
           orgname:""
94
           orgname:""
95
-      } 
95
+      }
96
     },
96
     },
97
     props:{
97
     props:{
98
         paramsObj:Object
98
         paramsObj:Object
142
             this.record_date = record_date
142
             this.record_date = record_date
143
             var prescription_id = this.paramsObj.prescription_id
143
             var prescription_id = this.paramsObj.prescription_id
144
             this.prescription_id = prescription_id
144
             this.prescription_id = prescription_id
145
-            
145
+
146
         },
146
         },
147
         deep:true
147
         deep:true
148
         }
148
         }
154
 <style lang="scss" scoped>
154
 <style lang="scss" scoped>
155
 .prescription-print{
155
 .prescription-print{
156
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
156
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
157
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
157
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
158
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
158
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
159
     margin-bottom: 20px;
159
     margin-bottom: 20px;
160
     padding:20px 10px;
160
     padding:20px 10px;
202
 }
202
 }
203
 .actionBar{
203
 .actionBar{
204
     display: flex;
204
     display: flex;
205
-    justify-content: space-between; 
205
+    justify-content: space-between;
206
     line-height: 24px;
206
     line-height: 24px;
207
     padding:0 10px;
207
     padding:0 10px;
208
 }
208
 }

+ 7 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2264
         for (let i = 0; i < this.teamList.length; i++) {
2264
         for (let i = 0; i < this.teamList.length; i++) {
2265
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
2265
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
2266
             if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
2266
             if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
2267
-              this.$message.error('改处方存在相同的项目,无法添加相同的项目')
2267
+              this.$message.error('当前处方存在相同的药品,无法添加相同的项目')
2268
               return
2268
               return
2269
             }
2269
             }
2270
           }
2270
           }
2271
         }
2271
         }
2272
 
2272
 
2273
+        console.log( this.curDrugs)
2274
+        console.log( this.curPrescriptions.advices)
2275
+
2276
+
2273
         for (let i = 0; i < this.curDrugs.length; i++) {
2277
         for (let i = 0; i < this.curDrugs.length; i++) {
2274
           for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
2278
           for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
2275
-            if (this.curDrugs[i].id == this.curPrescriptions.advices[i].id) {
2276
-              this.$message.error('改处方存在相同的药品,无法添加相同的药品')
2279
+            if (this.curDrugs[i].id == this.curPrescriptions.advices[a].id) {
2280
+              this.$message.error('当前处方存在相同的药品,无法添加相同的药品')
2277
               return
2281
               return
2278
 
2282
 
2279
             }
2283
             }

+ 7 - 7
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

14
         </div>
14
         </div>
15
 
15
 
16
         <div class="printTitle">{{orgname}}</div>
16
         <div class="printTitle">{{orgname}}</div>
17
-        <div class="printTitle">血液透析中心处方、治疗单</div>
17
+        <div class="printTitle">处方、治疗单</div>
18
 
18
 
19
         <div class="infoTitle">
19
         <div class="infoTitle">
20
             <div>门诊编号:</div>
20
             <div>门诊编号:</div>
151
                     <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
151
                     <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
152
                     <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
152
                     <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
153
                 </div>
153
                 </div>
154
-                
154
+
155
                 <div class="prescriptionBox">
155
                 <div class="prescriptionBox">
156
                     <table style="width:100%;text-align:center;line-height:25px;">
156
                     <table style="width:100%;text-align:center;line-height:25px;">
157
                         <tr>
157
                         <tr>
237
         prescriptionInfo:[],
237
         prescriptionInfo:[],
238
         projectList:[],
238
         projectList:[],
239
         prescriptions:[],
239
         prescriptions:[],
240
-        settlement: 
240
+        settlement:
241
          [
241
          [
242
           {value: 1,label: '医保'},
242
           {value: 1,label: '医保'},
243
           {value: 2,label: '自费'},
243
           {value: 2,label: '自费'},
305
             this.prescriptions = advicePrint
305
             this.prescriptions = advicePrint
306
             var projectlist =  response.data.data.projectlist
306
             var projectlist =  response.data.data.projectlist
307
             console.log("所有项目列表",projectlist)
307
             console.log("所有项目列表",projectlist)
308
-            this.projectList = projectlist       
308
+            this.projectList = projectlist
309
             this.hisPatient = response.data.data.hisPatient
309
             this.hisPatient = response.data.data.hisPatient
310
 
310
 
311
           }
311
           }
349
             }
349
             }
350
               addtotal =  Math.floor(addtotal * 100) / 100
350
               addtotal =  Math.floor(addtotal * 100) / 100
351
         }
351
         }
352
-       
352
+
353
        }
353
        }
354
 
354
 
355
       for (let i = 0; i < this.prescriptions.length; i++) {
355
       for (let i = 0; i < this.prescriptions.length; i++) {
359
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
359
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
360
               }
360
               }
361
             }
361
             }
362
-          
362
+
363
             if (this.prescriptions[i].additionalcharge != null) {
363
             if (this.prescriptions[i].additionalcharge != null) {
364
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
364
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
365
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
365
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
396
 <style lang="scss" scoped>
396
 <style lang="scss" scoped>
397
 .prescription-print{
397
 .prescription-print{
398
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
398
     -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
399
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
399
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
400
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
400
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
401
     margin-bottom: 20px;
401
     margin-bottom: 20px;
402
     padding:20px 10px;
402
     padding:20px 10px;