This commit is contained in:
cclu 2023-08-28 17:37:43 +08:00
parent 3a133a504e
commit ad7e905587
5 changed files with 85 additions and 82 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view class="uni-flex ai-center jc-around menu-list"> <view class="uni-flex ai-center jc-around menu-list">
<MenuItem <MenuItem
v-for="(item,index) in menuList" v-for="(item,index) in menuList"
:key="index" :key="index"
:item="item" :item="item"
@ -31,7 +31,7 @@
</view> --> </view> -->
<view class="moduleTitle">业务类型</view> <view class="moduleTitle">业务类型</view>
<view class="uni-flex ai-center menu-list"> <view class="uni-flex ai-center menu-list">
<MenuItem <MenuItem
v-for="(item,index) in selectList" v-for="(item,index) in selectList"
:key="index" :key="index"
:item="item" :item="item"
@ -49,7 +49,7 @@
</template> </template>
<script> <script>
import ListUnit from './components/businessUnit.vue' import ListUnit from './components/businessUnit.vue'
import MenuItem from '@/components/menu/menuItem.vue' import MenuItem from '@/components/menu/menuItem.vue'
import UniPop from '@/components/uni-popup.vue' import UniPop from '@/components/uni-popup.vue'
export default { export default {
@ -68,25 +68,25 @@
menuList: [ menuList: [
{ {
name: '待审批', name: '待审批',
src: '../../../../../static/images/expense/type/shenp.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png',
active: '../../../../../static/images/expense/type/shenpz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png',
id: 2000 id: 2000
},{ },{
name: '已处理', name: '已处理',
src: '../../../../../static/images/expense/type/yichl.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png',
active: '../../../../../static/images/expense/type/yichlz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png',
id: '3000,9000' id: '3000,9000'
}, },
// { // {
// name: '', // name: '',
// src: '@/static/images/expense/type/yifq.png', // src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png',
// active: '@/static/images/expense/type/yifqz.png', // active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png',
// id: 2 // id: 2
// }, // },
{ {
name: '更多筛选', name: '更多筛选',
src: '../../../../../static/images/expense/type/shaix.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaix.png',
active: '../../../../../static/images/expense/type/shaixz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaixz.png',
id: 4 id: 4
}, },
], ],
@ -111,7 +111,7 @@
src: '../../../../../static/images/expense/type/fksp.png', src: '../../../../../static/images/expense/type/fksp.png',
typeId: 8 typeId: 8
} }
], ],
} }
}, },
@ -125,7 +125,7 @@
this.showPop= false this.showPop= false
}, },
handleClick(item){ handleClick(item){
if(item.id==4){ if(item.id==4){
this.showPop = true this.showPop = true
}else{ }else{
this.activeType = item.id this.activeType = item.id
@ -158,7 +158,7 @@
BusinessProcessState: _this.activeType, BusinessProcessState: _this.activeType,
// SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc' // SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc'
}).then(res => { }).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.Result_Code !== 100) { if (res.Result_Code !== 100) {
_this.pageData.loading=false _this.pageData.loading=false
@ -174,11 +174,11 @@
state: n.BusinessProcess_State, state: n.BusinessProcess_State,
title: n.BusinessProcess_Desc, title: n.BusinessProcess_Desc,
type: n.Operation_Type type: n.Operation_Type
} }
}) })
this.pageData.list = _this.pageData.pageIndex===1 ? list : this.pageData.list.concat(list) this.pageData.list = _this.pageData.pageIndex===1 ? list : this.pageData.list.concat(list)
if(list.length<_this.pageData.pageSize){ if(list.length<_this.pageData.pageSize){
_this.pageData.isEnd = true _this.pageData.isEnd = true
} }
@ -210,7 +210,7 @@
onLoad() { onLoad() {
uni.showLoading() uni.showLoading()
this.pageData.isLoading = true this.pageData.isLoading = true
}, },
onShow() { onShow() {
this.getData() this.getData()

View File

@ -1,8 +1,8 @@
<template> <template>
<view class="content" :style="showPop? 'overflow:hidden;height:100%;': ''"> <view class="content" :style="showPop? 'overflow:hidden;height:100%;': ''">
<view class="uni-flex ai-center jc-around menu-list"> <view class="uni-flex ai-center jc-around menu-list">
<MenuItem <MenuItem
v-for="(item,index) in menuList" v-for="(item,index) in menuList"
:key="index" :key="index"
:item="item" :item="item"
@ -18,7 +18,7 @@
<view v-if="pageList.length>0"> <view v-if="pageList.length>0">
<list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit> <list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit>
</view> </view>
<view v-else-if="!pageData.isLoading" style="height: 100%;"> <view v-else-if="!pageData.isLoading" style="height: 100%;">
<noFound :nodata="pageList.length>0 ? false : true"/> <noFound :nodata="pageList.length>0 ? false : true"/>
@ -26,7 +26,7 @@
<view class="load-more" v-if="pageList.length>0"> <view class="load-more" v-if="pageList.length>0">
<text>{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}</text> <text>{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}</text>
</view> </view>
<UniPop :show="showPop" @hidePopup="closePop" type="bottom" @touchmove.prevent round="true"> <UniPop :show="showPop" @hidePopup="closePop" type="bottom" @touchmove.prevent round="true">
<view class="pb24"> <view class="pb24">
<view class="moduleTitle">日期</view> <view class="moduleTitle">日期</view>
@ -35,7 +35,7 @@
</view> </view>
<view class="moduleTitle">财务流程</view> <view class="moduleTitle">财务流程</view>
<view class="uni-flex ai-center menu-list"> <view class="uni-flex ai-center menu-list">
<MenuItem <MenuItem
v-for="(item,index) in selectList" v-for="(item,index) in selectList"
:key="index" :key="index"
:item="item" :item="item"
@ -95,23 +95,23 @@
menuList: [ menuList: [
{ {
name: '待审批', name: '待审批',
src: '../../../../../static/images/expense/type/shenp.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png',
active: '../../../../../static/images/expense/type/shenpz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png',
id: 0 id: 0
},{ },{
name: '已处理', name: '已处理',
src: '../../../../../static/images/expense/type/yichl.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png',
active: '../../../../../static/images/expense/type/yichlz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png',
id: 1 id: 1
},{ },{
name: '已发起', name: '已发起',
src: '../../../../../static/images/expense/type/yifq.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png',
active: '../../../../../static/images/expense/type/yifqz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png',
id: 2 id: 2
},{ },{
name: '更多筛选', name: '更多筛选',
src: '../../../../../static/images/expense/type/shaix.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaix.png',
active: '../../../../../static/images/expense/type/shaixz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaixz.png',
id: 4 id: 4
}, },
], ],
@ -178,7 +178,7 @@
src: '../../../../../static/images/expense/type/xzzcsp.png', src: '../../../../../static/images/expense/type/xzzcsp.png',
} }
,{ ,{
name: '公务交通', name: '公务交通',
src: '../../../../../static/images/expense/type/gwjt.png', src: '../../../../../static/images/expense/type/gwjt.png',
typeId: "401207" typeId: "401207"
} }
@ -223,20 +223,20 @@
src: '../../../../../static/images/expense/type/zply.png', src: '../../../../../static/images/expense/type/zply.png',
} }
,{ ,{
name:'领付款申请', name:'领付款申请',
typeId:"401304", typeId:"401304",
src: '../../../../../static/images/expense/type/jkdsp.png', src: '../../../../../static/images/expense/type/jkdsp.png',
}, },
] ]
} }
}), }),
}, },
methods: { methods: {
...mapMutations(['shouldReLoadingList']), ...mapMutations(['shouldReLoadingList']),
handleClick(item){ handleClick(item){
if(item.id==4){ if(item.id==4){
this.showPop = true this.showPop = true
}else{ }else{
this.activeType = item.id this.activeType = item.id
@ -263,7 +263,7 @@
}, },
closePop (){ closePop (){
let popOldValue = this.popOldValue let popOldValue = this.popOldValue
this.selectTypeIndex = popOldValue[1] this.selectTypeIndex = popOldValue[1]
this.dateIndex = popOldValue[0] this.dateIndex = popOldValue[0]
this.showPop = false this.showPop = false
@ -278,24 +278,24 @@
DealState: DealState, DealState: DealState,
QueryDate: _this.dateList[_this.dateIndex].value QueryDate: _this.dateList[_this.dateIndex].value
}).then(res => { }).then(res => {
if(!res.ResultCode ||res.ResultCode!='100'){ if(!res.ResultCode ||res.ResultCode!='100'){
_this.pageList = [] _this.pageList = []
}else{ }else{
let list = res.Data.List let list = res.Data.List
_this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list] _this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list]
if (list.length < _this.pageData.pageSize) { // if (list.length < _this.pageData.pageSize) { //
_this.pageData.isEnd = true _this.pageData.isEnd = true
} }
_this.$forceUpdate() _this.$forceUpdate()
} }
uni.hideLoading() uni.hideLoading()
setTimeout(function(){ setTimeout(function(){
_this.pageData.isLoading = false _this.pageData.isLoading = false
},500) },500)
}) })
@ -308,7 +308,7 @@
}, },
goDetail(item) { goDetail(item) {
this.$util.toNextRoute('navigateTo', "/pages/expenseApproval/expenseDetail?type="+item.ACCEPT_TYPE+"&id=" + item.FINANCEPROINST_ID) this.$util.toNextRoute('navigateTo', "/pages/expenseApproval/expenseDetail?type="+item.ACCEPT_TYPE+"&id=" + item.FINANCEPROINST_ID)
}, },
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -331,10 +331,10 @@
title:'正在加载' title:'正在加载'
}) })
this.getList() this.getList()
}, },
onUnload() { onUnload() {
this.$util.addUserBehavior() this.$util.addUserBehavior()
}, },
onShow() { onShow() {
@ -376,7 +376,7 @@
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
flex-wrap: wrap; flex-wrap: wrap;
} }
.moduleTitle { .moduleTitle {
text-align: left; text-align: left;
@ -389,7 +389,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
} }
.pb24 { .pb24 {
padding-bottom: 24rpx; padding-bottom: 24rpx;

View File

@ -54,6 +54,9 @@
<view> <view>
<view class="text"> <view class="text">
本项目驿达累计分润已达<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{ dataDetail.ROYALTY_PRICE|| '-' }}</span>,<br/> 本项目驿达累计分润已达<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{ dataDetail.ROYALTY_PRICE|| '-' }}</span>,<br/>
<span v-if="dataDetail.EXPENSE_AMOUNT">其中已扣减水电物业费
<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{$util.fmoney(dataDetail.EXPENSE_AMOUNT)}}</span>
</span>,<br/>
<span v-if="dataDetail.EXPIREDAYS!==0">预计<span class="strong">{{ dataDetail.EXPIREDAYS|| '-' }}</span>后完成</span> <span v-if="dataDetail.EXPIREDAYS!==0">预计<span class="strong">{{ dataDetail.EXPIREDAYS|| '-' }}</span>后完成</span>
<span v-if="dataDetail.EXPIREDAYS===0" class="strong">已完成</span>保底 <span v-if="dataDetail.EXPIREDAYS===0" class="strong">已完成</span>保底
</view> </view>

View File

@ -64,23 +64,23 @@ export default {
menuList: [ menuList: [
{ // { //
name: '全部', name: '全部',
src: '/static/images/expense/type/yifq.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png',
active: '/static/images/expense/type/yifqz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png',
id: 0 id: 0
}, { }, {
name: '待切换', name: '待切换',
src: '/static/images/expense/type/shenp.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png',
active: '/static/images/expense/type/shenpz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png',
id: 1 id: 1
}, { }, {
name: '已切换', name: '已切换',
src: '/static/images/expense/type/yichl.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png',
active: '/static/images/expense/type/yichlz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png',
id: 2 id: 2
}, { }, {
name: '更多筛选', name: '更多筛选',
src: '/static/images/expense/type/shaix.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaix.png',
active: '/static/images/expense/type/shaixz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaixz.png',
id: 99 id: 99
} ], } ],
activeType: 0, // activeType: 0, //

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="content"> <view class="content">
<view class="uni-flex ai-center jc-around menu-list"> <view class="uni-flex ai-center jc-around menu-list">
<MenuItem <MenuItem
v-for="(item,index) in menuList" v-for="(item,index) in menuList"
:key="index" :key="index"
:item="item" :item="item"
@ -17,7 +17,7 @@
<view v-if="pageList.length>0"> <view v-if="pageList.length>0">
<list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit> <list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit>
</view> </view>
<view v-else-if="!pageData.isLoading" style="height: 100%;"> <view v-else-if="!pageData.isLoading" style="height: 100%;">
<noFound :nodata="pageList.length>0 ? false : true"/> <noFound :nodata="pageList.length>0 ? false : true"/>
@ -25,7 +25,7 @@
<view class="load-more" v-if="pageList.length>0"> <view class="load-more" v-if="pageList.length>0">
<text>{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}</text> <text>{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}</text>
</view> </view>
<UniPop :show="showPop" @hidePopup="closePop" type="bottom" @touchmove.prevent round="true"> <UniPop :show="showPop" @hidePopup="closePop" type="bottom" @touchmove.prevent round="true">
<view class="pb24"> <view class="pb24">
<view class="moduleTitle">日期</view> <view class="moduleTitle">日期</view>
@ -34,7 +34,7 @@
</view> </view>
<view class="moduleTitle">财务流程</view> <view class="moduleTitle">财务流程</view>
<view class="uni-flex ai-center menu-list"> <view class="uni-flex ai-center menu-list">
<MenuItem <MenuItem
v-for="(item,index) in selectList" v-for="(item,index) in selectList"
:key="index" :key="index"
:item="item" :item="item"
@ -120,27 +120,27 @@
menuList: [ menuList: [
{ {
name: '待审批', name: '待审批',
src: '../../../../../static/images/expense/type/shenp.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png',
active: '../../../../../static/images/expense/type/shenpz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png',
id: 0 id: 0
},{ },{
name: '已处理', name: '已处理',
src: '../../../../../static/images/expense/type/yichl.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png',
active: '../../../../../static/images/expense/type/yichlz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png',
id: 1 id: 1
},{ },{
name: '已发起', name: '已发起',
src: '../../../../../static/images/expense/type/yifq.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png',
active: '../../../../../static/images/expense/type/yifqz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png',
id: 2 id: 2
},{ },{
name: '更多筛选', name: '更多筛选',
src: '../../../../../static/images/expense/type/shaix.png', src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaix.png',
active: '../../../../../static/images/expense/type/shaixz.png', active: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shaixz.png',
id: 4 id: 4
}, },
], ],
} }
}, },
components:{ components:{
@ -154,7 +154,7 @@
methods:{ methods:{
...mapMutations(['shouldReLoadingList']), ...mapMutations(['shouldReLoadingList']),
handleClick(item){ handleClick(item){
if(item.id==4){ if(item.id==4){
this.showPop = true this.showPop = true
}else{ }else{
this.activeType = item.id this.activeType = item.id
@ -181,7 +181,7 @@
}, },
closePop (){ closePop (){
let popOldValue = this.popOldValue let popOldValue = this.popOldValue
this.selectTypeIndex = popOldValue[1] this.selectTypeIndex = popOldValue[1]
this.dateIndex = popOldValue[0] this.dateIndex = popOldValue[0]
this.showPop = false this.showPop = false
@ -196,19 +196,19 @@
DealState: DealState, DealState: DealState,
QueryDate: _this.dateList[_this.dateIndex].value QueryDate: _this.dateList[_this.dateIndex].value
}).then(res => { }).then(res => {
if(!res.ResultCode ||res.ResultCode!='100'){ if(!res.ResultCode ||res.ResultCode!='100'){
_this.pageList = [] _this.pageList = []
}else{ }else{
let list = res.Data.List let list = res.Data.List
_this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list,] _this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list,]
if (list.length < _this.pageData.pageSize) { // if (list.length < _this.pageData.pageSize) { //
_this.pageData.isEnd = true _this.pageData.isEnd = true
} }
_this.$forceUpdate() _this.$forceUpdate()
} }
uni.hideLoading() uni.hideLoading()
setTimeout(function(){ setTimeout(function(){
@ -224,7 +224,7 @@
}, },
goDetail(item) { goDetail(item) {
let url = "/pages/serviceAreaReimbursement/detail?type="+item.EXPENSEBILL_TYPE+"&id=" + item.HIGHWAYPROINST_ID let url = "/pages/serviceAreaReimbursement/detail?type="+item.EXPENSEBILL_TYPE+"&id=" + item.HIGHWAYPROINST_ID
this.$util.toNextRoute('navigateTo', url) this.$util.toNextRoute('navigateTo', url)
}, },
}, },
@ -243,9 +243,9 @@
this.loadMore() this.loadMore()
}, },
onShow() { onShow() {
if(this.isReloading) { if(this.isReloading) {
uni.showLoading({ uni.showLoading({
title:'正在加载' title:'正在加载'
}) })
@ -254,7 +254,7 @@
this.getList() this.getList()
this.shouldReLoadingList(false) this.shouldReLoadingList(false)
} }
}, },
onLoad() { onLoad() {
this.pageData.isLoading= true this.pageData.isLoading= true
@ -266,7 +266,7 @@
onUnload() { onUnload() {
this.$util.addUserBehavior() this.$util.addUserBehavior()
} }
} }
</script> </script>
@ -275,7 +275,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
/* padding-top: 90rpx; */ /* padding-top: 90rpx; */
/* height: 100%; */ /* height: 100%; */
} }
@ -300,7 +300,7 @@
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
flex-wrap: wrap; flex-wrap: wrap;
} }
.moduleTitle { .moduleTitle {
text-align: left; text-align: left;
@ -309,7 +309,7 @@
font-size: 30rpx; font-size: 30rpx;
padding: 24rpx 0 12rpx 0; padding: 24rpx 0 12rpx 0;
} }
.pb24 { .pb24 {
padding-bottom: 24rpx; padding-bottom: 24rpx;
} }