组盘打印

This commit is contained in:
2024-02-20 16:03:06 +08:00
parent db5fe78ac3
commit e2a95cf177
7 changed files with 63 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/* eslint-disable */
import store from '@/vuex/store'
// #ifdef APP-PLUS
window = {
location: {
@@ -13,8 +13,8 @@ window = {
var CLODOP = {
strWebPageID:"JL68836",
strTaskID: "",
strHostURI: "http://192.168.81.198:8000",
wsHostURI: "ws://192.168.81.198:8000/c_webskt/",
strHostURI: store.getters.printUrl,
wsHostURI: "ws://" + store.getters.printUrl.slice(7) + "/c_webskt/",
VERSION:"6.2.2.0",
IVERSION:"6220",
CVERSION:"3.0.2.5",
@@ -122,8 +122,9 @@ window = {
}
console.log(this.webskt)
console.log(CLODOP.wsHostURI)
console.log(rest)
let ip = uni.getStorageSync('fl_ip') || '192.168.81.198';
console.log(rest)
let iparr = store.getters.printUrl.split(":")
let ip = iparr[1].slice(2);
let wsHostURI = `ws://${ip}:8000/c_webskt/`
this.SocketEnable = true;
try {

View File

@@ -253,4 +253,15 @@ export const pdaPrintf = (code) => request({
data: {
vehicle_code: code
}
})
})
// export const pdaPrintf = (code) => {
// let res = {
// "vehicle_code": "91",
// "material_code": "20",
// "material_name": "张认义关金",
// "material_qty": "100",
// "pcsn": "20201112",
// "print_time": "20240210"
// }
// return res
// }