|
|
@ -50,10 +50,11 @@ |
|
|
// 0-无参考范围,1-数字型,2-字符型,3-性激素 |
|
|
// 0-无参考范围,1-数字型,2-字符型,3-性激素 |
|
|
import { mapState } from "vuex"; |
|
|
import { mapState } from "vuex"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
|
|
import { deepCopy } from '../../utlis/proFunc' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: {}, |
|
|
components: {}, |
|
|
props:["isCheckPicture"], |
|
|
|
|
|
|
|
|
props:["isCheckPicture","registerCheckId"], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
resultStatus:[], //结果状态提示数据 |
|
|
resultStatus:[], //结果状态提示数据 |
|
|
@ -88,7 +89,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapState(["window", "dict", "doctorCheck"]), |
|
|
|
|
|
|
|
|
...mapState(["window","dataTransOpts", "dict", "doctorCheck"]), |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
@ -223,7 +224,7 @@ export default { |
|
|
|
|
|
|
|
|
//检查组合项目下所包含的明细项目 |
|
|
//检查组合项目下所包含的明细项目 |
|
|
checkItemList(RegisterCheckId) { |
|
|
checkItemList(RegisterCheckId) { |
|
|
this.doctorCheck.checkItem = null |
|
|
|
|
|
|
|
|
// this.doctorCheck.checkItem = null |
|
|
if(!RegisterCheckId){ |
|
|
if(!RegisterCheckId){ |
|
|
this.doctorCheck.checkItemList = [] |
|
|
this.doctorCheck.checkItemList = [] |
|
|
return |
|
|
return |
|
|
@ -235,10 +236,12 @@ export default { |
|
|
`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}` |
|
|
`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}` |
|
|
) |
|
|
) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
console.log("checkItemList", res.data); |
|
|
|
|
|
|
|
|
// console.log("checkItemList", res.data); |
|
|
if (res.code == 1) { |
|
|
if (res.code == 1) { |
|
|
this.doctorCheck.checkItemList = res.data; |
|
|
this.doctorCheck.checkItemList = res.data; |
|
|
|
|
|
|
|
|
|
|
|
this.doctorCheck.checkItemList.forEach((e,i) => { |
|
|
|
|
|
this.madeTooltips(i) |
|
|
|
|
|
}); |
|
|
this.enterToTab(); |
|
|
this.enterToTab(); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -248,7 +251,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
querySearch(queryString, cb) { |
|
|
querySearch(queryString, cb) { |
|
|
var restaurants = [...this.restaurants]; //[{ value: '阴性' },{ value: '阳性' }] |
|
|
|
|
|
|
|
|
var restaurants = deepCopy(this.restaurants); //[{ value: '阴性' },{ value: '阳性' }] |
|
|
restaurants.forEach((item) => { |
|
|
restaurants.forEach((item) => { |
|
|
return (item.value = item.result); |
|
|
return (item.value = item.result); |
|
|
}); |
|
|
}); |
|
|
@ -317,17 +320,26 @@ export default { |
|
|
//监听事件 |
|
|
//监听事件 |
|
|
watch: { |
|
|
watch: { |
|
|
//检查项目切换 |
|
|
//检查项目切换 |
|
|
"doctorCheck.RegisterCheckId":{ |
|
|
|
|
|
|
|
|
// "doctorCheck.RegisterCheckId":{ |
|
|
|
|
|
// immediate:true, |
|
|
|
|
|
// handler(newVal, oldVal) { |
|
|
|
|
|
// console.log( |
|
|
|
|
|
// "watch doctorCheck.RegisterCheckId newVal:", |
|
|
|
|
|
// newVal, |
|
|
|
|
|
// " oldVal:", |
|
|
|
|
|
// oldVal |
|
|
|
|
|
// ); |
|
|
|
|
|
// this.checkItemList(newVal); |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
//检查项目未切换换时 也可以强制刷新数据 |
|
|
|
|
|
"dataTransOpts.refresh.register_check_item":{ |
|
|
immediate:true, |
|
|
immediate:true, |
|
|
handler(newVal, oldVal) { |
|
|
handler(newVal, oldVal) { |
|
|
console.log( |
|
|
|
|
|
"watch doctorCheck.RegisterCheckId newVal:", |
|
|
|
|
|
newVal, |
|
|
|
|
|
" oldVal:", |
|
|
|
|
|
oldVal |
|
|
|
|
|
); |
|
|
|
|
|
this.checkItemList(newVal); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
console.log(`watch dataTransOpts.refresh.register_check_item newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.registerCheckId}`); |
|
|
|
|
|
this.checkItemList(this.registerCheckId); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
|