fix:玻纤生产执行页面变更
This commit is contained in:
parent
d2821d5e98
commit
9018800f4f
|
@ -0,0 +1,107 @@
|
||||||
|
<template>
|
||||||
|
<el-container>
|
||||||
|
<el-header>
|
||||||
|
<el-segmented
|
||||||
|
v-model="values"
|
||||||
|
:options="options"
|
||||||
|
size="default"
|
||||||
|
></el-segmented>
|
||||||
|
</el-header>
|
||||||
|
<el-main id="elMain" class="nopadding">
|
||||||
|
<!-- 日志 -->
|
||||||
|
<mlogs
|
||||||
|
v-if="values == '日志'"
|
||||||
|
:mgroupName="mgroupName"
|
||||||
|
style="height: 60%"
|
||||||
|
></mlogs>
|
||||||
|
<mtask
|
||||||
|
v-if="values == '日志'"
|
||||||
|
:mgroupName="mgroupName"
|
||||||
|
style="height: 40%"
|
||||||
|
></mtask>
|
||||||
|
<!-- 交接记录 -->
|
||||||
|
<handover
|
||||||
|
v-else-if="values == '交接记录'"
|
||||||
|
:mgroupName="mgroupName"
|
||||||
|
></handover>
|
||||||
|
<!-- 库存 -->
|
||||||
|
<inm v-else-if="values == '库存'" :mgroupName="mgroupName"></inm>
|
||||||
|
|
||||||
|
</el-main>
|
||||||
|
</el-container>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import inm from "./inm.vue";
|
||||||
|
import mlogs from "./mlogs.vue";
|
||||||
|
import mtask from "./mtask.vue";
|
||||||
|
import handover from "./handover.vue";
|
||||||
|
export default {
|
||||||
|
name: "bx",
|
||||||
|
components: { inm, mlogs, mtask, handover },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
mgroups:[],
|
||||||
|
tableHieght: 200,
|
||||||
|
options: ["日志", "交接记录", "库存"],
|
||||||
|
values: "日志",
|
||||||
|
mgroupName: "",
|
||||||
|
mgroupId: "",
|
||||||
|
selectedIndex:0,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
let that = this;
|
||||||
|
let height = document.getElementById("elMain").clintHeight / 2;
|
||||||
|
that.tableHieght = height;
|
||||||
|
let paths = this.$route.path;
|
||||||
|
let arr = paths.split("/");
|
||||||
|
let mgroup_code = arr[2];
|
||||||
|
that.getMgroups(mgroup_code);
|
||||||
|
console.log("arr",arr);
|
||||||
|
console.log("mgroup_code",mgroup_code);
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleChange(value) {
|
||||||
|
this.value = value;
|
||||||
|
console.log("Selected value:", value);
|
||||||
|
},
|
||||||
|
getMgroups(code){
|
||||||
|
let that = this;
|
||||||
|
that.$API.mtm.mgroup.list.req({page:0,code}).then((res) => {
|
||||||
|
that.mgroups = res;
|
||||||
|
that.mgroupName = res[0].name;
|
||||||
|
that.mgroupId = res[0].id;
|
||||||
|
that.mgroupProcess = res[0].process;
|
||||||
|
that.mgroupDept = res[0].belong_dept;
|
||||||
|
console.log("mgroups",that.mgroups);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
changeMgroup(id,index){
|
||||||
|
let that = this;
|
||||||
|
that.selectedIndex = index;
|
||||||
|
console.log(that.selectedIndex);
|
||||||
|
that.mgroupId = id;
|
||||||
|
that.mgroupName = that.mgroups[index].name;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.countBlock {
|
||||||
|
width: 80px;
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.mgroupItem{
|
||||||
|
height: 35px;
|
||||||
|
width: 80px;
|
||||||
|
line-height: 35px;
|
||||||
|
margin: 5px 0;
|
||||||
|
text-align: center;
|
||||||
|
color: #6e80ff;
|
||||||
|
}
|
||||||
|
.mgroupItem:hover,.mgroupItemActive{
|
||||||
|
color: #6e80ff;
|
||||||
|
background: rgba(83, 109, 254, 0.2);
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue