From 3b33baa286758fc029774c99f4733d447d5527aa Mon Sep 17 00:00:00 2001 From: shidongli Date: Mon, 9 Dec 2024 13:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E5=8A=A8=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManuallyCreatingTasks/index.vue | 69 +++++-------------- 1 file changed, 19 insertions(+), 50 deletions(-) diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index f3b9979..babf70a 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -127,7 +127,7 @@ @click.native="clicktimelineitem(item, index)" >
-
+
指定时间: - +
@@ -190,7 +190,7 @@ 立即执行 - +
@@ -539,6 +539,7 @@ export default { name: "ManuallyCreatingTasks", data() { return { + datePickerVisible:true, show: 0, pickerOptions: { disabledDate(time) { @@ -618,9 +619,6 @@ export default { checked1: '', checked2: '', checked3: '', - disabled: true, - - }, ], listindex: 0, @@ -633,7 +631,7 @@ export default { created() { console.log(this.$route.query,'this.$route.quer') - + this.infolist(); this.infolistword(); this.infolistMESSAGE(); @@ -652,10 +650,10 @@ export default { this.list[0].routeNodeName='AFTER_VISIT_DISCHARGE' this.list[0].plantype='PLUSDAY' - + } if(this.$route.query.path=="/patient/patientinfoimport" || this.$route.query.path=="/task/Patientmanagement"){ - + this.list[0].checked2=2 this.list[0].routeNodeName='' this.list[0].plantype='APPOINT' @@ -704,26 +702,19 @@ export default { item.routeNodeDay = "" item.plantype = "APPOINT" item.timedata = "" -}, - topclack(item,index){ - }, - input(item,index){ - // 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'); + input(item,index){ + this.$forceUpdate() + const dateParts = item.nodePlanTime.split(' '); + const date = new Date(); + // 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) { - console.log(value) - // 当日期改变时,手动关闭弹框 + // const ss = String(date.getSeconds()).padStart(2, '0'); + item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes;// + ':' + ss ; }, // 出院/诊后 @@ -761,33 +752,11 @@ export default { let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds(); var data = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss item.timedata = data - console.log(data, '日期'); item.plantype = "CURRENT" item.nodePlanTime = "" - // if (e == true) { - // console.log('00000000000000000000') - // let yy = new Date().getFullYear(); - // let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1); - // let dd = (new Date().getDate()) < 10 ? '0' + (new Date().getDate() + 1) : (new Date().getDate() + 1); - // let hh = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours(); - // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes(); - // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds(); - // var data = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss - // item.timedata = data - // console.log(data, '日期'); - // item.plantype = "CURRENT" - // item.disableddata = true - // item.disabledcount = true - // item.disabled = true - // item.nodePlanTime = "" - - // } else { - // item.timedata = "" - // } }, upload() { - // return this.$confirm('保存此任务, 是否继续?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消',