diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue
index 0ed3beaf..34a19998 100644
--- a/src/views/wpm_bx/handover_form.vue
+++ b/src/views/wpm_bx/handover_form.vue
@@ -26,20 +26,6 @@
/>
-
-
@@ -484,8 +415,6 @@ export default {
that.getCkUserList();//废品库接收人
}else if(that.type==30){
this.getUserList3();
- }else{
- this.getUserList2();
}
});
},
@@ -555,14 +484,21 @@ export default {
//获取接收工段人员
getUserList2() {
let that = this;
- this.mgroupOptions.forEach(item => {
- if(item.id==that.form.recive_mgroup){
- let deptID = item.belong_dept;
- this.$API.system.user.list.req({ belong_dept: deptID, page: 0 }).then((res) => {
+ if(that.mode=="add"){
+ that.$API.mtm.mgroup.item.req(that.form.recive_mgroup).then((res) => {
+ this.$API.system.user.list.req({ belong_dept: res.belong_dept, page: 0 }).then((res) => {
that.userList2 = res;
});
- }
- });
+ })
+ }else{
+ this.mgroupOptions.forEach(item => {
+ if(item.id==that.form.recive_mgroup){
+ this.$API.system.user.list.req({ belong_dept: item.belong_dept, page: 0 }).then((res) => {
+ that.userList2 = res;
+ });
+ }
+ });
+ }
},
//获取接收部门人员
getUserList3() {
@@ -679,12 +615,27 @@ export default {
},
//表单注入数据
setData(data) {
+ let that = this;
this.totalCount = data.count?data.count:data.handoverb.count;
Object.assign(this.form, data);
if(data.type==30){
this.getUserList3();
}else{
- this.getUserList2();
+ this.$API.system.user.list.req({ belong_dept: data.recive_dept, page: 0 }).then((res) => {
+ that.userList2 = res;
+ });
+ setTimeout(() => {
+ let arr =that.userList2.filter((item) => {
+ return item.id == data.recive_user
+ })
+ if(arr.length>0){}else{
+ let obj = {};
+ obj.id = data.recive_user;
+ obj.name = data.recive_user_name;
+ that.userList2.push(obj);
+ }
+ },500)
+
}
if(data.new_batch!==''&&data.new_batch!==undefined&&data.new_batch!==null){
this.change_batch = true;
diff --git a/src/views/wpm_bx/inm.vue b/src/views/wpm_bx/inm.vue
index 318a0535..bfbcf994 100644
--- a/src/views/wpm_bx/inm.vue
+++ b/src/views/wpm_bx/inm.vue
@@ -168,13 +168,13 @@
@success="handleinmSuccess"
>
-
+
关联产品
-
+
@@ -183,7 +183,7 @@
-
+
- 物料标签
+ 打印标签
diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue
index fdc7ed37..75fa6c89 100644
--- a/src/views/wpm_bx/mlog_detail.vue
+++ b/src/views/wpm_bx/mlog_detail.vue
@@ -300,7 +300,7 @@
详情
@@ -356,6 +356,7 @@
ref="checkDialogSingle"
:mlogb="mlogb"
:wm = "wm"
+ :isSubmit="isSubmit"
:batchNumber="batchNumber"
:handle_user="handle_user"
:handle_date="handle_date"
@@ -482,6 +483,7 @@ export default {
qct:null,
defectlist:[],
batchNumber:'',
+ isSubmit:false,
};
},
mounted() {
@@ -597,6 +599,7 @@ export default {
let that = this;
that.mlogb = row.id;
that.wm = row.wm_in;
+ that.isSubmit = that.mlogItem.submit_time == null ? false : true;
that.batchNumber = row.batch;
that.handle_date=that.mlogItem.handle_date;
that.handle_user = that.mlogItem.handle_user;
diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue
index a967ce1b..012d8b1f 100644
--- a/src/views/wpm_bx/mlog_form.vue
+++ b/src/views/wpm_bx/mlog_form.vue
@@ -17,7 +17,7 @@
style="padding: 0 10px"
>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
{{ scope.row.number }}
@@ -38,7 +38,7 @@
-
+
-
+
-
+
-
-
-
+ 未提交
+ 已提交