@ -11,7 +11,7 @@
< div v-show ="isSearchShow" class="search" >
< div v-show ="isSearchShow" class="search" >
< el -form ref = "queryParams" :model ="queryParams" :inline ="true" class = "tab-header" >
< el -form ref = "queryParams" :model ="queryParams" :inline ="true" class = "tab-header" >
< el -form -item label = "日期" >
< el -form -item label = "日期" >
< el -date -picker v -model = " queryParams.date " type = "date" clearable value -format = " yyyy -MM -dd "
< el -date -picker v -model = " queryParams.params. date " type = "date" clearable value -format = " yyyy -MM -dd "
placeholder = "选择日期" / >
placeholder = "选择日期" / >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item label = "类别" >
< el -form -item label = "类别" >
@ -66,7 +66,9 @@
import Pagination from '@/components/pagination'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import pageye from '@/components/pagination/pageye'
import * as echarts from 'echarts' ;
import * as echarts from 'echarts' ;
import {
getDateRang
} from '@/utils/index'
export default {
export default {
components : {
components : {
ButtonBar ,
ButtonBar ,
@ -78,8 +80,8 @@
return {
return {
btndisabled : false ,
btndisabled : false ,
viewState : 1 , / / 1 、 列 表 2 、 添 加 3 、 修 改 4 、 查 看
viewState : 1 , / / 1 、 列 表 2 、 添 加 3 、 修 改 4 、 查 看
isSearchShow : fals e,
isSearchShow : tru e,
searchxianshitit : '显示 查询条件' ,
searchxianshitit : '隐藏 查询条件' ,
tableLoading : false ,
tableLoading : false ,
tableKey : 0 ,
tableKey : 0 ,
/ / 类 型 1 . 全 部 , 2 . 常 规 商 品 3 . 烟 草
/ / 类 型 1 . 全 部 , 2 . 常 规 商 品 3 . 烟 草
@ -117,11 +119,11 @@
total : 0 ,
total : 0 ,
params : {
params : {
customerSid : '' ,
customerSid : '' ,
date : this . getDate ( ) ,
date : getDateRang ( 'yesterday' ) ,
type : '' ,
type : '' ,
} / / 类 别 k e y
} / / 类 别 k e y
} ,
} ,
nowDate : new Date ( ) . getFullYear ( ) + "-" + ( new Date ( ) . getMonth ( ) + 1 ) + "-" + new Date ( ) . getDate ( ) ,
/ / n o w D a t e : n e w D a t e ( ) . g e t F u l l Y e a r ( ) + " - " + ( n e w D a t e ( ) . g e t M o n t h ( ) + 1 ) + " - " + n e w D a t e ( ) . g e t D a t e ( ) ,
thresholdAnalysisTable : [ {
thresholdAnalysisTable : [ {
num : '1' ,
num : '1' ,
date : '2023-01-01' ,
date : '2023-01-01' ,
@ -435,7 +437,7 @@
dosearch ( ) {
dosearch ( ) {
this . nowDate = this . queryParams . date ;
this . queryParams . date = getDateRang ( 'yesterday' ) ,
this . loadList ( ) ;
this . loadList ( ) ;
} ,
} ,