|  | @ -3,17 +3,15 @@ | 
														
													
														
															
																|  |  | <view class="page"> |  |  | <view class="page"> | 
														
													
														
															
																|  |  | <navbar title="全年收支" leftClick @leftClick="$utils.navigateBack" /> |  |  | <navbar title="全年收支" leftClick @leftClick="$utils.navigateBack" /> | 
														
													
														
															
																|  |  | <view class="page-two"> |  |  | <view class="page-two"> | 
														
													
														
															
																|  |  | <view class="option"> |  |  |  | 
														
													
														
															
																|  |  | <select class="select"> |  |  |  | 
														
													
														
															
																|  |  | <option value="option1">选择项目</option> |  |  |  | 
														
													
														
															
																|  |  | </select> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <view class="option" | 
														
													
														
															
																|  |  |  |  |  | @click="$refs.notebookListPicker.open()"> | 
														
													
														
															
																|  |  |  |  |  | {{ notebook.title }} | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | <view class="wire"></view> |  |  | <view class="wire"></view> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | <view class="select-date"> |  |  |  | 
														
													
														
															
																|  |  | <select class="select"> |  |  |  | 
														
													
														
															
																|  |  | <option value="option1">2024</option> |  |  |  | 
														
													
														
															
																|  |  | </select> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <view class="select-date" | 
														
													
														
															
																|  |  |  |  |  | @click="$refs.notebookListPicker.open()"> | 
														
													
														
															
																|  |  |  |  |  | 2024 | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | <view class="card"> |  |  | <view class="card"> | 
														
													
												
													
														
															
																|  | @ -21,7 +19,7 @@ | 
														
													
														
															
																|  |  | <image src="../../static/image/keepAccounts/BlueWallet.png" mode="aspectFill" /> |  |  | <image src="../../static/image/keepAccounts/BlueWallet.png" mode="aspectFill" /> | 
														
													
														
															
																|  |  | <view> |  |  | <view> | 
														
													
														
															
																|  |  | <view>总收入(元)</view> |  |  | <view>总收入(元)</view> | 
														
													
														
															
																|  |  | <view style="color: #3889FF;">¥1223</view> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <view style="color: #3889FF;">¥{{ countNumber.incomeCount }}</view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
												
													
														
															
																|  | @ -29,19 +27,24 @@ | 
														
													
														
															
																|  |  | <image src="../../static/image/keepAccounts/YellowWallet.png" mode="aspectFill" /> |  |  | <image src="../../static/image/keepAccounts/YellowWallet.png" mode="aspectFill" /> | 
														
													
														
															
																|  |  | <view> |  |  | <view> | 
														
													
														
															
																|  |  | <view>总支出(元)</view> |  |  | <view>总支出(元)</view> | 
														
													
														
															
																|  |  | <view style="color: #FD961A;">¥1223</view> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <view style="color: #FD961A;">¥{{ countNumber.expenditureCount }}</view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | <view class="cell" style="margin-top: 40rpx;"> |  |  | <view class="cell" style="margin-top: 40rpx;"> | 
														
													
														
															
																|  |  | <uv-cell v-for="(item,index) in list" |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <uv-cell v-for="(item,index) in list" | 
														
													
														
															
																|  |  | :key="index" |  |  | :key="index" | 
														
													
														
															
																|  |  | :label="item.billDate" |  |  | :label="item.billDate" | 
														
													
														
															
																|  |  | title="佣金收入" |  |  |  | 
														
													
														
															
																|  |  | :value="`${typeNo[item.type]}${item.amount}`"></uv-cell> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | :title="bill.typeTitle[item.type]" | 
														
													
														
															
																|  |  |  |  |  | :value="`${bill.typeNo[item.type]}${item.amount}`"></uv-cell> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | <uv-picker ref="notebookListPicker" | 
														
													
														
															
																|  |  |  |  |  | keyName="title" | 
														
													
														
															
																|  |  |  |  |  | :columns="[notebookList]" | 
														
													
														
															
																|  |  |  |  |  | itemHeight="80" | 
														
													
														
															
																|  |  |  |  |  | @confirm="notebookListConfirm"></uv-picker> | 
														
													
														
															
																|  |  | </view> |  |  | </view> | 
														
													
														
															
																|  |  | </template> |  |  | </template> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
												
													
														
															
																|  | @ -53,16 +56,53 @@ | 
														
													
														
															
																|  |  | return { |  |  | return { | 
														
													
														
															
																|  |  | mixinsListApi : 'queryBill', |  |  | mixinsListApi : 'queryBill', | 
														
													
														
															
																|  |  | apiType : '', |  |  | apiType : '', | 
														
													
														
															
																|  |  | typeNo : ['+', '-'], |  |  |  | 
														
													
														
															
																|  |  |  |  |  | bill : { | 
														
													
														
															
																|  |  |  |  |  | typeNo : ['+', '-'], | 
														
													
														
															
																|  |  |  |  |  | typeTitle : ['收入', '支出'], | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | countNumber : {}, | 
														
													
														
															
																|  |  |  |  |  | notebookList : [], | 
														
													
														
															
																|  |  |  |  |  | notebook : { | 
														
													
														
															
																|  |  |  |  |  | title : '选择项目', | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | }, |  |  | }, | 
														
													
														
															
																|  |  | onLoad({apiType}) { |  |  | onLoad({apiType}) { | 
														
													
														
															
																|  |  | this.apiType = apiType |  |  | this.apiType = apiType | 
														
													
														
															
																|  |  | this.mixinsListApi += apiType || '' |  |  | this.mixinsListApi += apiType || '' | 
														
													
														
															
																|  |  |  |  |  | this.getCommonQueryNotebookList() | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | onShow() { | 
														
													
														
															
																|  |  |  |  |  | this.notebookQueryBillAmount() | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | onPullDownRefresh() { | 
														
													
														
															
																|  |  |  |  |  | this.notebookQueryBillAmount() | 
														
													
														
															
																|  |  | }, |  |  | }, | 
														
													
														
															
																|  |  | onShow() {}, |  |  |  | 
														
													
														
															
																|  |  | methods: { |  |  | methods: { | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | notebookQueryBillAmount(){ | 
														
													
														
															
																|  |  |  |  |  | this.$api('notebookQueryBillAmount', | 
														
													
														
															
																|  |  |  |  |  | this.queryParams, res => { | 
														
													
														
															
																|  |  |  |  |  | if(res.code == 200){ | 
														
													
														
															
																|  |  |  |  |  | this.countNumber = res.result | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | getCommonQueryNotebookList(){ | 
														
													
														
															
																|  |  |  |  |  | this.$api('commonQueryNotebookList', { | 
														
													
														
															
																|  |  |  |  |  | pageNo: 1, | 
														
													
														
															
																|  |  |  |  |  | pageSize: 9999999, | 
														
													
														
															
																|  |  |  |  |  | }, res => { | 
														
													
														
															
																|  |  |  |  |  | if(res.code == 200){ | 
														
													
														
															
																|  |  |  |  |  | this.notebookList = res.result.records | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | notebookListConfirm(e){ | 
														
													
														
															
																|  |  |  |  |  | this.notebook = e.value[0] | 
														
													
														
															
																|  |  |  |  |  | this.queryParams.notebookId = this.notebook.id | 
														
													
														
															
																|  |  |  |  |  | this.getData() | 
														
													
														
															
																|  |  |  |  |  | this.notebookQueryBillAmount() | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | </script> |  |  | </script> | 
														
													
												
													
														
															
																|  | 
 |