|
|
@ -129,6 +129,7 @@
|
|
|
|
style="height: 44px"
|
|
|
|
style="height: 44px"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
v-for="(n, index) in orderdetail"
|
|
|
|
v-for="(n, index) in orderdetail"
|
|
|
|
|
|
|
|
@click="getorderdetail(n.workorderCodeSap)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<td style="width: 8%">{{ n.workorderCodeSap }}</td>
|
|
|
|
<td style="width: 8%">{{ n.workorderCodeSap }}</td>
|
|
|
|
<!-- <td style="width: 8%;">{{ n.orderNo }}</td> -->
|
|
|
|
<!-- <td style="width: 8%;">{{ n.orderNo }}</td> -->
|
|
|
@ -407,11 +408,12 @@ export default {
|
|
|
|
optionDatalist5: [],
|
|
|
|
optionDatalist5: [],
|
|
|
|
optionDatalist6: [],
|
|
|
|
optionDatalist6: [],
|
|
|
|
colorlist: ["#005aff", "#f8b551"],
|
|
|
|
colorlist: ["#005aff", "#f8b551"],
|
|
|
|
datetime: null,
|
|
|
|
datetime: 0,
|
|
|
|
time1: null,
|
|
|
|
time1: null,
|
|
|
|
getlist: [],
|
|
|
|
getlist: [],
|
|
|
|
repairlist: [],
|
|
|
|
repairlist: [],
|
|
|
|
orderdetail: [],
|
|
|
|
orderdetail: [],
|
|
|
|
|
|
|
|
gudingworkorderCodeSap:'',
|
|
|
|
packaginglinerepairlist: [],
|
|
|
|
packaginglinerepairlist: [],
|
|
|
|
packaginglinestabilizelist: [],
|
|
|
|
packaginglinestabilizelist: [],
|
|
|
|
packaginglineinfo: [],
|
|
|
|
packaginglineinfo: [],
|
|
|
@ -483,7 +485,7 @@ export default {
|
|
|
|
this.RefreshTime = response.data;
|
|
|
|
this.RefreshTime = response.data;
|
|
|
|
this.time1 = setInterval(() => {
|
|
|
|
this.time1 = setInterval(() => {
|
|
|
|
_this.getdatalist(_this.selectxt);
|
|
|
|
_this.getdatalist(_this.selectxt);
|
|
|
|
}, 1000 * 60 * this.RefreshTime);
|
|
|
|
},1000 * 60 * this.RefreshTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -505,9 +507,61 @@ export default {
|
|
|
|
const _this = this;
|
|
|
|
const _this = this;
|
|
|
|
_this.initChart1();
|
|
|
|
_this.initChart1();
|
|
|
|
_this.piedata = [];
|
|
|
|
_this.piedata = [];
|
|
|
|
|
|
|
|
// getProductionLineInfo({
|
|
|
|
|
|
|
|
// equCode: _this.selectxtclasses,
|
|
|
|
|
|
|
|
// factoryCode: "ds_" + _this.selectxt,
|
|
|
|
|
|
|
|
// }).then((response) => {
|
|
|
|
|
|
|
|
// if (response) {
|
|
|
|
|
|
|
|
// _this.workOrder = response.data.workOrder;
|
|
|
|
|
|
|
|
// _this.taskNum = response.data.taskNum;
|
|
|
|
|
|
|
|
// _this.taskSampleNum = response.data.taskSampleNum;
|
|
|
|
|
|
|
|
// if (response.data.piedata.checkList) {
|
|
|
|
|
|
|
|
// response.data.piedata.checkList.forEach((item) => {
|
|
|
|
|
|
|
|
// let a = {};
|
|
|
|
|
|
|
|
// let b = {};
|
|
|
|
|
|
|
|
// if (item.checkResult == "合格") {
|
|
|
|
|
|
|
|
// a.name = item.checkResult;
|
|
|
|
|
|
|
|
// a.value = item.quality;
|
|
|
|
|
|
|
|
// _this.piedata[0] = a;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (item.checkResult == "不合格") {
|
|
|
|
|
|
|
|
// b.name = item.checkResult;
|
|
|
|
|
|
|
|
// b.value = item.quality;
|
|
|
|
|
|
|
|
// _this.piedata[1] = b;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// _this.initChart2();
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// _this.initChart3();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
getPorOrderList({
|
|
|
|
|
|
|
|
equCode: _this.selectxtclasses,
|
|
|
|
|
|
|
|
factoryCode: "ds_" + _this.selectxt,
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
|
|
|
if (response) {
|
|
|
|
|
|
|
|
_this.orderdetail = response.data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(_this.datetime == 0){
|
|
|
|
|
|
|
|
_this.gudingworkorderCodeSap = _this.orderdetail[0].workorderCodeSap;
|
|
|
|
|
|
|
|
_this.getorderdetail(_this.gudingworkorderCodeSap);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
_this.datetime+=1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_this.orderdetail.length == 0) {
|
|
|
|
|
|
|
|
_this.orderdetail = this.ceshitable;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//选择订单查看详细
|
|
|
|
|
|
|
|
getorderdetail(item) {
|
|
|
|
|
|
|
|
const _this = this;
|
|
|
|
getProductionLineInfo({
|
|
|
|
getProductionLineInfo({
|
|
|
|
equCode: _this.selectxtclasses,
|
|
|
|
equCode: _this.selectxtclasses,
|
|
|
|
factoryCode: "ds_" + _this.selectxt,
|
|
|
|
factoryCode: "ds_" + _this.selectxt,
|
|
|
|
|
|
|
|
workorderCodeSap: item,
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
if (response) {
|
|
|
|
if (response) {
|
|
|
|
_this.workOrder = response.data.workOrder;
|
|
|
|
_this.workOrder = response.data.workOrder;
|
|
|
@ -528,20 +582,9 @@ export default {
|
|
|
|
_this.piedata[1] = b;
|
|
|
|
_this.piedata[1] = b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
_this.initChart2();
|
|
|
|
//_this.initChart2();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
_this.initChart3();
|
|
|
|
//_this.initChart3();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
getPorOrderList({
|
|
|
|
|
|
|
|
equCode: _this.selectxtclasses,
|
|
|
|
|
|
|
|
factoryCode: "ds_" + _this.selectxt,
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
|
|
|
if (response) {
|
|
|
|
|
|
|
|
_this.orderdetail = response.data;
|
|
|
|
|
|
|
|
if (_this.orderdetail.length == 0) {
|
|
|
|
|
|
|
|
_this.orderdetail = this.ceshitable;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|