From cece0f0de5be4cec6ca1e6808b882cd3cc67beab Mon Sep 17 00:00:00 2001 From: wuyibo <771227828@qq.com> Date: Thu, 3 Aug 2023 16:14:35 +0800 Subject: [PATCH] EE --- .../src/views/system/potentialCustomer/index.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/system/potentialCustomer/index.vue b/ruoyi-ui/src/views/system/potentialCustomer/index.vue index 9c49c2da..193b7cf0 100644 --- a/ruoyi-ui/src/views/system/potentialCustomer/index.vue +++ b/ruoyi-ui/src/views/system/potentialCustomer/index.vue @@ -443,6 +443,9 @@ + + +
确 定 @@ -841,10 +844,19 @@ export default { handleDrawerAddFollowUp(){ this.innerDrawer = true; this.followForm = {}; - this.followForm.followUpDate = new Date(); + this.followForm.followUpDate = this.getDateYYYYMMddHHMMSS(); this.followForm.customerId = this.customerId; this.followForm.followType = this.customerStatus; }, + getDateYYYYMMddHHMMSS(){ + const date = new Date(); + const month = (date.getMonth() + 1).toString().padStart(2, '0'); + const strDate = date.getDate().toString().padStart(2, '0'); + const starHours = date.getHours().toString().padStart(2, '0'); + const starMinutes = date.getMinutes().toString().padStart(2, '0'); + const starSeconds = date.getSeconds().toString().padStart(2, '0'); + return `${date.getFullYear()}-${month}-${strDate} ${starHours}:${starMinutes}:${starSeconds}`; + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => {