Browse Source

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

csx 2 years ago
parent
commit
0abf965e4a

+ 11 - 11
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -101,7 +101,8 @@
101 101
               for (let i = 0; i < med_chrgitm_types.length; i++) {
102 102
                 let obj = {
103 103
                   total: 0,
104
-                  details: []
104
+                  details: [],
105
+                  is_total:0,
105 106
                 }
106 107
                 let tempDetails = []
107 108
                 for (let b = 0; b < order_info.length; b++) {
@@ -111,15 +112,13 @@
111 112
                 }
112 113
 
113 114
                 obj.details = this.setNewData(tempDetails)
114
-                // obj.total = this.getTotal(obj.details)
115
-                //
116
-                // obj.details.push({
117
-                //   total: obj.total,
118
-                //   is_total: 1,
119
-                // })
120 115
                 this.list =  this.list.concat(obj.details)
121 116
               }
122 117
 
118
+              let newobj = {}
119
+              newobj['total'] = this.order.medfee_sumamt
120
+              newobj['is_total'] = 1
121
+              this.list.push(newobj)
123 122
 
124 123
             }else{
125 124
 
@@ -210,7 +209,8 @@
210 209
             for (let a = 0; a < details.length; a++) {
211 210
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
212 211
                 obj['name'] = details[a].advice.advice_name
213
-                obj['spec'] = details[a].advice.drug.drug_spec
212
+                // obj['spec'] = details[a].advice.drug.drug_spec
213
+                obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
214 214
                 obj['unit'] = details[a].advice.drug.min_unit
215 215
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
216 216
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
@@ -232,14 +232,14 @@
232 232
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
233 233
                if( details[a].project.type == 2){
234 234
                  obj['name'] = details[a].project.project.project_name
235
-                 obj['spec'] = ''
235
+                 obj['spec'] = ''
236 236
                  obj['unit'] = details[a].project.project.unit
237 237
 
238 238
 
239 239
                }else if(details[a].project.type == 3){
240 240
                  obj['name'] = details[a].project.good_info.good_name
241
-                 obj['spec'] = details[a].project.good_info.specification_name
242
-                 obj['unit'] = this.getGoodUnit( details[a].project.good_info.good_unit)
241
+                 obj['spec'] = ''
242
+                 obj['unit'] = details[a].project.good_info.packing_unit
243 243
 
244 244
                }
245 245
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)

+ 4 - 4
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue View File

@@ -150,7 +150,7 @@ export default {
150 150
 }
151 151
 
152 152
 .allListTitle {
153
-  font-size: 24px;
153
+  font-size: 22px;
154 154
   text-align: center;
155 155
   font-weight: bold;
156 156
   margin-bottom: 10px;
@@ -158,7 +158,7 @@ export default {
158 158
 
159 159
 .allListInfo {
160 160
   display: flex;
161
-  font-size: 16px;
161
+  font-size: 14px;
162 162
   justify-content: space-between;
163 163
   margin: 10px 0;
164 164
 }
@@ -168,7 +168,7 @@ export default {
168 168
   text-align: center;
169 169
   border-collapse: collapse;
170 170
   line-height: 20px;
171
-  font-size: 14px;
171
+  font-size: 12px;
172 172
   border-color: #000;
173 173
   text-align: left;
174 174
 }
@@ -178,7 +178,7 @@ export default {
178 178
 }
179 179
 
180 180
 .tableBottom {
181
-  font-size: 16px;
181
+  font-size: 14px;
182 182
   display: flex;
183 183
   margin-top: 20px;
184 184
 }

+ 19 - 11
src/xt_pages/outpatientCharges/allListTemplate/summaryPrint.vue View File

@@ -16,16 +16,16 @@
16 16
 
17 17
     <div class="allListInfo">
18 18
       <div>西药:&nbsp;&nbsp;&nbsp;{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
19
-      <div >中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
20
-      <div >中草药:</div>
21
-      <div >检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
19
+      <div>中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
20
+      <div>中草药:</div>
21
+      <div>检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
22 22
     </div>
23 23
 
24 24
 
25 25
     <div class="allListInfo">
26
-      <div >输氧费:</div>
26
+      <div>输氧费:</div>
27 27
       <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
28
-      <div >化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
28
+      <div>化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
29 29
       <div>输血费:</div>
30 30
     </div>
31 31
 
@@ -87,7 +87,6 @@
87 87
       <tr>
88 88
         <td style="width:10%">费用类别</td>
89 89
         <td style="width:35%">项目名称</td>
90
-        <td style="width:15%">规格</td>
91 90
         <td style="width:5%">单位</td>
92 91
         <td style="width:10%">数量</td>
93 92
         <td style="width:10%">单价</td>
@@ -96,17 +95,26 @@
96 95
 
97 96
       </tr>
98 97
       <template v-for='(item,index) in list'>
99
-        <tr>
98
+        <tr v-if="item.is_total == 2">
100 99
           <td style="width:10%">{{ item.med_chrgitm_type }}</td>
101
-          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}</td>
102
-          <td style="width:15%">{{ item.spec }}</td>
100
+          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}{{ item.spec }}</td>
103 101
           <td style="width:5%">{{ item.unit }}</td>
104
-          <td style="width:10%">{{ item.count }}</td>
105
-          <td style="width:10%;text-align:right;">{{ item.price }}</td>
102
+          <td style="width:10%;text-align:right;">{{ item.count }}</td>
103
+          <td style="width:10%;text-align:right;">{{ item.price.toFixed(4) }}</td>
106 104
           <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
107 105
           <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
108 106
 
109 107
         </tr>
108
+        <tr v-if="item.is_total == 1">
109
+          <td style="width:10%"></td>
110
+          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">合计</td>
111
+          <td style="width:5%"></td>
112
+          <td style="width:10%;text-align:right;"></td>
113
+          <td style="width:10%;text-align:right;"></td>
114
+          <td style="width:10%;text-align:right;">{{ item.total }}</td>
115
+          <td style="width:10%"></td>
116
+
117
+        </tr>
110 118
       </template>
111 119
     </table>
112 120
 

+ 18 - 4
src/xt_pages/outpatientCharges/listPrint.vue View File

@@ -100,7 +100,7 @@
100 100
               var infos = response.data.data.order_info[i]
101 101
               let obj = {
102 102
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
103
-                price: infos.pric,
103
+                price: infos.pric.toFixed(4),
104 104
                 count: infos.cnt
105 105
               }
106 106
               console.log(infos)
@@ -112,12 +112,14 @@
112 112
                   obj['name'] = infos.project.project.project_name
113 113
                   obj['spec'] = ''
114 114
                   obj['unit'] =  infos.project.project.unit
115
+                  obj['is_total']= 0
115 116
 
116 117
 
117 118
                 }else if (infos.project.type == 3){
118 119
                   obj['name'] = infos.project.good_info.good_name
119
-                  obj['spec'] = infos.project.good_info.specification_name
120
-                  obj['unit'] = this.getGoodUnit(infos.project.good_info.good_unit)
120
+                  obj['spec'] = ""
121
+                  obj['unit'] = infos.project.good_info.packing_unit
122
+                  obj['is_total']= 0
121 123
 
122 124
                 }
123 125
 
@@ -125,9 +127,13 @@
125 127
 
126 128
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
127 129
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
128
-                obj['name'] = infos.advice.advice_name
130
+                obj['name'] = infos.advice.drug.drug_name
129 131
                 obj['unit'] = infos.advice.drug.min_unit
130 132
                 obj['feedetl_sn'] =  infos.feedetl_sn
133
+                obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
134
+                obj['is_total']= 0
135
+
136
+                // v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
131 137
 
132 138
 
133 139
               }
@@ -136,7 +142,15 @@
136 142
                 return b.p_time < a.p_time ? 1 : -1
137 143
               })
138 144
 
145
+
139 146
             }
147
+
148
+
149
+            let newObj = {}
150
+            newObj['name'] = "合计"
151
+            newObj['price']= this.order.medfee_sumamt
152
+            newObj['is_total']= 1
153
+            this.list.push(newObj)
140 154
           }
141 155
         })
142 156
       },

+ 26 - 18
src/xt_pages/outpatientCharges/listTemplate/listPrintTwo.vue View File

@@ -2,49 +2,57 @@
2 2
   <div id="allList-print" class="allList-print">
3 3
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用清单</div>
4 4
       <div class="allListInfo">
5
-        <div>患者姓名:{{ patient.name }}</div>
6
-        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
-        <div>结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8
-        <div>发票号码:</div>
5
+        <div style="text-align:left;">患者姓名:{{ patient.name }}</div>
6
+        <div style="text-align:left;padding-left: -20px">性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
+        <div style="text-align:left;">结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8
+<!--        <div>发票号码:</div>-->
9 9
       </div>
10 10
 
11 11
     <div class="allListInfo">
12
-        <div>住院/门诊号:{{order.mdtrt_id}}</div>
13
-        <div>科室:血透</div>
14
-        <div>就诊流水号:{{order.mdtrt_id}}</div>
15
-        <div>总费用:{{order.medfee_sumamt}}</div>
12
+        <div style="text-align:left;">住院/门诊号:{{order.mdtrt_id}}</div>
13
+        <div style="text-align:left;">科室:血透</div>
14
+        <div style="text-align:left;">就诊流水号:{{order.mdtrt_id}}</div>
16 15
     </div>
17 16
 
18 17
       <div class="allListInfo">
19
-
20
-      <div>个人支付:{{order.psn_part_amt}}</div>
21
-        <div>基金支付记账:{{order.fund_pay_sumamt}}</div>
22
-        <div>补充医疗支付记账:0.00</div>
23
-        <div>救助支付金额:{{order.maf_pay}}</div>
18
+        <div style="text-align:left;">总费用:{{order.medfee_sumamt}}</div>
19
+        <div style="text-align:left;">个人支付:{{order.psn_part_amt}}</div>
20
+        <div style="text-align:left;">基金支付记账:{{order.fund_pay_sumamt}}</div>
21
+        <div style="text-align:left;">补充医疗支付记账:0.00</div>
22
+        <div style="text-align:left;">救助支付金额:{{order.maf_pay}}</div>
24 23
       </div>
25 24
       <table class="allListTable" border="1">
26 25
         <tr>
27 26
           <td style="width:5%">序号</td>
28 27
           <td style="width:15%">处方日期</td>
29 28
           <td style="width:10%">费用编号</td>
30
-          <td style="width:30%">费用名称</td>
31
-          <td style="width:10%">规格</td>
29
+          <td style="width:40%">费用名称</td>
32 30
           <td style="width:5%">单位</td>
33 31
           <td style="width:5%">数量</td>
34 32
           <td style="width:10%">单价</td>
35 33
           <td style="width:10%">金额</td>
36 34
         </tr>
37 35
         <template v-for='(item,index) in list'>
38
-          <tr>
36
+          <tr v-if="item.is_total == 0">
39 37
             <td style="width:5%">{{index + 1}}</td>
40 38
             <td style="width:15%">{{item.p_time}}</td>
41 39
             <td style="width:10%">{{item.feedetl_sn.split("-")[2]}}</td>
42
-            <td style="width:40%;white-space: nowrap;overflow: hidden;">{{item.name}}/{{item.spec}}</td>
40
+            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}{{item.spec}}</td>
43 41
             <td style="width:5%">{{item.unit}}</td>
44
-            <td style="width:5%">{{ item.count }}</td>
42
+            <td style="width:5%;text-align:right;">{{ item.count }}</td>
45 43
             <td style="width:10%;text-align:right;">{{ item.price }}</td>
46 44
             <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
47 45
           </tr>
46
+          <tr v-if="item.is_total == 1">
47
+            <td style="width:5%"></td>
48
+            <td style="width:15%"></td>
49
+            <td style="width:10%"></td>
50
+            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}</td>
51
+            <td style="width:5%"></td>
52
+            <td style="width:5%"></td>
53
+            <td style="width:10%;text-align:right;"></td>
54
+            <td style="width:10%;text-align:right;">{{ item.price}}</td>
55
+          </tr>
48 56
         </template>
49 57
       </table>
50 58
 

+ 14 - 14
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -85,20 +85,20 @@
85 85
 
86 86
 
87 87
           <div>
88
-            <el-button size="small"
89
-                       @click="openZb(1)"
90
-                       type="primary">登记
91
-            </el-button>
92
-
93
-            <el-button  size="small"
94
-                       @click="openZb(2)"
95
-                       type="primary">记账
96
-            </el-button>
97
-
98
-            <el-button   size="small"
99
-                       @click="openZb(3)"
100
-                       type="primary">撤销记账
101
-            </el-button>
88
+<!--            <el-button size="small"-->
89
+<!--                       @click="openZb(1)"-->
90
+<!--                       type="primary">登记-->
91
+<!--            </el-button>-->
92
+
93
+<!--            <el-button  size="small"-->
94
+<!--                       @click="openZb(2)"-->
95
+<!--                       type="primary">记账-->
96
+<!--            </el-button>-->
97
+
98
+<!--            <el-button   size="small"-->
99
+<!--                       @click="openZb(3)"-->
100
+<!--                       type="primary">撤销记账-->
101
+<!--            </el-button>-->
102 102
 
103 103
 
104 104
             <el-button v-loading="loadingone" size="small"