|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
<div class="title" style="margin-top: 10px">
|
|
<div class="title" style="margin-top: 10px">
|
|
<div style="display: flex; justify-content: space-between">
|
|
<div style="display: flex; justify-content: space-between">
|
|
- <h1 style="color: azure">漯河亿通集团数据看板</h1>
|
|
|
|
|
|
+ <h1 style="color: azure" @click="goOff">漯河亿通集团数据看板</h1>
|
|
|
|
|
|
<div class="time">
|
|
<div class="time">
|
|
<span class="iconfont icon-riqi"></span> {{ currentTime }}
|
|
<span class="iconfont icon-riqi"></span> {{ currentTime }}
|
|
@@ -34,7 +34,7 @@
|
|
<div style="margin-right: 20px">
|
|
<div style="margin-right: 20px">
|
|
<el-select
|
|
<el-select
|
|
class="select"
|
|
class="select"
|
|
- v-model="company_ids"
|
|
|
|
|
|
+ v-model="pm_company_ids"
|
|
multiple
|
|
multiple
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
@@ -59,7 +59,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<el-button
|
|
<el-button
|
|
- @click="searchBtn"
|
|
|
|
|
|
+ @click="searchBtn1(pm_company_ids, value1)"
|
|
style="background-color: rgb(40, 155, 209); color: black"
|
|
style="background-color: rgb(40, 155, 209); color: black"
|
|
>查询</el-button
|
|
>查询</el-button
|
|
>
|
|
>
|
|
@@ -74,15 +74,17 @@
|
|
background: '#03111c',
|
|
background: '#03111c',
|
|
}"
|
|
}"
|
|
:cell-style="{ 'text-align': 'center' }"
|
|
:cell-style="{ 'text-align': 'center' }"
|
|
|
|
+ show-summary
|
|
|
|
+
|
|
style="width: 100%; margin: 1px"
|
|
style="width: 100%; margin: 1px"
|
|
>
|
|
>
|
|
- <el-table-column prop="pm" label="排名"> </el-table-column>
|
|
|
|
- <el-table-column prop="company" label="店面"> </el-table-column>
|
|
|
|
- <el-table-column prop="xsgw" label="销售顾问"> </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="pm" label="排名" sortable> </el-table-column>
|
|
|
|
+ <el-table-column prop="company" label="店面" sortable> </el-table-column>
|
|
|
|
+ <el-table-column prop="xsgw" label="销售顾问" sortable> </el-table-column>
|
|
|
|
|
|
- <el-table-column prop="xzjk" label="新增集客"> </el-table-column>
|
|
|
|
- <el-table-column prop="xzdd" label="新增订单"> </el-table-column>
|
|
|
|
- <el-table-column prop="cjl" label="成交率"> </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="xzjk" label="新增集客" sortable> </el-table-column>
|
|
|
|
+ <el-table-column prop="xzdd" label="新增订单" sortable> </el-table-column>
|
|
|
|
+ <el-table-column prop="cjl" label="成交率" sortable> </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="各品牌销售统计">
|
|
<el-tab-pane label="各品牌销售统计">
|
|
@@ -91,7 +93,7 @@
|
|
<div style="margin-right: 20px">
|
|
<div style="margin-right: 20px">
|
|
<el-select
|
|
<el-select
|
|
class="select"
|
|
class="select"
|
|
- v-model="company_ids"
|
|
|
|
|
|
+ v-model="pp_company_ids"
|
|
multiple
|
|
multiple
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
@@ -116,23 +118,23 @@
|
|
</div>
|
|
</div>
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<el-button
|
|
<el-button
|
|
- @click="searchBtn"
|
|
|
|
|
|
+ @click="searchBtn2(pp_company_ids, value2)"
|
|
style="background-color: rgb(40, 155, 209); color: black"
|
|
style="background-color: rgb(40, 155, 209); color: black"
|
|
>查询</el-button
|
|
>查询</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
<el-table
|
|
<el-table
|
|
- border
|
|
|
|
- class="exporttable"
|
|
|
|
- :data="tableDataTwo"
|
|
|
|
-
|
|
|
|
- stripe
|
|
|
|
- :header-cell-style="{ 'text-align': 'center', background: '#03111c' }"
|
|
|
|
- :cell-style="{ 'text-align': 'center' }"
|
|
|
|
- show-summary
|
|
|
|
- style="width: 100%; margin: 1px"
|
|
|
|
- max-height="700"
|
|
|
|
|
|
+ border
|
|
|
|
+ class="exporttable"
|
|
|
|
+ :data="tableDataTwo"
|
|
|
|
+
|
|
|
|
+ stripe
|
|
|
|
+ :header-cell-style="{ 'text-align': 'center', background: '#03111c' }"
|
|
|
|
+ :cell-style="{ 'text-align': 'center' }"
|
|
|
|
+ show-summary
|
|
|
|
+ style="width: 100%; margin: 1px"
|
|
|
|
+ :max-height="taheight"
|
|
>
|
|
>
|
|
<el-table-column prop="company" label="店名"> </el-table-column>
|
|
<el-table-column prop="company" label="店名"> </el-table-column>
|
|
<el-table-column prop="name" label="">
|
|
<el-table-column prop="name" label="">
|
|
@@ -173,143 +175,101 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <!-- <el-tab-pane label="销售数据对标">
|
|
|
|
-
|
|
|
|
|
|
+ <el-tab-pane label="销售数据对标">
|
|
|
|
+ <div style="display: flex; justify-content: flex-end; margin: 10px">
|
|
|
|
+ <!-- 下拉框 -->
|
|
|
|
+ <div style="margin-right: 20px">
|
|
|
|
+ <el-select
|
|
|
|
+ class="select"
|
|
|
|
+ v-model="db_company_ids"
|
|
|
|
+ multiple
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.text"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 日期表 -->
|
|
|
|
+ <div class="dataForm" style="margin-right: 20px">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="value3"
|
|
|
|
+ type="daterange"
|
|
|
|
+ range-separator="——"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 按钮 -->
|
|
|
|
+ <el-button
|
|
|
|
+ @click="searchBtn2(db_company_ids, value3)"
|
|
|
|
+ style="background-color: rgb(40, 155, 209); color: black"
|
|
|
|
+ >查询</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 表格 -->
|
|
|
|
+ <el-table
|
|
|
|
+ class="exporttable"
|
|
|
|
+ :data="tableDataThree"
|
|
|
|
+ border
|
|
|
|
+ show-summary
|
|
|
|
+ stripe
|
|
|
|
+ :header-cell-style="{
|
|
|
|
+ 'text-align': 'center',
|
|
|
|
+ background: '#03111c'
|
|
|
|
+ }"
|
|
|
|
+ :cell-style="{ 'text-align': 'center' }"
|
|
|
|
|
|
- 表格
|
|
|
|
- <el-table
|
|
|
|
- class="exporttable"
|
|
|
|
- :data="tableData"
|
|
|
|
- border
|
|
|
|
- show-summary
|
|
|
|
- stripe
|
|
|
|
- :header-cell-style="{
|
|
|
|
- 'text-align': 'center',
|
|
|
|
- background: '#03111c'
|
|
|
|
- }"
|
|
|
|
- :cell-style="{ 'text-align': 'center' }"
|
|
|
|
-
|
|
|
|
- style="width: 100%; margin: 1px">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="id"
|
|
|
|
- label="店名">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="name"
|
|
|
|
- label="新增客流量">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="首次进店">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="首次来店">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="再次来店">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="接待合计">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="新增合计">
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount1"
|
|
|
|
- label="新增建档量">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount2"
|
|
|
|
- label="进店">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount3"
|
|
|
|
- label="来店">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount4"
|
|
|
|
- label="合计">
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount4"
|
|
|
|
- label="建档率">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount6"
|
|
|
|
- label="试乘驾驶">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="数量">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="试乘试驾率">
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="再次进店率">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="交强险">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="数量">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="渗透率">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="金额">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="商业险">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="数量">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="渗透率">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="金额">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="精品">
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="客单价">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="单数">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="amount7"
|
|
|
|
- label="渗透率">
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </el-tab-pane> -->
|
|
|
|
|
|
+ style="width: 100%; margin: 1px;">
|
|
|
|
+ <el-table-column prop="name" label="店名"></el-table-column>
|
|
|
|
+ <el-table-column label="新增客流量">
|
|
|
|
+ <el-table-column prop="visitor_count" label="首次进店" sortable width="120"></el-table-column>
|
|
|
|
+ <el-table-column prop="call_count" label="首次来店" sortable width="120"></el-table-column>
|
|
|
|
+ <el-table-column prop="again_count" label="再次来店" sortable width="120"></el-table-column>
|
|
|
|
+ <el-table-column prop="reception_count" label="接待合计" sortable width="120"></el-table-column>
|
|
|
|
+ <el-table-column prop="reception_new_count" label="新增合计" sortable width="120"></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="新增建档量">
|
|
|
|
+ <el-table-column prop="visitor_filled_count" label="进店" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="call_filled_count" label="来店" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="filled_count" label="合计" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="filled_ratio" label="建档率" sortable></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="试乘驾驶">
|
|
|
|
+ <el-table-column prop="experience_count" label="数量"></el-table-column>
|
|
|
|
+ <el-table-column prop="experience_ratio" label="试乘试驾率" sortable width="120"></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="again_ratio" label="再次进店率"> </el-table-column>
|
|
|
|
+ <el-table-column label="交强险">
|
|
|
|
+ <el-table-column prop="policy1_count" label="数量" sortable> </el-table-column>
|
|
|
|
+ <el-table-column prop="policy1_rate" label="渗透率" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="policy1_amount" label="金额" sortable></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="商业险">
|
|
|
|
+ <el-table-column prop="policy2_count" label="数量" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="policy2_rate" label="渗透率" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="policy2_amount" label="金额" sortable></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="精品">
|
|
|
|
+ <el-table-column prop="article_unit_price" label="客单价"></el-table-column>
|
|
|
|
+ <el-table-column prop="article_count" label="单数" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="article_rate" label="渗透率" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="article_amount" label="金额" sortable></el-table-column>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="loan_count" label="分期"></el-table-column>
|
|
|
|
+ <el-table-column prop="advance_count" label="订车数量" width="120" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="unpay_vehicle_count" label="未收银整车" width="120" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="vehicle_count" label="销售台次" width="120" sortable></el-table-column>
|
|
|
|
+ <el-table-column prop="loan_ratio" label="分期比例" width="120" sortable></el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
-
|
|
|
|
<!-- <el-tab-pane label=" 分渠道销量统计分析">配置管理</el-tab-pane> -->
|
|
<!-- <el-tab-pane label=" 分渠道销量统计分析">配置管理</el-tab-pane> -->
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -317,70 +277,41 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import axios from "axios";
|
|
|
|
-
|
|
|
|
-import { number } from "echarts";
|
|
|
|
|
|
+import { xsgwtabledataInfo, ppxltabledataInfo, xsdbtabledataInfo } from "../../servuces/prove";
|
|
|
|
+import { nowdaterange, nowdate, nowmonthy } from "../../servuces/getnowtime";
|
|
|
|
+import { column } from "../../store/tuozhuai";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- company_ids: [],
|
|
|
|
|
|
+ taheight: window.innerHeight - (window.innerHeight * 0.15),
|
|
|
|
+ pm_company_ids: [],
|
|
|
|
+ pp_company_ids: [],
|
|
|
|
+ db_company_ids: [],
|
|
currentTime: "",
|
|
currentTime: "",
|
|
value: "",
|
|
value: "",
|
|
-
|
|
|
|
//表格各类属性
|
|
//表格各类属性
|
|
tableDataOne: [],
|
|
tableDataOne: [],
|
|
tableDataTwo: [],
|
|
tableDataTwo: [],
|
|
|
|
+ tableDataThree: [],
|
|
//下拉框内属性
|
|
//下拉框内属性
|
|
options: [],
|
|
options: [],
|
|
- //日期表属性
|
|
|
|
- pickerOptions: {
|
|
|
|
- shortcuts: [
|
|
|
|
- {
|
|
|
|
- text: "最近一个月",
|
|
|
|
- onClick(picker) {
|
|
|
|
- const end = new Date();
|
|
|
|
- const start = new Date();
|
|
|
|
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
- picker.$emit("pick", [start, end]);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- value1: [""],
|
|
|
|
- value2: [""],
|
|
|
|
|
|
+ value1: '',
|
|
|
|
+ value2: '',
|
|
|
|
+ value3: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- computed: {
|
|
|
|
- Riqi: function getNowFormatDate() {
|
|
|
|
- let date = new Date(),
|
|
|
|
- year = date.getFullYear(), //获取完整的年份(4位)
|
|
|
|
- month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
|
|
|
|
- strDate = date.getDate(); // 获取当前日(1-31)
|
|
|
|
- if (month < 10) month = `0${month}`; // 如果月份是个位数,在前面补0
|
|
|
|
- if (strDate < 10) strDate = `0${strDate}`; // 如果日是个位数,在前面补0
|
|
|
|
-
|
|
|
|
- return `${year}-${month}`;
|
|
|
|
- },
|
|
|
|
- nianyue: function getNowFormatDate() {
|
|
|
|
- let date = new Date(),
|
|
|
|
- year = date.getFullYear(), //获取完整的年份(4位)
|
|
|
|
- month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
|
|
|
|
- strDate = date.getDate(); // 获取当前日(1-31)
|
|
|
|
- if (month < 10) month = `0${month}`; // 如果月份是个位数,在前面补0
|
|
|
|
- if (strDate < 10) strDate = `0${strDate}`; // 如果日是个位数,在前面补0
|
|
|
|
-
|
|
|
|
- return `${year}-${month}-${strDate}`;
|
|
|
|
- },
|
|
|
|
|
|
+ created () {
|
|
|
|
+ const data = sessionStorage.getItem('company_data');
|
|
|
|
+ if (data) {
|
|
|
|
+ this.options = JSON.parse(data)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ column(this);
|
|
this.updateTime(); //时间
|
|
this.updateTime(); //时间
|
|
- this.getTableDateOne(); //开始获取表格
|
|
|
|
- this.getTableDateTwo(); //开始获取表格
|
|
|
|
- this.getSelectDate(); //下拉框接口数据
|
|
|
|
- console.log(this.Riqi);
|
|
|
|
- console.log(this.nianyue);
|
|
|
|
- this.value1 = this.Riqi;
|
|
|
|
- this.value2 = this.nianyue;
|
|
|
|
|
|
+ this.getTableDataOne(); //开始获取表格
|
|
|
|
+ this.getTableDataTwo(); //开始获取表格
|
|
|
|
+ this.getTableDataThree(); //开始获取表格
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
// 在组件销毁前清除定时器,避免内存泄漏
|
|
// 在组件销毁前清除定时器,避免内存泄漏
|
|
@@ -388,56 +319,27 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//表格接口数据
|
|
//表格接口数据
|
|
- getTableDateOne() {
|
|
|
|
- axios
|
|
|
|
- .get("http://192.168.2.55:8022/plugins/lhyt/jcpm_detail/xsgwyjpm", {
|
|
|
|
- params: {
|
|
|
|
- company_ids: this.company_ids.join(),
|
|
|
|
- search_month: this.Riqi,
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- .then((res) => {
|
|
|
|
- console.log("--------11111", res.data.data);
|
|
|
|
- this.tableDataOne = res.data.data;
|
|
|
|
- });
|
|
|
|
|
|
+ getTableDataOne() {
|
|
|
|
+ this.value1 = nowmonthy;
|
|
|
|
+ xsgwtabledataInfo({ "company_ids": '', "search_month": nowmonthy }).then(res => {
|
|
|
|
+ this.tableDataOne = res.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- getTableDateTwo() {
|
|
|
|
- axios
|
|
|
|
- .get("http://192.168.2.55:8022/plugins/lhyt/jcpm_detail/gppxltj", {
|
|
|
|
- params: {
|
|
|
|
- company_ids: this.company_ids.join(),
|
|
|
|
- search_date: this.nianyue,
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- .then((res) => {
|
|
|
|
- console.log("--------2222", res.data);
|
|
|
|
- this.tableDataTwo = res.data.data;
|
|
|
|
- });
|
|
|
|
|
|
+ getTableDataTwo() {
|
|
|
|
+ this.value2 = nowdate;
|
|
|
|
+ ppxltabledataInfo({ "company_ids": '', "search_date": nowdate }).then(res => {
|
|
|
|
+ this.tableDataTwo = res.data;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getTableDataThree() {
|
|
|
|
+ this.value3 = nowdaterange;
|
|
|
|
+ xsdbtabledataInfo({ "company_ids": '', "date_begin": nowdaterange[0], "date_end": nowdaterange[1] }).then(res => {
|
|
|
|
+ this.tableDataThree = res.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- // getTableDateThree() {
|
|
|
|
- // axios
|
|
|
|
- // .get("http://192.168.2.55:8022/plugins/lhyt/jcpm_detail/fcxxltj", {
|
|
|
|
- // params: {
|
|
|
|
- // company_ids:this.company_ids,
|
|
|
|
- // date_begin: this.value1[0],
|
|
|
|
- // date_end: this.value1[1],
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // })
|
|
|
|
- // .then((res) => {
|
|
|
|
- // console.log("--------33333",res);
|
|
|
|
- // this.tableData = res.data.data;
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
//表格接口数据
|
|
//表格接口数据
|
|
-
|
|
|
|
- //下拉框数据
|
|
|
|
- getSelectDate() {
|
|
|
|
- axios
|
|
|
|
- .get("http://192.168.2.55:8022/plugins/lhyt/get_companies")
|
|
|
|
- .then((ret) => {
|
|
|
|
- this.options = ret.data.data;
|
|
|
|
- });
|
|
|
|
|
|
+ goOff(){
|
|
|
|
+ history.go(-1);
|
|
},
|
|
},
|
|
//更新时间
|
|
//更新时间
|
|
updateTime() {
|
|
updateTime() {
|
|
@@ -458,25 +360,56 @@ export default {
|
|
const seconds = String(now.getSeconds()).padStart(2, "0");
|
|
const seconds = String(now.getSeconds()).padStart(2, "0");
|
|
return `${year}.${month}.${day} ${hours}:${minutes}:${seconds}`;
|
|
return `${year}.${month}.${day} ${hours}:${minutes}:${seconds}`;
|
|
},
|
|
},
|
|
- resetDateFilter() {
|
|
|
|
- this.$refs.filterTable.clearFilter("date");
|
|
|
|
- },
|
|
|
|
- clearFilter() {
|
|
|
|
- this.$refs.filterTable.clearFilter();
|
|
|
|
- },
|
|
|
|
- formatter(row, column) {
|
|
|
|
- return row.address;
|
|
|
|
- },
|
|
|
|
- filterTag(value, row) {
|
|
|
|
- return row.tag === value;
|
|
|
|
|
|
+ searchBtn1(ids, search_month) {
|
|
|
|
+ const company_ids = ids.join(',');
|
|
|
|
+ const date = new Date(search_month);
|
|
|
|
+ // 获取年份和月份
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
+ const month = date.getMonth() + 1; // 月份从0开始,需要加1
|
|
|
|
+
|
|
|
|
+ // 将年份和月份拼接成所需形式的字符串
|
|
|
|
+ const serach_date = `${year}-${month}`;
|
|
|
|
+ xsgwtabledataInfo({ "company_ids": company_ids, "search_month": serach_date}).then(res => {
|
|
|
|
+ this.tableData = res.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- filterHandler(value, row, column) {
|
|
|
|
- const property = column["property"];
|
|
|
|
- return row[property] === value;
|
|
|
|
|
|
+ searchBtn2(ids, search_date) {
|
|
|
|
+ const company_ids = ids.join(',');
|
|
|
|
+ const date = new Date(search_date);
|
|
|
|
+ // 获取年份和月份
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
+ const month = date.getMonth() + 1; // 月份从0开始,需要加1
|
|
|
|
+ const s_date = date.getDate(); // 月份从0开始,需要加1
|
|
|
|
+
|
|
|
|
+ // 将年份和月份拼接成所需形式的字符串
|
|
|
|
+ const serach_date = `${year}-${month}-${s_date}`;
|
|
|
|
+ ppxltabledataInfo({ "company_ids": company_ids, "serach_date": serach_date}).then(res => {
|
|
|
|
+ this.tableData = res.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- searchBtn() {
|
|
|
|
- this.getTableDateOne();
|
|
|
|
- console.log(this.company_ids);
|
|
|
|
|
|
+ searchBtn3(ids, search_date) {
|
|
|
|
+ const company_ids = ids.join(',');
|
|
|
|
+ if (search_date) {
|
|
|
|
+ const strvaluezh = search_date.map(item => {
|
|
|
|
+ const date = new Date(item);
|
|
|
|
+ // 获取年份和月份
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
+ const month = date.getMonth() + 1; // 月份从0开始,需要加1
|
|
|
|
+ const day = date.getDate();
|
|
|
|
+ // 将年份和月份拼接成所需形式的字符串
|
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
|
+ });
|
|
|
|
+ xsdbtabledataInfo({ "company_ids": company_ids, "date_begin": strvaluezh[0], 'date_end': strvaluezh[1] }).then(res => {
|
|
|
|
+ this.tableData = res.data;
|
|
|
|
+ this.tableDatahj = res.footer
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ xsdbtabledataInfo({"company_ids": company_ids, "date_begin": '', 'date_end': ''}).then(res => {
|
|
|
|
+ this.tableData = res.data;
|
|
|
|
+ this.tableDatahj = res.footer;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|