| | |
| | | <view class="searchBox"> |
| | | <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> |
| | | <view class="searchArea"> |
| | | <input v-model="locNo" type="text" placeholder=" 库位号" @input="searchByLoc"></view> |
| | | <input v-model="locNo" type="text" placeholder=" Номер места" @input="searchByLoc" placeholder-style="line-height: 85rpx;"></view> |
| | | <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons></view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="searchBox"> |
| | | <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> |
| | | <view class="searchArea"> |
| | | <input v-model="matnr" type="text" placeholder=" 商品编码" @input="searchByMatnr"></view> |
| | | <input v-model="matnr" type="text" placeholder=" По умолчанию" @input="searchByMatnr" placeholder-style="line-height: 85rpx;"></view> |
| | | <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr"></uni-icons></view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="square-1"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>商品列表</text></view> |
| | | <view class="title-text"><text>Списоктоваров</text></view> |
| | | </view> |
| | | </view> |
| | | <!-- 商品列表 --> |
| | |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </label> |
| | | <view class="data-list-left"> |
| | | <view class="matnr"><text style="width: 700rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 700rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 700rpx;">批号:{{item.batch}}</text></view> |
| | | <view class="matnr"><text style="width: 700rpx;">Код товара:{{item.matnr}}</text></view> |
| | | <view><text style="width: 700rpx;">Наименование товара:{{item.maktx}}</text></view> |
| | | <view><text style="width: 700rpx;">Номер партии:{{item.batch}}</text></view> |
| | | <view> |
| | | <text style="width: 700rpx;">数量:{{item.anfme}}</text> |
| | | <text style="width: 700rpx;">Количество:{{item.anfme}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="data-list-right"> |
| | |
| | | </checkbox-group> |
| | | <!-- 无数据显示 --> |
| | | <view class="square-none" v-show="matList.length === 0"> |
| | | <view class="v-show">暂无更多数据...</view> |
| | | <view class="v-show">Нет дополнительных данных...</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | export default { |
| | | data () { |
| | | return { |
| | | matList: [], |
| | | commonUrl:null, |
| | | matList: [{}], |
| | | locNo: null, |
| | | matnr: null |
| | | |
| | |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | checkbox: function () { |
| | | |
| | | }, |
| | |
| | | request() { |
| | | let that = this |
| | | uni.request({ |
| | | url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth', |
| | | url:that.commonUrl + '/locDetl/list/auth', |
| | | header:{'token':uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | |
| | | console.log(that.matList) |
| | | } else { |
| | | uni.showToast({ |
| | | title: "暂无更多数据", |
| | | title: "反选</text>", |
| | | position: 'top', |
| | | duration: 1000 |
| | | }); |