|
@@ -137,7 +137,7 @@ export const jGPrint = function (data, type, callback, printLogParams,printPageS
|
|
|
}
|
|
|
|
|
|
// 打印
|
|
|
-export const printFun = function(url,params,type,taskName,callback,printLogParams){
|
|
|
+export const printFun = function(url,params,type,taskName,callback,printLogParams,hidePrint){
|
|
|
url(params).then(res => {
|
|
|
if (res.type == 'application/json') {
|
|
|
var reader = new FileReader()
|
|
@@ -151,7 +151,7 @@ export const printFun = function(url,params,type,taskName,callback,printLogParam
|
|
|
reader.readAsText(res)
|
|
|
} else {
|
|
|
console.log(res,'printFun')
|
|
|
- jGPrintPdf(res,type,taskName,printLogParams,callback)
|
|
|
+ jGPrintPdf(res,type,taskName,printLogParams,callback,hidePrint)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -172,7 +172,7 @@ export const printLog = function(data,callback){
|
|
|
})
|
|
|
}
|
|
|
// 打印pdf
|
|
|
-export const jGPrintPdf = function (data, type, taskName, printLogParams,callback) {
|
|
|
+export const jGPrintPdf = function (data, type, taskName, printLogParams,callback,hidePrint) {
|
|
|
if (!data) {
|
|
|
return
|
|
|
}
|
|
@@ -201,6 +201,10 @@ export const jGPrintPdf = function (data, type, taskName, printLogParams,callbac
|
|
|
LODOP.SET_SHOW_MODE('HIDE_PAPER_BOARD', 1) // 隐藏底图上有模拟走纸板的条纹线
|
|
|
//执行该语句之后,PRINT指令不再返回那个所谓“打印成功”,才能获取到打印状态
|
|
|
LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",true);
|
|
|
+ // 隐藏打印按钮
|
|
|
+ if(hidePrint){
|
|
|
+ LODOP.SET_SHOW_MODE("HIDE_PBUTTIN_PREVIEW",true);
|
|
|
+ }
|
|
|
//TaskID:任务id,Value:job代码
|
|
|
LODOP.On_Return=function(TaskID,Value){
|
|
|
console.log(TaskID,Value)
|