Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f4fdb865
authored
Oct 26, 2021
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
5c0ec0c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
36 deletions
src/views/reportManage/driverDetail.vue
src/views/reportManage/mileage.vue
src/views/reportManage/mileageDetail.vue
src/views/reportManage/oil.vue
src/views/reportManage/driverDetail.vue
View file @
f4fdb86
...
...
@@ -5,9 +5,9 @@
<!-- 搜索区域 开始 -->
<div
class=
"search_box"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
medium
"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
small
"
>
<el-form-item
label=
"关键字:"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"特约店编码|店名称|车架号|车型"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"a_input"
placeholder=
"特约店编码|店名称|车架号|车型"
></el-input>
</el-form-item>
<el-form-item
label=
"试驾是/否有效:"
>
<el-select
v-model=
"searchForm.validDriveType"
placeholder=
"请选择"
>
...
...
@@ -21,10 +21,10 @@
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"
default"
icon=
"el-icon-refresh
"
@
click=
"rest()"
>
重置
</el-button>
<el-button
type=
"
primary"
icon=
"el-icon-refresh"
size=
"mini
"
@
click=
"rest()"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -33,7 +33,7 @@
<!-- 按钮区域 开始 -->
<div
class=
"links_group"
>
<span>
试驾详情
</span>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
edium
"
:loading=
"dloading"
@
click=
"downloadExcel()"
>
导出Excel
</el-button>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
ini
"
:loading=
"dloading"
@
click=
"downloadExcel()"
>
导出Excel
</el-button>
</div>
<!-- 按钮区域 end -->
...
...
@@ -70,7 +70,7 @@ export default {
{
label
:
"开始时间"
,
prop
:
"journeyBeginTime"
},
{
label
:
"结束时间"
,
prop
:
"journeyEndTime"
},
{
label
:
"是否有效"
,
prop
:
"valid"
,
formatter
:
row
=>
{
return
row
.
valid
?
'是'
:
'否'
}
},
{
label
:
"无效原因"
,
prop
:
"reason"
},
{
label
:
"无效原因"
,
prop
:
"reason"
,
formatter
:
row
=>
{
return
row
.
reason
?
row
.
reason
:
'--'
}
},
],
pageTotal
:
0
,
pickerOptions
:
{
...
...
@@ -245,4 +245,9 @@ export default {
align-items
:
center
;
justify-content
:
space-between
;
}
.search_box
{
.a_input{
width
:
260px
;
}
}
</
style
>
>
\ No newline at end of file
src/views/reportManage/mileage.vue
View file @
f4fdb86
...
...
@@ -6,7 +6,7 @@
<!-- 搜索区域 开始 -->
<div
class=
"search_box"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
medium
"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
small
"
>
<el-form-item
label=
"车辆归属:"
>
<!--
<el-input
v-model=
"searchForm.dddd"
></el-input>
-->
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
...
...
@@ -28,10 +28,10 @@
</el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getList"
>
搜索
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"
default"
icon=
"el-icon-refresh
"
@
click=
"rest()"
>
重置
</el-button>
<el-button
type=
"
primary"
icon=
"el-icon-refresh"
size=
"mini
"
@
click=
"rest()"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -46,19 +46,19 @@
<div
class=
"cell"
>
<div
class=
"name"
>
选择日期:
</div>
<div
class=
"txt"
>
<el-date-picker
v-model=
"mileageDate"
size=
"small"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
>
<el-date-picker
v-model=
"mileageDate"
size=
"small"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
</el-date-picker>
</div>
</div>
<div
class=
"show_tips"
>
提示:导出日期范围超过60天
</div>
<div
class=
"show_tips"
v-if=
"isTimeOut"
>
提示:导出日期范围超过60天
</div>
<div
class=
"btn_group"
>
<el-button
type=
"primary"
size=
"
small
"
:loading=
"cloading"
@
click=
"singleDownloadExcel"
>
导出
</el-button>
<el-button
type=
"default"
size=
"
small
"
@
click=
"showPopover = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"
mini
"
:loading=
"cloading"
@
click=
"singleDownloadExcel"
>
导出
</el-button>
<el-button
type=
"default"
size=
"
mini
"
@
click=
"showPopover = false"
>
取消
</el-button>
</div>
</div>
<el-button
slot=
"reference"
type=
"default"
icon=
"el-icon-download"
size=
"m
edium
"
>
日里程导出
</el-button>
<el-button
slot=
"reference"
type=
"default"
icon=
"el-icon-download"
size=
"m
ini
"
>
日里程导出
</el-button>
</el-popover>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
edium
"
:loading=
"dloading"
@
click=
"downloadExcel"
>
导出Excel
</el-button>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
ini
"
:loading=
"dloading"
@
click=
"downloadExcel"
>
导出Excel
</el-button>
</div>
</div>
<!-- 按钮区域 end -->
...
...
@@ -97,6 +97,7 @@ import {
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
import
moment
,
{
max
}
from
"moment"
;
export
default
{
components
:
{
GlsxTable
,
...
...
@@ -122,7 +123,38 @@ export default {
showPopover
:
false
,
mileageDate
:
[],
cloading
:
false
,
loading
:
false
loading
:
false
,
isTimeOut
:
false
,
sTime
:
""
,
eTime
:
""
,
pickerOptions
:
{
disabledDate
:
(
time
)
=>
{
let
m
=
this
.
sTime
||
(
this
.
mileageDate
[
0
])
||
''
if
(
m
)
{
let
days
=
moment
(
time
).
diff
(
moment
(
m
),
"days"
);
if
(
days
>
60
)
{
return
true
;
}
if
(
-
days
>
60
){
return
true
}
}
},
onPick
:
({
maxDate
,
minDate
})
=>
{
this
.
sTime
=
minDate
||
""
;
this
.
eTime
=
maxDate
||
""
;
if
(
maxDate
&&
minDate
)
{
let
m
=
moment
(
maxDate
).
diff
(
moment
(
minDate
),
"days"
);
if
(
m
>
60
)
{
this
.
isTimeOut
=
true
;
}
else
{
this
.
isTimeOut
=
false
;
}
this
.
eTime
=
''
;
this
.
sTime
=
''
}
},
},
};
},
...
...
@@ -146,23 +178,25 @@ export default {
console
.
log
(
this
.
searchForm
);
oParams
.
pageSize
=
options
?
options
.
pageSize
||
10
:
10
;
oParams
.
pageNumber
=
options
?
options
.
pageNumber
||
1
:
1
;
this
.
loading
=
true
GETMILEAGESTATISTICS
(
oParams
).
then
((
res
)
=>
{
this
.
loading
=
false
let
{
data
}
=
res
;
let
{
list
,
totalElements
}
=
data
;
this
.
pageTotal
=
totalElements
||
0
;
this
.
tableData
=
list
||
[];
}).
catch
(
error
=>
{
this
.
loading
=
false
});
this
.
loading
=
true
;
GETMILEAGESTATISTICS
(
oParams
)
.
then
((
res
)
=>
{
this
.
loading
=
false
;
let
{
data
}
=
res
;
let
{
list
,
totalElements
}
=
data
;
this
.
pageTotal
=
totalElements
||
0
;
this
.
tableData
=
list
||
[];
})
.
catch
((
error
)
=>
{
this
.
loading
=
false
;
});
},
// 查看详情
lookDetail
(
row
)
{
console
.
log
(
row
);
let
query
=
{
vin
:
row
.
vin
}
let
path
=
'/trialRun#/reportManage/mileageDetail?vin='
+
row
.
vin
;
let
query
=
{
vin
:
row
.
vin
};
let
path
=
"/trialRun#/reportManage/mileageDetail?vin="
+
row
.
vin
;
history
.
pushState
(
query
,
path
,
path
);
//this.$router.push({ name: "mileageDetail", query: { vin: row.vin } });
},
...
...
@@ -218,7 +252,9 @@ export default {
url
:
`
${
store
.
state
.
baseURL
}${
MILEAGEEXPORTDAILYDETAILS
}
`
,
method
:
"GET"
,
data
:
oParams
,
fileName
:
"日里程统计报表"
,
fileName
:
`日里程统计报表(
${
moment
(
oParams
.
mileageStartTime
).
format
(
"yyyyMMDD"
)}
-
${
moment
(
oParams
.
mileageEndTime
).
format
(
"yyyyMMDD"
)}
)`
,
success
:
()
=>
{
_this
.
cloading
=
false
;
},
...
...
@@ -231,8 +267,8 @@ export default {
// 重置
rest
()
{
this
.
searchForm
=
{};
this
.
searchText
=
''
;
this
.
preText
=
'orderNo'
this
.
searchText
=
""
;
this
.
preText
=
"orderNo"
;
this
.
getList
();
this
.
$refs
.
glsxTable
.
rest
();
},
...
...
@@ -272,6 +308,7 @@ export default {
}
.btn_group
{
text-align
:
right
;
margin
:
10px
0
0
0
;
}
}
</
style
>
>
\ No newline at end of file
src/views/reportManage/mileageDetail.vue
View file @
f4fdb86
...
...
@@ -238,6 +238,7 @@ export default {
// 重置
rest
(){
this
.
searchForm
=
{};
this
.
dateTime
=
[]
this
.
getList
();
this
.
$refs
.
glsxTable
.
rest
();
},
...
...
src/views/reportManage/oil.vue
View file @
f4fdb86
...
...
@@ -6,9 +6,9 @@
<!-- 搜索区域 开始 -->
<div
class=
"search_box"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
medium
"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"
small
"
>
<el-form-item
label=
"关键字:"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"特约店编码|店名称|车架号|车型"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"a_input"
placeholder=
"特约店编码|店名称|车架号|车型"
></el-input>
</el-form-item>
<el-form-item
label=
"年份:"
>
<el-date-picker
v-model=
"searchForm.dataRange"
type=
"month"
placeholder=
"选择月"
value-format=
"yyyy-MM"
@
change=
"initColumn"
>
...
...
@@ -31,10 +31,10 @@
</el-select>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getList()"
>
搜索
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"
default"
icon=
"el-icon-refresh
"
@
click=
"rest()"
>
重置
</el-button>
<el-button
type=
"
primary"
icon=
"el-icon-refresh"
size=
"mini
"
@
click=
"rest()"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -43,7 +43,7 @@
<!-- 按钮区域 开始 -->
<div
class=
"links_group"
>
<span>
油耗统计
</span>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
edium
"
:loading=
"dloading"
@
click=
"downloadExcel()"
>
导出Excel
</el-button>
<el-button
class=
"pull-right"
type=
"primary"
icon=
"el-icon-download"
size=
"m
ini
"
:loading=
"dloading"
@
click=
"downloadExcel()"
>
导出Excel
</el-button>
</div>
<!-- 按钮区域 end -->
...
...
@@ -217,4 +217,9 @@ export default {
align-items
:
center
;
justify-content
:
space-between
;
}
.search_box
{
.a_input{
width
:
260px
;
}
}
</
style
>
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment