|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div v-loading="loading">
|
|
|
- <div class="search clear">
|
|
|
+ <div class="search clear" style="align-items: center;">
|
|
|
+ <el-switch
|
|
|
+ style="margin-right: 10px;"
|
|
|
+ v-model="isTenThound"
|
|
|
+ active-text="万元"
|
|
|
+ inactive-text="元"
|
|
|
+ />
|
|
|
+
|
|
|
<el-select size="small" style="margin-right:10px" v-model="depart_id" @change="requestData">
|
|
|
<el-option
|
|
|
v-for="depart in departItems"
|
|
@@ -13,7 +20,7 @@
|
|
|
<el-date-picker
|
|
|
class="fr picker"
|
|
|
v-model="daytime"
|
|
|
- :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }"
|
|
|
+ :picker-options="{disabledData(time) { return time.getTime() > Date.now(); } }"
|
|
|
placeholder="选择日期"
|
|
|
style=";width:150px"
|
|
|
value-format="yyyy-MM-dd"
|
|
@@ -31,23 +38,23 @@
|
|
|
<el-table-column fixed="left" label="公司" prop="company" align="center" width="140px" />
|
|
|
<el-table-column fixed="left" label="部门" prop="depart" align="center" width="140px" />
|
|
|
<el-table-column label="当日营业收入" align="center" width="120px">
|
|
|
- <template slot-scope="scope">{{ unit2TenThousand(scope.row.dayinfo.sale_total) }}</template>
|
|
|
+ <template slot-scope="scope">{{ unit2TenThousand(scope.row.dayinfo.sale_total,isTenThound) }}</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="当月营收目标" align="center" width="120px">
|
|
|
- <template slot-scope="scope">{{ unit2TenThousand(scope.row.total_tips) }}</template>
|
|
|
+ <template slot-scope="scope">{{ unit2TenThousand(scope.row.total_tips,isTenThound) }}</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="当月营业收入(净)" align="center" width="400px">
|
|
|
<template slot-scope="scope">
|
|
|
<div style="display:flex;flex-direction: column;">
|
|
|
- <p style="text-align: center;">{{ unit2TenThousand(scope.row.monthinfo.monthNetSales)}}</p>
|
|
|
+ <p style="text-align: center;">{{ unit2TenThousand(scope.row.monthinfo.monthNetSales,isTenThound)}}</p>
|
|
|
<el-table border size="mini" :data="scope.row.currentMonthPure">
|
|
|
<el-table-column align="center" label="直营/自营">
|
|
|
- <template slot-scope="scope">{{ unit2TenThousand(scope.row.zy) }}</template>
|
|
|
+ <template slot-scope="scope">{{ unit2TenThousand(scope.row.zy,isTenThound) }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="渠道">
|
|
|
- <template slot-scope="scope">{{unit2TenThousand(scope.row.qd)}}</template>
|
|
|
+ <template slot-scope="scope">{{unit2TenThousand(scope.row.qd,isTenThound)}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -56,21 +63,21 @@
|
|
|
|
|
|
<el-table-column label="成本" align="center" min-width="400px">
|
|
|
<el-table-column align="center" label="直营/自营">
|
|
|
- <template slot-scope="scope">{{unit2TenThousand(scope.row.zy_cost)}}</template>
|
|
|
+ <template slot-scope="scope">{{unit2TenThousand(scope.row.zy_cost,isTenThound)}}</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" label="渠道">
|
|
|
- <template slot-scope="scope">{{unit2TenThousand(scope.row.qd_cost)}}</template>
|
|
|
+ <template slot-scope="scope">{{unit2TenThousand(scope.row.qd_cost,isTenThound)}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" label="毛利" min-width="400px">
|
|
|
<el-table-column align="center" label="直营/自营">
|
|
|
- <template slot-scope="scope">{{unit2TenThousand(scope.row.zy_gross)}}</template>
|
|
|
+ <template slot-scope="scope">{{unit2TenThousand(scope.row.zy_gross,isTenThound)}}</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" label="渠道">
|
|
|
- <template slot-scope="scope">{{unit2TenThousand(scope.row.qd_gross)}}</template>
|
|
|
+ <template slot-scope="scope">{{unit2TenThousand(scope.row.qd_gross,isTenThound)}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -99,12 +106,13 @@ export default {
|
|
|
daytime: "",
|
|
|
depart_id: "",
|
|
|
loading: false,
|
|
|
+ isTenThound: true,
|
|
|
departItems:[
|
|
|
- {value:'',label:'所有平台'},
|
|
|
- {value:'52',label:'百辰荣达'},
|
|
|
- {value:'53',label:'普润心堂&锦兴弘昌'},
|
|
|
- {value:'56',label:'泓源广诚'},
|
|
|
- {value:'57',label:'万宇恒通'}
|
|
|
+ { value: '', label: '所有平台' },
|
|
|
+ { value: '52', label: '百辰荣达' },
|
|
|
+ { value: '53', label: '普润心堂&锦兴弘昌' },
|
|
|
+ { value: '56', label: '泓源广诚' },
|
|
|
+ { value: '57', label: '万宇恒通' }
|
|
|
]
|
|
|
}
|
|
|
},
|