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 061278ac
authored
Aug 21, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复线上问题&提单修改权限优化
1 parent
41585f26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
061278a
...
@@ -713,7 +713,7 @@ export default {
...
@@ -713,7 +713,7 @@ export default {
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataUser'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
this
.
getOptionsList
(
'editFormDataOther'
,
false
)
this
.
disabled
&&
this
.
setDisabled
()
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
()
this
.
getHotline
()
},
},
...
@@ -1194,6 +1194,9 @@ export default {
...
@@ -1194,6 +1194,9 @@ export default {
e
.
optionList
=
this
.
baseData
.
servicePeriodList2
e
.
optionList
=
this
.
baseData
.
servicePeriodList2
}
}
e
.
disabled
=
true
e
.
disabled
=
true
if
(
this
.
routeInfo
.
addOrEdit
==
3
){
e
.
disabled
=
false
}
// v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年
// v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年
let
isOld
=
item
.
packageName
.
includes
(
'尊享版'
)
||
item
.
packageName
.
includes
(
'舒享版'
)
||
item
.
packageName
.
includes
(
'优享版'
)
let
isOld
=
item
.
packageName
.
includes
(
'尊享版'
)
||
item
.
packageName
.
includes
(
'舒享版'
)
||
item
.
packageName
.
includes
(
'优享版'
)
if
(
item
.
idName
==
`vip
${
item
.
packageCode
}
`
&&
!
isOld
)
{
if
(
item
.
idName
==
`vip
${
item
.
packageCode
}
`
&&
!
isOld
)
{
...
@@ -1348,7 +1351,7 @@ export default {
...
@@ -1348,7 +1351,7 @@ export default {
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
[...
defalutAttr
,
...
item
.
attributeDTOList
]
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
}
}
if
(
targetItem
.
packageType
==
1
)
{
if
(
targetItem
.
packageType
==
1
)
{
this
.
equityRadio
=
2
this
.
equityRadio
=
2
...
@@ -1371,13 +1374,13 @@ export default {
...
@@ -1371,13 +1374,13 @@ export default {
this
.
customProductList
.
map
(
c
=>
{
this
.
customProductList
.
map
(
c
=>
{
c
.
disabled
=
true
c
.
disabled
=
true
c
.
groupAttributeList
.
map
(
ele
=>
{
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
ele
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'card'
)
{
if
(
ele
.
attributeName
==
'card'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
ele
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
})
})
...
@@ -1419,13 +1422,13 @@ export default {
...
@@ -1419,13 +1422,13 @@ export default {
this
.
productList
.
map
(
d
=>
{
this
.
productList
.
map
(
d
=>
{
d
.
disabled
=
true
d
.
disabled
=
true
d
.
groupAttributeList
.
map
(
elee
=>
{
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
elee
.
disabled
=
true
}
}
if
(
elee
.
attributeName
==
'card'
)
{
if
(
elee
.
attributeName
==
'card'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
elee
.
disabled
=
true
elee
.
disabled
=
true
}
}
if
(
elee
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
elee
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
4
)
{
elee
.
disabled
=
true
elee
.
disabled
=
true
}
}
if
(
elee
.
attributeName
==
'buy_car_type'
&&
elee
.
attributeValue
==
1
)
{
if
(
elee
.
attributeName
==
'buy_car_type'
&&
elee
.
attributeValue
==
1
)
{
...
@@ -1509,6 +1512,24 @@ export default {
...
@@ -1509,6 +1512,24 @@ export default {
this
.
$set
(
this
.
editFormPro
,
hashObj
[
item
.
attributeName
]
!=
1
?
item
.
attributeName
+
item
.
sort
:
item
.
attributeName
,
item
.
attributeValue
)
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
)
{
handleDefaultValue
(
targetItem
,
attributeDTOList
)
{
const
currentPackageValue
=
this
.
productModal
[
targetItem
.
idName
]
const
currentPackageValue
=
this
.
productModal
[
targetItem
.
idName
]
...
...
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