123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <template>
- <view>
- <u-navbar title="钢瓶调拨" autoBack placeholder></u-navbar>
- <view style="width: 100%;">
- <!-- <view class="transfer_cardil" @click="transferRecord">
- <view class="title_eeeeiul">调拨记录</view>
- <u-icon name="file-text" size="30"></u-icon>
- </view> -->
- <view class="transfer_card" v-for="(item,index) in dataList" :key="index" @click="getAllot(item)">
- <view class="title_eeee">{{item.title}}</view>
- <u-icon name="arrow-right"></u-icon>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- dataList: [],
- // 气站
- dataList1: [{
- id: '13',
- title: '确认空瓶到达气站'
- }, {
- id: '016',
- title: '确认重瓶到达气站'
- }, {
- id: 'Unqualified',
- title: '回收不合格钢瓶'
- }],
- // 司机
- dataList2: [{
- id: '17',
- title: '确认重瓶从气站出库'
- }, {
- id: '11',
- title: '确认空瓶装车'
- }, {
- id: '033',
- title: '确认重瓶从门店出库'
- }, {
- id: 'Unqualified',
- title: '回收不合格钢瓶'
- }],
- // 门店
- dataList3: [{
- id: '31',
- title: '确认重瓶卸货入库'
- }, {
- id: '35',
- title: '确认未配送重瓶返库'
- }, {
- id: '21',
- title: '门店回收空瓶'
- }, {
- id: 'Unqualified',
- title: '回收不合格钢瓶'
- }],
- // 送气员
- dataList4: [{
- id: '25',
- title: '领重瓶出库'
- }],
- }
- },
- mounted() {
- var userInfo = this.$cache.getCache('userInfo')
- if (userInfo.provUser) {
- if (userInfo.provUser.isorders == 0 && userInfo.provUser.userType == 3) {
- // '送气员端'
- this.dataList = this.dataList4
- } else if (userInfo.provUser.userType == 3) {
- // '门店端'
- this.dataList = this.dataList3
- } else if (userInfo.provUser.userType == 4) {
- // '司机端'
- this.dataList = this.dataList2
- } else if (userInfo.provUser.userType == 5) {
- // '气站端'
- this.dataList = this.dataList1
- }
- } else {
- // '送气员端'
- this.dataList = this.dataList4
- }
- },
- methods: {
- getAllot(value) {
- uni.navigateTo({
- url: '/pages/order/cannibalize?type=' + value.id + '&title=' + value.title
- });
- },
- // 调拨记录
- transferRecord() {
- uni.navigateTo({
- url: '/pages/information/transferRecord'
- });
- }
- }
- }
- </script>
- <style lang="scss">
- .transfer_cardil {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 25rpx;
- padding: 20rpx 30rpx;
- border-radius: 10rpx;
- border: 1rpx solid #e7e6e4;
- }
- .title_eeeeiul {
- font-size: 32rpx;
- font-weight: 600;
- }
- .transfer_card {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin: 0px 30rpx;
- padding: 30rpx 10rpx;
- border-bottom: 1rpx solid #e7e6e4;
- }
- .title_eeee {
- font-size: 32rpx;
- }
- </style>
|