Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 788c6d6c
authored
Sep 01, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.27.0' into 'master'
V4.27.0 See merge request
!39
2 parents
41585f26
b15b78f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
src/views/beforeSale/editEquity.vue
src/views/serviceConfig/addService.vue
src/views/beforeSale/editEquity.vue
View file @
788c6d6
...
...
@@ -713,7 +713,7 @@ export default {
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
this
.
disabled
&&
this
.
setDisabled
()
this
.
successDisable
&&
this
.
setDisabled
([
'
invoicePrice'
,
'billingDate'
,
'
packageCode'
,
'actualSalesPrice'
,
'servicePeriod'
,
'effectiveDate'
,
'merchantName'
,
'merchantPhone'
,
'merchantAddress'
])
this
.
successDisable
&&
this
.
setDisabled
([
'packageCode'
,
'actualSalesPrice'
,
'servicePeriod'
,
'effectiveDate'
,
'merchantName'
,
'merchantPhone'
,
'merchantAddress'
])
this
.
getHotline
()
},
...
...
@@ -1194,6 +1194,9 @@ export default {
e
.
optionList
=
this
.
baseData
.
servicePeriodList2
}
e
.
disabled
=
true
if
(
this
.
routeInfo
.
addOrEdit
==
3
){
e
.
disabled
=
false
}
// v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年
let
isOld
=
item
.
packageName
.
includes
(
'尊享版'
)
||
item
.
packageName
.
includes
(
'舒享版'
)
||
item
.
packageName
.
includes
(
'优享版'
)
if
(
item
.
idName
==
`vip
${
item
.
packageCode
}
`
&&
!
isOld
)
{
...
...
@@ -1348,7 +1351,7 @@ export default {
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
[...
defalutAttr
,
...
item
.
attributeDTOList
]
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
}
if
(
targetItem
.
packageType
==
1
)
{
this
.
equityRadio
=
2
...
...
@@ -1371,13 +1374,13 @@ export default {
this
.
customProductList
.
map
(
c
=>
{
c
.
disabled
=
true
c
.
groupAttributeList
.
map
(
ele
=>
{
if
(
ele
.
attributeName
==
'service_period'
&&
this
.
routeInfo
.
addOrEdit
>
2
)
{
if
(
ele
.
attributeName
==
'service_period'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
ele
.
disabled
=
true
}
if
(
ele
.
attributeName
==
'card'
)
{
if
(
ele
.
attributeName
==
'card'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
ele
.
disabled
=
true
}
if
(
ele
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
ele
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
ele
.
disabled
=
true
}
})
...
...
@@ -1419,13 +1422,13 @@ export default {
this
.
productList
.
map
(
d
=>
{
d
.
disabled
=
true
d
.
groupAttributeList
.
map
(
elee
=>
{
if
(
elee
.
attributeName
==
'service_period'
&&
this
.
routeInfo
.
addOrEdit
>
2
)
{
if
(
elee
.
attributeName
==
'service_period'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
elee
.
disabled
=
true
}
if
(
elee
.
attributeName
==
'card'
)
{
if
(
elee
.
attributeName
==
'card'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
elee
.
disabled
=
true
}
if
(
elee
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
elee
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
elee
.
disabled
=
true
}
if
(
elee
.
attributeName
==
'buy_car_type'
&&
elee
.
attributeValue
==
1
)
{
...
...
@@ -1509,6 +1512,24 @@ export default {
this
.
$set
(
this
.
editFormPro
,
hashObj
[
item
.
attributeName
]
!=
1
?
item
.
attributeName
+
item
.
sort
:
item
.
attributeName
,
item
.
attributeValue
)
})
},
// 处理详情属性值赋值
handlerAttrSetValue
(
defaultList
,
targetList
)
{
let
arr
=
[],
nameList
=
[],
result
=
[]
targetList
.
forEach
(
el
=>
{
nameList
.
push
(
el
.
attributeName
)
})
defaultList
.
forEach
(
el
=>
{
if
(
nameList
.
includes
(
el
.
attributeName
))
{
// console.log(el)
}
else
{
arr
.
push
(
el
)
}
})
result
=
[...
arr
,
...
targetList
]
return
result
},
// 处理默认值赋值
handleDefaultValue
(
targetItem
,
attributeDTOList
)
{
const
currentPackageValue
=
this
.
productModal
[
targetItem
.
idName
]
...
...
src/views/serviceConfig/addService.vue
View file @
788c6d6
...
...
@@ -439,6 +439,11 @@ export default {
})
},
async
nextStep
(){
if
(
this
.
routeInfo
.
type
==
2
){
this
.
getSpecificaList
()
this
.
firstPage
=
false
return
;
}
this
.
$refs
.
baseInfoRef
.
$refs
.
formRef
.
validate
(
bValid
=>
{
this
.
$refs
.
servicesRef
.
$refs
.
formRef
.
validate
(
sValid
=>
{
if
(
bValid
&&
sValid
){
...
...
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