|
|
|
@ -27,7 +27,7 @@ |
|
|
|
" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:data-ismultiline="scope.row.isMultiLine" |
|
|
|
@input="madeTooltips(scope.$index)" |
|
|
|
@input="madeTooltips(scope.$index);computeFun(scope.$index)" |
|
|
|
v-bind:class="scope.row.class" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
@ -50,7 +50,7 @@ |
|
|
|
// 0-无参考范围,1-数字型,2-字符型,3-性激素 |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { deepCopy } from '../../utlis/proFunc' |
|
|
|
import { arrayExistObj, deepCopy } from '../../utlis/proFunc' |
|
|
|
|
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
@ -162,7 +162,7 @@ export default { |
|
|
|
// console.log('1、3') |
|
|
|
if(checkItem.result && checkItem.referenceRangeValue){ |
|
|
|
let tempResult = checkItem.result.replaceAll('<','').replaceAll('>','').replaceAll('=','').replaceAll('≤','').replaceAll('≥','').replaceAll(' ','') |
|
|
|
// console.log('tempResult',isNaN(tempResult),tempResult) |
|
|
|
console.log('tempResult',isNaN(tempResult),tempResult) |
|
|
|
if(isNaN(tempResult)) break; |
|
|
|
let result = Number(tempResult) |
|
|
|
let criticalRangeValue = checkItem.criticalRangeValue |
|
|
|
@ -216,6 +216,41 @@ export default { |
|
|
|
// console.log(`this.${tooltips}`,this[tooltips]) |
|
|
|
}, |
|
|
|
|
|
|
|
//项目列为计算函数 |
|
|
|
computeFun(index){ |
|
|
|
let checkItem = this.doctorCheck.checkItemList[index] |
|
|
|
console.log('checkItem',checkItem) |
|
|
|
let body = { |
|
|
|
registerCheckId:checkItem.registerCheckId, |
|
|
|
items:[] |
|
|
|
} |
|
|
|
|
|
|
|
this.doctorCheck.checkItemList.forEach(e => { |
|
|
|
body.items.push({ |
|
|
|
itemId: e.itemId, |
|
|
|
result: e.result |
|
|
|
}) |
|
|
|
}); |
|
|
|
let lfind = -1 |
|
|
|
postapi('/api/app/diagnosisfunction/getcalculationfunctionresult',body).then(res => { |
|
|
|
if(res.code != -1){ |
|
|
|
// console.log('res.data',res.data) |
|
|
|
res.data.items.forEach(e => { |
|
|
|
lfind = arrayExistObj(this.doctorCheck.checkItemList,"itemId",e.itemId) |
|
|
|
if(lfind > -1){ |
|
|
|
if(e.result != this.doctorCheck.checkItemList[lfind].result){ |
|
|
|
this.doctorCheck.checkItemList[lfind].result = e.result |
|
|
|
console.log('e',lfind,this.doctorCheck.checkItemList[lfind]) |
|
|
|
this.madeTooltips(lfind) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//选择项目 |
|
|
|
rowClick(row) { |
|
|
|
this.doctorCheck.checkItem = row; |
|
|
|
|