pages/pakin/goodsDown.vue
@@ -255,6 +255,13 @@ // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 events: { matList: function(data) { if(data.data.batch == "" || data.data.batch == null){ const now = new Date(); const year = now.getFullYear(); const month = now.getMonth() + 1; // 月份从0开始,需要加1 const day = now.getDate(); data.data.batch = (""+year+month+day) } that.checkMat(data.data) }, },