From f04395cfb816b8ef76901ddf47394f9651151b4f Mon Sep 17 00:00:00 2001 From: lixin Date: Thu, 29 Nov 2018 14:25:40 +0800 Subject: [PATCH 1/2] lx --- src/api/Inventory/Inboundscanning.js | 2 +- src/views/Inventory/Inboundscanning/index.vue | 4 +++- src/views/Inventory/InventoryCheck/index.vue | 18 ++++++++++-------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/api/Inventory/Inboundscanning.js b/src/api/Inventory/Inboundscanning.js index f60553b3..211ac2eb 100644 --- a/src/api/Inventory/Inboundscanning.js +++ b/src/api/Inventory/Inboundscanning.js @@ -7,7 +7,7 @@ export function searchTable(partnumber) { data: { type: '1', name: 'MES_机加工MES_库存管理_入库模块_零件基础信息查询_根据零件图号', - param: '零件图号=' + partnumber + '=string' + param: '工艺计划流水号=' + partnumber + '=string' } }) } diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index b4fa8df1..be81e77b 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -161,7 +161,9 @@ export default { }, websocketonmessage(msg) { // 数据接收 this.partNumber = msg.data.split('|')[3] - this.getscantable() + this.partNumber = this.partNumber.slice(1) + console.log() + this.getscantable(this.partNumber, 3333) }, websocketclose() { // 关闭 console.log('WebSocket关闭') diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 341c31d5..670d88f0 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -539,6 +539,11 @@ {{ scope.row.类型名称 }} + + +