|
@@ -1,14 +1,14 @@
|
|
|
<template>
|
|
|
- <div class="groupunreviewed-all">
|
|
|
+ <div class="groupunreviewed-all" v-loading.fullscreen.lock="groupunreviewedLoading">
|
|
|
<div class="groupunreviewed-title">团组未审核数据</div>
|
|
|
<div class="groupunreviewed-haed">
|
|
|
<el-date-picker @change="datechange" style="width:350px" v-model="value" type="daterange" align="left"
|
|
|
unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
:picker-options="pickerOptions">
|
|
|
</el-date-picker>
|
|
|
- <div>
|
|
|
- <el-button type="primary">审核通过</el-button>
|
|
|
- <el-button type="danger">审核不通过</el-button>
|
|
|
+ <div v-if="jurisdiction">
|
|
|
+ <el-button @click="examinebtn(1)" type="primary">审核通过</el-button>
|
|
|
+ <el-button @click="examinebtn(2)" type="danger">审核不通过</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tree-box">
|
|
@@ -49,19 +49,12 @@
|
|
|
{{ data.cnyTotalAmount!=undefined?' 付款金额 CNY '+twonumder(data.cnyTotalAmount):'' }}
|
|
|
</span>
|
|
|
<span>
|
|
|
- {{ data.cnySubTotalAmount!=undefined?' 、 CNY '+twonumder(data.cnySubTotalAmount=data.paymentAmount*data.payRate)+' 汇率:':'' }}
|
|
|
+ {{ data.cnySubTotalAmount!=undefined?' 、 CNY '+twonumder(data.cnySubTotalAmount=data.paymentAmount*data.payRate):'' }}
|
|
|
</span>
|
|
|
<!-- <span>
|
|
|
- {{data.groupName?'(团组:'+data.groupName+')':'' }}
|
|
|
- </span>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <el-input-number v-if="data.payRate!=undefined" style="width:100px" @blur="inputblur(data.id,data.payRate,data.hotelSubId)" :precision="4" placeholder="公务翻译费" v-model="data.payRate" :controls='false'>
|
|
|
+ {{ data.payRate!=undefined?' 汇率:'+twonumders(data.cnyTotalAmount):'' }}
|
|
|
+ </span> -->
|
|
|
+ <!-- <el-input-number v-if="data.payRate!=undefined" style="width:100px" @blur="inputblur(data.id,data.payRate,data.hotelSubId)" :precision="4" placeholder="公务翻译费" v-model="data.payRate" :controls='false'>
|
|
|
</el-input-number> -->
|
|
|
</span>
|
|
|
</el-tree>
|
|
@@ -107,6 +100,7 @@ export default {
|
|
|
}
|
|
|
}]
|
|
|
},
|
|
|
+ userid:'',
|
|
|
value:[],
|
|
|
defaultarr:[],//团组勾选中
|
|
|
groupstableData:[],//团组付款申请
|
|
@@ -114,6 +108,9 @@ export default {
|
|
|
children: 'childList',
|
|
|
label: 'groupName'
|
|
|
},
|
|
|
+ groupunreviewedLoading:false,
|
|
|
+ hotelSubIdarr:[],
|
|
|
+ jurisdiction:false,//审核权限
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -121,6 +118,10 @@ export default {
|
|
|
twonumder(val){
|
|
|
return val.toFixed(2)
|
|
|
},
|
|
|
+ //4位小数
|
|
|
+ twonumders(val){
|
|
|
+ return val.toFixed(4)
|
|
|
+ },
|
|
|
//处理日期
|
|
|
datetime(val){
|
|
|
var date=new Date(val);
|
|
@@ -138,6 +139,7 @@ export default {
|
|
|
},
|
|
|
//获取团组未审核数据
|
|
|
GroupUnAuditFeeList(beginDt,endDt){
|
|
|
+ this.groupunreviewedLoading=true;
|
|
|
var that = this;
|
|
|
var url = "/api/Financial/GroupUnAuditFeeList?beginDt="+beginDt+"&endDt="+endDt
|
|
|
this.$axios({
|
|
@@ -148,9 +150,11 @@ export default {
|
|
|
},
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- that.groupstableData=res.data.data.dataList
|
|
|
+ that.groupstableData=res.data.data.dataList;
|
|
|
+ that.groupunreviewedLoading=false;
|
|
|
} else {
|
|
|
that.$message.error(res.data.msg);
|
|
|
+ that.groupunreviewedLoading=false;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -165,6 +169,62 @@ export default {
|
|
|
}
|
|
|
this.defaultarr=node.checkedKeys
|
|
|
},
|
|
|
+ //审核通过
|
|
|
+ examinebtn(val){
|
|
|
+ var auditarr=''
|
|
|
+ for (var i = 0; i < this.defaultarr.length; i++) {
|
|
|
+ if (!isNaN(Number(this.defaultarr[i]))) {
|
|
|
+ auditarr += this.defaultarr[i] + ','
|
|
|
+ }
|
|
|
+ }
|
|
|
+ auditarr=auditarr.substring(0, auditarr.length - 1)
|
|
|
+ console.log(auditarr);
|
|
|
+ this.PostAuditGrpCreditCardPayment(val,auditarr);
|
|
|
+ },
|
|
|
+ //审核接口
|
|
|
+ PostAuditGrpCreditCardPayment(val,auditarr) {
|
|
|
+ var url = "/api/Groups/PostAuditGrpCreditCardPayment"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ portType:1,
|
|
|
+ userId:that.userid,
|
|
|
+ pageId:47,
|
|
|
+ CreditIdStr:auditarr,
|
|
|
+ auditCode: val,//1审核通过,2审核未通过
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ console.log(res);
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success',
|
|
|
+ offset: 50
|
|
|
+ });
|
|
|
+ that.GroupUnAuditFeeList(that.datetime(that.value[0]),that.datetime(that.value[1]))
|
|
|
+ }else{
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'warning',
|
|
|
+ offset: 50
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted(){
|
|
|
+ this.userid = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
|
+ var Permissions=JSON.parse(localStorage.getItem('Permissions'));
|
|
|
+ for(let y=0;y<Permissions.length;y++){
|
|
|
+ if(Permissions[y].functionName=='审核'){
|
|
|
+ this.jurisdiction=true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -186,10 +246,21 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
-.tree-box{
|
|
|
+.groupunreviewed-all .tree-box{
|
|
|
margin-top: 10px;
|
|
|
border: 1px solid #EBEEF5;
|
|
|
padding: 10px;
|
|
|
+ max-height: 740px;
|
|
|
+ overflow-y: auto;
|
|
|
+ font-size: 15px;
|
|
|
+}
|
|
|
+.groupunreviewed-all .custom-tree-node{
|
|
|
+ line-height: 25px;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+.groupunreviewed-all .el-tree-node__content {
|
|
|
+ height: 50px;
|
|
|
}
|
|
|
</style>
|
|
|
|