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))"
|
v-if="mlogItem.submit_time == null&&(mlogItem.ticket==null||(mlogItem.ticket_&&mlogItem.ticket_.state_.type==1))"
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@click="table_add"
|
@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>
|
||||||
<div style="height: 4px"></div>
|
<div style="height: 4px"></div>
|
||||||
<scTable
|
<scTable
|
||||||
|
|
@ -321,6 +328,7 @@
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:mlog="mlogId"
|
:mlog="mlogId"
|
||||||
:mgroup="mgroup"
|
:mgroup="mgroup"
|
||||||
|
:codeText = "codeText"
|
||||||
:materialIn="materialIn"
|
:materialIn="materialIn"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="dialog.save = false"
|
@closed="dialog.save = false"
|
||||||
|
|
@ -516,6 +524,7 @@ export default {
|
||||||
tableDataWm:[],
|
tableDataWm:[],
|
||||||
test_file:'',
|
test_file:'',
|
||||||
deptId: "",
|
deptId: "",
|
||||||
|
codeText: "",
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
options: [],
|
options: [],
|
||||||
|
|
@ -740,6 +749,12 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
codeTextChange(){
|
||||||
|
this.dialog.save = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.saveDialog.open();
|
||||||
|
});
|
||||||
|
},
|
||||||
handleSaveSuccess() {
|
handleSaveSuccess() {
|
||||||
this.$refs.tableIn.refresh();
|
this.$refs.tableIn.refresh();
|
||||||
this.$refs.tableOut.refresh();
|
this.$refs.tableOut.refresh();
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
codeText: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -167,9 +171,16 @@ export default {
|
||||||
material: that.materialIn,
|
material: that.materialIn,
|
||||||
page: 0,
|
page: 0,
|
||||||
state:10
|
state:10
|
||||||
})
|
}).then((res) => {
|
||||||
.then((res) => {
|
|
||||||
that.materialOptions = 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