diff --git a/package-lock.json b/package-lock.json index 93a6a75..7e724af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "markdown-it": "^14.1.0", "moment": "^2.29.4", "node-polyfill-webpack-plugin": "^2.0.1", + "pinyin": "^4.0.0", "print-js": "^1.6.0", "qrcode": "^1.5.4", "sortablejs": "^1.15.0", @@ -7824,6 +7825,11 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/keypress": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/keypress/-/keypress-0.1.0.tgz", + "integrity": "sha512-x0yf9PL/nx9Nw9oLL8ZVErFAk85/lslwEP7Vz7s5SI1ODXZIgit3C5qyWjw4DxOuO/3Hb4866SQh28a1V1d+WA==" + }, "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", @@ -9374,6 +9380,47 @@ "node": ">=8.6" } }, + "node_modules/pinyin": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/pinyin/-/pinyin-4.0.0.tgz", + "integrity": "sha512-vHpV5K+vpp6XUUpZNGRDuHoN+1xcmieM3EWlH4QjSX2kkpG/gVOwpqwV9EOJ9x9c9UERFKeLml5XVSukE/PLgQ==", + "dependencies": { + "commander": "~1.1.1" + }, + "bin": { + "pinyin": "bin/pinyin" + }, + "engines": { + "install-node": "^18.0.0" + }, + "peerDependencies": { + "@node-rs/jieba": "^1.6.0", + "nodejieba": "^3.4.4", + "segmentit": "^2.0.3" + }, + "peerDependenciesMeta": { + "@node-rs/jieba": { + "optional": true + }, + "nodejieba": { + "optional": true + }, + "segmentit": { + "optional": true + } + } + }, + "node_modules/pinyin/node_modules/commander": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/commander/-/commander-1.1.1.tgz", + "integrity": "sha512-71Rod2AhcH3JhkBikVpNd0pA+fWsmAaVoti6OR38T76chA7vE3pSerS0Jor4wDw+tOueD2zLVvFOw5H0Rcj7rA==", + "dependencies": { + "keypress": "0.1.x" + }, + "engines": { + "node": ">= 0.6.x" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmmirror.com/pkg-dir/-/pkg-dir-4.2.0.tgz", diff --git a/package.json b/package.json index 46b168b..21cf977 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "markdown-it": "^14.1.0", "moment": "^2.29.4", "node-polyfill-webpack-plugin": "^2.0.1", + "pinyin": "^4.0.0", "print-js": "^1.6.0", "qrcode": "^1.5.4", "sortablejs": "^1.15.0", diff --git a/src/components/doctorCheck/PatientRegisterBase2.vue b/src/components/doctorCheck/PatientRegisterBase2.vue index d021fe1..e9cfcbd 100644 --- a/src/components/doctorCheck/PatientRegisterBase2.vue +++ b/src/components/doctorCheck/PatientRegisterBase2.vue @@ -289,10 +289,10 @@ export default { this.prBase = res.data // ---------- 如果是总检与审核医生不可选时,则总检与审核默认当前用户,此功能放至保存时触发 - // if (this.prBase.completeFlag != '3') this.prBase.summaryDoctorId = this.userId - // if (this.prBase.completeFlag == '3' && this.prBase.isAudit == 'N') { - // this.prBase.auditDoctorId = this.userId - // } + if (this.prBase.completeFlag != '3') this.prBase.summaryDoctorId = this.prBase.summaryDoctorId || this.userId + if (this.prBase.completeFlag == '3' && this.prBase.isAudit == 'N') { + this.prBase.auditDoctorId = this.prBase.auditDoctorId || this.userId + } // ---------- // console.log('res.data',res.data) // console.log('this.prBase',this.prBase) diff --git a/src/views/customerReport/unitSettlement.vue b/src/views/customerReport/unitSettlement.vue index 0328863..f81c38f 100644 --- a/src/views/customerReport/unitSettlement.vue +++ b/src/views/customerReport/unitSettlement.vue @@ -365,7 +365,8 @@ page-break-before: avoid;}}`, // 去除页眉页脚 // 强制将单元格值转换为字符串 forceStringFormatter(row, column, cellValue) { - // 如果 cellValue 存在,则转为字符串;否则返回原值 + console.log('row, column, cellValue',row, column.property, cellValue) + // 如果 cellValue 存在,则转为字符串;否则返回原值 return cellValue ? "\u200C" + String(cellValue) : cellValue }, diff --git a/src/views/doctorCheck/sumDoctorCheck.vue b/src/views/doctorCheck/sumDoctorCheck.vue index acb6c7c..99f753c 100644 --- a/src/views/doctorCheck/sumDoctorCheck.vue +++ b/src/views/doctorCheck/sumDoctorCheck.vue @@ -619,6 +619,7 @@ export default { historySummary: '', // 历史综述 }, patient_registerInit: {}, // 重置用到 + userId:'', // 当前用户ID // 综述建议部份 summaryList: [], @@ -754,7 +755,7 @@ export default { //挂载完成 mounted() { - + this.userId = window.sessionStorage.getItem("userId") this.dictInit(); // 监听来自 Electron 的调用 @@ -1216,7 +1217,7 @@ export default { let body = { patientRegisterId: this.patient_register.id, - summaryDoctorId: this.patient_register.summaryDoctorId || null, + summaryDoctorId: this.patient_register.summaryDoctorId ||this.userId || null, summaryDate: this.patient_register.summaryDate || moment(new Date()).format("yyyy-MM-DD HH:mm:ss"), medicalConclusionId: this.patient_register.medicalConclusionId || null, summaryHistoricalReview: this.patient_register.historySummary, @@ -1288,8 +1289,11 @@ export default { .then((res) => { if (res.code > -1) { //this.patient_register.completeFlag = '3'; + this.patient_register.completeFlag = '3' + this.patient_register.summaryDoctorId = body.summaryDoctorId + this.patient_register.summaryDate = moment(new Date()).format("yyyy-MM-DD HH:mm:ss") this.getInfoByPatientRegisterNo(this.patient_register.patientRegisterNo) - .then(() => { + .then(() => { this.refParamsQuery.brushSummary++ }) } @@ -1400,7 +1404,7 @@ export default { // patient_register.summaryDoctorId // patient_register.auditDoctorId let auditDoctorId = this.patient_register.auditDoctorId - if (!auditDoctorId) auditDoctorId = window.sessionStorage.getItem("userId") + if (!auditDoctorId) auditDoctorId = this.userId||null let body = { patientRegisterId: this.patient_register.id, auditDoctorId, // 不传时,取当前用户 @@ -1438,8 +1442,10 @@ export default { postapi(`/api/app/patientregister/updatepatientregisterauditordoctor`, body) .then((res) => { console.log("unAudit", res.data); - if (res.code != -1) { + if (res.code > -1) { this.patient_register.isAudit = body.isAudit; + this.patient_register.auditDoctorId = body.auditDoctorId + this.patient_register.auditDate = moment(new Date()).format("yyyy-MM-DD HH:mm:ss") } }) .catch((err) => { diff --git a/src/views/report/report.vue b/src/views/report/report.vue index b42b73e..421f699 100644 --- a/src/views/report/report.vue +++ b/src/views/report/report.vue @@ -20,10 +20,10 @@ Math.floor(((window.pageWidth - 110 - 60) * 3) / 4) + 'px;' "> -