| | |
| | | "name" : "WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "20220721A", |
| | | "versionName" : "20220819A", |
| | | "versionCode" : 103, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | |
| | | <view class="text-title">{{matData.str2}}</view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>单位</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.str1"></view> |
| | | <view class="text-title"><text>批号</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.batch"></view> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title"><text>数量</text></view> |
| | | <view class="text-title"> |
| | | <view> |
| | | <uni-number-box v-model="matData.count" :max="99999" color="#747474" @change="changeValue"/> |
| | | <uni-number-box :value="matData.count" :max="99999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | matNo: null, |
| | | matName: null, |
| | | str2: null, |
| | | anfme: null, |
| | | count: null, |
| | | }, |
| | | baseIP:'', |
| | | basePORT:'', |
| | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('matData', function(data) { |
| | | that.matData = data.data |
| | | console.log(that.matData) |
| | | that.matData.count = 0 |
| | | }) |
| | | |
| | | }, |
| | | onShow() { |
| | | this.matData.count = 0 |
| | | |
| | | }, |
| | | methods: { |
| | | blur() { |
| | |
| | | focus() { |
| | | |
| | | }, |
| | | changeValue() { |
| | | |
| | | changeValue(value) { |
| | | this.matData.count = value |
| | | }, |
| | | back() { |
| | | if (this.matData.anfme === 0) { |
| | | if (this.matData.count === 0) { |
| | | uni.showToast({title: '请输入数量', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | |
| | | </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() { |