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