Commit 041af4ad authored by youjie's avatar youjie

no message

parent e9bd8347
...@@ -16,6 +16,13 @@ ...@@ -16,6 +16,13 @@
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3">
<span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">月份:</span>
<el-select size="mini" width="200" v-model="msg.MonthId" placeholder="请选择" @change="getList">
<el-option v-for="item in monthList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-col>
<el-col :xs="13" :sm="14" :md="15" :lg="16" :xl="17" v-if="PredictData.State==1"> <el-col :xs="13" :sm="14" :md="15" :lg="16" :xl="17" v-if="PredictData.State==1">
<div style="text-align: right;position: absolute;right: 20px;top: 0;font-size: 14px;"> <div style="text-align: right;position: absolute;right: 20px;top: 0;font-size: 14px;">
{{PredictData.EmpType==1?'当月预期利润':'当月预期引流数量'}} {{PredictData.EmpType==1?'当月预期利润':'当月预期引流数量'}}
...@@ -28,6 +35,11 @@ ...@@ -28,6 +35,11 @@
{{PredictData.LimitMoney}} {{PredictData.LimitMoney}}
</span> </span>
</template> </template>
<template v-if="PredictData.SalesMoney">
<span>销售额 </span>
<span style="font-size: 16px;"
:style="{'color':!PredictData.SalesMoney?'red':'green'}">{{PredictData.SalesMoney}}</span>
</template>
<span style="color: red;margin-left: 5px;" <span style="color: red;margin-left: 5px;"
v-if="PredictData.LimitMoney>0&&PredictData.LimitMoney>PredictData.OrderProfit"> v-if="PredictData.LimitMoney>0&&PredictData.LimitMoney>PredictData.OrderProfit">
目标未达成仍需努力 目标未达成仍需努力
...@@ -42,6 +54,11 @@ ...@@ -42,6 +54,11 @@
{{PredictData.LimitNum}} {{PredictData.LimitNum}}
</span> </span>
</template> </template>
<template v-if="PredictData.SalesMoney">
<span>销售额 </span>
<span style="font-size: 16px;"
:style="{'color':!PredictData.SalesMoney?'red':'green'}">{{PredictData.SalesMoney}}</span>
</template>
<span style="color: red;margin-left: 5px;font-size: 14px;" <span style="color: red;margin-left: 5px;font-size: 14px;"
v-if="PredictData.LimitNum>0&&PredictData.LimitNum>PredictData.LureNum"> v-if="PredictData.LimitNum>0&&PredictData.LimitNum>PredictData.LureNum">
目标未达成仍需努力 目标未达成仍需努力
...@@ -153,6 +170,10 @@ ...@@ -153,6 +170,10 @@
}, },
data() { data() {
return { return {
monthList:[
{Name:'当月',Id:0,},
{Name:'上月',Id:1,},
],
commissionPopUpVisible: false, commissionPopUpVisible: false,
parameters: {}, parameters: {},
outerVisible: false, outerVisible: false,
...@@ -181,7 +202,9 @@ ...@@ -181,7 +202,9 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
PeriodsId: -1 PeriodsId: -1,
MonthId: 0,
Month: '',
}, },
colors: [ colors: [
'rgba(42, 48, 54,.2)', 'rgba(42, 48, 54,.2)',
...@@ -321,6 +344,14 @@ ...@@ -321,6 +344,14 @@
}, },
// 获取订单列表 // 获取订单列表
getList() { getList() {
var myDate = new Date();
let getMonth = parseInt(myDate.getMonth())
let getMonth1 = parseInt(myDate.getMonth() + 1)
if(this.msg.MonthId){
this.msg.Month = myDate.getFullYear() + '-' + (getMonth>10?getMonth:'0'+getMonth)
}else{
this.msg.Month = myDate.getFullYear() + '-' + (getMonth1>10?getMonth1:'0'+getMonth1)
}
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"/api/Commission/GetMyCommissionPageList", "/api/Commission/GetMyCommissionPageList",
......
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