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 96e05b61
authored
Feb 15, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代码迁移
1 parent
4718c878
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
59 deletions
src/views/ghPreSale/editEquity.vue
src/views/ghPreSale/equityList.vue
src/views/ghPreSale/financeIndex.vue
src/views/ghPreSale/editEquity.vue
View file @
96e05b6
...
...
@@ -10,16 +10,16 @@
</div>
-->
<div
class=
"container"
>
<p
class=
"edit-title"
>
车辆信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefCar"
labelWidth=
"1
60
px"
defaultWidth=
"320px"
formRef=
"editChildRefCar"
:formObj
.
sync=
"editForm.vehicle"
:formData=
"editFormDataCar.slice(0, 7)"
:formRules=
"editRuleCar"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefCar"
labelWidth=
"1
44
px"
defaultWidth=
"320px"
formRef=
"editChildRefCar"
:formObj
.
sync=
"editForm.vehicle"
:formData=
"editFormDataCar.slice(0, 7)"
:formRules=
"editRuleCar"
>
</glsx-combi-form>
<glsx-combi-form
ref=
"editFormRefBrand"
labelWidth=
"1
60
px"
defaultWidth=
"215px"
formRef=
"editChildRefBrand"
:formObj
.
sync=
"editForm.vehicle"
:formData=
"editFormDataCar.slice(7)"
:formRules=
"editRuleCar"
>
<glsx-combi-form
ref=
"editFormRefBrand"
labelWidth=
"1
44
px"
defaultWidth=
"215px"
formRef=
"editChildRefBrand"
:formObj
.
sync=
"editForm.vehicle"
:formData=
"editFormDataCar.slice(7)"
:formRules=
"editRuleCar"
>
<template
slot=
"vehicleBrandId"
slot-scope=
"scope"
>
<el-select
v-model=
"editForm.vehicle.vehicleBrandId"
placeholder=
"请选择品牌"
filterable
@
change=
"handleChangeBrand(editForm.vehicle.vehicleBrandId)"
style=
"width:1
60
px;"
:disabled=
"scope.scope.isDisabled"
>
<el-select
v-model=
"editForm.vehicle.vehicleBrandId"
placeholder=
"请选择品牌"
filterable
@
change=
"handleChangeBrand(editForm.vehicle.vehicleBrandId)"
style=
"width:1
44
px;"
:disabled=
"scope.scope.isDisabled"
>
<el-option
v-for=
"item in baseData.carBrandOptions"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
/>
</el-select>
</
template
>
<
template
slot=
"vehicleSubBrandId"
slot-scope=
"scope"
>
<el-select
v-model=
"editForm.vehicle.vehicleSubBrandId"
placeholder=
"请选择子品牌"
filterable
@
change=
"getCarSeriesList()"
style=
"width:1
60
px;"
:disabled=
"scope.scope.isDisabled"
>
<el-select
v-model=
"editForm.vehicle.vehicleSubBrandId"
placeholder=
"请选择子品牌"
filterable
@
change=
"getCarSeriesList()"
style=
"width:1
44
px;"
:disabled=
"scope.scope.isDisabled"
>
<el-option
v-for=
"item in baseData.carChildOptions"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
/>
</el-select>
</
template
>
...
...
@@ -37,12 +37,12 @@
</div>
<div
class=
"container"
>
<p
class=
"edit-title"
>
客户信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefUser"
labelWidth=
"1
60
px"
defaultWidth=
"320px"
formRef=
"editChildRefUser"
:formObj=
"editForm"
:formData=
"editFormDataUser"
:formRules=
"editRuleUser"
></glsx-combi-form>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefUser"
labelWidth=
"1
44
px"
defaultWidth=
"320px"
formRef=
"editChildRefUser"
:formObj=
"editForm"
:formData=
"editFormDataUser"
:formRules=
"editRuleUser"
></glsx-combi-form>
</div>
<div
class=
"container select-product"
>
<p
class=
"edit-title"
>
选择产品
</p>
<!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="1
60
px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> -->
<glsx-combi-form
class=
"edit-form-container"
labelWidth=
"1
60
px"
defaultWidth=
"320px"
:formObj=
"editForm"
:formData=
"editFormDataPro"
>
<!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="1
44
px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> -->
<glsx-combi-form
class=
"edit-form-container"
labelWidth=
"1
44
px"
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]"
>
...
...
@@ -50,7 +50,7 @@
<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"
labelWidth=
"160px"
defaultWidth=
"320px"
formRef=
"editChildRefPro"
:
isBlock=
"isBlock"
:
formObj=
"editFormPro"
:formData=
"subItem.editFormData"
:formRules=
"editRulePro"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefPro"
labelWidth=
"160px"
defaultWidth=
"320px"
formRef=
"editChildRefPro"
:formObj=
"editFormPro"
:formData=
"subItem.editFormData"
:formRules=
"editRulePro"
>
<template
slot=
"table"
slot-scope=
"scope"
>
<table
class=
"table-style"
>
<tbody>
...
...
@@ -79,19 +79,19 @@
</div>
<div
class=
"container"
>
<p
class=
"edit-title"
>
其他信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefOther"
labelWidth=
"1
60
px"
defaultWidth=
"320px"
formRef=
"editChildRefOther"
:formObj=
"editForm"
:formData=
"editFormDataOther"
:formRules=
"editRuleOther"
></glsx-combi-form>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRefOther"
labelWidth=
"1
44
px"
defaultWidth=
"320px"
formRef=
"editChildRefOther"
:formObj=
"editForm"
:formData=
"editFormDataOther"
:formRules=
"editRuleOther"
></glsx-combi-form>
</div>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div
class=
"footer operate-btn"
>
<el-button
size=
"small"
v-show=
"routeInfo.addOrEdit == '1'"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
class=
"reset-btn"
v-show=
"routeInfo.addOrEdit == '1'"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
v-show=
"!['3', '5'].includes(routeInfo.addOrEdit)"
class=
"plain"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
size=
"small"
v-show=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"handleConfirm"
>
{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}
</el-button>
<el-button
size=
"small"
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<qrCode
:codeUrl=
"qrcodUrl"
phoneTitle=
"提单及服务咨询"
phone=
"189 3890 7441"
></qrCode>
<qrCode
:
bottom=
"320"
:
codeUrl=
"qrcodUrl"
phoneTitle=
"提单及服务咨询"
phone=
"189 3890 7441"
></qrCode>
</div>
</template>
...
...
@@ -145,7 +145,8 @@ export default {
invoicePrice
:
''
,
seatesNum
:
5
,
billingDate
:
new
Date
()
}
},
insurance
:
'i'
},
// 车辆信息
editRuleCar
:
{
...
...
@@ -409,6 +410,24 @@ export default {
label
:
'实际销售人员'
,
name
:
'actualSalesPerson'
,
type
:
'select'
},
{
label
:
'首续保'
,
name
:
'insurance'
,
type
:
'radio'
,
optionList
:
[
{
confLabel
:
'无忧卡首保'
,
confId
:
'i'
},
{
confLabel
:
'无忧卡续保'
,
confId
:
'c'
}
],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
isDisabled
:
false
}
],
// 公共数据
...
...
@@ -1008,7 +1027,7 @@ export default {
}
}
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
/* 客服 - start */
.before-sale
.help-service
{
position
:
fixed
;
...
...
@@ -1021,7 +1040,7 @@ export default {
height
:
268px
;
text-align
:
center
;
background
:
#ffffff
;
border
:
1px
solid
rgb
(
220
,
223
,
230
,
0.5
);
border
:
1px
solid
rgb
a
(
220
,
223
,
230
,
0.5
);
box-shadow
:
0px
3px
6px
-4px
rgba
(
0
,
0
,
0
,
0.12
);
}
...
...
@@ -1137,9 +1156,14 @@ export default {
margin-bottom
:
20px
;
}
.select-product
.edit-form-container
{
padding
:
12px
0
0
72px
;
}
/
deep
/
.select-product
{
.package-code>.el-radio__input{
margin-left
:
73px
;
}
.package-code
>
.el-radio__label
>
.radio-add-block
>
.package-subtitle
{
margin-left
:
76px
;
}
}
.select-product
.el-radio__label
{
padding-left
:
7px
;
...
...
@@ -1147,8 +1171,7 @@ export default {
.select-product
.package-title
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
font-weight
:
600
;
}
.select-product
.package-subtitle
{
...
...
@@ -1170,12 +1193,9 @@ export default {
.before-sale
.package-code-box
.radio-add-block
{
color
:
#606266
;
}
/* .no-label.el-form-item--small .el-form-item__content {
width: auto !important;
}
.radio-add-block .el-form-item--small .el-form-item__content {
/
deep
/
.glsx-combi-form
.no-label.el-form-item--small
.el-form-item__content
{
width
:
auto
!important
;
}
*/
}
/* 表格 */
/* .edit-equity .spesc-label {
padding: 1px 10px;
...
...
@@ -1222,5 +1242,9 @@ export default {
border
:
1px
solid
#5850ff
;
color
:
#5850ff
;
}
.reset-btn
{
border
:
1px
solid
#909090
;
color
:
#333333
;
}
/* 表格 */
</
style
>
src/views/ghPreSale/equityList.vue
View file @
96e05b6
<!-- 权益订单列表 -->
<
template
>
<div
class=
"before-sale"
>
<div>
<div
class=
"add-benefit"
>
<el-button
fn=
"新增权益"
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
新增权益
</el-button>
<div
class=
"top-tips"
><span
class=
"el-icon-warning"
></span>
请注意:订单列表还有
{{
countNoData
}}
单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。
</div>
</div>
...
...
@@ -19,17 +19,13 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<div
class=
"btn-item"
>
<el-button
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
style=
"position: relative;"
type=
"text"
@
click=
"handleUpload(scope.scope)"
>
上传资料
<span
v-show=
"scope.scope.dataPerfection == 0"
class=
"circule-tips"
></span></el-button>
</div>
<div
class=
"btn-item"
>
<el-button
v-if=
"[0].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<el-button
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</el-button>
</div>
</div>
</GLTable>
<!-- 表格区域 end -->
...
...
@@ -452,7 +448,7 @@ export default {
{
label
:
'操作'
,
prop
:
''
,
width
:
'2
2
0px'
,
width
:
'2
0
0px'
,
fixed
:
'right'
,
addHtml
:
'table-btns'
}
...
...
@@ -637,18 +633,32 @@ export default {
apiName
:
apiName
,
apiParams
:
apiParams
}
if
(
title
==
'退单'
)
{
this
.
$confirm
(
'是否确认退单?'
,
'退单'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
handleSecondConfirm
()
})
return
}
this
.
handleSecondCancel
()
},
handleSecondConfirm
()
{
this
.
$apis
[
this
.
secondObj
.
apiModule
][
this
.
secondObj
.
apiName
](
this
.
secondObj
.
apiParams
).
then
(
res
=>
{
this
.
handleSecondCancel
()
this
.
isTipVisible
=
true
// this.handleSecondCancel()
// this.isTipVisible = true
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
this
.
editNotify
=
res
clearTimeout
(
this
.
timer
)
this
.
timer
=
setTimeout
(()
=>
{
this
.
isTipVisible
=
false
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
)
//
clearTimeout(this.timer)
//
this.timer = setTimeout(() => {
//
this.isTipVisible = false
//
}, this.editNotify.code == '0' ? 1500 : 3000)
if
(
res
.
code
==
'0'
)
{
this
.
handleSearch
()
}
...
...
@@ -754,6 +764,8 @@ export default {
]
}
})
console
.
log
(
this
.
uploadFormData
)
console
.
log
(
this
.
uploadForm
)
this
.
handleUploadFileClose
()
},
handleUploadFileClose
()
{
...
...
@@ -833,12 +845,21 @@ export default {
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.before-sale
{
padding-top
:
17px
;
}
.before-sale
.flex
{
display
:
flex
;
}
.number
{
/
deep
/
.add-benefit
.el-button
span
{
margin-left
:
5px
;
}
/
deep
/
.number
{
.
el-form-item
:
first-child
{
.
input-with-select
{
width
:
286px
!important
;
...
...
@@ -860,9 +881,6 @@ export default {
}
}
.before-sale
{
padding-top
:
17px
;
}
.before-sale
.container
{
padding
:
0px
20px
20px
40px
;
background
:
#ffffff
;
...
...
@@ -915,23 +933,19 @@ export default {
line-height
:
16px
;
}
.before-sale
{
.btn-item{
display
:
flex
;
justify-content
:
flex-start
;
padding
:
0
10px
;
.el-button
{
margin-right
:
0
;
margin-left
:
28px
;
&:first-child{
margin-left
:
0
;
}
}
&
:first-child
{
margin-bottom
:
10px
;
}
}
.before-sale
.table-btns
{
display
:
grid
;
grid-template-columns
:
repeat
(
auto-fill
,
33.33%
);
grid-row-gap
:
10px
;
}
.before-sale
.table-btns
.el-button
{
//
padding
:
0
0
0
5px
;
border-radius
:
0
;
border
:
0
;
padding
:
0
;
margin
:
0
;
}
.tips-dialog
.el-icon-success
{
margin-right
:
10px
;
font-size
:
22px
;
...
...
@@ -950,6 +964,7 @@ export default {
.f-size
{
font-size
:
14px
;
display
:
flex
;
line-height
:
22px
;
/* text-align: center; */
}
.tips-dialog
.el-dialog__body
{
...
...
src/views/ghPreSale/financeIndex.vue
View file @
96e05b6
...
...
@@ -649,7 +649,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.before-sale
.container
{
padding
:
0px
20px
20px
40px
;
background
:
#ffffff
;
...
...
@@ -743,7 +743,7 @@ export default {
}
.number
{
/
deep
/
.number
{
.
el-form-item
:
first-child
{
.
input-with-select
{
width
:
286px
!important
;
...
...
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