This commit is contained in:
lixin
2018-11-29 14:25:40 +08:00
parent da9c1d7e2d
commit f04395cfb8
3 changed files with 14 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ export function searchTable(partnumber) {
data: {
type: '1',
name: 'MES_机加工MES_库存管理_入库模块_零件基础信息查询_根据零件图号',
param: '零件图号=' + partnumber + '=string'
param: '工艺计划流水号=' + partnumber + '=string'
}
})
}

View File

@@ -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关闭')

View File

@@ -539,6 +539,11 @@
{{ scope.row.类型名称 }}
</template>
</el-table-column>
<el-table-column label="安全库存" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.安全库存量 }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200px">
<template slot-scope="scope" align="center">
<el-button size="mini" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="standardselecting(scope.row)" >选择</el-button>
@@ -674,19 +679,14 @@
align="center"
type="index"
width="50"/>
<el-table-column label="物料名称" align="center" min-width="80">
<el-table-column label="零件名称" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.物料名称 }}
</template>
</el-table-column>
<el-table-column label="物料规格" align="center" min-width="80">
<el-table-column label="零件图号" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.物料规格 }}
</template>
</el-table-column>
<el-table-column label="物料型号" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.物料型号 }}
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="项目名称" align="center" min-width="80">
@@ -1273,6 +1273,7 @@ export default {
changesafeAmount(row) {
this.dialogFormVisible2 = true
this.teamPartNumber = row.组件零件流水号
this.form.safeNumber = row.安全库存量
},
// 修改安全库存量
edeitsafeAmount() {
@@ -1280,6 +1281,7 @@ export default {
this.dialogFormVisible2 = false
if (response.data[0].result === '1') {
this.$message.success('添加成功')
this.searchStandardPartinfo()
} else {
this.$message.error('添加失败')
}