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 d7783459
authored
Mar 07, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益提单联调
1 parent
79f56e26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
d778345
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<div
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<div
style=
"padding-left: 73px"
>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
<div>
{{ item.packageName }}
</div>
<div>
{{ item.pa
rentName ? item.packageName + '-' + item.parentName : item.pa
ckageName }}
</div>
</el-checkbox>
</el-checkbox>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
</div>
</div>
...
@@ -1279,6 +1279,10 @@ export default {
...
@@ -1279,6 +1279,10 @@ export default {
packageCode
:
pack
.
packageCode
,
packageCode
:
pack
.
packageCode
,
printType
:
pack
.
printType
printType
:
pack
.
printType
}
}
if
(
pack
.
parentId
&&
pack
.
parentName
)
{
temp
.
parentId
=
pack
.
parentId
temp
.
parentName
=
pack
.
parentName
}
this
.
productModal
[
pack
.
idName
]
=
{
this
.
productModal
[
pack
.
idName
]
=
{
...
temp
,
...
temp
,
...
orgin
,
...
orgin
,
...
@@ -1373,11 +1377,17 @@ export default {
...
@@ -1373,11 +1377,17 @@ export default {
let
attrStr
=
`attributes[
${
j
}
].packageCode`
let
attrStr
=
`attributes[
${
j
}
].packageCode`
let
contractNoStr
=
`attributes[
${
j
}
].contractNo`
let
contractNoStr
=
`attributes[
${
j
}
].contractNo`
let
printType
=
`attributes[
${
j
}
].printType`
let
printType
=
`attributes[
${
j
}
].printType`
let
parentId
=
`attributes[
${
j
}
].parentId`
let
parentName
=
`attributes[
${
j
}
].parentName`
let
temp
=
{
let
temp
=
{
[
attrStr
]:
codeList
[
j
],
[
attrStr
]:
codeList
[
j
],
[
contractNoStr
]:
arr
[
i
].
contractNo
,
[
contractNoStr
]:
arr
[
i
].
contractNo
,
[
printType
]:
arr
[
i
].
printType
[
printType
]:
arr
[
i
].
printType
}
}
if
(
arr
[
i
].
parentName
)
{
temp
[
parentId
]
=
arr
[
i
].
parentId
temp
[
parentName
]
=
arr
[
i
].
parentName
}
newArr
.
push
(
temp
)
newArr
.
push
(
temp
)
}
}
}
}
...
@@ -1673,6 +1683,9 @@ export default {
...
@@ -1673,6 +1683,9 @@ export default {
params
.
tireFlag
=
1
params
.
tireFlag
=
1
}
}
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
if
(
this
.
routeInfo
.
addOrEdit
==
1
)
{
res
=
res
?.
filter
(
item
=>
item
.
shelfStatus
!==
0
)
||
[]
}
this
.
allProdList
=
res
||
[]
this
.
allProdList
=
res
||
[]
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
obj
=
null
...
@@ -1730,6 +1743,10 @@ export default {
...
@@ -1730,6 +1743,10 @@ export default {
packCode
=
[]
packCode
=
[]
detailInfo
.
attributes
.
forEach
(
item
=>
{
detailInfo
.
attributes
.
forEach
(
item
=>
{
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
if
(
targetItem
&&
item
.
parentId
)
{
targetItem
.
parentId
=
item
.
parentId
targetItem
.
parentName
=
item
.
parentName
}
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
...
...
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