Commit 3ac81b72 authored by liudong1993's avatar liudong1993

1

parent b81aae08
...@@ -193,8 +193,8 @@ Vue.component("YiYueJump", { ...@@ -193,8 +193,8 @@ Vue.component("YiYueJump", {
// 团队跳转 // 团队跳转
template: ` template: `
<div class="gourl_span"> <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',1,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.YiYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',1,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.YiYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.YiYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.YiYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -227,8 +227,8 @@ Vue.component("ErYueJump", { ...@@ -227,8 +227,8 @@ Vue.component("ErYueJump", {
// 团队跳转 // 团队跳转
template: ` template: `
<div class="gourl_span"> <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',2,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.ErYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',2,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.ErYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.ErYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.ErYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -260,8 +260,8 @@ Vue.component("ErYueJump", { ...@@ -260,8 +260,8 @@ Vue.component("ErYueJump", {
Vue.component("SanYueJump", { Vue.component("SanYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',3,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.SanYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',3,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.SanYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.SanYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.SanYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -293,8 +293,8 @@ Vue.component("SanYueJump", { ...@@ -293,8 +293,8 @@ Vue.component("SanYueJump", {
Vue.component("SiYueJump", { Vue.component("SiYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',4,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.SiYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',4,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.SiYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.SiYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.SiYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -326,8 +326,8 @@ Vue.component("SiYueJump", { ...@@ -326,8 +326,8 @@ Vue.component("SiYueJump", {
Vue.component("WuYueJump", { Vue.component("WuYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',5,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.WuYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',5,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.WuYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.WuYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.WuYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -359,8 +359,8 @@ Vue.component("WuYueJump", { ...@@ -359,8 +359,8 @@ Vue.component("WuYueJump", {
Vue.component("LiuYueJump", { Vue.component("LiuYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer;" v-if="rowData.CostIds" @click="goUrl('JumpReport',6,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.LiuYue}}</span> <span style="cursor: pointer;" v-if="rowData.CostIds" @click="goUrl('JumpReport',6,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.LiuYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.LiuYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.LiuYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -392,8 +392,8 @@ Vue.component("LiuYueJump", { ...@@ -392,8 +392,8 @@ Vue.component("LiuYueJump", {
Vue.component("QiYueJump", { Vue.component("QiYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',7,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.QiYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',7,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.QiYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.QiYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.QiYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -425,8 +425,8 @@ Vue.component("QiYueJump", { ...@@ -425,8 +425,8 @@ Vue.component("QiYueJump", {
Vue.component("BaYueJump", { Vue.component("BaYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',8,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.BaYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',8,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.BaYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.BaYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.BaYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -458,8 +458,8 @@ Vue.component("BaYueJump", { ...@@ -458,8 +458,8 @@ Vue.component("BaYueJump", {
Vue.component("JiuYueJump", { Vue.component("JiuYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',9,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.JiuYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',9,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.JiuYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.JiuYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.JiuYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -491,8 +491,8 @@ Vue.component("JiuYueJump", { ...@@ -491,8 +491,8 @@ Vue.component("JiuYueJump", {
Vue.component("ShiYueJump", { Vue.component("ShiYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',10,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.ShiYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',10,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.ShiYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.ShiYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.ShiYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -524,8 +524,8 @@ Vue.component("ShiYueJump", { ...@@ -524,8 +524,8 @@ Vue.component("ShiYueJump", {
Vue.component("ShiYiYueJump", { Vue.component("ShiYiYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',11,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.ShiYiYue}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',11,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.ShiYiYue)}}</span>
<span style="cursor: pointer" v-else>{{rowData.ShiYiYue}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.ShiYiYue)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -557,8 +557,8 @@ Vue.component("ShiYiYueJump", { ...@@ -557,8 +557,8 @@ Vue.component("ShiYiYueJump", {
Vue.component("ShiErYueJump", { Vue.component("ShiErYueJump", {
// 团队跳转 // 团队跳转
template: ` <div class="gourl_span"> template: ` <div class="gourl_span">
<span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',12,rowData.Year,rowData.BranchId,rowData.CostIds)">{{rowData.ShiEr}}</span> <span style="cursor: pointer" v-if="rowData.CostIds" @click="goUrl('JumpReport',12,rowData.Year,rowData.BranchId,rowData.CostIds)">{{moneyFormatN(rowData.ShiEr)}}</span>
<span style="cursor: pointer" v-else>{{rowData.ShiEr}}</span> <span style="cursor: pointer" v-else>{{moneyFormatN(rowData.ShiEr)}}</span>
</div>`, </div>`,
props: { props: {
rowData: { rowData: {
...@@ -655,6 +655,7 @@ export default { ...@@ -655,6 +655,7 @@ export default {
}, },
{ {
field: "YiYue", field: "YiYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[0], title: this.$t('objFill.yuefens')[0],
start:"01-01", start:"01-01",
end:"01-31", end:"01-31",
...@@ -666,10 +667,11 @@ export default { ...@@ -666,10 +667,11 @@ export default {
result: [], result: [],
type: "select", type: "select",
isFrozen: false, isFrozen: false,
componentName: "YiYueJump" //componentName: "YiYueJump"
}, },
{ {
field: "ErYue", field: "ErYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[1], title: this.$t('objFill.yuefens')[1],
start:"02-01", start:"02-01",
end:"02", end:"02",
...@@ -685,6 +687,7 @@ export default { ...@@ -685,6 +687,7 @@ export default {
}, },
{ {
field: "SanYue", field: "SanYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[2], title: this.$t('objFill.yuefens')[2],
start:"03-01", start:"03-01",
end:"03-31", end:"03-31",
...@@ -700,6 +703,7 @@ export default { ...@@ -700,6 +703,7 @@ export default {
}, },
{ {
field: "DiYiJiDu", field: "DiYiJiDu",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[0], title: this.$t('objFill.jidus')[0],
start:"01-01", start:"01-01",
end:"03-31", end:"03-31",
...@@ -713,6 +717,7 @@ export default { ...@@ -713,6 +717,7 @@ export default {
}, },
{ {
field: "SiYue", field: "SiYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[3], title: this.$t('objFill.yuefens')[3],
start:"04-01", start:"04-01",
end:"04-30", end:"04-30",
...@@ -728,6 +733,7 @@ export default { ...@@ -728,6 +733,7 @@ export default {
}, },
{ {
field: "WuYue", field: "WuYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[4], title: this.$t('objFill.yuefens')[4],
start:"05-01", start:"05-01",
end:"05-31", end:"05-31",
...@@ -743,6 +749,7 @@ export default { ...@@ -743,6 +749,7 @@ export default {
}, },
{ {
field: "LiuYue", field: "LiuYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[5], title: this.$t('objFill.yuefens')[5],
start:"06-01", start:"06-01",
end:"06-30", end:"06-30",
...@@ -758,6 +765,7 @@ export default { ...@@ -758,6 +765,7 @@ export default {
}, },
{ {
field: "DiErJiDu", field: "DiErJiDu",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[1], title: this.$t('objFill.jidus')[1],
start:"04-01", start:"04-01",
end:"06-30", end:"06-30",
...@@ -771,6 +779,7 @@ export default { ...@@ -771,6 +779,7 @@ export default {
}, },
{ {
field: "ShangBanNianBao", field: "ShangBanNianBao",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[2], title: this.$t('objFill.jidus')[2],
start:"01-01", start:"01-01",
end:"06-30", end:"06-30",
...@@ -784,6 +793,7 @@ export default { ...@@ -784,6 +793,7 @@ export default {
}, },
{ {
field: "QiYue", field: "QiYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[6], title: this.$t('objFill.yuefens')[6],
start:"07-01", start:"07-01",
end:"07-31", end:"07-31",
...@@ -799,6 +809,7 @@ export default { ...@@ -799,6 +809,7 @@ export default {
}, },
{ {
field: "BaYue", field: "BaYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[7], title: this.$t('objFill.yuefens')[7],
start:"08-01", start:"08-01",
end:"08-31", end:"08-31",
...@@ -814,6 +825,7 @@ export default { ...@@ -814,6 +825,7 @@ export default {
}, },
{ {
field: "JiuYue", field: "JiuYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[8], title: this.$t('objFill.yuefens')[8],
start:"09-01", start:"09-01",
end:"09-30", end:"09-30",
...@@ -829,6 +841,7 @@ export default { ...@@ -829,6 +841,7 @@ export default {
}, },
{ {
field: "DiSanJiDu", field: "DiSanJiDu",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[3], title: this.$t('objFill.jidus')[3],
start:"06-01", start:"06-01",
end:"09-30", end:"09-30",
...@@ -842,6 +855,7 @@ export default { ...@@ -842,6 +855,7 @@ export default {
}, },
{ {
field: "ShiYue", field: "ShiYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[9], title: this.$t('objFill.yuefens')[9],
start:"10-01", start:"10-01",
end:"10-31", end:"10-31",
...@@ -857,6 +871,7 @@ export default { ...@@ -857,6 +871,7 @@ export default {
}, },
{ {
field: "ShiYiYue", field: "ShiYiYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[10], title: this.$t('objFill.yuefens')[10],
start:"11-01", start:"11-01",
end:"11-30", end:"11-30",
...@@ -872,6 +887,7 @@ export default { ...@@ -872,6 +887,7 @@ export default {
}, },
{ {
field: "ShiErYue", field: "ShiErYue",
formatter: this.moneyFormatBB,
title: this.$t('objFill.yuefens')[11], title: this.$t('objFill.yuefens')[11],
start:"12-01", start:"12-01",
end:"12-31", end:"12-31",
...@@ -887,6 +903,7 @@ export default { ...@@ -887,6 +903,7 @@ export default {
}, },
{ {
field: "DiSiJiDu", field: "DiSiJiDu",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[4], title: this.$t('objFill.jidus')[4],
start:"10-01", start:"10-01",
end:"12-31", end:"12-31",
...@@ -900,6 +917,7 @@ export default { ...@@ -900,6 +917,7 @@ export default {
}, },
{ {
field: "XiaBanNianBao", field: "XiaBanNianBao",
formatter: this.moneyFormatBB,
title: this.$t('objFill.jidus')[5], title: this.$t('objFill.jidus')[5],
start:"10-01", start:"10-01",
end:"12-31", end:"12-31",
...@@ -913,6 +931,7 @@ export default { ...@@ -913,6 +931,7 @@ export default {
}, },
{ {
field: "ZongJi", field: "ZongJi",
formatter: this.moneyFormatBB,
title: this.$t('ground.zongji'), title: this.$t('ground.zongji'),
start:"01-01", start:"01-01",
end:"12-31", end:"12-31",
...@@ -1484,6 +1503,28 @@ export default { ...@@ -1484,6 +1503,28 @@ export default {
} }
}, err => {}) }, err => {})
}, },
moneyFormatBB(rowData, rowIndex, pagingIndex, field) {
if (field === "YiYue") return this.moneyFormatN(rowData.YiYue);
if (field === "ErYue") return this.moneyFormatN(rowData.ErYue);
if (field === "SanYue") return this.moneyFormatN(rowData.SanYue);
if (field === "SiYue") return this.moneyFormatN(rowData.SiYue);
if (field === "WuYue") return this.moneyFormatN(rowData.WuYue);
if (field === "LiuYue") return this.moneyFormatN(rowData.LiuYue);
if (field === "QiYue") return this.moneyFormatN(rowData.QiYue);
if (field === "BaYue") return this.moneyFormatN(rowData.BaYue);
if (field === "JiuYue") return this.moneyFormatN(rowData.JiuYue);
if (field === "ShiYue") return this.moneyFormatN(rowData.ShiYue);
if (field === "ShiYiYue") return this.moneyFormatN(rowData.ShiYiYue);
if (field === "ShiErYue") return this.moneyFormatN(rowData.ShiErYue);
if (field === "DiErJiDu") return this.moneyFormatN(rowData.DiErJiDu);
if (field === "DiSanJiDu") return this.moneyFormatN(rowData.DiSanJiDu);
if (field === "DiSiJiDu") return this.moneyFormatN(rowData.DiSiJiDu);
if (field === "DiYiJiDu") return this.moneyFormatN(rowData.DiYiJiDu);
if (field === "ShangBanNianBao") return this.moneyFormatN(rowData.ShangBanNianBao);
if (field === "XiaBanNianBao") return this.moneyFormatN(rowData.XiaBanNianBao);
if (field === "ZongJi") return this.moneyFormatN(rowData.ZongJi);
},
} }
} }
</script> </script>
......
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