Commit 637e1f3a authored by 黄奎's avatar 黄奎

页面修改

parent 1910bf7b
<style>
.CM_look {
.CM_look {
padding: 4px !important;
position: relative;
top: 1px;
}
.TCommission-finance {
}
.TCommission-finance {
font-size: 12px;
text-decoration: underline;
cursor: pointer;
margin-right: 5px;
}
}
</style>
<template>
<div class="flexOne">
<!-- <div class="query-box">
<ul>
<li>
<input type="button" class="normalBtn" @click="generateTable" value="生成提成报表"/>
</li>
</ul>
</div>-->
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>期数</th>
......@@ -32,58 +27,34 @@
</tr>
<tr v-for="(item,index) in dataList" :key="index">
<td>{{item.periods}}</td>
<td
v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49"
>{{item.sumPrice.toFixed(2)}}</td>
<td v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49">{{item.sumPrice.toFixed(2)}}</td>
<td>{{item.createByStr}}</td>
<td>{{item.branchMoney.toFixed(2)}}</td>
<td>
<span
class="TCommission-finance"
v-for="(fno, i) in item.financialsArray"
:key="i"
@click="goUrl2(fno)"
>{{fno}}</span>
<span class="TCommission-finance" v-for="(fno, i) in item.financialsArray" :key="i"
@click="goUrl2(fno)">{{fno}}</span>
</td>
<td>{{item.createStr}}</td>
<td>
<el-tooltip class="item" effect="dark" content="查看" placement="top">
<el-button
type="primary"
class="CM_look"
@click="goUrl('CommissionDetail',item.id)"
icon="iconfont icon-chakan"
title="查看"
circle
></el-button>
<el-button type="primary" class="CM_look" @click="goUrl('CommissionDetail',item.id)"
icon="iconfont icon-chakan" title="查看" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="制单" placement="top">
<el-button v-if="btnShow"
type="primary"
class="CM_look"
@click="generalFinancacls(item)"
icon="el-icon-plus"
title="制单"
circle
></el-button>
<el-button v-if="btnShow" type="primary" class="CM_look" @click="generalFinancacls(item)"
icon="el-icon-plus" title="制单" circle></el-button>
</el-tooltip>
</td>
</tr>
</table>
<!-- 分页 -->
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.PageSize"
:total="total"
></el-pagination>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.PageSize" :total="total"></el-pagination>
</div>
</template>
<script>
export default {
export default {
data() {
return {
msg: {
......@@ -96,16 +67,16 @@ export default {
total: 0,
currentPage: 1,
userInfo: {},
btnShow:false,
btnShow: false,
};
},
mounted() {
this.getList();
this.userInfo = this.getLocalStorage();
let userInfo = this.getLocalStorage();
let ActionMenuCode=userInfo.ActionMenuCode;
if(ActionMenuCode.indexOf('CommissionVoucher')!=-1){
this.btnShow=true;
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('CommissionVoucher') != -1) {
this.btnShow = true;
}
},
methods: {
......@@ -175,8 +146,8 @@ export default {
null
);
},
generalFinancacls(item){
if(item.financialsArray&&item.financialsArray.length>0){
generalFinancacls(item) {
if (item.financialsArray && item.financialsArray.length > 0) {
this.Error("请不要多次制单!")
return;
}
......@@ -189,16 +160,16 @@ export default {
let query = {
blank: "y",
tab: "新增付款单据",
Type:2,
IsUploadPic:1,
Type: 2,
IsUploadPic: 1,
orderObj: JSON.stringify(obj)
}
if(this.userInfo.RB_Branch_id==0) {
query.id=28
query.Name="总部销售提成单"
}else{
query.id=30
query.Name="分公司销售提成单"
if (this.userInfo.RB_Branch_id == 0) {
query.id = 28
query.Name = "总部销售提成单"
} else {
query.id = 30
query.Name = "分公司销售提成单"
}
this.$router.push({
path: "/addFinancialDocuments",
......@@ -206,5 +177,5 @@ export default {
});
}
}
};
};
</script>
\ No newline at end of file
......@@ -286,12 +286,6 @@ export default {
isResize: true,
width: 80,
componentName: "commission-table-beizhu"
// formatter: function(rowData, rowIndex, pagingIndex, field) {
// return `<span v-if="${rowData.EmployeeId==0 && oPComissionPeriods.FRID>0}">
// <span>${rowData.EmployeeId}</span>
// 单据号:${oPComissionPeriods.FRID}</span>`;
// }
};
let opera = {
title: "操作",
......
......@@ -286,12 +286,6 @@ export default {
isResize: true,
width: 80,
componentName: "commission-table-beizhu"
// formatter: function(rowData, rowIndex, pagingIndex, field) {
// return `<span v-if="${rowData.EmployeeId==0 && oPComissionPeriods.FRID>0}">
// <span>${rowData.EmployeeId}</span>
// 单据号:${oPComissionPeriods.FRID}</span>`;
// }
};
let opera = {
title: "操作",
......
......@@ -1009,7 +1009,6 @@
},
resetForm(formName) { //弹出框取消 初始化谈框内表单
this.$refs[formName].resetFields();
// this.addMsg1.EmployeeId='0'
},
addData() { //新增数据
if (this.addMsg.ManagerIdArr.length > 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