This commit is contained in:
liushuai
2020-05-12 18:30:41 +08:00
parent e5a23954be
commit a0e2277371
6 changed files with 14 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
<el-card style="width: 1000px">
<el-row>
<span style="margin-left: 10px">跟单号</span>
<el-input v-model="partNumber" clearable size="small" style="width:170px;height: 29px;margin-top: 10px;margin-bottom: 10px" />
<el-input v-model="partNumberP" clearable size="small" style="width:170px;height: 29px;margin-top: 10px;margin-bottom: 10px" />
<el-button size="small" type="primary" icon="el-icon-search" plain style="margin: 0 0 0 10px" @click="getscantable()">查询</el-button>
<!--<el-tooltip :open-delay="1200" effect="dark" content="清除所有机床零件信息" placement="top">-->
<!--<el-button size="small" type="danger" icon="el-icon-remove-outline" style="margin: 0 0 0 10px" plain @click="Empty()">清空</el-button>-->
@@ -109,6 +109,7 @@ export default {
a: '',
tableData: [],
partNumber: '',
partNumberP: '',
listLoading: false,
craftplannumber: '',
radio2: 3,
@@ -160,8 +161,8 @@ export default {
},
// 数据接收
websocketonmessage(msg) {
this.partNumber = msg.data.split('|')[3]
this.partNumber = this.partNumber.slice(1)
this.partNumberP = msg.data.split('|')[3]
this.partNumber = this.partNumberP.slice(1)
this.getscantable(this.partNumber)
},
// 关闭
@@ -197,6 +198,7 @@ export default {
},
// 根据流水号查询
getscantable() {
this.partNumber = this.partNumberP.slice(1)
// this.tableData = []
this.finishParts = []
this.listLoading = true