工单排程详情修改提交001

This commit is contained in:
赵正易 2024-07-18 10:37:00 +08:00
parent a02a401ccb
commit 4e8f49dcd5

View File

@ -674,7 +674,10 @@
toUpdateNum: 0, // toUpdateNum: 0, //
toname: '', toname: '',
toindex: 0, // toindex: 0, //
//
timer: null, timer: null,
//
timer2: null,
mqttClient: null, mqttClient: null,
mqttClientId: emqxUtil.title + Math.random().toString(16).substring(2, 8) mqttClientId: emqxUtil.title + Math.random().toString(16).substring(2, 8)
} }
@ -682,7 +685,7 @@
created() { created() {
this.initMqtt(); this.initMqtt();
this.getcurrentWorkorder() this.getcurrentWorkorder()
this.startTimer() this.startTimer2()
}, },
mounted() {}, mounted() {},
watch: { watch: {
@ -1107,20 +1110,23 @@
}, },
//todo 4s //todo 4s
startTimer() { startTimer2() {
this.timer = setInterval(() => { this.timer2 = setInterval(() => {
// //
calculate_packagingInvestment({ workorder_id: this.CurrentWorkorder.clientWorkorder }).then((res) => { calculate_packagingInvestment({ workorder_id: this.CurrentWorkorder.clientWorkorder }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.CurrentWorkorder.previousNumber = res.data this.CurrentWorkorder.previousNumber = res.data
} }
}) })
//
this.handlerSyncDataBoard(this.CurrentWorkorder.clientWorkorder); this.handlerSyncDataBoard(this.CurrentWorkorder.clientWorkorder);
//
this.getWorkOrderInListStatus(this.CurrentWorkorder.clientWorkorder);
//this.getcurrentWorkorder() //this.getcurrentWorkorder()
}, 5000) }, 5000)
}, },
stopTimer() { stopTimer2() {
clearInterval(this.timer) clearInterval(this.timer2)
}, },
teamChange(value) { teamChange(value) {
@ -1312,7 +1318,7 @@
}, },
// 退 // 退
beforeDestroy() { beforeDestroy() {
this.stopTimer() this.stopTimer2()
}, },