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 9cab5c50
authored
Aug 06, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
版本代码提交
1 parent
18a791fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
39 deletions
src/common/constants.js
src/views/goods/coupons/couponsDetail.vue
src/views/goods/coupons/index.vue
src/views/orderManage/order.vue
src/common/constants.js
View file @
9cab5c5
...
...
@@ -894,3 +894,14 @@ export const subBusinessList = [
{
confId
:
"0"
,
confValue
:
"权益"
},
{
confId
:
"1"
,
confValue
:
"延保"
}
]
// 商品库-发卷宝-领用明细-预约状态
export
const
inviteStatusList
=
[
{
confId
:
1
,
confValue
:
"待预约"
},
{
confId
:
2
,
confValue
:
"已预约"
},
{
confId
:
3
,
confValue
:
"取消预约"
},
{
confId
:
4
,
confValue
:
"过期到店"
},
{
confId
:
5
,
confValue
:
"已施工"
},
{
confId
:
6
,
confValue
:
"已撤销"
},
{
confId
:
7
,
confValue
:
"已支付"
}
]
src/views/goods/coupons/couponsDetail.vue
View file @
9cab5c5
...
...
@@ -20,7 +20,7 @@
<
script
>
import
{
getDetailList
,
getDistinctColum
}
from
'@api/coupons'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
BaseData
,
inviteStatusList
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
export
default
{
name
:
'CouponsDetail'
,
...
...
@@ -30,7 +30,9 @@ export default {
usedFlagList
:
[],
employeeNameList
:
[],
sellerNameList
:
[],
couponTypeList
:
[]
couponTypeList
:
[],
inviteStatus
:
''
,
carSeriesName
:
''
},
searchFormSearch
:
{},
getListApi
:
getDetailList
,
...
...
@@ -58,10 +60,20 @@ export default {
label
:
'车主姓名'
,
prop
:
'customerName'
},
{
label
:
'客户车型'
,
prop
:
'carSeriesName'
},
{
label
:
'手机号'
,
prop
:
'customerPhone'
,
width
:
'120px'
},
{
label
:
'预约状态'
,
prop
:
'inviteStatus'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
inviteStatusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
inviteStatus
)?.
confValue
}
},
{
label
:
'礼券名称'
,
prop
:
'couponName'
,
addHtml
:
'couponName'
...
...
@@ -130,7 +142,8 @@ export default {
employeeNameList
:
[],
sellerNameList
:
[],
couponTypeList
:
[],
usedFlagList
:
[{
confValue
:
'待核销'
,
confId
:
'N'
},
{
confValue
:
'已核销'
,
confId
:
'Y'
}]
usedFlagList
:
[{
confValue
:
'待核销'
,
confId
:
'N'
},
{
confValue
:
'已核销'
,
confId
:
'Y'
}],
inviteStatusList
:
inviteStatusList
}
}
},
...
...
src/views/goods/coupons/index.vue
View file @
9cab5c5
<!-- 发券宝 -->
<
template
>
<d2-container
class=
"coupons"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"parentSearchForm"
:form-data=
"copyShowFormData"
/>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"parentSearchForm"
:form-data=
"copyShowFormData"
/>
<div
class=
"up-btns"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
style=
"position: positive"
>
<div
class=
"d2-container-content"
style=
"position: positive"
>
<span
style=
"position: absolute; right: 41px; top: 42px; z-index: 999"
>
<auth-button
:show-btn-ids=
"
activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605']
"
category=
"Button"
/>
<auth-button
:show-btn-ids=
"
activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605']
"
category=
"Button"
/>
</span>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleReset"
>
<el-tab-pane
label=
"店面列表"
name=
"storeList"
>
<store-list
v-if=
"activeName == 'storeList'"
ref=
"storeList"
:parent-search-form=
"parentSearchForm"
/>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleReset"
>
<el-tab-pane
label=
"店面列表"
name=
"storeList"
>
<store-list
v-if=
"activeName == 'storeList'"
ref=
"storeList"
:parent-search-form=
"parentSearchForm"
/>
</el-tab-pane>
<el-tab-pane
label=
"领用明细"
name=
"couponsDetail"
>
<coupons-detail
v-if=
"activeName == 'couponsDetail'"
ref=
"couponsDetail"
:parent-search-form=
"parentSearchForm"
/>
<el-tab-pane
label=
"领用明细"
name=
"couponsDetail"
>
<coupons-detail
v-if=
"activeName == 'couponsDetail'"
ref=
"couponsDetail"
:parent-search-form=
"parentSearchForm"
/>
</el-tab-pane>
</el-tabs>
</div>
<edit-coupons-dialog
:coupons-visible=
"couponsVisible"
@
couponClose=
"couponClose"
/>
<edit-coupons-dialog
:coupons-visible=
"couponsVisible"
@
couponClose=
"couponClose"
/>
</d2-container>
</
template
>
...
...
@@ -56,7 +55,7 @@ import editCouponsDialog from './editCouponsDialog'
// import { asyncExportExcel } from '@api/sys.base'
import
{
getDistinctColum
}
from
'@api/coupons'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
BaseData
,
inviteStatusList
}
from
'@/common/constants.js'
import
{
mapActions
,
mapState
}
from
'vuex'
export
default
{
name
:
'Coupons'
,
...
...
@@ -89,7 +88,8 @@ export default {
employeeNameList
:
[],
sellerNameList
:
[],
couponTypeList
:
[],
usedFlagList
:
[{
confValue
:
'待核销'
,
confId
:
'N'
},
{
confValue
:
'已核销'
,
confId
:
'Y'
}]
usedFlagList
:
[{
confValue
:
'待核销'
,
confId
:
'N'
},
{
confValue
:
'已核销'
,
confId
:
'Y'
}],
inviteStatusList
:
inviteStatusList
}
}
},
...
...
@@ -224,6 +224,22 @@ export default {
isClear
:
true
,
pickerOptions
:
'rangePickerOptions'
,
keyFn
:
this
.
handleSearch
},
{
label
:
'预约状态'
,
name
:
'inviteStatus'
,
type
:
'select'
,
// multiple: true,
isClear
:
true
,
optionList
:
this
.
baseData
.
inviteStatusList
,
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
keyFn
:
this
.
handleSearch
},
{
label
:
'客户车型'
,
name
:
'carSeriesName'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
handleSearch
})
this
.
copyShowFormData
=
copyShowFormData
break
...
...
@@ -259,7 +275,7 @@ export default {
var
params
=
{
...
this
.
parentSearchForm
,
startDate
:
this
.
parentSearchForm
.
useTime
&&
this
.
parentSearchForm
.
useTime
.
length
?
Util
.
dateFormate
(
this
.
parentSearchForm
.
useTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
endDate
:
this
.
parentSearchForm
.
useTime
&&
this
.
parentSearchForm
.
useTime
.
length
?
Util
.
dateFormate
(
this
.
parentSearchForm
.
useTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
:
''
,
endDate
:
this
.
parentSearchForm
.
useTime
&&
this
.
parentSearchForm
.
useTime
.
length
?
Util
.
dateFormate
(
this
.
parentSearchForm
.
useTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
:
''
,
currentPage
:
1
,
method
:
method
}
...
...
src/views/orderManage/order.vue
View file @
9cab5c5
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