fix:玻纤首页数据调整

This commit is contained in:
shijing 2025-06-09 14:43:07 +08:00
parent 15aa2ca1d2
commit a5770cd4f5
1 changed files with 49 additions and 42 deletions

View File

@ -21,17 +21,17 @@
<div class="retangleWrap">
<div class="retangleContainer">
<div class="retangleTitle">
<div class="title">待接收的物料</div>
<div class="title">设备列表</div>
</div>
<div class="retangleTable">
<el-table
:data="tableData"
:data="tableDataEq"
style="width: 100%; height: 285px"
>
<el-table-column prop="name" label="物料名称"/>
<el-table-column prop="model" label="型号"/>
<el-table-column prop="specification" label="规格"/>
<el-table-column prop="count" label="数量"/>
<el-table-column prop="name" label="设备名称"/>
<el-table-column prop="number" label="设备编号"/>
<el-table-column prop="model" label="设备型号"/>
<el-table-column prop="belong_dept_name" label="所属部门"/>
</el-table>
</div>
</div>
@ -41,17 +41,16 @@
<div class="retangleWrap" style="padding: 25px 0 0 0;">
<div class="retangleContainer">
<div class="retangleTitle">
<div class="title">待填日志的物料</div>
<div class="title">车间物料</div>
</div>
<div class="retangleTable">
<el-table
:data="tableData"
:data="tableDataIn"
style="width: 100%; height: 285px"
>
<el-table-column prop="name" label="物料名称"/>
<el-table-column prop="model" label="型号"/>
<el-table-column prop="specification" label="规格"/>
<el-table-column prop="count" label="数量"/>
<el-table-column prop="material_name" label="物料名称" min-width="120"/>
<el-table-column prop="mgroup_name" label="所属工段" min-width="60"/>
<el-table-column prop="count" label="数量" min-width="60"/>
</el-table>
</div>
</div>
@ -61,11 +60,11 @@
<div class="retangleWrap">
<div class="retangleContainer">
<div class="retangleTitle">
<div class="title">待交送的物料</div>
<div class="title">半成品库存统计</div>
</div>
<div class="retangleTable">
<el-table
:data="tableData"
:data="tableDataOut"
style="width: 100%; height: 285px"
>
<el-table-column prop="name" label="物料名称"/>
@ -83,7 +82,7 @@
<div class="retangleWrap" style="padding: 25px 0 0 20px;">
<div class="retangleContainer">
<div class="retangleTitle">
<div class="title">生产任务列表</div>
<div class="title">成品库存统计</div>
</div>
<div class="retangleTable">
<el-table
@ -121,6 +120,9 @@ export default {
data() {
return {
tableData: [],
tableDataIn: [],
tableDataEq: [],
tableDataOut: [],
materialType: 20,
option: {
tooltip: {
@ -174,14 +176,16 @@ export default {
},
mounted() {
this.$emit("on-mounted");
//1
//
this.getEquipmentList();
//2
//
this.getMaterialInList();
//
this.getMaterialOutList();
//
this.getMaterialList();
this.getMaterialRecive();//
this.getMaterialMlog();//
this.getMaterialSend();//
this.getMtaskLists();//
//
// this.getMtaskLists();
},
methods: {
// Class
@ -199,30 +203,33 @@ export default {
return classInfo;
},
//
getEquipmentList(){},
//
getMaterialList() {
getEquipmentList(){
let that = this;
let nameList = [], countList = [];
that.$API.mtm.material.list.req({ page: 0, type: that.materialType,count__gt:0 }).then((res) => {
that.tableData = res;
res.forEach(item => {
let index = nameList.indexOf(item.name);
if(index<0){
nameList.push(item.name);
countList.push(item.count);
}
});
that.option.xAxis.data = nameList;
that.option.series.data = countList;
that.$API.em.equipment.list.req({ page: 0, type: 10 }).then((res) => {
that.tableDataEq = res;
});
},
//
getMaterialInList(){
let that = this;
that.$API.wpm.wmaterial.list.req({ page: 0, material__type: '20',count__gte:1 }).then((res) => {
that.tableDataIn = res;
});
},
//
getMaterialOutList(){
let that = this;
that.$API.mtm.material.list.req({ page: 0, material__type: 20,count__gt:0 }).then((res) => {
that.tableDataOut = res;
});
},
//
getMaterialList() {
let that = this;
that.$API.mtm.material.list.req({ page: 0, material__type: 10,count__gt:0 }).then((res) => {
that.tableData = res;
});
},
//
getMaterialRecive(){},
//
getMaterialMlog(){},
//
getMaterialSend(){},
//
getMtaskLists(){},
},