From 430c7aac2447b36f973c2e49faeee431ef445f5b Mon Sep 17 00:00:00 2001 From: zhuangyuanke Date: Sun, 8 Dec 2024 22:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=20?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/patientInfoImport/index.vue | 2 +- src/views/system/ManuallyCreatingTasks/index.vue | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/manage/patientInfoImport/index.vue b/src/views/manage/patientInfoImport/index.vue index 08d88b5..87b33f3 100644 --- a/src/views/manage/patientInfoImport/index.vue +++ b/src/views/manage/patientInfoImport/index.vue @@ -154,7 +154,7 @@ export default { query: { path: "/patient/patientinfoimport", // signPatientRecordId: row.id, - importId: row.id ?row.id : '', + importMainId: row.id ?row.id : '', patientName: row.patientName ? row.patientName : '', departmentId: row.departmentId ? row.departmentId : '', departmentName: row.departmentName ? row.departmentName : '', diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index db07ccc..f3b9979 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -558,7 +558,7 @@ export default { optionslisttime: [], parentDictCodelist: [], updata: { - importId: "", + importMainId: "", signPatientRecordId: "", patientId: "", patientName: "", @@ -642,7 +642,7 @@ export default { this.optiononditionOperator(); this.updata.signPatientRecordId = this.$route.query.signPatientRecordId; this.updata.patientId = this.$route.query.patientId; - this.updata.importId = this.$route.query.importId; + this.updata.importMainId = this.$route.query.importMainId; this.updata.patientName = this.$route.query.patientName; this.updata.departmentId = this.$route.query.departmentId; this.updata.departmentName = this.$route.query.departmentName; @@ -708,7 +708,17 @@ export default { topclack(item,index){ }, input(item,index){ - item.nodePlanTime = new Date(); + // item.nodePlanTime = new Date(); + + const date = new Date(item.nodePlanTime); + const year = date.getFullYear(); + const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1 + const day = String(date.getDate()).padStart(2, '0'); + const hours = String(date.getHours()).padStart(2, '0'); + const minutes = String(date.getMinutes()).padStart(2, '0'); + const ss = String(date.getSeconds()).padStart(2, '0'); + item.nodePlanTime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes;// + ':' + ss ; + this.$forceUpdate() }, handleDateChange(value) {