Browse Source

收费美化

huangyw 3 years ago
parent
commit
d58b63e37b

+ 44 - 46
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

@@ -18,31 +18,26 @@
18 18
         width="40"
19 19
         label="序号"
20 20
       ></el-table-column>
21
-      <el-table-column align="center" prop="name" width="100" label="名称">
21
+      <el-table-column align="center" prop="name" width="400" label="名称">
22 22
         <template slot-scope="scope"
23 23
           ><span :title="scope.row.drug_name">{{
24 24
             scope.row.drug_name
25 25
           }}</span></template
26 26
         >
27 27
       </el-table-column>
28
-
29
-      <el-table-column align="center" prop="name" width="90" label="单次用量">
28
+      <el-table-column align="center" prop="name" width="80" label="单次用量">
30 29
         <template slot-scope="scope">
31
-          <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
32
-          <div>
33
-            {{ scope.row.single_dose }}&nbsp;&nbsp;{{
34
-              scope.row.single_dose_unit
35
-            }}
36
-          </div>
30
+          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
31
+          <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>
37 32
         </template>
38 33
       </el-table-column>
39
-      <el-table-column align="center" prop="name" width="100" label="用法">
34
+      <el-table-column align="center" prop="name" width="80" label="用法">
40 35
         <template slot-scope="scope">
41 36
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
42 37
           <div>{{ scope.row.delivery_way }}</div>
43 38
         </template>
44 39
       </el-table-column>
45
-      <el-table-column align="center" prop="name" width="100" label="频率">
40
+      <el-table-column align="center" prop="name" width="80" label="频率">
46 41
         <template slot-scope="scope">
47 42
           <div>{{ scope.row.execution_frequency }}</div>
48 43
 
@@ -50,28 +45,25 @@
50 45
         </template>
51 46
       </el-table-column>
52 47
 
53
-      <el-table-column align="center" prop="day" width="50" label="天数">
48
+      <el-table-column align="center" prop="day" width="80" label="天数">
54 49
         <template slot-scope="scope">{{ scope.row.day }}天</template>
55 50
       </el-table-column>
56 51
 
57
-      <el-table-column align="center" prop="name" width="100" label="总量">
58
-        <template slot-scope="scope">
59
-          <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
60
-          <div>
61
-            {{ scope.row.prescribing_number }}&nbsp;&nbsp;{{
62
-              scope.row.prescribing_number_unit
63
-            }}
64
-          </div>
65
-        </template>
52
+      <el-table-column align="center" prop="name" width="80" label="总量">
53
+        <template slot-scope="scope"
54
+          >{{ scope.row.prescribing_number
55
+          }}{{ scope.row.prescribing_number_unit }}</template
56
+        >
66 57
       </el-table-column>
67
-      <el-table-column align="center" prop="name" width="60" label="单价">
58
+      <el-table-column align="center" prop="name" width="100" label="单价">
68 59
         <template slot-scope="scope">
69 60
           <div>{{ scope.row.retail_price }}元</div>
70 61
 
71 62
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
72 63
         </template>
73 64
       </el-table-column>
74
-      <el-table-column align="center" prop="name" width="60" label="总价">
65
+
66
+      <el-table-column align="center" prop="name" width="100" label="总价">
75 67
         <template slot-scope="scope">
76 68
           <div>
77 69
             {{
@@ -85,13 +77,13 @@
85 77
         </template>
86 78
       </el-table-column>
87 79
 
88
-      <el-table-column align="center" prop="name" width="60" label="全自费金额">
80
+      <el-table-column align="center" prop="name" width="80" label="全自费金额">
89 81
         <template slot-scope="scope">
90 82
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
91 83
         </template>
92 84
       </el-table-column>
93 85
 
94
-      <el-table-column align="center" prop="name" width="60" label="超限价金额">
86
+      <el-table-column align="center" prop="name" width="80" label="超限价金额">
95 87
         <template slot-scope="scope">
96 88
           <div>{{ scope.row.overlmt_amt }}元</div>
97 89
         </template>
@@ -100,7 +92,7 @@
100 92
       <el-table-column
101 93
         align="center"
102 94
         prop="name"
103
-        width="60"
95
+        width="80"
104 96
         label="先行自付金额"
105 97
       >
106 98
         <template slot-scope="scope">
@@ -111,7 +103,7 @@
111 103
       <el-table-column
112 104
         align="center"
113 105
         prop="name"
114
-        width="60"
106
+        width="70"
115 107
         label="符合正常范围金额"
116 108
       >
117 109
         <template slot-scope="scope">
@@ -119,7 +111,7 @@
119 111
         </template>
120 112
       </el-table-column>
121 113
 
122
-      <el-table-column align="center" prop="name" width="50" label="备注">
114
+      <el-table-column align="center" prop="name" width="60" label="备注">
123 115
         <template slot-scope="scope">
124 116
           <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
125 117
           <div>{{ scope.row.remark }}</div>
@@ -144,7 +136,12 @@
144 136
         width="40"
145 137
         label="序号"
146 138
       ></el-table-column>
147
-      <el-table-column align="center" prop="project_name" width="100" label="名称">
139
+      <el-table-column
140
+        align="center"
141
+        prop="project_name"
142
+        width="400"
143
+        label="名称"
144
+      >
148 145
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
149 146
       </el-table-column>
150 147
       <el-table-column
@@ -157,15 +154,17 @@
157 154
           getGroup(scope.row.statistical_classification)
158 155
         }}</template>
159 156
       </el-table-column>
157
+
160 158
       <el-table-column
161 159
         align="center"
162 160
         prop="single_dose"
163 161
         width="80"
164 162
         label="单次用量"
165 163
       >
166
-        <template slot-scope="scope"
167
-          >{{ scope.row.single_dose }}{{ scope.row.unit }}</template
168
-        >
164
+        <template slot-scope="scope">
165
+          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
166
+          {{ scope.row.single_dose }}{{ scope.row.unit }}
167
+        </template>
169 168
       </el-table-column>
170 169
       <el-table-column
171 170
         align="center"
@@ -192,7 +191,7 @@
192 191
       <el-table-column
193 192
         align="center"
194 193
         prop="number_days"
195
-        width="50"
194
+        width="80"
196 195
         label="天数"
197 196
       >
198 197
         <template slot-scope="scope">
@@ -200,36 +199,35 @@
200 199
           {{ scope.row.number_days }}天
201 200
         </template>
202 201
       </el-table-column>
203
-      <el-table-column align="center" prop="total" width="50" label="总量">
202
+
203
+      <el-table-column align="center" prop="total" width="80" label="总量">
204 204
         <template slot-scope="scope">
205
-          <div style="display: flex">
206
-            <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
207
-            {{ scope.row.total }} {{ scope.row.unit }}
208
-          </div>
205
+          <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
206
+          {{ scope.row.total }} {{ scope.row.unit }}
209 207
         </template>
210 208
       </el-table-column>
211
-      <el-table-column align="center" prop="name" width="50" label="单价">
209
+
210
+      <el-table-column align="center" prop="name" width="100" label="单价">
212 211
         <template slot-scope="scope">
213 212
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
214 213
           {{ scope.row.price }}元
215 214
         </template>
216 215
       </el-table-column>
217 216
 
218
-      <el-table-column align="center" prop="name" width="60" label="总价">
217
+       <el-table-column align="center" prop="name" width="100" label="总价">
219 218
         <template slot-scope="scope">
220
-          <div>{{ (scope.row.total * scope.row.price).toFixed(2) }}元</div>
221
-
222 219
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
220
+          {{ (scope.row.total * scope.row.price).toFixed(2) }}元
223 221
         </template>
224 222
       </el-table-column>
225 223
 
226
-      <el-table-column align="center" prop="name" width="60" label="全自费金额">
224
+      <el-table-column align="center" prop="name" width="80" label="全自费金额">
227 225
         <template slot-scope="scope">
228 226
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
229 227
         </template>
230 228
       </el-table-column>
231 229
 
232
-      <el-table-column align="center" prop="name" width="60" label="超限价金额">
230
+      <el-table-column align="center" prop="name" width="80" label="超限价金额">
233 231
         <template slot-scope="scope">
234 232
           <div>{{ scope.row.overlmt_amt }}元</div>
235 233
         </template>
@@ -238,7 +236,7 @@
238 236
       <el-table-column
239 237
         align="center"
240 238
         prop="name"
241
-        width="60"
239
+        width="80"
242 240
         label="先行自付金额"
243 241
       >
244 242
         <template slot-scope="scope">
@@ -249,7 +247,7 @@
249 247
       <el-table-column
250 248
         align="center"
251 249
         prop="name"
252
-        width="60"
250
+        width="70"
253 251
         label="符合正常范围金额"
254 252
       >
255 253
         <template slot-scope="scope">

+ 34 - 25
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -6,7 +6,6 @@
6 6
       border
7 7
       style="width: 99%"
8 8
       :row-style="changColor"
9
-      :row-class-name="tableRowClassName"
10 9
       :header-cell-style="{
11 10
         color: '#606266',
12 11
       }"
@@ -19,7 +18,13 @@
19 18
         width="40"
20 19
         label="序号"
21 20
       ></el-table-column>
22
-      <el-table-column fixed align="center" prop="name" width="400" label="名称">
21
+      <el-table-column
22
+        fixed
23
+        align="center"
24
+        prop="name"
25
+        width="400"
26
+        label="名称"
27
+      >
23 28
         <template slot-scope="scope"
24 29
           ><span :title="scope.row.drug_name">{{
25 30
             scope.row.drug_name
@@ -27,14 +32,10 @@
27 32
         >
28 33
       </el-table-column>
29 34
 
30
-      <el-table-column align="center" prop="name" width="70" label="单次用量">
35
+      <el-table-column align="center" prop="name" width="80" label="单次用量">
31 36
         <template slot-scope="scope">
32
-          <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
33
-          <div>
34
-            {{ scope.row.single_dose }}&nbsp;&nbsp;{{
35
-              scope.row.single_dose_unit
36
-            }}
37
-          </div>
37
+          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
38
+          <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>
38 39
         </template>
39 40
       </el-table-column>
40 41
       <el-table-column align="center" prop="name" width="80" label="用法">
@@ -54,17 +55,18 @@
54 55
       <el-table-column align="center" prop="day" width="80" label="天数">
55 56
         <template slot-scope="scope">{{ scope.row.day }}天</template>
56 57
       </el-table-column>
57
-
58 58
       <el-table-column align="center" prop="name" width="80" label="总量">
59
+        <template slot-scope="scope">{{ scope.row.prescribing_number }}{{scope.row.prescribing_number_unit}}</template>
60
+      </el-table-column>
61
+      <!-- <el-table-column align="center" prop="name" width="80" label="总量">
59 62
         <template slot-scope="scope">
60
-          <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
61 63
           <div>
62
-            {{ scope.row.prescribing_number }}&nbsp;&nbsp;{{
64
+            {{ scope.row.prescribing_number }} {{
63 65
               scope.row.prescribing_number_unit
64 66
             }}
65 67
           </div>
66 68
         </template>
67
-      </el-table-column>
69
+      </el-table-column> -->
68 70
       <el-table-column align="center" prop="name" width="80" label="单价">
69 71
         <template slot-scope="scope">
70 72
           <div>{{ scope.row.retail_price }}元</div>
@@ -163,7 +165,13 @@
163 165
         width="40"
164 166
         label="序号"
165 167
       ></el-table-column>
166
-      <el-table-column fixed align="center" prop="project_name" width="400" label="名称">
168
+      <el-table-column
169
+        fixed
170
+        align="center"
171
+        prop="project_name"
172
+        width="400"
173
+        label="名称"
174
+      >
167 175
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
168 176
       </el-table-column>
169 177
       <el-table-column
@@ -347,17 +355,18 @@ export default {
347 355
   },
348 356
   methods: {
349 357
     changColor({ row, rowIndex }) {
350
-     if (rowIndex % 2 == 1) { // 变颜色的条件
351
-		return {
352
-		backgroundColor: "#C4E1FF",
353
-    color: '#303133'  // 这个return的就是样式 可以是color 也可以是backgroundColor
354
-		}
355
-	}else{
356
-    return {
357
-      backgroundColor:"#ACD6FF",
358
-      color: '#303133'
359
-    }
360
-  }
358
+      if (rowIndex % 2 == 1) {
359
+        // 变颜色的条件
360
+        return {
361
+          backgroundColor: "#C4E1FF",
362
+          color: "#303133", // 这个return的就是样式 可以是color 也可以是backgroundColor
363
+        };
364
+      } else {
365
+        return {
366
+          backgroundColor: "#ACD6FF",
367
+          color: "#303133",
368
+        };
369
+      }
361 370
     },
362 371
 
363 372
     getName(id) {