| | |
| | | <uni-tag :text="item.batch" type="warning"></uni-tag> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="list-left-item"> |
| | | <view class="desc">重量:</view> |
| | | <view class="left-item"> |
| | | <uni-tag :text="item.weight" type="warning"></uni-tag> |
| | | </view> |
| | | </view> --> |
| | | <view class="list-left-item"> |
| | | <view class="desc">组成数量:</view> |
| | | <view class="left-item">{{item.beBatch}}</view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">数量:</view> |
| | | <view class="left-item">{{item.anfme}}</view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">备注:</view> |
| | | <view class="left-item">{{item.memo}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="list-right"> |
| | |
| | | <view class="popup-item-left">重量:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="weight"></view> |
| | | </view> --> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">备注:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="memo"></view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">数量:</view> |
| | | <view class="popup-item-right" style="border: none;justify-content: center;"> |
| | |
| | | matnr: '', |
| | | batch: '', |
| | | weight: '', |
| | | memo: '', |
| | | msgType1: 'success', |
| | | msgType: 'success', |
| | | messageText: '', |
| | |
| | | success(result) { |
| | | result = result.data |
| | | if (result.code === 200 && result.data) { |
| | | that.matData = result.data |
| | | that.matnr = '' |
| | | that.matData['batch'] = '' |
| | | uni.navigateTo({ |
| | | url: "../mat/matSelected", |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | success: function(res) { |
| | | res.eventChannel.emit('mat', { |
| | | data: result.data |
| | | }) |
| | | }, |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 |
| | | events: { |
| | | matList: function(data) { |
| | | that.checkMat(data.data) |
| | | that.focuss() |
| | | }, |
| | | }, |
| | | }); |
| | | for(let k of result.data) { |
| | | k.anfme = k.beBatch |
| | | that.dataList.push(k) |
| | | that.$refs.inputDialog.close() |
| | | that.matnr = '' |
| | | } |
| | | } else if (result.code == 403) { |
| | | uni.showToast({ |
| | | title: result.msg, |
| | |
| | | this.count = this.dataList[i].anfme |
| | | this.batch = this.dataList[i].batch |
| | | this.weight = this.dataList[i].weight |
| | | this.memo = this.dataList[i].memo |
| | | this.rowNum = i |
| | | this.eject() |
| | | }, |
| | |
| | | this.dataList[this.rowNum].anfme = this.count |
| | | this.dataList[this.rowNum].batch = this.batch |
| | | this.dataList[this.rowNum].weight = this.weight |
| | | this.dataList[this.rowNum].memo = this.memo |
| | | this.matnr = '' |
| | | this.messageText = "修改成功" |
| | | this.messageToggle('success') |
| | |
| | | z-index: 10; |
| | | } |
| | | |
| | | .list:first-child { |
| | | margin-top: 320rpx; |
| | | } |
| | | .item { |
| | | display: flex; |
| | | align-items: center; |