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 aed571a3
authored
Mar 29, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
礼券bug
1 parent
6ccc8ed0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
17 deletions
src/components/d2-form/relateStoreDialog.vue
src/views/goods/coupons.vue
src/views/goods/selectedShowTable.vue
src/components/d2-form/relateStoreDialog.vue
View file @
aed571a
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"merchantName"
prop=
"merchantName"
label=
"4
s
店名称"
label=
"4
S
店名称"
align=
"center"
align=
"center"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"merchantName"
prop=
"merchantName"
label=
"4
s
店名称"
label=
"4
S
店名称"
align=
"center"
align=
"center"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
...
...
src/views/goods/coupons.vue
View file @
aed571a
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<el-input
<el-input
style=
"width: 216px;"
style=
"width: 216px;"
v-model=
"couponsForm.couponName"
v-model=
"couponsForm.couponName"
placeholder=
"给
目标
起个名字"
placeholder=
"给
礼券
起个名字"
maxlength=
"10"
maxlength=
"10"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"
券码
说明:"
label=
"
礼券
说明:"
prop=
"remark"
prop=
"remark"
>
>
<el-input
<el-input
...
@@ -124,6 +124,11 @@
...
@@ -124,6 +124,11 @@
size=
"mini"
size=
"mini"
@
change=
"handleNumChange(scope.scope.index)"
@
change=
"handleNumChange(scope.scope.index)"
></el-input-number>
></el-input-number>
<span
class=
"car-error-txt"
style=
"display: inline-block; padding-top: 2px;"
v-show=
"!couponsNumList[scope.scope.index]"
>
请输入数量
</span>
</span>
</span>
</selected-show-table>
</selected-show-table>
</el-form-item>
</el-form-item>
...
@@ -155,10 +160,10 @@
...
@@ -155,10 +160,10 @@
clearable
clearable
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"4
s
店:"
>
<el-form-item
label=
"4
S
店:"
>
<el-input
<el-input
v-model=
"storeSearchForm.merchantName"
v-model=
"storeSearchForm.merchantName"
placeholder=
"
园区店
名称"
placeholder=
"
4S
名称"
@
keydown
.
native=
"handleStoreInput"
@
keydown
.
native=
"handleStoreInput"
clearable
clearable
></el-input>
></el-input>
...
@@ -215,9 +220,9 @@ export default {
...
@@ -215,9 +220,9 @@ export default {
couponsNumList
:
[],
couponsNumList
:
[],
remarkTemp
:
'产品介绍\n1.本券外加本人身份证、行驶证方可免费体验价值1280元(前档680元+车身600元)的健康环保赠送膜。\n2.车主须提前3-5天预约施工,以便贴膜中心做好各项施工准备,未预约恕不接待。\n3.如车主需要更高品质全车太阳膜,本券可抵扣1280元(前档680元+车身600元)。\n4.如您的爱车已贴膜,来贴膜中心进行升级贴膜,需收取额外的撕膜除胶费300元,敬请谅解。\n5.本券仅在嘀加智享车生活贴膜施工中心使用。\n6.本券最终解释权归嘀加智享车生活贴膜中心所有。'
,
remarkTemp
:
'产品介绍\n1.本券外加本人身份证、行驶证方可免费体验价值1280元(前档680元+车身600元)的健康环保赠送膜。\n2.车主须提前3-5天预约施工,以便贴膜中心做好各项施工准备,未预约恕不接待。\n3.如车主需要更高品质全车太阳膜,本券可抵扣1280元(前档680元+车身600元)。\n4.如您的爱车已贴膜,来贴膜中心进行升级贴膜,需收取额外的撕膜除胶费300元,敬请谅解。\n5.本券仅在嘀加智享车生活贴膜施工中心使用。\n6.本券最终解释权归嘀加智享车生活贴膜中心所有。'
,
formRules
:
{
formRules
:
{
couponName
:
[{
required
:
true
,
message
:
'请输入精品
券码
名称'
,
trigger
:
'change'
}],
couponName
:
[{
required
:
true
,
message
:
'请输入精品
礼券
名称'
,
trigger
:
'change'
}],
couponType
:
[{
required
:
true
,
message
:
'请选择类型'
,
trigger
:
'change'
}],
couponType
:
[{
required
:
true
,
message
:
'请选择类型'
,
trigger
:
'change'
}],
remark
:
[{
required
:
true
,
message
:
'请输入
券码
说明'
,
trigger
:
'change'
}],
remark
:
[{
required
:
true
,
message
:
'请输入
礼券
说明'
,
trigger
:
'change'
}],
merchantCouponDTOList
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}]
merchantCouponDTOList
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}]
},
},
// 关联门店
// 关联门店
...
@@ -237,7 +242,7 @@ export default {
...
@@ -237,7 +242,7 @@ export default {
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[{
tableColumns
:
[{
label
:
'
券码
名称'
,
label
:
'
礼券
名称'
,
parentProp
:
'couponInfo'
,
parentProp
:
'couponInfo'
,
prop
:
'couponName'
prop
:
'couponName'
},
{
},
{
...
@@ -317,6 +322,9 @@ export default {
...
@@ -317,6 +322,9 @@ export default {
// console.log(this.couponsForm.remark)
// console.log(this.couponsForm.remark)
this
.
$refs
.
couponAddForm
.
validate
(
valid
=>
{
this
.
$refs
.
couponAddForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
this
.
couponsForm
.
merchantCouponDTOList
.
every
(
item
=>
item
.
amount
))
{
return
true
}
var
params
=
_
.
cloneDeep
(
this
.
couponsForm
)
var
params
=
_
.
cloneDeep
(
this
.
couponsForm
)
params
.
couponTypeName
=
this
.
baseData
.
productTypeList
.
find
(
item
=>
item
.
goodsType
===
this
.
couponsForm
.
couponType
).
goodsTypeName
params
.
couponTypeName
=
this
.
baseData
.
productTypeList
.
find
(
item
=>
item
.
goodsType
===
this
.
couponsForm
.
couponType
).
goodsTypeName
params
.
createdBy
=
this
.
userInfo
.
detail
[
this
.
userInfo
.
userType
===
1
?
'name'
:
'merchantName'
]
params
.
createdBy
=
this
.
userInfo
.
detail
[
this
.
userInfo
.
userType
===
1
?
'name'
:
'merchantName'
]
...
@@ -389,17 +397,23 @@ export default {
...
@@ -389,17 +397,23 @@ export default {
},
},
// 停用
// 停用
handleDisabled
(
row
)
{
handleDisabled
(
row
)
{
updateCouponApi
({
this
.
$confirm
(
'是否'
+
(
row
.
enabledFlag
===
'Y'
?
'停用'
:
'启用'
)
+
'该礼券?'
,
'提示'
,
{
id
:
row
.
id
,
confirmButtonText
:
'确定'
,
enabledFlag
:
row
.
enabledFlag
===
'Y'
?
'N'
:
'Y'
cancelButtonText
:
'取消'
,
}).
then
(
res
=>
{
type
:
'warning'
this
.
notice
.
okTips
()
}).
then
(()
=>
{
this
.
$refs
.
couponsTable
.
refreshTable
()
updateCouponApi
({
id
:
row
.
id
,
enabledFlag
:
row
.
enabledFlag
===
'Y'
?
'N'
:
'Y'
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
couponsTable
.
refreshTable
()
})
})
})
},
},
// 删除
// 删除
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否确认删除该
券码
?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认删除该
礼券
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'error'
type
:
'error'
...
...
src/views/goods/selectedShowTable.vue
View file @
aed571a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"merchantName"
prop=
"merchantName"
label=
"4
s
店名称"
label=
"4
S
店名称"
align=
"center"
align=
"center"
>
>
</el-table-column>
</el-table-column>
...
...
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