#
whycq
2024-06-27 edbd0076951445342a913531e2c66ea82f797ece
pages/mat/matSelected.vue
@@ -64,11 +64,14 @@
         eventChannel.on('mat', function(data) {
            that.mat = data.data
            console.log(data.data);
            if (data.data.maxNum) {
            if (data.data.maxNum > 0) {
               that.mat.anfme = data.data.maxNum
            } else {
               that.max = data.data.maxNum
            } else if (data.data.maxNum == 0) {
               uni.showToast({title: '当前物料最大可入数量为 0', icon: "none", position: 'top'});
               that.mat.anfme = 0
            }
               that.max = data.data.maxNum
            }
            
         })