diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue
index 933d4051..db84b377 100644
--- a/src/views/wpm_gx/f_mlogs_form.vue
+++ b/src/views/wpm_gx/f_mlogs_form.vue
@@ -408,7 +408,6 @@ export default {
that.$API.mtm.mgroup.item.req(that.mgroup).then((res) => {
that.deptId = res.belong_dept;
that.mgroupName = res.name;
- that.process = res.process;
that.getEquipment();
that.getUserList();
});
@@ -481,7 +480,7 @@ export default {
that.$API.wpm.wmaterial.list.req({mtaskx:that.mtask,mgroupx: that.mgroup,material: that.material_in,page: 0,}).then((res) => {
that.materialOptions = res;
if(that.codeText!==''){
- that.materialOptions.forEach(item=>{
+ res.forEach(item=>{
if(item.batch == that.codeText){
that.form.wm_in = item.id;
that.form.batch = item.batch;
diff --git a/src/views/wpm_gx/fmlogs.vue b/src/views/wpm_gx/fmlogs.vue
index 33359808..379bdc89 100644
--- a/src/views/wpm_gx/fmlogs.vue
+++ b/src/views/wpm_gx/fmlogs.vue
@@ -16,13 +16,14 @@
v-auth="'mlog.create'"
>返工
+
@@ -267,9 +268,9 @@ export default {
});
},
//日志页面扫描物料二维码信息mlog
- codeTextChange(){
+ codeTextChange(codeText){
let that = this;
- that.codeText;
+ that.codeText = codeText;
//根据扫描内容获取物料
let obj = {};
obj.page=0;
diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue
index e6e8c987..f2030895 100644
--- a/src/views/wpm_gx/mlog_detail.vue
+++ b/src/views/wpm_gx/mlog_detail.vue
@@ -79,20 +79,21 @@
header="输入物料"
shadow="never"
>
-
+
新增
+
@@ -756,7 +757,8 @@ export default {
});
});
},
- codeTextChange(){
+ codeTextChange(codeText){
+ this.codeText = codeText;
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open();
diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue
index 1a73589a..f1fb429a 100644
--- a/src/views/wpm_gx/mlogb_form.vue
+++ b/src/views/wpm_gx/mlogb_form.vue
@@ -242,7 +242,7 @@ export default {
mounted() {
let that = this;
if(that.codeText!==''){
- let id = data.split('#')[1];
+ let id = that.codeText.split('#')[1];
this.$API.cm.labelmat.item.req(id).then((res) => {
that.codeBatch = res.batch;
this.getMaterial();
diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue
index b7478aca..ef4291b2 100644
--- a/src/views/wpm_gx/mlogs.vue
+++ b/src/views/wpm_gx/mlogs.vue
@@ -9,13 +9,14 @@
v-auth="'mlog.create'"
>新增
+
@@ -363,6 +364,7 @@ export default {
}
},
codeTextChange(text){
+ this.codeText = text;
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("add",text);