年 月 综合销售报表页这俩字段改为区间
This commit is contained in:
@@ -87,6 +87,33 @@
|
|||||||
:column="scope.column"
|
:column="scope.column"
|
||||||
></InputDateRange>
|
></InputDateRange>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-for="prop in yearRange" :key="prop" #[`${prop}-search`]="scope">
|
||||||
|
<div style="display:flex;align-items:center;flex-direction:row"><el-date-picker
|
||||||
|
v-model="tableSearch['useYearStart']"
|
||||||
|
:type="scope.column.type"
|
||||||
|
value-format="YYYY"
|
||||||
|
format="YYYY"
|
||||||
|
placeholder="选择开始年份"
|
||||||
|
/>
|
||||||
|
<div class="px-5px">{{ t('Avue.control.to') }}</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="tableSearch['useYearEnd']"
|
||||||
|
:type="scope.column.type"
|
||||||
|
value-format="YYYY"
|
||||||
|
format="YYYY"
|
||||||
|
placeholder="选择结束年份"
|
||||||
|
/></div>
|
||||||
|
</template>
|
||||||
|
<template v-for="prop in monthRange" :key="prop" #[`${prop}-search`]="scope">
|
||||||
|
<div style="display:flex;align-items:center;flex-direction:row"> <el-select v-model="tableSearch['useMonthStart']">
|
||||||
|
<el-option v-for="(item,index) in scope.column.dicData" :key="index" :label="item.label" :value="item.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
<div class="px-5px">{{ t('Avue.control.to') }}</div>
|
||||||
|
<el-select v-model="tableSearch['useMonthEnd']">
|
||||||
|
<el-option v-for="(item,index) in scope.column.dicData" :key="index" :label="item.label" :value="item.value"></el-option>
|
||||||
|
</el-select></div>
|
||||||
|
|
||||||
|
</template>
|
||||||
<template v-for="prop in dateTimeRange" :key="prop" #[`${prop}-search`]="scope">
|
<template v-for="prop in dateTimeRange" :key="prop" #[`${prop}-search`]="scope">
|
||||||
<InputDateTimeRange
|
<InputDateTimeRange
|
||||||
v-model="tableSearch[prop]"
|
v-model="tableSearch[prop]"
|
||||||
@@ -178,6 +205,8 @@ const tableInfo = ref<any>({})
|
|||||||
const timerObj = ref<any>({})
|
const timerObj = ref<any>({})
|
||||||
const numberRange = ref<string[]>([])
|
const numberRange = ref<string[]>([])
|
||||||
const dateRange=ref<string[]>([])
|
const dateRange=ref<string[]>([])
|
||||||
|
const yearRange=ref<string[]>([])
|
||||||
|
const monthRange=ref<string[]>([])
|
||||||
const searchReportSlots=ref<string[]>([])
|
const searchReportSlots=ref<string[]>([])
|
||||||
const hideColumns=ref<string[]>([])
|
const hideColumns=ref<string[]>([])
|
||||||
const dateTimeRange=ref<string[]>([])
|
const dateTimeRange=ref<string[]>([])
|
||||||
@@ -408,13 +437,22 @@ const initTable = async () => {
|
|||||||
if(item.fieldName.includes('年')){
|
if(item.fieldName.includes('年')){
|
||||||
config.searchType='year'
|
config.searchType='year'
|
||||||
config.valueFormat = 'YYYY'
|
config.valueFormat = 'YYYY'
|
||||||
|
if(props.reportCode=='ZHXSQK'){
|
||||||
|
config.searchSpan=5
|
||||||
|
yearRange.value.push(item.fieldCode)
|
||||||
|
}
|
||||||
}else if(item.fieldName.includes('月')){
|
}else if(item.fieldName.includes('月')){
|
||||||
|
if(props.reportCode=='ZHXSQK'){
|
||||||
|
monthRange.value.push(item.fieldCode)
|
||||||
|
config.searchSpan=4
|
||||||
|
}
|
||||||
config.searchType='select'
|
config.searchType='select'
|
||||||
config.dicData=[{label:'1月',value:'1'},{label:'2月',value:'2'},{label:'3月',value:'3'},{label:'4月',value:'4'},{label:'5月',value:'5'},{label:'6月',value:'6'},{label:'7月',value:'7'},{label:'8月',value:'8'},{label:'9月',value:'9'},{label:'10月',value:'10'},{label:'11月',value:'11'},{label:'12月',value:'12'}]
|
config.dicData=[{label:'1月',value:'1'},{label:'2月',value:'2'},{label:'3月',value:'3'},{label:'4月',value:'4'},{label:'5月',value:'5'},{label:'6月',value:'6'},{label:'7月',value:'7'},{label:'8月',value:'8'},{label:'9月',value:'9'},{label:'10月',value:'10'},{label:'11月',value:'11'},{label:'12月',value:'12'}]
|
||||||
}
|
}
|
||||||
if(props.reportCode=='ZHXSQK'&&item.isDimension=='Y'){
|
if(props.reportCode=='ZHXSQK'&&item.isDimension=='Y'){
|
||||||
tableSearch.value['Group by'].push(item.fieldCode)
|
tableSearch.value['Group by'].push(item.fieldCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(item.fieldName=='效期剩余时间(天)分类') config.searchSpan=5
|
if(item.fieldName=='效期剩余时间(天)分类') config.searchSpan=5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user