From 1a5c99fe585ccfc194e12a382c0590c6e7012a81 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Mon, 2 Aug 2021 15:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=BB=98=E8=AE=A4=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- canteen/common/shared.js | 2 +- canteen/pages/purchase/launch.vue | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/canteen/common/shared.js b/canteen/common/shared.js index 4dcfeff..fe81a86 100644 --- a/canteen/common/shared.js +++ b/canteen/common/shared.js @@ -31,7 +31,7 @@ export function isValueType(value) { export function recordTime(time = new Date(), separator = "-", swf = 'all'){ let year = time.getFullYear(); let month = time.getMonth() + 1; - let day = time.getDate(); + let day = time.getDate()+1; let hour = time.getHours(); let min = time.getMinutes(); let ppn = time.getSeconds(); diff --git a/canteen/pages/purchase/launch.vue b/canteen/pages/purchase/launch.vue index 8091f04..bbd9f47 100644 --- a/canteen/pages/purchase/launch.vue +++ b/canteen/pages/purchase/launch.vue @@ -25,7 +25,8 @@ 收货时间 - {{ date || '请选择收货时间...' }} + {{ '请选择收货时间...' }} + {{ date }} @@ -64,14 +65,15 @@ }, data(){ return { - // date: this.$shared.recordTime(new Date(), '-', 'date'), // 选择时间, 默认今天 - date: '', + date: this.$shared.recordTime(new Date(), '-', 'date'), // 选择时间, 默认今天 + // date: '', material_list: {}, // 供应商,物资列表,不被渲染,在底层逻辑运作 show_material: false, // 是否显示采购清单按钮 render_material_list: {}, // 渲染出来的物资列表 show_count: 0, // 页面显示次数 p_sn: '', // 订单号,如果有 - type: 0 // 类型, 1编辑, 2复用 + type: 0 ,// 类型, 1编辑, 2复用 + first_time: true } }, onLoad(options){ @@ -227,6 +229,7 @@ // 时间选择 pickerChange(event){ this.date = event.detail.value; + this.first_time = false }, // 移除供应商 removeSupplier(key){