Browse Source

优化

wulanhaote
庞东旭 2 years ago
parent
commit
898df6954e
4 changed files with 60 additions and 69 deletions
  1. +10
    -1
      src/api/sunVillage_info/fixedAssets.js
  2. +5
    -8
      src/views/sunVillage_info/list_finance.vue
  3. +36
    -50
      src/views/sunVillage_info/list_finance_ranking.vue
  4. +9
    -10
      src/views/sunVillage_info/list_tourists_ranking.vue

+ 10
- 1
src/api/sunVillage_info/fixedAssets.js View File

@@ -266,7 +266,7 @@ export function majorEventOpenRemove(id) {
// 查询零工登记列表 // 查询零工登记列表
export function listOddjob(query) { export function listOddjob(query) {
return request({ return request({
url: '/subcontract/oddjob/list',
url: '/villageAffairs/public/oddjobList',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -305,3 +305,12 @@ export function delOddjob(id) {
method: 'get' method: 'get'
}) })
} }

// 财务公开榜
export function financialAmountPublicMonthList(query) {
return request({
url: '/villageAffairs/public/financialAmountPublicMonthList',
method: 'get',
params: query // ?bookId=<账套ID 必填>&yearMonth=<查询年月 必填 yyyy-MM>
})
}

+ 5
- 8
src/views/sunVillage_info/list_finance.vue View File

@@ -39,15 +39,15 @@
</div> </div>
<div class="operation"> <div class="operation">
<!-- delete 删除 edit编辑 view查看 --> <!-- delete 删除 edit编辑 view查看 -->
<div class="opera_btn list" @click="goRanking(item.id,item.openNy)">
<i class="icon "></i>
</div>
<div class="opera_btn edit" @click="goEdit(item.id)" v-show="showBtn"> <div class="opera_btn edit" @click="goEdit(item.id)" v-show="showBtn">
<i class="icon "></i> <i class="icon "></i>
</div> </div>
<div class="opera_btn delete" @click="goRemove(item.id)" v-show="showBtn"> <div class="opera_btn delete" @click="goRemove(item.id)" v-show="showBtn">
<i class="icon"></i> <i class="icon"></i>
</div> </div>
<div class="opera_btn list" @click="goRanking(item.id,item.openNy)" v-show="!showBtn">
<i class="icon "></i>
</div>
<div class="opera_btn view" @click="goDetail(item.id)" v-show="!showBtn"> <div class="opera_btn view" @click="goDetail(item.id)" v-show="!showBtn">
<i class="icon "></i> <i class="icon "></i>
</div> </div>
@@ -298,7 +298,7 @@
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 20px;
.info{ .info{
flex:0 0 510px;
flex:0 0 450px;
.title{ .title{
display: flex; display: flex;
font-size: 32px; font-size: 32px;
@@ -351,7 +351,7 @@
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end;
justify-content: space-between;
text-align: right; text-align: right;
.opera_btn{ .opera_btn{
width: 52px; width: 52px;
@@ -360,10 +360,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content:center; justify-content:center;

&.delete{ &.delete{
background:#df0707; background:#df0707;
margin-left: 28px;
.icon{ .icon{
width: 22px; width: 22px;
height: 29px; height: 29px;
@@ -384,7 +382,6 @@
} }
&.view{ &.view{
background: #3494ff; background: #3494ff;
margin-left: 28px;
.icon { .icon {
width: 29px; width: 29px;
height: 21px; height: 21px;


+ 36
- 50
src/views/sunVillage_info/list_finance_ranking.vue View File

@@ -18,27 +18,15 @@
<!-- <div>¥200</div>--> <!-- <div>¥200</div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<p class="top_head_title">崖西镇崖后村2022年7月份集体用工情况公布榜</p>
<p class="top_head_title">{{deptName}}{{yearMonth[0]}}年{{yearMonth[1]}}月份经济收支情况公布榜</p>


<div class="center_box"> <div class="center_box">
<div class="name_box"> <div class="name_box">
<van-row> <van-row>
<van-col :span="24">姓名</van-col> <van-col :span="24">姓名</van-col>
</van-row> </van-row>
<van-row>
<van-col :span="24">庞东旭</van-col>
</van-row>
<van-row>
<van-col :span="24">庞东旭</van-col>
</van-row>
<van-row>
<van-col :span="24">庞东旭</van-col>
</van-row>
<van-row>
<van-col :span="24">庞东旭</van-col>
</van-row>
<van-row>
<van-col :span="24">庞东旭</van-col>
<van-row v-for="(item,index) in applicationList">
<van-col :span="24">{{item.voucherSummary}}</van-col>
</van-row> </van-row>
<div class="name_bg"></div> <div class="name_bg"></div>
<img src="../../assets/images/sunVillage_info/name_icon.png" class="name_icon"/> <img src="../../assets/images/sunVillage_info/name_icon.png" class="name_icon"/>
@@ -49,25 +37,9 @@
<van-col :span="12">收入金额</van-col> <van-col :span="12">收入金额</van-col>
<van-col :span="12">支出金额</van-col> <van-col :span="12">支出金额</van-col>
</van-row> </van-row>
<van-row>
<van-col :span="12">¥392.96</van-col>
<van-col :span="12">¥392.96</van-col>
</van-row>
<van-row>
<van-col :span="12"></van-col>
<van-col :span="12">¥392.96</van-col>
</van-row>
<van-row>
<van-col :span="12"></van-col>
<van-col :span="12">¥392.96</van-col>
</van-row>
<van-row>
<van-col :span="12"></van-col>
<van-col :span="12">¥392.96</van-col>
</van-row>
<van-row>
<van-col :span="12"></van-col>
<van-col :span="12">¥392.96</van-col>
<van-row v-for="(item,index) in applicationList">
<van-col :span="12"><template v-if="item.jieAmount">¥{{item.jieAmount}}</template></van-col>
<van-col :span="12"><template v-if="item.daiAmount">¥{{item.daiAmount}}</template></van-col>
</van-row> </van-row>
</div> </div>


@@ -76,15 +48,15 @@
<div class="bottom_box"> <div class="bottom_box">
<p>本月合计:</p> <p>本月合计:</p>
<van-row> <van-row>
<van-col :span="12">¥392.96</van-col>
<van-col :span="12">¥3920.96</van-col>
<van-col :span="12">¥{{applicationSummary.jie}}</van-col>
<van-col :span="12">¥{{applicationSummary.dai}}</van-col>
</van-row> </van-row>
</div> </div>
</div> </div>
</template> </template>


<script> <script>
import { financePublicList,openRemove } from "@/api/sunVillage_info/fixedAssets";
import { financialAmountPublicMonthList } from "@/api/sunVillage_info/fixedAssets";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import request from '@/utils/request' import request from '@/utils/request'
export default { export default {
@@ -94,6 +66,7 @@
applicationList:[], applicationList:[],
applicationListSecond:[], applicationListSecond:[],
assetStatusOptions:[], assetStatusOptions:[],
applicationSummary:[],
auditStatus:[], auditStatus:[],
loading: false, loading: false,
finished: false, finished: false,
@@ -103,34 +76,35 @@
listLength:'0', listLength:'0',
searchInput:'', searchInput:'',
queryParams:{ queryParams:{
pageNum:1,
pageSize:10,
orderByColumn:'createTime',
isAsc:'desc',
year:'',
yearMonth:'',
bookId:'',
deptId:'',
all: false
}, },
uploadFiles1:[], uploadFiles1:[],
projectId:'', projectId:'',
projectIndex:'', projectIndex:'',
showBtn:true, showBtn:true,
yearMonth:[],
deptName:''
}; };
}, },
created() { created() {
this.queryParams.bookId = Cookies.get('bookId'); this.queryParams.bookId = Cookies.get('bookId');
this.queryParams.deptId = Cookies.get('deptId'); this.queryParams.deptId = Cookies.get('deptId');
if (this.$route.query.type == 'code'){
this.showBtn = false;
}
this.deptName = Cookies.get('deptName');
this.queryParams.yearMonth = this.$route.query.time;
this.yearMonth = this.$route.query.time.split('-')
this.getList()
}, },
methods: { methods: {
getList(){ getList(){
var _this = this; var _this = this;
setTimeout(() => { setTimeout(() => {
console.log(_this.queryParams) console.log(_this.queryParams)
financePublicList(_this.queryParams).then(response => {
_this.listLength = response.total;
financialAmountPublicMonthList(_this.queryParams).then(response => {
_this.applicationList = response.rows; _this.applicationList = response.rows;
_this.applicationSummary = response.summary;
if(_this.applicationList.length >= response.total){ if(_this.applicationList.length >= response.total){
_this.finished = true; _this.finished = true;
return; return;
@@ -492,8 +466,14 @@
} }
.van-col{ .van-col{
font-size: 16PX; font-size: 16PX;
padding: 10PX 15PX;
padding: 0PX 15PX;
text-align: center; text-align: center;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
overflow: hidden;
line-height: 41PX;
} }
} }
.center_box{ .center_box{
@@ -512,8 +492,14 @@
} }
.van-col{ .van-col{
font-size: 16PX; font-size: 16PX;
padding: 10PX 15PX;
padding: 0PX 15PX;
text-align: center; text-align: center;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
overflow: hidden;
line-height: 41PX;
} }
} }
.clear{ .clear{


+ 9
- 10
src/views/sunVillage_info/list_tourists_ranking.vue View File

@@ -18,7 +18,7 @@
<!-- <div>¥200</div>--> <!-- <div>¥200</div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<p class="top_head_title">崖西镇崖后村2022年7月份集体用工情况公布榜</p>
<p class="top_head_title">{{deptName}}{{yearMonth[0]}}年{{yearMonth[1]}}月份集体用工情况公布榜</p>


<div class="center_box"> <div class="center_box">
<div class="name_box"> <div class="name_box">
@@ -97,25 +97,24 @@
listLength:'0', listLength:'0',
searchInput:'', searchInput:'',
queryParams:{ queryParams:{
pageNum:1,
pageSize:10,
orderByColumn:'createTime',
isAsc:'desc',
year:'',
yearMonth:'',
bookId:'',
deptId:'',
}, },
uploadFiles1:[], uploadFiles1:[],
projectId:'', projectId:'',
projectIndex:'', projectIndex:'',
showBtn:true, showBtn:true,
yearMonth:[]
}; };
}, },
created() { created() {
this.queryParams.bookId = Cookies.get('bookId'); this.queryParams.bookId = Cookies.get('bookId');
this.queryParams.deptId = Cookies.get('deptId'); this.queryParams.deptId = Cookies.get('deptId');
if (this.$route.query.type == 'code'){
this.showBtn = false;
}
this.getList();
this.deptName = Cookies.get('deptName');
this.queryParams.yearMonth = this.$route.query.time;
this.yearMonth = this.$route.query.time.split('-')
this.getList()
}, },
methods: { methods: {
getList(){ getList(){


Loading…
Cancel
Save