#
Junjie
2 天以前 4881349b21e7f717bd251012dcaab008448f446d
pages/basics/matQuery.vue
@@ -63,6 +63,7 @@
               batch: null,
               anfme: null,
               anfme2: null,
               origin: null,
            },
            baseIP:'',
            basePORT:'',
@@ -92,16 +93,21 @@
            
         },
         changeValue(value) {
            this.matData.anfme = value
            // this.matData.anfme = value
         },
         changeValue2(value) {
            let arr = this.matData.origin.split("/")
            let mainAnfme = value * parseFloat(arr[1]) * parseFloat(arr[0])
            this.matData.weight = value
            this.matData.anfme = mainAnfme
         },
         back() {
            if (this.matData.anfme === 0) {
               uni.showToast({title: '请输入数量', icon: "none", position: 'top'});
               return;
            }
            console.log(this.matData);
            this.getOpenerEventChannel().emit('matList', {data: this.matData});
            uni.vibrateShort();
            uni.navigateBack({