Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 c9be0573
authored
Jun 02, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.11.0' of 192.168.3.233:saas/scrm-micro-presale into v3.11.0
2 parents
2b704b76
8fac1200
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
17 deletions
src/views/ContractManager/addTmpl.vue
src/views/serviceConfig/components/ServicesTable/index.vue
src/views/worryFree/index.vue
src/views/ContractManager/addTmpl.vue
View file @
c9be057
...
@@ -23,9 +23,11 @@
...
@@ -23,9 +23,11 @@
</div>
</div>
<div
class=
"footer-btn"
>
<div
class=
"footer-btn"
>
<el-button
@
click=
"handelCancel"
>
取消
</el-button>
<el-button
@
click=
"handelCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"commitTemplate('preview')"
>
预览
</el-button>
<el-button
type=
"primary"
@
click=
"commitTemplate"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"commitTemplate"
>
提交
</el-button>
</div>
</div>
</div>
</div>
<pdf-dialog
:isVisible=
"isPdfVisible"
title=
"合同"
:pdfUrl=
"pdfUrl"
@
closeDialog=
"handlePdfClose"
></pdf-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -44,17 +46,24 @@ const errorTipObj = {
...
@@ -44,17 +46,24 @@ const errorTipObj = {
import
FoldFrame
from
'./components/FoldFrame'
import
FoldFrame
from
'./components/FoldFrame'
import
Upload
from
'@/components/Upload'
import
Upload
from
'@/components/Upload'
import
Editor
from
'@/components/Editor'
import
Editor
from
'@/components/Editor'
const
replaceArr
=
[
'contractIntroduce'
,
'relevantDefinition'
,
'useConditions'
,
'serviceScope'
,
'exclusionLiability'
,
'serviceData'
,
'specialStatement'
]
import
pdfDialog
from
'@/views/beforeSale/pdfDialog'
export
default
{
export
default
{
name
:
'AddTmpl'
,
name
:
'AddTmpl'
,
components
:{
components
:{
Editor
,
Editor
,
Upload
,
Upload
,
FoldFrame
FoldFrame
,
pdfDialog
},
},
data
()
{
data
()
{
return
{
return
{
isPdfVisible
:
false
,
pdfUrl
:
''
,
placeholderList
:
[],
placeholderList
:
[],
pdfObj
:{
merchantId
:
''
,
packageCode
:
''
},
contentObj
:
{
contentObj
:
{
id
:
''
,
id
:
''
,
logoUrl
:
''
,
logoUrl
:
''
,
...
@@ -147,11 +156,12 @@ export default {
...
@@ -147,11 +156,12 @@ export default {
if
(
res
&&
res
.
templateConfig
){
if
(
res
&&
res
.
templateConfig
){
this
.
placeholderList
=
res
.
placeholderList
this
.
placeholderList
=
res
.
placeholderList
for
(
const
key
in
this
.
contentObj
){
for
(
const
key
in
this
.
contentObj
){
if
(
replaceArr
.
includes
(
key
)){
res
.
templateConfig
[
key
]
=
res
.
templateConfig
[
key
]?.
replace
(
'<p></p>'
,
'<p><br></p>'
)
}
this
.
contentObj
[
key
]
=
res
.
templateConfig
[
key
]
this
.
contentObj
[
key
]
=
res
.
templateConfig
[
key
]
}
}
this
.
pdfObj
=
{
merchantId
:
res
.
templateConfig
.
merchantId
,
packageCode
:
res
.
templateConfig
.
packageCode
},
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
useConditionsRef
[
0
].
replaceText
()
this
.
$refs
.
useConditionsRef
[
0
].
replaceText
()
})
})
...
@@ -162,13 +172,10 @@ export default {
...
@@ -162,13 +172,10 @@ export default {
this
.
$router
.
push
(
'/ContractManager/index'
)
this
.
$router
.
push
(
'/ContractManager/index'
)
},
},
getParams
(){
getParams
(){
cons
t
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
contentObj
)
le
t
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
contentObj
)
let
errorTip
=
''
;
let
errorTip
=
''
;
params
.
useConditions
=
params
.
useConditions
?.
replace
(
/<span.*
?
class.*
?
keyname="
(
.*
?)
".*
?
<
\/
span>/g
,
'$1'
)
params
.
useConditions
=
params
.
useConditions
?.
replace
(
/<span.*
?
class.*
?
keyname="
(
.*
?)
".*
?
<
\/
span>/g
,
'$1'
)
for
(
const
key
in
params
){
for
(
const
key
in
params
){
if
(
replaceArr
.
includes
(
key
)){
params
[
key
]
=
params
[
key
]?.
replace
(
'<br>'
,
''
)
}
if
(
key
!=
'id'
&&
!
params
[
key
]){
if
(
key
!=
'id'
&&
!
params
[
key
]){
if
(
key
==
'electronicSealUrl'
||
key
==
'logoUrl'
){
if
(
key
==
'electronicSealUrl'
||
key
==
'logoUrl'
){
errorTip
=
`请上传
${
key
==
'logoUrl'
?
'Logo图'
:
'电子章图片'
}
`
errorTip
=
`请上传
${
key
==
'logoUrl'
?
'Logo图'
:
'电子章图片'
}
`
...
@@ -180,16 +187,36 @@ export default {
...
@@ -180,16 +187,36 @@ export default {
if
(
errorTip
)
return
{
status
:
-
1
,
errorTip
}
if
(
errorTip
)
return
{
status
:
-
1
,
errorTip
}
return
params
return
params
},
},
commitTemplate
(){
commitTemplate
(
type
){
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
if
(
params
.
status
==
-
1
)
return
this
.
$message
.
error
(
params
.
errorTip
)
if
(
params
.
status
==
-
1
)
return
this
.
$message
.
error
(
params
.
errorTip
)
this
.
$apis
.
contractManager
.
saveContractTemplateApi
({...
params
}).
then
(
res
=>
{
this
.
$apis
.
contractManager
.
saveContractTemplateApi
({...
params
}).
then
(
res
=>
{
if
(
res
){
if
(
res
){
this
.
$message
.
success
(
'编辑成功'
)
if
(
type
==
'preview'
){
this
.
$router
.
push
(
'/ContractManager/index'
)
this
.
handlePdf
()
}
else
{
this
.
$message
.
success
(
'编辑成功'
)
this
.
$router
.
push
(
'/ContractManager/index'
)
}
}
}
})
})
},
},
handlePdfClose
()
{
this
.
isPdfVisible
=
!
this
.
isPdfVisible
},
handlePdf
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
this
.
$apis
.
contractManager
.
printContractApi
({
packageCode
:
this
.
pdfObj
.
packageCode
,
merchantId
:
this
.
pdfObj
.
merchantId
}).
then
(
res
=>
{
this
.
pdfUrl
=
res
this
.
handlePdfClose
()
loading
.
close
()
})
},
uploadSuccess
(
e
){
uploadSuccess
(
e
){
this
.
contentObj
[
e
.
attr
]
=
e
.
url
this
.
contentObj
[
e
.
attr
]
=
e
.
url
},
},
...
...
src/views/serviceConfig/components/ServicesTable/index.vue
View file @
c9be057
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
<tr>
<tr>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
<th
:key=
"index"
>
上架成本
<th
:key=
"index"
>
上架成本
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<
!--
<
el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
</el-tooltip>
</el-tooltip>
-->
</th>
</th>
<th
:key=
"index"
>
销售成本
<th
:key=
"index"
>
销售成本
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<
!--
<
el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
</el-tooltip>
</el-tooltip>
-->
</th>
</th>
</
template
>
</
template
>
</tr>
</tr>
...
...
src/views/worryFree/index.vue
View file @
c9be057
...
@@ -396,7 +396,7 @@ export default {
...
@@ -396,7 +396,7 @@ export default {
{
{
label
:
'卡编号'
,
label
:
'卡编号'
,
prop
:
'cardNumber'
,
prop
:
'cardNumber'
,
width
:
1
0
0
width
:
1
8
0
},
},
{
{
label
:
'序列号'
,
label
:
'序列号'
,
...
...
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