Commit 061ce193 by linjinhong

fix:添加清空箱子的更新方法

parent 4a385970
...@@ -543,7 +543,11 @@ const messageChange = (data: WebSocketMessage) => { ...@@ -543,7 +543,11 @@ const messageChange = (data: WebSocketMessage) => {
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }
console.log('WebSocketMessage', more)
setPodBoxList(more) setPodBoxList(more)
} else if (code === 'POD_BOX_FLUSH') {
initOrderDetailBox()
} }
} }
const setPodBoxList = (data: WebSocketMessage) => { const setPodBoxList = (data: WebSocketMessage) => {
...@@ -569,6 +573,7 @@ const initPrintDevice = () => { ...@@ -569,6 +573,7 @@ const initPrintDevice = () => {
sheetPrinter.value = lodop.GET_PRINTER_NAME(0) sheetPrinter.value = lodop.GET_PRINTER_NAME(0)
printDeviceList.value = arr printDeviceList.value = arr
} }
// const handleProduct = (val: OrderData) => { // const handleProduct = (val: OrderData) => {
// if (val && val.productList && val.productList.length > 0) { // if (val && val.productList && val.productList.length > 0) {
// return val.productList?.some((item) => { // return val.productList?.some((item) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment