| | |
| | | <view class="title-text"><text>检索商品</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input-btn"> |
| | | <view class="content-input"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | | <!-- <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+提取</button> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | <!-- <view> |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </view> --> |
| | | <view ><text style="width: 400rpx;">单据:{{item.orderNo}}</text></view> |
| | | <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view> |
| | | <view><text style="width: 400rpx;">规格:{{item.specs}}</text></view> |
| | | <!-- <view><text style="width: 400rpx;">型号:{{item.model}}</text></view> --> |
| | | <view><text style="width: 400rpx;">批次:{{item.batch}}</text></view> |
| | | <!-- <view><text style="width: 400rpx;">备注:{{item.memo}}</text></view> --> |
| | | <view> |
| | | <text style="width: 400rpx;">数量:{{item.anfme}}</text> |
| | | <text style="width: 400rpx;">主数量:{{item.anfme}}</text> |
| | | </view> |
| | | <view> |
| | | <text style="width: 400rpx;">辅数量:{{item.weight}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="data-list-right"> |
| | |
| | | <view class="revise-box "> |
| | | <view class="revise-box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">修改批号/数量</text> |
| | | <text class="title">修改数量</text> |
| | | </view> |
| | | <view class="" style="position: relative;left: 50px;margin-bottom: 20px;"> |
| | | <text style="display: inline-block;float: left;width: 50px;">批号:</text> |
| | | <!-- <view class="" style="position: relative;left: 50px;margin-bottom: 20px;"> |
| | | <text style="display: inline-block;float: left;width: 60px;">批次:</text> |
| | | <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch"> |
| | | </view> |
| | | </view> --> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <text style="display: inline-block;float: left;width: 50px;">批号:</text> |
| | | <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/> |
| | | <text style="display: inline-block;float: left;width: 60px;">主数量:</text> |
| | | <uni-number-box :value="count" :max="99999999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | <view class="revise-box-buttom"> |
| | |
| | | } |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/comb/auth', |
| | | url: that.commonUrl + '/mobile/comb2/auth', |
| | | data: JSON.stringify({ |
| | | barcode: that.barcode, |
| | | combMats: that.matList |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + '/mat/auth', |
| | | url: that.commonUrl + '/mobile/mat/auth', |
| | | data: { |
| | | matnr:that.matnr |
| | | }, |
| | |
| | | var len = this.matList.length |
| | | var add = true |
| | | for (var i = 0; i < len; i++) { |
| | | if (mat.matnr == this.matList[i].matnr) { |
| | | if (mat.matnr == this.matList[i].matnr && mat.batch == this.matList[i].batch) { |
| | | this.matList[i].anfme += mat.anfme |
| | | this.$forceUpdate() // 强制刷新 |
| | | add = false |
| | |
| | | } |
| | | .data-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 180rpx; |
| | | height: 280rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |