|
@@ -5,7 +5,7 @@
|
5
|
5
|
<el-row :gutter="20">
|
6
|
6
|
<el-col :span="7">
|
7
|
7
|
<el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="projects" border style="width: 100%" highlight-current-row @current-change="handleCurrentChange" ref="singleTable" >
|
8
|
|
- <el-table-column label="检验检查项目">
|
|
8
|
+ <el-table-column label="检验检查项目" align="center">
|
9
|
9
|
<el-table-column
|
10
|
10
|
prop="project_name"
|
11
|
11
|
label="检验项目"
|
|
@@ -31,10 +31,11 @@
|
31
|
31
|
</div>
|
32
|
32
|
<el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
|
33
|
33
|
:data="items" border style="width: 100%" id="user-inspection-order" >
|
34
|
|
-
|
|
34
|
+
|
35
|
35
|
<el-table-column
|
36
|
36
|
prop="item_name"
|
37
|
37
|
label="检验项目"
|
|
38
|
+ align="center"
|
38
|
39
|
min-width="180">
|
39
|
40
|
<template slot-scope="scope">
|
40
|
41
|
{{scope.row.item_name}} {{scope.row.item_name_addition}}
|
|
@@ -43,6 +44,7 @@
|
43
|
44
|
<el-table-column
|
44
|
45
|
prop="name"
|
45
|
46
|
label="结果"
|
|
47
|
+ align="center"
|
46
|
48
|
min-width="80">
|
47
|
49
|
<template slot-scope="scope">
|
48
|
50
|
<span>{{scope.row.value}}</span>
|
|
@@ -52,6 +54,7 @@
|
52
|
54
|
<el-table-column
|
53
|
55
|
prop="address"
|
54
|
56
|
label="参考值"
|
|
57
|
+ align="center"
|
55
|
58
|
min-width="120">
|
56
|
59
|
<template slot-scope="scope">
|
57
|
60
|
<span v-if="scope.row.range_type==1">{{scope.row.range_min}}~{{scope.row.range_max}}</span>
|
|
@@ -61,6 +64,7 @@
|
61
|
64
|
<el-table-column
|
62
|
65
|
prop="unit"
|
63
|
66
|
label="单位"
|
|
67
|
+ align="center"
|
64
|
68
|
min-width="80">
|
65
|
69
|
</el-table-column>
|
66
|
70
|
</el-table>
|
|
@@ -100,13 +104,13 @@
|
100
|
104
|
|
101
|
105
|
<template v-for="(item, index) in form.formItem" >
|
102
|
106
|
<el-col :span="7" :key="index">
|
103
|
|
- <el-form-item :label="item.item_name" v-if="item.range_type==1" :key="item.item_id" :prop="'formItem.' + index + '.value'"
|
|
107
|
+ <el-form-item :label="item.item_name" v-if="item.range_type==1" :key="item.item_id" :prop="'formItem.' + index + '.value'"
|
104
|
108
|
>
|
105
|
109
|
<el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
|
106
|
110
|
<template slot="append">{{item.unit}}</template>
|
107
|
111
|
</el-input>
|
108
|
|
- </el-form-item>
|
109
|
|
- <el-form-item :label="item.item_name" v-else :key="item.item_id" :prop="'formItem.' + index + '.value'"
|
|
112
|
+ </el-form-item>
|
|
113
|
+ <el-form-item :label="item.item_name" v-else :key="item.item_id" :prop="'formItem.' + index + '.value'"
|
110
|
114
|
>
|
111
|
115
|
<el-select v-model="item.value" placeholder="请选择" style="width:95%">
|
112
|
116
|
<el-option
|
|
@@ -116,14 +120,14 @@
|
116
|
120
|
:value="optionItem">
|
117
|
121
|
</el-option>
|
118
|
122
|
</el-select>
|
119
|
|
- </el-form-item>
|
|
123
|
+ </el-form-item>
|
120
|
124
|
</el-col>
|
121
|
125
|
<el-col :span="1" :key="'form-col'+index"> </el-col>
|
122
|
126
|
</template>
|
123
|
|
-
|
|
127
|
+
|
124
|
128
|
</el-row>
|
125
|
|
-
|
126
|
|
-
|
|
129
|
+
|
|
130
|
+
|
127
|
131
|
</el-form>
|
128
|
132
|
<div slot="footer" class="dialog-footer">
|
129
|
133
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
@@ -180,12 +184,12 @@ export default {
|
180
|
184
|
},
|
181
|
185
|
methods:{
|
182
|
186
|
deleteInspection(){
|
183
|
|
-
|
|
187
|
+
|
184
|
188
|
if(this.project == null || this.itemDate == "") {
|
185
|
189
|
this.$message.error("请先选择删除删除的记录");
|
186
|
190
|
return false;
|
187
|
191
|
}
|
188
|
|
-
|
|
192
|
+
|
189
|
193
|
this.$confirm('确认删除此记录?', '删除', {
|
190
|
194
|
confirmButtonText: '确定',
|
191
|
195
|
cancelButtonText: '取消',
|
|
@@ -203,7 +207,7 @@ export default {
|
203
|
207
|
type: "success",
|
204
|
208
|
duration: 2000
|
205
|
209
|
});
|
206
|
|
-
|
|
210
|
+
|
207
|
211
|
for( var index in this.projects) {
|
208
|
212
|
if (this.projects[index].project_id == params.project_id) {
|
209
|
213
|
this.projects[index].count --;
|
|
@@ -226,7 +230,7 @@ export default {
|
226
|
230
|
this.$message.error("请先选择项目");
|
227
|
231
|
return false;
|
228
|
232
|
}
|
229
|
|
-
|
|
233
|
+
|
230
|
234
|
this.form.method = "edit";
|
231
|
235
|
this.formTitle = "修改" + this.project.project_name;
|
232
|
236
|
this.form.project_id = this.project.project_id;
|
|
@@ -268,7 +272,7 @@ export default {
|
268
|
272
|
// formItem["value"] = '';
|
269
|
273
|
// if (formItem.range_type==2) {
|
270
|
274
|
// formItem["select_options"] = formItem.range_options.split(",");
|
271
|
|
- // }
|
|
275
|
+ // }
|
272
|
276
|
this.form.formItem.push({
|
273
|
277
|
id: 0,
|
274
|
278
|
project_id: this.project.inspection_reference[index].project_id,
|
|
@@ -340,7 +344,7 @@ export default {
|
340
|
344
|
this.items.push(item);
|
341
|
345
|
}
|
342
|
346
|
}
|
343
|
|
-
|
|
347
|
+
|
344
|
348
|
this.resetForm(formName);
|
345
|
349
|
this.dialogFormVisible = false;
|
346
|
350
|
|
|
@@ -421,7 +425,7 @@ export default {
|
421
|
425
|
this.items.push(item);
|
422
|
426
|
}
|
423
|
427
|
}
|
424
|
|
-
|
|
428
|
+
|
425
|
429
|
this.resetForm(formName);
|
426
|
430
|
this.dialogFormVisible = false;
|
427
|
431
|
|
|
@@ -439,7 +443,7 @@ export default {
|
439
|
443
|
return false;
|
440
|
444
|
}
|
441
|
445
|
});
|
442
|
|
-
|
|
446
|
+
|
443
|
447
|
},
|
444
|
448
|
fetchInspectionReference(){
|
445
|
449
|
fetchInspectionReference(this.patientID).then(response=>{
|
|
@@ -480,7 +484,7 @@ export default {
|
480
|
484
|
this.fetchPatientInspections(this.queryParams);
|
481
|
485
|
}
|
482
|
486
|
},
|
483
|
|
-
|
|
487
|
+
|
484
|
488
|
handleCurrentChangePage(val) {
|
485
|
489
|
this.itemLoading = true;
|
486
|
490
|
this.queryParams.page = val;
|
|
@@ -549,6 +553,12 @@ export default {
|
549
|
553
|
};
|
550
|
554
|
</script>
|
551
|
555
|
|
|
556
|
+<style>
|
|
557
|
+ #oictable ::-webkit-scrollbar {
|
|
558
|
+ height: 15px;
|
|
559
|
+ }
|
|
560
|
+</style>
|
|
561
|
+
|
552
|
562
|
<style >
|
553
|
563
|
#user-inspection-order td {
|
554
|
564
|
border-bottom:0px !important;
|