Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 ceac9bda
authored
Apr 14, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
37f73344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
src/common/constant.js
src/views/activityLink/editActivity.vue
src/common/constant.js
View file @
ceac9bd
...
@@ -106,7 +106,9 @@ const orderManageStatusList = [
...
@@ -106,7 +106,9 @@ const orderManageStatusList = [
// { confId: '8', confName: '已核销' },
// { confId: '8', confName: '已核销' },
{
confId
:
'9'
,
confName
:
'售后中'
},
{
confId
:
'9'
,
confName
:
'售后中'
},
{
confId
:
'10'
,
confName
:
'售后完成'
},
{
confId
:
'10'
,
confName
:
'售后完成'
},
{
confId
:
'11'
,
confName
:
'待审批'
}
{
confId
:
'11'
,
confName
:
'待审批'
},
{
confId
:
'13'
,
confName
:
'待发货'
},
{
confId
:
'14'
,
confName
:
'已收货'
}
]
]
const
afterSaleStatusList
=
[
const
afterSaleStatusList
=
[
{
confId
:
'1'
,
confName
:
'待审核'
},
{
confId
:
'1'
,
confName
:
'待审核'
},
...
...
src/views/activityLink/editActivity.vue
View file @
ceac9bd
...
@@ -534,7 +534,7 @@ export default {
...
@@ -534,7 +534,7 @@ export default {
limitPurchaseFlag
:
1
,
limitPurchaseFlag
:
1
,
limitPurchaseNumber
:
''
,
limitPurchaseNumber
:
''
,
subscribe
:
1
,
subscribe
:
1
,
ghExclusiveFlag
:
2
,
ghExclusiveFlag
:
1
,
// 活动配置
// 活动配置
customerServiceFlag
:
3
,
customerServiceFlag
:
3
,
customerServiceName
:
''
,
customerServiceName
:
''
,
...
@@ -1245,23 +1245,19 @@ export default {
...
@@ -1245,23 +1245,19 @@ export default {
// },
// },
// deep: true
// deep: true
// },
// },
// 'editForm.ghExclusiveFlag'(val) {
'editForm.ghExclusiveFlag'
(
val
)
{
// const disableObj = ['configEditFormData']
const
formObj
=
[
'projuctEditFormData'
]
// const disableValue = ['活动大图']
const
hideValue
=
[
'couponList'
,
'goodsList'
,
'activityPrice'
,
'goodsStock'
]
//'couponListBlock'
// let disabledStatus = false
let
hideStatus
=
false
// if (val == 2) {
if
(
val
==
2
)
{
// disabledStatus = true
hideStatus
=
true
// } else {
}
else
{
// disabledStatus = false
hideStatus
=
false
// }
}
// disableObj.forEach(attr => {
formObj
.
forEach
(
attr
=>
{
// this.changeFormAttr(attr, 'isDisabled', disableValue, disabledStatus)
this
.
setNameHide
(
attr
,
hideValue
,
hideStatus
)
// })
})
// this.$nextTick(() => {
},
// document.querySelector('.w-e-text').setAttribute('contenteditable', !disabledStatus)
// })
// this.isDisabledGH = disabledStatus
// },
'editForm.merchantId'
()
{
'editForm.merchantId'
()
{
if
(
this
.
loading
)
{
if
(
this
.
loading
)
{
...
@@ -1433,9 +1429,11 @@ export default {
...
@@ -1433,9 +1429,11 @@ export default {
this
.
recoveryTotalPrice
()
this
.
recoveryTotalPrice
()
this
.
recoveryGiftList
()
this
.
recoveryGiftList
()
},
},
setNameHide
(
name
)
{
setNameHide
(
formName
,
name
,
status
)
{
var
idx
=
this
.
projuctEditFormData
.
findIndex
(
item
=>
item
.
name
==
name
)
name
.
forEach
(
i
=>
{
this
.
projuctEditFormData
[
idx
].
isHide
=
!
this
.
selectedGoodsList
.
length
var
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
name
==
i
)
this
[
formName
][
idx
].
isHide
=
status
})
},
},
handleGoodsConfirm
(
selectedData
)
{
handleGoodsConfirm
(
selectedData
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'goodsList'
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'goodsList'
)
...
@@ -2149,7 +2147,7 @@ export default {
...
@@ -2149,7 +2147,7 @@ export default {
return
list
return
list
},
},
handlePrev
()
{
handlePrev
()
{
this
.
step
--
this
.
editForm
.
ghExclusiveFlag
==
2
?
(
this
.
step
-=
2
)
:
this
.
step
--
},
},
//验证表单
//验证表单
validManyForm
(
formName
)
{
validManyForm
(
formName
)
{
...
@@ -2171,7 +2169,7 @@ export default {
...
@@ -2171,7 +2169,7 @@ export default {
if
(
this
.
step
==
1
)
{
if
(
this
.
step
==
1
)
{
if
(
this
.
editForm
.
playingType
==
1
||
this
.
editForm
.
playingType
==
4
)
return
this
.
$message
.
error
(
'请选择正确的营销玩法'
)
if
(
this
.
editForm
.
playingType
==
1
||
this
.
editForm
.
playingType
==
4
)
return
this
.
$message
.
error
(
'请选择正确的营销玩法'
)
Promise
.
all
([
this
.
validManyForm
(
'markingEditFormRef'
),
this
.
validManyForm
(
'palyEditFormRef'
)]).
then
(
res
=>
{
Promise
.
all
([
this
.
validManyForm
(
'markingEditFormRef'
),
this
.
validManyForm
(
'palyEditFormRef'
)]).
then
(
res
=>
{
this
.
step
++
this
.
editForm
.
ghExclusiveFlag
==
2
?
(
this
.
step
+=
2
)
:
this
.
step
++
})
})
}
}
},
},
...
...
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