From 74d27bbac9d2cd351c122dd45ac30f59a2452544 Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Sat, 10 Jan 2026 11:44:25 +0800
Subject: [PATCH] seo
---
src/components/report/TurnoverReport.vue | 14 ++-
.../customerOrg/patientRegisterImport.vue | 87 +++++++++++--------
2 files changed, 65 insertions(+), 36 deletions(-)
diff --git a/src/components/report/TurnoverReport.vue b/src/components/report/TurnoverReport.vue
index 9bbf247..6e3d39c 100644
--- a/src/components/report/TurnoverReport.vue
+++ b/src/components/report/TurnoverReport.vue
@@ -37,6 +37,10 @@
包含预登记
+
+ 显示子单位
+
+
@@ -48,7 +52,12 @@
-
+
+
+ {{ query.isChild == 'Y' ? scope.row.customerOrgName + (scope.row.departmentName && scope.row.customerOrgName != scope.row.departmentName ? '--'+scope.row.departmentName:''):scope.row.customerOrgName}}
+
+
+
@@ -89,7 +98,8 @@ export default {
customerOrgIds: [],
// medicalTypeIds: [],
// isMedicalTypeId: 'Y',
- isPreRegistration:'N'
+ isPreRegistration:'N',
+ isChild:'Y',
},
tableData: [],
diff --git a/src/views/customerOrg/patientRegisterImport.vue b/src/views/customerOrg/patientRegisterImport.vue
index 8f01833..f101150 100644
--- a/src/views/customerOrg/patientRegisterImport.vue
+++ b/src/views/customerOrg/patientRegisterImport.vue
@@ -1271,7 +1271,29 @@ export default {
// 导入必填项验证
checkValide(body){
let msg = ''
- // personnelTypeName,medicalTypeName,salesman
+ // patientName,personnelTypeName,medicalTypeName,salesman
+ let keys = Object.keys(this.masterCols)
+ for (let i = 0; i < keys.length; i++) {
+ const key = keys[i];
+ switch (key) {
+ case 'patientName':
+ case 'name':
+ if(!body.patientName) msg = this.masterCols[key] + ' 未填值'
+ break;
+ case 'medicalTypeId': //体检类别
+ if(!body.medicalTypeName) msg = this.masterCols[key] + ' 未填值'
+ break;
+ case 'personnelTypeId': //人员类别
+ if(!body.personnelTypeName) msg = this.masterCols[key] + ' 未填值'
+ break;
+ case 'salesman': //介绍人
+ if(!body.salesman) msg = this.masterCols[key] + ' 未填值'
+ break;
+ default:
+ break;
+ }
+ if(msg) break;
+ }
return msg
},
@@ -1292,47 +1314,44 @@ export default {
console.log(`this.choosedData[${i}],startRowNameType,body`)
// 判断是否必填:
- let msg = checkValide(body)
+ let msg = this.checkValide(body)
if(msg){
this.tableData.push(Object.assign({ importState: '导入失败', importDes: msg }, this.choosedData[i]))
- continue
- }
-
- try {
- // 同一人判断
- if (this.choosedSameMan.patientNo) {
- // 上一次循环已经判断是否同一人,此次循环不需再判断了
- if (this.choosedSameMan.patientNo == '$newPatient$') {
- body.nameType = '3'
- } else {
- body.patientNo = this.choosedSameMan.patientNo
- }
- } else if (startRowNameType != '3') {
- let result = await this.isSamePatient(startRowNameType, body)
- if (result.isContinue) {
- if (result.err) {
- this.tableData.push(Object.assign({ importState: '导入失败', importDes: result.err }, this.choosedData[i]))
- continue
+ }else{
+ try {
+ // 同一人判断
+ if (this.choosedSameMan.patientNo) {
+ // 上一次循环已经判断是否同一人,此次循环不需再判断了
+ if (this.choosedSameMan.patientNo == '$newPatient$') {
+ body.nameType = '3'
+ } else {
+ body.patientNo = this.choosedSameMan.patientNo
+ }
+ } else if (startRowNameType != '3') {
+ let result = await this.isSamePatient(startRowNameType, body)
+ if (result.isContinue) {
+ if (result.err) {
+ this.tableData.push(Object.assign({ importState: '导入失败', importDes: result.err }, this.choosedData[i]))
+ }
+ } else {
+ this.dataImportOpts.startRow = i
+ break; // 跳出循环,重新从 i 开执行 this.importing
}
- } else {
- this.dataImportOpts.startRow = i
- break; // 跳出循环,重新从 i 开执行 this.importing
}
- }
- // 旧接口:/api/app/patientregister/createpatientregisterexcel
- let res = await postapi('/api/app/patientregister/CreatePatientRegisterFromExcel', body)
- this.choosedSameMan = {} // 清除选择同一人员的记录
- if (res.code >= 0) {
- this.tableData.push(Object.assign({ importState: '导入成功' }, this.choosedData[i]))
- } else {
- this.tableData.push(Object.assign({ importState: '导入失败', importDes: res.message }, this.choosedData[i]))
+ // 旧接口:/api/app/patientregister/createpatientregisterexcel
+ let res = await postapi('/api/app/patientregister/CreatePatientRegisterFromExcel', body)
+ this.choosedSameMan = {} // 清除选择同一人员的记录
+ if (res.code >= 0) {
+ this.tableData.push(Object.assign({ importState: '导入成功' }, this.choosedData[i]))
+ } else {
+ this.tableData.push(Object.assign({ importState: '导入失败', importDes: res.message }, this.choosedData[i]))
+ }
+ } catch (error) {
+ this.tableData.push(Object.assign({ importState: '导入失败', importDes: `${error}` }, this.choosedData[i]))
}
- } catch (error) {
- this.tableData.push(Object.assign({ importState: '导入失败', importDes: `${error}` }, this.choosedData[i]))
}
-
// 结束导入
if (i == this.choosedData.length - 1) {
this.elProgress.display = false;