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 be93a0ca
authored
Jan 03, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合同模板联调bug修复
1 parent
2b9892d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
src/views/ContractManager/addTmpl.vue
src/views/ContractManager/components/changeContractDialog/index.vue
src/views/ContractManager/addTmpl.vue
View file @
be93a0c
...
@@ -211,6 +211,7 @@ export default {
...
@@ -211,6 +211,7 @@ export default {
params
.
useConditions
=
params
.
useConditions
?.
replace
(
/<span.*
?
data-w-e-type.*
?
data-key="
(
.*
?)
".*
?
<
\/
span>/g
,
'$1'
)
params
.
useConditions
=
params
.
useConditions
?.
replace
(
/<span.*
?
data-w-e-type.*
?
data-key="
(
.*
?)
".*
?
<
\/
span>/g
,
'$1'
)
if
(
this
.
templateType
==
1
)
{
if
(
this
.
templateType
==
1
)
{
params
=
{
params
=
{
id
:
params
.
id
,
baseContext
:
params
.
useConditions
,
baseContext
:
params
.
useConditions
,
contractTitle
:
params
.
contractTitle
,
contractTitle
:
params
.
contractTitle
,
contractIntroduce
:
params
.
contractIntroduce
,
contractIntroduce
:
params
.
contractIntroduce
,
...
...
src/views/ContractManager/components/changeContractDialog/index.vue
View file @
be93a0c
...
@@ -55,7 +55,8 @@ export default {
...
@@ -55,7 +55,8 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
getListApi
:
this
.
$apis
.
contractManager
.
getContractListApi
,
getListApi
:
this
.
$apis
.
contractManager
.
getContractListApi
,
searchForm
:
{
searchForm
:
{
id
:
''
id
:
''
,
templateName
:
''
},
},
buttonList
:
[
buttonList
:
[
{
{
...
@@ -76,7 +77,15 @@ export default {
...
@@ -76,7 +77,15 @@ export default {
label
:
'合同编号'
,
label
:
'合同编号'
,
name
:
'id'
,
name
:
'id'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
,
isHide
:
this
.
changeContractObj
.
isBase
},
{
label
:
'合同名称'
,
name
:
'templateName'
,
type
:
'input'
,
isClear
:
true
,
isHide
:
!
this
.
changeContractObj
.
isBase
}
}
],
],
tableParams
:
{
tableParams
:
{
...
@@ -113,25 +122,20 @@ export default {
...
@@ -113,25 +122,20 @@ export default {
this
.
isPdfVisible
=
!
this
.
isPdfVisible
this
.
isPdfVisible
=
!
this
.
isPdfVisible
},
},
//
打印
//
预览
handlePdf
(
row
)
{
handlePdf
(
row
)
{
console
.
log
(
row
)
if
(
this
.
changeContractObj
.
isBase
)
{
this
.
pdfUrl
=
row
.
previewUrl
this
.
handlePdfClose
()
return
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
let
params
=
{}
this
.
$apis
.
contractManager
.
printContractApi
({
packageCode
:
row
.
packageCode
,
merchantId
:
row
.
merchantId
}).
then
(
res
=>
{
if
(
this
.
changeContractObj
.
isBase
)
{
params
=
{
packageCode
:
this
.
changeContractObj
.
skuPackageCode
,
baseFlag
:
1
}
}
else
{
params
=
{
packageCode
:
row
.
packageCode
,
merchantId
:
row
.
merchantId
}
}
this
.
$apis
.
contractManager
.
printContractApi
(
params
).
then
(
res
=>
{
this
.
pdfUrl
=
res
this
.
pdfUrl
=
res
this
.
handlePdfClose
()
this
.
handlePdfClose
()
loading
.
close
()
loading
.
close
()
...
...
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