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 72375963
authored
Dec 29, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合同打印订单导出接口更换
1 parent
435bf2d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
25 deletions
src/api/modules/beforeSale.js
src/setup/qiankun.js
src/views/beforeSale/checkSet.vue
src/views/beforeSale/editEquity.vue
src/views/beforeSale/equityList.vue
src/views/beforeSale/serviceSet.vue
src/api/modules/beforeSale.js
View file @
7237596
...
@@ -44,7 +44,7 @@ const getMerchantApi = params => {
...
@@ -44,7 +44,7 @@ const getMerchantApi = params => {
}
}
const
getExportApi
=
params
=>
{
const
getExportApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.export.get`
params
.
method
=
`
scrm.api.equity.service.package.dj.
order.export.get`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
method
:
'GET'
,
...
@@ -55,7 +55,7 @@ const getExportApi = params => {
...
@@ -55,7 +55,7 @@ const getExportApi = params => {
// 打印合同
// 打印合同
const
getPriteApi
=
params
=>
{
const
getPriteApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.prite
`
params
.
method
=
`
scrm.api.equity.service.package.dj.order.print
`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
method
:
'GET'
,
...
...
src/setup/qiankun.js
View file @
7237596
...
@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -22,7 +22,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
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: globalState.session.token } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
f518259d-1edc-4695-a1cd-a3487567e0af
'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'
781f08c5-c443-46fd-80e1-f98d94673a73
'
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/beforeSale/checkSet.vue
View file @
7237596
...
@@ -38,6 +38,7 @@ export default {
...
@@ -38,6 +38,7 @@ export default {
}
else
{
}
else
{
this
.
status
=
2
this
.
status
=
2
}
}
localStorage
.
setItem
(
'preSetStatus'
,
this
.
status
)
})
})
}
}
}
}
...
...
src/views/beforeSale/editEquity.vue
View file @
7237596
This diff is collapsed.
Click to expand it.
src/views/beforeSale/equityList.vue
View file @
7237596
...
@@ -250,7 +250,7 @@ export default {
...
@@ -250,7 +250,7 @@ export default {
{
{
label
:
'无忧卡卡号'
,
label
:
'无忧卡卡号'
,
line
:
1
,
line
:
1
,
prop
:
'carNo'
,
prop
:
'car
dSeq
No'
,
width
:
'200px'
,
width
:
'200px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
carNo
||
'-'
return
cellValue
.
carNo
||
'-'
...
@@ -630,22 +630,22 @@ export default {
...
@@ -630,22 +630,22 @@ export default {
// 打印
// 打印
handlePdf
(
row
)
{
handlePdf
(
row
)
{
if
(
!
row
.
auditStatus
)
{
//
if (!row.auditStatus) {
const
h
=
this
.
$createElement
//
const h = this.$createElement
this
.
isTipVisible
=
true
//
this.isTipVisible = true
this
.
editNotify
=
{
//
this.editNotify = {
code
:
'-1'
,
//
code: '-1',
message
:
'财务未审核,合同无法打印'
//
message: '财务未审核,合同无法打印'
}
//
}
clearTimeout
(
this
.
timer
)
//
clearTimeout(this.timer)
this
.
timer
=
setTimeout
(
//
this.timer = setTimeout(
()
=>
{
//
() => {
this
.
isTipVisible
=
false
//
this.isTipVisible = false
},
//
},
this
.
editNotify
.
code
==
'0'
?
1500
:
3000
//
this.editNotify.code == '0' ? 1500 : 3000
)
//
)
return
true
//
return true
}
//
}
this
.
handlePdfClose
()
this
.
handlePdfClose
()
this
.
$apis
.
beforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
pdfUrl
=
res
this
.
pdfUrl
=
res
...
...
src/views/beforeSale/serviceSet.vue
View file @
7237596
<!-- 店面服务设置 -->
<!-- 店面服务设置 -->
<
template
>
<
template
>
<div
class=
"edit-equity"
>
<div
class=
"edit-equity"
>
<template
v-if=
"showPage == 1"
>
<div
class=
"edit-container"
>
<div
class=
"edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
...
@@ -26,10 +27,16 @@
...
@@ -26,10 +27,16 @@
>
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
</div>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
</template>
<!-- <div class="footer" :style="{ width: '100%' }">
<
template
v-if=
"showPage==2"
>
<el-button type="primary" @click="handleConfirm">确定</el-button>
<div
class=
"nodata_widget"
>
</div> -->
<div
:style=
"[
{ height: nodataHeight + 'px' }]" class="wrapper">
<img
src=
"../../assets/nodata_icon.png"
/>
<span
class=
"nodata_tip_1"
>
您暂未开通售前权益服务
</span>
<span
class=
"nodata_tip_2"
>
合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。
</span>
</div>
</div>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -79,7 +86,9 @@ export default {
...
@@ -79,7 +86,9 @@ export default {
baseData
:
{
baseData
:
{
carBrandOptions
:
[],
carBrandOptions
:
[],
carChildOptions
:
[]
carChildOptions
:
[]
}
},
showPage
:
0
,
nodataHeight
:
0
}
}
},
},
...
@@ -88,6 +97,14 @@ export default {
...
@@ -88,6 +97,14 @@ export default {
},
},
created
()
{
created
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
nodataHeight
=
clientHeight
*
0.8
const
openStatus
=
localStorage
.
getItem
(
'preSetStatus'
)
if
(
openStatus
==
2
)
{
this
.
showPage
=
2
return
}
this
.
showPage
=
1
this
.
getAllVehicleBrand
()
this
.
getAllVehicleBrand
()
this
.
getCarChildList
()
this
.
getCarChildList
()
},
},
...
@@ -250,4 +267,29 @@ export default {
...
@@ -250,4 +267,29 @@ export default {
z-index
:
999
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.nodata_widget
{
margin-top
:
17px
;
.wrapper
{
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
overflow
:
hidden
;
.nodata_tip_1
{
font-size
:
18px
;
font-weight
:
500
;
color
:
#3a3a3a
;
margin-top
:
48px
;
}
.nodata_tip_2
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#3a3a3a
;
margin-top
:
9px
;
}
}
}
</
style
>
</
style
>
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