|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="ManageItemBatchWrapper">
|
|
|
- <crumbs :title="title" :param="$route.params" linkTo="RecordItemList" minWidth="1210px"></crumbs>
|
|
|
+ <crumbs :title="title" :param="$route.params" linkTo="RecordItemList" minWidth="1510px"></crumbs>
|
|
|
<div class="contents">
|
|
|
<div class="content">
|
|
|
<el-form ref="form" :label-position="labelPosition" label-width="125px" class="add-record-form" >
|
|
@@ -88,11 +88,19 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop=""
|
|
|
- label="扣分值"
|
|
|
+ label="终末扣分值"
|
|
|
width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input class="scoreInp" oninput="if(value.length>5)value=value.slice(0,5)" v-model.trim="scope.row.score" type="number" placeholder=""></el-input>
|
|
|
</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop=""
|
|
|
+ label="运行扣分值"
|
|
|
+ width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input class="scoreInp" oninput="if(value.length>5)value=value.slice(0,5)" v-model.trim="scope.row.scoreRun" type="number" placeholder=""></el-input>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="address"
|
|
@@ -105,13 +113,23 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="address"
|
|
|
- label="是否启用"
|
|
|
+ label="终末质控"
|
|
|
width="120"
|
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span class="checkUsed" :class="{'active': scope.row.isUsed == 1,'disabled': getDisabled(scope.row,item.remark)}" @click="checkUsed(scope.row,index,scope.$index,item.remark)"></span>
|
|
|
<!-- <el-checkbox v-model="scope.row.isUsed" :value ="scope.row.isUsed" :disabled="getIsUsed(scope.row)" true-label="1" false-label="0">{{scope.row.isUsed}}</el-checkbox> -->
|
|
|
</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="address"
|
|
|
+ label="运行质控"
|
|
|
+ width="120"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span class="checkUsed" :class="{'active': scope.row.isUsedRun == 1,'disabled': getDisabled(scope.row,item.remark)}" @click="checkUsedRun(scope.row,index,scope.$index,item.remark)"></span>
|
|
|
+ <!-- <el-checkbox v-model="scope.row.isUsed" :value ="scope.row.isUsed" :disabled="getIsUsed(scope.row)" true-label="1" false-label="0">{{scope.row.isUsed}}</el-checkbox> -->
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="address"
|
|
@@ -226,6 +244,21 @@
|
|
|
const values = Object.values(this.checkAllMap)
|
|
|
this.toggleSelection(values)
|
|
|
},
|
|
|
+ checkUsedRun(row,index,ii,remark){
|
|
|
+ if(this.getDisabled(row,remark)){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let isUsedRun = this.caseLIst[index].qcCasesEntry[ii].isUsedRun
|
|
|
+ const caseLIstCopy = JSON.parse(JSON.stringify(this.caseLIst))
|
|
|
+ if(isUsedRun == 1){
|
|
|
+ caseLIstCopy[index].qcCasesEntry[ii].isUsedRun = 0
|
|
|
+ }else{
|
|
|
+ caseLIstCopy[index].qcCasesEntry[ii].isUsedRun = 1
|
|
|
+ }
|
|
|
+ this.caseLIst = caseLIstCopy
|
|
|
+ const values = Object.values(this.checkAllMap)
|
|
|
+ this.toggleSelection(values)
|
|
|
+ },
|
|
|
checkReject(row,index,ii,remark){
|
|
|
if(this.getDisabled(row,remark)){
|
|
|
return
|
|
@@ -272,6 +305,7 @@
|
|
|
let caseLIstCopy = result.data
|
|
|
for(let i = 0; i < caseLIstCopy.length; i++){
|
|
|
for(let j = 0; j < caseLIstCopy[i].qcCasesEntry.length; j++){
|
|
|
+ caseLIstCopy[i].qcCasesEntry[j].isUsedRun = 0
|
|
|
caseLIstCopy[i].qcCasesEntry[j].isUsed = 0
|
|
|
caseLIstCopy[i].qcCasesEntry[j].isReject = 0
|
|
|
}
|
|
@@ -304,7 +338,8 @@
|
|
|
hospitalId: this.hospitalList[i].id,
|
|
|
hospitalName: this.hospitalList[i].name,
|
|
|
value: '',
|
|
|
- tipMsg:''
|
|
|
+ tipMsg:'',
|
|
|
+ scoreRun:'',
|
|
|
})
|
|
|
}
|
|
|
this.tableData = tableData
|
|
@@ -333,8 +368,10 @@
|
|
|
const checkedItem = hospitalItem.getAllByHospitalDetialDTOS[j]
|
|
|
let recordItem = caseItem.qcCasesEntry.find(item => item.id === checkedItem.casesEntryId)
|
|
|
recordItem.score = checkedItem.score
|
|
|
+ recordItem.scoreRun = checkedItem.scoreRun
|
|
|
recordItem.msg = checkedItem.msg
|
|
|
recordItem.isUsed = checkedItem.isUsed
|
|
|
+ recordItem.isUsedRun = checkedItem.isUsedRun
|
|
|
recordItem.isReject = checkedItem.isReject
|
|
|
recordItem.modeName = checkedItem.modeName
|
|
|
this.checkAllMap[caseItem.remark].push(recordItem)
|
|
@@ -391,7 +428,9 @@
|
|
|
"msg": value.msg||"",
|
|
|
"remark": value.remark,
|
|
|
"score": Number(value.score),
|
|
|
+ "scoreRun": Number(value.scoreRun),
|
|
|
"isUsed":value.isUsed||0,
|
|
|
+ "isUsedRun":value.isUsedRun||0,
|
|
|
"isReject":value.isReject||0
|
|
|
}
|
|
|
casesEntryHospitals.push(item)
|
|
@@ -518,7 +557,7 @@
|
|
|
background: #fff;
|
|
|
padding: 20px 20px 50px;
|
|
|
color: #545455;
|
|
|
- min-width: 1300px;
|
|
|
+ min-width: 1500px;
|
|
|
position: relative;
|
|
|
.short-inp{
|
|
|
width: 200px;
|