fix:光芯日志mlogb扫描物料二维码弹出新增表单
This commit is contained in:
parent
2d016d166d
commit
2549abe1b3
|
|
@ -85,8 +85,15 @@
|
|||
v-if="mlogItem.submit_time == null&&(mlogItem.ticket==null||(mlogItem.ticket_&&mlogItem.ticket_.state_.type==1))"
|
||||
icon="el-icon-plus"
|
||||
@click="table_add"
|
||||
>新增</el-button
|
||||
>
|
||||
>新增</el-button>
|
||||
<el-input
|
||||
ref="codeInput"
|
||||
v-model="codeText"
|
||||
clearable
|
||||
placeholder="物料批次号"
|
||||
style="width:150px"
|
||||
@keyup.enter="codeTextChange"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="height: 4px"></div>
|
||||
<scTable
|
||||
|
|
@ -321,6 +328,7 @@
|
|||
ref="saveDialog"
|
||||
:mlog="mlogId"
|
||||
:mgroup="mgroup"
|
||||
:codeText = "codeText"
|
||||
:materialIn="materialIn"
|
||||
@success="handleSaveSuccess"
|
||||
@closed="dialog.save = false"
|
||||
|
|
@ -516,6 +524,7 @@ export default {
|
|||
tableDataWm:[],
|
||||
test_file:'',
|
||||
deptId: "",
|
||||
codeText: "",
|
||||
visible: false,
|
||||
isSaveing: false,
|
||||
options: [],
|
||||
|
|
@ -740,6 +749,12 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
codeTextChange(){
|
||||
this.dialog.save = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.saveDialog.open();
|
||||
});
|
||||
},
|
||||
handleSaveSuccess() {
|
||||
this.$refs.tableIn.refresh();
|
||||
this.$refs.tableOut.refresh();
|
||||
|
|
|
|||
|
|
@ -102,6 +102,10 @@ export default {
|
|||
type: String,
|
||||
default: "",
|
||||
},
|
||||
codeText: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
emits: ["success", "closed"],
|
||||
data() {
|
||||
|
|
@ -167,9 +171,16 @@ export default {
|
|||
material: that.materialIn,
|
||||
page: 0,
|
||||
state:10
|
||||
})
|
||||
.then((res) => {
|
||||
}).then((res) => {
|
||||
that.materialOptions = res;
|
||||
res.forEach(item => {
|
||||
console.log('item',item);
|
||||
console.log('codeText',that.codeText);
|
||||
if(item.batch==that.codeText){
|
||||
that.form.wm_in = item.id;
|
||||
that.form.count_use = item.count_cando;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
//表单提交方法
|
||||
|
|
|
|||
Loading…
Reference in New Issue