面单自定义模板
This commit is contained in:
parent
6426a828d5
commit
f8a472b040
@ -462,7 +462,9 @@ export default {
|
|||||||
that.$set(that.tempList[it.seq * 1 - 1], 'print_status', 2)
|
that.$set(that.tempList[it.seq * 1 - 1], 'print_status', 2)
|
||||||
that.$set(that.tempList[it.seq * 1 - 1], 'fail_msg', it.msg)
|
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() {
|
that.webSocket.onclose = function() {
|
||||||
that.$message({ type: 'info', message: State[that.webSocket.readyState] })
|
that.$message({ type: 'info', message: State[that.webSocket.readyState] })
|
||||||
@ -508,7 +510,7 @@ export default {
|
|||||||
let printObject = res.data.data
|
let printObject = res.data.data
|
||||||
console.log(printObject)
|
console.log(printObject)
|
||||||
let parameters = {
|
let parameters = {
|
||||||
"orderType": "print",
|
"orderType": "print", // PRE_View 预览,print 打印
|
||||||
"version": "2",
|
"version": "2",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"printName": this.printName,
|
"printName": this.printName,
|
||||||
@ -519,7 +521,9 @@ export default {
|
|||||||
console.log(key)
|
console.log(key)
|
||||||
parameters.parameters.contents.push({
|
parameters.parameters.contents.push({
|
||||||
"tempUrl": printObject[key].templateUrl,
|
"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))
|
this.webSocket.send(JSON.stringify(parameters))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user