| | |
| | | <view class="cu-form-group margin-top"> |
| | | <view class="title">托盘码</view> |
| | | <input v-model="billNo" placeholder="扫码 / 输入" name="input" @input="findCode()" focus> |
| | | <button v-model="matBtn" class="cu-btn bg-yellow" @click="toggle('right')"><text>+补充</text></button> |
| | | <!-- <button v-model="matBtn" class="cu-btn bg-yellow" @click="toggle('right')"><text>+补充</text></button> --> |
| | | |
| | | </view> |
| | | <view class="margin-top"> |
| | | <uni-table border stripe emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center" width="80">数量</uni-th> |
| | | <uni-th align="center" width="100">单位</uni-th> |
| | | <uni-th align="center" width="100">产品编码</uni-th> |
| | | <uni-th align="center" width="100">产品名称</uni-th> |
| | | <uni-th align="center" width="100">产品批号</uni-th> |
| | | <uni-th align="center" width="100">库位</uni-th> |
| | | <uni-th align="center" width="150">确认数量</uni-th> |
| | | <!-- <uni-th align="center" width="100">库位</uni-th> --> |
| | | <!-- <uni-th align="center" width="150">确认数量</uni-th> --> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in locDetlData" :key="index"> |
| | | <uni-td>{{item.count}}</uni-td> |
| | | <uni-td>{{item.matNo}}</uni-td> |
| | | <uni-td>{{item.matName}}</uni-td> |
| | | <uni-td>{{item.itemBatch}}</uni-td> |
| | | <uni-td>{{item.locNo}}</uni-td> |
| | | <uni-td align="center"> |
| | | <uni-td style="text-align: center;">{{item.anfme}}</uni-td> |
| | | <uni-td style="text-align: center;">{{item.model}}</uni-td> |
| | | <uni-td style="text-align: center;">{{item.matnr}}</uni-td> |
| | | <uni-td style="text-align: center;">{{item.maktx}}</uni-td> |
| | | <uni-td style="text-align: center;">{{item.batch}}</uni-td> |
| | | <!-- <uni-td>{{item.locNo}}</uni-td> --> |
| | | <!-- <uni-td align="center"> |
| | | <button class ="cu-btn bg-orange margin-xs" @click="conf(index,item)">修改</button> |
| | | <button class ="cu-btn bg-red margin-xs" @click="remove(index,item)">删除</button> |
| | | </uni-td> |
| | | </uni-td> --> |
| | | </uni-tr> |
| | | </uni-table> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="cu-bar foot input" style="height: 130rpx;"> |
| | | <view class="flex solid-bottom padding justify-start" > |
| | | <button class="cu-btn bg-yellow main-btn margin-xs" style="width: 430rpx;" @click="check">确 认</button> |
| | | <button class="cu-btn bg-yellow main-btn margin-xs" style="width: 430rpx;" @click="reset">确 认</button> |
| | | <button class="cu-btn bg-grey main-btn margin-xs" @click="reset">重 置</button> |
| | | </view> |
| | | </view> |
| | |
| | | // 赋值前清空表格 |
| | | that.locDetlData = [] |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/check/queryMatFromBarCode?barCode=" + barCode, |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/pakout/query/auth", |
| | | header: { |
| | | 'content-type':'application/x-www-form-urlencoded', |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | data: { |
| | | barCode: barCode |
| | | barcode: barCode |
| | | }, |
| | | method:'GET', |
| | | method:'POST', |
| | | success(res) { |
| | | if (res.data.code === 200) { |
| | | that.locDetlData = res.data.data |