|
|
@ -138,17 +138,19 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// #ifdef APP |
|
|
|
// 打印 |
|
|
|
printImage() { |
|
|
|
// #ifdef APP |
|
|
|
if (this.tabIndex == 1) { |
|
|
|
testModule.doHTMLPrint(this.newHtmlContent1) |
|
|
|
} else { |
|
|
|
testModule.doHTMLPrint(this.newHtmlContent) |
|
|
|
} |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
// 读取html文件 |
|
|
|
readFile(path, callback) { |
|
|
|
// #ifdef APP |
|
|
|
plus.io.resolveLocalFileSystemURL(path, function(entry) { |
|
|
|
entry.file(function(file) { |
|
|
|
var reader = new plus.io.FileReader(); |
|
|
@ -162,8 +164,8 @@ |
|
|
|
}, function(e) { |
|
|
|
console.log("获取图片资源失败:" + e.message); |
|
|
|
}); |
|
|
|
}, |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
formatDate(val) { |
|
|
|
return dateFormat(val) |
|
|
|
}, |
|
|
@ -171,6 +173,7 @@ |
|
|
|
getPointPutawayJobHtml() { |
|
|
|
this.$nextTick(async () => { |
|
|
|
let str = '' |
|
|
|
// #ifdef APP-PLUS |
|
|
|
this.readFile(htmlFileUrl, (htmlContent) => { |
|
|
|
this.newHtmlContent = htmlContent |
|
|
|
this.data.sublist.forEach(item => { |
|
|
@ -200,13 +203,14 @@ |
|
|
|
this.newHtmlContent = this.newHtmlContent.replace( |
|
|
|
"mainBody", str); //替换物品代码 |
|
|
|
}); |
|
|
|
|
|
|
|
// #endif |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取采购收货指引单html |
|
|
|
getPurchaseReceiptJobHtml() { |
|
|
|
this.$nextTick(async () => { |
|
|
|
let str = '' |
|
|
|
// #ifdef APP-PLUS |
|
|
|
this.readFile(htmlFileUrl1, (htmlContent) => { |
|
|
|
this.newHtmlContent1 = htmlContent |
|
|
|
this.data1.inspectDTOList.forEach(item => { |
|
|
@ -270,9 +274,9 @@ |
|
|
|
}) |
|
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
|
"mainBody", str); //替换物品代码 |
|
|
|
console.log(333,this.newHtmlContent1) |
|
|
|
console.log(333, this.newHtmlContent1) |
|
|
|
}); |
|
|
|
|
|
|
|
// #endif |
|
|
|
}) |
|
|
|
}, |
|
|
|
getTableSubList() { |
|
|
@ -435,6 +439,7 @@ |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-kw { |
|
|
|
border-bottom: 1px solid #dedede; |
|
|
|
padding: 20rpx; |
|
|
@ -489,5 +494,4 @@ |
|
|
|
text-align: center; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |