Commit 92f2994a authored by 罗超's avatar 罗超
parents a7f80552 21bc5ae9
...@@ -395,6 +395,9 @@ ...@@ -395,6 +395,9 @@
<button class="normalBtn" v-if="checkboxShow" @click="Financial_post_SetBatch">{{$t('fnc.piltijiao')}}</button> <button class="normalBtn" v-if="checkboxShow" @click="Financial_post_SetBatch">{{$t('fnc.piltijiao')}}</button>
<button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button> <button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button>
<button class="hollowFixedBtn" @click="goUrl('WorkEntrustmentMy')">{{$t('fnc.gzweituo')}}</button> <button class="hollowFixedBtn" @click="goUrl('WorkEntrustmentMy')">{{$t('fnc.gzweituo')}}</button>
<button v-if="active==3 && !hbState && hbShow" class="hollowFixedBtn" @click="HebingSP">合并审批</button>
<button v-if="active==3 && hbState" class="hollowFixedBtn" @click="HebingSPLast">审批</button>
<button v-if="active==3 && hbState" class="hollowFixedBtn" @click="hbState=false,getPageList">关闭合并审批</button>
<button v-if="HandShow" class="hollowFixedBtn" @click="Handwithfee">手配费收入</button> <button v-if="HandShow" class="hollowFixedBtn" @click="Handwithfee">手配费收入</button>
<button class="hollowFixedBtn" @click="BOSSBtn = !BOSSBtn, checkList = [], getPageList(1), BOSSBtn2 = false" v-if="msg.Conditon === 3 && userMenuCode">{{BOSSBtn ? '关闭一键审批' : '一键审批'}}</button> <button class="hollowFixedBtn" @click="BOSSBtn = !BOSSBtn, checkList = [], getPageList(1), BOSSBtn2 = false" v-if="msg.Conditon === 3 && userMenuCode">{{BOSSBtn ? '关闭一键审批' : '一键审批'}}</button>
<button class="hollowFixedBtn" v-if="msg.Conditon === 3 && BOSSBtn" @click="BOSSBtnClick(1)">{{$t('ios.shenpi')}}</button> <button class="hollowFixedBtn" v-if="msg.Conditon === 3 && BOSSBtn" @click="BOSSBtnClick(1)">{{$t('ios.shenpi')}}</button>
...@@ -408,7 +411,7 @@ ...@@ -408,7 +411,7 @@
<div class="_fnDm_content" v-loading='loading' :style="{minHeight:minHeight+'px'}"> <div class="_fnDm_content" v-loading='loading' :style="{minHeight:minHeight+'px'}">
<table border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-bottom:30px;"> <table border="0" cellspacing="0" cellpadding="0" class="singeRowTable" style="margin-bottom:30px;">
<tr class="_t_head"> <tr class="_t_head">
<th v-if="checkboxShow || BOSSBtn || BOSSBtn2"><input type="checkbox" v-model="isCkedAll" @click='checkedAll()'></th> <th v-if="hbState || checkboxShow || BOSSBtn || BOSSBtn2"><input type="checkbox" v-model="isCkedAll" @click='checkedAll()'></th>
<th width="90">{{$t('system.query_company')}}</th> <th width="90">{{$t('system.query_company')}}</th>
<th>{{$t('fnc.danhao')}}</th> <th>{{$t('fnc.danhao')}}</th>
<th width="90">{{$t('fnc.djleixing')}}</th> <th width="90">{{$t('fnc.djleixing')}}</th>
...@@ -422,7 +425,7 @@ ...@@ -422,7 +425,7 @@
<th>{{$t('system.table_operation')}}</th> <th>{{$t('system.table_operation')}}</th>
</tr> </tr>
<tr class="_item_list" v-for="(item,index) in DataList"> <tr class="_item_list" v-for="(item,index) in DataList">
<td v-if="checkboxShow || BOSSBtn || BOSSBtn2"><input type="checkbox" :value="item.FrID" v-model="checkList" @change="ckeckedOne"></td> <td v-if="hbState || checkboxShow || BOSSBtn || BOSSBtn2"><input type="checkbox" :value="item.FrID" v-model="checkList" @change="ckeckedOne"></td>
<td>{{item.BranchName}}</td> <td>{{item.BranchName}}</td>
<td class="Bill_par"> <td class="Bill_par">
<el-popover <el-popover
...@@ -744,6 +747,12 @@ import myGZBill from "./FinancialSubmodule/GZBillModule.vue"; ...@@ -744,6 +747,12 @@ import myGZBill from "./FinancialSubmodule/GZBillModule.vue";
export default { export default {
data(){ data(){
return{ return{
hbMsg:{
FrIDList:[],
Type:1,
},
hbState:false,
hbShow:false,
HandMsg:{ HandMsg:{
TCNUM:"", TCNUM:"",
ReFinanceId:'', ReFinanceId:'',
...@@ -887,6 +896,9 @@ export default { ...@@ -887,6 +896,9 @@ export default {
created(){ created(){
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
let ActionMenuCode=userinfo.ActionMenuCode; let ActionMenuCode=userinfo.ActionMenuCode;
if(ActionMenuCode.indexOf('F_AccountantFinanceMerge')!=-1){
this.hbShow=true;
}
if(ActionMenuCode.indexOf('F_HandWithFee')!=-1){ if(ActionMenuCode.indexOf('F_HandWithFee')!=-1){
this.HandShow=true; this.HandShow=true;
} }
...@@ -942,6 +954,39 @@ export default { ...@@ -942,6 +954,39 @@ export default {
this.AccountType_post_GetList(); this.AccountType_post_GetList();
}, },
methods:{ methods:{
HebingSPLast(){
console.log("fssf",this.checkList)
this.$confirm("是否合并审批? 合并审批后不可恢复", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.hbMsg.FrIDList=this.checkList;
this.apipost("Financial_post_SetAccountantFinanceMerge",this.hbMsg,res => {
console.log("res,",res)
if (res.data.resultCode == 1) {
}
else{
this.Error(res.data.message);
}
},err => {});
})
.catch(() => {});
},
HebingSP(){
if(this.msg.Type==1 || this.msg.Type==2){
this.hbState=true;
this.hbMsg.Type=this.msg.Type;
this.getPageList();
}else{
this.Error("单据类型只能为收入或支出!")
}
},
setHand(){ setHand(){
if(this.HandMsg.TCNUM==''){ if(this.HandMsg.TCNUM==''){
this.Error("请输入团号!"); this.Error("请输入团号!");
...@@ -1138,7 +1183,7 @@ export default { ...@@ -1138,7 +1183,7 @@ export default {
} }
}, },
closeChangeMachie(done) { // 转交窗口关闭 closeChangeMachie(done) { // 转交窗口关闭
this.BOSSDialogText = false; this.BOSSDialogText = false;
done(); done();
}, },
Financial_post_SetBatch(){ // 批量提交 Financial_post_SetBatch(){ // 批量提交
...@@ -1195,7 +1240,11 @@ export default { ...@@ -1195,7 +1240,11 @@ export default {
this.checkList = []; this.checkList = [];
if ((t&&this.BOSSBtn)||(t&&this.BOSSBtn2)) { if ((t&&this.BOSSBtn)||(t&&this.BOSSBtn2)) {
this.msg.pageSize = 1000; this.msg.pageSize = 1000;
} else { }
else if(this.hbState){
this.msg.pageSize = 30;
}
else {
this.msg.pageSize = 6; this.msg.pageSize = 6;
} }
if(this.msg.Status==0){ if(this.msg.Status==0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment