|
@@ -23,12 +23,12 @@
|
|
|
{{ formInline.Days }}天 / {{ formInline.Number }}人
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
|
+ <el-form v-if="formInline.Status==0" :inline="true" :model="formInline" class="demo-form-inline">
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="onSubmit">通 过(多选)</el-button>
|
|
|
+ <el-button type="primary" @click="PostAuditGrpCreditCardPayment(1)">通 过(多选)</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="onSubmit">拒 绝(多选)</el-button>
|
|
|
+ <el-button type="primary" @click="PostAuditGrpCreditCardPayment(2)">拒 绝(多选)</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核未通过原因:">
|
|
|
<el-radio-group @change="onSubmit" v-model="formInline.resource">
|
|
@@ -61,7 +61,8 @@
|
|
|
@selection-change="handleSelectionChange">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
- width="40">
|
|
|
+ width="40"
|
|
|
+ v-if="formInline.Status==0">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="priceNameContent"
|
|
@@ -116,21 +117,29 @@
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="address"
|
|
|
label="审核操作"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
+ v-if='scope.row.isAuditGM==0||scope.row.isAuditGM==2'
|
|
|
@click="handleEdit(scope.$index, scope.row)">通 过</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
- @click="handleDelete(scope.$index, scope.row)">拒 绝</el-button>
|
|
|
+ v-if='scope.row.isAuditGM==0||scope.row.isAuditGM==1'
|
|
|
+ @click="handleDelete(scope.$index, scope.row)">不通过</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+ <div class="payments">
|
|
|
+ <div class="statistics">该申请团组款项费用统计如下:</div>
|
|
|
+ <div class="payable"></div>
|
|
|
+ <div class="payment"></div>
|
|
|
+ <div class="remainder"></div>
|
|
|
+ <div class="reviewed"></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -154,7 +163,7 @@ export default {
|
|
|
Number:5,
|
|
|
Days:10,
|
|
|
resource:'',
|
|
|
- cause:""
|
|
|
+ cause:"",
|
|
|
},
|
|
|
AuditStatus:[
|
|
|
{
|
|
@@ -175,10 +184,14 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableData: [],
|
|
|
- multipleSelection: []
|
|
|
+ multipleSelection: [],
|
|
|
+ auditarr:'',
|
|
|
+ userid:'',
|
|
|
+ payable:'',
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //控制其他原因
|
|
|
onSubmit() {
|
|
|
console.log(this.formInline.resource);
|
|
|
if(this.formInline.resource=='3、其他'){
|
|
@@ -187,6 +200,7 @@ export default {
|
|
|
this.causetrue=false;
|
|
|
}
|
|
|
},
|
|
|
+ //获取详情
|
|
|
getPostSearchGrpCreditCardPayment(){
|
|
|
var url="/api/Groups/PostSearchGrpCreditCardPayment"
|
|
|
var that=this
|
|
@@ -211,11 +225,21 @@ export default {
|
|
|
that.formInline.Days=res.data.data.visitDays;
|
|
|
that.formInline.Number=res.data.data.visitPNumber;
|
|
|
that.tableData=res.data.data.detailList;
|
|
|
+ document.querySelector('.payable').innerHTML=res.data.data.totalStr1;
|
|
|
+ document.querySelector('.payment').innerHTML=res.data.data.totalStr2;
|
|
|
+ document.querySelector('.remainder').innerHTML=res.data.data.totalStr3;
|
|
|
+ document.querySelector('.reviewed').innerHTML=res.data.data.totalStr4;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
+ this.auditarr="";
|
|
|
this.multipleSelection = val;
|
|
|
+ for(var i=0;i<this.multipleSelection.length;i++){
|
|
|
+ this.auditarr+=this.multipleSelection[i].id+','
|
|
|
+ }
|
|
|
+ console.log(this.auditarr.substring(0, this.auditarr.length - 1))
|
|
|
+ this.auditarr=this.auditarr.substring(0, this.auditarr.length - 1)
|
|
|
},
|
|
|
handleClick(tab, event) {
|
|
|
this.activeName=tab.name;
|
|
@@ -225,12 +249,13 @@ export default {
|
|
|
this.getPostSearchGrpCreditCardPayment();
|
|
|
},
|
|
|
handleEdit(index, row) {
|
|
|
- console.log(index, row);
|
|
|
+ this.noPostAuditGrpCreditCardPayment(row.id,1)
|
|
|
},
|
|
|
handleDelete(index, row) {
|
|
|
- console.log(index, row);
|
|
|
+ this.noPostAuditGrpCreditCardPayment(row.id,2)
|
|
|
},
|
|
|
- PostAuditGrpCreditCardPayment(){
|
|
|
+ //多选审批
|
|
|
+ PostAuditGrpCreditCardPayment(val){
|
|
|
var url="/api/Groups/PostAuditGrpCreditCardPayment"
|
|
|
var that=this
|
|
|
this.$axios({
|
|
@@ -240,22 +265,63 @@ export default {
|
|
|
Authorization:'Bearer '+that.token
|
|
|
},
|
|
|
data:{
|
|
|
- creditId: 2270,
|
|
|
- auditCode:that.activeName,
|
|
|
- user:that.formInline.Status
|
|
|
+ CreditIdStr: that.auditarr,
|
|
|
+ auditCode:val,//1审核通过,2审核未通过
|
|
|
+ user:that.userid//userid
|
|
|
}
|
|
|
}).then(function(res){
|
|
|
console.log(res);
|
|
|
if(res.data.code==200){
|
|
|
-
|
|
|
+ that.$message({
|
|
|
+ message:res.data.msg ,
|
|
|
+ type: 'warning',
|
|
|
+ offset:50
|
|
|
+ });
|
|
|
+ that.getPostSearchGrpCreditCardPayment();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //单独审批
|
|
|
+ noPostAuditGrpCreditCardPayment(val,num){
|
|
|
+ console.log(val,num)
|
|
|
+ var url="/api/Groups/PostAuditGrpCreditCardPayment"
|
|
|
+ var that=this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url:url,
|
|
|
+ headers:{
|
|
|
+ Authorization:'Bearer '+that.token
|
|
|
+ },
|
|
|
+ data:{
|
|
|
+ CreditIdStr: val+'',
|
|
|
+ auditCode:num,//1审核通过,2审核未通过
|
|
|
+ user:that.userid//userid
|
|
|
+ }
|
|
|
+ }).then(function(res){
|
|
|
+ console.log(res);
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.$message({
|
|
|
+ message:res.data.msg ,
|
|
|
+ type: 'warning',
|
|
|
+ offset:50
|
|
|
+ });
|
|
|
+ that.getPostSearchGrpCreditCardPayment();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ childMethod() {
|
|
|
+ this.$parent.fatherMethod();
|
|
|
+ },
|
|
|
+ ceshi(){
|
|
|
+ console.log("tg")
|
|
|
+ }
|
|
|
},
|
|
|
mounted(){
|
|
|
this.diid=this.$route.query.id;
|
|
|
this.token=JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
+ this.userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
|
this.getPostSearchGrpCreditCardPayment();
|
|
|
+ // this.getTime('是否通过该条费用?',this.ceshi(),'通过')
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -275,4 +341,24 @@ export default {
|
|
|
.fesspage-head .el-form-item{
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
+ .payments{
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+ .payments>div{
|
|
|
+ margin: 2px 0;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ .payments .statistics{
|
|
|
+ font-size: 17px;
|
|
|
+ font-weight:600 ;
|
|
|
+ }
|
|
|
+ .payment{
|
|
|
+ color: #008000;
|
|
|
+ }
|
|
|
+ .remainder{
|
|
|
+ color: #ff0000;
|
|
|
+ }
|
|
|
+ .reviewed{
|
|
|
+ color: #1D5DA4;
|
|
|
+ }
|
|
|
</style>
|