| | |
| | | <view class="search-box"> |
| | | <view class="search-area"> |
| | | <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view> |
| | | <input type="text" v-model="condition" placeholder="请输入商品编码 / 名称"/> |
| | | <input type="text" v-model="condition" placeholder="Пожалуйста, введите код товара / название."/> |
| | | <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view> |
| | | </view> |
| | | <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">搜索</button></view> |
| | | <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">Поиск</button></view> |
| | | </view> |
| | | <checkbox-group @change="checkbox"> |
| | | <label v-for="(item,index) in tag" :key="index" class="demo-list bg-false" |
| | | @click="showTag(item.id)"> |
| | | <view class="demo-list-right"> |
| | | <view class="tag"> |
| | | <view class="cu-tag bg-blue ">归类</view> |
| | | <view class="cu-tag bg-blue ">Классификация</view> |
| | | </view> |
| | | |
| | | <view class="order-ditel"><text class="orderNo">{{item.name}}</text></view> |
| | |
| | | <view class="tag"> |
| | | <view class="cu-tag bg-cyan ">商品</view> |
| | | </view> |
| | | <view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view> |
| | | <view class="matnr"><text style="width: 400rpx;">{{item.maktx}}</text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.matnr}}</text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.maktx}}</text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.specs}}</text></view> |
| | | </view> |
| | | </label> |
| | | </checkbox-group> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | condition:null, |
| | | tag: [], |
| | | data: [], |
| | | baseHttp:'http://', |
| | | baseIP:'', |
| | | basePORT:'', |
| | | baseUrl:'/lywms' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('acceptDataFromOpenerPage', function(data) { |
| | | that.baseIP = data.baseIP |
| | | that.basePORT = data.basePORT |
| | | eventChannel.on('commonUrl', function(data) { |
| | | that.commonUrl = data.commonUrl |
| | | that.showTag(1) |
| | | }) |
| | | }, |
| | |
| | | }); |
| | | uni.request({ |
| | | // url: "http://localhost:8081/jkwms/tag/list/pda/auth", |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/search/pda/auth', |
| | | url: that.commonUrl + '/mat/search/pda/auth', |
| | | data: { |
| | | condition: condition |
| | | }, |
| | |
| | | let that = this |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/tag/list/pda/auth', |
| | | url: that.commonUrl + '/tag/list/pda/auth', |
| | | header: { |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | that.tag = null |
| | | that.data = null |
| | | var res = result.data |
| | |
| | | return; |
| | | } |
| | | uni.request({ |
| | | // url: "http://localhost:8081/jkwms/mat/list/pda/auth", |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/list/pda/auth', |
| | | url: that.commonUrl + '/mat/list/pda/auth', |
| | | data: { |
| | | tagId: tagId |
| | | }, |
| | |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | that.tag = null |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | |
| | | .search-area { |
| | | display: inline-block; |
| | | background-color: #F1F1F1; |
| | | width: 75%; |
| | | width: 70%; |
| | | height: 70%; |
| | | margin: 15rpx; |
| | | border-radius: 15rpx; |
| | |
| | | } |
| | | .demo-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 180rpx; |
| | | height: 220rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |