diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue
index 4f60ce78..c07216cb 100644
--- a/src/views/wpm_bx/mlog_detail.vue
+++ b/src/views/wpm_bx/mlog_detail.vue
@@ -94,6 +94,13 @@
+
+
+
+ {{scope.row.is_main_batchin==null ? '是' : '否'}}
+
+
+
@@ -349,6 +358,7 @@ export default {
paramsIn: {
page: 0,
mlog: "",
+ with_children:'yes',
material_in__isnull: 0,
},
paramsOut: {
@@ -412,7 +422,8 @@ export default {
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
that.mlogItem = res;
console.log('that.mlogItem',that.mlogItem);
- this.tracking = this.mlogItem.material_in_.tracking;
+ that.routeId = res.route;
+ that.tracking = res.material_in_.tracking;
if(res.test_file!==null){
that.fileList = [{name:res.test_file,url:res.test_file}];
that.form.test_file = res.test_file;
@@ -510,6 +521,7 @@ export default {
this.dialog.check_single = true;
this.mlogb = row.id;
this.wm = row.wm_in;
+ this.qct = row.qct;
let obj = {};
Object.assign(obj, row);
obj.mgroup_name = this.mlogItem.mgroup_name;
diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue
index 3af29d03..23575d20 100644
--- a/src/views/wpm_bx/mlogb_form.vue
+++ b/src/views/wpm_bx/mlogb_form.vue
@@ -39,6 +39,22 @@
+
+
+
+
+
+
提交
@@ -56,7 +72,8 @@ const defaultForm = {
batch: "",
wm_in: "",
count_use: 1,
- note:''
+ note:'',
+ parent: "",
};
export default {
props: {
@@ -72,6 +89,10 @@ export default {
type: Number,
default: 10,
},
+ routeId:{
+ type: String,
+ default: "",
+ },
materialIn: {
type: String,
default: "",
@@ -100,24 +121,42 @@ export default {
},
wm_in:'',
options: [],
+ mlogbInOptions:[],
materialOptions: [],
mgroup_code:'',
visible: false,
isSaveing: false,
setFiltersVisible: false,
+ params: {
+ page: 0,
+ mlog: "",
+ material_in__isnull: 0,
+ },
};
},
mounted() {
this.form.mlog = this.mlog;
+ this.params.mlog = this.mlog;
let arr = this.$route.path.split("/");
this.mgroup_code = arr[2];
this.getMtask();
this.getMaterial();
+ this.getParentList();
},
methods: {
open() {
this.visible = true;
},
+ getParentList(){
+ let that = this;
+ that.$API.wpm.mlogb.list.req(that.params).then((res) => {
+ if(res.length>0){
+ that.mlogbInOptions = res.filter((item)=>{
+ return item.parent==null;
+ })
+ }
+ })
+ },
//获取任务列表
getMtask() {
let that = this;
@@ -131,7 +170,7 @@ export default {
this.$API.wpm.wmaterial.list.req({
mtaskx: that.form.mtask,
mgroupx: that.mgroup,
- material: that.materialIn,
+ route: that.routeId,
page: 0,
}).then((res) => {
that.materialOptions = res;
@@ -163,6 +202,9 @@ export default {
that.$message.success("添加成功");
that.$emit("success");
that.wm_in = '';
+ that.mtask = '';
+ that.batch = '';
+ that.parent = '';
}).catch((err) => {});
},
//设置过滤项