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
0773e452
Commit
0773e452
authored
Apr 15, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加手机版电子合同
parent
62dac6be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
719 additions
and
9 deletions
+719
-9
App.vue
src/App.vue
+2
-2
ViittoContractConfirm.vue
src/components/ViittoContractConfirm.vue
+667
-0
ViittoContract.vue
src/components/administrative/ViittoContract.vue
+32
-5
index.js
src/plug/index.js
+10
-2
config.js
src/router/config.js
+8
-0
No files found.
src/App.vue
View file @
0773e452
...
@@ -117,12 +117,12 @@ export default {
...
@@ -117,12 +117,12 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
if
(
!
this
.
getLocalStorage
()
&&
document
.
URL
.
indexOf
(
"SupplierLogin"
)
==-
1
&&
document
.
URL
.
indexOf
(
"clientConfirm"
)
==-
1
&&
document
.
URL
.
indexOf
(
"TravelContractConfirm"
)
==-
1
)
{
if
(
!
this
.
getLocalStorage
()
&&
document
.
URL
.
indexOf
(
"SupplierLogin"
)
==-
1
&&
document
.
URL
.
indexOf
(
"clientConfirm"
)
==-
1
&&
document
.
URL
.
indexOf
(
"TravelContractConfirm"
)
==-
1
&&
document
.
URL
.
indexOf
(
"ViittoContractConfirm"
)
==-
1
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/login'
path
:
'/login'
})
})
}
else
{
}
else
{
if
(
document
.
URL
.
indexOf
(
"clientConfirm"
)
!=-
1
||
document
.
URL
.
indexOf
(
"TravelContractConfirm"
)
!=-
1
){
if
(
document
.
URL
.
indexOf
(
"clientConfirm"
)
!=-
1
||
document
.
URL
.
indexOf
(
"TravelContractConfirm"
)
!=-
1
||
document
.
URL
.
indexOf
(
"ViittoContractConfirm"
)
!=-
1
){
localStorage
.
openMode
=
0
localStorage
.
openMode
=
0
}
else
{
}
else
{
...
...
src/components/ViittoContractConfirm.vue
0 → 100644
View file @
0773e452
This diff is collapsed.
Click to expand it.
src/components/administrative/ViittoContract.vue
View file @
0773e452
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</
template
>
</
template
>
</td>
</td>
<td>
<td>
<img
:src=
"item.CustomerSignImg"
style=
"
width:10
0px;"
/>
<img
:src=
"item.CustomerSignImg"
style=
"
height:6
0px;"
/>
</td>
</td>
<td>
<td>
<
template
v-if=
"item.CustomerSignDate!=null"
>
<
template
v-if=
"item.CustomerSignDate!=null"
>
...
@@ -67,15 +67,20 @@
...
@@ -67,15 +67,20 @@
</
template
>
</
template
>
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.CustomerSignImg!=''&&item.CustomerSignImg!=null"
content=
"修改"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"goContract(item)"
circle
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"goContract(item)"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"复制链接发送给客户"
>
<el-button
type=
"info"
icon=
"iconfont icon-copy-l"
circle
@
click=
"CopyUrl(item)"
style=
"padding:4px;background-color:#9266f9;border-color:#9266f9;"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.CustomerSignImg!=''&&item.CustomerSignImg!=null"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"iconfont icon-img_delete_small"
circle
@
click=
"isdelete(item.Id)"
>
<el-button
type=
"danger"
icon=
"iconfont icon-img_delete_small"
circle
@
click=
"isdelete(item.Id)"
>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"下载"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.CustomerSignImg!=''&&item.CustomerSignImg!=null"
content=
"下载"
placement=
"top-start"
>
<el-button
type=
"success"
icon=
"iconfont icon-img_download"
circle
@
click=
"ToDownWord(item)"
>
<el-button
type=
"success"
icon=
"iconfont icon-img_download"
circle
@
click=
"ToDownWord(item)"
>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
...
@@ -123,6 +128,16 @@
...
@@ -123,6 +128,16 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
dataList
.
forEach
(
x
=>
{
let
Url
=
""
;
if
(
this
.
isOnline
())
{
Url
=
window
.
location
.
hostname
+
'/#/ViittoContractConfirm?Id='
+
x
.
Id
;
}
else
{
Url
=
window
.
location
.
hostname
+
":8080/"
+
'#/ViittoContractConfirm?Id='
+
x
.
Id
;
}
x
.
Url
=
Url
;
})
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
...
@@ -193,7 +208,7 @@
...
@@ -193,7 +208,7 @@
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
sign
=
item
.
CustomerName
+
"_合同.doc"
;
let
sign
=
item
.
CustomerName
+
"_合同.doc"
;
const
a
=
document
.
createElement
(
'a'
);
const
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
...
@@ -207,6 +222,18 @@
...
@@ -207,6 +222,18 @@
})
})
},
},
//复制URL
CopyUrl
(
item
)
{
var
oInput
=
document
.
createElement
(
'input'
);
oInput
.
value
=
item
.
Url
;
document
.
body
.
appendChild
(
oInput
);
oInput
.
select
();
// 选择对象
document
.
execCommand
(
"Copy"
);
// 执行浏览器复制命令
oInput
.
className
=
'oInput'
;
oInput
.
style
.
display
=
'none'
;
this
.
Info
(
"复制成功!"
);
},
},
},
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
...
...
src/plug/index.js
View file @
0773e452
...
@@ -114,7 +114,7 @@ export default {
...
@@ -114,7 +114,7 @@ export default {
//域名管理对象
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
domainUrl
=
''
;
domainUrl
=
"http://1
92.168.2.214:8082
"
;
domainUrl
=
"http://1
27.0.0.1
"
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
let
javaUrldo
=
""
;
let
javaUrldo
=
""
;
...
@@ -232,7 +232,7 @@ export default {
...
@@ -232,7 +232,7 @@ export default {
//HTTP提交数据
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
)
{
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'confirmationOrderDownLoad'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'PrintPage'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'TravelContractConfirm'
)
===
-
1
)
{
if
(
this
.
$route
.
name
.
indexOf
(
'login'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'clientConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'confirmationOrderDownLoad'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'PrintPage'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'TravelContractConfirm'
)
===
-
1
&&
this
.
$route
.
name
.
indexOf
(
'ViittoContractConfirm'
)
===
-
1
)
{
let
previousPathInfo
=
{
let
previousPathInfo
=
{
path
:
this
.
$route
.
name
,
path
:
this
.
$route
.
name
,
...
@@ -273,6 +273,14 @@ export default {
...
@@ -273,6 +273,14 @@ export default {
ContractId
:
ContractId
ContractId
:
ContractId
}
}
})
})
}
else
if
(
this
.
$route
.
path
==
"/ViittoContractConfirm"
)
{
let
Id
=
this
.
$route
.
query
.
Id
;
this
.
$router
.
push
({
name
:
"ViittoContractConfirm"
,
query
:
{
Id
:
Id
}
})
}
else
{
}
else
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/router/config.js
View file @
0773e452
...
@@ -4611,6 +4611,14 @@ export default {
...
@@ -4611,6 +4611,14 @@ export default {
title
:
'电子合同签名'
title
:
'电子合同签名'
},
},
},
},
{
path
:
'/ViittoContractConfirm'
,
//微途电子合同签名
name
:
'ViittoContractConfirm'
,
component
:
resolve
=>
require
([
'@/components/ViittoContractConfirm'
],
resolve
),
meta
:
{
title
:
'电子合同签名'
},
},
{
{
path
:
'/TravelContractView'
,
//其他电子合同签名
path
:
'/TravelContractView'
,
//其他电子合同签名
name
:
'TravelContractView'
,
name
:
'TravelContractView'
,
...
...
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