|
@@ -26,7 +26,7 @@
|
|
|
</el-dialog>
|
|
|
<div v-if="platejudgment==1">
|
|
|
<div class="expenseMobile-top">
|
|
|
- <div class="expenseMobile-title">日常付款申请</div>
|
|
|
+ <div class="expenseMobile-title">{{this.portType!=2?'日常付款申请':''}}</div>
|
|
|
<div class="expenseMobile-search">
|
|
|
<el-input clearable placeholder="请输入费用描述" v-model="input" class="input-with-select">
|
|
|
<el-button @click="searchbtn" slot="append" icon="el-icon-search"></el-button>
|
|
@@ -48,14 +48,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="padding-bottom: 65px;">
|
|
|
- <div v-if="zwgd" class="expenseMobile-zwgd">暂无更多</div>
|
|
|
- <div v-if="!zwgd" class="expenseMobile-zwgd">加载中!</div>
|
|
|
+ <div id="tshezi" style="padding-bottom: 65px;">
|
|
|
+ <div v-if="!zwgd" class="expenseMobile-zwgd">暂无更多</div>
|
|
|
+ <div v-if="zwgd" class="expenseMobile-zwgd">加载中!</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<div class="expenseMobile-top">
|
|
|
- <div class="expenseMobile-title">费用审核</div>
|
|
|
+ <div class="expenseMobile-title">{{this.portType!=2?'费用审核':''}}</div>
|
|
|
<div class="expenseMobile-search">
|
|
|
<el-input clearable placeholder="请输入团组名称" v-model="value" class="input-with-select">
|
|
|
<el-button @click="searchexamine" slot="append" icon="el-icon-search"></el-button>
|
|
@@ -76,6 +76,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div id="tshezi" style="padding-bottom: 65px;">
|
|
|
+ <div v-if="!tzzwgd" class="expenseMobile-zwgd">暂无更多</div>
|
|
|
+ <div v-if="tzzwgd" class="expenseMobile-zwgd">加载中!</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="expenseMobile-tabtn">
|
|
|
<div class="tabtn-box">
|
|
@@ -97,6 +101,8 @@
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ uid:'',
|
|
|
+ portType:0,
|
|
|
tableData:[],
|
|
|
input:'',
|
|
|
expenseMobileVisible:false,
|
|
@@ -105,7 +111,8 @@ export default {
|
|
|
pageIndexExamine:1,
|
|
|
loadflagExamine:false,
|
|
|
loadflag:false,
|
|
|
- zwgd:false,
|
|
|
+ zwgd:true,
|
|
|
+ tzzwgd:true,
|
|
|
platejudgment:2,
|
|
|
value:'',
|
|
|
groupData:[],
|
|
@@ -147,7 +154,7 @@ export default {
|
|
|
pageSize: 10,
|
|
|
companyId: -1,
|
|
|
financialAuditStatus: -1,//财务审核
|
|
|
- managerAuditStatus: -1, //总经理审核
|
|
|
+ managerAuditStatus: that.uid==21?0:-1, //总经理审核
|
|
|
feeTypeId: -1, //费用类型
|
|
|
feeSubTypeId: -1, //费用子类型
|
|
|
feeDesc: that.input, //描述
|
|
@@ -158,7 +165,7 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
var magarr=res.data.data.dataList;
|
|
|
if(magarr.length<10){
|
|
|
- that.zwgd=true;
|
|
|
+ that.zwgd=false;
|
|
|
}
|
|
|
for(let j=0;j<magarr.length;j++){
|
|
|
that.tableData.push(magarr[j])
|
|
@@ -170,6 +177,9 @@ export default {
|
|
|
},
|
|
|
//审核
|
|
|
PostDelDailyPaymentAudit(val1,val2){
|
|
|
+ if (this.uid==undefined||this.uid!=21||this.uid==22) {
|
|
|
+ return this.$message.error("无审核权限");
|
|
|
+ }
|
|
|
var url = "/api/Financial/PostDelDailyPaymentAudit"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -180,7 +190,7 @@ export default {
|
|
|
},
|
|
|
data: {
|
|
|
id: val1,
|
|
|
- auditType:2,
|
|
|
+ auditType:that.uid==21?2:1,
|
|
|
auditStatus:val2
|
|
|
}
|
|
|
}).then(function (res) {
|
|
@@ -190,6 +200,10 @@ export default {
|
|
|
type: 'success',
|
|
|
offset:50
|
|
|
});
|
|
|
+ that.zwgd=true;
|
|
|
+ that.tableData=[];
|
|
|
+ that.pageIndex=1;
|
|
|
+ that.postPageDailyPaymentList()
|
|
|
}else{
|
|
|
that.$message.error(res.data.msg);
|
|
|
}
|
|
@@ -223,13 +237,14 @@ export default {
|
|
|
},
|
|
|
//搜索
|
|
|
searchbtn(){
|
|
|
- this.zwgd=false;
|
|
|
+ this.zwgd=true;
|
|
|
this.pageIndex=1;
|
|
|
this.tableData=[];
|
|
|
this.postPageDailyPaymentList();
|
|
|
},
|
|
|
//搜索examine
|
|
|
searchexamine(){
|
|
|
+ this.tzzwgd=true;
|
|
|
this.pageIndexExamine=1;
|
|
|
this.groupData=[];
|
|
|
this.PostExpenseAuditGroupPageItems();
|
|
@@ -239,7 +254,7 @@ export default {
|
|
|
let scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
let scrollHeight=document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
- if (scrollTop + clientHeight == scrollHeight&&this.loadflagExamine) {
|
|
|
+ if (Math.abs(scrollHeight-clientHeight-scrollTop) < 1&&this.loadflagExamine&&this.tzzwgd) {
|
|
|
this.PageTurningExamine()
|
|
|
}
|
|
|
},
|
|
@@ -247,15 +262,19 @@ export default {
|
|
|
let scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
let scrollHeight=document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
- if (scrollTop + clientHeight == scrollHeight&&this.loadflag) {
|
|
|
+ if(Math.abs(scrollHeight-clientHeight-scrollTop) < 1&&this.loadflag&&this.zwgd){
|
|
|
this.PageTurning()
|
|
|
}
|
|
|
+ // if (Math.floor(scrollTop + clientHeight) == scrollHeight&&this.loadflag) {
|
|
|
+ // this.PageTurning()
|
|
|
+ // }
|
|
|
},
|
|
|
//日常切换
|
|
|
rcbtn(){
|
|
|
this.loadflag=false;
|
|
|
this.platejudgment=1;
|
|
|
- this.zwgd=false;
|
|
|
+ this.zwgd=true;
|
|
|
+ this.tzzwgd=true;
|
|
|
this.pageIndex=1;
|
|
|
this.tableData=[];
|
|
|
window.addEventListener('scroll', this.scrollBottom, true);
|
|
@@ -294,6 +313,9 @@ export default {
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
var groupDatas=res.data.data.data;
|
|
|
+ if(groupDatas.length<10){
|
|
|
+ that.tzzwgd=false;
|
|
|
+ }
|
|
|
for(let j=0;j<groupDatas.length;j++){
|
|
|
that.groupData.push(groupDatas[j])
|
|
|
}
|
|
@@ -303,13 +325,15 @@ export default {
|
|
|
},
|
|
|
//查看费用
|
|
|
CheckCost(row){
|
|
|
- this.$router.push({path: '/expenseMobileinfo?id=' + row.id +''});
|
|
|
+ this.$router.push({path: '/expenseMobileinfo?id=' + row.id +'&uid='+this.uid});
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
|
|
|
|
},
|
|
|
mounted(){
|
|
|
+ this.uid = this.$route.query.uid;
|
|
|
+ this.portType = this.$route.query.portType?this.$route.query.portType:0;
|
|
|
// if(localStorage.getItem('Examinevalue')!=""){
|
|
|
// this.value=localStorage.getItem('Examinevalue');
|
|
|
// }
|
|
@@ -353,7 +377,6 @@ export default {
|
|
|
.examine-box{
|
|
|
padding: 8px;
|
|
|
padding-top: 93px;
|
|
|
- padding-bottom: 65px;
|
|
|
}
|
|
|
.card-description{
|
|
|
font-weight: 600;
|
|
@@ -436,6 +459,7 @@ export default {
|
|
|
justify-content:space-between;
|
|
|
}
|
|
|
.dialog-info-sh div{
|
|
|
+ width: 50%;
|
|
|
margin-bottom: 5px;
|
|
|
}
|
|
|
.info-sl{
|