|
@@ -16,31 +16,52 @@
|
16
|
16
|
<div class="configTable">
|
17
|
17
|
<el-table :data="configuraData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
|
18
|
18
|
<el-table-column prop="date" label="检验检查大项" width="180">
|
19
|
|
- <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
|
19
|
+ <template slot-scope="scope">
|
|
20
|
+ <span v-if="scope.row.is_status == 1">{{ scope.row.project_name }}</span>
|
|
21
|
+ <span v-if="scope.row.is_status == 0 && scope.row.inspection_major == 0">血压</span>
|
|
22
|
+ </template>
|
20
|
23
|
</el-table-column>
|
21
|
24
|
<el-table-column prop="name" label="检查小项" width="300">
|
22
|
|
- <template slot-scope="scope">{{ scope.row.item_name }}</template>
|
|
25
|
+ <template slot-scope="scope">
|
|
26
|
+ <span v-if="scope.row.is_status == 1">{{ scope.row.item_name }}</span>
|
|
27
|
+ <span v-if="scope.row.is_status == 0 && scope.row.inspection_minor == -1">收缩压</span>
|
|
28
|
+ <span v-if="scope.row.is_status == 0 && scope.row.inspection_minor == -2">舒张压</span>
|
|
29
|
+ </template>
|
23
|
30
|
</el-table-column>
|
24
|
31
|
<el-table-column prop="address" label="范围">
|
25
|
32
|
<template slot-scope="scope">
|
26
|
|
- <span v-if="scope.row.range_type == 1">
|
|
33
|
+ <span v-if="scope.row.range_type == 1 && scope.row.is_status == 1">
|
27
|
34
|
{{ scope.row.min_range }} - {{scope.row.large_range}}
|
28
|
35
|
</span>
|
29
|
|
- <span v-if="scope.row.range_type == 2">
|
|
36
|
+ <span v-if="scope.row.range_type == 2 && scope.row.is_status == 1 ">
|
30
|
37
|
{{scope.row.range_value}}
|
31
|
38
|
</span>
|
|
39
|
+ <span v-if="scope.row.is_status == 0">{{ scope.row.min_range }} - {{scope.row.large_range}}</span>
|
32
|
40
|
</template>
|
33
|
41
|
</el-table-column>
|
34
|
42
|
<el-table-column prop="address" label="单位">
|
35
|
|
- <template slot-scope="scope">{{ scope.row.unit }}</template>
|
|
43
|
+ <template slot-scope="scope">
|
|
44
|
+ <span v-if="scope.row.is_status == 1">
|
|
45
|
+ {{ scope.row.unit }}
|
|
46
|
+ </span>
|
|
47
|
+ <span v-if="scope.row.is_status == 0">
|
|
48
|
+ mmHg
|
|
49
|
+ </span>
|
|
50
|
+ </template>
|
36
|
51
|
</el-table-column>
|
37
|
52
|
<el-table-column prop="address" label="排序">
|
38
|
53
|
<template slot-scope="scope">{{ scope.row.sort }}</template>
|
39
|
54
|
</el-table-column>
|
40
|
55
|
<el-table-column label="操作" width="180">
|
41
|
56
|
<template slot-scope="scope">
|
42
|
|
- <el-button size="mini" type="primary" @click="handleEdit(scope.row.id)">编辑</el-button>
|
43
|
|
- <el-button size="mini" type="danger" @click="handleDelete(scope.row.id,scope.$index)">删除</el-button>
|
|
57
|
+ <span v-if="scope.row.is_status ==1">
|
|
58
|
+ <el-button size="mini" type="primary" @click="handleEdit(scope.row.id)">编辑</el-button>
|
|
59
|
+ <el-button size="mini" type="danger" @click="handleDelete(scope.row.id,scope.$index)">删除</el-button>
|
|
60
|
+ </span>
|
|
61
|
+ <span v-if="scope.row.is_status == 0">
|
|
62
|
+ <el-button size="mini" type="primary" @click="handleEditTwo(scope.row.id)">编辑</el-button>
|
|
63
|
+ <el-button size="mini" type="danger" :disabled ="true">删除</el-button>
|
|
64
|
+ </span>
|
44
|
65
|
</template>
|
45
|
66
|
</el-table-column>
|
46
|
67
|
</el-table>
|
|
@@ -48,8 +69,8 @@
|
48
|
69
|
<el-pagination
|
49
|
70
|
@size-change="handleSizeChange"
|
50
|
71
|
@current-change="handleCurrentChange"
|
51
|
|
- :page-sizes="[10, 20, 30, 100]"
|
52
|
|
- :page-size="10"
|
|
72
|
+ :page-sizes="[12, 20, 30, 100]"
|
|
73
|
+ :page-size="12"
|
53
|
74
|
background
|
54
|
75
|
style="margin-top:20px;float: right"
|
55
|
76
|
layout="total, sizes, prev, pager, next, jumper"
|
|
@@ -176,6 +197,34 @@
|
176
|
197
|
<el-button type="primary" @click="EditConfiguration('editform')">保 存</el-button>
|
177
|
198
|
</div>
|
178
|
199
|
</el-dialog>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+ <el-dialog title="编辑" :visible.sync="editDialogtwo">
|
|
203
|
+ <el-form :model="editform" ref="editform" :rules="rules">
|
|
204
|
+ <el-form-item label="检查大项:" :label-width="formLabelWidth" required prop="inspectionMajor">
|
|
205
|
+ <el-input v-model="editform.inspectionMajor" style="width:200px" :disabled="true"></el-input>
|
|
206
|
+ </el-form-item>
|
|
207
|
+ <el-form-item label="检查小项:" :label-width="formLabelWidth" required prop="inspectionMinor">
|
|
208
|
+ <el-input v-model="editform.inspectionMinor" style="width:200px" :disabled="true"></el-input>
|
|
209
|
+ </el-form-item>
|
|
210
|
+ <div style="display:flex;">
|
|
211
|
+ <el-form-item label="质控范围:" :label-width="formLabelWidth" required prop="min_range">
|
|
212
|
+ <el-input style="width:200px" v-model="editform.min_range"></el-input>
|
|
213
|
+ </el-form-item>
|
|
214
|
+ <span style="margin-top:10px">-</span>
|
|
215
|
+ <el-form-item class='newFormItem' :label-width="formLabelWidth" required prop="large_range">
|
|
216
|
+ <el-input style="width:200px" v-model="editform.large_range"></el-input>
|
|
217
|
+ </el-form-item>
|
|
218
|
+ </div>
|
|
219
|
+ <el-form-item label="排序:" :label-width="formLabelWidth">
|
|
220
|
+ <el-input style="width:200px" v-model="editform.sort"></el-input>
|
|
221
|
+ </el-form-item>
|
|
222
|
+ </el-form>
|
|
223
|
+ <div slot="footer" class="dialog-footer">
|
|
224
|
+ <el-button @click="editDialogtwo = false">取 消</el-button>
|
|
225
|
+ <el-button type="primary" @click="EditBloodPrussre('editform')">保 存</el-button>
|
|
226
|
+ </div>
|
|
227
|
+ </el-dialog>
|
179
|
228
|
</div>
|
180
|
229
|
</div>
|
181
|
230
|
</template>
|
|
@@ -187,7 +236,7 @@ import { GetOICData } from "@/api/qcd";
|
187
|
236
|
import PieChart from "../qcd/components/BarChart";
|
188
|
237
|
import { uParseTime } from "@/utils/tools";
|
189
|
238
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
190
|
|
-import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList,getConfigurationDetail,getAllInspectionMinor,UpdateConfiguration,DeleteConfiguration,getLastSort }from "@/api/common/common";
|
|
239
|
+import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList,getConfigurationDetail,getAllInspectionMinor,UpdateConfiguration,DeleteConfiguration,getLastSort,getBloodPressureDetail,UpdateBloodPrussre }from "@/api/common/common";
|
191
|
240
|
export default {
|
192
|
241
|
name: "dialysisTotal",
|
193
|
242
|
data() {
|
|
@@ -208,6 +257,7 @@ export default {
|
208
|
257
|
configuraData: [],
|
209
|
258
|
newDialog: false,
|
210
|
259
|
editDialog: false,
|
|
260
|
+ editDialogtwo:false,
|
211
|
261
|
formLabelWidth: "120px",
|
212
|
262
|
form: {
|
213
|
263
|
inspectionMajor: "",
|
|
@@ -256,9 +306,9 @@ export default {
|
256
|
306
|
getConfigurationDetail(id).then(response=>{
|
257
|
307
|
if(response.data.state == 1){
|
258
|
308
|
var configurationdetail = response.data.data.configurationdetail
|
259
|
|
- console.log("详情",configurationdetail)
|
|
309
|
+
|
260
|
310
|
var id = response.data.data.vid
|
261
|
|
- console.log("id",id)
|
|
311
|
+
|
262
|
312
|
if (id == 0) {
|
263
|
313
|
this.editform.inspectionMinor = configurationdetail.inspection_minor
|
264
|
314
|
}else{
|
|
@@ -291,13 +341,35 @@ export default {
|
291
|
341
|
}
|
292
|
342
|
})
|
293
|
343
|
},
|
|
344
|
+
|
|
345
|
+ handleEditTwo(id){
|
|
346
|
+ this.editDialogtwo = true
|
|
347
|
+ getBloodPressureDetail(id).then(response=>{
|
|
348
|
+ if(response.data.state == 1){
|
|
349
|
+ var blooddetail = response.data.data.blooddetail
|
|
350
|
+ if(blooddetail.inspection_major == 0){
|
|
351
|
+ this.editform.inspectionMajor = "血压"
|
|
352
|
+ }
|
|
353
|
+ if(blooddetail.inspection_minor == -1){
|
|
354
|
+ this.editform.inspectionMinor = "收缩压"
|
|
355
|
+ }
|
|
356
|
+ if(blooddetail.inspection_minor == -2){
|
|
357
|
+ this.editform.inspectionMinor = "舒张压"
|
|
358
|
+ }
|
|
359
|
+ this.editform.id = blooddetail.id
|
|
360
|
+ this.editform.large_range = blooddetail.large_range
|
|
361
|
+ this.editform.min_range = blooddetail.min_range
|
|
362
|
+ this.editform.sort = blooddetail.sort
|
|
363
|
+ }
|
|
364
|
+ })
|
|
365
|
+ },
|
294
|
366
|
|
295
|
367
|
//获取大项数据来源
|
296
|
368
|
getInspectionMajor(){
|
297
|
369
|
getInspectionMajor().then(response=>{
|
298
|
370
|
if(response.data.state == 1){
|
299
|
371
|
var inspection = response.data.data.inspection
|
300
|
|
- console.log("大项是什么",inspection)
|
|
372
|
+
|
301
|
373
|
this.InspectionMajor = inspection
|
302
|
374
|
|
303
|
375
|
}
|
|
@@ -309,7 +381,6 @@ export default {
|
309
|
381
|
getInspectionMinor(id).then(response=>{
|
310
|
382
|
if(response.data.state == 1){
|
311
|
383
|
var inspection = response.data.data.inspection
|
312
|
|
- // console.log("小项",inspection)
|
313
|
384
|
this.InspectionMinor = inspection
|
314
|
385
|
}
|
315
|
386
|
})
|
|
@@ -320,7 +391,7 @@ export default {
|
320
|
391
|
getInspectionMinor(id).then(response=>{
|
321
|
392
|
if(response.data.state == 1){
|
322
|
393
|
var inspection = response.data.data.inspection
|
323
|
|
- // console.log("小项",inspection)
|
|
394
|
+
|
324
|
395
|
this.InspectionMinorTwo = inspection
|
325
|
396
|
}
|
326
|
397
|
})
|
|
@@ -330,7 +401,7 @@ export default {
|
330
|
401
|
getInspectionRange(id).then(response=>{
|
331
|
402
|
if(response.data.state == 1){
|
332
|
403
|
var inspectionRange = response.data.data.inspectionRange
|
333
|
|
- // console.log("inspectionRange",inspectionRange)
|
|
404
|
+
|
334
|
405
|
if(inspectionRange.range_type == 1){
|
335
|
406
|
this.showOne = true
|
336
|
407
|
this.showTwo = false
|
|
@@ -394,16 +465,27 @@ export default {
|
394
|
465
|
getConfigurationList(this.limit,this.page).then(response=>{
|
395
|
466
|
if(response.data.state === 1){
|
396
|
467
|
var configurationlist = response.data.data.configurationlist
|
|
468
|
+ // console.log("configurationlist",configurationlist)
|
|
469
|
+ if(this.page == 1){
|
|
470
|
+ var pressure = response.data.data.pressure
|
|
471
|
+ // console.log("pressure",pressure)
|
|
472
|
+ pressure.map(item=>{
|
|
473
|
+ configurationlist.push(item)
|
|
474
|
+ })
|
|
475
|
+ }
|
|
476
|
+
|
397
|
477
|
for(let i=0;i<configurationlist.length;i++){
|
398
|
478
|
if(configurationlist[i].sort === 0){
|
399
|
479
|
configurationlist[i].sort = ""
|
400
|
480
|
}
|
401
|
481
|
}
|
402
|
|
- console.log("列表",configurationlist)
|
|
482
|
+
|
|
483
|
+ var newarr = configurationlist.sort((a,b)=>{ return a.sort-b.sort})
|
|
484
|
+ // console.log("排序",newarr)
|
403
|
485
|
this.configuraData = configurationlist
|
404
|
486
|
var total = response.data.data.total
|
405
|
|
- // console.log("total",total)
|
406
|
|
- this.total = total
|
|
487
|
+ // console.log("total",total)
|
|
488
|
+ this.total = total+2
|
407
|
489
|
}
|
408
|
490
|
})
|
409
|
491
|
},
|
|
@@ -485,6 +567,36 @@ export default {
|
485
|
567
|
this.form.range_value = ""
|
486
|
568
|
this.editform.range_value = ""
|
487
|
569
|
}
|
|
570
|
+ },
|
|
571
|
+ EditBloodPrussre(formName){
|
|
572
|
+ if(this.editform.sort == ""){
|
|
573
|
+ this.editform.sort = 0
|
|
574
|
+ }
|
|
575
|
+ if(this.editform.sort!=""){
|
|
576
|
+ var sorts = this.editform.sort
|
|
577
|
+ var sort = parseInt(sorts)
|
|
578
|
+ this.editform.sort = sort
|
|
579
|
+ }
|
|
580
|
+ if(this.editform.inspectionMajor == "血压"){
|
|
581
|
+ this.editform.inspectionMajor = 0
|
|
582
|
+ }
|
|
583
|
+ if(this.editform.inspectionMinor == "收缩压"){
|
|
584
|
+ this.editform.inspectionMinor = -1
|
|
585
|
+ }
|
|
586
|
+ if(this.editform.inspectionMinor == "舒张压"){
|
|
587
|
+ this.editform.inspectionMinor = -2
|
|
588
|
+ }
|
|
589
|
+
|
|
590
|
+ this.$refs[formName].validate(valid=>{
|
|
591
|
+ UpdateBloodPrussre(this.editform.id,this.editform).then(response=>{
|
|
592
|
+ if(response.data.state == 1){
|
|
593
|
+ var standard = response.data.data.standard
|
|
594
|
+ this.editDialogtwo = false
|
|
595
|
+ this.getConfigurationList()
|
|
596
|
+ this.$message.success("修改成功")
|
|
597
|
+ }
|
|
598
|
+ })
|
|
599
|
+ })
|
488
|
600
|
}
|
489
|
601
|
},
|
490
|
602
|
components: {
|