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
"src/vscode:/vscode.git/clone" did not exist on "6f039191bb7dbdd2af7d74986459bbfd3ac54480"
Commit
7141a778
authored
Jan 02, 2019
by
季圣华
Browse files
对接打印接口
parent
c43441fe
Changes
11
Show whitespace changes
Inline
Side-by-side
erp_web/js/print/print.js
View file @
7141a778
// strPrintName 打印任务名
// strPrintName 打印任务名
// printDatagrid 要打印的datagrid
// printDatagrid 要打印的datagrid
function
CreateFormPage
(
strPrintName
,
printDatagrid
,
path
)
{
function
CreateFormPage
(
strPrintName
,
printDatagrid
)
{
var
beginDate
=
$
(
"
#searchBeginTime
"
).
val
();
var
beginDate
=
$
(
"
#searchBeginTime
"
).
val
();
var
endDate
=
$
(
"
#searchEndTime
"
).
val
();
var
endDate
=
$
(
"
#searchEndTime
"
).
val
();
var
getMonth
=
$
(
"
#searchMonth
"
).
val
();
var
getMonth
=
$
(
"
#searchMonth
"
).
val
();
...
@@ -10,19 +10,25 @@ function CreateFormPage(strPrintName, printDatagrid, path) {
...
@@ -10,19 +10,25 @@ function CreateFormPage(strPrintName, printDatagrid, path) {
//加载公司信息
//加载公司信息
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
path
+
"
/systemConfig/
findBy.action
"
,
url
:
"
/systemConfig/
list
"
,
dataType
:
"
json
"
,
dataType
:
"
json
"
,
data
:
({
currentPage
:
1
,
pageSize
:
100
}),
async
:
false
,
async
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
&&
res
.
rows
)
{
if
(
res
&&
res
.
code
===
200
)
{
var
array
=
res
.
rows
;
if
(
res
.
data
&&
res
.
data
.
page
)
{
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
){
var
array
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
array
.
length
;
i
++
)
{
var
name
=
array
[
i
].
name
;
var
name
=
array
[
i
].
name
;
if
(
name
===
"
company_name
"
)
{
if
(
name
===
"
company_name
"
)
{
companyName
=
array
[
i
].
value
;
companyName
=
array
[
i
].
value
;
}
}
}
}
}
}
}
},
},
//此处添加错误处理
//此处添加错误处理
error
:
function
()
{
error
:
function
()
{
...
...
erp_web/pages/reports/account_report.html
View file @
7141a778
...
@@ -311,8 +311,7 @@
...
@@ -311,8 +311,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/buy_in_report.html
View file @
7141a778
...
@@ -252,8 +252,7 @@
...
@@ -252,8 +252,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/customer_account.html
View file @
7141a778
...
@@ -344,8 +344,7 @@
...
@@ -344,8 +344,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/in_detail.html
View file @
7141a778
...
@@ -306,8 +306,7 @@
...
@@ -306,8 +306,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/in_material_count.html
View file @
7141a778
...
@@ -295,8 +295,7 @@
...
@@ -295,8 +295,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/in_out_stock_report.html
View file @
7141a778
...
@@ -411,8 +411,7 @@
...
@@ -411,8 +411,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/out_detail.html
View file @
7141a778
...
@@ -306,8 +306,7 @@
...
@@ -306,8 +306,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/out_material_count.html
View file @
7141a778
...
@@ -295,8 +295,7 @@
...
@@ -295,8 +295,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/sale_out_report.html
View file @
7141a778
...
@@ -255,8 +255,7 @@
...
@@ -255,8 +255,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</script>
...
...
erp_web/pages/reports/vendor_account.html
View file @
7141a778
...
@@ -343,8 +343,7 @@
...
@@ -343,8 +343,7 @@
//报表打印
//报表打印
function
print
()
{
function
print
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#printBtn
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
var
path
=
"
<%=path %>
"
;
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
));
CreateFormPage
(
'
打印报表
'
,
$
(
'
#tableData
'
),
path
);
});
});
}
}
</script>
</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