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 f544a11d
authored
Jul 22, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
0914e56f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
6 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/couponManage/editCashCoupon.vue
View file @
f544a11
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<div
v-else
>
<div
v-else
>
<el-input
:disabled=
"apear != 'couponAdd' || isLimitStock"
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
></el-input>
<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-model=
"isLimitStock"
:disabled=
"disabledContent"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
<el-checkbox
style=
"margin-left:10px;"
v-
if=
"!isHmd"
v-
model=
"isLimitStock"
:disabled=
"disabledContent"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
</div>
</div>
</
template
>
</
template
>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
...
@@ -162,6 +162,7 @@ export default {
...
@@ -162,6 +162,7 @@ export default {
name
:
'editCashCoupon'
,
name
:
'editCashCoupon'
,
data
()
{
data
()
{
return
{
return
{
isHmd
:
true
,
isEffective
:
false
,
isEffective
:
false
,
isLimitStock
:
false
,
isLimitStock
:
false
,
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
...
@@ -352,6 +353,13 @@ export default {
...
@@ -352,6 +353,13 @@ export default {
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
// 判断是否是海马刀
this
.
isHmd
=
this
.
merchantId
==
this
.
$hmdMerchantId
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
},
},
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
f544a11
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<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>
<el-input
:disabled=
"apear != 'couponAdd' || isLimitStock"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
></el-input>
张
张
<el-checkbox
style=
"margin-left:10px;"
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
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" />
...
@@ -127,6 +127,7 @@ export default {
...
@@ -127,6 +127,7 @@ export default {
name
:
'editDiscountCoupon'
,
name
:
'editDiscountCoupon'
,
data
()
{
data
()
{
return
{
return
{
isHmd
:
true
,
isLimitStock
:
false
,
isLimitStock
:
false
,
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
...
@@ -273,6 +274,13 @@ export default {
...
@@ -273,6 +274,13 @@ export default {
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
// 判断是否是海马刀
this
.
isHmd
=
this
.
merchantId
==
this
.
$hmdMerchantId
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
},
},
...
@@ -352,10 +360,11 @@ export default {
...
@@ -352,10 +360,11 @@ 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
]
&&
this
[
editName
].
forEach
(
item
=>
{
item
.
isDisabled
=
true
item
.
isDisabled
=
true
})
})
},
},
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
f544a11
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<el-input
:disabled=
"apear != 'couponAdd'||isLimitStock"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<el-input
:disabled=
"apear != 'couponAdd'||isLimitStock"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<!--
<span
slot=
"suffix"
>
张
</span>
-->
<!--
<span
slot=
"suffix"
>
张
</span>
-->
</el-input>
</el-input>
<el-checkbox
style=
"margin-left:10px;"
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
slot=
"directionalFlagHtml"
>
<
template
slot=
"directionalFlagHtml"
>
<div>
<div>
...
@@ -115,6 +115,7 @@ export default {
...
@@ -115,6 +115,7 @@ export default {
name
:
'editDiscountCoupon'
,
name
:
'editDiscountCoupon'
,
data
()
{
data
()
{
return
{
return
{
isHmd
:
true
,
isLimitStock
:
false
,
isLimitStock
:
false
,
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
...
@@ -244,6 +245,13 @@ export default {
...
@@ -244,6 +245,13 @@ export default {
},
},
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
// 判断是否是海马刀
this
.
isHmd
=
this
.
merchantId
==
this
.
$hmdMerchantId
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
},
},
...
...
src/views/couponManage/editMemberService.vue
View file @
f544a11
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<div
v-else
>
<div
v-else
>
<el-input
:disabled=
"title == '查看' || isLimitStock"
class=
"w-150"
v-model=
"ruleForm.stock"
placeholder=
"请输入库存"
></el-input>
<el-input
:disabled=
"title == '查看' || isLimitStock"
class=
"w-150"
v-model=
"ruleForm.stock"
placeholder=
"请输入库存"
></el-input>
张
张
<el-checkbox
style=
"margin-left:10px;"
v-model=
"isLimitStock"
:disabled=
"title == '查看'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
<el-checkbox
style=
"margin-left:10px;"
v-
if=
"!isHmd"
v-
model=
"isLimitStock"
:disabled=
"title == '查看'"
@
change=
"updateStock"
>
不限制库存
</el-checkbox>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"使用说明:"
prop=
"useDescription"
>
<el-form-item
size=
"small"
label=
"使用说明:"
prop=
"useDescription"
>
...
@@ -219,6 +219,7 @@ export default {
...
@@ -219,6 +219,7 @@ export default {
},
1000
)
},
1000
)
}
}
return
{
return
{
isHmd
:
true
,
timer
:
Function
,
timer
:
Function
,
isLimitStock
:
false
,
isLimitStock
:
false
,
isEdit
:
false
,
isEdit
:
false
,
...
@@ -336,6 +337,8 @@ export default {
...
@@ -336,6 +337,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
if
(
this
.
title
==
'编辑'
||
this
.
title
==
'查看'
)
{
if
(
this
.
title
==
'编辑'
||
this
.
title
==
'查看'
)
{
this
.
isEdit
=
true
this
.
isEdit
=
true
var
breadcrumbTitle
=
this
.
title
var
breadcrumbTitle
=
this
.
title
...
...
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