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 5b412d33
authored
Nov 26, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
热线;完善资料
1 parent
34c86dd4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
16 deletions
src/api/modules/beforeSale.js
src/components/glsx-combi-form/index.vue
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/api/modules/beforeSale.js
View file @
5b412d3
...
@@ -12,6 +12,15 @@ const getUserInfoApi = params => {
...
@@ -12,6 +12,15 @@ const getUserInfoApi = params => {
sign
:
true
sign
:
true
})
})
}
}
const
getCountNoDataApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
count.unDataEffective`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.list.get`
params
.
method
=
`
${
defaultPath
}
order.list.get`
...
@@ -229,4 +238,4 @@ const backOrderApi = params => {
...
@@ -229,4 +238,4 @@ const backOrderApi = params => {
})
})
}
}
export
default
{
getUserInfoApi
,
getListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
updateHotlineApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getOrderValueApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
}
export
default
{
getUserInfoApi
,
get
CountNoDataApi
,
get
ListApi
,
getMerchantApi
,
getExportApi
,
getPriteApi
,
getCarBrandListApi
,
getCarChildListApi
,
getCarTypeListApi
,
getCarSeriesListApi
,
getHotlineApi
,
updateHotlineApi
,
getProListApi
,
getPackageListApi
,
getEquityApi
,
updateEquityApi
,
createCodeApi
,
getOrderAttrApi
,
getOrderValueApi
,
updateOrderApi
,
uploadImgApi
,
backOrderApi
}
\ No newline at end of file
\ No newline at end of file
src/components/glsx-combi-form/index.vue
View file @
5b412d3
<!-- 搜索 -->
<!-- 搜索 -->
<
template
>
<
template
>
<div
class=
"glsx-combi-form"
>
<div
class=
"glsx-combi-form
clearfix
"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
...
@@ -255,6 +255,11 @@ export default {
...
@@ -255,6 +255,11 @@ export default {
/* .glsx-combi-form .glsx-combi-form-block {
/* .glsx-combi-form .glsx-combi-form-block {
padding: 16px 40px 0;
padding: 16px 40px 0;
} */
} */
.glsx-combi-form.clearfix
::after
{
content
:
''
;
display
:
inline-block
;
clear
:
both
;
}
.glsx-combi-form
.isBlock
{
.glsx-combi-form
.isBlock
{
display
:
block
!important
;
display
:
block
!important
;
}
}
...
...
src/views/beforeSale/editEquity.vue
View file @
5b412d3
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
<div
class=
"before-sale edit-equity"
>
<div
class=
"before-sale edit-equity"
>
<div
class=
"help-service"
>
<div
class=
"help-service"
>
<img
class=
"service-img"
src=
"./image/code.png"
/>
<img
class=
"service-img"
src=
"./image/code.png"
/>
<p>
如需帮助,扫一扫
</p>
<p>
扫码关注,在线咨询
</p>
<
p>
在线客服随时咨询
</p
>
<
!--
<p>
在线客服随时咨询
</p>
--
>
<p
class=
"service-hotline"
>
客服
热线
</p>
<p
class=
"service-hotline"
>
服务
热线
</p>
<p
class=
"service-phone"
>
400-6723-886
</p>
<p
class=
"service-phone"
>
18938907441
</p>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<p
class=
"edit-title"
>
车辆信息
</p>
<p
class=
"edit-title"
>
车辆信息
</p>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</tr>
</tr>
<tr
v-for=
"(m, n) in scope.scope.tableList"
:key=
"n"
>
<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 + '%' }">
<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]">
<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 + '是必填项'"
>
<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>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-popover>
...
@@ -182,7 +182,7 @@ export default {
...
@@ -182,7 +182,7 @@ export default {
append
:
'元'
,
append
:
'元'
,
maxlength
:
11
,
maxlength
:
11
,
inputBlur
:
()
=>
{
inputBlur
:
()
=>
{
this
.
package
Attr
()
this
.
package
ToPrice
()
}
}
},
},
{
{
...
@@ -311,7 +311,6 @@ export default {
...
@@ -311,7 +311,6 @@ export default {
optionLabel
:
'packageName'
,
optionLabel
:
'packageName'
,
addHtml
:
'packageCode'
,
addHtml
:
'packageCode'
,
handleRadioChange
:
val
=>
{
handleRadioChange
:
val
=>
{
console
.
log
(
'cwq-----------'
)
this
.
packageAttr
()
this
.
packageAttr
()
}
}
}
}
...
@@ -529,7 +528,7 @@ export default {
...
@@ -529,7 +528,7 @@ export default {
this
.
autoGenerate
()
this
.
autoGenerate
()
})
})
},
},
package
Attr
(
recovery
=
false
)
{
package
ToPrice
(
)
{
var
targetItem
=
this
.
packageList
.
find
(
item
=>
item
.
packageCode
==
this
.
editForm
.
packageCode
)
var
targetItem
=
this
.
packageList
.
find
(
item
=>
item
.
packageCode
==
this
.
editForm
.
packageCode
)
this
.
editForm
.
suggestedSellingPrice
=
''
this
.
editForm
.
suggestedSellingPrice
=
''
if
(
this
.
editForm
.
vehicle
.
invoicePrice
)
{
if
(
this
.
editForm
.
vehicle
.
invoicePrice
)
{
...
@@ -541,6 +540,10 @@ export default {
...
@@ -541,6 +540,10 @@ export default {
}
}
})
})
}
}
},
packageAttr
(
recovery
=
false
)
{
var
targetItem
=
this
.
packageList
.
find
(
item
=>
item
.
packageCode
==
this
.
editForm
.
packageCode
)
this
.
packageToPrice
()
// console.log(this.editForm)
// console.log(this.editForm)
this
.
editRulePro
=
{}
this
.
editRulePro
=
{}
this
.
editFormPro
=
{}
this
.
editFormPro
=
{}
...
@@ -603,6 +606,7 @@ export default {
...
@@ -603,6 +606,7 @@ export default {
name
:
j
.
attributeName
+
i
,
name
:
j
.
attributeName
+
i
,
sort
:
i
,
sort
:
i
,
attributeGroup
:
j
.
attributeGroup
,
attributeGroup
:
j
.
attributeGroup
,
maxlength
:
j
.
maxLength
,
required
:
j
.
required
,
required
:
j
.
required
,
attributeType
:
j
.
attributeType
,
attributeType
:
j
.
attributeType
,
isDisabled
:
this
.
disabled
||
this
.
successDisable
isDisabled
:
this
.
disabled
||
this
.
successDisable
...
@@ -899,7 +903,7 @@ export default {
...
@@ -899,7 +903,7 @@ export default {
.help-service
.service-img
{
.help-service
.service-img
{
width
:
124px
;
width
:
124px
;
height
:
124px
;
height
:
124px
;
margin
:
1
0px
0
16px
;
margin
:
1
6px
0
;
}
}
.help-service
p
{
.help-service
p
{
margin
:
0
;
margin
:
0
;
...
...
src/views/beforeSale/equityList.vue
View file @
5b412d3
...
@@ -15,12 +15,13 @@
...
@@ -15,12 +15,13 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"table-top-tips"
>
请注意:订单列表还有
{{
countNoData
}}
单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"
zone
Ref"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"
equity
Ref"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<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, 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)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleUpload(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>
<el-button
v-if=
"[0].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
<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=
"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=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退保
</el-button>
...
@@ -30,7 +31,7 @@
...
@@ -30,7 +31,7 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<pdf-dialog
:isVisible=
"isPdfVisible"
title=
"合同"
:pdfUrl=
"pdfUrl"
@
closeDialog=
"handlePdfClose"
></pdf-dialog>
<pdf-dialog
:isVisible=
"isPdfVisible"
title=
"合同"
:pdfUrl=
"pdfUrl"
@
closeDialog=
"handlePdfClose"
></pdf-dialog>
<glsx-dialog
title=
"上传资料"
:isVisible
.
sync=
"isFileVisible"
width=
"70%"
@
confirmDialog=
"handleUploadFileConfirm
"
@
closeDialog=
"handleUploadFileClose"
>
<glsx-dialog
title=
"上传资料"
:isVisible
.
sync=
"isFileVisible"
width=
"70%"
noCancel=
"true"
btnOkLabel=
"关闭"
@
confirmDialog=
"handleUploadFileClose
"
@
closeDialog=
"handleUploadFileClose"
>
<glsx-combi-form
labelWidth=
"300px"
isBlock=
"true"
ref=
"uploadFormRef"
formRef=
"uploadChildRef"
:formRules=
"uploadRule"
:formObj
.
sync=
"uploadForm"
:formData=
"uploadFormData"
></glsx-combi-form>
<glsx-combi-form
labelWidth=
"300px"
isBlock=
"true"
ref=
"uploadFormRef"
formRef=
"uploadChildRef"
:formRules=
"uploadRule"
:formObj
.
sync=
"uploadForm"
:formData=
"uploadFormData"
></glsx-combi-form>
</glsx-dialog>
</glsx-dialog>
</div>
</div>
...
@@ -47,6 +48,7 @@ export default {
...
@@ -47,6 +48,7 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
userInfo
:
{},
userInfo
:
{},
countNoData
:
''
,
levelToShow
:
{
levelToShow
:
{
1
:
'merchantId'
,
1
:
'merchantId'
,
2
:
'dqtId'
,
2
:
'dqtId'
,
...
@@ -342,8 +344,8 @@ export default {
...
@@ -342,8 +344,8 @@ export default {
this
.
baseData
.
goodsStatusList
=
res
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
})
})
this
.
getCountNoData
()
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getUserInfoApi
({}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
userInfo
=
res
this
.
userInfo
=
res
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
res
.
merchantAccountLevel
])
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
res
.
merchantAccountLevel
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchFormData
[
idx
].
isHide
=
false
...
@@ -357,6 +359,11 @@ export default {
...
@@ -357,6 +359,11 @@ export default {
},
},
methods
:
{
methods
:
{
getCountNoData
()
{
this
.
$apis
.
beforeSale
.
getCountNoDataApi
({}).
then
(
res
=>
{
this
.
countNoData
=
res
})
},
getMerchantList
(
merchantId
,
accountLevel
,
attrName
,
listName
)
{
getMerchantList
(
merchantId
,
accountLevel
,
attrName
,
listName
)
{
var
params
=
{
var
params
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
...
@@ -557,7 +564,7 @@ export default {
...
@@ -557,7 +564,7 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
zone
Ref
.
refreshTable
()
this
.
$refs
.
equity
Ref
.
refreshTable
()
},
},
handleReset
()
{
handleReset
()
{
...
@@ -586,6 +593,22 @@ export default {
...
@@ -586,6 +593,22 @@ export default {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.before-sale
.table-top-tips
{
color
:
red
;
margin-bottom
:
10px
;
}
.before-sale
.circule-tips
{
position
:
absolute
;
top
:
0
;
right
:
-6px
;
display
:
inline-block
;
height
:
6px
;
width
:
6px
;
border-radius
:
100%
;
background-color
:
red
;
}
.before-sale
.footer-btns
{
.before-sale
.footer-btns
{
float
:
right
;
float
:
right
;
margin-bottom
:
18px
;
margin-bottom
:
18px
;
...
...
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