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

页面修改

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