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 cddbd1d5
authored
Mar 15, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮测试bug修复
1 parent
db341a14
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
139 additions
and
139 deletions
src/views/orderManage/carDamage.vue
src/views/orderManage/crowdfunding.vue
src/views/orderManage/orderList.vue
src/views/rightsAndInterestsManage/ruleConfigurationList.vue
src/views/vehicleDamage/vehicleDamageList.vue
src/views/orderManage/carDamage.vue
View file @
cddbd1d
...
...
@@ -125,15 +125,6 @@
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"施工状态"
align
=
"center"
prop
=
"upgradeFlag"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
constructionFlag
?
constructioOpts
[
scope
.
row
.
constructionFlag
]
:
"未施工"
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"订单状态"
align
=
"center"
prop
=
"status"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
statusOpts
[
scope
.
row
.
status
]
}}
<
/span
>
...
...
@@ -354,10 +345,10 @@ export default {
Y
:
"已升级"
,
N
:
"不升级"
}
,
constructioOpts
:
{
Y
:
"已施工"
,
N
:
"未施工"
}
,
//
constructioOpts:
{
//
Y: "已施工",
//
N: "未施工"
//
}
,
showFormData
:
[
{
label
:
"订单状态"
,
...
...
@@ -377,14 +368,14 @@ export default {
optionLabel
:
"confLabel"
,
optionsName
:
"upgradeList"
}
,
{
label
:
"施工状态"
,
name
:
"constructionFlag"
,
type
:
"select"
,
optionId
:
"confId"
,
optionLabel
:
"confLabel"
,
optionsName
:
"constructionList"
}
,
//
{
//
label: "施工状态",
//
name: "constructionFlag",
//
type: "select",
//
optionId: "confId",
//
optionLabel: "confLabel",
//
optionsName: "constructionList"
//
}
,
{
label
:
"商品名称"
,
...
...
@@ -775,6 +766,7 @@ export default {
subShopMerchantId
:
""
}
this
.
baseData
.
storeIdList
=
[]
this
.
handleSearch
()
this
.
getOptionsList
()
}
,
getServiceStore
(
merchantId
)
{
...
...
src/views/orderManage/crowdfunding.vue
View file @
cddbd1d
...
...
@@ -61,7 +61,7 @@
<d2-table
ref=
"crowdfundTable"
:has-num=
"true"
:search-form=
"
s
earchForm"
:search-form=
"
tableS
earchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
...
...
@@ -193,7 +193,7 @@
:show-btn-ids=
"['9040106']"
:data=
"scope.scope"
/>
<span
style=
"margin-right: 40px"
>
<span>
<el-button
type=
"text"
size=
"mini"
...
...
@@ -465,6 +465,7 @@ export default {
})
})
}
console
.
log
(
merchantNameList
,
'9999999999'
)
const
merchantNamesIndex
=
this
.
searchFormData
.
findIndex
(
(
e
)
=>
e
.
name
==
"merchantNames"
)
...
...
@@ -1124,6 +1125,7 @@ export default {
this
.
tableParams
.
tableColumns
=
tableColumns
this
.
searchFormData
=
searchFormData
this
.
getOptionsList
(
"searchFormData"
)
this
.
getCrowdfundingParams
()
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
...
...
@@ -1201,7 +1203,8 @@ export default {
width
:
100%
;
margin-top
:
16px
;
padding
:
20px
40px
;
position
:
positive
;
position
:
relative
;
box-sizing
:
border-box
;
}
.tabs
{
::v-deep
.el-tabs__header
{
...
...
@@ -1212,7 +1215,7 @@ export default {
.btn-group
{
position
:
absolute
;
right
:
41px
;
top
:
37
px
;
top
:
16
px
;
z-index
:
999
;
}
.assignLabel
{
...
...
src/views/orderManage/orderList.vue
View file @
cddbd1d
...
...
@@ -36,7 +36,7 @@ export default {
name
:
"1"
},
{
label
:
"众筹订单"
,
label
:
"
1.3
众筹订单"
,
name
:
"2"
},
{
...
...
src/views/rightsAndInterestsManage/ruleConfigurationList.vue
View file @
cddbd1d
...
...
@@ -24,52 +24,20 @@
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
<!--
<auth-button
:show-btn-ids=
"['9040101']"
category=
"Button"
/>
-->
</d2-table-header>
<el-table
:data=
"tableData"
v-loading=
"$store.state.d2admin.loading.value"
brule
<d2-table
ref=
"ruleTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<el-table-column
label=
"商户名称"
align=
"center"
prop=
"merchantName"
/>
<el-table-column
label=
"计算规则"
align=
"center"
width=
"300"
prop=
"calculatePlan"
/>
<el-table-column
label=
"分配方案"
align=
"center"
width=
"320"
prop=
"distributePlan"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"更新时间"
align=
"center"
prop=
"updateTime"
>
</el-table-column>
<el-table-column
label=
"操作人"
align=
"center"
prop=
"operator"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<auth-button
slot=
"auth-button"
:data=
"scope.row"
/>
</
template
>
</el-table-column>
</el-table>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.pageNum"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"page.pageSize"
:total=
"total"
layout=
"sizes,total,->,prev,pager,next,jumper"
/>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</div>
<!-- 新增门店 -->
<d2-dialog
v-if=
"isRuleVisible"
title=
"新增门店
"
:title=
"dialogTitle
"
width=
"800px"
:is-visible=
"isRuleVisible"
:is-show-footer=
"isConfirm"
...
...
@@ -88,6 +56,7 @@
placeholder=
"请选择"
@
change=
"changeMerchant"
filterable
:disabled=
"isEdit"
>
<el-option
v-for=
"item in parkServiceList"
...
...
@@ -111,14 +80,14 @@
<el-form
:model=
"storeForm"
ref=
"storeRef"
:rules=
"storeRules"
>
<div
class=
"computation-bg"
>
<div>
车价≦15万
</div>
<el-form-item
prop=
"calculateRiskLow"
>
<el-form-item
prop=
"calculateRiskLow"
label=
"商业险系数"
>
<el-input
v-model=
"storeForm.calculateRiskLow"
placeholder=
"请输入商业险系数"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
prop=
"calculateDiscountLow"
>
<el-form-item
prop=
"calculateDiscountLow"
label=
"最低折扣"
>
<el-input
v-model=
"storeForm.calculateDiscountLow"
placeholder=
"请输入最低折扣"
...
...
@@ -130,14 +99,14 @@
<el-form
:model=
"storeForm"
ref=
"storeRef"
:rules=
"storeRules"
>
<div
class=
"computation-bg"
>
<div>
15万
<
车价≦30万
</div>
<el-form-item
prop=
"calculateRiskMedium"
>
<el-form-item
prop=
"calculateRiskMedium"
label=
"商业险系数"
>
<el-input
v-model=
"storeForm.calculateRiskMedium"
placeholder=
"请输入商业险系数"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
prop=
"calculateDiscountMedium"
>
<el-form-item
prop=
"calculateDiscountMedium"
label=
"最低折扣"
>
<el-input
v-model=
"storeForm.calculateDiscountMedium"
placeholder=
"请输入最低折扣"
...
...
@@ -149,14 +118,14 @@
<el-form
:model=
"storeForm"
ref=
"storeRef"
:rules=
"storeRules"
>
<div
class=
"computation-bg"
>
<div>
30万以上
</div>
<el-form-item
prop=
"calculateRiskHigh"
>
<el-form-item
prop=
"calculateRiskHigh"
label=
"商业险系数"
>
<el-input
v-model=
"storeForm.calculateRiskHigh"
placeholder=
"请输入商业险系数"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
prop=
"calculateDiscountHigh"
>
<el-form-item
prop=
"calculateDiscountHigh"
label=
"最低折扣"
>
<el-input
v-model=
"storeForm.calculateDiscountHigh"
placeholder=
"请输入最低折扣"
...
...
@@ -188,6 +157,7 @@
<el-select
v-model=
"storeForm.distributeCarDamage"
placeholder=
"请选择"
filterable
>
<template
v-for=
"item in 100"
>
<el-option
...
...
@@ -206,6 +176,7 @@
<el-select
v-model=
"storeForm.distributeThirdParty"
placeholder=
"请选择"
filterable
>
<
template
v-for=
"item in 100"
>
<el-option
...
...
@@ -223,6 +194,7 @@
<el-select
v-model=
"storeForm.distributeDriver"
placeholder=
"请选择"
filterable
>
<
template
v-for=
"item in 100"
>
<el-option
...
...
@@ -316,10 +288,8 @@ import {
insertorUpdate
,
quotationDetail
,
vdruleExport
,
quotationPrint
,
getshopMerchantList
}
from
"@api/vdrule"
import
{
getParkStore
}
from
"@api/editCustomer"
export
default
{
name
:
"rule"
,
data
()
{
...
...
@@ -329,6 +299,7 @@ export default {
isComputation
:
true
,
isAllocation
:
true
,
isConfirm
:
true
,
dialogTitle
:
""
,
showFormData
:
[
{
label
:
"商户名称"
,
...
...
@@ -348,6 +319,40 @@ export default {
merchantName
:
""
,
createTime
:
[]
},
isEdit
:
false
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
"商户名称"
,
prop
:
"merchantName"
},
{
label
:
"计算规则"
,
prop
:
"calculatePlan"
},
{
label
:
"分配方案"
,
prop
:
"distributePlan"
},
{
label
:
"创建时间"
,
prop
:
"createTime"
},
{
label
:
"更新时间"
,
prop
:
"updateTime"
},
{
label
:
"操作人"
,
prop
:
"operator"
}
]
},
getListApi
:
getList
,
searchFormSearch
:
{},
storeForm
:
{
merchantId
:
""
,
calculateRiskLow
:
""
,
...
...
@@ -401,9 +406,29 @@ export default {
},
mounted
()
{
this
.
getParkStore
()
this
.
getList
()
},
methods
:
{
getParams
()
{
const
params
=
Util
.
deepClone
(
this
.
searchForm
)
const
form
=
this
.
searchForm
if
(
form
.
createTime
&&
form
.
createTime
.
length
)
{
params
.
minCreateTime
=
Util
.
dateFormate
(
form
.
createTime
[
0
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
maxCreateTime
=
Util
.
dateFormate
(
form
.
createTime
[
1
],
"YYYY-MM-DD"
)
+
" 23:59:59"
}
delete
params
.
createDate
return
params
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
this
.
getParams
()
delete
this
.
searchFormSearch
.
createDate
resolve
()
})
},
changeDistribution
(
data
)
{
distributionTemp
.
forEach
((
item
)
=>
{
if
(
!
data
.
includes
(
item
))
{
...
...
@@ -413,9 +438,6 @@ export default {
},
getParkStore
()
{
getshopMerchantList
({}).
then
((
res
)
=>
{
res
.
forEach
((
item
)
=>
{
item
.
merchantId
=
item
.
merchantNo
})
this
.
parkServiceList
=
res
})
},
...
...
@@ -429,6 +451,8 @@ export default {
handleAddRule
()
{
this
.
getParkStore
()
this
.
isConfirm
=
true
this
.
isEdit
=
false
this
.
dialogTitle
=
"新增门店"
this
.
isRuleVisible
=
!
this
.
isRuleVisible
},
handleRuleConfirm
()
{
...
...
@@ -487,44 +511,12 @@ export default {
this
.
isComputation
=
true
this
.
isAllocation
=
true
},
getParams
()
{
const
params
=
Util
.
deepClone
(
this
.
searchForm
)
const
form
=
this
.
searchForm
if
(
form
.
createTime
&&
form
.
createTime
.
length
)
{
params
.
minCreateTime
=
Util
.
dateFormate
(
form
.
createTime
[
0
],
"YYYY-MM-DD HH:mm:ss"
)
params
.
maxCreateTime
=
Util
.
dateFormate
(
form
.
createTime
[
1
],
"YYYY-MM-DD"
)
+
" 23:59:59"
}
delete
params
.
createDate
return
params
},
keyDowmGetList
()
{
this
.
getList
()
},
getList
()
{
var
params
=
this
.
getParams
()
params
=
{
...
this
.
page
,
...
params
}
getList
(
params
).
then
((
res
)
=>
{
this
.
tableData
=
res
.
list
.
map
((
item
)
=>
{
item
.
paySuccessDate
=
item
.
paySuccessDate
?
Util
.
dateFormate
(
item
.
paySuccessDate
,
"YYYY-MM-DD HH:mm:ss"
)
:
""
return
item
})
this
.
page
.
pageNum
=
res
.
pageNum
this
.
page
.
pageSize
=
res
.
pageSize
this
.
total
=
res
.
total
})
this
.
handleSearch
()
},
handleSearch
()
{
this
.
page
.
pageNum
=
1
this
.
getList
()
this
.
$refs
.
ruleTable
.
refreshTable
()
},
// 导出
handleExport
()
{
...
...
@@ -536,20 +528,23 @@ export default {
// 查看详情
handleDetail
(
data
)
{
this
.
ruleId
=
data
.
id
this
.
isEdit
=
false
this
.
getDetail
()
this
.
dialogTitle
=
"查看门店"
this
.
isConfirm
=
false
},
handleEdit
(
data
)
{
this
.
ruleId
=
data
.
id
this
.
isConfirm
=
true
this
.
isEdit
=
true
this
.
dialogTitle
=
"编辑门店"
this
.
getDetail
()
},
getDetail
()
{
quotationDetail
({
id
:
this
.
ruleId
}).
then
((
res
)
=>
{
if
(
res
)
{
this
.
storeForm
=
{
...
res
,
merchantId
:
res
.
merchantId
.
toString
()
...
res
}
this
.
distributionList
=
[]
...
...
@@ -562,17 +557,6 @@ export default {
this
.
isRuleVisible
=
!
this
.
isRuleVisible
}
})
},
// 每页条数
handleSizeChange
(
value
)
{
this
.
page
.
pageSize
=
value
this
.
getList
()
},
// 页码
handleCurrentChange
(
value
)
{
this
.
page
.
pageNum
=
value
this
.
getList
()
}
}
}
...
...
src/views/vehicleDamage/vehicleDamageList.vue
View file @
cddbd1d
...
...
@@ -20,7 +20,7 @@
<d2-table-header>
<el-button
class=
"default-blue-btn"
plain
plain
@
click=
"handleExport"
size=
"small"
>
导出
</el-button
...
...
@@ -39,7 +39,8 @@
v-if=
"
scope.scope.orderStatus == 1 ||
scope.scope.orderStatus == 2 ||
scope.scope.orderStatus == 3
scope.scope.orderStatus == 3 ||
scope.scope.orderStatus == -1
"
>
<auth-button
:data=
"scope.scope"
/>
...
...
@@ -59,7 +60,7 @@
<
script
>
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
getList
,
quotationPrint
,
quotationExport
}
from
"@api/vehicleDamage"
import
{
getList
,
quotationPrint
,
quotationExport
}
from
"@api/vehicleDamage"
export
default
{
name
:
"StockList"
,
data
()
{
...
...
@@ -72,6 +73,12 @@ export default {
},
searchFormSearch
:
{},
showFormData
:
[
{
label
:
"客户姓名"
,
name
:
"customerName"
,
type
:
"input"
,
isClear
:
true
},
{
label
:
"服务状态"
,
name
:
"orderStatus"
,
...
...
@@ -96,6 +103,12 @@ export default {
isClear
:
true
},
{
label
:
"车架号"
,
name
:
"carVin"
,
type
:
"input"
,
isClear
:
true
},
{
label
:
"创建时间"
,
name
:
"createTime"
,
type
:
"datePicker"
,
...
...
@@ -137,7 +150,7 @@ export default {
.
map
((
item
)
=>
item
.
severType
)
.
includes
(
cellValue
.
orderStatus
)
?
this
.
baseData
.
severTypeList
.
find
(
(
item
)
=>
item
.
severType
==
cellValue
.
orderStatus
(
item
)
=>
item
.
severType
==
=
cellValue
.
orderStatus
).
severName
:
"-"
}
...
...
@@ -157,6 +170,11 @@ export default {
width
:
"200px"
},
{
label
:
"预计权益金额/元"
,
prop
:
"estEquityPrice"
,
width
:
"250px"
},
{
label
:
"实际权益金额/元"
,
prop
:
"equityPrice"
,
width
:
"250px"
...
...
@@ -174,7 +192,7 @@ export default {
{
severName
:
"待支付"
,
severType
:
2
},
{
severName
:
"已支付"
,
severType
:
3
},
{
severName
:
"战败"
,
severType
:
-
1
}
]
,
]
},
stockMonthVisible
:
false
,
...
...
@@ -205,13 +223,16 @@ export default {
quotationPrint
({
id
:
row
.
id
}).
then
((
res
)
=>
{
console
.
log
(
res
)
let
oWin
=
window
.
open
(
res
)
oWin
.
document
.
fn
=
function
()
{
oWin
.
document
.
fn
=
function
()
{
if
(
oWin
)
{
oWin
.
print
()
oWin
.
close
()
}
}
let
html
=
'<div style="height: 100%;width: 100%;">'
+
`<img src="
${
res
}
" onload="fn()" style="max-height:100%;max-width: 100%;" />`
+
'</div>'
let
html
=
'<div style="height: 100%;width: 100%;">'
+
`<img src="
${
res
}
" onload="fn()" style="max-height:100%;max-width: 100%;" />`
+
"</div>"
oWin
.
document
.
open
()
oWin
.
document
.
write
(
html
)
oWin
.
document
.
close
()
...
...
@@ -219,23 +240,23 @@ export default {
},
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
create
Dat
e
?.
length
)
{
if
(
this
.
searchForm
.
create
Tim
e
?.
length
)
{
params
.
minCreateTime
=
new
Date
(
this
.
searchForm
.
create
Dat
e
[
0
])
new
Date
(
this
.
searchForm
.
create
Tim
e
[
0
])
.
toLocaleDateString
()
.
replace
(
/
\/
/g
,
"-"
)
+
" 00:00:00"
params
.
maxCreateTime
=
new
Date
(
this
.
searchForm
.
create
Dat
e
[
1
])
new
Date
(
this
.
searchForm
.
create
Tim
e
[
1
])
.
toLocaleDateString
()
.
replace
(
/
\/
/g
,
"-"
)
+
" 23:59:59"
}
delete
params
.
create
Dat
e
delete
params
.
create
Tim
e
return
params
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
this
.
getParams
()
delete
this
.
searchFormSearch
.
create
Dat
e
delete
this
.
searchFormSearch
.
create
Tim
e
resolve
()
})
},
...
...
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