pages/mat/matSelected.vue
@@ -14,7 +14,7 @@
            <view class="form-item-content"><text>{{mat.specs}}</text></view>
         </view>
         <view class="form-item">
            <view class="form-item-desc"><text>情况说明</text></view>
            <view class="form-item-desc"><text>批号</text></view>
            <view class="form-item-content">
               <view class="form-input">
                  <input type="text" v-model="mat.batch">
@@ -62,9 +62,10 @@
         
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('mat', function(data) {
            console.log(data.data);
            data.data['anfme'] = 1
            that.mat = data.data
            log.console(data.data)
            if (data.data.maxNum > 0) {
               that.mat.anfme = data.data.maxNum
               that.max = data.data.maxNum
@@ -89,7 +90,6 @@
            this.mat.anfme = value
         },
         back() {
            console.log(this.mat);
            if (this.mat.anfme === 0) {
               uni.showToast({title: '请输入数量', icon: "none", position: 'top'});
               return;