|
@@ -22,7 +22,7 @@
|
22
|
22
|
</el-autocomplete>
|
23
|
23
|
</div>
|
24
|
24
|
<div style="flex: 1;text-align: right;">
|
25
|
|
- <el-button type="primary">扣减配置</el-button>
|
|
25
|
+ <el-button type="primary" @click="toSetting">扣减配置</el-button>
|
26
|
26
|
</div>
|
27
|
27
|
</div>
|
28
|
28
|
<div>
|
|
@@ -110,11 +110,29 @@
|
110
|
110
|
<div>
|
111
|
111
|
<div style="display: flex;justify-content: space-around;width: 60%;margin-bottom: 10px;">
|
112
|
112
|
<div>患者姓名:{{ patient.name }}</div>
|
113
|
|
- <div>HD次数:{{ patient.hd_count }}</div>
|
114
|
|
- <div>HDF次数:{{ patient.hdf_count }}</div>
|
115
|
|
- <div>HD+HP次数:{{ patient.hdhp_count }}</div>
|
116
|
|
- <div>HP次数: {{ patient.hp_count }}</div>
|
117
|
|
- <div>其他次数:{{ patient.other_count }}</div>
|
|
113
|
+ <div>HD次数:
|
|
114
|
+ <span v-if="patient.hd_count>0">
|
|
115
|
+ {{ patient.hd_count }}
|
|
116
|
+ </span>
|
|
117
|
+ </div>
|
|
118
|
+ <div>HDF次数:
|
|
119
|
+ <span v-if="patient.hdf_count>0">{{ patient.hdf_count }}</span>
|
|
120
|
+ </div>
|
|
121
|
+ <div>HD+HP次数:
|
|
122
|
+ <span v-if="patient.hdhp_count>0">
|
|
123
|
+ {{ patient.hdhp_count }}
|
|
124
|
+ </span>
|
|
125
|
+ </div>
|
|
126
|
+ <div>HP次数:
|
|
127
|
+ <span v-if="patient.hp_count>0">
|
|
128
|
+ {{ patient.hp_count }}
|
|
129
|
+ </span>
|
|
130
|
+ </div>
|
|
131
|
+ <div>其他次数:
|
|
132
|
+ <span v-if="patient.other_count>0">
|
|
133
|
+ {{ patient.other_count }}
|
|
134
|
+ </span>
|
|
135
|
+ </div>
|
118
|
136
|
</div>
|
119
|
137
|
<div style="display: flex;justify-content: space-around;">
|
120
|
138
|
<div>
|
|
@@ -179,7 +197,7 @@
|
179
|
197
|
</template>
|
180
|
198
|
</el-table-column>
|
181
|
199
|
<el-table-column prop="HDF" label="透析类型">
|
182
|
|
- <template slot-scop="scope">
|
|
200
|
+ <template slot-scope="scope">
|
183
|
201
|
<span v-if="scope.row.mode_id==1">HD</span>
|
184
|
202
|
<span v-if="scope.row.mode_id==2">HDF</span>
|
185
|
203
|
<span v-if="scope.row.mode_id==3">HD+HP</span>
|
|
@@ -217,11 +235,23 @@
|
217
|
235
|
</div>
|
218
|
236
|
</div>
|
219
|
237
|
</el-dialog>
|
|
238
|
+
|
|
239
|
+ <el-dialog title="设置" :visible.sync="editDialogVisible" width="30%">
|
|
240
|
+ <span style="font-size: 17px">是否开启下机自动扣减</span>
|
|
241
|
+ <span style="display: block; padding: 18px 25px">
|
|
242
|
+ <el-radio v-model="is_open" label="1">是</el-radio>
|
|
243
|
+ <el-radio v-model="is_open" label="2">否</el-radio>
|
|
244
|
+ </span>
|
|
245
|
+ <span slot="footer" class="dialog-footer">
|
|
246
|
+ <el-button @click="editDialogVisible = false">取 消</el-button>
|
|
247
|
+ <el-button type="primary" @click="SaveSetting">保 存</el-button>
|
|
248
|
+ </span>
|
|
249
|
+ </el-dialog>
|
220
|
250
|
</div>
|
221
|
251
|
</template>
|
222
|
252
|
|
223
|
253
|
<script>
|
224
|
|
-import {getPatientMapList,getPatientCountMapList,getPatientCountFlow } from "@/api/patient"
|
|
254
|
+import {getPatientMapList,getPatientCountMapList,getPatientCountFlow,getDialysisOrderSetting,savePatientOrderSetting } from "@/api/patient"
|
225
|
255
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
226
|
256
|
import { uParseTime } from "@/utils/tools";
|
227
|
257
|
import patient from "../../router/modules/patient";
|
|
@@ -266,10 +296,37 @@ export default {
|
266
|
296
|
end_time:"",
|
267
|
297
|
is_type:0,
|
268
|
298
|
mode_id:0,
|
269
|
|
- patient:{}
|
|
299
|
+ patient:{},
|
|
300
|
+ editDialogVisible:false,
|
|
301
|
+ is_open:"2",
|
270
|
302
|
}
|
271
|
303
|
},
|
272
|
304
|
methods: {
|
|
305
|
+ toSetting(){
|
|
306
|
+ getDialysisOrderSetting().then(response=>{
|
|
307
|
+ if(response.data.state == 1){
|
|
308
|
+ var order = response.data.data.order
|
|
309
|
+ if(order!=undefined && order.id>0){
|
|
310
|
+ this.is_open =order.is_open.toString()
|
|
311
|
+ }
|
|
312
|
+
|
|
313
|
+ }
|
|
314
|
+ })
|
|
315
|
+ this.editDialogVisible = true
|
|
316
|
+ },
|
|
317
|
+ SaveSetting(){
|
|
318
|
+ var params = {
|
|
319
|
+ is_open:parseInt(this.is_open)
|
|
320
|
+ }
|
|
321
|
+ savePatientOrderSetting(params).then(response=>{
|
|
322
|
+ if(response.data.state == 1){
|
|
323
|
+ var order = response.data.data.order
|
|
324
|
+ this.$message.success("保存成功!")
|
|
325
|
+ this.editDialogVisible = false
|
|
326
|
+
|
|
327
|
+ }
|
|
328
|
+ })
|
|
329
|
+ },
|
273
|
330
|
getAdminUser(creater){
|
274
|
331
|
var user_name = ""
|
275
|
332
|
for(let i=0;i<this.userList.length;i++){
|
|
@@ -346,9 +403,8 @@ export default {
|
346
|
403
|
this.details_click(this.patient_id)
|
347
|
404
|
},
|
348
|
405
|
details_click(patient_id){
|
349
|
|
- this.patient_id = 0
|
350
|
|
- this.patient_id = patient_id
|
351
|
|
- this.details_show=true
|
|
406
|
+ this.patient_id = 0
|
|
407
|
+ this.patient_id = patient_id
|
352
|
408
|
var params = {
|
353
|
409
|
patient_id:patient_id,
|
354
|
410
|
start_time:this.start_time,
|
|
@@ -358,9 +414,10 @@ export default {
|
358
|
414
|
}
|
359
|
415
|
getPatientCountFlow(params).then(response=>{
|
360
|
416
|
if(response.data.state == 1){
|
|
417
|
+ this.details_show=true
|
361
|
418
|
var list = response.data.data.list
|
362
|
|
- this.tableList = []
|
363
|
|
- this.tableList = list
|
|
419
|
+ this.tableData = []
|
|
420
|
+ this.tableData = list
|
364
|
421
|
var total = response.data.data.total
|
365
|
422
|
this.total_one = total
|
366
|
423
|
var patient= response.data.data.patient
|