| | |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="counts" :min="0" :max="99999" color="#747474" /> |
| | | <uni-number-box :value="count" :max="99999" color="#747474" @change="changeValue" /> |
| | | </view> |
| | | </view> |
| | | <view class="revise-box-buttom"> |
| | |
| | | }, |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', {baseIP:that.baseIP, basePORT:that.basePORT }) |
| | | res.eventChannel.emit('matData', {baseIP:that.baseIP, basePORT:that.basePORT }) |
| | | }, |
| | | |
| | | }); |
| | |
| | | var len = this.matList.length |
| | | var add = true |
| | | for (var i = 0; i < len; i++) { |
| | | console.log(mat.matnr === this.matList[i].matnr); |
| | | if (mat.matnr === this.matList[i].matnr) { |
| | | this.matList[i].anfme += mat.anfme |
| | | if (mat.matNo === this.matList[i].matNo) { |
| | | this.matList[i].count += mat.count |
| | | this.$forceUpdate() // 强制刷新 |
| | | add = false |
| | | } |
| | |
| | | }, |
| | | revise(index) { |
| | | this.rowNum = index |
| | | this.count = this.matList[this.rowNum].count |
| | | this.$refs.revise.open() |
| | | |
| | | }, |
| | | changeCount(e) { |
| | | |
| | | }, |
| | | changeValue(value) { |
| | | this.count = value |
| | | }, |
| | | // 确认组托数量 |
| | | confirm() { |
| | | this.matList[this.rowNum].count = this.counts |
| | | this.$forceUpdate() // 强制刷新 |
| | | this.matList[this.rowNum].count = this.count |
| | | this.$refs.revise.close() |
| | | this.$forceUpdate() // 强制刷新 |
| | | }, |
| | | // 列表反选 |
| | | reChecked() { |