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 01e416ae
authored
Jun 27, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合同模板优化需求
1 parent
b956061a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
181 additions
and
2 deletions
src/api/modules/contractManager.js
src/views/ContractManager/components/changeContractDialog/index.vue
src/views/ContractManager/index.vue
src/views/serviceConfig/addService.vue
src/api/modules/contractManager.js
View file @
01e416a
...
...
@@ -41,9 +41,20 @@ const printContractApi = params => {
})
}
const
copyTemplateApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.contract.template.copyTemplate`
return
http
({
url
:
CUR_BASE_URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getContractListApi
,
saveContractTemplateApi
,
getContractDetailApi
,
printContractApi
printContractApi
,
copyTemplateApi
}
\ No newline at end of file
src/views/ContractManager/components/changeContractDialog/index.vue
0 → 100644
View file @
01e416a
<
template
>
<GLDialog
bigTitle=
"选择合同"
mode=
"big"
:visible
.
sync=
"changeContractObj.visible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"105px"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"getTable"
>
查询
</el-button>
</span>
</glsx-combi-form>
<GLTable
:hasNum=
"false"
ref=
"contractTableRef"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"radioSlot"
slot-scope=
"scope"
>
<el-radio
v-model=
"curId"
:label=
"scope.scope.id"
>
</el-radio>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</span>
</GLTable>
</GLDialog>
</
template
>
<
script
>
import
url
from
'@/assets/empty.png'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
export
default
{
name
:
'changeContract'
,
components
:
{
glsxCombiForm
},
props
:
{
changeContractObj
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
size
:
'small'
,
curId
:
''
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
getListApi
:
this
.
$apis
.
contractManager
.
getContractListApi
,
searchForm
:
{
id
:
''
,
},
buttonList
:
[
{
type
:
'el-button'
,
name
:
row
=>
{
return
'预览'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
handlePdf
(
row
.
scope
)
}
}
],
searchFormData
:
[
{
label
:
'合同编号'
,
name
:
'id'
,
type
:
'input'
,
isClear
:
true
,
}
],
tableParams
:
{
listName
:
'list'
,
tableOption
:
{
width
:
'100px'
},
tableColumns
:
[
{
label
:
''
,
prop
:
'radioSlot'
,
addHtml
:
'radioSlot'
,
width
:
'50'
},
{
label
:
'合同编号'
,
prop
:
'id'
,
},
{
label
:
'关联商品'
,
prop
:
'packageName'
},
]
},
}
},
mounted
()
{
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
resolve
()
})
},
getTable
(){
this
.
$refs
.
contractTableRef
.
refreshTable
()
},
handleConfirm
(){
if
(
!
this
.
curId
)
return
this
.
$message
.
error
(
'请选择变更模板的合同'
)
const
params
=
{
sourceId
:
this
.
curId
,
targetId
:
this
.
changeContractObj
.
id
}
this
.
$apis
.
contractManager
.
copyTemplateApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'请选择变更模板的合同'
)
this
.
handleClose
()
}
})
},
handleClose
(){
this
.
changeContractObj
.
visible
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
>
</
style
>
\ No newline at end of file
src/views/ContractManager/index.vue
View file @
01e416a
...
...
@@ -20,6 +20,7 @@
</GLTable>
</div>
<pdf-dialog
:isVisible=
"isPdfVisible"
title=
"合同"
:pdfUrl=
"pdfUrl"
@
closeDialog=
"handlePdfClose"
></pdf-dialog>
<changeContractDialog
v-if=
"changeContractObj.visible"
:changeContractObj=
"changeContractObj"
></changeContractDialog>
</div>
</
template
>
...
...
@@ -27,15 +28,21 @@
import
*
as
dayjs
from
'dayjs'
import
utils
from
'../../util/util'
import
pdfDialog
from
'@/views/beforeSale/pdfDialog'
import
changeContractDialog
from
'./components/changeContractDialog'
export
default
{
name
:
'equityList'
,
components
:{
pdfDialog
pdfDialog
,
changeContractDialog
},
data
()
{
return
{
size
:
'small'
,
isPdfVisible
:
false
,
changeContractObj
:
{
visible
:
false
,
id
:
''
},
buttonList
:
[
{
type
:
'el-button'
,
...
...
@@ -60,6 +67,18 @@
listeners
:
{
click
:
row
=>
this
.
editContract
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'更换模板'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
changeContractTMPL
(
row
.
scope
)
}
}
],
searchForm
:
{
...
...
@@ -139,6 +158,13 @@
},
methods
:
{
changeContractTMPL
(
row
){
this
.
changeContractObj
=
{
visible
:
true
,
id
:
row
.
id
}
console
.
log
(
this
.
changeContractObj
)
},
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
?.
createdDate
?.
length
)
{
...
...
src/views/serviceConfig/addService.vue
View file @
01e416a
...
...
@@ -10,6 +10,12 @@
<el-checkbox
v-for=
"item in salePeriodList"
:label=
"item.key"
:key=
"item.key"
>
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
</div>
<div
slot=
"showProjectSlot"
>
<el-radio-group
:disabled=
"disabled"
v-model=
"formObj.mainPageFlag"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
</el-radio-group>
</div>
<div
slot=
"logoSettingSlot"
class=
"logo-setting"
>
<Upload
:disabled=
"routeInfo.type == 2"
v-for=
"item in logoList"
:url=
"formObj[item.key]"
@
delImage=
"delImage"
@
uploadSuccess=
"uploadSuccess"
:attr=
"item.key"
:key=
"item.key"
:name=
"item.name"
></Upload>
<span
class=
"upload-tip"
>
建议尺寸:88px*88px,图片格式为jpg,jpeg,png
</span>
...
...
@@ -155,6 +161,7 @@ export default {
serviceShortName
:
[{
required
:
true
,
message
:
'请输入服务项目简称'
,
trigger
:
'change'
}],
guorenCode
:
[{
required
:
true
,
message
:
'请输入国任理赔编码'
,
trigger
:
'change'
}],
salePeriod
:
[{
required
:
true
,
message
:
'请选择销售年限'
,
trigger
:
'change'
}],
mainPageFlag
:
[{
required
:
true
,
message
:
'请选择小程序端展示'
,
trigger
:
'change'
}],
logoUrl
:
[
{
required
:
true
,
...
...
@@ -181,6 +188,7 @@ export default {
serviceName
:
''
,
serviceShortName
:
''
,
guorenCode
:
''
,
mainPageFlag
:
1
,
unactivatedLogo
:
''
,
activatedLogo
:
''
,
detailLogo
:
''
,
...
...
@@ -221,6 +229,11 @@ export default {
addHtml
:
'timeLimitSlot'
},
{
label
:
'小程序端展示:'
,
name
:
'mainPageFlag'
,
addHtml
:
'showProjectSlot'
},
{
label
:
'Logo设置:'
,
name
:
'logoUrl'
,
addHtml
:
'logoSettingSlot'
...
...
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