Bladeren bron

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

csx 4 jaren geleden
bovenliggende
commit
9d44bc2fc1

+ 8 - 8
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Bestand weergeven

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

+ 7 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Bestand weergeven

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

+ 7 - 7
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Bestand weergeven

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