| | |
| | | batch: null, |
| | | anfme: null, |
| | | anfme2: null, |
| | | origin: null, |
| | | }, |
| | | baseIP:'', |
| | | basePORT:'', |
| | |
| | | |
| | | }, |
| | | 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({ |