Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
7141a778
Commit
7141a778
authored
Jan 02, 2019
by
季圣华
Browse files
对接打印接口
parent
c43441fe
Changes
11
Hide whitespace changes
Inline
Side-by-side
erp_web/js/print/print.js
View file @
7141a778
// strPrintName 打印任务名
// printDatagrid 要打印的datagrid
function
CreateFormPage
(
strPrintName
,
printDatagrid
,
path
)
{
function
CreateFormPage
(
strPrintName
,
printDatagrid
)
{
var
beginDate
=
$
(
"
#searchBeginTime
"
).
val
();
var
endDate
=
$
(
"
#searchEndTime
"
).
val
();
var
getMonth
=
$
(
"
#searchMonth
"
).
val
();
...
...
@@ -10,16 +10,22 @@ function CreateFormPage(strPrintName, printDatagrid, path) {
//加载公司信息
$
.
ajax
({
type
:
"
get
"
,
url
:
path
+
"
/systemConfig/
findBy.action
"
,
url
:
"
/systemConfig/
list
"
,
dataType
:
"
json
"
,
data
:
({
currentPage
:
1
,
pageSize
:
100
}),
async
:
false
,
success
:
function
(
res
)
{
if
(
res
&&
res
.
rows
)
{
var
array
=
res
.
rows
;
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
){
var
name
=
array
[
i
].
name
;
if
(
name
===
"
company_name
"
)
{
companyName
=
array
[
i
].
value
;
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
.
data
&&
res
.
data
.
page
)
{
var
array
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
)
{
var
name
=
array
[
i
].
name
;
if
(
name
===
"
company_name
"
)
{
companyName
=
array
[
i
].
value
;
}
}
}
}
...
...
erp_web/pages/reports/account_report.html
View file @
7141a778
...
...
@@ -311,8 +311,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/buy_in_report.html
View file @
7141a778
...
...
@@ -252,8 +252,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/customer_account.html
View file @
7141a778
...
...
@@ -344,8 +344,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/in_detail.html
View file @
7141a778
...
...
@@ -306,8 +306,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/in_material_count.html
View file @
7141a778
...
...
@@ -295,8 +295,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/in_out_stock_report.html
View file @
7141a778
...
...
@@ -411,8 +411,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/out_detail.html
View file @
7141a778
...
...
@@ -306,8 +306,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/out_material_count.html
View file @
7141a778
...
...
@@ -295,8 +295,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/sale_out_report.html
View file @
7141a778
...
...
@@ -255,8 +255,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
erp_web/pages/reports/vendor_account.html
View file @
7141a778
...
...
@@ -343,8 +343,7 @@
//报表打印
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
});
}
</script>
...
...
Write
Preview
Supports
Markdown
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