fix:光芯日志pad添加扫码功能
This commit is contained in:
parent
f6ffda0a8f
commit
6681b5baba
|
|
@ -23,21 +23,24 @@
|
|||
</el-descriptions>
|
||||
</el-card>
|
||||
<el-card style="width: 100%; margin: 1vh 0" shadow="never" header="日志列表">
|
||||
<el-button
|
||||
<div style="display: flex;">
|
||||
<el-button
|
||||
type="primary"
|
||||
v-if="fmlogItem.submit_time == null"
|
||||
icon="el-icon-plus"
|
||||
@click="table_add"
|
||||
>新增</el-button
|
||||
>
|
||||
<scScanner @scanResult="codeTextChange" style="margin:0 10px;"></scScanner>
|
||||
<el-input
|
||||
ref="codeInput"
|
||||
v-model="codeText"
|
||||
clearable
|
||||
placeholder="正常交接"
|
||||
placeholder="物料编号"
|
||||
style="width:150px"
|
||||
@keyup.enter="codeTextChange"
|
||||
@keyup.enter="codeTextChange(codeText)"
|
||||
></el-input>
|
||||
</div>
|
||||
<scTable
|
||||
stripe
|
||||
ref="table"
|
||||
|
|
@ -299,7 +302,7 @@ export default {
|
|||
that.paramsWm.search = that.batchContains;
|
||||
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
||||
if(that.codeText!=""){
|
||||
this.codeTextChange();
|
||||
this.codeTextChange(that.codeText);
|
||||
}
|
||||
}else{}
|
||||
});
|
||||
|
|
@ -316,11 +319,12 @@ export default {
|
|||
this.$refs.saveDialog.open('add');
|
||||
});
|
||||
},
|
||||
codeTextChange(){
|
||||
codeTextChange(codeText){
|
||||
let that = this;
|
||||
that.codeText = codeText;
|
||||
that.dialog.save = true;
|
||||
that.$nextTick(() => {
|
||||
that.$refs.saveDialog.open('add',that.codeText);
|
||||
that.$refs.saveDialog.open('add',codeText);
|
||||
});
|
||||
},
|
||||
table_edit(row){
|
||||
|
|
|
|||
Loading…
Reference in New Issue