fix:生产日志中mgroup重复请求问题
This commit is contained in:
parent
d8e2665bc4
commit
92143e53fe
|
|
@ -234,10 +234,30 @@ import saveDialog from "./handover_form.vue";
|
||||||
import print from "./../setting/print/A4.vue";
|
import print from "./../setting/print/A4.vue";
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
deptId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
mgroupName: {
|
mgroupName: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
processId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupcode: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
processtype:{
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
name: "handover",
|
name: "handover",
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -268,65 +288,23 @@ export default {
|
||||||
selection: [],
|
selection: [],
|
||||||
handoverItem:{},
|
handoverItem:{},
|
||||||
values: "交送",
|
values: "交送",
|
||||||
deptId:'',
|
|
||||||
mtask: "",
|
mtask: "",
|
||||||
mlogId: "",
|
mlogId: "",
|
||||||
codeText:"",
|
codeText:"",
|
||||||
mgroupId: "",
|
|
||||||
processId: "",
|
|
||||||
processtype:"",
|
|
||||||
processCate: "",
|
|
||||||
printer_name: "",
|
printer_name: "",
|
||||||
printVisible:false,
|
printVisible:false,
|
||||||
setNameVisible: false,
|
setNameVisible: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getMgroupInfo();
|
let that = this;
|
||||||
|
that.printer_name = localStorage.getItem("printer_name");
|
||||||
|
that.$TOOL.data.set('gx_deptID',that.deptId)
|
||||||
|
that.params.mgroup = that.mgroupId;
|
||||||
|
that.apiObj = that.$API.wpm.handover.list;
|
||||||
|
that.$refs.table.refresh();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMgroupInfo(){
|
|
||||||
let that = this;
|
|
||||||
if(that.mgroupName=="size"){//尺寸检验
|
|
||||||
// that.params.material__process__name="一次超洗";
|
|
||||||
that.$API.system.dept.list.req({name__contains:'尺寸',page:0}).then((res) => {
|
|
||||||
if(res.length>0){
|
|
||||||
that.deptId = res[0].id;
|
|
||||||
that.params.dept=res[0].id;
|
|
||||||
}
|
|
||||||
that.apiObj = that.$API.wpm.handover.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
})
|
|
||||||
}else if(that.mgroupName=="facade"){//外观检验
|
|
||||||
// that.params.material__process__name="二次超洗";
|
|
||||||
that.$API.system.dept.list.req({name__contains:'外观',page:0}).then((res) => {
|
|
||||||
if(res.length>0){
|
|
||||||
that.deptId = res[0].id;
|
|
||||||
that.params.dept=res[0].id;
|
|
||||||
}
|
|
||||||
that.apiObj = that.$API.wpm.handover.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
})
|
|
||||||
}else{//工段交接
|
|
||||||
that.printer_name = localStorage.getItem("printer_name");
|
|
||||||
that.$API.mtm.mgroup.list
|
|
||||||
.req({ page: 0, name: that.mgroupName })
|
|
||||||
.then((res) => {
|
|
||||||
if (res.length < 1) {
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
|
|
||||||
that.mgroupId = res[0].id;
|
|
||||||
that.processId = res[0].process;
|
|
||||||
that.processCate = res[0].process_cate;
|
|
||||||
that.processtype = res[0].process_type;
|
|
||||||
that.params.mgroup = that.mgroupId;
|
|
||||||
that.apiObj = that.$API.wpm.handover.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
printSetting(){
|
printSetting(){
|
||||||
this.setNameVisible = true;
|
this.setNameVisible = true;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
style="height: 60%"
|
style="height: 60%"
|
||||||
></mlogs>
|
></mlogs>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
style="height: 40%"
|
style="height: 40%"
|
||||||
></mtask>
|
></mtask>
|
||||||
|
|
@ -34,29 +34,30 @@
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
|
:processtype="processtype"
|
||||||
></handover>
|
></handover>
|
||||||
<!-- 库存 -->
|
<!-- 库存 -->
|
||||||
<inm v-else-if="values == '来料未完成'&&componentsShow"
|
<inm v-else-if="values == '来料未完成'&&componentsShow"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></inm>
|
></inm>
|
||||||
<inmOut v-else-if="values == '出料已完成'"
|
<inmOut v-else-if="values == '出料已完成'"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></inmOut>
|
></inmOut>
|
||||||
<record v-else
|
<record v-else
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></record>
|
></record>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
|
@ -83,6 +84,8 @@ export default {
|
||||||
selectedIndex:0,
|
selectedIndex:0,
|
||||||
mgroup_code:'',
|
mgroup_code:'',
|
||||||
mgroupDept:'',
|
mgroupDept:'',
|
||||||
|
processtype:'',
|
||||||
|
processId:'',
|
||||||
componentsShow:false,
|
componentsShow:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -118,7 +121,8 @@ export default {
|
||||||
that.mgroups = res;
|
that.mgroups = res;
|
||||||
that.mgroupName = res[0].name;
|
that.mgroupName = res[0].name;
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.mgroupProcess = res[0].process;
|
that.processId = res[0].process;
|
||||||
|
that.processtype = res[0].process_type;
|
||||||
that.mgroupDept = res[0].belong_dept;
|
that.mgroupDept = res[0].belong_dept;
|
||||||
that.componentsShow = true;
|
that.componentsShow = true;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
style="height: 60%"
|
style="height: 60%"
|
||||||
></mlogs>
|
></mlogs>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
style="height: 40%"
|
style="height: 40%"
|
||||||
></mtask>
|
></mtask>
|
||||||
|
|
@ -34,29 +34,30 @@
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
|
:processtype="processtype"
|
||||||
></handover>
|
></handover>
|
||||||
<!-- 库存 -->
|
<!-- 库存 -->
|
||||||
<inm v-else-if="values == '来料未完成'&&componentsShow"
|
<inm v-else-if="values == '来料未完成'&&componentsShow"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></inm>
|
></inm>
|
||||||
<inmOut v-else-if="values == '出料已完成'"
|
<inmOut v-else-if="values == '出料已完成'"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></inmOut>
|
></inmOut>
|
||||||
<record v-else
|
<record v-else
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
:deptId = "mgroupDept"
|
:deptId = "mgroupDept"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:processId="mgroupProcess"
|
:processId="processId"
|
||||||
:mgroupcode="mgroup_code"
|
:mgroupcode="mgroup_code"
|
||||||
></record>
|
></record>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
|
@ -83,6 +84,8 @@ export default {
|
||||||
selectedIndex:0,
|
selectedIndex:0,
|
||||||
mgroup_code:'',
|
mgroup_code:'',
|
||||||
mgroupDept:'',
|
mgroupDept:'',
|
||||||
|
processtype:'',
|
||||||
|
processId:'',
|
||||||
componentsShow:false,
|
componentsShow:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -118,7 +121,8 @@ export default {
|
||||||
that.mgroups = res;
|
that.mgroups = res;
|
||||||
that.mgroupName = res[0].name;
|
that.mgroupName = res[0].name;
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.mgroupProcess = res[0].process;
|
that.processId = res[0].process;
|
||||||
|
that.processtype = res[0].process_type;
|
||||||
that.mgroupDept = res[0].belong_dept;
|
that.mgroupDept = res[0].belong_dept;
|
||||||
that.componentsShow = true;
|
that.componentsShow = true;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -284,28 +284,8 @@ export default {
|
||||||
that.params.tag="todo";
|
that.params.tag="todo";
|
||||||
that.$TOOL.data.set('gx_deptID',that.deptId)
|
that.$TOOL.data.set('gx_deptID',that.deptId)
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
// this.getMgroupInfo();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMgroupInfo(){
|
|
||||||
let that = this;
|
|
||||||
console.log(that.mgroupName);
|
|
||||||
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
|
|
||||||
if (res.length < 1) {
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.mgroupId = res[0].id;
|
|
||||||
that.process = res[0].process;
|
|
||||||
that.belong_dept = res[0].belong_dept;
|
|
||||||
that.process_type =res[0].process_type;
|
|
||||||
that.params.mgroup = res[0].id;
|
|
||||||
that.params.tag="todo";
|
|
||||||
that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
|
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
selectionChange(selection) {
|
selectionChange(selection) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.selection = selection;
|
that.selection = selection;
|
||||||
|
|
|
||||||
|
|
@ -176,9 +176,9 @@
|
||||||
v-if="dialog.inmRecord"
|
v-if="dialog.inmRecord"
|
||||||
ref="inmRecordDialog"
|
ref="inmRecordDialog"
|
||||||
:cate = "cate_type"
|
:cate = "cate_type"
|
||||||
:process = "process"
|
:process = "processId"
|
||||||
:mgroupId = "params.mgroupx"
|
:mgroupId = "mgroupId"
|
||||||
:deptId = " params.belong_dept"
|
:deptId = "params.belong_dept"
|
||||||
@success="handleinmSuccess"
|
@success="handleinmSuccess"
|
||||||
>
|
>
|
||||||
</save-dialog>
|
</save-dialog>
|
||||||
|
|
@ -202,10 +202,26 @@ import handoverDialog from "./handover_form2.vue";
|
||||||
import saveDialog from "./inm_record.vue";
|
import saveDialog from "./inm_record.vue";
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
deptId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
mgroupName: {
|
mgroupName: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
processId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupcode: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
saveDialog,
|
saveDialog,
|
||||||
|
|
@ -250,7 +266,6 @@ export default {
|
||||||
material: "",
|
material: "",
|
||||||
},
|
},
|
||||||
cate_type:'',
|
cate_type:'',
|
||||||
process:'',
|
|
||||||
materialType: "wm",
|
materialType: "wm",
|
||||||
changebatch:false,
|
changebatch:false,
|
||||||
materialsVisible:false,
|
materialsVisible:false,
|
||||||
|
|
@ -260,26 +275,14 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getMgroupInfo();
|
let that = this;
|
||||||
|
that.params.mgroup = that.mgroupId;
|
||||||
|
that.params.tag = 'done';
|
||||||
|
that.$TOOL.data.set('gx_deptID',that.deptId);
|
||||||
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
|
// that.$refs.table.refresh();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMgroupInfo(){
|
|
||||||
let that = this;
|
|
||||||
console.log(that.mgroupName);
|
|
||||||
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
|
|
||||||
if (res.length < 1) {
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.mgroupId = res[0].id;
|
|
||||||
that.process = res[0].process;
|
|
||||||
that.params.mgroup = res[0].id;
|
|
||||||
that.params.tag = 'done';
|
|
||||||
that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
|
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
add() {
|
add() {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
|
||||||
|
|
@ -157,8 +157,8 @@
|
||||||
v-if="dialog.inmRecord"
|
v-if="dialog.inmRecord"
|
||||||
ref="inmRecordDialog"
|
ref="inmRecordDialog"
|
||||||
:cate = "cate_type"
|
:cate = "cate_type"
|
||||||
:process = "process"
|
:process = "processId"
|
||||||
:mgroupId = "params.mgroup"
|
:mgroupId = "mgroupId"
|
||||||
:deptId = " deptId"
|
:deptId = " deptId"
|
||||||
@success="handleinmSuccess"
|
@success="handleinmSuccess"
|
||||||
>
|
>
|
||||||
|
|
@ -173,10 +173,26 @@ export default {
|
||||||
saveDialog
|
saveDialog
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
deptId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
mgroupName: {
|
mgroupName: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
processId: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
mgroupcode: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -209,7 +225,6 @@ export default {
|
||||||
apiObj: null,
|
apiObj: null,
|
||||||
selection: [],
|
selection: [],
|
||||||
type: "",
|
type: "",
|
||||||
deptId:"",
|
|
||||||
process: "",
|
process: "",
|
||||||
cate: "good",
|
cate: "good",
|
||||||
mioId: "",
|
mioId: "",
|
||||||
|
|
@ -219,18 +234,8 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$nextTick(() => {
|
that.params.mgroup = that.mgroupId;
|
||||||
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
|
that.apiObj = that.$API.inm.mio.list;
|
||||||
if (res.length < 1) {
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.params.mgroup = res[0].id;
|
|
||||||
that.deptId = res[0].belong_dept;
|
|
||||||
that.process = res[0].process;
|
|
||||||
that.apiObj = that.$API.inm.mio.list;
|
|
||||||
});
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tomio(type) {
|
tomio(type) {
|
||||||
|
|
|
||||||
|
|
@ -212,24 +212,8 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.mgroup = that.mgroupId;
|
that.params.mgroup = that.mgroupId;
|
||||||
that.apiObj = that.$API.wpm.mlog.list;
|
that.apiObj = that.$API.wpm.mlog.list;
|
||||||
// this.getMgroupInfo();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMgroupInfo(){
|
|
||||||
let that = this;
|
|
||||||
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => {
|
|
||||||
if (res.length < 1) {
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.mgroupId = res[0].id;
|
|
||||||
that.deptId = res[0].belong_dept;
|
|
||||||
that.processId = res[0].process;
|
|
||||||
that.params.mgroup = res[0].id;
|
|
||||||
that.apiObj = that.$API.wpm.mlog.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getRemaTime(row){
|
getRemaTime(row){
|
||||||
if(row.work_start_time !== null){
|
if(row.work_start_time !== null){
|
||||||
let times = 0;
|
let times = 0;
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,14 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="合格数" prop="count_ok">
|
<el-table-column label="合格数" prop="count_ok">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="分配人数" prop="mtaskb">
|
<!-- <el-table-column label="分配人数" prop="mtaskb">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.mtaskb.length>0">
|
<span v-if="scope.row.mtaskb.length>0">
|
||||||
{{scope.row.mtaskb.length}}
|
{{scope.row.mtaskb.length}}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column label="可用批" v-if="mgroupName!='切片'">
|
<el-table-column label="可用批" v-if="mgroupName!='切片'" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
|
|
@ -160,28 +160,8 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.mgroup = that.mgroupId;
|
that.params.mgroup = that.mgroupId;
|
||||||
that.apiObj = this.$API.pm.mtask.list;
|
that.apiObj = this.$API.pm.mtask.list;
|
||||||
// this.getMgroupInfo();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMgroupInfo(){
|
|
||||||
let that = this;
|
|
||||||
that.$API.mtm.mgroup.list
|
|
||||||
.req({ page: 0, name: that.mgroupName })
|
|
||||||
.then((res) => {
|
|
||||||
if(res.length>0){
|
|
||||||
that.mgroupId = res[0].id;
|
|
||||||
that.deptId = res[0].belong_dept;
|
|
||||||
that.processId = res[0].process;
|
|
||||||
that.processCate = res[0].process_cate;
|
|
||||||
that.params.mgroup = res[0].id;
|
|
||||||
that.apiObj = this.$API.pm.mtask.list;
|
|
||||||
that.$refs.table.refresh();
|
|
||||||
}else{
|
|
||||||
that.$message.error("获取工段错误");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
viewBatches(row){
|
viewBatches(row){
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue