add打印功能,修改表单出库
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -314,4 +314,26 @@ export const inStorageOrder = () => {
|
||||
export const inStorageConfirm = () => {
|
||||
let res = {code: '200'}
|
||||
return res
|
||||
}
|
||||
export const queryPick = () => {
|
||||
let res = {
|
||||
'code': 'a00001',
|
||||
'product_area': 'A2',
|
||||
'stor_code': 'FStockId',
|
||||
"point_code": "001",
|
||||
"material_code": "100001",
|
||||
"material_name": "垃圾了付定金",
|
||||
"material_spec": "垃圾了付定金",
|
||||
"prd_ppbom_no": "20202020",
|
||||
"assign_qty": 6,
|
||||
'qty': 35
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const savePickTask = (data) => {
|
||||
let res = {
|
||||
code: '200',
|
||||
msg: 'ok'
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user