瀏覽代碼

收费美化

huangyw 3 年之前
父節點
當前提交
d58b63e37b

+ 44 - 46
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue 查看文件

18
         width="40"
18
         width="40"
19
         label="序号"
19
         label="序号"
20
       ></el-table-column>
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
         <template slot-scope="scope"
22
         <template slot-scope="scope"
23
           ><span :title="scope.row.drug_name">{{
23
           ><span :title="scope.row.drug_name">{{
24
             scope.row.drug_name
24
             scope.row.drug_name
25
           }}</span></template
25
           }}</span></template
26
         >
26
         >
27
       </el-table-column>
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
         <template slot-scope="scope">
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
         </template>
32
         </template>
38
       </el-table-column>
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
         <template slot-scope="scope">
35
         <template slot-scope="scope">
41
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
36
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
42
           <div>{{ scope.row.delivery_way }}</div>
37
           <div>{{ scope.row.delivery_way }}</div>
43
         </template>
38
         </template>
44
       </el-table-column>
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
         <template slot-scope="scope">
41
         <template slot-scope="scope">
47
           <div>{{ scope.row.execution_frequency }}</div>
42
           <div>{{ scope.row.execution_frequency }}</div>
48
 
43
 
50
         </template>
45
         </template>
51
       </el-table-column>
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
         <template slot-scope="scope">{{ scope.row.day }}天</template>
49
         <template slot-scope="scope">{{ scope.row.day }}天</template>
55
       </el-table-column>
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
       </el-table-column>
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
         <template slot-scope="scope">
59
         <template slot-scope="scope">
69
           <div>{{ scope.row.retail_price }}元</div>
60
           <div>{{ scope.row.retail_price }}元</div>
70
 
61
 
71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
62
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
72
         </template>
63
         </template>
73
       </el-table-column>
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
         <template slot-scope="scope">
67
         <template slot-scope="scope">
76
           <div>
68
           <div>
77
             {{
69
             {{
85
         </template>
77
         </template>
86
       </el-table-column>
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
         <template slot-scope="scope">
81
         <template slot-scope="scope">
90
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
82
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
91
         </template>
83
         </template>
92
       </el-table-column>
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
         <template slot-scope="scope">
87
         <template slot-scope="scope">
96
           <div>{{ scope.row.overlmt_amt }}元</div>
88
           <div>{{ scope.row.overlmt_amt }}元</div>
97
         </template>
89
         </template>
100
       <el-table-column
92
       <el-table-column
101
         align="center"
93
         align="center"
102
         prop="name"
94
         prop="name"
103
-        width="60"
95
+        width="80"
104
         label="先行自付金额"
96
         label="先行自付金额"
105
       >
97
       >
106
         <template slot-scope="scope">
98
         <template slot-scope="scope">
111
       <el-table-column
103
       <el-table-column
112
         align="center"
104
         align="center"
113
         prop="name"
105
         prop="name"
114
-        width="60"
106
+        width="70"
115
         label="符合正常范围金额"
107
         label="符合正常范围金额"
116
       >
108
       >
117
         <template slot-scope="scope">
109
         <template slot-scope="scope">
119
         </template>
111
         </template>
120
       </el-table-column>
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
         <template slot-scope="scope">
115
         <template slot-scope="scope">
124
           <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
116
           <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
125
           <div>{{ scope.row.remark }}</div>
117
           <div>{{ scope.row.remark }}</div>
144
         width="40"
136
         width="40"
145
         label="序号"
137
         label="序号"
146
       ></el-table-column>
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
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
145
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
149
       </el-table-column>
146
       </el-table-column>
150
       <el-table-column
147
       <el-table-column
157
           getGroup(scope.row.statistical_classification)
154
           getGroup(scope.row.statistical_classification)
158
         }}</template>
155
         }}</template>
159
       </el-table-column>
156
       </el-table-column>
157
+
160
       <el-table-column
158
       <el-table-column
161
         align="center"
159
         align="center"
162
         prop="single_dose"
160
         prop="single_dose"
163
         width="80"
161
         width="80"
164
         label="单次用量"
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
       </el-table-column>
168
       </el-table-column>
170
       <el-table-column
169
       <el-table-column
171
         align="center"
170
         align="center"
192
       <el-table-column
191
       <el-table-column
193
         align="center"
192
         align="center"
194
         prop="number_days"
193
         prop="number_days"
195
-        width="50"
194
+        width="80"
196
         label="天数"
195
         label="天数"
197
       >
196
       >
198
         <template slot-scope="scope">
197
         <template slot-scope="scope">
200
           {{ scope.row.number_days }}天
199
           {{ scope.row.number_days }}天
201
         </template>
200
         </template>
202
       </el-table-column>
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
         <template slot-scope="scope">
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
         </template>
207
         </template>
210
       </el-table-column>
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
         <template slot-scope="scope">
211
         <template slot-scope="scope">
213
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
212
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
214
           {{ scope.row.price }}元
213
           {{ scope.row.price }}元
215
         </template>
214
         </template>
216
       </el-table-column>
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
         <template slot-scope="scope">
218
         <template slot-scope="scope">
220
-          <div>{{ (scope.row.total * scope.row.price).toFixed(2) }}元</div>
221
-
222
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
219
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
220
+          {{ (scope.row.total * scope.row.price).toFixed(2) }}元
223
         </template>
221
         </template>
224
       </el-table-column>
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
         <template slot-scope="scope">
225
         <template slot-scope="scope">
228
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
226
           <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
229
         </template>
227
         </template>
230
       </el-table-column>
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
         <template slot-scope="scope">
231
         <template slot-scope="scope">
234
           <div>{{ scope.row.overlmt_amt }}元</div>
232
           <div>{{ scope.row.overlmt_amt }}元</div>
235
         </template>
233
         </template>
238
       <el-table-column
236
       <el-table-column
239
         align="center"
237
         align="center"
240
         prop="name"
238
         prop="name"
241
-        width="60"
239
+        width="80"
242
         label="先行自付金额"
240
         label="先行自付金额"
243
       >
241
       >
244
         <template slot-scope="scope">
242
         <template slot-scope="scope">
249
       <el-table-column
247
       <el-table-column
250
         align="center"
248
         align="center"
251
         prop="name"
249
         prop="name"
252
-        width="60"
250
+        width="70"
253
         label="符合正常范围金额"
251
         label="符合正常范围金额"
254
       >
252
       >
255
         <template slot-scope="scope">
253
         <template slot-scope="scope">

+ 34 - 25
src/xt_pages/outpatientCharges/components/prescriptionTable.vue 查看文件

6
       border
6
       border
7
       style="width: 99%"
7
       style="width: 99%"
8
       :row-style="changColor"
8
       :row-style="changColor"
9
-      :row-class-name="tableRowClassName"
10
       :header-cell-style="{
9
       :header-cell-style="{
11
         color: '#606266',
10
         color: '#606266',
12
       }"
11
       }"
19
         width="40"
18
         width="40"
20
         label="序号"
19
         label="序号"
21
       ></el-table-column>
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
         <template slot-scope="scope"
28
         <template slot-scope="scope"
24
           ><span :title="scope.row.drug_name">{{
29
           ><span :title="scope.row.drug_name">{{
25
             scope.row.drug_name
30
             scope.row.drug_name
27
         >
32
         >
28
       </el-table-column>
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
         <template slot-scope="scope">
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
         </template>
39
         </template>
39
       </el-table-column>
40
       </el-table-column>
40
       <el-table-column align="center" prop="name" width="80" label="用法">
41
       <el-table-column align="center" prop="name" width="80" label="用法">
54
       <el-table-column align="center" prop="day" width="80" label="天数">
55
       <el-table-column align="center" prop="day" width="80" label="天数">
55
         <template slot-scope="scope">{{ scope.row.day }}天</template>
56
         <template slot-scope="scope">{{ scope.row.day }}天</template>
56
       </el-table-column>
57
       </el-table-column>
57
-
58
       <el-table-column align="center" prop="name" width="80" label="总量">
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
         <template slot-scope="scope">
62
         <template slot-scope="scope">
60
-          <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
61
           <div>
63
           <div>
62
-            {{ scope.row.prescribing_number }}&nbsp;&nbsp;{{
64
+            {{ scope.row.prescribing_number }} {{
63
               scope.row.prescribing_number_unit
65
               scope.row.prescribing_number_unit
64
             }}
66
             }}
65
           </div>
67
           </div>
66
         </template>
68
         </template>
67
-      </el-table-column>
69
+      </el-table-column> -->
68
       <el-table-column align="center" prop="name" width="80" label="单价">
70
       <el-table-column align="center" prop="name" width="80" label="单价">
69
         <template slot-scope="scope">
71
         <template slot-scope="scope">
70
           <div>{{ scope.row.retail_price }}元</div>
72
           <div>{{ scope.row.retail_price }}元</div>
163
         width="40"
165
         width="40"
164
         label="序号"
166
         label="序号"
165
       ></el-table-column>
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
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
175
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
168
       </el-table-column>
176
       </el-table-column>
169
       <el-table-column
177
       <el-table-column
347
   },
355
   },
348
   methods: {
356
   methods: {
349
     changColor({ row, rowIndex }) {
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
     getName(id) {
372
     getName(id) {