mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
面单自定义模板
This commit is contained in:
parent
6426a828d5
commit
f8a472b040
@ -462,6 +462,8 @@ export default {
|
||||
that.$set(that.tempList[it.seq * 1 - 1], 'print_status', 2)
|
||||
that.$set(that.tempList[it.seq * 1 - 1], 'fail_msg', it.msg)
|
||||
}
|
||||
} else if(json.code == "8"){
|
||||
console.log("data:image/png;base64, " + content) // 打印预览
|
||||
}
|
||||
}
|
||||
that.webSocket.onclose = function() {
|
||||
@ -508,7 +510,7 @@ export default {
|
||||
let printObject = res.data.data
|
||||
console.log(printObject)
|
||||
let parameters = {
|
||||
"orderType": "print",
|
||||
"orderType": "print", // PRE_View 预览,print 打印
|
||||
"version": "2",
|
||||
"parameters": {
|
||||
"printName": this.printName,
|
||||
@ -519,7 +521,9 @@ export default {
|
||||
console.log(key)
|
||||
parameters.parameters.contents.push({
|
||||
"tempUrl": printObject[key].templateUrl,
|
||||
"printData": printObject[key].encryptedData
|
||||
"printData": printObject[key].encryptedData,
|
||||
"customTempUrl": printObject[key].customer_temp_url,
|
||||
"customData": printObject[key].customer_temp_data
|
||||
})
|
||||
}
|
||||
this.webSocket.send(JSON.stringify(parameters))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user