| | |
| | | @click="findBySelect(item.matnr)"> |
| | | <view class="demo-list-right"> |
| | | <view class="tag"> |
| | | <view class="cu-tag bg-cyan ">商品</view> |
| | | <view class="cu-tag bg-cyan "><strong>商品</strong></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;"><strong>品名:{{item.maktx}}</strong></text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>品号:{{item.matnr}}</strong></text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>规格:{{item.specs}}</strong></text></view> |
| | | <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>工序:{{item.sku}}</strong></text></view> |
| | | </view> |
| | | </label> |
| | | </checkbox-group> |
| | |
| | | }, |
| | | onLoad() { |
| | | let that = this |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | // #ifdef APP-NVUE |
| | | const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | // #endif |
| | | // #ifndef APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // #endif |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('commonUrl', function(data) { |
| | | that.commonUrl = data.commonUrl |
| | | that.showTag(1) |
| | | }) |
| | | |
| | | }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | 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() { |
| | | |
| | | }, |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | showTag(parentId) { |
| | | let that = this |
| | |
| | | |
| | | <style> |
| | | .matnr { |
| | | margin-left: 60rpx; |
| | | margin-top: 20rpx; |
| | | margin: 10rpx auto 10rpx 60rpx; |
| | | } |
| | | .matnr:last-child { |
| | | margin-top: 0rpx; |
| | |
| | | } |
| | | .demo-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 180rpx; |
| | | height: 260rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |