Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 be3d2ec2
authored
Jul 25, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改联调
1 parent
c72b5280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
45 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
be3d2ec
...
...
@@ -46,7 +46,7 @@
<!-- 自选权益 -->
<div
v-if=
"equityRadio == '1'"
class=
"auto_widget"
>
<el-checkbox-group
v-model=
"curSelectPro"
:disabled=
"disabled"
>
<el-checkbox-group
v-model=
"curSelectPro"
:disabled=
"disabled
|| dataSourceDisable
"
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> -->
...
...
@@ -113,7 +113,7 @@
<!-- 定制权益 -->
<div
v-if=
"equityRadio == '2'"
class=
"auto_widget"
>
<el-checkbox-group
v-model=
"curSelectCustomPro"
:disabled=
"disabled"
>
<el-checkbox-group
v-model=
"curSelectCustomPro"
:disabled=
"disabled
|| dataSourceDisable
"
>
<div
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
...
...
@@ -150,37 +150,6 @@
</div>
</div>
</el-checkbox-group>
<!-- <el-radio-group v-model="curSelectCustomPro" :disabled="disabled">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px">
<el-radio @change="changeRaido($event, item)" :disabled="item.disabled" :label="item.packageName"></el-radio>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div>
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap custom-made">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
<span v-if="attr.required == 1" style="color: red">*</span>
{{ attr.attributeDesc }}
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr,index, attrindex,2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
</div>
</div>
</div>
</el-radio-group> -->
</div>
</div>
...
...
@@ -712,7 +681,8 @@ export default {
pickerOptions2
:
{},
hotline
:
''
,
compensationNameDisable
:
false
,
errGlassName
:
''
errGlassName
:
''
,
dataSourceDisable
:
false
}
},
...
...
@@ -1111,16 +1081,16 @@ export default {
blackArr
.
push
([])
}
const
newParaArr
=
[]
codeList
.
forEach
((
item
,
index
)
=>
{
let
attrStr
=
`attributes[
${
index
}
].packageCode`
// 2023 7月底版本 多商品
let
contractNoStr
=
`attributes[
${
index
}
].contractNo`
let
obj
=
{
[
attrStr
]:
item
,
[
contractNoStr
]:
this
.
routeInfo
.
contractNo
&&
this
.
routeInfo
.
contractNo
>
-
1
?
this
.
routeInfo
.
contractNo
:
''
}
newArr
.
push
(
obj
)
})
//
codeList.forEach((item, index) => {
// // 2023 7月底版本 多商品
// let attrStr = `attributes[${index}].packageCode`
//
let contractNoStr = `attributes[${index}].contractNo`
//
let obj = {
//
[attrStr]: item,
//
[contractNoStr]: this.routeInfo.contractNo && this.routeInfo.contractNo > -1 ? this.routeInfo.contractNo : ''
//
}
//
newArr.push(obj)
//
})
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
codeList
.
length
;
j
++
)
{
if
(
arr
[
i
].
packageCode
==
codeList
[
j
])
{
...
...
@@ -1135,6 +1105,14 @@ export default {
}
}
blackArr
[
j
].
push
(
obj
)
// 2023 7月底版本 多商品
let
attrStr
=
`attributes[
${
j
}
].packageCode`
let
contractNoStr
=
`attributes[
${
j
}
].contractNo`
let
temp
=
{
[
attrStr
]:
codeList
[
j
],
[
contractNoStr
]:
arr
[
i
].
contractNo
}
newArr
.
push
(
temp
)
}
}
}
...
...
@@ -1192,7 +1170,7 @@ export default {
if
(
item
.
packageType
==
1
)
{
//定制权益
item
.
idName
=
`vip
${
item
.
packageCode
}
`
this
.
$set
(
this
.
productModal
,
item
.
idName
,
{})
this
.
$set
(
this
.
productModal
,
item
.
idName
,
{})
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
}
else
{
// 自选权益
...
...
@@ -1359,6 +1337,7 @@ export default {
if
(
spaItem
)
{
this
.
editForm
.
specialAppoint
=
spaItem
.
spaContent
}
this
.
dataSourceDisable
=
res
.
dataSource
==
'car'
})
},
getPackageList
()
{
...
...
@@ -1406,6 +1385,7 @@ export default {
if
(
targetItem
.
packageType
==
1
)
{
this
.
equityRadio
=
2
this
.
curSelectCustomPro
.
push
(
targetItem
.
packageName
)
this
.
curSelectCustomPro
=
Array
.
from
(
new
Set
(
this
.
curSelectCustomPro
))
item
.
attributeDTOList
.
forEach
(
a
=>
{
if
(
a
.
attributeName
.
includes
(
'price'
))
{
a
.
attributeValue
=
a
.
attributeValue
/
100
...
...
@@ -1439,6 +1419,7 @@ export default {
}
else
{
this
.
equityRadio
=
1
this
.
curSelectPro
.
push
(
targetItem
.
packageName
)
this
.
curSelectPro
=
Array
.
from
(
new
Set
(
this
.
curSelectPro
))
item
.
attributeDTOList
.
forEach
(
b
=>
{
if
(
b
.
attributeName
.
includes
(
'price'
))
{
b
.
attributeValue
=
b
.
attributeValue
/
100
...
...
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