| | |
| | | stationId: '', |
| | | stationName: '', |
| | | }, |
| | | list: [] |
| | | list: [], |
| | | isAdmin: false, |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | this.$message.hideLoading() |
| | | if (code == 0) { |
| | | this.list = data || [] |
| | | // 如果有总仓类型就显示全部的供应商 |
| | | for (var tmp of this.list) { |
| | | if (tmp.type === '0') { |
| | | this.isAdmin = true |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | |
| | | url: `/sub_pages/partner/delivery/delivery?stationId=${item.stationId}&stationName=${item.name}` |
| | | }) |
| | | }, |
| | | showAll(){ |
| | | showAll() { |
| | | uni.navigateTo({ |
| | | url: `/sub_pages/partner/delivery/delivery` |
| | | }) |
| | |
| | | </u-input> |
| | | </view> |
| | | </view> |
| | | <view class="search-container m-t-12 flex"> |
| | | <view class="m-l-a m-r-0 w-fit" @click="showAll" >查看全部>></view> |
| | | <view class="search-container m-t-12 flex" v-if="isAdmin"> |
| | | <view class="m-l-a m-r-0 w-fit" @click="showAll">查看全部>></view> |
| | | </view> |
| | | |
| | | |
| | |
| | | characteristicId: that.writeCharaterId, |
| | | value: buf, |
| | | success: function(res) { |
| | | console.log(res) |
| | | // console.log(res) |
| | | }, |
| | | fail: function(e) { |
| | | console.log(e) |
| | | // wx.showToast({ |
| | | // title: '打印失败:' + e, |
| | | // }) |
| | | }, |
| | | complete: function() { |
| | | currentTime++ |