Commit 9d296f33 authored by liudong1993's avatar liudong1993
parents 34ecc7d0 41355c85
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
<el-option v-for="(item,index) in PeriodsList" :key="item.index" :label="item.Name" :value="item.Id"></el-option> <el-option v-for="(item,index) in PeriodsList" :key="item.index" :label="item.Name" :value="item.Id"></el-option>
</el-select> </el-select>
</li> </li>
<li>
<em>选择月份</em>
<el-date-picker
v-model="Month"
value-format="yyyy-MM"
type="month"
placeholder="选择月">
</el-date-picker>
</li>
<li v-show="btnShow">
<el-button size="mini" type="danger" style="border-radius:14px" :loading="btnLoading" @click="generateTable">生成提成</el-button>
</li>
</ul> </ul>
</div> </div>
...@@ -75,7 +87,7 @@ ...@@ -75,7 +87,7 @@
</table> </table>
<!-- 分页 --> <!-- 分页 -->
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" :page-size='msg.PageSize' :total='total'> layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination> </el-pagination>
</div> </div>
...@@ -98,12 +110,13 @@ ...@@ -98,12 +110,13 @@
total: 0, total: 0,
btnShow: false, btnShow: false,
PeriodsList:[], PeriodsList:[],
btnLoading:false
} }
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode; let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('P_OPCommissionSend') != -1) { if (ActionMenuCode.indexOf('F_DCommissionSend') != -1) {
this.btnShow = true; this.btnShow = true;
} }
this.getqishilist() this.getqishilist()
...@@ -166,6 +179,28 @@ ...@@ -166,6 +179,28 @@
null null
); );
}, },
//生成提成报表
generateTable(){
if(!this.Month||this.Month==""){
this.Error("请选择月份!")
return;
}
this.btnLoading=true;
this.apipost(
"sellcommission_Post_SetGNCommissionSend",{Month:this.Month},
res => {
this.btnLoading=false;
if(res.data.resultCode==1){
this.handleCurrentChange(1);
this.Success('报表生成成功')
}else{
this.Error(res.data.message);
}
},
null
);
}
} }
} }
......
...@@ -55,28 +55,31 @@ ...@@ -55,28 +55,31 @@
</div> </div>
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>期数</th>
<th>销售</th>
<th>部门</th>
<th>公司</th> <th>公司</th>
<th>部门</th>
<th>销售</th>
<th>人数</th>
<th>提成</th> <th>提成</th>
<th>额外奖励</th> <th>额外奖励</th>
<th>额外扣除</th> <th>额外扣除</th>
<th>最终提成</th> <th>最终提成</th>
<th>人数</th> <th>期数</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.Periods}}</td>
<td>{{item.UserName}}</td>
<td>{{item.DeptName}}</td>
<td>{{item.BranchName}}</td> <td>{{item.BranchName}}</td>
<td>{{item.DeptName}}</td>
<td>{{item.UserName}}</td>
<td>{{item.PeopleCount}}</td>
<td>{{item.CommissionMoney}}</td> <td>{{item.CommissionMoney}}</td>
<td>{{item.OtherMoney}}</td> <td>{{item.OtherMoney}}</td>
<td>{{item.BackMoney}}</td> <td>{{item.BackMoney}}</td>
<td>{{item.YFMoney}}</td> <td>{{item.YFMoney}}</td>
<td>{{item.PeopleCount}}</td> <td>{{item.Periods}}</td>
<td> <td>
<el-tooltip class="item" effect="dark" content="查看" placement="top"> <el-tooltip class="item" effect="dark" content="查看" placement="top">
...@@ -93,7 +96,7 @@ ...@@ -93,7 +96,7 @@
</table> </table>
<!-- 分页 --> <!-- 分页 -->
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" :page-size='msg.PageSize' :total='total'> layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -48,31 +48,35 @@ ...@@ -48,31 +48,35 @@
</div> </div>
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;"> <table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;">
<tr> <tr>
<th>期数</th>
<th>团信息</th> <th>团信息</th>
<th>订单号</th> <th>订单号</th>
<th>销售</th>
<th>部门</th>
<th>公司</th> <th>公司</th>
<th>部门</th>
<th>销售</th>
<th>人数</th>
<th>提成</th> <th>提成</th>
<th>额外奖励</th> <th>额外奖励</th>
<th>额外扣除</th> <th>额外扣除</th>
<th>最终提成</th> <th>最终提成</th>
<th>人数</th> <th>期数</th>
<!-- <th>操作</th> --> <!-- <th>操作</th> -->
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.Periods}}</td> <td style="cursor: pointer;text-decoration: underline;" @click="goTravel(item.TCID)">{{item.TCNUM}}({{item.TCID}})</td>
<td>{{item.TCNUM}}({{item.TCID}})</td>
<td>{{item.OrderId}}</td> <td>{{item.OrderId}}</td>
<td>{{item.UserName}}</td>
<td>{{item.DeptName}}</td>
<td>{{item.BranchName}}</td> <td>{{item.BranchName}}</td>
<td>{{item.DeptName}}</td>
<td>{{item.UserName}}</td>
<td>{{item.PeopleCount}}</td>
<td>{{item.CommissionMoney}}</td> <td>{{item.CommissionMoney}}</td>
<td>{{item.OtherMoney}}</td> <td>{{item.OtherMoney}}</td>
<td>{{item.BackMoney}}</td> <td>{{item.BackMoney}}</td>
<td>{{item.YFMoney}}</td> <td>{{item.YFMoney}}</td>
<td>{{item.PeopleCount}}</td> <td>{{item.Periods}}</td>
<!-- <td> <!-- <td>
...@@ -90,7 +94,7 @@ ...@@ -90,7 +94,7 @@
</table> </table>
<!-- 分页 --> <!-- 分页 -->
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" :page-size='msg.PageSize' :total='total'> layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination> </el-pagination>
</div> </div>
...@@ -271,6 +275,16 @@ ...@@ -271,6 +275,16 @@
var fileName = "国内提成明细.xls"; var fileName = "国内提成明细.xls";
this.GetLocalFile("sellcommission_post_GetGNCommissionSingleDetailsListToExcel", msg, fileName); this.GetLocalFile("sellcommission_post_GetGNCommissionSingleDetailsListToExcel", msg, fileName);
}, },
goTravel(TCID){//跳转到团队列表
this.$router.push({
path: 'TravelControlList',
query: {
TCID: TCID,
blank: 'y',
tab: '团控列表'
}
});
}
} }
} }
......
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