This commit is contained in:
2025-07-10 14:16:42 +08:00
parent b4b5ea3994
commit 08adb88985
2 changed files with 26 additions and 6 deletions

View File

@@ -557,7 +557,8 @@ export default {
startProcess() { startProcess() {
let params = { let params = {
state: 5 state: 5,
batchId:this.processBatchId
} }
materialAbnormalStart(params).then(res => { materialAbnormalStart(params).then(res => {
if (res.data !== 0) { if (res.data !== 0) {
@@ -593,7 +594,6 @@ export default {
checkFinal() { checkFinal() {
stepCheckAbnormal(this.processBatchId).then(res => { stepCheckAbnormal(this.processBatchId).then(res => {
console.log(res)
if (res.data === 0) { if (res.data === 0) {
this.finalFlag = 1 this.finalFlag = 1
this.dialogVisible = true this.dialogVisible = true
@@ -665,8 +665,18 @@ export default {
let nowPass = this.nowPass let nowPass = this.nowPass
let temp = nowPass.step % 8 let temp = nowPass.step % 8
// 计算circleStart的角度1~7分别对应0,45,90,135,180,225,2700对应315 const angleMap = {
this.circleStart = temp === 0 ? 315 : (temp - 1) * 45 0: 315,
1: 0,
2: 90,
3: 45,
4: 135,
5: 180,
6: 270,
7: 225,
8: 315,
};
this.circleStart = angleMap[temp];
}) })
}, },

View File

@@ -668,8 +668,18 @@ export default {
this.stepFlag = this.nowPass.state this.stepFlag = this.nowPass.state
let nowPass = this.nowPass let nowPass = this.nowPass
let temp = nowPass.step % 8 let temp = nowPass.step % 8
// 计算circleStart的角度1~7分别对应0,45,90,135,180,225,2700对应315 const angleMap = {
this.circleStart = temp === 0 ? 315 : (temp - 1) * 45 0: 315,
1: 0,
2: 90,
3: 45,
4: 135,
5: 180,
6: 270,
7: 225,
8: 315,
};
this.circleStart = angleMap[temp];
}) })
}, },