add打印功能,修改表单出库

This commit is contained in:
2025-05-29 13:22:06 +08:00
parent 165154537b
commit 5cdacfa446
6 changed files with 140 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
/* eslint-disable */
/* eslint-disable */
import store from '@/vuex/store'
// #ifdef APP-PLUS
window = {
@@ -7,14 +8,21 @@ window = {
}
};
// #endif
(function(win) {
(function(win) {
const iparr = store.getters.printUrl;
const urlRegex = /http:\/\/(\d+\.\d+\.\d+\.\d+)(:\d+)?/;
const match = iparr.match(urlRegex);
let printIp = match[1]; // IP 地址
let printPort = match[1] + (match[2] || ''); // IP 地址加端口
let printListDev = [];
let printListOnline = [];
var CLODOP = {
strWebPageID:"JL68836",
strTaskID: "",
strHostURI: "http://192.168.81.198:8000",
wsHostURI: "ws://192.168.81.198:8000/c_webskt/",
// strHostURI: "http://192.168.81.187:8000",
// wsHostURI: "ws://192.168.81.187:8000/c_webskt/",
strHostURI: "http://" + printPort,
wsHostURI: "ws://" + printPort + "/c_webskt/",
VERSION:"6.2.2.0",
IVERSION:"6220",
CVERSION:"3.0.2.5",
@@ -123,7 +131,8 @@ window = {
console.log(this.webskt)
console.log(CLODOP.wsHostURI)
console.log(rest)
let ip = uni.getStorageSync('fl_ip') || '192.168.81.198';
// let ip = uni.getStorageSync('fl_ip') || '192.168.81.187';
let ip = printIp;
let wsHostURI = `ws://${ip}:8000/c_webskt/`
this.SocketEnable = true;
try {