diff --git a/src/views/wpm_bx/index.vue b/src/views/wpm_bx/index.vue
index 2b6f2c96..c2774679 100644
--- a/src/views/wpm_bx/index.vue
+++ b/src/views/wpm_bx/index.vue
@@ -16,6 +16,7 @@
:mgroupId="mgroupId"
:deptId="mgroupDept"
:process = "mgroupProcess"
+ :processType = "mgroupProcessType"
:mgroup_code="mgroup_code"
:mgroupMtype = "mgroupMtype"
id="mlogs"
@@ -39,11 +40,13 @@
@@ -54,29 +57,30 @@
:mgroupId="mgroupId"
:deptId="mgroupDept"
:process = "mgroupProcess"
+ :processType = "mgroupProcessType"
:mgroup_code="mgroup_code"
+ :mgroupMtype = "mgroupMtype"
>
-
-
+ :mgroupName="mgroupName"
+ :mgroupId="mgroupId"
+ :deptId="mgroupDept"
+ :process = "mgroupProcess"
+ :processType = "mgroupProcessType"
+ :mgroup_code="mgroup_code"
+ :mgroupMtype = "mgroupMtype"
+ >
+ :mgroupName="mgroupName"
+ :mgroupId="mgroupId"
+ :deptId="mgroupDept"
+ :process = "mgroupProcess"
+ :processType = "mgroupProcessType"
+ :mgroup_code="mgroup_code"
+ :mgroupMtype = "mgroupMtype"
+ >
@@ -94,14 +98,16 @@ export default {
return {
mgroups:[],
tableHieght: 200,
+ selectedIndex:0,
options: ["日志", "交接记录","未完成", "已完成"],
values: "日志",
mgroupName: "",
mgroupId: "",
- selectedIndex:0,
mgroup_code:'',
mgroupDept:'',
mgroupMtype:'',
+ mgroupProcess: '',
+ mgroupProcessType: '',
componentsShow:false,
mtaskVisible:false
};
@@ -127,6 +133,7 @@ export default {
that.mgroups = res;
that.mgroupName = res[0].name;
that.mgroupId = res[0].id;
+ that.mgroupProcessType = res[0].process_type;
that.mgroupProcess = res[0].process;
that.mgroupDept = res[0].belong_dept;
that.mgroupMtype = res[0].mtype;
diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue
index b3b22769..bdb50cea 100644
--- a/src/views/wpm_bx/inmIn.vue
+++ b/src/views/wpm_bx/inmIn.vue
@@ -230,7 +230,7 @@
width="120"
>
- 二维码
+ 二维码
打印标签
diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue
index cca20bdd..b25e7362 100644
--- a/src/views/wpm_bx/mlog_detail.vue
+++ b/src/views/wpm_bx/mlog_detail.vue
@@ -425,10 +425,10 @@
:batchNumber="batchNumber"
:handle_user="handle_user"
:handle_date="handle_date"
+ :processType="processType"
@success="handlesCheckSuccess"
@closed="scheckClose"
- >
-
+ >
- 检验
+ 检验
批量操作
{{item.number}}
+ {{ scope.row.equip_name }}
+ {{ scope.row.work_start_time }}
+ {{ scope.row.work_time }}
+ {{ scope.row.work_end_time }}
+ {{ scope.row[item.testitem_name] }}
{
- that.process_type=res.process_type;
- if(that.mode == 'outs'&&qct!==''&&qct!==null){//输出
- that.getdefects();
- }else{
- that.getList();
- }
- })
- this.visible = true;
+ if(that.mode == 'outs'&&qct!==''&&qct!==null){//输出
+ that.getdefects();
+ }else{
+ that.getList();
+ }
+ that.visible = true;
setTimeout(() => {
- this.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
+ that.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
},500)
},
getNewNumber(){
@@ -591,7 +592,7 @@ export default {
}
console.log('num',num);
console.log('data.number:',data.number);
- if(this.mgroupName=='排一次棒'){
+ if(that.mgroupName=='排一次棒'){
that.addTemplate.number = years+months+num;
}
if(that.mgroupName=='排板'){
@@ -604,13 +605,11 @@ export default {
let index = that.mlogbwlist.indexOf(row);
let end = new Date(row.work_start_time).getTime()+time;
let end_time = that.$TOOL.dateFormat(new Date(end), 'yyyy-MM-dd hh:mm:ss');
- console.log('index',index);
- console.log('end_time',end_time);
that.mlogbwlist[index].work_end_time = end_time;
},
getEquipment4() {
let that = this;
- that.$API.em.equipment.list.req({page:0,cate__code:"4"}).then((res) => {
+ that.$API.em.equipment.list.req({page:0,cate__code:"4",query:"{id,name,number}"}).then((res) => {
that.optionsEq = res;
})
},
@@ -628,7 +627,7 @@ export default {
res.qct_defects.forEach((item) => {
that.addTemplate[item.defect_name] = false;
let obj = Object.assign({}, item);
- obj.canEdit = that.process_type=='20'?false:true;
+ obj.canEdit = that.processType=='20'?false:true;
that.qct_defects.push(obj);
})
that.qct_defects_origin = that.qct_defects;
@@ -636,7 +635,7 @@ export default {
res.qct_testitems.forEach((item2) => {
let obj2 = Object.assign({}, item2);
obj2.value = '';
- obj2.canEdit = that.process_type=='20'?false:true;
+ obj2.canEdit = that.processType=='20'?false:true;
obj2.addto_wpr = item2.addto_wpr;
if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){
@@ -660,7 +659,7 @@ export default {
},
getOptions(){
let that = this;
- that.$API.wpm.wpr.list.req({wm:that.wm,page:0}).then((res) => {
+ that.$API.wpm.wpr.list.req({wm:that.wm,page:0,query:"{id,number}"}).then((res) => {
that.options = res;
})
},
@@ -706,11 +705,6 @@ export default {
})
that.qct_testitems.forEach((item2) => {
obj[item2.testitem_name] = null;
- // if(item2.testitem_field_type=='input-number'||item.testitem_field_type=='input-int'){
- // obj[item2.testitem_name] = null;
- // }else{
- // obj[item2.testitem_name] = "";
- // }
})
}
}
@@ -806,12 +800,18 @@ export default {
});
},
formTableEdit(row) {
- this.mlogbwlist.forEach((item, index) => {
+ let that = this;
+ if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){
+ that.getEquipment4();
+ }
+ that.mlogbwlist.forEach((item, index) => {
if (item.id == row.id) {
- this.mlogbwlist[index].isEdit = true;
+ that.mlogbwlist[index].isEdit = true;
+ console.log('row',row);
+ console.log('that.qct_testitems',that.qct_testitems);
let date = new Date();
- if(this.mlogbwlist[index].work_start_time==''||this.mlogbwlist[index].work_start_time==null){
- this.mlogbwlist[index].work_start_time = this.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
+ if(that.mlogbwlist[index].work_start_time==''||that.mlogbwlist[index].work_start_time==null){
+ that.mlogbwlist[index].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
}
}
});
@@ -901,7 +901,7 @@ export default {
},
userChange(val){
let that = this;
- this.$API.system.user.item.req(val).then((res) => {
+ that.$API.system.user.item.req(val).then((res) => {
that.setForm.test_user_name = res.name;
})
},
@@ -960,7 +960,7 @@ export default {
},
checkSetting(){
let that = this;
- this.$refs.dialogForm.validate((valid) => {
+ that.$refs.dialogForm.validate((valid) => {
if (valid) {
Object.assign(that.setForm,that.form);
that.mlogbwlist.forEach(item => {
@@ -1011,9 +1011,9 @@ export default {
}
});
that.$API.wpm.mlogbw.update.req("bulk",that.mlogbwlist).then((res) => {
- this.form = {};
+ that.form = {};
that.checkVisible = false;
- this.multipleSet = true;
+ that.multipleSet = true;
that.descriptionVisible = true;
that.qct_defects = [];
that.qct_defects = that.defectlists;
@@ -1106,7 +1106,7 @@ export default {
},
saveSetting(){
let that = this;
- this.$refs.dialogForm.validate((valid) => {
+ that.$refs.dialogForm.validate((valid) => {
if (valid) {
that.selectWpr.forEach(item => {
item.ftest.ftestdefects.forEach(defect => {
diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue
index 63352d2c..4b47db13 100644
--- a/src/views/wpm_bx/mlogs.vue
+++ b/src/views/wpm_bx/mlogs.vue
@@ -202,6 +202,7 @@
:mtask="mtask"
:dept = "deptId"
:mgroup="mgroupId"
+ :processType="processType"
@closed="detailClose"
>
@@ -244,6 +245,10 @@ export default {
mgroupMtype: {
type: Number,
default: 10,
+ },
+ processType: {
+ type: String,
+ default: "",
}
},
name: "mlog",