Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
8f9a8251
Commit
8f9a8251
authored
Dec 12, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e3cd3bd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
4 deletions
+65
-4
ContractManage.vue
src/components/administrative/ContractManage.vue
+65
-4
No files found.
src/components/administrative/ContractManage.vue
View file @
8f9a8251
...
...
@@ -111,7 +111,16 @@
@
click=
"goContract('SingleContract', item.ID, '单项委托合同')"
></el-button>
</
template
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"复制"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"CopyContract(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"下载"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"DownLoadContract(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"取消"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"DeleteContract(item)"
></el-button>
</el-tooltip>
</td>
...
...
@@ -165,10 +174,63 @@
this
.
getList
();
},
methods
:
{
//复制合同
CopyContract
(
item
)
{
//获取列表数据
var
that
=
this
;
this
.
Confirm
(
"是否复制此合同?"
,
function
()
{
that
.
apipost
(
"travelcontract_post_CopyTravelContractService"
,
{
ID
:
item
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
});
},
//下载合同
DownLoadContract
(
item
)
{
let
msg
=
{
ID
:
item
.
ID
,
CType
:
item
.
CType
};
this
.
loading
=
true
;
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'post'
,
url
:
urlObj
.
DomainUrl
+
'/api/file/GetDownLoadTripContract'
,
data
:
{
"msg"
:
msg
}
}).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
===
1
)
{
let
sign
=
title
+
"V2"
const
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
'.pdf&&fPath='
+
res
.
data
.
data
);
a
.
click
();
}
else
{
this
.
Error
(
'PDF获取失败'
);
}
}).
catch
(
err
=>
{
});
},
//删除合同
DeleteContract
(
item
)
{
var
that
=
this
;
this
.
Confirm
(
"是否
此合同删除
?"
,
function
()
{
this
.
Confirm
(
"是否
取消此合同
?"
,
function
()
{
var
msg
=
{
ID
:
item
.
ID
};
...
...
@@ -177,7 +239,7 @@
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"
删除
成功!"
);
that
.
Success
(
"
取消
成功!"
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
...
...
@@ -195,7 +257,6 @@
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
console
.
log
(
"res.data.data"
,
res
.
data
.
data
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
...
...
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