看版逻辑修改

yangwl
guoshuang 3 months ago
parent cefd6b0f62
commit c17e2d4393

@ -129,6 +129,7 @@
style="height: 44px"
:key="index"
v-for="(n, index) in orderdetail"
@click="getorderdetail(n.workorderCodeSap)"
>
<td style="width: 8%">{{ n.workorderCodeSap }}</td>
<!-- <td style="width: 8%;">{{ n.orderNo }}</td> -->
@ -407,11 +408,12 @@ export default {
optionDatalist5: [],
optionDatalist6: [],
colorlist: ["#005aff", "#f8b551"],
datetime: null,
datetime: 0,
time1: null,
getlist: [],
repairlist: [],
orderdetail: [],
gudingworkorderCodeSap:'',
packaginglinerepairlist: [],
packaginglinestabilizelist: [],
packaginglineinfo: [],
@ -483,7 +485,7 @@ export default {
this.RefreshTime = response.data;
this.time1 = setInterval(() => {
_this.getdatalist(_this.selectxt);
}, 1000 * 60 * this.RefreshTime);
},1000 * 60 * this.RefreshTime);
}
});
},
@ -505,9 +507,61 @@ export default {
const _this = this;
_this.initChart1();
_this.piedata = [];
getProductionLineInfo({
// 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({
equCode: _this.selectxtclasses,
factoryCode: "ds_" + _this.selectxt,
workorderCodeSap: item,
}).then((response) => {
if (response) {
_this.workOrder = response.data.workOrder;
@ -528,20 +582,9 @@ export default {
_this.piedata[1] = b;
}
});
_this.initChart2();
//_this.initChart2();
} else {
_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;
//_this.initChart3();
}
}
});

Loading…
Cancel
Save