diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue
index 822f70d7..e7187724 100644
--- a/src/views/wpm_gx/mlog_detail.vue
+++ b/src/views/wpm_gx/mlog_detail.vue
@@ -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"
- >新增
+ >新增
+
{
+ this.$refs.saveDialog.open();
+ });
+ },
handleSaveSuccess() {
this.$refs.tableIn.refresh();
this.$refs.tableOut.refresh();
diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue
index f0cce420..cab5a509 100644
--- a/src/views/wpm_gx/mlogb_form.vue
+++ b/src/views/wpm_gx/mlogb_form.vue
@@ -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;
+ }
+ });
});
},
//表单提交方法