@ -39,7 +39,7 @@ const duibiclick = async () => {
if (dbList.value && dbList.value.length == 2) {
let obj = {
tj_numbers: [dbList.value[0]["体检号"], dbList.value[0]["体检号"]],
tj_numbers: [dbList.value[0]["体检号"], dbList.value[1]["体检号"]],
};
const response = await $api("ReportContrast", obj);
$response(response, () => {
@ -34,6 +34,12 @@ const gettjbgInfo = async () => {
const selectdbObj = async (item) => {
let tjbgList = $store.getTjbgInfo();
if($store.setTjbgInfo?.length < 2){
console.log(item.体检号);
console.log(tjbgList.length);
if(tjbgList.length==1 && item.体检号==tjbgList[0].体检号){
uni.$lu.toast("请选择两份不同的报告");
return false;
}
tjbgList.push(item);
$store.setTjbgInfo(tjbgList);