From b5d3561a2e06106ed9cce2c6bcc9c2463951e998 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期五, 15 十一月 2024 11:06:26 +0800 Subject: [PATCH] 新增申请页面不显示发运通知单的问题修改 --- pages/new-application/new-application.vue | 66 ++++++++++++++++++++++++++++----- 1 files changed, 56 insertions(+), 10 deletions(-) diff --git a/pages/new-application/new-application.vue b/pages/new-application/new-application.vue index 553b18b..797a895 100644 --- a/pages/new-application/new-application.vue +++ b/pages/new-application/new-application.vue @@ -15,15 +15,36 @@ </view> --> <combined-title title="鐢宠妯℃澘"></combined-title> <!-- 鍗$墖鍖哄煙 --> - <view class="newApplicationCard" @click="toNewApplicationDetails" v-for="(item, index) in newApplicationData" :key="index"> + <template v-if="permissions.yunxiao_xswaybill_add"> + <view + class="newApplicationCard" + @click="toNewApplicationDetails" + v-for="(item, index) in newApplicationData" :key="index"> + <view class="card"> + <view class="card-left"> + <view class="card-left_top"> + <text>{{ item.description }}</text> + </view> + <view class="card-left_bottom"> + <text>鐗堟湰锛歷{{ item.version }}</text> + <text>鎵�灞炲垎绫伙細{{ item.categoryTitle|| '' }}</text> + </view> + </view> + <view class="card-right"> + <view class="icon"><image src="@/static/groupAppTotalImg/back_1.png" mode=""></image></view> + </view> + </view> + </view> + </template> + + <view + v-if="permissions.yunxiao_gatheringbill_add" + class="newApplicationCard shoukuanDetailCard" + @click="ToPaymentForm"> <view class="card"> <view class="card-left"> - <view class="card-left_top"> - <text>{{ item.description }}</text> - </view> <view class="card-left_bottom"> - <text>鐗堟湰锛歷{{ item.version }}</text> - <text>鎵�灞炲垎绫伙細{{ item.categoryTitle }}</text> + <text>鏂板鏀舵</text> </view> </view> <view class="card-right"> @@ -31,6 +52,7 @@ </view> </view> </view> + <!-- 閫夋嫨鍣� --> <u-picker @cancel="statusSeletShow = false" @confirm="statusConfirm" :show="statusSeletShow" :columns="statusList"></u-picker> @@ -43,8 +65,12 @@ <script> import popupMenu from '@/components/common/popup-menu/popup-menu.vue'; import combinedTitle from '@/components/common/combined-title/combined-title.vue'; +import {mapGetters} from 'vuex' export default { name: 'new-application', + computed:{ + ...mapGetters(['permissions']), + }, data() { return { searchData: '', @@ -58,7 +84,7 @@ filter: true, status: 1, pageNumber: 1, - pageSize: 10, + pageSize: 100, sort: 'createTime', order: 'desc' }, @@ -72,7 +98,6 @@ this.init(); }, getCurrentPages(e) { - console.log(e); }, // 鐐瑰嚮瀵艰埅鏍忚彍鍗曞悗 onNavigationBarButtonTap(e) { @@ -86,14 +111,17 @@ methods: { init() { this.newApplicationData = []; + uni.showLoading({ + title:'鍔犺浇涓�...' + }) this.$reqGet('getNewProcessDataList', this.updateData).then(res => { + uni.hideLoading(); if (res.code === 0) { res.data.records.forEach(item => { - if (item.id == 'WAY_BILL:4:87504') { + if (item.name == '鍙戣繍閫氱煡鍗�'||item.description == '鍙戣繍閫氱煡鍗�') { this.newApplicationData.push(item); } }); - console.log('鏂板', res); } }); @@ -110,6 +138,12 @@ uni.navigateTo({ url: '/pages/new-application-form-data/new-application-form-data' }); + }, + //鏂板鏀舵鏄庣粏 + ToPaymentForm() { + uni.navigateTo({ + url:'/pages/payment-form-data/payment-form-data' + }) } } }; @@ -206,5 +240,17 @@ } } } + .shoukuanDetailCard{ + .card{ + height: auto; + .card-left_bottom { + font-size: vww(13); + margin: vww(12) 0; + text { + margin-right: vww(16); + } + } + } + } } </style> -- Gitblit v1.9.1