Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
Project
Project
Details
Activity
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
张冬
web-purchase
Commits
1f0100f7
Commit
1f0100f7
authored
Oct 19, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
720690bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
63 deletions
+28
-63
contractSign.vue
src/pages/supply/buyOut/contractSign.vue
+25
-61
index.js
src/router/index.js
+3
-2
No files found.
src/pages/supply/buyOut/contractSign.vue
View file @
1f0100f7
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<h5>
签署合同
</h5>
<h5>
签署合同
</h5>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<iframe
:src=
"url"
frameborder=
"0"
style=
"width:100%;height:
600px"
></iframe>
<iframe
:src=
"url"
frameborder=
"0"
style=
"width: 100%; height:
600px"
></iframe>
<!--
<div
class=
"flex"
>
<!--
<div
class=
"flex"
>
<div>
下载合同:
</div>
<div>
下载合同:
</div>
<ul>
<ul>
...
@@ -32,30 +32,31 @@
...
@@ -32,30 +32,31 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
signContract
,
contract
}
from
'@api/purchaser/buyOut'
;
import
{
signContract
,
contract
}
from
'@api/purchaser/buyOut'
import
dataBreadcrumb
from
'@components/dataBreadcrumb.vue'
;
import
dataBreadcrumb
from
'@components/dataBreadcrumb.vue'
import
PDF
from
'@components/PDF/PDF.vue'
;
import
PDF
from
'@components/PDF/PDF.vue'
export
default
{
export
default
{
components
:
{
components
:
{
dataBreadcrumb
,
dataBreadcrumb
,
PDF
PDF
},
},
data
()
{
data
()
{
return
{
return
{
url
:
""
,
url
:
''
,
breads
:
[
'应收账款买断管理'
,
'应收账款买断列表'
],
breads
:
[
'应收账款买断管理'
,
'应收账款买断列表'
],
detail
:
""
,
detail
:
''
,
id
:
""
id
:
''
,
}
url
:
""
};
},
},
created
()
{
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
=
this
.
$route
.
params
.
id
this
.
getcontract
()
this
.
url
=
this
.
$route
.
params
.
url
this
.
getcontract
();
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
);
},
// 删除操作
},
// 删除操作
revoke
(
row
,
index
)
{
revoke
(
row
,
index
)
{
// 二次确认删除
// 二次确认删除
...
@@ -63,69 +64,32 @@
...
@@ -63,69 +64,32 @@
type
:
'warning'
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$message
.
success
(
'撤销成功'
)
this
.
$message
.
success
(
'撤销成功'
);
})
.
catch
(()
=>
{})
},
down
(
url
){
window
.
open
(
url
)
},
// 查看详情
async
getcontract
(){
let
projectId
=
this
.
id
const
{
data
,
code
}
=
await
contract
(
projectId
)
if
(
code
==
200
){
this
.
detail
=
data
}
},
// 提出
async
submitData
()
{
try
{
let
projectId
=
this
.
id
const
{
msg
,
code
}
=
await
signContract
(
projectId
)
if
(
code
==
200
)
{
this
.
$message
({
message
:
msg
,
type
:
'success'
,
duration
:
1500
})
})
setTimeout
(()
=>
{
.
catch
(()
=>
{});
this
.
$router
.
go
(
-
1
)
},
1500
)
}
else
{
this
.
$message
.
error
(
msg
)
}
}
catch
(
e
)
{
console
.
log
(
e
)
}
},
},
down
(
url
)
{
window
.
open
(
url
);
}
}
}
}
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.contractContent
{
.contractContent
{
width
:
100%
;
width
:
100%
;
height
:
500px
;
height
:
500px
;
border
:
1px
solid
#000000
;
border
:
1px
solid
#000000
;
margin-top
:
30px
;
margin-top
:
30px
;
}
}
.button
{
.button
{
margin-top
:
30px
;
margin-top
:
30px
;
height
:
50px
;
height
:
50px
;
width
:
100%
;
width
:
100%
;
}
}
ul
>
li
>
div
{
ul
>
li
>
div
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
</
style
>
</
style
>
src/router/index.js
View file @
1f0100f7
...
@@ -526,13 +526,11 @@ export default new Router({
...
@@ -526,13 +526,11 @@ export default new Router({
},
},
{
{
path
:
'/purchaser/buyOut/voucherSee'
,
path
:
'/purchaser/buyOut/voucherSee'
,
name
:
"/purchaser/buyOut/voucherSee"
,
show
:
true
,
show
:
true
,
component
:
()
=>
import
(
'../pages/purchaser/buyOut/voucherSee.vue'
)
component
:
()
=>
import
(
'../pages/purchaser/buyOut/voucherSee.vue'
)
},
},
{
{
path
:
'/purchaser/buyOut/voucherSign'
,
path
:
'/purchaser/buyOut/voucherSign'
,
name
:
"/purchaser/buyOut/voucherSign"
,
show
:
true
,
show
:
true
,
component
:
()
=>
import
(
'../pages/purchaser/buyOut/voucherSign.vue'
)
component
:
()
=>
import
(
'../pages/purchaser/buyOut/voucherSign.vue'
)
},
},
...
@@ -761,16 +759,19 @@ export default new Router({
...
@@ -761,16 +759,19 @@ export default new Router({
},
},
{
{
path
:
'/supply/buyOut/contractSign'
,
path
:
'/supply/buyOut/contractSign'
,
name
:
"/supply/buyOut/contractSign"
,
show
:
true
,
show
:
true
,
component
:
()
=>
import
(
'../pages/supply/buyOut/contractSign.vue'
)
component
:
()
=>
import
(
'../pages/supply/buyOut/contractSign.vue'
)
},
},
{
{
path
:
'/supply/buyOut/contractSee'
,
path
:
'/supply/buyOut/contractSee'
,
name
:
"/supply/buyOut/contractSee"
,
show
:
true
,
show
:
true
,
component
:
()
=>
import
(
'../pages/supply/buyOut/contractSee.vue'
)
component
:
()
=>
import
(
'../pages/supply/buyOut/contractSee.vue'
)
},
},
{
{
path
:
'/supply/buyOut/voucherSign'
,
path
:
'/supply/buyOut/voucherSign'
,
show
:
true
,
show
:
true
,
component
:
()
=>
import
(
'../pages/supply/buyOut/voucherSign.vue'
)
component
:
()
=>
import
(
'../pages/supply/buyOut/voucherSign.vue'
)
},
},
...
...
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