#
whycq
2024-09-11 46e91bad035053a7e2401dba92db443c7f3530e7
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)
                           },
                        },