Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lxx_pms
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
游宗学
lxx_pms
Commits
4af8407e
提交
4af8407e
authored
6月 24, 2020
作者:
曾从伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
a37df3f0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
89 行增加
和
21 行删除
+89
-21
index.html
PHP/Application/Index/View/default/Preordain/index.html
+1
-0
checkInMgr.js
dist/js_twice/business/checkInMgr.js
+0
-16
orderInMgr.js
dist/js_twice/business/orderInMgr.js
+88
-5
没有找到文件。
PHP/Application/Index/View/default/Preordain/index.html
浏览文件 @
4af8407e
...
...
@@ -213,6 +213,7 @@
</if>
<a
data-printurl=
"{{$vo.contract_url}}"
data-fddUrl=
"定金协议法大大下载请求地址和合同那边的一样"
href=
"javascript:void(0)"
name=
"btn-print"
class=
"btn btn-link s_font pr8"
>
合同打印
...
...
dist/js_twice/business/checkInMgr.js
浏览文件 @
4af8407e
...
...
@@ -602,22 +602,6 @@ var checkInPage = {
yes
:
function
(){
//打印功能调用
that
.
printContract
(
printUrl
,
title
);
AJAXREQUEST
.
sendRequest
({
url
:
"/Contract/savePrintNum"
,
type
:
'get'
,
data
:
{
contract_id
:
contract_id
},
success
:
function
(
json
)
{
var
num
=
parseInt
(
Number
(
globalObj
.
find
(
"#total_print_count"
).
attr
(
"data-count"
))
+
1
);
if
(
json
.
status
!=
0
){
globalObj
.
find
(
"#total_print_count"
).
text
(
"共计打印"
+
num
+
"次"
).
attr
(
"data-count"
,
num
);
}
},
error
:
function
(
json
){
console
.
log
(
json
.
message
);
}
});
},
cancel
:
function
(){
}
...
...
dist/js_twice/business/orderInMgr.js
浏览文件 @
4af8407e
...
...
@@ -187,11 +187,94 @@ var checkInPage = {
$
(
'a[name="btn-print"]'
).
each
(
function
()
{
var
isWin
=
(
navigator
.
platform
==
"Win32"
)
||
(
navigator
.
platform
==
"Windows"
)
||
(
navigator
.
platform
==
"Win64"
);
$
(
this
).
click
(
function
()
{
if
(
!
isWin
){
window
.
parent
.
layer
.
msg
(
"该功能在mac下无法使用"
,{
icon
:
0
});
return
;
}
that
.
printContract
(
$
(
this
).
attr
(
"data-printurl"
));
// if(!isWin){
// window.parent.layer.msg("该功能在mac下无法使用",{icon:0});
// return;
// }
// that.printContract($(this).attr("data-printurl"));
//新增流程 弹窗展示协议
var
printUrl
=
$
(
this
).
attr
(
"data-printurl"
);
var
fddUrl
=
$
(
this
).
attr
(
"data-fddUrl"
);
var
ly
=
window
.
parent
.
layer
;
var
btn_group
=
[];
if
(
isWin
){
btn_group
=
[
"打印"
];
}
else
{
btn_group
=
""
;
}
ly
.
open
({
id
:
"print_control"
,
type
:
2
,
title
:
"预览协议"
,
shade
:
[
0
],
area
:[
'800px'
,
'600px'
],
anim
:
2
,
btnAlign
:
'c'
,
btn
:
btn_group
,
content
:
[
printUrl
,
'yes'
],
//iframe的url,no代表不显示滚动条
success
:
function
(
layo
){
globalObj
=
$
(
layo
);
$
(
layo
).
find
(
"#print_control"
).
parent
().
css
({
height
:
"660px"
})
$
(
layo
).
find
(
"#print_control"
).
next
().
next
().
css
({
'text-align'
:
'center'
,
'line-height'
:
'30px'
,
});
$
(
layo
).
find
(
"#print_control"
).
next
().
next
().
find
(
".layui-layer-btn0"
).
css
({
'width'
:
"150px"
,
'height'
:
'30px'
,
'line-height'
:
'30px'
,
'font-size'
:
'15px'
});
// $(layo).find("#print_control").next().next().find(".layui-layer-btn0").after('<span id="total_print_count" data-count="'+count+'">共计打印'+count+'次</span>');
var
html
=
'<div class="orange" style="margin-top:5px;text-align:center;padding:15px 0 10px 0;">若需打印“盖红章”的合同,请<span data-url="'
+
fddUrl
+
'" id="doDownload" style="color:#333;border-bottom:1px solid #333;margin:0 5px;cursor:pointer;">点击下载合同</span>后打印</div>'
;
$
(
layo
).
find
(
"#print_control"
).
next
().
after
(
html
);
//下载协议
$
(
layo
).
find
(
"#doDownload"
).
off
().
on
(
"click"
,
function
(){
var
cur
=
$
(
this
);
// if(is_sign == 0){
// window.parent.layer.msg("请先完成签约",{icon:2});
// return;
// }
if
(
!
cur
.
hasClass
(
"clicked"
)){
cur
.
addClass
(
"clicked"
);
AJAXREQUEST
.
sendRequest
({
url
:
cur
.
attr
(
"data-url"
),
type
:
'get'
,
data
:
{},
success
:
function
(
json
)
{
cur
.
removeClass
(
"clicked"
);
if
(
json
.
data
)
{
var
downUrl
=
json
.
data
.
download_url
;
$
(
'#dl'
).
attr
(
'src'
,
downUrl
);
exportXLS
();
}
else
{
ly
.
msg
(
json
.
message
,
{
icon
:
2
});
}
},
error
:
function
(
json
)
{
cur
.
removeClass
(
"clicked"
);
ly
.
msg
(
json
.
message
,
{
icon
:
2
});
}
});
}
});
},
yes
:
function
(){
//打印功能调用
that
.
printContract
(
printUrl
,
"定金协议打印"
);
},
cancel
:
function
(){
}
});
});
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论