Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
aa367f4e
Commit
aa367f4e
authored
Apr 19, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
aeb52802
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
contractManage.vue
src/pages/sale/contractManage.vue
+25
-21
No files found.
src/pages/sale/contractManage.vue
View file @
aa367f4e
...
...
@@ -33,7 +33,7 @@
<div
class=
"col-2 q-table__title"
>
合同信息
</div>
<q-space
/>
<div
class=
"page-option"
>
</div>
</
template
>
<
template
v-slot:body-cell-CreateByName=
"props"
>
...
...
@@ -80,7 +80,7 @@
style=
"font-weight:400"
@
click=
"EditContract(props.row)"
label=
"编辑"
/>
<el-tooltip
content=
"复制链接发送给客人签字"
placement=
"top"
effect=
"light"
>
<q-btn
flat
size=
"xs"
v-if=
"props.row.Status==2"
icon=
"iconfont icon-qianming"
color=
"accent"
style=
"font-weight:400"
@
click=
"CopyUrl(props.row)"
label=
"客人签字"
/>
style=
"font-weight:400"
@
click=
"CopyUrl(props.row)"
label=
"客人签字"
/>
</el-tooltip>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"goContract(props.row)"
style=
"font-weight:400"
label=
"查看"
/>
...
...
@@ -126,7 +126,7 @@
SetEducationContractCopy
}
from
'../../api/sale/contract'
import
{
import
{
downloadLocalFile
}
from
'../../api/common/common'
...
...
@@ -283,18 +283,22 @@
},
//跳转至编辑
goContract
(
item
)
{
let
routeUrl
=
this
.
$router
.
resolve
({
path
:
"/contractView"
,
query
:
{
ContractId
:
item
.
Id
}
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
let
routeUrl
=
this
.
$router
.
resolve
({
path
:
"/contractView"
,
query
:
{
ContractId
:
item
.
Id
}
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
},
//新增修改合同
EditContract
(
obj
)
{
if
(
obj
)
{
this
.
eduObj
=
obj
this
.
eduObj
=
{
OrderId
:
obj
.
OrderId
,
GuestId
:
obj
.
GuestId
,
ContractId
:
obj
.
Id
}
}
else
{
this
.
eduObj
=
null
}
...
...
@@ -304,7 +308,7 @@
closeEdudia
()
{
this
.
isShowEduForm
=
false
},
//刷新页面
//刷新页面
a
refreshPage
()
{
this
.
isShowEduForm
=
false
;
this
.
getList
();
...
...
@@ -331,24 +335,24 @@
//下载pdf
downloadContract
(
item
)
{
let
msg
=
{
ContractId
:
item
.
Id
,
CType
:
item
.
CType
ContractId
:
item
.
Id
,
CType
:
item
.
CType
}
GetDownLoadEducationContract
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
let
sign
=
item
.
StudentName
+
'-'
+
item
.
ContractNo
;
downloadLocalFile
(
sign
,
res
.
Data
);
let
sign
=
item
.
StudentName
+
'-'
+
item
.
ContractNo
;
downloadLocalFile
(
sign
,
res
.
Data
);
}
})
},
//复制合同
copyContract
(
item
){
copyContract
(
item
)
{
let
msg
=
{
ContractId
:
item
.
Id
ContractId
:
item
.
Id
}
SetEducationContractCopy
(
msg
).
then
(
res
=>
{
SetEducationContractCopy
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
getList
();
this
.
getList
();
}
})
},
...
...
@@ -356,7 +360,7 @@
CopyUrl
(
item
)
{
var
oInput
=
document
.
createElement
(
'input'
);
var
url
=
window
.
location
.
host
;
oInput
.
value
=
url
+
'/#/contractConfirm'
+
`?ContractId=
${
item
.
Id
}
`
;
oInput
.
value
=
url
+
'/#/contractConfirm'
+
`?ContractId=
${
item
.
Id
}
`
;
document
.
body
.
appendChild
(
oInput
);
oInput
.
select
();
// 选择对象
document
.
execCommand
(
"Copy"
);
// 执行浏览器复制命令
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment