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 f9d5acd..2740b25 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){