|
@@ -14,11 +14,19 @@
|
14
|
14
|
</el-col>
|
15
|
15
|
</el-row>
|
16
|
16
|
<div class="configTable">
|
17
|
|
- <el-table :data="tableData" border style="width: 100%">
|
18
|
|
- <el-table-column prop="date" label="检验检查大项" width="180"></el-table-column>
|
19
|
|
- <el-table-column prop="name" label="检查小项" width="180"></el-table-column>
|
20
|
|
- <el-table-column prop="address" label="范围"></el-table-column>
|
21
|
|
- <el-table-column prop="address" label="单位"></el-table-column>
|
|
17
|
+ <el-table :data="configuraData" border style="width: 100%">
|
|
18
|
+ <el-table-column prop="date" label="检验检查大项" width="180">
|
|
19
|
+ <template slot-scope="scope">{{ scope.row.inspection_major }}</template>
|
|
20
|
+ </el-table-column>
|
|
21
|
+ <el-table-column prop="name" label="检查小项" width="180">
|
|
22
|
+ <template slot-scope="scope">{{ scope.row.inspection_minor }}</template>
|
|
23
|
+ </el-table-column>
|
|
24
|
+ <el-table-column prop="address" label="范围">
|
|
25
|
+ <template slot-scope="scope">{{ scope.row.min_range }} - {{scope.row.large_range}}</template>
|
|
26
|
+ </el-table-column>
|
|
27
|
+ <el-table-column prop="address" label="单位">
|
|
28
|
+ <template slot-scope="scope">{{ scope.row.min_range }}</template>
|
|
29
|
+ </el-table-column>
|
22
|
30
|
<el-table-column prop="address" label="排序"></el-table-column>
|
23
|
31
|
<el-table-column label="操作" width="180">
|
24
|
32
|
<template slot-scope="scope">
|
|
@@ -116,7 +124,7 @@ import { GetOICData } from "@/api/qcd";
|
116
|
124
|
import PieChart from "../qcd/components/BarChart";
|
117
|
125
|
import { uParseTime } from "@/utils/tools";
|
118
|
126
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
119
|
|
-import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveInspection }from "@/api/common/common";
|
|
127
|
+import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList }from "@/api/common/common";
|
120
|
128
|
export default {
|
121
|
129
|
name: "dialysisTotal",
|
122
|
130
|
data() {
|
|
@@ -129,28 +137,7 @@ export default {
|
129
|
137
|
tabActiveName: "control",
|
130
|
138
|
InspectionMajor:[],
|
131
|
139
|
InspectionMinor:[],
|
132
|
|
- tableData: [
|
133
|
|
- {
|
134
|
|
- date: "2016-05-02",
|
135
|
|
- name: "王小虎",
|
136
|
|
- address: "上海市普陀区金沙江路 1518 弄"
|
137
|
|
- },
|
138
|
|
- {
|
139
|
|
- date: "2016-05-04",
|
140
|
|
- name: "王小虎",
|
141
|
|
- address: "上海市普陀区金沙江路 1517 弄"
|
142
|
|
- },
|
143
|
|
- {
|
144
|
|
- date: "2016-05-01",
|
145
|
|
- name: "王小虎",
|
146
|
|
- address: "上海市普陀区金沙江路 1519 弄"
|
147
|
|
- },
|
148
|
|
- {
|
149
|
|
- date: "2016-05-03",
|
150
|
|
- name: "王小虎",
|
151
|
|
- address: "上海市普陀区金沙江路 1516 弄"
|
152
|
|
- }
|
153
|
|
- ],
|
|
140
|
+ configuraData: [],
|
154
|
141
|
newDialog: false,
|
155
|
142
|
editDialog: false,
|
156
|
143
|
formLabelWidth: "120px",
|
|
@@ -214,10 +201,29 @@ export default {
|
214
|
201
|
saveInspection(formName){
|
215
|
202
|
this.$refs[formName].validate(valid=>{
|
216
|
203
|
if(valid){
|
217
|
|
- saveInspection(this.form).then(response=>{
|
|
204
|
+ saveConfiguration(this.form).then(response=>{
|
|
205
|
+ if(response.data.state == 1){
|
|
206
|
+ var standard = response.data.data.standard
|
|
207
|
+ this.$message.success("保存成功")
|
|
208
|
+ this.newDialog = false
|
|
209
|
+ this.form.inspectionMajor = ""
|
|
210
|
+ this.form.inspectionMinor = ""
|
|
211
|
+ this.form.large_range = ""
|
|
212
|
+ this.form.min_range = ""
|
|
213
|
+ this.form.sort = ""
|
|
214
|
+ }
|
218
|
215
|
})
|
219
|
216
|
}
|
220
|
217
|
})
|
|
218
|
+ },
|
|
219
|
+ getConfigurationList(){
|
|
220
|
+ getConfigurationList().then(response=>{
|
|
221
|
+ if(response.data.state === 1){
|
|
222
|
+ var configurationlist = response.data.data.configurationlist
|
|
223
|
+ console.log("列表",configurationlist)
|
|
224
|
+ this.configuraData = configurationlist
|
|
225
|
+ }
|
|
226
|
+ })
|
221
|
227
|
}
|
222
|
228
|
},
|
223
|
229
|
components: {
|
|
@@ -227,6 +233,8 @@ export default {
|
227
|
233
|
created() {
|
228
|
234
|
//获取检查大项数据来源
|
229
|
235
|
this.getInspectionMajor()
|
|
236
|
+ //获取表格里面的数据
|
|
237
|
+ this.getConfigurationList()
|
230
|
238
|
},
|
231
|
239
|
};
|
232
|
240
|
</script>
|