Bladeren bron

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

XMLWAN 4 jaren geleden
bovenliggende
commit
639526eca0

+ 4 - 0
src/xt_pages/medicalScheduling/index.vue Bestand weergeven

1991
         white-space: pre-line;/*保留换行符*/
1991
         white-space: pre-line;/*保留换行符*/
1992
     }
1992
     }
1993
 }
1993
 }
1994
+.el-dropdown-menu{
1995
+    max-height:96%;
1996
+    overflow-y: auto;
1997
+}
1994
 
1998
 
1995
 </style>
1999
 </style>

+ 26 - 3
src/xt_pages/outpatientCharges/components/chargeDialog.vue Bestand weergeven

47
 
47
 
48
       <el-form-item class="specialFormItem" label="折扣金额:">
48
       <el-form-item class="specialFormItem" label="折扣金额:">
49
         <div style="display:flex;">
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
         </div>
51
         </div>
52
       </el-form-item>
52
       </el-form-item>
53
       <el-form-item class="specialFormItem" label="优惠金额:">
53
       <el-form-item class="specialFormItem" label="优惠金额:">
54
         <div style="display:flex;">
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
         </div>
56
         </div>
57
       </el-form-item>
57
       </el-form-item>
58
       <el-form-item label="实收金额:">
58
       <el-form-item label="实收金额:">
59
         <div style="display:flex;">
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
         </div>
61
         </div>
62
       </el-form-item>
62
       </el-form-item>
63
       <el-form-item label="找回金额:">
63
       <el-form-item label="找回金额:">
151
         this.form.private_price = total
151
         this.form.private_price = total
152
         this.form.pay_price = total
152
         this.form.pay_price = total
153
         this.form.total = total + this.form.medical_insurance_price
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
         this.visibility = true
157
         this.visibility = true
156
 
158
 
174
         let form = {}
176
         let form = {}
175
         form = this.form
177
         form = this.form
176
         return form
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
     },mounted() {
201
     },mounted() {
179
       var nowDate = new Date()
202
       var nowDate = new Date()

+ 2 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Bestand weergeven

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

+ 1 - 1
src/xt_pages/outpatientCharges/treatPrint.vue Bestand weergeven

82
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
82
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
83
 
83
 
84
       const style =
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
         printJS({
86
         printJS({
87
             printable: "prescription-print",
87
             printable: "prescription-print",
88
             type: "html",
88
             type: "html",

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

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
-            <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
         </div>
14
         </div>
15
         <div class="chargeBox">
15
         <div class="chargeBox">
16
             <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
16
             <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
49
                         <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
49
                         <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
50
                     </div>
50
                     </div>
51
                 </div>
51
                 </div>
52
-                <div style="width:80%;display:flex;height:600px;">
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>
78
             <p>找赎金:</p>
78
             <p>找赎金:</p>
79
         </div>
79
         </div>
80
         <div class="actionBar">
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
         </div>
83
         </div>
84
     </div>
84
     </div>
85
 </template>
85
 </template>
206
     line-height: 24px;
206
     line-height: 24px;
207
     padding:0 10px;
207
     padding:0 10px;
208
 }
208
 }
209
-.actionBar p{
209
+.actionBar div{
210
     width:150px;
210
     width:150px;
211
 }
211
 }
212
 </style>
212
 </style>

+ 7 - 11
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue Bestand weergeven

61
       <el-table-column align="center" prop="project_name" label="名称">
61
       <el-table-column align="center" prop="project_name" label="名称">
62
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
62
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
63
       </el-table-column>
63
       </el-table-column>
64
-      <el-table-column align="center" prop="statistical_classification" width="50" label="组">
64
+      <el-table-column align="center" prop="statistical_classification" width="100" label="组">
65
         <template slot-scope="scope">
65
         <template slot-scope="scope">
66
-          {{getGroup(scope.row.statistical_classification)}}
66
+          <div>{{getGroup(scope.row.statistical_classification)}}</div>
67
         </template>
67
         </template>
68
       </el-table-column>
68
       </el-table-column>
69
-      <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
69
+      <el-table-column align="center" prop="single_dose" width="100" label="单次用量">
70
         <template slot-scope="scope">
70
         <template slot-scope="scope">
71
           <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
71
           <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
72
           <div> {{scope.row.single_dose}}</div>
72
           <div> {{scope.row.single_dose}}</div>
80
 
80
 
81
         </template>
81
         </template>
82
       </el-table-column>
82
       </el-table-column>
83
-      <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
83
+      <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
84
         <template slot-scope="scope">
84
         <template slot-scope="scope">
85
           <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
85
           <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
86
           <div> {{scope.row.execution_frequency}}</div>
86
           <div> {{scope.row.execution_frequency}}</div>
87
 
87
 
88
         </template>
88
         </template>
89
       </el-table-column>
89
       </el-table-column>
90
-      <el-table-column align="center" prop="number_days" width="130" label="天数">
90
+      <el-table-column align="center" prop="number_days" width="100" label="天数">
91
         <template slot-scope="scope">
91
         <template slot-scope="scope">
92
           <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
92
           <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
93
           <div> {{scope.row.number_days}}</div>
93
           <div> {{scope.row.number_days}}</div>
94
 
94
 
95
         </template>
95
         </template>
96
       </el-table-column>
96
       </el-table-column>
97
-      <el-table-column align="center" prop="total" width="100" label="总量">
97
+      <el-table-column align="center" prop="total" width="80" label="总量">
98
         <template slot-scope="scope">
98
         <template slot-scope="scope">
99
-          <div style="display:flex;">
100
-            <!--<el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>-->
101
             <div> {{scope.row.total}}</div>
99
             <div> {{scope.row.total}}</div>
102
-
103
-          </div>
104
         </template>
100
         </template>
105
       </el-table-column>
101
       </el-table-column>
106
-      <el-table-column align="center" prop="name" width="50" label="单价">
102
+      <el-table-column align="center" prop="name" width="70" label="单价">
107
         <template slot-scope="scope">
103
         <template slot-scope="scope">
108
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
104
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
109
           <div> {{scope.row.price}}</div>
105
           <div> {{scope.row.price}}</div>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue Bestand weergeven

13
           </div>
13
           </div>
14
           <div class="infoMain">
14
           <div class="infoMain">
15
               <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
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
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
17
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
18
               <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19
               <div>地址:{{item.patient.home_address}}</div>
19
               <div>地址:{{item.patient.home_address}}</div>