Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 c1753a4f
authored
Jul 22, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f544a11d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
View file @
c1753a4
...
@@ -98,9 +98,11 @@
...
@@ -98,9 +98,11 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<
template
slot=
"stock"
slot-scope=
"scope"
>
<
template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
:disabled=
"apear != 'couponAdd' || isLimitStock"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
></el-input>
<template
v-else
>
张
<el-input
:disabled=
"apear != 'couponAdd' || isLimitStock"
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
></el-input>
<el-checkbox
style=
"margin-left:10px;"
v-if=
"!isHmd"
v-model=
"isLimitStock"
:disabled=
"apear != 'couponAdd'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
张
<el-checkbox
style=
"margin-left:10px;"
v-if=
"!isHmd"
v-model=
"isLimitStock"
:disabled=
"apear != 'couponAdd'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
</
template
>
</template>
</template>
<
template
slot=
"useDescriptionHtml"
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
c1753a4
...
@@ -57,10 +57,12 @@
...
@@ -57,10 +57,12 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template
slot=
"stock"
slot-scope=
"scope"
>
<template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
:disabled=
"apear != 'couponAdd'||isLimitStock"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<template
v-else
>
<!--
<span
slot=
"suffix"
>
张
</span>
-->
<el-input
:disabled=
"apear != 'couponAdd' || isLimitStock"
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
</el-input>
<!--
<span
slot=
"suffix"
>
张
</span>
-->
<el-checkbox
style=
"margin-left:10px;"
v-if=
"!isHmd"
v-model=
"isLimitStock"
:disabled=
"apear != 'couponAdd'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
</el-input>
<el-checkbox
style=
"margin-left:10px;"
v-if=
"!isHmd"
v-model=
"isLimitStock"
:disabled=
"apear != 'couponAdd'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
</
template
>
</template>
</template>
<
template
slot=
"directionalFlagHtml"
>
<
template
slot=
"directionalFlagHtml"
>
<div>
<div>
...
@@ -250,8 +252,8 @@ export default {
...
@@ -250,8 +252,8 @@ export default {
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
}
// 判断是否是海马刀
// 判断是否是海马刀
this
.
isHmd
=
this
.
merchantId
==
this
.
$hmdMerchantId
this
.
isHmd
=
this
.
merchantId
==
this
.
$hmdMerchantId
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
},
},
...
@@ -319,12 +321,13 @@ export default {
...
@@ -319,12 +321,13 @@ export default {
methods
:
{
methods
:
{
updateStock
(
e
)
{
updateStock
(
e
)
{
this
.
editRule
.
stock
[
0
].
required
=
!
e
this
.
editRule
.
stock
[
0
].
required
=
!
e
this
.
editForm
.
stock
=
''
this
.
editForm
.
stock
=
''
},
},
setAllDisabled
(
editName
)
{
setAllDisabled
(
editName
)
{
this
[
editName
]
&&
this
[
editName
].
forEach
(
item
=>
{
this
[
editName
]
&&
item
.
isDisabled
=
true
this
[
editName
].
forEach
(
item
=>
{
})
item
.
isDisabled
=
true
})
},
},
editCoupon
(
attribute
)
{
editCoupon
(
attribute
)
{
attribute
.
forEach
(
item
=>
{
attribute
.
forEach
(
item
=>
{
...
...
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