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 d25d3e34
authored
Dec 31, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售前
1 parent
6abaf6c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
39 deletions
src/api/modules/beforeSale.js
src/components/glsx-combi-form/index.vue
src/setup/qiankun.js
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/api/modules/beforeSale.js
View file @
d25d3e3
...
...
@@ -172,7 +172,7 @@ const getPackageListApi = params => {
}
const
getEquityApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
detail`
params
.
method
=
`
scrm.api.equity.service.channel.order.
detail`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
...
...
@@ -182,7 +182,7 @@ const getEquityApi = params => {
}
const
updateEquityApi
=
params
=>
{
params
.
method
=
`
${
orderPath
}
insert.or.update`
params
.
method
=
`
scrm.api.equity.service.channel.order.
insert.or.update`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
...
...
src/components/glsx-combi-form/index.vue
View file @
d25d3e3
...
...
@@ -56,7 +56,7 @@
<el-radio-group
v-else-if=
"item.type === 'radio'"
v-model=
"formObj[item.name]"
:disabled=
"item.isDisabled"
@
change=
"item.handleRadioChange"
>
<el-radio
v-for=
"subItem in item.optionList"
:key=
"subItem[item.optionId]"
:label=
"subItem[item.optionId]"
>
{{ subItem[item.optionLabel] }}
</el-radio>
</el-radio-group>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:style=
"{ width: item.width || defaultWidth }"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<el-date-picker
v-else-if=
"item.type === 'datePicker'"
:disabled=
"item.isDisabled"
v-model=
"formObj[item.name]"
:type=
"item.dateType || 'daterange'"
:style=
"{ width: item.width || defaultWidth }"
:clearable=
"item.isClear || false"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
></el-date-picker>
<
template
v-else-if=
"item.type === 'upload'"
>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
...
...
src/setup/qiankun.js
View file @
d25d3e3
...
...
@@ -22,8 +22,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
0418fc57-bbf6-4e91-b9f4-2c9943ed35f6
'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
0418fc57-bbf6-4e91-b9f4-2c9943ed35f6
'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9
'
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9
'
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/beforeSale/editEquity.vue
View file @
d25d3e3
This diff is collapsed.
Click to expand it.
src/views/beforeSale/equityList.vue
View file @
d25d3e3
...
...
@@ -7,8 +7,7 @@
</div>
<div
class=
"container"
>
<div
class=
"find_wrap"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
</glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData2"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
class=
"resetBtn"
@
click=
"handleReset"
>
重置
</el-button>
...
...
@@ -188,14 +187,14 @@ export default {
{
label
:
'车主姓名'
,
prop
:
'customerName'
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'合同号'
,
line
:
1
,
line
:
1
,
prop
:
'contractNo'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
...
...
@@ -204,7 +203,7 @@ export default {
},
{
label
:
'提单成功时间'
,
line
:
1
,
line
:
1
,
prop
:
'successDate'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
...
...
@@ -213,7 +212,7 @@ export default {
},
{
label
:
'购车日期'
,
line
:
1
,
line
:
1
,
prop
:
'billingDate'
,
width
:
'130px'
,
formatter
:
cellValue
=>
{
...
...
@@ -222,7 +221,7 @@ export default {
},
{
label
:
'店面名称'
,
line
:
1
,
line
:
1
,
prop
:
'merchantName'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
...
...
@@ -231,7 +230,7 @@ export default {
},
{
label
:
'车品牌'
,
line
:
1
,
line
:
1
,
prop
:
'vehicleBrandName'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
...
...
@@ -240,25 +239,25 @@ export default {
},
{
label
:
'车系'
,
line
:
1
,
width
:
"160px"
,
line
:
1
,
width
:
'160px'
,
prop
:
'vehicleSeriesName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehicleSeriesName
||
'-'
}
},
{
{
label
:
'无忧卡卡号'
,
line
:
1
,
line
:
1
,
prop
:
'cardSeqNo'
,
width
:
'200px'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
carNo
||
'-'
}
},
{
label
:
'车架号'
,
line
:
1
,
line
:
1
,
prop
:
'vin'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
...
...
@@ -267,7 +266,7 @@ export default {
},
{
label
:
'电话'
,
line
:
1
,
line
:
1
,
prop
:
'customerPhone'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
...
...
@@ -276,15 +275,15 @@ export default {
},
{
label
:
'产品名称'
,
line
:
1
,
line
:
1
,
prop
:
'packageName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
packageName
||
'-'
}
},
{
{
label
:
'无忧保障服务费'
,
line
:
1
,
line
:
1
,
prop
:
'actualSalesPrice'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
...
...
@@ -302,7 +301,7 @@ export default {
// },
{
label
:
'服务期限'
,
line
:
1
,
line
:
1
,
prop
:
'servicePeriod'
,
formatter
:
cellValue
=>
{
return
cellValue
.
servicePeriod
?
'1年'
:
'-'
...
...
@@ -310,7 +309,7 @@ export default {
},
{
label
:
'生效时间'
,
line
:
1
,
line
:
1
,
prop
:
'effectiveDate'
,
width
:
'130px'
,
formatter
:
cellValue
=>
{
...
...
@@ -319,7 +318,7 @@ export default {
},
{
label
:
'服务状态'
,
line
:
1
,
line
:
1
,
prop
:
'orderStatus'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
...
...
@@ -367,7 +366,7 @@ export default {
// },
{
label
:
'省代'
,
line
:
1
,
line
:
1
,
prop
:
'provinceMerchantName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
provinceMerchantName
||
'-'
...
...
@@ -375,7 +374,7 @@ export default {
},
{
label
:
'市代'
,
line
:
1
,
line
:
1
,
prop
:
'cityMerchantName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
cityMerchantName
||
'-'
...
...
@@ -383,7 +382,7 @@ export default {
},
{
label
:
'操作人'
,
line
:
1
,
line
:
1
,
prop
:
'updatedBy'
,
width
:
'140px'
,
formatter
:
cellValue
=>
{
...
...
@@ -458,7 +457,7 @@ export default {
glsxDialog
,
pdfDialog
},
mounted
()
{
this
.
editNotify
=
this
.
$route
.
params
if
(
this
.
isFirst
&&
this
.
editNotify
.
hasOwnProperty
(
'code'
))
{
...
...
@@ -580,13 +579,29 @@ 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
if
(
this
.
secondObj
.
title
==
'退单'
)
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
}
this
.
editNotify
=
res
clearTimeout
(
this
.
timer
)
this
.
timer
=
setTimeout
(
...
...
@@ -809,9 +824,9 @@ export default {
margin
:
0
20px
;
}
}
.table_wrapper
{
.table_wrapper
{
margin-top
:
10px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
padding
:
20px
;
}
...
...
@@ -860,17 +875,17 @@ export default {
.before-sale
.el-table
.cell
{
line-height
:
16px
;
}
.before-sale
.table-btns
{
.before-sale
.table-btns
{
display
:
grid
;
grid-template-columns
:
repeat
(
auto-fill
,
33.33%
);
grid-row-gap
:
10px
;
grid-row-gap
:
10px
;
}
.before-sale
.table-btns
.el-button
{
//
padding
:
0
0
0
5px
;
border-radius
:
0
;
border
:
0
;
padding
:
0
;
margin
:
0
;
border
:
0
;
padding
:
0
;
margin
:
0
;
}
//
.before-sale
.table-btns
.el-button
:first-child
{
...
...
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