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 8da4237b
authored
Dec 27, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售前新增权益
1 parent
0dca2ef6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
36 deletions
package-lock.json
package.json
src/views/beforeSale/editEquity.vue
src/views/inSale/upgradeOrder.vue
package-lock.json
0 → 100644
View file @
8da4237
This diff could not be displayed because it is too large.
package.json
View file @
8da4237
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
2.8
"
,
"glsx-components"
:
"^1.
3.0
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/views/beforeSale/editEquity.vue
View file @
8da4237
...
@@ -48,10 +48,33 @@
...
@@ -48,10 +48,33 @@
<div
v-if=
"equityRadio == '1'"
class=
"auto_widget"
>
<div
v-if=
"equityRadio == '1'"
class=
"auto_widget"
>
<el-checkbox-group
v-model=
"curSelectPro"
>
<el-checkbox-group
v-model=
"curSelectPro"
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
class=
"product_wrapper"
>
<div
v-for=
"(item, index) in productList"
:key=
"index"
class=
"product_wrapper"
>
<el-checkbox
:label=
"item.title"
></el-checkbox>
<div
style=
"padding-left: 73px"
>
<el-checkbox
:label=
"item.packageName"
></el-checkbox>
</div>
<
template
v-for=
"(ele, indexs) in curSelectPro"
>
<
template
v-for=
"(ele, indexs) in curSelectPro"
>
<div
v-if=
"ele == item.title"
:key=
"indexs"
class=
"child_wrap"
>
<div
v-if=
"ele == item.packageName"
:key=
"indexs"
class=
"child_wrap"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editProductFormRefPro"
labelWidth=
"160px"
defaultWidth=
"320px"
formRef=
"editProductChildRefPro"
:isBlock=
"isBlock"
:formObj=
"editProductObj"
:formData=
"item.childs"
:formRules=
"item.rules"
></glsx-combi-form>
<!--
<glsx-combi-form
class=
"edit-form-container"
ref=
"editProductFormRefPro"
labelWidth=
"160px"
defaultWidth=
"320px"
formRef=
"editProductChildRefPro"
:isBlock=
"isBlock"
:formObj=
"editProductObj"
:formData=
"item.groupAttributeList"
:formRules=
"item.rules"
></glsx-combi-form>
-->
<div
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"
size=
"small"
:maxlength=
"attr.maxLength"
clearable
:placeholder=
"'请输入' + attr.attributeDesc"
></el-input>
</
template
>
<
template
v-if=
"attr.attributeType == 'select'"
>
<el-select
class=
"arrt_pannel"
size=
"small"
clearable
:placeholder=
"'请选择' + attr.attributeDesc"
>
<el-option
v-for=
"item in []"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</
template
>
<
template
v-if=
"attr.attributeType == 'datePicker'"
>
<el-date-picker
class=
"arrt_pannel"
size=
"small"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</
template
>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
</div>
</div>
...
@@ -408,36 +431,13 @@ export default {
...
@@ -408,36 +431,13 @@ export default {
],
],
curSelectPro
:
[],
curSelectPro
:
[],
editProductObj
:
{},
editProductObj
:
{},
productList
:
[
productList
:
[],
{
productModal
:
{
id
:
1
,
car
:{},
title
:
'盗抢全损无忧'
,
crash
:{},
checked
:
false
,
stolen
:{},
childs
:
[],
tire
:{},
rules
:
[]
},
{
id
:
2
,
title
:
'轮胎无忧'
,
checked
:
false
,
childs
:
[],
rules
:
[]
},
},
{
id
:
3
,
title
:
'整车全损无忧'
,
checked
:
false
,
childs
:
[],
rules
:
[]
},
{
id
:
4
,
title
:
'碰撞维修无忧'
,
checked
:
false
,
childs
:
[],
rules
:
[]
}
],
// 其他信息
// 其他信息
editRuleOther
:
{
editRuleOther
:
{
// suggestedSellingPrice: [{ required: true, message: '请输入建议销售价', trigger: 'change' }],
// suggestedSellingPrice: [{ required: true, message: '请输入建议销售价', trigger: 'change' }],
...
@@ -855,6 +855,67 @@ export default {
...
@@ -855,6 +855,67 @@ export default {
packageName
:
'整车全损无忧权益'
packageName
:
'整车全损无忧权益'
}
}
]
]
testArr
.
forEach
(
item
=>
{
if
(
item
.
packageType
==
2
)
{
let
newArr
=
[]
item
.
groupAttributeList
.
map
((
ele
,
i
)
=>
{
ele
.
attributeList
.
map
(
e
=>
{
ele
.
tempobj
=
{
...
e
}
})
let
newAttr
=
{
...
ele
.
tempobj
,
groupName
:
ele
.
groupName
,
attributeList
:
ele
.
attributeList
,
num
:
ele
.
num
}
newArr
.
push
(
newAttr
)
})
if
(
item
.
packageName
.
includes
(
'整车全损无忧'
))
{
item
.
idName
=
'car'
}
else
if
(
item
.
packageName
.
includes
(
'轮胎保障服务'
))
{
item
.
idName
=
'tire'
}
else
if
(
item
.
packageName
.
includes
(
'碰撞无忧'
))
{
item
.
idName
=
'crash'
}
else
if
(
item
.
packageName
.
includes
(
'盗抢全损无忧'
))
{
item
.
idName
=
'stolen'
}
item
.
groupAttributeList
=
newArr
this
.
productList
.
push
(
item
)
}
})
this
.
productModal
=
{
car
:{
service_period
:
null
,
buy_car_type
:
null
,
special_appoint_id
:
null
,
additional_date
:
null
,
additional_price
:
null
,
actual_sales_price
:
null
,
effective_date
:
null
,
additional_device_name
:
null
,
},
crash
:{
service_period
:
null
,
actual_sales_price
:
null
,
effective_date
:
null
,
},
stolen
:{
service_period
:
null
,
buy_car_type
:
null
,
special_appoint_id
:
null
,
actual_sales_price
:
null
,
effective_date
:
null
,
},
tire
:{
service_period
:
null
,
actual_sales_price
:
null
,
effective_date
:
null
,
tireBrand
:
null
,
tireScale
:
null
,
},
}
console
.
log
(
this
.
productModal
[
'car'
][
'service_period'
]);
},
},
setDisabled
(
partDisabledList
=
[])
{
setDisabled
(
partDisabledList
=
[])
{
var
list
=
[
'Car'
,
'User'
,
'Pro'
,
'Other'
]
var
list
=
[
'Car'
,
'User'
,
'Pro'
,
'Other'
]
...
@@ -1396,11 +1457,27 @@ export default {
...
@@ -1396,11 +1457,27 @@ export default {
padding
:
32px
0
0
73px
;
padding
:
32px
0
0
73px
;
}
}
.auto_widget
{
.auto_widget
{
padding
:
0
0
32px
73
px
;
padding
:
0
0
32px
0
px
;
.product_wrapper
{
.product_wrapper
{
margin-top
:
16px
;
margin-top
:
16px
;
.child_wrap
{
.child_wrap
{
padding
:
16px
0
;
padding
:
16px
0
0
0
;
display
:
flex
;
flex-wrap
:
wrap
;
.attr_wrapper
{
margin-bottom
:
16px
;
margin-right
:
30px
;
.attr_label
{
width
:
160px
;
white-space
:
nowrap
;
text-align
:
right
;
box-sizing
:
border-box
;
padding-right
:
12px
;
}
.arrt_pannel
{
width
:
320px
;
}
}
}
}
}
}
}
}
...
...
src/views/inSale/upgradeOrder.vue
View file @
8da4237
...
@@ -170,6 +170,11 @@
...
@@ -170,6 +170,11 @@
</div>
</div>
<div
class=
"table_wrap"
>
<div
class=
"table_wrap"
>
<el-table
id=
"initTable"
:data=
"tableData"
>
<el-table
id=
"initTable"
:data=
"tableData"
>
<!--
<el-table-column
fixed=
"left"
width=
"5"
>
<template
slot-scope=
"scope"
>
<span
:scope=
"scope"
></span>
</
template
>
</el-table-column>
-->
<el-table-column
label=
"序号"
align=
"center"
width=
"100px"
type=
"index"
:index=
"index => index + (currentPage - 1) * pageSize + 1"
></el-table-column>
<el-table-column
label=
"序号"
align=
"center"
width=
"100px"
type=
"index"
:index=
"index => index + (currentPage - 1) * pageSize + 1"
></el-table-column>
<el-table-column
label=
"订单信息"
align=
"center"
>
<el-table-column
label=
"订单信息"
align=
"center"
>
<
template
v-for=
"(ele, index) in tableCoulumList"
>
<
template
v-for=
"(ele, index) in tableCoulumList"
>
...
@@ -363,6 +368,7 @@ import { converterApi } from '../../api/modules/converter'
...
@@ -363,6 +368,7 @@ import { converterApi } from '../../api/modules/converter'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
const
logTypeList
=
[
'预录用户'
,
'用户下单'
,
'用户付款'
,
'完成服务'
]
const
logTypeList
=
[
'预录用户'
,
'用户下单'
,
'用户付款'
,
'完成服务'
]
const
orderStatusList
=
[
'待升级'
,
'未升级'
,
'待支付'
,
'已支付'
,
'已退款'
,
'已完成'
]
const
orderStatusList
=
[
'待升级'
,
'未升级'
,
'待支付'
,
'已支付'
,
'已退款'
,
'已完成'
]
export
default
{
export
default
{
name
:
''
,
name
:
''
,
components
:
{
components
:
{
...
@@ -888,7 +894,8 @@ export default {
...
@@ -888,7 +894,8 @@ export default {
this
.
detailImageList
.
push
(
this
.
detailImage
)
this
.
detailImageList
.
push
(
this
.
detailImage
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
})
})
}
},
}
}
}
}
</
script
>
</
script
>
...
...
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