pengjun 3 months ago
parent
commit
6792d11a8b
  1. 7
      public/sysConfig.json
  2. 2
      src/components/patientRegister/PatientRegisterList.vue
  3. 385
      src/components/patientRegister/PatientRegisterRecoverList.vue
  4. 492
      src/components/patientRegister/PatientRegisterRefuseList.vue
  5. 501
      src/components/patientRegister/PatientRegisterSignList.vue
  6. 1
      src/components/patientRegister/patientRegisterQuery.vue
  7. 112
      src/components/sumDoctorCheck/ButtonList.vue
  8. 137
      src/components/sumDoctorCheck/SumSug.vue
  9. 48
      src/views/customerOrg/patientRegisterRecover.vue
  10. 39
      src/views/customerOrg/patientRegisterRefuse.vue
  11. 51
      src/views/customerOrg/patientRegisterSign.vue

7
public/sysConfig.json

@ -1,7 +1,7 @@
{
"apiurl": "http://192.168.0.188:9527",
"apiurl": "http://192.168.0.188:9530",
"softName": "神豚体检管理系统",
"pacsApi": "http://192.168.0.188:9527",
"pacsApi": "http://192.168.0.188:9530",
"dcmViewers": "https://app.mzaktj.com:4436",
"pacsApiHttps": "https://app.mzaktj.com:8042",
"dict":{
@ -10,9 +10,6 @@
{ "id": "1", "displayName": "未检" },
{ "id": "2", "displayName": "部份已检" },
{ "id": "3", "displayName": "已总检" }
],
"businessPlace":[
"B座","C座"
]
}
}

2
src/components/patientRegister/PatientRegisterList.vue

@ -9,7 +9,7 @@
: Math.floor(((window.pageHeight - 250) * 2) / 3)
" highlight-current-row @row-click="rowClick" @row-dblclick="dblClick" size="small" row-key="id"
@selection-change="handleSelectionChange" @row-contextmenu="onCellRightClick" ref="info" id="info"
:row-class-name="handleRowClassName" use-virtual :row-height="35" @table-body-scroll="scrollFull"
:row-class-name="handleRowClassName" use-virtual :row-height="25" @table-body-scroll="scrollFull"
big-data-checkbox :data-changes-scroll-top="false">
<u-table-column type="selection" width="40" align="center"></u-table-column>
<u-table-column v-for="(item, index) in dragCol" :key="index" :type="dragCol[index].type"

385
src/components/patientRegister/PatientRegisterRecoverList.vue

@ -2,7 +2,7 @@
<div style="display: flex;">
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'">
<u-table :data="tableData" width="100%" border :height="window.pageHeight < 600 ? 330 : window.pageHeight - 240" row-key="id"
size="small" highlight-current-row ref="dataList" @selection-change="handleSelectionChange" @row-click="rowClick" @table-body-scroll="scrollFull" use-virtual :row-height="35" big-data-checkbox :data-changes-scroll-top="false">
size="small" highlight-current-row ref="dataList" @selection-change="handleSelectionChange" @row-click="rowClick" @table-body-scroll="scrollFull" use-virtual :row-height="25" big-data-checkbox :data-changes-scroll-top="false">
<u-table-column type="selection" width="40" align="center" />
<u-table-column type="index" label="序号" width="50" align="center" />
<u-table-column prop="isRecoverGuide" label="回收" align="center" width="50" sortable>
@ -89,7 +89,6 @@
<el-checkbox :value="scope.row.isUpload == 'Y'" />
</template>
</u-table-column>
</u-table>
<div style="display: flex; justify-content: space-between">
<div></div>
@ -150,6 +149,7 @@ export default {
UTable,
UTableColumn,
},
props: ["refQueryCondition"],
data() {
return {
tableData: [], //
@ -167,6 +167,9 @@ export default {
patientRegisterNo: '',
patient_register_query_idno: 'Y', //
patient_register_query_name: 'N', //
patient_register_read_idno_upPhoto: 'N', //
LocalConfig: {
normal: {
@ -234,7 +237,34 @@ export default {
this.LocalConfig.normal.maxResultCount || 100
);
this.loadOptsInit = Object.assign({}, this.loadOpts);
this.loadOptsInit = Object.assign({}, this.loadOpts);
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_idno" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_idno = res.data || "Y";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_name" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_name = res.data || "N";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_read_idno_upPhoto" }
).then((res) => {
if (res.code > -1) {
this.patient_register_read_idno_upPhoto = res.data || "N";
}
});
},
//
@ -387,8 +417,8 @@ export default {
await this.getPrList();
this.lazyLoading = false
},
//
//
async getPrList() {
if (
this.loadOpts.skipCount != 0 &&
@ -398,194 +428,198 @@ export default {
return;
// console.log('getPrList', this.loadOpts)
let body = {
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
// console.log(`this.patientRegister.query`, this.patientRegister.query);
if (this.patientRegister.query.customerOrgFlag) {
// if (this.patientRegister.query.CustomerOrgParentId) {
// body.customerOrgId = this.patientRegister.query.CustomerOrgParentId;
// } else {
// if (this.patientRegister.query.customerOrgId)
// body.customerOrgId = this.patientRegister.query.customerOrgId;
// }
if (this.patientRegister.query.customerOrgId)
body.customerOrgId = this.patientRegister.query.customerOrgId;
//
try {
if (
this.patientRegister.query.customerOrgId &&
this.patientRegister.query.customerOrgId != this.dict.personOrgId &&
this.patientRegister.query.customerOrgRegister.id
) {
body.customerOrgRegisterId =
this.patientRegister.query.customerOrgRegister.id;
body.customerOrgGroupIds =
this.patientRegister.query.customerOrgGroupIds;
let body = Object.assign({}, this.loadOpts)
let queryType = this.refQueryCondition.queryType
console.log('getPrList.this.refQueryCondition', this.refQueryCondition)
// ===================== Start ==========================
if (!queryType) {
// --
if (this.refQueryCondition.startDate && this.refQueryCondition.endDate) {
body.dateType = this.refQueryCondition.dateType;
body.startDate = this.refQueryCondition.startDate
body.endDate = this.refQueryCondition.endDate
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
}
} catch (error) {
console.error(error)
}
}
if (this.patientRegister.query.sex)
body.sexId = this.patientRegister.query.sex;
if (this.patientRegister.query.patientName)
body.patientName = this.patientRegister.query.patientName;
if (
this.patientRegister.query.medicalTypeIds &&
this.patientRegister.query.medicalTypeIds.length > 0
)
body.medicalTypeIds = this.patientRegister.query.medicalTypeIds;
if (
this.patientRegister.query.completeFlags &&
this.patientRegister.query.completeFlags.length > 0
)
body.completeFlags = this.patientRegister.query.completeFlags;
if (
this.patientRegister.query.personnelTypeIds &&
this.patientRegister.query.personnelTypeIds.length > 0
)
body.personnelTypeIds = this.patientRegister.query.personnelTypeIds;
if (this.patientRegister.query.isRecoverGuide)
body.isRecoverGuide = this.patientRegister.query.isRecoverGuide;
//StartDate EndDate
if (
this.patientRegister.query.startDate &&
this.patientRegister.query.endDate
) {
body.dateType = this.patientRegister.query.dateType;
body.startDate = moment(this.patientRegister.query.startDate).format(
"yyyy-MM-DD"
);
body.endDate = moment(this.patientRegister.query.endDate).format(
"yyyy-MM-DD"
);
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
// --
if (this.refQueryCondition.customerOrgFlag) {
if (this.refQueryCondition.customerOrgId) body.customerOrgId = this.refQueryCondition.customerOrgId
//
try {
if (
this.refQueryCondition.customerOrgId &&
this.refQueryCondition.customerOrgId != this.dict.personOrgId &&
this.refQueryCondition.customerOrgRegister.id
) {
body.customerOrgRegisterId = this.refQueryCondition.customerOrgRegister.id;
if (this.refQueryCondition.customerOrgGroupIds) body.customerOrgGroupIds = this.refQueryCondition.customerOrgGroupIds
}
} catch (error) {
console.error(error);
}
}
}
if (this.patientRegister.query.phone)
body.phone = this.patientRegister.query.phone;
if (this.patientRegister.query.idCardNo) {
body.idNo = this.patientRegister.query.idCardNo;
//
if (this.refQueryCondition.phone) body.phone = this.refQueryCondition.phone
//
if (this.refQueryCondition.sexId) body.sexId = this.refQueryCondition.sexId
//
if (this.refQueryCondition.medicalTypeIds) body.medicalTypeIds = this.refQueryCondition.medicalTypeIds
//
if (this.refQueryCondition.completeFlags) body.completeFlags = this.refQueryCondition.completeFlags
//
if (this.refQueryCondition.personnelTypeIds) body.personnelTypeIds = this.refQueryCondition.personnelTypeIds
//
if (this.refQueryCondition.isRecoverGuide) body.isRecoverGuide = this.refQueryCondition.isRecoverGuide
//
if (this.refQueryCondition.patientRegisterNo) {
queryType = "patientRegisterNo"
} else if (this.refQueryCondition.pacsNo) {
queryType = "pacsNo"
} else if (this.refQueryCondition.lisNo) {
queryType = "lisNo"
} else if (this.refQueryCondition.patientNo) {
queryType = "patientNo"
} else if (this.refQueryCondition.idCardNo) {
queryType = "idCardNo"
} else if (this.refQueryCondition.patientName) {
queryType = "patientName"
}
try {
let sysParmId = "patient_register_query_idno";
let sysParam = await postapi(
"/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId }
);
// console.log('sysParam', sysParam)
if (sysParam.data != "N") {
}
// ===================== End ==========================
//
let photo = ''
switch (queryType) {
case 'patientName': //
if (this.refQueryCondition.patientName) {
body.patientName = this.refQueryCondition.patientName;
if (this.patient_register_query_name == 'Y') {
body = {
patientName: this.refQueryCondition.patientName,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
break;
case 'idCardNo': //
if (this.refQueryCondition.idCardNo) {
body.idNo = this.refQueryCondition.idCardNo;
if (this.patient_register_query_idno == 'Y') {
body = {
idNo: this.refQueryCondition.idCardNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo;
break;
case 'patientNo': //
if (this.refQueryCondition.patientNo)
body = {
idNo: this.patientRegister.query.idCardNo,
patientNo: this.refQueryCondition.patientNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
} catch (error) {
console.log(error);
}
break;
case 'patientRegisterNo': //
if (this.refQueryCondition.patientRegisterNo)
body = {
patientRegisterNo: this.refQueryCondition.patientRegisterNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'pacsNo': //
if (this.refQueryCondition.pacsNo)
body = {
pacsNo: this.refQueryCondition.pacsNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'lisNo': //
if (this.refQueryCondition.lisNo)
body = {
lisNo: this.refQueryCondition.lisNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
default: //
break;
}
if (this.patientRegister.query.patientNo)
body = {
patientNo: this.patientRegister.query.patientNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
if (this.patientRegister.query.patientRegisterNo)
body = {
patientRegisterNo: this.patientRegister.query.patientRegisterNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
// console.log("/api/app/patientregister/getlistinfilter", body);
let upPhoto = "patient_register_read_idno_upPhoto"; //
let upPhotoParam = await postapi(
"/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: upPhoto }
);
let photo = this.patientRegister.photo;
this.patientRegister.photo = "";
postapi("/api/app/patientregister/getlistinfilter", body).then(
async (res) => {
if (res.code > -1) {
//
this.loadOpts.totalCount = res.data.totalCount;
let curLoad = res.data.items;
// let oldCount = 0
//
// /api/app/PatientRegister/GetPatientRegisterWithCharge
// /api/app/patientregister/getlistinfilter
postapi(
"/api/app/patientregister/getlistinfilter",
body
).then(async (res) => {
if (res.code > -1) {
//
this.loadOpts.totalCount = res.data.totalCount;
let curLoad = res.data.items;
// let oldCount = 0
//
// 1/
// 2()
curLoad.forEach((e) => {
// 1/
// 2()
curLoad.forEach((e) => {
// 1/
if (e.customerOrgId == this.dict.personOrgId) {
e.groupPack = e.medicalPackageId;
} else {
e.groupPack = e.customerOrgGroupId;
}
// 2()
if (upPhotoParam == "Y" && photo) {
if (!e.photo) {
savePeoplePhoto(e.id, photo);
}
}
});
if (e.customerOrgId == this.dict.personOrgId) {
e.groupPack = e.medicalPackageId;
} else {
e.groupPack = e.customerOrgGroupId;
}
// ()
console.log(
"this.patientRegister.query",
this.patientRegister.query.isSeries,
this.patientRegister.query.patientRegisterNo
);
if (
!(
this.patientRegister.query.isSeries == "Y" &&
this.patientRegister.query.patientRegisterNo
)
) {
if (body.skipCount == 0) {
//
this.tableData = [];
// 2()
if (this.patient_register_read_idno_upPhoto == "Y" && photo) {
if (!e.photo) {
savePeoplePhoto(e.id, photo);
}
}
});
this.tableData = this.tableData.concat(curLoad);
// else {
// // ,
// oldCount = this.tableData.length
// }
// curLoad.forEach((e, index) => {
// this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e))
// })
// ()
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo);
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) {
//
for (let index = curLoad.length - 1; index > -1; index--) {
const e = curLoad[index];
if (arrayExistObj(this.tableData, 'id', e.id) > -1) curLoad.splice(index, 1)
}
} else {
if (body.skipCount == 0) {
//
this.tableData = [];
}
}
this.tableData = this.tableData.concat(curLoad);
// else {
// // ,
// oldCount = this.tableData.length
// }
// curLoad.forEach((e, index) => {
// this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e))
// })
}
);
});
},
//
async scrollFull(scroll, event) {
@ -625,6 +659,7 @@ export default {
// }
// })
},
btnExport(elId) {
let tableDatas = deepCopy(this.tableData)
tableDatas.forEach((e, index) => {
@ -647,9 +682,9 @@ export default {
//
watch: {
//
"patientRegister.query.times"(newVal, oldVal) {
"refQueryCondition.queryConditionTimes"(newVal, oldVal) {
if (newVal != oldVal) {
//alert('')
console.log('表格回收--触发查询 refQueryCondition.queryConditionTimes', oldVal, newVal)
this.Query();
}
},

492
src/components/patientRegister/PatientRegisterRefuseList.vue

@ -3,48 +3,48 @@
<div :style="'display: flex;width:' + (window.pageWidth - 110 - 10) + 'px;'">
<div
:style="'padding: 15px;background-color: #fff;border-radius: 8px;width:' + Math.floor((window.pageWidth - 110 - 50) / 2) + 'px;'">
<el-table :data="dataList" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 245" row-key="id"
size="small" highlight-current-row ref="dataList" @row-click="rowClick">
<el-table-column type="index" width="50" label="序号" />
<el-table-column prop="completeFlag" label="体检进度">
<u-table :data="tableData" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 245" row-key="id"
size="small" highlight-current-row ref="tableData" @row-click="rowClick" @table-body-scroll="scrollFull" use-virtual :row-height="25">
<u-table-column type="index" width="50" label="序号" />
<u-table-column prop="completeFlag" label="体检进度">
<template slot-scope="scope">
<div :style="`color: ${setPrStatusColor(scope.row.isAudit, scope.row.completeFlag)}`">
{{ dddw(dict.completeFlag,"id",scope.row.completeFlag,"displayName")}}
</div>
</template>
</el-table-column>
<el-table-column prop="isLock" label="锁住" width="50">
</u-table-column>
<u-table-column prop="isLock" label="锁住" width="50">
<template slot-scope="scope">
<div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
<el-table-column prop="customerOrgParentName" label="单位" width="180">
</u-table-column>
<u-table-column prop="customerOrgParentName" label="单位" width="180">
<template slot-scope="scope">
<div>
{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}
</div>
</template>
</el-table-column>
<el-table-column prop="customerOrgName" label="部门" width="180">
</u-table-column>
<u-table-column prop="customerOrgName" label="部门" width="180">
<template slot-scope="scope">
<div>
{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}
</div>
</template>
</el-table-column>
<el-table-column prop="patientName" label="姓名" />
<el-table-column prop="sexId" label="性别">
</u-table-column>
<u-table-column prop="patientName" label="姓名" />
<u-table-column prop="sexId" label="性别">
<template slot-scope="scope">
<div>
{{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="age" label="年龄" />
<el-table-column prop="patientRegisterNo" label="条码号" width="150" />
<el-table-column prop="patientNo" label="档案号" />
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column>
<el-table-column label="分组/套餐" width="150">
</u-table-column>
<u-table-column prop="age" label="年龄" />
<u-table-column prop="patientRegisterNo" label="条码号" width="150" />
<u-table-column prop="patientNo" label="档案号" />
<u-table-column prop="medicalTimes" label="体检次数"></u-table-column>
<u-table-column label="分组/套餐" width="150">
<template slot-scope="scope">
<div v-if="scope.row.medicalPackageId !== dict.personOrgId &&
scope.row.customerOrgId === dict.personOrgId
@ -57,69 +57,69 @@
{{ dddw( dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName" ) }}
</div>
</template>
</el-table-column>
<el-table-column prop="nationId" label="民族">
</u-table-column>
<u-table-column prop="nationId" label="民族">
<template slot-scope="scope">
<div>
{{ dddw(dict.nation, "id", scope.row.nationId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="idNo" label="身份证" width="150" />
<el-table-column prop="birthDate" label="出生日期" width="100">
</u-table-column>
<u-table-column prop="idNo" label="身份证" width="150" />
<u-table-column prop="birthDate" label="出生日期" width="100">
<template slot-scope="scope">
<div v-if="scope.row.birthDate">
{{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }}
</div>
</template>
</el-table-column>
<el-table-column prop="email" label="邮箱" width="100" />
<el-table-column prop="mobileTelephone" label="手机" width="100" />
<el-table-column prop="telephone" label="电话" width="100" />
<el-table-column prop="address" label="地址" width="300" />
<el-table-column prop="medicalCardNo" label="体检卡号" />
<el-table-column prop="jobCardNo" label="工卡号" />
<el-table-column prop="maritalStatusId" label="婚姻状况">
</u-table-column>
<u-table-column prop="email" label="邮箱" width="100" />
<u-table-column prop="mobileTelephone" label="手机" width="100" />
<u-table-column prop="telephone" label="电话" width="100" />
<u-table-column prop="address" label="地址" width="300" />
<u-table-column prop="medicalCardNo" label="体检卡号" />
<u-table-column prop="jobCardNo" label="工卡号" />
<u-table-column prop="maritalStatusId" label="婚姻状况">
<template slot-scope="scope">
<div>
{{ dddw( dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName" ) }}
</div>
</template>
</el-table-column>
<el-table-column prop="medicalTypeId" label="体检类别">
</u-table-column>
<u-table-column prop="medicalTypeId" label="体检类别">
<template slot-scope="scope">
<div v-if="scope.row.medicalTypeId !== dict.personOrgId">
{{ dddw( dict.medicalType, "id", scope.row.medicalTypeId, "displayName" ) }}
</div>
</template>
</el-table-column>
<el-table-column prop="personnelTypeId" label="人员类别">
</u-table-column>
<u-table-column prop="personnelTypeId" label="人员类别">
<template slot-scope="scope">
<div v-if="scope.row.personnelTypeId !== dict.personOrgId">
{{ dddw( dict.personnelType, "id", scope.row.personnelTypeId, "displayName" ) }}
</div>
</template>
</el-table-column>
<el-table-column prop="jobPost" label="职务" />
<el-table-column prop="jobTitle" label="职称" />
<el-table-column prop="salesman" label="介绍人" />
<el-table-column prop="isVip" label="是否VIP">
</u-table-column>
<u-table-column prop="jobPost" label="职务" />
<u-table-column prop="jobTitle" label="职称" />
<u-table-column prop="salesman" label="介绍人" />
<u-table-column prop="isVip" label="是否VIP">
<template slot-scope="scope">
<div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
<el-table-column prop="creatorName" label="登记人" />
<el-table-column prop="creationTime" label="登记日期" width="100">
</u-table-column>
<u-table-column prop="creatorName" label="登记人" />
<u-table-column prop="creationTime" label="登记日期" width="100">
<template slot-scope="scope">
<div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div>
</template>
</el-table-column>
<el-table-column prop="isUpload" label="是否上传">
</u-table-column>
<u-table-column prop="isUpload" label="是否上传">
<template slot-scope="scope">
<div>{{ scope.row.isUpload == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
</el-table>
</u-table-column>
</u-table>
</div>
<div :style="'margin-left: 15px;width:' + Math.floor((window.pageWidth) / 2) + 'px;'">
<div style="display: flex; flex-wrap: wrap; height: 40px; width: 100%;background-color: #fff;
@ -140,19 +140,19 @@
</div>
</div>
<div style="padding: 15px;background-color: #fff;border-radius: 8px;">
<el-table :data="doctorCheck.RegisterCheckList"
<u-table :data="doctorCheck.RegisterCheckList"
:height="window.pageHeight < 600 ? 310 : window.pageHeight - 291" highlight-current-row size="small"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center" />
<el-table-column prop="asbitemName" label="组合项目" width="180" />
<el-table-column label="状态" width="80" align="center">
<u-table-column type="selection" width="40" align="center" />
<u-table-column prop="asbitemName" label="组合项目" width="180" />
<u-table-column label="状态" width="80" align="center">
<template slot-scope="scope">
<div :style="`color: ${setCheckStatusColor(scope.row.completeFlag)};`">{{ dddw(dict.checkCompleteFlag,
'id', scope.row.completeFlag, 'displayName') }}</div>
</template>
</el-table-column>
<el-table-column prop="lastModifierName" label="操作员" width="100" align="center" />
<el-table-column prop="lastModificationTime" label="操作时间" width="140" align="center">
</u-table-column>
<u-table-column prop="lastModifierName" label="操作员" width="100" align="center" />
<u-table-column prop="lastModificationTime" label="操作时间" width="140" align="center">
<template slot-scope="scope">
<div>
{{
@ -160,8 +160,8 @@
}}
</div>
</template>
</el-table-column>
</el-table>
</u-table-column>
</u-table>
</div>
</div>
</div>
@ -183,15 +183,16 @@ import { dddw, objCopy, arrayReduce, setCheckStatusColor, setPrStatusColor} from
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
import Camera from "../../components/patientRegister/Camera.vue";
import { UTable, UTableColumn } from "umy-ui";
export default {
components: {
PatientRegisterEdit,
Camera,
Camera,UTable, UTableColumn
},
props: ["refQueryCondition"],
data() {
return {
dataList: [], //
tableData: [], //
multipleSelection: [], //
quick: {
id: "",
@ -199,14 +200,74 @@ export default {
patientNo: "",
patientName: "",
},
patient_register_query_idno: 'Y', //
patient_register_query_name: 'N', //
patient_register_read_idno_upPhoto: 'N', //
LocalConfig: {
normal: {
maxResultCount: 100, //
},
},
loadOpts: {
totalCount: 0,
skipCount: 0,
maxResultCount: 100,
},
loadOptsInit: {},
};
},
created() { },
created() {
try {
let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null)
if (LocalConfig?.normal?.maxResultCount){
this.LocalConfig.normal.maxResultCount = LocalConfig.normal.maxResultCount
}
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error);
}
// console.log('this.LocalConfig',this.LocalConfig)
this.loadOpts.maxResultCount = Number(
this.LocalConfig.normal.maxResultCount || 100
);
this.loadOptsInit = Object.assign({}, this.loadOpts);
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_idno" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_idno = res.data || "Y";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_name" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_name = res.data || "N";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_read_idno_upPhoto" }
).then((res) => {
if (res.code > -1) {
this.patient_register_read_idno_upPhoto = res.data || "N";
}
});
},
//
mounted() {
this.dataList = []
this.tableData = []
this.doctorCheck.RegisterCheckList = []
},
computed: {
@ -394,75 +455,280 @@ export default {
},
//
query() {
let body = {};
console.log(`this.patientRegister.query`, this.patientRegister.query);
if (this.patientRegister.query.customerOrgFlag) {
if (this.patientRegister.query.CustomerOrgParentId) {
body.customerOrgId = this.patientRegister.query.CustomerOrgParentId;
} else {
if (this.patientRegister.query.customerOrgId)
body.customerOrgId = this.patientRegister.query.customerOrgId[0];
}
async Query() {
//
this.tableDataCurrentRow = {}; //
if (
!(
this.patientRegister.query.isSeries == "Y" &&
this.patientRegister.query.patientRegisterNo
)
) {
this.tableData = [];
}
if (this.patientRegister.query.sex)
body.sexId = this.patientRegister.query.sex;
this.loadOpts = Object.assign(this.loadOpts, this.loadOptsInit);
await this.getPrList();
},
if (this.patientRegister.query.patientName)
body.patientName = this.patientRegister.query.patientName;
//
async load() {
this.loadOpts.skipCount++;
await this.getPrList();
this.lazyLoading = false
},
//
async getPrList() {
if (
this.loadOpts.skipCount != 0 &&
this.loadOpts.skipCount * this.loadOpts.maxResultCount >=
this.loadOpts.totalCount
)
return;
// console.log('getPrList', this.loadOpts)
let body = Object.assign({}, this.loadOpts)
let queryType = this.refQueryCondition.queryType
console.log('getPrList.this.refQueryCondition', this.refQueryCondition)
// ===================== Start ==========================
if (!queryType) {
// --
if (this.refQueryCondition.startDate && this.refQueryCondition.endDate) {
body.dateType = this.refQueryCondition.dateType;
body.startDate = this.refQueryCondition.startDate
body.endDate = this.refQueryCondition.endDate
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
}
}
if (this.patientRegister.query.completeFlag)
body.completeFlag = this.patientRegister.query.completeFlag;
// --
if (this.refQueryCondition.customerOrgFlag) {
if (this.refQueryCondition.customerOrgId) body.customerOrgId = this.refQueryCondition.customerOrgId
//
try {
if (
this.refQueryCondition.customerOrgId &&
this.refQueryCondition.customerOrgId != this.dict.personOrgId &&
this.refQueryCondition.customerOrgRegister.id
) {
body.customerOrgRegisterId = this.refQueryCondition.customerOrgRegister.id;
if (this.refQueryCondition.customerOrgGroupIds) body.customerOrgGroupIds = this.refQueryCondition.customerOrgGroupIds
}
} catch (error) {
console.error(error);
}
}
//StartDate EndDate
if (
this.patientRegister.query.startDate &&
this.patientRegister.query.endDate
) {
body.startDate = moment(this.patientRegister.query.startDate).format(
"yyyy-MM-DD"
);
body.endDate = moment(this.patientRegister.query.endDate).format(
"yyyy-MM-DD"
);
if (body.startDate > body.endDate) {
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!" });
return;
//
if (this.refQueryCondition.phone) body.phone = this.refQueryCondition.phone
//
if (this.refQueryCondition.sexId) body.sexId = this.refQueryCondition.sexId
//
if (this.refQueryCondition.medicalTypeIds) body.medicalTypeIds = this.refQueryCondition.medicalTypeIds
//
if (this.refQueryCondition.completeFlags) body.completeFlags = this.refQueryCondition.completeFlags
//
if (this.refQueryCondition.personnelTypeIds) body.personnelTypeIds = this.refQueryCondition.personnelTypeIds
//
if (this.refQueryCondition.isRecoverGuide) body.isRecoverGuide = this.refQueryCondition.isRecoverGuide
//
if (this.refQueryCondition.patientRegisterNo) {
queryType = "patientRegisterNo"
} else if (this.refQueryCondition.pacsNo) {
queryType = "pacsNo"
} else if (this.refQueryCondition.lisNo) {
queryType = "lisNo"
} else if (this.refQueryCondition.patientNo) {
queryType = "patientNo"
} else if (this.refQueryCondition.idCardNo) {
queryType = "idCardNo"
} else if (this.refQueryCondition.patientName) {
queryType = "patientName"
}
}
// ===================== End ==========================
//
let photo = ''
switch (queryType) {
case 'patientName': //
if (this.refQueryCondition.patientName) {
body.patientName = this.refQueryCondition.patientName;
if (this.patient_register_query_name == 'Y') {
body = {
patientName: this.refQueryCondition.patientName,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
break;
case 'idCardNo': //
if (this.refQueryCondition.idCardNo) {
body.idNo = this.refQueryCondition.idCardNo;
if (this.patient_register_query_idno == 'Y') {
body = {
idNo: this.refQueryCondition.idCardNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo;
break;
case 'patientNo': //
if (this.refQueryCondition.patientNo)
body = {
patientNo: this.refQueryCondition.patientNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'patientRegisterNo': //
if (this.refQueryCondition.patientRegisterNo)
body = {
patientRegisterNo: this.refQueryCondition.patientRegisterNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'pacsNo': //
if (this.refQueryCondition.pacsNo)
body = {
pacsNo: this.refQueryCondition.pacsNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'lisNo': //
if (this.refQueryCondition.lisNo)
body = {
lisNo: this.refQueryCondition.lisNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
default: //
break;
}
if (this.patientRegister.query.idCardNo)
body = { idNo: this.patientRegister.query.idCardNo };
// /api/app/PatientRegister/GetPatientRegisterWithCharge
// /api/app/patientregister/getlistinfilter
postapi(
"/api/app/patientregister/getlistinfilter",
body
).then(async (res) => {
if (res.code > -1) {
//
this.loadOpts.totalCount = res.data.totalCount;
let curLoad = res.data.items;
// let oldCount = 0
//
// 1/
// 2()
curLoad.forEach((e) => {
// 1/
if (e.customerOrgId == this.dict.personOrgId) {
e.groupPack = e.medicalPackageId;
} else {
e.groupPack = e.customerOrgGroupId;
}
// 2()
if (this.patient_register_read_idno_upPhoto == "Y" && photo) {
if (!e.photo) {
savePeoplePhoto(e.id, photo);
}
}
});
// ()
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo);
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) {
//
for (let index = curLoad.length - 1; index > -1; index--) {
const e = curLoad[index];
if (arrayExistObj(this.tableData, 'id', e.id) > -1) curLoad.splice(index, 1)
}
} else {
if (body.skipCount == 0) {
//
this.tableData = [];
}
}
this.tableData = this.tableData.concat(curLoad);
// else {
// // ,
// oldCount = this.tableData.length
// }
// curLoad.forEach((e, index) => {
// this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e))
// })
}
});
},
if (this.patientRegister.query.patientNo)
body = { patientNo: this.patientRegister.query.patientNo };
//
async scrollFull(scroll, event) {
if (!scroll.judgeFlse) return;
if (this.patientRegister.query.patientRegisterNo)
body = {
patientRegisterNo: this.patientRegister.query.patientRegisterNo,
};
//
if (this.lazyLoading) return;
if (
(Number(this.loadOpts.skipCount) + 1) *
Number(this.loadOpts.maxResultCount) >=
Number(this.loadOpts.totalCount)
) {
return;
}
console.log("/api/app/patientregister/getlistinfilter", body);
this.dataList = []
this.doctorCheck.RegisterCheckList = []
postapi("/api/app/patientregister/getlistinfilter", body)
.then((res) => {
if (res.code > -1) {
this.dataList = res.data.items;
}
})
this.lazyLoading = true;
try {
await this.load();
} catch (e) {
console.error('scrollFull load error', e);
}
// this.dom = this.$refs['tableData'].bodyWrapper
// console.log('obj', this.dom)
// this.dom.addEventListener('scroll', async () => {
// // console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight);
// if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) {
// //
// //console.log('scrollTop', obj.scrollTop, 'clientHeight', obj.clientHeight, 'scrollHeight', obj.scrollHeight);
// if (Number(this.loadOpts.skipCount) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) {
// this.lazyLoading = false
// } else {
// this.lazyLoading = true
// this.load()
// // this.dom.scrollTop = this.dom.scrollTop - 100
// }
// }
// })
},
},
//
watch: {
//
"patientRegister.query.times"(newVal, oldVal) {
"refQueryCondition.queryConditionTimes"(newVal, oldVal) {
if (newVal != oldVal) {
//alert('')
this.query();
console.log('弃检--触发查询 refQueryCondition.queryConditionTimes', oldVal, newVal)
this.Query();
}
},
},

501
src/components/patientRegister/PatientRegisterSignList.vue

@ -1,126 +1,122 @@
<template>
<div style="display: flex">
<div :style="'padding: 15px;background-color: #fff;border-radius: 8px;width:' + (window.pageWidth - 200 - 110 - 65) + 'px;'">
<el-table :data="dataList"
width="100%"
:height="window.pageHeight < 600 ? 350:window.pageHeight-245"
row-key="id" size="small" highlight-current-row ref="dataList"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="40"/>
<el-table-column prop="isMedicalStart" label="签到" width="50">
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'">
<u-table :data="tableData" width="100%" border :height="window.pageHeight < 600 ? 330 : window.pageHeight - 240"
row-key="id" size="small" highlight-current-row ref="tableData"
@selection-change="handleSelectionChange" @table-body-scroll="scrollFull" use-virtual :row-height="25">
<u-table-column type="selection" width="40" align="center"/>
<u-table-column prop="isMedicalStart" label="签到" width="50" align="center">
<template slot-scope="scope">
<el-checkbox :value="scope.row.isMedicalStart == 'Y'" />
</template>
</el-table-column>
<el-table-column prop="medicalStartDate" label="签到日期" width="90">
</u-table-column>
<u-table-column prop="medicalStartDate" label="签到日期" width="90" align="center">
<template slot-scope="scope">
<div>{{ lmoment(scope.row.medicalStartDate, "yyyy-MM-DD") }}</div>
</template>
</el-table-column>
<el-table-column prop="completeFlag" label="体检进度">
</u-table-column>
<u-table-column prop="completeFlag" label="体检进度" align="center">
<template slot-scope="scope">
<div>{{ ldddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}</div>
</template>
</el-table-column>
<el-table-column prop="isLock" label="锁住" width="50">
</u-table-column>
<u-table-column prop="isLock" label="锁住" width="50" align="center">
<template slot-scope="scope">
<div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
<el-table-column prop="customerOrgParentName" label="单位" width="180">
</u-table-column>
<u-table-column prop="customerOrgParentName" label="单位" width="180">
<template slot-scope="scope">
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}</div>
</template>
</el-table-column>
<el-table-column prop="customerOrgName" label="部门" width="180">
</u-table-column>
<u-table-column prop="customerOrgName" label="部门" width="180">
<template slot-scope="scope">
<div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}</div>
</template>
</el-table-column>
<el-table-column prop="patientName" label="姓名" />
<el-table-column prop="sexId" label="性别">
</u-table-column>
<u-table-column prop="patientName" label="姓名" align="center"/>
<u-table-column prop="sexId" label="性别" align="center">
<template slot-scope="scope">
<div>{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div>
</template>
</el-table-column>
<el-table-column prop="age" label="年龄" />
<el-table-column prop="patientRegisterNo" label="条码号" width="150" />
<el-table-column prop="patientNo" label="档案号" />
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column>
<el-table-column label="分组/套餐" width="150">
<template slot-scope="scope">
</u-table-column>
<u-table-column prop="age" label="年龄" align="center"/>
<u-table-column prop="patientRegisterNo" label="条码号" width="130" align="center"/>
<u-table-column prop="patientNo" label="档案号" align="center"/>
<u-table-column prop="medicalTimes" label="体检次数" align="center"></u-table-column>
<u-table-column label="分组/套餐" width="150">
<template slot-scope="scope">
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId">
{{ ldddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }}
{{ scope.row.medicalPackageName }}
</div>
<div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId">
{{ ldddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }}
<div v-else>
{{ scope.row.customerOrgGroupName }}
</div>
</template>
</el-table-column>
<el-table-column prop="nationId" label="民族">
<template slot-scope="scope">
<div>
{{ ldddw(dict.nation, "id", scope.row.nationId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="idNo" label="身份证" width="150" />
<el-table-column prop="birthDate" label="出生日期" width="100">
</u-table-column>
<u-table-column prop="nationName" label="民族" align="center">
</u-table-column>
<u-table-column prop="idNo" label="身份证" width="150" align="center"/>
<u-table-column prop="birthDate" label="出生日期" width="100" align="center">
<template slot-scope="scope">
<div v-if="scope.row.birthDate">
{{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }}
</div>
</template>
</el-table-column>
<el-table-column prop="email" label="邮箱" width="100" />
<el-table-column prop="mobileTelephone" label="手机" width="100" />
<el-table-column prop="telephone" label="电话" width="100" />
<el-table-column prop="address" label="地址" width="300" />
<el-table-column prop="medicalCardNo" label="体检卡号" />
<el-table-column prop="jobCardNo" label="工卡号" />
<el-table-column prop="maritalStatusId" label="婚姻状况">
<template slot-scope="scope">
<div>
{{ ldddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="medicalTypeId" label="体检类别">
</u-table-column>
<u-table-column prop="email" label="邮箱" width="100" align="center"/>
<u-table-column prop="mobileTelephone" label="手机" width="130"align="center" />
<u-table-column prop="telephone" label="电话" width="100" />
<u-table-column prop="address" label="地址" width="300" />
<u-table-column prop="medicalCardNo" label="体检卡号" align="center"/>
<u-table-column prop="jobCardNo" label="工卡号" align="center"/>
<u-table-column prop="maritalStatusName" label="婚姻状况" align="center">
</u-table-column>
<u-table-column prop="medicalTypeId" label="体检类别">
<template slot-scope="scope">
<div v-if="scope.row.medicalTypeId !== dict.personOrgId">
{{ ldddw(dict.medicalType, "id", scope.row.medicalTypeId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="personnelTypeId" label="人员类别">
</u-table-column>
<u-table-column prop="personnelTypeId" label="人员类别">
<template slot-scope="scope">
<div v-if="scope.row.personnelTypeId !== dict.personOrgId">
{{ ldddw(dict.personnelType, "id", scope.row.personnelTypeId, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="jobPost" label="职务" />
<el-table-column prop="jobTitle" label="职称" />
<el-table-column prop="salesman" label="介绍人" />
<el-table-column prop="isVip" label="是否VIP">
</u-table-column>
<u-table-column prop="jobPost" label="职务" />
<u-table-column prop="jobTitle" label="职称" />
<u-table-column prop="salesman" label="介绍人" align="center"/>
<u-table-column prop="isVip" label="是否VIP" align="center">
<template slot-scope="scope">
<div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
<el-table-column prop="creatorName" label="登记人" />
<el-table-column prop="creationTime" label="登记日期" width="100">
</u-table-column>
<u-table-column prop="creatorName" label="登记人" align="center"/>
<u-table-column prop="creationTime" label="登记日期" width="100" align="center">
<template slot-scope="scope">
<div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div>
</template>
</el-table-column>
<el-table-column prop="isUpload" label="是否上传">
</u-table-column>
<u-table-column prop="isUpload" label="是否上传" align="center">
<template slot-scope="scope">
<div>{{ scope.row.isUpload == "Y" ? "是" : "否" }}</div>
</template>
</el-table-column>
</el-table>
</u-table-column>
</u-table>
<div style="display: flex; justify-content: space-between">
<div></div>
<div>
<span style="font-size: 12px">{{ loadOpts.totalCount }} 条记录当前显示{{
tableData.length
}}
</span>
</div>
</div>
</div>
<div style="margin-left: 10px;">
<div class="listBtn">
@ -151,24 +147,85 @@ import { dddw, objCopy, arrayReduce } from "@/utlis/proFunc";
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
import Camera from "../../components/patientRegister/Camera.vue";
import { UTable, UTableColumn } from "umy-ui";
export default {
components: {
PatientRegisterEdit,
Camera,
Camera,UTable, UTableColumn
},
props: ["refQueryCondition"],
data() {
return {
dataList: [], //
tableData: [], //
multipleSelection: [], //
dialogVisible: false,
form:{
patientRegisterNo:''
}
},
patient_register_query_idno: 'Y', //
patient_register_query_name: 'N', //
patient_register_read_idno_upPhoto: 'N', //
LocalConfig: {
normal: {
maxResultCount: 100, //
},
},
loadOpts: {
totalCount: 0,
skipCount: 0,
maxResultCount: 100,
},
loadOptsInit: {},
lazyLoading:false,
};
},
created() { },
created() {
try {
let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null)
if (LocalConfig?.normal?.maxResultCount){
this.LocalConfig.normal.maxResultCount = LocalConfig.normal.maxResultCount
}
} catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error);
}
// console.log('this.LocalConfig',this.LocalConfig)
this.loadOpts.maxResultCount = Number(
this.LocalConfig.normal.maxResultCount || 100
);
this.loadOptsInit = Object.assign({}, this.loadOpts);
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_idno" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_idno = res.data || "Y";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_query_name" }
).then((res) => {
if (res.code > -1) {
this.patient_register_query_name = res.data || "N";
}
});
// --
postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId",
{ sysParmId: "patient_register_read_idno_upPhoto" }
).then((res) => {
if (res.code > -1) {
this.patient_register_read_idno_upPhoto = res.data || "N";
}
});
},
//
mounted() { },
@ -238,61 +295,281 @@ export default {
},
//
query() {
let body = {}
console.log(`this.patientRegister.query`, this.patientRegister.query)
if (this.patientRegister.query.customerOrgFlag) {
if (this.patientRegister.query.CustomerOrgParentId) {
body.customerOrgId = this.patientRegister.query.CustomerOrgParentId
} else{
if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId
}
async Query() {
//
this.tableDataCurrentRow = {}; //
if (
!(
this.patientRegister.query.isSeries == "Y" &&
this.patientRegister.query.patientRegisterNo
)
) {
this.tableData = [];
}
this.loadOpts = Object.assign(this.loadOpts, this.loadOptsInit);
await this.getPrList();
},
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
//
async load() {
this.loadOpts.skipCount++;
await this.getPrList();
this.lazyLoading = false
},
//
async getPrList() {
if (
this.loadOpts.skipCount != 0 &&
this.loadOpts.skipCount * this.loadOpts.maxResultCount >=
this.loadOpts.totalCount
)
return;
// console.log('getPrList', this.loadOpts)
if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
let body = Object.assign({}, this.loadOpts)
let queryType = this.refQueryCondition.queryType
if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
console.log('getPrList.this.refQueryCondition', this.refQueryCondition)
// ===================== Start ==========================
if (!queryType) {
//StartDate EndDate
if (this.patientRegister.query.startDate && this.patientRegister.query.endDate) {
body.startDate = moment(this.patientRegister.query.startDate).format("yyyy-MM-DD")
body.endDate = moment(this.patientRegister.query.endDate).format("yyyy-MM-DD")
if(body.startDate > body.endDate){
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!"})
return
// --
if (this.refQueryCondition.startDate && this.refQueryCondition.endDate) {
body.dateType = this.refQueryCondition.dateType;
body.startDate = this.refQueryCondition.startDate
body.endDate = this.refQueryCondition.endDate
if (body.startDate > body.endDate) {
this.$message.warning({
showClose: true,
message: "起始日期不能大于截止日期,数据校验不通过!",
});
return;
}
}
// --
if (this.refQueryCondition.customerOrgFlag) {
if (this.refQueryCondition.customerOrgId) body.customerOrgId = this.refQueryCondition.customerOrgId
//
try {
if (
this.refQueryCondition.customerOrgId &&
this.refQueryCondition.customerOrgId != this.dict.personOrgId &&
this.refQueryCondition.customerOrgRegister.id
) {
body.customerOrgRegisterId = this.refQueryCondition.customerOrgRegister.id;
if (this.refQueryCondition.customerOrgGroupIds) body.customerOrgGroupIds = this.refQueryCondition.customerOrgGroupIds
}
} catch (error) {
console.error(error);
}
}
//
if (this.refQueryCondition.phone) body.phone = this.refQueryCondition.phone
//
if (this.refQueryCondition.sexId) body.sexId = this.refQueryCondition.sexId
//
if (this.refQueryCondition.medicalTypeIds) body.medicalTypeIds = this.refQueryCondition.medicalTypeIds
//
if (this.refQueryCondition.completeFlags) body.completeFlags = this.refQueryCondition.completeFlags
//
if (this.refQueryCondition.personnelTypeIds) body.personnelTypeIds = this.refQueryCondition.personnelTypeIds
//
if (this.refQueryCondition.isRecoverGuide) body.isRecoverGuide = this.refQueryCondition.isRecoverGuide
//
if (this.refQueryCondition.patientRegisterNo) {
queryType = "patientRegisterNo"
} else if (this.refQueryCondition.pacsNo) {
queryType = "pacsNo"
} else if (this.refQueryCondition.lisNo) {
queryType = "lisNo"
} else if (this.refQueryCondition.patientNo) {
queryType = "patientNo"
} else if (this.refQueryCondition.idCardNo) {
queryType = "idCardNo"
} else if (this.refQueryCondition.patientName) {
queryType = "patientName"
}
}
}
// ===================== End ==========================
if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo }
//
let photo = ''
switch (queryType) {
case 'patientName': //
if (this.refQueryCondition.patientName) {
body.patientName = this.refQueryCondition.patientName;
if (this.patient_register_query_name == 'Y') {
body = {
patientName: this.refQueryCondition.patientName,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
break;
case 'idCardNo': //
if (this.refQueryCondition.idCardNo) {
body.idNo = this.refQueryCondition.idCardNo;
if (this.patient_register_query_idno == 'Y') {
body = {
idNo: this.refQueryCondition.idCardNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
}
}
if (this.refQueryCondition.photo) photo = this.refQueryCondition.photo;
break;
case 'patientNo': //
if (this.refQueryCondition.patientNo)
body = {
patientNo: this.refQueryCondition.patientNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'patientRegisterNo': //
if (this.refQueryCondition.patientRegisterNo)
body = {
patientRegisterNo: this.refQueryCondition.patientRegisterNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'pacsNo': //
if (this.refQueryCondition.pacsNo)
body = {
pacsNo: this.refQueryCondition.pacsNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
case 'lisNo': //
if (this.refQueryCondition.lisNo)
body = {
lisNo: this.refQueryCondition.lisNo,
skipCount: this.loadOpts.skipCount,
maxResultCount: this.loadOpts.maxResultCount,
};
break;
default: //
break;
}
if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo }
// /api/app/PatientRegister/GetPatientRegisterWithCharge
// /api/app/patientregister/getlistinfilter
postapi(
"/api/app/patientregister/getlistinfilter",
body
).then(async (res) => {
if (res.code > -1) {
//
this.loadOpts.totalCount = res.data.totalCount;
let curLoad = res.data.items;
if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo }
// let oldCount = 0
//
// 1/
// 2()
curLoad.forEach((e) => {
// 1/
if (e.customerOrgId == this.dict.personOrgId) {
e.groupPack = e.medicalPackageId;
} else {
e.groupPack = e.customerOrgGroupId;
}
// 2()
if (this.patient_register_read_idno_upPhoto == "Y" && photo) {
if (!e.photo) {
savePeoplePhoto(e.id, photo);
}
}
});
console.log('/api/app/patientregister/getlistinfilter', body)
postapi('/api/app/patientregister/getlistinfilter', body)
.then((res) => {
if(res.code > - 1){
this.dataList = res.data.items;
// ()
// console.log("this.refQueryCondition", this.refQueryCondition.isSeries, this.refQueryCondition.patientRegisterNo);
if (this.refQueryCondition.isSeries == "Y" && this.refQueryCondition.patientRegisterNo) {
//
for (let index = curLoad.length - 1; index > -1; index--) {
const e = curLoad[index];
if (arrayExistObj(this.tableData, 'id', e.id) > -1) curLoad.splice(index, 1)
}
} else {
if (body.skipCount == 0) {
//
this.tableData = [];
}
}
})
this.tableData = this.tableData.concat(curLoad);
// else {
// // ,
// oldCount = this.tableData.length
// }
// curLoad.forEach((e, index) => {
// this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e))
// })
}
});
},
//
async scrollFull(scroll, event) {
if (!scroll.judgeFlse) return;
//
if (this.lazyLoading) return;
if (
(Number(this.loadOpts.skipCount) + 1) *
Number(this.loadOpts.maxResultCount) >=
Number(this.loadOpts.totalCount)
) {
return;
}
this.lazyLoading = true;
try {
await this.load();
} catch (e) {
console.error('scrollFull load error', e);
}
// this.dom = this.$refs['tableData'].bodyWrapper
// console.log('obj', this.dom)
// this.dom.addEventListener('scroll', async () => {
// // console.log('scrollTop',this.dom.scrollTop,'clientHeight',this.dom.clientHeight,'scrollHeight',this.dom.scrollHeight);
// if (this.dom.scrollTop + this.dom.clientHeight + 20 > this.dom.scrollHeight && !this.lazyLoading) {
// //
// //console.log('scrollTop', obj.scrollTop, 'clientHeight', obj.clientHeight, 'scrollHeight', obj.scrollHeight);
// if (Number(this.loadOpts.skipCount) * Number(this.loadOpts.maxResultCount) >= Number(this.loadOpts.totalCount)) {
// this.lazyLoading = false
// } else {
// this.lazyLoading = true
// this.load()
// // this.dom.scrollTop = this.dom.scrollTop - 100
// }
// }
// })
},
},
//
watch: {
//
"patientRegister.query.times"(newVal, oldVal) {
"refQueryCondition.queryConditionTimes"(newVal, oldVal) {
if (newVal != oldVal) {
//alert('')
this.query();
console.log('签到--触发查询 refQueryCondition.queryConditionTimes', oldVal, newVal)
this.Query();
}
},

1
src/components/patientRegister/patientRegisterQuery.vue

@ -299,6 +299,7 @@ export default {
//
toQuery(queryType) {
console.log('toQuery.queryType',queryType)
this.query.queryType = queryType
if(queryType != 'idCardNo') this.query.photo = ''
this.$emit('triggerQuery', this.query)

112
src/components/sumDoctorCheck/ButtonList.vue

@ -13,15 +13,18 @@
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="pacs" :disabled="sumBtnDisabled('save')"
v-show="checkPagePriv(pagePriv.privs, '导入检查结果')">导入检查结果</el-dropdown-item>
<el-dropdown-item command="lis" :disabled="sumBtnDisabled('save')"
v-show="checkPagePriv(pagePriv.privs, '导入检验结果')">导入检验结果</el-dropdown-item>
<el-dropdown-item command="diAn" :disabled="sumBtnDisabled('save')"
v-show="checkPagePriv(pagePriv.privs, '导入迪安结果')">导入迪安结果</el-dropdown-item>
v-show="checkPagePriv(pagePriv.privs, '导入检查结果')">导入检查结果</el-dropdown-item>
<el-dropdown-item command="lis" :disabled="sumBtnDisabled('save')"
v-show="checkPagePriv(pagePriv.privs, '导入检验结果')">导入检验结果</el-dropdown-item>
<el-dropdown-item command="diAn" :disabled="sumBtnDisabled('save')"
v-show="checkPagePriv(pagePriv.privs, '导入迪安结果')">导入迪安结果</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<!--AI诊断不控制权限 v-show="checkPagePriv(pagePriv.privs, 'AI诊断')" :disabled="sumBtnDisabled('save')"-->
</div>
<!--AI诊断不控制权限 v-show="checkPagePriv(pagePriv.privs, 'AI诊断')" :disabled="sumBtnDisabled('save')"-->
<div class="listBtn">
<el-button slot="reference" class="commonbutton" @click="btnAIassistant">AI助手</el-button>
</div>
<div class="listBtn">
<el-button slot="reference" class="commonbutton" @click="btnAIdiagnosis(false)">AI诊断</el-button>
</div>
@ -93,11 +96,19 @@
<!-- <el-input v-show="AI.max" type="textarea" v-model="AI.diagnosis" placeholder="AI诊断内容"
:autosize="{ minRows: AIDH, maxRows: AIDH }" style="text-align: right;">
</el-input> -->
<div ref="aiContent" v-html="AI.html" :style="`height:${AI.height - 42 - 48}px;overflow-y: auto;display: blockresize:vertical;padding: 5px 5px 5px 20px;line-height: 1.5;box-sizing: border-box;width: 100%;font-size: inherit;background-color: #fff;background-image: none;border: 1px solid #dcdfe6;border-radius: 4px;transition: border-color .2s cubic-bezier(.645, .045, .355, 1);`"></div>
<div v-show="AI.max" style="text-align: right; margin-top: 10px;">
<div v-if="AI.isAssistant" style="margin-bottom: 5px;">
<el-input type="textarea" v-model="AI.question" placeholder="向 AI 提出你的问题"
:autosize="{ minRows: 3, maxRows: 3 }">
</el-input>
</div>
<div v-show="AI.max" style="text-align: right; margin: 5px;">
<el-button class="commonbutton" @click="toAIdiagnosis(true)">AI 提问</el-button>
<el-button class="commonbutton" @click="AI.visible = false">关闭</el-button>
<el-button class="commonbutton" @click="btnAIdiagnosis(true)">AI重新诊断</el-button>
</div>
<div ref="aiContent" v-html="AI.html"
:style="`height:${AIcontentH}px;overflow-y: auto;display: blockresize:vertical;padding: 5px 5px 5px 20px;line-height: 1.5;box-sizing: border-box;width: 100%;font-size: inherit;background-color: #fff;background-image: none;border: 1px solid #dcdfe6;border-radius: 4px;transition: border-color .2s cubic-bezier(.645, .045, .355, 1);`">
</div>
</div>
<div v-show="sumDoctorCheck.sumDoctorCheckDialogVisible"
@ -166,6 +177,8 @@ export default {
max: true,
visible: false,
diagnosis: 'AI诊断信息',
isAssistant: false, // AI
question: "", //
rawText: '',
html: ""
},
@ -197,6 +210,12 @@ export default {
// AIdiagnosisHeight
AIDH() {
return Math.floor((this.AI.height - 24 - 42 - 4) / 21.5)
},
AIcontentH() {
let ret = this.AI.height - 75
if (this.AI.isAssistant) ret = ret - 80
return ret
}
},
@ -261,7 +280,7 @@ export default {
return ret
},
// ()
btnImportResult(checkType) {
if (!this.dataTransOpts.tableS.patient_register.id) {
@ -271,7 +290,7 @@ export default {
let url = '/api/app/ImportLisResult/ImportResultByPatientRegisterId'
let patientRegisterId = this.dataTransOpts.tableS.patient_register.id
switch (checkType) {
switch (checkType) {
case 'pacs':
url = '/api/app/ImportPacsResult/ImportResultByPatientRegisterId'
postapi(url, { patientRegisterId })
@ -290,11 +309,11 @@ export default {
case 'diAn':
url = "/api/app/ImportLisResult/ImportDianResultByPatientRegisterId";
postapi(url, { patientRegisterId }).then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '导入成功!' })
}
})
break;
if (res.code > -1) {
this.$message.success({ showClose: true, message: '导入成功!' })
}
})
break;
default: //lis
postapi(url, { patientRegisterId }).then(res => {
if (res.code > -1) {
@ -315,7 +334,7 @@ export default {
summaryDoctorId: this.dataTransOpts.tableS.patient_register.summaryDoctorId || null,
summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate || moment(new Date()).format("yyyy-MM-DD HH:mm:ss"),
medicalConclusionId: this.dataTransOpts.tableS.patient_register.medicalConclusionId || null,
summaryHistoricalReview:this.sumDoctorCheck.historySummary,
summaryHistoricalReview: this.sumDoctorCheck.historySummary,
sumSummarys: this.sumDoctorCheck.summaryList,
sumSuggestions: this.sumDoctorCheck.suggestionList
}
@ -438,29 +457,39 @@ export default {
},
btnAIassistant() {
this.AI.isAssistant = true
this.AI.visible = true
this.btnAImax(false);
},
// AI AI使 fetchStream
async btnAIdiagnosis(again) {
if (!again) {
if (this.AI.visible) {
this.btnAImax(false);
return;
}
}
btnAIdiagnosis() {
this.AI.isAssistant = true
this.AI.question = ''
this.AI.visible = true
this.btnAImax(false);
this.toAIdiagnosis()
},
let message = '';
let linkStr = ';';
this.sumDoctorCheck.summaryList.forEach(e => {
if (message) {
linkStr = ';';
} else {
linkStr = '';
}
message += linkStr + e.summaryTitle + ':';
e.details.forEach((e1, i) => {
message += (i + 1) + ')、' + e1.summaryContent;
async toAIdiagnosis() {
let message = this.AI.question;
if (!message) {
let linkStr = ';';
this.sumDoctorCheck.summaryList.forEach(e => {
if (message) {
linkStr = ';';
} else {
linkStr = '';
}
message += linkStr + e.summaryTitle + ':';
e.details.forEach((e1, i) => {
message += (i + 1) + ')、' + e1.summaryContent;
});
});
});
message = '性别:' + this.doctorCheck.prBase.sexName + ',年龄:' + this.doctorCheck.prBase.age + '岁,检查结果:' + message;
message = '性别:' + this.doctorCheck.prBase.sexName + ',年龄:' + this.doctorCheck.prBase.age + '岁,检查结果:' + message;
this.AI.question = message
}
this.AI.rawText = '';
this.AI.html = '';
@ -482,7 +511,7 @@ export default {
try {
const el = this.$refs.aiContent;
if (el) el.scrollTop = el.scrollHeight;
} catch (e) {}
} catch (e) { }
});
});
} catch (err) {
@ -507,6 +536,7 @@ export default {
}
},
// AI
btnAImax(max) {
this.AI.max = !max
if (this.AI.max) {
@ -595,7 +625,7 @@ export default {
{ Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" }, //
{ Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" }, //
{ Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" }, //
{ Name: "orgSign", Value: this.dataTransOpts.tableS.patient_register.isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, //
{ Name: "orgSign", Value: this.dataTransOpts.tableS.patient_register.isPatientOccupationalDisease == 'Y' ? "pic/orgSignOcc.png" : "pic/orgSign.png" }, //
{ Name: 'picExtOne', Value: 'pic/hisLog.jpg' }, //
{ Name: 'picExtTwo', Value: 'pic/orgSignCom.png' }, //
{ Name: 'resultSign', Value: 'pic/resultSign.png' }, //
@ -661,7 +691,7 @@ export default {
},
//
btnReset(){
btnReset() {
location.reload()
},

137
src/components/sumDoctorCheck/SumSug.vue

@ -2,8 +2,7 @@
<div style="background-color: #B9CEE9;">
<!--组件-->
<div style="display: flex;">
<div
:style="`position: absolute; top: 0px; left: ${dragging.sugWidthLeft - 110}px; display: flex;z-index: 3;`">
<div :style="`position: absolute; top: 0px; left: ${dragging.sugWidthLeft - 110}px; display: flex;z-index: 3;`">
<div v-show="checkPagePriv(pagePriv.privs, '新增综述')">
<el-button style="height: 28px;" class="commonbutton" @click="addSummary"
:disabled="sumBtnDisabledAddSummary">新增综述</el-button>
@ -93,7 +92,8 @@
<div style="width: 5px;cursor: col-resize;" @mousedown="startDrag">&nbsp;</div>
<div :style="`width:${dragging.sugWidthRight}px;background-color: #B9CEE9;`" @contextmenu="onContextmenuSug">
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" class="overflowY"
:height="sumHeight" border size="small" ref="tableSuggestion" @row-contextmenu="onCellRightClick" @row-click="rowClickS">
:height="sumHeight" border size="small" ref="tableSuggestion" @row-contextmenu="onCellRightClick"
@row-click="rowClickS">
<el-table-column width="30" align="center">
<template slot-scope="scope">
<el-tag class="moveTag" style="cursor: move;background-color: #EEEEEE;">
@ -258,7 +258,7 @@
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
<!--弹窗-->
<div>
@ -312,12 +312,22 @@
<i class="el-icon-plus" @click="btnAImax(AI.max)" style="font-size: 24px;color: red;cursor:pointer;"></i>
</el-tooltip>
</div>
<el-input v-show="AI.max" type="textarea" v-model="AI.diagnosis" placeholder="AI诊断内容"
:autosize="{ minRows: AIDH, maxRows: AIDH }" style="text-align: right;">
</el-input>
<div v-show="AI.max" style="text-align: right; margin-top: 10px;">
<!-- <el-input v-show="AI.max" type="textarea" v-model="AI.diagnosis" placeholder="AI诊断内容"
:autosize="{ minRows: AIDH, maxRows: AIDH }" style="text-align: right;">
</el-input> -->
<div v-if="AI.isAssistant" style="margin-bottom: 5px;">
<el-input type="textarea" v-model="AI.question" placeholder="向 AI 提出你的问题"
:autosize="{ minRows: 3, maxRows: 3 }">
</el-input>
</div>
<div v-show="AI.max" style="text-align: right; margin: 5px;">
<el-button class="commonbutton" @click="toAIdiagnosis()">AI 提问</el-button>
<el-button class="commonbutton" @click="AI.visible = false">关闭</el-button>
</div>
<div ref="aiContent" v-html="AI.html"
:style="`height:${AIcontentH}px;overflow-y: auto;display: blockresize:vertical;padding: 5px 5px 5px 20px;line-height: 1.5;box-sizing: border-box;width: 100%;font-size: inherit;background-color: #fff;background-image: none;border: 1px solid #dcdfe6;border-radius: 4px;transition: border-color .2s cubic-bezier(.645, .045, .355, 1);`">
</div>
</div>
<!-- 诊断目录 -->
@ -330,7 +340,7 @@
<i class="el-icon-close" @click="dialogIndexVisible = false"
style="font-size: 24px;color: red;cursor:pointer;"></i>
</el-tooltip>
</div>
</div>
</div>
<el-table id="tableSuggestionEasy" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%"
:height="sumHeight" border size="small" ref="tableSuggestionEasy" @row-contextmenu="onCellRightClick">
@ -351,9 +361,10 @@
<script>
import { mapState } from 'vuex';
import Sortable from "sortablejs";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getapi, postapi, putapi, deletapi, fetchStream } from "@/api/api";
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj, arrayReduce } from '../../utlis/proFunc';
import MarkdownIt from "markdown-it";
const md = new MarkdownIt();
export default {
components: {},
props: ["patientRegisterId", "tabChoosed"],
@ -398,6 +409,10 @@ export default {
max: true,
visible: false,
diagnosis: 'AI诊断信息',
isAssistant: true, // AI
question: "", //
rawText: '',
html: ""
},
//
@ -416,7 +431,7 @@ export default {
sugWidthRight: 0
},
curDiagSug:{}, //
curDiagSug: {}, //
};
},
@ -509,6 +524,12 @@ export default {
return Math.floor((this.AI.height - 24 - 42 - 4) / 21.5)
},
AIcontentH() {
let ret = this.AI.height - 185
if (this.AI.isAssistant) ret = ret - 80
return ret
},
sumBtnDisabled() {
let patientRegister = this.dataTransOpts.tableS.patient_register
let ret = true
@ -619,7 +640,7 @@ export default {
//
addSuggtion(curDiagSug) {
let id = Date.now() + String(this.sumDoctorCheck.suggestionList.length)
let pojo = {
id,
@ -649,15 +670,15 @@ export default {
],
}
if(curDiagSug?.id){
let lfind = arrayExistObj(this.sumDoctorCheck.suggestionList,'id',curDiagSug.id)
if(lfind > -1){
this.sumDoctorCheck.suggestionList.splice(Number(lfind) + 1,0,pojo)
if (curDiagSug?.id) {
let lfind = arrayExistObj(this.sumDoctorCheck.suggestionList, 'id', curDiagSug.id)
if (lfind > -1) {
this.sumDoctorCheck.suggestionList.splice(Number(lfind) + 1, 0, pojo)
}
}else{
} else {
this.sumDoctorCheck.suggestionList.push(pojo);
}
//
this.$nextTick(() => {
this.$refs[id].focus();
@ -735,28 +756,74 @@ export default {
this.dialogDiagnosises = true
},
//
// AI AI
btnAIdiagnosis(diagnosis) {
if (!diagnosis) {
this.$message.warning({ showClose: true, message: '诊断内容为空,无法搜索医学解释、常见原因及健康指导信息。' })
return
}
this.AI.visible = true
this.AI.question = ''
this.btnAImax(false)
this.toAIdiagnosis(diagnosis)
},
let message = '性别:' + this.doctorCheck.prBase.sexName + ',年龄:' + this.doctorCheck.prBase.age + '岁,检查结果:' + diagnosis
+ ' 请给出医学解释、常见原因及健康指导'
async toAIdiagnosis(diagnosis) {
let message = this.AI.question
if (!message) {
if (!diagnosis) {
this.$message.warning({ showClose: true, message: '诊断内容为空,无法搜索医学解释、常见原因及健康指导信息。' })
return
}
message = '性别:' + this.doctorCheck.prBase.sexName + ',年龄:' + this.doctorCheck.prBase.age + '岁,检查结果:' + diagnosis
+ ' 请给出医学解释、常见原因及健康指导'
this.AI.question = message
}
postapi('/api/app/AIMessage/GetAIMessageResult', { message })
.then(res => {
if (res.code > -1) {
this.AI.visible = true
this.AI.diagnosis = res.data.result
this.btnAImax(false)
} else {
this.$message.error({ showClose: true, message: res.message })
this.AI.rawText = '';
this.AI.html = '';
try {
await fetchStream('/api/app/AiMessageWs/GetAIMessageResult', { message }, (chunk) => {
// SSE
let cleaned = String(chunk).replace(/data:\s*\[DONE\]/g, '').replace(/^data:\s*/gm, '');
if (!cleaned) return;
//
if (!this.AI.visible) {
this.AI.visible = true;
this.btnAImax(false);
}
})
this.AI.rawText += cleaned;
// Markdown
this.AI.html = md.render(this.AI.rawText);
//
this.$nextTick(() => {
try {
const el = this.$refs.aiContent;
if (el) el.scrollTop = el.scrollHeight;
} catch (e) { }
});
});
} catch (err) {
// 退axios/postapi
try {
const res = await postapi('/api/app/AiMessageWs/GetAIMessageResult', { message });
if (res) {
let cleaned = String(res).replace(/data:\s*\[DONE\]/g, '').replace(/^data:\s*/gm, '');
if (cleaned) {
// 退
if (!this.AI.visible) {
this.AI.visible = true;
this.btnAImax(false);
}
this.AI.rawText += cleaned;
this.AI.html = md.render(this.AI.rawText);
}
}
} catch (e) {
this.$message.error({ showClose: true, message: (err && err.message) || 'AI诊断请求失败' });
}
}
},
@ -1187,7 +1254,7 @@ export default {
console.log('this.sumDetails', this.sumDetails)
},
rowClickS(row){
rowClickS(row) {
this.curDiagSug = row
},

48
src/views/customerOrg/patientRegisterRecover.vue

@ -10,18 +10,18 @@
(window.pageHeight < 600 ? 450 : window.pageHeight - 98) +
'px;'
">
<!---->
<CustomerOrgTreeAll />
<!-- 单位树组件 -->
<CustomerOrgTreeAll @changeTreeCurrOrg="changeTreeCurrOrg" />
</div>
<div :style="'display:block;width:' +
(window.pageWidth - 200 - 35) +
'px;'">
<!-- 查询条件 -->
<PatientRegisterQuery />
<PatientRegisterQuery :refParams="refParamsQuery" @triggerQuery="triggerQuery" />
<!-- 人员列表信息 -->
<PatientRegisterRecoverList />
<PatientRegisterRecoverList :refQueryCondition="queryCondition"/>
</div>
</div>
@ -47,6 +47,19 @@ export default {
tabChoosed: "1",
CustomerOrgTreeStyle: '',
CustomerOrgRightStyle: '',
//
refParamsQuery: {
customerOrgId: '',
customerOrgName: '',
parentNodes:[],
PatientRegisterQueryTimes: 0 //ID
},
//
queryCondition: {
queryConditionTimes: 0
},
};
},
@ -186,6 +199,33 @@ export default {
*/
console.log("dict", this.dict);
},
//
changeTreeCurrOrg(org) {
// console.log('.changeTreeCurrOrg',org)
this.refParamsQuery.customerOrgId = org.id
this.refParamsQuery.customerOrgName = org.displayName
this.refParamsQuery.parentNodes = org.parentNodes //
this.refParamsQuery.PatientRegisterQueryTimes++
//
this.queryCondition.customerOrgId = org.id
this.queryCondition.customerOrgName = org.displayName
// ID (ID)
if (org?.parentNodes.length > 1) {
this.queryCondition.customerOrgTopId = org.parentNodes[1]
} else {
this.queryCondition.customerOrgTopId = org.id
}
},
//
triggerQuery(queryCondition) {
//console.log('.triggerQuery1', queryCondition)
this.queryCondition = Object.assign(this.queryCondition, queryCondition, { queryConditionTimes: Number(this.queryCondition.queryConditionTimes) + 1 })
//console.log('.triggerQuery2', this.queryCondition)
},
},
//()

39
src/views/customerOrg/patientRegisterRefuse.vue

@ -1,22 +1,20 @@
<template>
<div>
<div>
<div>
<div class="middlebox">
<div class="contenttitle">
体检登记 /
<span class="contenttitleBold"
>弃检登记</span
>
<span class="contenttitleBold">弃检登记</span>
</div>
</div>
</div>
<div style=" width: 100%;margin-top:7px">
<!-- 查询条件 -->
<PatientRegisterQuery orgEnable="Y"/>
<PatientRegisterQuery orgEnable="Y" @triggerQuery="triggerQuery" />
<!-- 人员列表信息 -->
<PatientRegisterRefuseList />
<PatientRegisterRefuseList :refQueryCondition="queryCondition" />
</div>
</div>
</div>
</div>
</template>
@ -36,6 +34,11 @@ export default {
data() {
return {
tabChoosed: "1",
//
queryCondition: {
queryConditionTimes: 0
},
};
},
@ -54,7 +57,7 @@ export default {
},
computed: {
...mapState(["window","dataTransOpts","dict", "patientRegister", "customerOrg"]),
...mapState(["window", "dataTransOpts", "dict", "patientRegister", "customerOrg"]),
},
methods: {
@ -73,9 +76,9 @@ export default {
if (res.code == 1) {
this.dict.forSex = res.data;
}
});
});
//
getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => {
@ -85,7 +88,7 @@ export default {
}
);
//
getapi("/api/app/medical-type/in-filter").then((res) => {
@ -108,7 +111,7 @@ export default {
}
});
postapi("/api/app/asbitem/GetBasicList",{isFilterActive:'Y'}).then((res) => {
postapi("/api/app/asbitem/GetBasicList", { isFilterActive: 'Y' }).then((res) => {
if (res.code == 1) {
this.dict.asbItemAll = res.data;
}
@ -116,6 +119,13 @@ export default {
console.log("dict", this.dict);
},
//
triggerQuery(queryCondition) {
//console.log('.triggerQuery1', queryCondition)
this.queryCondition = Object.assign(this.queryCondition, queryCondition, { queryConditionTimes: Number(this.queryCondition.queryConditionTimes) + 1 })
//console.log('.triggerQuery2', this.queryCondition)
},
},
//()
@ -137,5 +147,4 @@ export default {
</script>
<style scoped>
@import '../../assets/css/global_card.css';
</style>

51
src/views/customerOrg/patientRegisterSign.vue

@ -7,24 +7,23 @@
<span class="contenttitleBold">体检人员签到</span>
</div>
</div>
<div style="display: flex;margin-top: 7px;">
<div style="display: flex;">
<!-- 单位树组件 -->
<div :style="'margin-right:15px;background-color: #fff;border-radius: 8px;width:208px; height:' +
(window.pageHeight < 600 ? 450 : window.pageHeight - 100) +
<div :style="'margin-right:10px;background-color: #fff;border-radius: 8px;width:208px; height:' +
(window.pageHeight < 600 ? 450 : window.pageHeight - 98) +
'px;'
">
<CustomerOrgTreeAll />
<!-- 单位树组件 -->
<CustomerOrgTreeAll @changeTreeCurrOrg="changeTreeCurrOrg" />
</div>
<div :style="'display:block;width:' +
(window.pageWidth - 200 - 35) +
'px;height:' +
(window.pageHeight < 600 ? 450 : window.pageHeight - 150) +
'px;'">
<!-- 查询条件 -->
<PatientRegisterQuery />
<PatientRegisterQuery :refParams="refParamsQuery" @triggerQuery="triggerQuery" />
<!-- 人员列表信息 -->
<PatientRegisterSignList />
<PatientRegisterSignList :refQueryCondition="queryCondition"/>
</div>
</div>
@ -49,6 +48,17 @@ export default {
data() {
return {
tabChoosed: "1",
//
refParamsQuery: {
customerOrgId: '',
customerOrgName: '',
parentNodes:[],
PatientRegisterQueryTimes: 0 //ID
},
//
queryCondition: {
queryConditionTimes: 0
},
};
},
@ -119,7 +129,32 @@ export default {
console.log("dict", this.dict);
},
//
changeTreeCurrOrg(org) {
// console.log('.changeTreeCurrOrg',org)
this.refParamsQuery.customerOrgId = org.id
this.refParamsQuery.customerOrgName = org.displayName
this.refParamsQuery.parentNodes = org.parentNodes //
this.refParamsQuery.PatientRegisterQueryTimes++
//
this.queryCondition.customerOrgId = org.id
this.queryCondition.customerOrgName = org.displayName
// ID (ID)
if (org?.parentNodes.length > 1) {
this.queryCondition.customerOrgTopId = org.parentNodes[1]
} else {
this.queryCondition.customerOrgTopId = org.id
}
},
//
triggerQuery(queryCondition) {
//console.log('.triggerQuery1', queryCondition)
this.queryCondition = Object.assign(this.queryCondition, queryCondition, { queryConditionTimes: Number(this.queryCondition.queryConditionTimes) + 1 })
//console.log('.triggerQuery2', this.queryCondition)
},
},
//()

Loading…
Cancel
Save