|
@@ -140,7 +140,7 @@ import { GetOICData } from "@/api/qcd";
|
140
|
140
|
import PieChart from "../qcd/components/BarChart";
|
141
|
141
|
import { uParseTime } from "@/utils/tools";
|
142
|
142
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
143
|
|
-import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList,getConfigurationDetail,getAllInspectionMinor,UpdateConfiguration,DeleteConfiguration }from "@/api/common/common";
|
|
143
|
+import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList,getConfigurationDetail,getAllInspectionMinor,UpdateConfiguration,DeleteConfiguration,getLastSort }from "@/api/common/common";
|
144
|
144
|
export default {
|
145
|
145
|
name: "dialysisTotal",
|
146
|
146
|
data() {
|
|
@@ -196,7 +196,7 @@ export default {
|
196
|
196
|
getConfigurationDetail(id).then(response=>{
|
197
|
197
|
if(response.data.state == 1){
|
198
|
198
|
var configurationdetail = response.data.data.configurationdetail
|
199
|
|
- console.log("详情",configurationdetail)
|
|
199
|
+ // console.log("详情",configurationdetail)
|
200
|
200
|
this.editform.id = configurationdetail.id
|
201
|
201
|
this.editform.inspectionMajor = configurationdetail.inspection_major
|
202
|
202
|
this.editform.inspectionMinor = configurationdetail.inspection_minor
|
|
@@ -216,7 +216,7 @@ export default {
|
216
|
216
|
getInspectionMajor().then(response=>{
|
217
|
217
|
if(response.data.state == 1){
|
218
|
218
|
var inspection = response.data.data.inspection
|
219
|
|
- console.log("大项",inspection)
|
|
219
|
+ //console.log("大项",inspection)
|
220
|
220
|
this.InspectionMajor = inspection
|
221
|
221
|
|
222
|
222
|
}
|
|
@@ -227,7 +227,7 @@ export default {
|
227
|
227
|
getInspectionMinor(id).then(response=>{
|
228
|
228
|
if(response.data.state == 1){
|
229
|
229
|
var inspection = response.data.data.inspection
|
230
|
|
- console.log("小项",inspection)
|
|
230
|
+ // console.log("小项",inspection)
|
231
|
231
|
this.InspectionMinor = inspection
|
232
|
232
|
}
|
233
|
233
|
})
|
|
@@ -237,7 +237,7 @@ export default {
|
237
|
237
|
getInspectionMinor(id).then(response=>{
|
238
|
238
|
if(response.data.state == 1){
|
239
|
239
|
var inspection = response.data.data.inspection
|
240
|
|
- console.log("小项",inspection)
|
|
240
|
+ // console.log("小项",inspection)
|
241
|
241
|
this.InspectionMinorTwo = inspection
|
242
|
242
|
}
|
243
|
243
|
})
|
|
@@ -247,13 +247,14 @@ export default {
|
247
|
247
|
getInspectionRange(id).then(response=>{
|
248
|
248
|
if(response.data.state == 1){
|
249
|
249
|
var inspectionRange = response.data.data.inspectionRange
|
250
|
|
- console.log("inspectionRange",inspectionRange)
|
|
250
|
+ // console.log("inspectionRange",inspectionRange)
|
251
|
251
|
this.form.min_range = inspectionRange.range_min
|
252
|
252
|
this.form.large_range = inspectionRange.range_max
|
253
|
253
|
}
|
254
|
254
|
})
|
255
|
255
|
},
|
256
|
256
|
saveInspection(formName){
|
|
257
|
+
|
257
|
258
|
this.$refs[formName].validate(valid=>{
|
258
|
259
|
if(valid){
|
259
|
260
|
saveConfiguration(this.form).then(response=>{
|
|
@@ -267,6 +268,7 @@ export default {
|
267
|
268
|
this.form.min_range = ""
|
268
|
269
|
this.form.sort = ""
|
269
|
270
|
this.getConfigurationList()
|
|
271
|
+ this.getLastSort()
|
270
|
272
|
}else{
|
271
|
273
|
this.$message.error("检查小项已存在")
|
272
|
274
|
}
|
|
@@ -291,10 +293,10 @@ export default {
|
291
|
293
|
configurationlist[i].sort = ""
|
292
|
294
|
}
|
293
|
295
|
}
|
294
|
|
- console.log("列表",configurationlist)
|
|
296
|
+ //console.log("列表",configurationlist)
|
295
|
297
|
this.configuraData = configurationlist
|
296
|
298
|
var total = response.data.data.total
|
297
|
|
- console.log("total",total)
|
|
299
|
+ // console.log("total",total)
|
298
|
300
|
this.total = total
|
299
|
301
|
}
|
300
|
302
|
})
|
|
@@ -305,7 +307,7 @@ export default {
|
305
|
307
|
if(response.data.state == 1){
|
306
|
308
|
var minor = response.data.data.minor
|
307
|
309
|
this.InspectionMinorTwo = minor
|
308
|
|
- console.log("minor",minor)
|
|
310
|
+ //console.log("minor",minor)
|
309
|
311
|
}
|
310
|
312
|
})
|
311
|
313
|
},
|
|
@@ -322,7 +324,7 @@ export default {
|
322
|
324
|
UpdateConfiguration(this.editform.id,this.editform).then(response=>{
|
323
|
325
|
if(response.data.state == 1){
|
324
|
326
|
var standard = response.data.data.standard
|
325
|
|
- console.log("standard",standard)
|
|
327
|
+ // console.log("standard",standard)
|
326
|
328
|
this.$message.success("保存成功")
|
327
|
329
|
this.editDialog = false
|
328
|
330
|
this.getConfigurationList()
|
|
@@ -345,12 +347,21 @@ export default {
|
345
|
347
|
DeleteConfiguration(id,index).then(response => {
|
346
|
348
|
if (response.data.state === 1) {
|
347
|
349
|
var msg = response.data.data.msg
|
348
|
|
- console.log("msg",msg)
|
|
350
|
+ // console.log("msg",msg)
|
349
|
351
|
this.configuraData.splice(index,1)
|
350
|
352
|
}
|
351
|
353
|
});
|
352
|
354
|
});
|
353
|
355
|
},
|
|
356
|
+ getLastSort(){
|
|
357
|
+ getLastSort().then(response=>{
|
|
358
|
+ if(response.data.state === 1){
|
|
359
|
+ var standard = response.data.data.standard
|
|
360
|
+ // console.log("standard",standard)
|
|
361
|
+ this.form.sort = standard.sort + 1+''
|
|
362
|
+ }
|
|
363
|
+ })
|
|
364
|
+ },
|
354
|
365
|
},
|
355
|
366
|
components: {
|
356
|
367
|
PieChart,
|
|
@@ -363,6 +374,8 @@ export default {
|
363
|
374
|
this.getConfigurationList()
|
364
|
375
|
//获取所有小项的数据
|
365
|
376
|
this.getAllInspectionMinor()
|
|
377
|
+ //获取排序值
|
|
378
|
+ this.getLastSort()
|
366
|
379
|
},
|
367
|
380
|
|
368
|
381
|
};
|