Commit 821dedcf authored by 黄媛媛's avatar 黄媛媛

简易报表

parent ee1fdf43
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
@on-custom-comp="customCompFunc" @on-custom-comp="customCompFunc"
@sort-change="sortChange" @sort-change="sortChange"
:row-click="rowClick" :row-click="rowClick"
:row-dblclick="rowDbClick"
> >
</v-table> </v-table>
</div> </div>
...@@ -279,7 +280,6 @@ Vue.component("LiuYueJump", { ...@@ -279,7 +280,6 @@ Vue.component("LiuYueJump", {
}, },
methods: { methods: {
goUrl(path,month,year,BranchId, ids) { goUrl(path,month,year,BranchId, ids) {
console.log(123)
this.$router.push({ this.$router.push({
path: "/" + path, path: "/" + path,
query: { query: {
...@@ -552,7 +552,7 @@ export default { ...@@ -552,7 +552,7 @@ export default {
result: [], result: [],
type: "select", type: "select",
isFrozen: false, isFrozen: false,
// componentName: "YiYueJump" componentName: "YiYueJump"
}, },
{ {
field: "ErYue", field: "ErYue",
...@@ -853,8 +853,15 @@ export default { ...@@ -853,8 +853,15 @@ export default {
} }
}); });
}, },
rowDbClick(rowIndex,rowData,column){
// console.log("rowIndex",rowIndex)
// console.log("rowData",rowData)
// console.log("column",column)
},
rowClick(rowIndex,rowData,column){ rowClick(rowIndex,rowData,column){
console.log("column",column)
var that = this; var that = this;
return;
let startDate=that.year+"-"+column.start; let startDate=that.year+"-"+column.start;
let endDate=""; let endDate="";
let BranchId=that.msg.BranchId; let BranchId=that.msg.BranchId;
...@@ -885,9 +892,10 @@ export default { ...@@ -885,9 +892,10 @@ export default {
if(rowData.ZhaiYao=="员工提成"){ if(rowData.ZhaiYao=="员工提成"){
if(Number(this.year)==2019){ if(Number(this.year)==2019){
if(column.title=="八月" || column.title=="九月" || column.title=="十月" || column.title=="十一月" || column.title=="十二月"){ if(column.title=="十月" || column.title=="十一月" || column.title=="十二月"){
let CostIds=""; let CostIds="";
CostIds=rowData.CostIds.replace('112,', ''); CostIds=rowData.CostIds.replace('112,', '');
CostIds=CostIds.replace('16,', '');
that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,CostIds) that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,CostIds)
} }
else{ else{
...@@ -899,6 +907,7 @@ export default { ...@@ -899,6 +907,7 @@ export default {
else if(Number(this.year)>2019){ else if(Number(this.year)>2019){
let CostIds=""; let CostIds="";
CostIds=rowData.CostIds.replace('112,', ''); CostIds=rowData.CostIds.replace('112,', '');
CostIds=CostIds.replace('16,', '');
that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,CostIds) that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,CostIds)
} }
...@@ -952,7 +961,6 @@ export default { ...@@ -952,7 +961,6 @@ export default {
}, },
customCompFunc: function(param) { customCompFunc: function(param) {
console.log(param);
}, },
columnCellClass: function(rowIndex, columnName, rowData) { columnCellClass: function(rowIndex, columnName, rowData) {
if(rowData.YiYue < 0 && columnName=="YiYue"){ if(rowData.YiYue < 0 && columnName=="YiYue"){
...@@ -1151,7 +1159,19 @@ export default { ...@@ -1151,7 +1159,19 @@ export default {
data.sharelist.forEach((x, i) => { data.sharelist.forEach((x, i) => {
this.monthList[i].value = x.Money this.monthList[i].value = x.Money
}) })
this.DataList = data.list // this.DataList = data.list;
let tichengList=[];
this.DataList=[];
data.list.forEach(item=>{
if(item.ZhaiYao!="销售提成" && item.ZhaiYao!="原始提成"){
this.DataList.push(item)
}else{
tichengList.push(item);
}
})
console.log("DataList",this.DataList)
console.log("tichengList",tichengList)
this.UpdateStaus=data.Status; this.UpdateStaus=data.Status;
this.UpdateStartTime=data.UpdateStartTime; this.UpdateStartTime=data.UpdateStartTime;
this.UpdateEndTime=data.UpdateEndTime; this.UpdateEndTime=data.UpdateEndTime;
......
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