See999 4 years ago
parent
commit
156d4c9978

+ 26 - 3
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

@@ -47,17 +47,17 @@
47 47
 
48 48
       <el-form-item class="specialFormItem" label="折扣金额:">
49 49
         <div style="display:flex;">
50
-          <el-input v-model="form.discount_price"></el-input>
50
+          <el-input v-model="form.discount_price" :disabled="form.preferential_price != 0" @change="changeDiscountPrice"></el-input>
51 51
         </div>
52 52
       </el-form-item>
53 53
       <el-form-item class="specialFormItem" label="优惠金额:">
54 54
         <div style="display:flex;">
55
-          <el-input v-model="form.preferential_price"></el-input>
55
+          <el-input v-model="form.preferential_price" :disabled="form.discount_price != 0" @change="changePreferentialPrice"></el-input>
56 56
         </div>
57 57
       </el-form-item>
58 58
       <el-form-item label="实收金额:">
59 59
         <div style="display:flex;">
60
-          <el-input v-model="form.reality_price"></el-input>
60
+          <el-input v-model="form.reality_price" @change="realityPrice"></el-input>
61 61
         </div>
62 62
       </el-form-item>
63 63
       <el-form-item label="找回金额:">
@@ -151,6 +151,8 @@
151 151
         this.form.private_price = total
152 152
         this.form.pay_price = total
153 153
         this.form.total = total + this.form.medical_insurance_price
154
+        this.form.discount_price = 0.0
155
+        this.form.preferential_price = 0.0
154 156
 
155 157
         this.visibility = true
156 158
 
@@ -174,6 +176,27 @@
174 176
         let form = {}
175 177
         form = this.form
176 178
         return form
179
+      },
180
+      realityPrice(val){
181
+        if(val < (this.form.total - this.form.discount_price - this.form.preferential_price)){
182
+          this.$message.error('实收金额不能小于收费金额')
183
+          return
184
+        }
185
+        this.form.found_price = parseInt(val) - parseInt(this.form.total) + parseInt(this.form.discount_price) + parseInt(this.form.preferential_price)
186
+      },
187
+      changeDiscountPrice(val){
188
+        if(val > this.form.total){
189
+          this.$message.error('折扣金额不能超过费用总额')
190
+          return
191
+        }
192
+        this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.preferential_price)
193
+      },
194
+      changePreferentialPrice(val){
195
+        if(val > this.form.total){
196
+          this.$message.error('优惠金额不能超过费用总额')
197
+          return
198
+        }
199
+        this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
177 200
       }
178 201
     },mounted() {
179 202
       var nowDate = new Date()

+ 2 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -327,10 +327,12 @@
327 327
           if (response.data.state == 0) {
328 328
             this.$message.error(response.data.msg)
329 329
             this.loadingtwo = false
330
+            this.$refs.charge.hide()
330 331
             return false
331 332
           } else {
332 333
             this.state = '已收费'
333 334
             this.$message({message: '收费成功', type: 'success'})
335
+            this.$refs.charge.hide()
334 336
             this.loadingtwo = false
335 337
             this.cal_one = this.cal_one - 1
336 338
             this.cal_two = this.cal_two + 1

+ 1 - 1
src/xt_pages/outpatientCharges/treatPrint.vue View File

@@ -82,7 +82,7 @@ export default {
82 82
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
83 83
 
84 84
       const style =
85
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;line-height: 1px;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}}';
85
+        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
86 86
         printJS({
87 87
             printable: "prescription-print",
88 88
             type: "html",

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

@@ -2,15 +2,15 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
4 4
         <div class="infoMain">
5
-            <p class="infoP">医院(药店)编号:</p>
6
-            <p class="infoP">名称:血液透析中心</p>
7
-            <p class="infoP">医生工号:</p>
8
-            <p class="infoP">门诊流水号:</p>
9
-            <p class="infoP">科别:{{list.p_info.departments?list.p_info.departments:""}}</p>
10
-            <p class="infoP">处方单据号:</p>
11
-            <p class="infoP">姓名:{{patient.name}}</p>
12
-            <p class="infoP">医疗账号:</p>
13
-            <p class="infoP">医疗类别:普通</p>
5
+            <div class="infoP">医院(药店)编号:</div>
6
+            <div class="infoP">名称:血液透析中心</div>
7
+            <div class="infoP">医生工号:</div>
8
+            <div class="infoP">门诊流水号:</div>
9
+            <div class="infoP">科别:{{list.p_info.departments?list.p_info.departments:""}}</div>
10
+            <div class="infoP">处方单据号:</div>
11
+            <div class="infoP">姓名:{{patient.name}}</div>
12
+            <div class="infoP">医疗账号:</div>
13
+            <div class="infoP">医疗类别:普通</div>
14 14
         </div>
15 15
         <div class="chargeBox">
16 16
             <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
@@ -49,7 +49,7 @@
49 49
                         <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
50 50
                     </div>
51 51
                 </div>
52
-                <div style="width:80%;display:flex;height:600px;">
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>
@@ -78,8 +78,8 @@
78 78
             <p>找赎金:</p>
79 79
         </div>
80 80
         <div class="actionBar">
81
-            <p>收费员:</p>
82
-            <p>日期:{{this.$route.query.record_date}}</p>
81
+            <div>收费员:</div>
82
+            <div>日期:{{this.$route.query.record_date}}</div>
83 83
         </div>
84 84
     </div>
85 85
 </template>
@@ -206,7 +206,7 @@ export default {
206 206
     line-height: 24px;
207 207
     padding:0 10px;
208 208
 }
209
-.actionBar p{
209
+.actionBar div{
210 210
     width:150px;
211 211
 }
212 212
 </style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -13,7 +13,7 @@
13 13
           </div>
14 14
           <div class="infoMain">
15 15
               <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
16
-              <div style="margin-bottom: 10px;">科室:{{getDepart(item.info.departments)?getDepart(item.info.departments):''}}</div>
16
+              <div style="margin-bottom: 10px;">科室:{{item.info.departments?getDepart(item.info.departments):''}}</div>
17 17
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18 18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19 19
               <div>地址:{{item.patient.home_address}}</div>