Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 a403acd2
authored
Mar 15, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
渗透报表
1 parent
3a7180a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
39 deletions
src/api/permeation.js
src/views/index/components/carDialog.vue
src/views/index/permeation.vue
src/api/permeation.js
0 → 100644
View file @
a403acd
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-03-14 13:42:35
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-03-15 09:56:24
* @FilePath: \dj-car-life-system\src\api\permeation.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
request
from
"./request"
//获取所有主营品牌列表
export
function
brandList
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.common.car.brand.list"
return
request
(
data
)
}
// 查询4s店列表
export
function
listShop4sByRef
(
data
)
{
data
.
method
=
"dj.api.scenemerchantref.listShop4sByRef"
return
request
(
data
)
}
//渗透率报表(分页)
export
function
permeabilityList
(
data
)
{
data
.
method
=
"dj.api.smarcarlife.permeability.report.page"
return
request
(
data
)
}
//渗透率报表导出
export
function
permeabilityExport
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.permeability.report.exportAsync"
return
request
(
data
)
}
//渗透率报表填报明细列表(分页)
export
function
permeabilityDetail
(
data
)
{
data
.
method
=
"dj.api.smarcarlife.permeability.report.detail.page"
return
request
(
data
)
}
//渗透率报表详情导出
export
function
permeabilityDetailExport
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.permeability.report.detail.exportAsync"
return
request
(
data
)
}
src/views/index/components/carDialog.vue
View file @
a403acd
...
...
@@ -37,6 +37,7 @@
</div>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:table-data=
"tableData"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
...
...
@@ -50,32 +51,28 @@
<
script
>
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
permeabilityDetail
}
from
"@/api/permeation.js"
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
dfBalanceMonthStatListStatYear
}
from
"@api/balanceStatistics"
import
{
rangePickerOptions_year_2023
}
from
"@/common/format"
import
dayjs
from
"dayjs"
export
default
{
name
:
"DetailDialog"
,
components
:
{},
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
pickerOption
:
rangePickerOptions_year_2023
,
getListApi
:
permeabilityDetail
,
countObj
:
{},
searchForm
:
{
statYear
:
""
,
merchantId
:
""
},
searchForm
:
{},
searchFormSearch
:
{},
searchSelectObj
:
{},
showFormData
:
[
{
label
:
"员工姓名"
,
name
:
"
putStatus
"
,
name
:
"
staffName
"
,
type
:
"input"
},
{
label
:
"填报日期"
,
name
:
"
putStatus
"
,
name
:
"
createdDate
"
,
type
:
"datePicker"
}
],
...
...
@@ -89,15 +86,15 @@ export default {
tableColumns
:
[
{
label
:
"员工名称"
,
prop
:
"sta
tMonth
"
prop
:
"sta
ffName
"
},
{
label
:
"填报交付数"
,
prop
:
"
statMonth
"
prop
:
"
deliveryCount
"
},
{
label
:
"填报时间"
,
prop
:
"
statMonth
"
prop
:
"
createdDate
"
}
]
},
...
...
@@ -110,46 +107,62 @@ export default {
type
:
Boolean
,
default
:
false
},
recordInfo
:
{
type
:
Object
,
default
:
()
=>
{}
merchantId
:
{
type
:
String
,
default
:
""
}
},
computed
:
{},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
})
},
mounted
()
{
const
nowDate
=
new
Date
()
this
.
searchForm
.
statYear
=
nowDate
.
getFullYear
().
toString
()
if
(
this
.
recordInfo
)
{
// this.searchForm.merchantId = this.recordInfo.merchantId
}
// this.getList()
this
.
searchForm
.
merchantId
=
this
.
merchantId
},
methods
:
{
...
mapActions
({
get
:
"d2admin/base/get"
,
close
:
"d2admin/page/close"
}),
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
this
.
getParams
(
)
resolve
()
})
},
chooseYear
()
{
this
.
getList
()
getParams
()
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchFormSearch
.
createdDate
)
{
this
.
searchFormSearch
.
reportStartDate
=
dayjs
(
this
.
searchFormSearch
.
createdDate
[
0
]
).
format
(
"YYYY-MM-DD"
)
this
.
searchFormSearch
.
reportEndDate
=
dayjs
(
this
.
searchFormSearch
.
createdDate
[
1
]
).
format
(
"YYYY-MM-DD"
)
}
return
this
.
searchFormSearch
},
getList
()
{
var
params
=
deepClone
(
this
.
searchForm
)
dfBalanceMonthStatListStatYear
(
params
).
then
((
res
)
=>
{
this
.
tableData
=
res
})
handleExport
()
{
var
params
=
this
.
getParams
()
params
.
method
=
"dj.api.smartcarlife.permeability.report.detail.exportAsync"
const
list
=
[
...
this
.
dowloadList
,
{
name
:
"dowloadList"
,
exportParam
:
JSON
.
stringify
(
params
),
status
:
"waiting"
,
timeid
:
new
Date
().
getTime
()
}
]
this
.
actionSetDownloadList
({
list
,
type
:
"dowloadList"
})
},
handleReset
()
{
this
.
searchForm
=
{
merchantId
:
this
.
merchantId
}
this
.
$refs
.
recordTable
.
refreshTable
()
},
handleClose
()
{
this
.
$emit
(
"dialogClose"
)
}
...
...
src/views/index/permeation.vue
View file @
a403acd
This diff is collapsed.
Click to expand it.
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