| | |
| | | <template> |
| | | <view> |
| | | <view class="back" @click="back()" v-show="backIds.length > 1"> |
| | | <uni-icons class="opt-icon" type="left" size="20" color="#b9b9b9"></uni-icons> |
| | | <text>返回上一级</text> |
| | | <uni-icons class="opt-icon" type="left" size="20" color="#FFF"></uni-icons> |
| | | <text style="color: #FFF;">返回上一级</text> |
| | | </view> |
| | | <view class="card" v-for="item in data"> |
| | | <view class="card-left" @click="getPageList(item.tagId,true)"> |
| | | <view>名称:{{item.maktx}}</view> |
| | | <view>编码:{{item.matnr}}</view> |
| | | <view>规格:{{item.specs}}</view> |
| | | <view>序号: {{item.tagId}}</view> |
| | | <view>名称: {{item.maktx}}</view> |
| | | <view>编码: {{item.matnr}}</view> |
| | | <view>规格: {{item.specs}}</view> |
| | | </view> |
| | | <view class="card-right"> |
| | | <view class="card-right" @click="findBySelect(item.matnr)"> |
| | | <uni-icons class="opt-icon" type="right" size="20" color="#b9b9b9"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <!-- 弹窗选择 --> |
| | | <uni-popup ref="inputDialog" type="dialog"> |
| | | <view class="pop"> |
| | | <view class="pop-btn" @click="select(1)"> |
| | | 当前物料 |
| | | </view> |
| | | <view class="pop-btn" @click="select(2)"> |
| | | 当前节点所有物料 |
| | | </view> |
| | | <view class="pop-btn" @click="select(3)"> |
| | | 子节点所有物料 |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | this.getPageList(this.backIds[a],false) |
| | | this.backIds.pop() |
| | | // console.log("back:"+this.backIds); |
| | | }, |
| | | typeShow() { |
| | | this.$refs.inputDialog.open() |
| | | }, |
| | | findBySelect(matnr) { |
| | | this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: matnr}); |
| | | uni.navigateBack({ |
| | | |
| | | }) |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | <style> |
| | | .back { |
| | | height: 70rpx; |
| | | height: 100rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | line-height: 2; |
| | | background-color: #FFF; |
| | | background-color: #55aaff; |
| | | } |
| | | .card { |
| | | background-color: #e3e3e3; |
| | |
| | | .opt-icon { |
| | | padding: 8rpx; |
| | | } |
| | | .pop { |
| | | min-height: 200rpx; |
| | | width: 80vw; |
| | | background-color: #55aaff; |
| | | border-radius: 20rpx; |
| | | color: #eee; |
| | | } |
| | | .pop-btn { |
| | | height: 100rpx; |
| | | line-height: 100rpx; |
| | | width: 100%; |
| | | text-align: center; |
| | | border-bottom: 1px solid #ccc; |
| | | } |
| | | .pop-btn:last-child { |
| | | border: none; |
| | | } |
| | | </style> |