feat:光芯车间看板其他车间看板调整

This commit is contained in:
shijing 2025-11-19 11:08:54 +08:00
parent 5718e20d7a
commit 6186f8b2f8
5 changed files with 4 additions and 48 deletions

View File

@ -518,7 +518,7 @@ export default {
// //
getMaterials(page) { getMaterials(page) {
let that = this; let that = this;
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'倒角A,倒角B' }).then((res) => { that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'倒角' }).then((res) => {
if(res.results.length>0){ if(res.results.length>0){
res.results.forEach((item) => { res.results.forEach((item) => {
let arr = []; let arr = [];

View File

@ -519,7 +519,7 @@ export default {
// //
getMaterials(page) { getMaterials(page) {
let that = this; let that = this;
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B' }).then((res) => { that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'多线切' }).then((res) => {
if(res.results.length>0){ if(res.results.length>0){
res.results.forEach((item) => { res.results.forEach((item) => {
let arr = []; let arr = [];

View File

@ -518,7 +518,7 @@ export default {
// //
getMaterials(page) { getMaterials(page) {
let that = this; let that = this;
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B' }).then((res) => { that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'精雕' }).then((res) => {
if(res.results.length>0){ if(res.results.length>0){
res.results.forEach((item) => { res.results.forEach((item) => {
let arr = []; let arr = [];

View File

@ -518,7 +518,7 @@ export default {
// //
getMaterials(page) { getMaterials(page) {
let that = this; let that = this;
that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B' }).then((res) => { that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'白片抛后超洗,平磨,磨抛一次抛,一次抛后超洗,成品抛,一次超洗,二次超洗,三次超洗' }).then((res) => {
if(res.results.length>0){ if(res.results.length>0){
res.results.forEach((item) => { res.results.forEach((item) => {
let arr = []; let arr = [];

View File

@ -259,13 +259,6 @@ export default {
data:[], data:[],
waitTime:1000, waitTime:1000,
}, },
//
configDataHandover:{
headerBGC:'#0a3f44',
header:['物料','数量','交接类型','交接类别','交接日期'],
headerHeight:40,
data:[]
},
// //
configDataEq:{ configDataEq:{
headerBGC:'#0a3f44', headerBGC:'#0a3f44',
@ -312,7 +305,6 @@ export default {
that.daysList.push(dayitem); that.daysList.push(dayitem);
}) })
that.today = new Date().toISOString().split('T')[0] that.today = new Date().toISOString().split('T')[0]
// console.log('new Date', new Date().toISOString().split('T'))
this.xAxisData = xAxisData; this.xAxisData = xAxisData;
let startDate = new Date(daysArr[0]).getTime()-(1000*60*60*24); let startDate = new Date(daysArr[0]).getTime()-(1000*60*60*24);
let endDate = new Date(daysArr[6]).getTime()+(1000*60*60*24); let endDate = new Date(daysArr[6]).getTime()+(1000*60*60*24);
@ -324,19 +316,12 @@ export default {
this.$API.mtm.mgroup.list.req({page:0,belong_dept__name:'扫边车间'}).then((res) => { this.$API.mtm.mgroup.list.req({page:0,belong_dept__name:'扫边车间'}).then((res) => {
that.mgroups = res; that.mgroups = res;
that.configDataEq.data = []; that.configDataEq.data = [];
that.configDataHandover.data = [];
res.forEach((item)=>{ res.forEach((item)=>{
// //
that.getEqState(item.id); that.getEqState(item.id);
//
// this.getMaterials(item.id);
//
// this.getHandover(item.id);
}) })
}) })
this.getMaterials(that.page); this.getMaterials(that.page);
//
// this.getMtask();
/// ///
this.getProductLine(); this.getProductLine();
this.getCountnotok(); this.getCountnotok();
@ -530,35 +515,6 @@ export default {
} }
}); });
}, },
//
getHandover(id) {
let that = this;
let obj = {};
obj.mgroup = id;
obj.page = 0;
obj.send_date =
that.$API.wpm.handover.list.req(obj).then((res) => {
res.forEach((item) => {
let arr = [];
arr[0] = item.material_name;
arr[1] = item.count;
arr[2] = item.material_out_.model;
if(item.state==10){
arr[3]='<span style="color:rgb(0,163,245);displaydisplay:inline-block;padding:2px 6px;background:rgb(226,241,245);border:1px solid rgb(0,163,245);border-radius:3px">正常</span>';
}else if(item.state==20){
arr[3]='<span style="color:rgb(222,60,54);displaydisplay:inline-block;padding:2px 6px;background:rgb(247,231,231);border:1px solid rgb(222,60,54);border-radius:3px">返工</span>';
}else if(item.state==30){
arr[3]='<span style="color:rgb(69,176,118);displaydisplay:inline-block;padding:2px 6px;background:rgb(231,247,232);border:1px solid rgb(69,176,118);border-radius:3px">检验</span>';
}else if(item.state==40){
arr[3]='<span style="color:rgb(69,176,118);displaydisplay:inline-block;padding:2px 6px;background:rgb(231,247,232);border:1px solid rgb(69,176,118);border-radius:3px">报废</span>';
}
arr[4] = item.send_user_name;
arr[5] = item.recive_user_name;
arr[6] = item.send_date;
that.configDataHandover.data.push(arr);
});
});
},
// //
getMaterials(page) { getMaterials(page) {
let that = this; let that = this;