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 4085da70
authored
Aug 07, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.25.0' into 'DJ_master'
合并0804版本:Saas+v4.25.0 See merge request
!29
2 parents
79e22257
ed3eb6b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
220 additions
and
259 deletions
src/views/beforeSale/editEquity.vue
src/views/beforeSale/editEquity.vue
View file @
4085da7
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<!-- 自选权益 -->
<!-- 自选权益 -->
<div
v-if=
"equityRadio == '1'"
class=
"auto_widget"
>
<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
v-for=
"(item, index) in productList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<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"> -->
<!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> -->
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</div>
</div>
<div
class=
"arrt_pannel"
>
<div
class=
"arrt_pannel"
>
<template
v-if=
"attr.attributeType == 'input'"
>
<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,1)"
v-model=
"productModal[item.idName][attr.attributeName]"
size=
"small"
:maxlength=
"attr.maxLength"
clearable
:placeholder=
"'请输入' + attr.attributeDesc"
></el-input>
<el-input
class=
"arrt_pannel"
:disabled=
"disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)"
@
input=
"getCurChangeInput($event, item, attr, index, attrindex,
1)"
v-model=
"productModal[item.idName][attr.attributeName]"
size=
"small"
:maxlength=
"attr.maxLength"
clearable
:placeholder=
"'请输入' + attr.attributeDesc"
></el-input>
</
template
>
</
template
>
<
template
v-if=
"attr.attributeType == 'select'"
>
<
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-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"
>
...
@@ -113,13 +113,17 @@
...
@@ -113,13 +113,17 @@
<!-- 定制权益 -->
<!-- 定制权益 -->
<div
v-if=
"equityRadio == '2'"
class=
"auto_widget"
>
<div
v-if=
"equityRadio == '2'"
class=
"auto_widget"
>
<el-
radio-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
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<div
style=
"padding-left: 73px"
>
<el-radio
@
change=
"changeRaido($event, item)"
:disabled=
"item.disabled"
:label=
"item.packageName"
></el-radio>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
<div>
{{ item.packageName }}
</div>
</el-checkbox>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
</div>
</div>
<div
v-if=
"curSelectCustomPro == item.packageName"
:key=
"indexs"
class=
"child_wrap custom-made"
>
<div
class=
"customer-form"
>
<
template
v-for=
"(ele, indexs) in curSelectCustomPro"
>
<div
v-if=
"ele == item.packageName"
:key=
"indexs"
class=
"child_wrap"
>
<div
class=
"child_wrap_pannel"
v-for=
"(attr, attrindex) in item.groupAttributeList"
:key=
"attrindex"
>
<div
class=
"child_wrap_pannel"
v-for=
"(attr, attrindex) in item.groupAttributeList"
:key=
"attrindex"
>
<div
class=
"attr_wrapper flex_sc"
>
<div
class=
"attr_wrapper flex_sc"
>
<div
class=
"attr_label h13_title"
>
<div
class=
"attr_label h13_title"
>
...
@@ -128,7 +132,7 @@
...
@@ -128,7 +132,7 @@
</div>
</div>
<div
class=
"arrt_pannel"
>
<div
class=
"arrt_pannel"
>
<template
v-if=
"attr.attributeType == 'input'"
>
<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>
<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
>
<
template
v-if=
"attr.attributeType == 'select'"
>
<
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-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"
>
...
@@ -142,45 +146,11 @@
...
@@ -142,45 +146,11 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</el-radio-group>
</div>
<!-- <div v-if="equityRadio == '2'" class="auto_widget">
<glsx-combi-form class="edit-form-container" :isEdit="true" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
<span class="package-title">{{ subItem[scope.scope.optionLabel] }}</span>
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p class="package-subtitle">{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope">
<table class="table-style">
<tbody>
<tr>
<td v-for="(m, n) in scope.scope.attributeList" :key="n" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">{{ m.attributeDesc }}</td>
</tr>
<tr v-for="(m, n) in scope.scope.tableList" :key="n">
<td v-for="(i, j) in m" :key="j" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">
<el-input :disabled="i.isDisabled" :class="{ 'border-red': !editFormPro[i.name] }" placeholder="请输入" v-model="editFormPro[i.name]" :maxlength="i.maxlength">
<el-popover v-show="!editFormPro[i.name]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.attributeDesc + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</template>
</template>
</glsx-combi-form>
</div>
</div>
</div>
</div>
</el-radio>
</el-checkbox-group>
</el-radio-group>
</div>
</template>
</glsx-combi-form>
</div> -->
</div>
</div>
<!-- 其他信息 -->
<!-- 其他信息 -->
...
@@ -196,9 +166,7 @@
...
@@ -196,9 +166,7 @@
</div>
</div>
<!-- 底部固定按钮 -->
<!-- 底部固定按钮 -->
<!-- <div style="height: 78px"></div> -->
<div
class=
"fixed_bottom"
>
<div
class=
"fixed_bottom"
>
<!-- <div class="ma_top"></div> -->
<div
class=
"flex_cc ma_bot"
>
<div
class=
"flex_cc ma_bot"
>
<el-button
class=
"btn-three"
plain
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
class=
"btn-three"
plain
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
@
click=
"handleReset"
>
重置
</el-button>
<div
class=
"mar-10"
></div>
<div
class=
"mar-10"
></div>
...
@@ -486,21 +454,8 @@ export default {
...
@@ -486,21 +454,8 @@ export default {
packageList
:
[],
packageList
:
[],
editRulePro
:
{},
editRulePro
:
{},
editFormPro
:
{},
editFormPro
:
{},
// editFormDataPro: [
// {
// label: '',
// name: 'packageCode',
// optionList: [],
// optionId: 'packageCode',
// optionLabel: 'packageName',
// addHtml: 'packageCode',
// handleRadioChange: val => {
// this.packageAttr()
// }
// }
// ],
curSelectPro
:
[],
curSelectPro
:
[],
curSelectCustomPro
:
''
,
curSelectCustomPro
:
[]
,
editProductObj
:
{},
editProductObj
:
{},
productList
:
[],
productList
:
[],
customProductList
:
[],
customProductList
:
[],
...
@@ -509,7 +464,6 @@ export default {
...
@@ -509,7 +464,6 @@ export default {
crash
:
{},
crash
:
{},
stolen
:
{},
stolen
:
{},
tire
:
{},
tire
:
{},
vip
:
{},
glass
:
{}
glass
:
{}
},
},
// 其他信息
// 其他信息
...
@@ -714,7 +668,8 @@ export default {
...
@@ -714,7 +668,8 @@ export default {
pickerOptions2
:
{},
pickerOptions2
:
{},
hotline
:
''
,
hotline
:
''
,
compensationNameDisable
:
false
,
compensationNameDisable
:
false
,
errGlassName
:
''
errGlassName
:
''
,
dataSourceDisable
:
false
}
}
},
},
...
@@ -902,7 +857,7 @@ export default {
...
@@ -902,7 +857,7 @@ export default {
// }
// }
}
else
{
}
else
{
this
.
errGlassName
=
''
this
.
errGlassName
=
''
if
(
this
.
vailIndex
!=
undefined
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
],
'disabled'
,
false
)
if
(
this
.
vailIndex
!=
undefined
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
],
'disabled'
,
false
)
if
(
this
.
vail_sale_price_index
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
].
groupAttributeList
[
this
.
vail_sale_price_index
],
'disabled'
,
false
)
if
(
this
.
vail_sale_price_index
)
this
.
$set
(
this
.
productList
[
this
.
vailIndex
].
groupAttributeList
[
this
.
vail_sale_price_index
],
'disabled'
,
false
)
}
}
}
else
{
}
else
{
...
@@ -911,18 +866,18 @@ export default {
...
@@ -911,18 +866,18 @@ export default {
}
}
},
},
// 轮胎玻璃提单参数处理
// 轮胎玻璃提单参数处理
vaildGlassParams
(){
vaildGlassParams
()
{
if
(
this
.
equityRadio
==
1
&&
this
.
tempAttributeList
.
length
&&
this
.
packageCodeList
.
length
&&
this
.
errGlassName
)
{
if
(
this
.
equityRadio
==
1
&&
this
.
tempAttributeList
.
length
&&
this
.
packageCodeList
.
length
&&
this
.
errGlassName
)
{
if
(
this
.
packageCodeList
.
indexOf
(
this
.
vailGlassCode
)
!=-
1
)
{
if
(
this
.
packageCodeList
.
indexOf
(
this
.
vailGlassCode
)
!=
-
1
)
{
let
arr1
=
[]
let
arr1
=
[]
let
arr2
=
[]
let
arr2
=
[]
this
.
tempAttributeList
.
forEach
(
ele
=>
{
this
.
tempAttributeList
.
forEach
(
ele
=>
{
if
(
ele
.
packageCode
!=
this
.
vailGlassCode
)
{
if
(
ele
.
packageCode
!=
this
.
vailGlassCode
)
{
arr1
.
push
(
ele
)
arr1
.
push
(
ele
)
}
}
})
})
this
.
packageCodeList
.
forEach
(
ele
=>
{
this
.
packageCodeList
.
forEach
(
ele
=>
{
if
(
ele
!=
this
.
vailGlassCode
)
{
if
(
ele
!=
this
.
vailGlassCode
)
{
arr2
.
push
(
ele
)
arr2
.
push
(
ele
)
}
}
})
})
...
@@ -966,10 +921,12 @@ export default {
...
@@ -966,10 +921,12 @@ export default {
},
},
changeRaido
(
e
,
item
)
{
changeRaido
(
e
,
item
)
{
if
(
e
)
{
if
(
e
)
{
this
.
checkCodeList
=
[]
//
this.checkCodeList = []
this
.
autoPackageCodeList
=
[]
//
this.autoPackageCodeList = []
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
checkCodeList
.
push
(
item
.
packageCode
)
this
.
autoPackageCodeList
.
push
(
item
.
packageCode
)
this
.
autoPackageCodeList
.
push
(
item
.
packageCode
)
this
.
checkCodeList
=
Array
.
from
(
new
Set
(
this
.
checkCodeList
))
this
.
autoPackageCodeList
=
Array
.
from
(
new
Set
(
this
.
autoPackageCodeList
))
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
if
(
attr
.
attributeName
==
key
)
{
...
@@ -981,7 +938,17 @@ export default {
...
@@ -981,7 +938,17 @@ export default {
attributeGroup
:
'planId'
,
attributeGroup
:
'planId'
,
attributeName
:
'planId'
attributeName
:
'planId'
}
}
this
.
commonPart
(
this
.
productModal
[
'vip'
][
'planId'
],
item
,
customAttr
)
this
.
commonPart
(
this
.
productModal
[
`vip
${
item
.
packageCode
}
`
][
'planId'
],
item
,
customAttr
)
}
else
{
this
.
checkCodeList
=
this
.
checkCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
this
.
autoPackageCodeList
=
this
.
autoPackageCodeList
.
filter
(
t
=>
t
!=
item
.
packageCode
)
for
(
let
key
in
this
.
productModal
[
item
.
idName
])
{
item
.
groupAttributeList
.
forEach
(
attr
=>
{
if
(
attr
.
attributeName
==
key
)
{
this
.
commonPart
(
this
.
productModal
[
item
.
idName
][
key
],
item
,
attr
)
}
})
}
}
}
},
},
// 获取店铺信息
// 获取店铺信息
...
@@ -1027,7 +994,7 @@ export default {
...
@@ -1027,7 +994,7 @@ export default {
this
.
compensationNameDisable
=
false
this
.
compensationNameDisable
=
false
},
},
// 自选权益产品套餐处理参数---输入框
// 自选权益产品套餐处理参数---输入框
getCurChangeInput
(
e
,
pack
,
attr
,
faIndex
,
childIndex
,
radio
)
{
getCurChangeInput
(
e
,
pack
,
attr
,
faIndex
,
childIndex
,
radio
)
{
if
(
!
e
)
{
if
(
!
e
)
{
return
return
}
}
...
@@ -1040,7 +1007,7 @@ export default {
...
@@ -1040,7 +1007,7 @@ export default {
}
}
}
}
if
(
attr
.
attributeName
==
'card'
)
{
if
(
attr
.
attributeName
==
'card'
)
{
let
_tempArr
=
radio
==
2
?
this
.
customProductList
[
faIndex
]:
this
.
productList
[
faIndex
]
let
_tempArr
=
radio
==
2
?
this
.
customProductList
[
faIndex
]
:
this
.
productList
[
faIndex
]
_tempArr
.
groupAttributeList
.
map
(
el
=>
{
_tempArr
.
groupAttributeList
.
map
(
el
=>
{
if
(
el
.
attributeName
==
'service_period'
)
{
if
(
el
.
attributeName
==
'service_period'
)
{
el
.
disabled
=
true
el
.
disabled
=
true
...
@@ -1075,7 +1042,6 @@ export default {
...
@@ -1075,7 +1042,6 @@ export default {
}
else
{
}
else
{
this
.
tempAttributeList
.
push
(
temp
)
this
.
tempAttributeList
.
push
(
temp
)
}
}
// this.packageCodeList.push(pack.packageCode)
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
this
.
handleProductArrParam
(
this
.
tempAttributeList
,
this
.
packageCodeList
)
}
else
{
}
else
{
let
flag
=
this
.
autoAttriButeList
.
findIndex
(
val
=>
{
let
flag
=
this
.
autoAttriButeList
.
findIndex
(
val
=>
{
...
@@ -1086,14 +1052,35 @@ export default {
...
@@ -1086,14 +1052,35 @@ export default {
}
else
{
}
else
{
this
.
autoAttriButeList
.
push
(
temp
)
this
.
autoAttriButeList
.
push
(
temp
)
}
}
// this.autoPackageCodeList.push(pack.packageCode)
this
.
handleProductArrParam
(
this
.
autoAttriButeList
,
this
.
autoPackageCodeList
)
this
.
handleProductArrParam
(
this
.
autoAttriButeList
,
this
.
autoPackageCodeList
)
}
}
},
},
objSort
(
obj
)
{
let
newObj
=
{}
//遍历对象,并将key进行排序
Object
.
keys
(
obj
)
.
sort
()
.
map
(
key
=>
{
newObj
[
key
]
=
obj
[
key
]
})
//将排序好的数组转成字符串
return
JSON
.
stringify
(
newObj
)
},
unique
(
arr
)
{
let
set
=
new
Set
()
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
let
str
=
this
.
objSort
(
arr
[
i
])
set
.
add
(
str
)
}
//将数组中的字符串转回对象
arr
=
[...
set
].
map
(
item
=>
{
return
JSON
.
parse
(
item
)
})
return
arr
},
// 处理数据结构对比后台所需的参数
// 处理数据结构对比后台所需的参数
handleProductArrParam
(
arr
,
codearr
)
{
handleProductArrParam
(
arr
,
codearr
)
{
let
newArr
=
[]
let
newArr
=
[]
,
filterList
=
[]
const
codeList
=
Array
.
from
(
new
Set
(
codearr
))
const
codeList
=
Array
.
from
(
new
Set
(
codearr
))
this
.
checkCodeList
=
codeList
this
.
checkCodeList
=
codeList
let
blackArr
=
[]
let
blackArr
=
[]
...
@@ -1101,12 +1088,18 @@ export default {
...
@@ -1101,12 +1088,18 @@ export default {
blackArr
.
push
([])
blackArr
.
push
([])
}
}
const
newParaArr
=
[]
const
newParaArr
=
[]
codeList
.
forEach
((
item
,
index
)
=>
{
if
(
arr
.
length
)
{
let
attrStr
=
`attributes[
${
index
}
].packageCode`
filterList
=
this
.
unique
(
arr
)
let
obj
=
{
}
[
attrStr
]:
item
arr
=
filterList
arr
.
forEach
(
el
=>
{
arr
.
forEach
(
els
=>
{
if
(
el
.
packageCode
==
els
.
packageCode
){
if
(
el
.
contractNo
){
els
.
contractNo
=
el
.
contractNo
}
}
}
newArr
.
push
(
obj
)
}
)
})
})
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
codeList
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
codeList
.
length
;
j
++
)
{
...
@@ -1122,6 +1115,14 @@ export default {
...
@@ -1122,6 +1115,14 @@ export default {
}
}
}
}
blackArr
[
j
].
push
(
obj
)
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
)
}
}
}
}
}
}
...
@@ -1147,6 +1148,7 @@ export default {
...
@@ -1147,6 +1148,7 @@ export default {
this
.
formatProduct
=
Object
.
assign
(
this
.
formatProduct
,
item
)
this
.
formatProduct
=
Object
.
assign
(
this
.
formatProduct
,
item
)
})
})
}
else
{
}
else
{
this
.
autoFormatProduct
=
{}
concactArr
.
forEach
(
item
=>
{
concactArr
.
forEach
(
item
=>
{
this
.
autoFormatProduct
=
Object
.
assign
(
this
.
autoFormatProduct
,
item
)
this
.
autoFormatProduct
=
Object
.
assign
(
this
.
autoFormatProduct
,
item
)
})
})
...
@@ -1175,9 +1177,13 @@ export default {
...
@@ -1175,9 +1177,13 @@ export default {
// 获取产品的数据
// 获取产品的数据
toGetProductData
(
arr
)
{
toGetProductData
(
arr
)
{
arr
.
forEach
(
item
=>
{
arr
.
forEach
(
item
=>
{
if
(
item
.
packageType
==
1
){
//定制权益
if
(
item
.
packageType
==
1
)
{
item
.
idName
=
'vip'
//定制权益
}
else
{
// 自选权益
item
.
idName
=
`vip
${
item
.
packageCode
}
`
this
.
$set
(
this
.
productModal
,
item
.
idName
,
{})
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
}
else
{
// 自选权益
if
(
item
.
packageName
.
includes
(
'整车全损'
))
{
if
(
item
.
packageName
.
includes
(
'整车全损'
))
{
item
.
idName
=
'car'
item
.
idName
=
'car'
}
else
if
(
item
.
packageName
.
includes
(
'轮胎'
))
{
}
else
if
(
item
.
packageName
.
includes
(
'轮胎'
))
{
...
@@ -1185,7 +1191,6 @@ export default {
...
@@ -1185,7 +1191,6 @@ export default {
}
else
if
(
item
.
packageName
.
includes
(
'碰撞'
))
{
}
else
if
(
item
.
packageName
.
includes
(
'碰撞'
))
{
item
.
idName
=
'crash'
item
.
idName
=
'crash'
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
this
.
productModal
[
item
.
idName
][
'planId'
]
=
item
.
planId
this
.
productModal
[
'vip'
][
'planId'
]
=
item
.
planId
this
.
getCase
(
item
.
planId
)
this
.
getCase
(
item
.
planId
)
}
else
if
(
item
.
packageName
.
includes
(
'盗抢'
))
{
}
else
if
(
item
.
packageName
.
includes
(
'盗抢'
))
{
item
.
idName
=
'stolen'
item
.
idName
=
'stolen'
...
@@ -1195,24 +1200,6 @@ export default {
...
@@ -1195,24 +1200,6 @@ export default {
item
.
idName
=
'glass'
item
.
idName
=
'glass'
}
}
}
}
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
item
.
disabled
=
false
item
.
disabled
=
false
item
.
serviceItems
=
item
.
serviceItemsList
.
length
?
item
.
serviceItemsList
.
map
(
k
=>
k
.
serviceName
).
join
(
','
)
:
''
item
.
serviceItems
=
item
.
serviceItemsList
.
length
?
item
.
serviceItemsList
.
map
(
k
=>
k
.
serviceName
).
join
(
','
)
:
''
let
newArr
=
[]
let
newArr
=
[]
...
@@ -1230,11 +1217,13 @@ export default {
...
@@ -1230,11 +1217,13 @@ export default {
}
}
e
.
optionList
=
[...
arr
]
e
.
optionList
=
[...
arr
]
this
.
serviceObj
[
item
.
packageCode
]
=
item
.
servicePeriod
this
.
serviceObj
[
item
.
packageCode
]
=
item
.
servicePeriod
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
// this.productModal[item.idName][e.attributeName] = '1'
this
.
$set
(
this
.
productModal
[
item
.
idName
],
`
${
e
.
attributeName
}
`
,
'1'
)
}
else
if
(
e
.
attributeDesc
==
'购车类型'
)
{
}
else
if
(
e
.
attributeDesc
==
'购车类型'
)
{
e
.
optionList
=
this
.
baseData
.
buyCarTypeList
e
.
optionList
=
this
.
baseData
.
buyCarTypeList
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'0'
// this.productModal[item.idName][e.attributeName] = '0'
}
else
if
((
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
||
item
.
idName
==
'vip'
||
item
.
idName
==
'glass'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
this
.
$set
(
this
.
productModal
[
item
.
idName
],
`
${
e
.
attributeName
}
`
,
'0'
)
}
else
if
((
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
||
item
.
idName
==
`vip
${
item
.
packageCode
}
`
||
item
.
idName
==
'glass'
)
&&
e
.
attributeDesc
==
'服务期限'
)
{
if
(
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
)
{
if
(
item
.
idName
==
'tire'
||
item
.
idName
==
'crash'
)
{
e
.
optionList
=
this
.
baseData
.
servicePeriodList
e
.
optionList
=
this
.
baseData
.
servicePeriodList
}
else
{
}
else
{
...
@@ -1243,18 +1232,20 @@ export default {
...
@@ -1243,18 +1232,20 @@ export default {
e
.
disabled
=
true
e
.
disabled
=
true
// 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'
&&
!
isOld
)
{
if
(
item
.
idName
==
`vip
${
item
.
packageCode
}
`
&&
!
isOld
)
{
e
.
disabled
=
false
e
.
disabled
=
false
e
.
optionList
=
this
.
baseData
.
servicePeriodList
e
.
optionList
=
this
.
baseData
.
servicePeriodList
}
}
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
'1'
//
this.productModal[item.idName][e.attributeName] = '1'
this
.
$set
(
this
.
productModal
[
item
.
idName
],
`
${
e
.
attributeName
}
`
,
'1'
)
}
else
if
(
e
.
attributeDesc
==
'生效日期'
)
{
}
else
if
(
e
.
attributeDesc
==
'生效日期'
)
{
let
nextDay
=
new
Date
().
getTime
()
+
24
*
60
*
60
*
1000
let
nextDay
=
new
Date
().
getTime
()
+
24
*
60
*
60
*
1000
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
utils
.
dateFormat
(
nextDay
)
// this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
this
.
$set
(
this
.
productModal
[
item
.
idName
],
`
${
e
.
attributeName
}
`
,
utils
.
dateFormat
(
nextDay
))
if
(
item
.
idName
==
'glass'
)
{
if
(
item
.
idName
==
'glass'
)
{
let
tAdd2
=
new
Date
().
getTime
()
+
24
*
60
*
60
*
1000
*
2
let
tAdd2
=
new
Date
().
getTime
()
+
24
*
60
*
60
*
1000
*
2
this
.
productModal
[
item
.
idName
][
e
.
attributeName
]
=
utils
.
dateFormat
(
tAdd2
)
// this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2)
this
.
$set
(
this
.
productModal
[
item
.
idName
],
`
${
e
.
attributeName
}
`
,
utils
.
dateFormat
(
tAdd2
))
e
.
disabled
=
true
e
.
disabled
=
true
}
}
}
}
...
@@ -1315,7 +1306,7 @@ export default {
...
@@ -1315,7 +1306,7 @@ export default {
})
})
},
},
getInfo
(
productArrData
)
{
getInfo
(
productArrData
)
{
this
.
$apis
.
beforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
,
repeatedFlag
:
this
.
routeInfo
.
addOrEdit
==
4
?
1
:
0
}).
then
(
res
=>
{
this
.
editForm
=
{
this
.
editForm
=
{
...
res
...
res
}
}
...
@@ -1356,6 +1347,7 @@ export default {
...
@@ -1356,6 +1347,7 @@ export default {
if
([
2
,
4
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
if
([
2
,
4
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
this
.
editForm
.
effectiveDate
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
+
1
))
this
.
editForm
.
effectiveDate
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
+
1
))
}
}
this
.
dataSourceDisable
=
res
.
dataSource
==
'car'
this
.
editForm
.
packageCode
&&
this
.
packageAttr
(
true
,
productArrData
,
res
)
this
.
editForm
.
packageCode
&&
this
.
packageAttr
(
true
,
productArrData
,
res
)
const
spaItem
=
this
.
baseData
.
agreeList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
specialAppointId
)
const
spaItem
=
this
.
baseData
.
agreeList
.
find
(
item
=>
item
.
id
==
this
.
editForm
.
specialAppointId
)
if
(
spaItem
)
{
if
(
spaItem
)
{
...
@@ -1400,140 +1392,160 @@ export default {
...
@@ -1400,140 +1392,160 @@ export default {
}
}
},
},
packageAttr
(
recovery
=
false
,
productArrData
,
detailInfo
)
{
packageAttr
(
recovery
=
false
,
productArrData
,
detailInfo
)
{
var
targetItem
=
productArrData
.
find
(
item
=>
item
.
packageCode
==
this
.
editForm
.
packageCode
)
// 2023 7月底版本 改版
let
attrList
=
[],
packCode
=
[]
detailInfo
.
attributes
.
forEach
(
item
=>
{
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
[...
item
.
attributeDTOList
,
...
defalutAttr
]
}
if
(
targetItem
.
packageType
==
1
)
{
if
(
targetItem
.
packageType
==
1
)
{
this
.
equityRadio
=
2
this
.
equityRadio
=
2
this
.
curSelectCustomPro
=
targetItem
.
packageName
this
.
curSelectCustomPro
.
push
(
targetItem
.
packageName
)
this
.
editForm
.
attributeList
.
forEach
(
item
=>
{
this
.
curSelectCustomPro
=
Array
.
from
(
new
Set
(
this
.
curSelectCustomPro
))
if
(
item
.
attributeName
.
includes
(
'price'
))
{
item
.
attributeDTOList
.
forEach
(
a
=>
{
item
.
attributeValue
=
item
.
attributeValue
/
100
if
(
a
.
attributeName
.
includes
(
'price'
))
{
a
.
attributeValue
=
a
.
attributeValue
/
100
}
}
if
(
item
.
attributeName
==
'tireScale'
&&
item
.
sort
==
1
)
{
if
(
a
.
attributeName
==
'tireScale'
&&
a
.
sort
==
1
)
{
item
.
attributeName
=
'afterTireScale'
a
.
attributeName
=
'afterTireScale'
}
}
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
if
(
a
.
attributeName
==
'buy_car_type'
&&
a
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
this
.
compensationNameDisable
=
true
}
}
this
.
productModal
.
vip
[
item
.
attributeName
]
=
item
.
attributeValue
this
.
productModal
[
`vip
${
item
.
packageCode
}
`
][
a
.
attributeName
]
=
a
.
attributeValue
})
})
if
(
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
3
||
this
.
routeInfo
.
addOrEdit
==
4
)
{
this
.
leftDisable
=
true
this
.
leftDisable
=
true
this
.
customProductList
.
map
(
item
=>
{
this
.
customProductList
.
map
(
c
=>
{
item
.
disabled
=
true
c
.
disabled
=
true
item
.
groupAttributeList
.
map
(
ele
=>
{
c
.
groupAttributeList
.
map
(
ele
=>
{
if
(
ele
.
attributeName
==
'service_period'
)
{
if
(
ele
.
attributeName
==
'service_period'
&&
(
this
.
routeInfo
.
addOrEdit
>
2
)
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'card'
)
{
if
(
ele
.
attributeName
==
'card'
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'effective_date'
)
{
if
(
ele
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
}
}
})
})
return
item
return
c
})
})
}
}
}
else
{
if
(
this
.
routeInfo
.
addOrEdit
==
2
)
{
this
.
equityRadio
=
1
this
.
customProductList
.
map
(
c
=>
{
this
.
curSelectPro
=
[
targetItem
.
packageName
]
c
.
disabled
=
true
this
.
editForm
.
attributeList
.
forEach
(
item
=>
{
c
.
groupAttributeList
.
map
(
ele
=>
{
if
(
item
.
attributeName
.
includes
(
'price'
))
{
if
(
ele
.
attributeName
==
'service_period'
&&
this
.
dataSourceDisable
)
{
item
.
attributeValue
=
item
.
attributeValue
/
100
ele
.
disabled
=
true
}
else
if
(
item
.
attributeName
==
'planId'
)
{
this
.
leftDisable
=
true
this
.
getCase
(
parseInt
(
item
.
attributeValue
))
}
}
if
(
item
.
attributeName
==
'tireScale'
&&
item
.
sort
==
1
)
{
})
item
.
attributeName
=
'afterTireScale'
return
c
})
}
}
if
(
item
.
attributeName
==
'buy_car_type'
&&
item
.
attributeValue
==
1
)
{
}
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
}
else
if
(
b
.
attributeName
==
'planId'
)
{
this
.
getCase
(
parseInt
(
b
.
attributeValue
))
}
if
(
b
.
attributeName
==
'tireScale'
&&
b
.
sort
==
1
)
{
b
.
attributeName
=
'afterTireScale'
}
if
(
b
.
attributeName
==
'buy_car_type'
&&
b
.
attributeValue
==
1
)
{
this
.
compensationNameDisable
=
true
this
.
compensationNameDisable
=
true
}
}
this
.
productModal
[
targetItem
.
idName
][
item
.
attributeName
]
=
item
.
attributeValue
this
.
productModal
[
targetItem
.
idName
][
b
.
attributeName
]
=
b
.
attributeValue
})
})
if
(
this
.
routeInfo
.
addOrEdit
==
3
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
3
||
this
.
routeInfo
.
addOrEdit
==
4
)
{
this
.
rightDisable
=
true
this
.
rightDisable
=
true
this
.
productList
.
map
(
item
=>
{
this
.
productList
.
map
(
d
=>
{
item
.
disabled
=
true
d
.
disabled
=
true
d
.
groupAttributeList
.
map
(
elee
=>
{
item
.
groupAttributeList
.
map
(
ele
=>
{
if
(
elee
.
attributeName
==
'service_period'
&&
(
this
.
routeInfo
.
addOrEdit
>
2
))
{
if
(
ele
.
attributeName
==
'service_period'
)
{
elee
.
disabled
=
true
ele
.
disabled
=
true
}
}
if
(
el
e
.
attributeName
==
'card'
)
{
if
(
ele
e
.
attributeName
==
'card'
)
{
el
e
.
disabled
=
true
ele
e
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'effective_date'
)
{
if
(
elee
.
attributeName
==
'effective_date'
&&
this
.
routeInfo
.
addOrEdit
==
3
)
{
el
e
.
disabled
=
true
ele
e
.
disabled
=
true
}
}
if
(
ele
.
attributeName
==
'buy_car_type'
&&
ele
.
attributeValue
==
1
)
{
if
(
elee
.
attributeName
==
'buy_car_type'
&&
elee
.
attributeValue
==
1
)
{
elee
.
disabled
=
true
}
})
return
d
})
}
if
(
this
.
routeInfo
.
addOrEdit
==
2
)
{
this
.
productList
.
map
(
c
=>
{
c
.
disabled
=
true
c
.
groupAttributeList
.
map
(
ele
=>
{
if
(
ele
.
attributeName
==
'service_period'
&&
this
.
dataSourceDisable
)
{
ele
.
disabled
=
true
ele
.
disabled
=
true
this
.
rightDisable
=
true
}
}
})
})
return
c
return
item
})
})
}
}
}
}
// this.packageToPrice()
// var tempObj = this.$common.utils.deepClone(this.editFormPro)
packCode
.
push
(
item
.
packageCode
)
let
attrList
=
[]
item
.
attributeDTOList
.
forEach
(
el
=>
{
detailInfo
.
attributeList
.
forEach
(
item
=>
{
attrList
.
push
({
attrList
.
push
({
...
item
,
...
el
,
packageCode
:
detailInfo
.
packageCode
packageCode
:
item
.
packageCode
,
contractNo
:
item
.
contractNo
})
})
})
})
})
if
(
this
.
equityRadio
==
1
)
{
if
(
this
.
equityRadio
==
1
)
{
this
.
tempAttributeList
=
attrList
this
.
tempAttributeList
=
attrList
this
.
packageCodeList
=
[
detailInfo
.
packageCode
]
this
.
packageCodeList
=
packCode
}
else
{
}
else
{
this
.
autoAttriButeList
=
attrList
this
.
autoAttriButeList
=
attrList
this
.
autoPackageCodeList
=
[
detailInfo
.
packageCode
]
this
.
autoPackageCodeList
=
packCode
}
}
this
.
checkCodeList
=
[
detailInfo
.
packageCode
]
this
.
checkCodeList
=
packCode
this
.
handleProductArrParam
(
attrList
,
[
detailInfo
.
packageCode
])
this
.
handleProductArrParam
(
attrList
,
packCode
)
// this.editRulePro = {}
},
// this.editFormPro = {}
// 处理默认值赋值
// var attrName = ''
handleDefaultValue
(
targetItem
,
attributeDTOList
)
{
// targetItem &&
const
currentPackageValue
=
this
.
productModal
[
targetItem
.
idName
]
// targetItem.groupAttributeList.forEach(item => {
const
groupAttributeList
=
targetItem
.
groupAttributeList
// if (item.attributeList.length == 1) {
let
tempArr
=
[],
// attrName = item.attributeList[0].attributeName
result
=
[]
// this.$set(this.editFormPro, attrName, tempObj.hasOwnProperty(attrName) ? tempObj[attrName] : '')
for
(
let
key
in
currentPackageValue
)
{
// if (item.attributeList[0].required == 1) {
for
(
let
i
=
0
;
i
<
groupAttributeList
.
length
;
i
++
)
{
// this.editRulePro[item.attributeList[0].attributeName] = [
if
(
key
===
groupAttributeList
[
i
].
attributeName
)
{
// {
let
obj
=
{
// required: true,
attributeGroup
:
key
,
// message: '请输入' + item.attributeList[0].attributeDesc,
attributeName
:
key
,
// trigger: 'change'
attributeValue
:
currentPackageValue
[
key
],
// }
sort
:
0
// ]
}
// }
tempArr
.
push
(
obj
)
// } else {
}
// for (var i = 0; i < item.num; i++) {
}
// item.attributeList.forEach(k => {
}
// attrName = k.attributeName
tempArr
.
forEach
(
el
=>
{
// this.$set(this.editFormPro, attrName + i, tempObj.hasOwnProperty(attrName + i) ? tempObj[attrName + i] : '')
attributeDTOList
.
forEach
(
item
=>
{
// })
if
(
item
.
attributeName
!==
el
.
attributeName
)
{
// }
result
.
push
(
el
)
// }
}
// })
// if (recovery) {
// this.recoveryEditFormPro()
// }
},
recoveryEditFormPro
()
{
this
.
editForm
.
attributeList
.
length
&&
this
.
editForm
.
attributeList
.
forEach
((
item
,
idx
)
=>
{
let
hashObj
=
{}
this
.
editForm
.
attributeList
.
map
(
i
=>
i
.
attributeName
)
.
forEach
((
i
,
subIdx
)
=>
{
Object
.
keys
(
hashObj
).
includes
(
i
)
?
(
hashObj
[
i
]
=
hashObj
[
i
]
+
1
)
:
(
hashObj
[
i
]
=
1
)
})
})
this
.
$set
(
this
.
editFormPro
,
hashObj
[
item
.
attributeName
]
!=
1
?
item
.
attributeName
+
item
.
sort
:
item
.
attributeName
,
item
.
attributeValue
)
})
})
return
result
},
},
autoGenerate
(
arr1
,
arr2
)
{
autoGenerate
(
arr1
,
arr2
)
{
const
tempList
=
arr1
.
concat
(
arr2
)
const
tempList
=
arr1
.
concat
(
arr2
)
...
@@ -1541,59 +1553,6 @@ export default {
...
@@ -1541,59 +1553,6 @@ export default {
return
return
}
}
this
.
routeInfo
.
addOrEdit
!=
'1'
?
this
.
getInfo
(
tempList
)
:
''
this
.
routeInfo
.
addOrEdit
!=
'1'
?
this
.
getInfo
(
tempList
)
:
''
// var tempList = []
// this.packageList.forEach(item => {
// tempList = []
// item.groupAttributeList.forEach((k, idx) => {
// if (k.attributeList.length == 1) {
// tempList.push({
// label: k.attributeList[0].attributeDesc,
// name: k.attributeList[0].attributeName,
// type: k.attributeList[0].attributeType,
// isDisabled: this.disabled || this.successDisable,
// maxlength: k.attributeList[0].maxLength
// })
// if (k.attributeList[0].attributeType == 'datePicker') {
// tempList[idx].dateType = 'date'
// ;(tempList[idx].valueFormat = 'yyyy-MM-dd'), (tempList[idx].pickerOptions = 'beforeRangePickerOptions')
// }
// } else {
// var tableList = []
// for (var i = 0; i < k.num; i++) {
// tableList[i] = []
// k.attributeList.forEach((j, index) => {
// tableList[i].push({
// groupName: j.groupName,
// attributeDesc: j.attributeDesc,
// attributeName: j.attributeName,
// name: j.attributeName + i,
// sort: i,
// attributeGroup: j.attributeGroup,
// maxlength: j.maxLength,
// required: j.required,
// attributeType: j.attributeType,
// isDisabled: this.disabled || this.successDisable
// })
// })
// }
// tempList.push({
// label: '',
// name: '',
// addHtml: 'table',
// attributeList: k.attributeList,
// tableList: tableList
// })
// }
// })
// this.editFormDataPro[0].optionList.push({
// packageCode: item.packageCode,
// packageName: item.packageName,
// serviceItems: item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : '',
// serviceItemsList: item.serviceItemsList,
// groupAttributeList: item.groupAttributeList,
// editFormData: this.$common.utils.deepClone(tempList)
// })
// })
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
...
@@ -1753,6 +1712,7 @@ export default {
...
@@ -1753,6 +1712,7 @@ export default {
}
}
this
.
submit
=
true
this
.
submit
=
true
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
attributes
params
.
operationType
=
0
params
.
operationType
=
0
if
(
this
.
routeInfo
.
addOrEdit
==
'2'
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
'2'
)
{
params
.
contractNo
=
this
.
routeInfo
.
contractNo
params
.
contractNo
=
this
.
routeInfo
.
contractNo
...
@@ -1769,6 +1729,7 @@ export default {
...
@@ -1769,6 +1729,7 @@ export default {
if
(
!
params
.
sn
)
{
if
(
!
params
.
sn
)
{
delete
params
.
sn
delete
params
.
sn
}
}
params
.
dataSource
=
this
.
editForm
.
dataSource
||
''
this
.
$apis
.
beforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
this
.
submit
=
false
...
@@ -1840,6 +1801,7 @@ export default {
...
@@ -1840,6 +1801,7 @@ export default {
return
true
return
true
}
}
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
attributes
params
.
operationType
=
1
params
.
operationType
=
1
if
([
2
,
3
,
4
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
if
([
2
,
3
,
4
].
includes
(
this
.
routeInfo
.
addOrEdit
))
{
if
(
this
.
routeInfo
.
addOrEdit
==
4
&&
this
.
editForm
.
orderStatus
!=
3
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
4
&&
this
.
editForm
.
orderStatus
!=
3
)
{
...
@@ -1911,7 +1873,6 @@ export default {
...
@@ -1911,7 +1873,6 @@ export default {
crash
:
{},
crash
:
{},
stolen
:
{},
stolen
:
{},
tire
:
{},
tire
:
{},
vip
:
{},
glass
:
{}
glass
:
{}
}
}
this
.
customProductList
=
[]
this
.
customProductList
=
[]
...
...
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