This commit is contained in:
2025-07-16 16:56:13 +08:00
parent f00a7ba07a
commit 60c98e0928
2 changed files with 48 additions and 49 deletions

View File

@@ -277,7 +277,8 @@
<el-table <el-table
:data="finalData" :data="finalData"
stripe stripe
style="width: 100%"> style="width: 100%"
>
<el-table-column type="index" label="序号"></el-table-column> <el-table-column type="index" label="序号"></el-table-column>
<el-table-column <el-table-column
prop="id" prop="id"
@@ -445,7 +446,7 @@ export default {
processBatchId: 0, processBatchId: 0,
nowPass: {}, nowPass: {},
nextStepLoading: false, nextStepLoading: false,
circleStart: 0, circleStart: 0
} }
}, },
methods: { methods: {
@@ -536,7 +537,12 @@ export default {
let material = this.processing let material = this.processing
material.stepFlag = stepFlag material.stepFlag = stepFlag
materialNextError(material).then(res => { materialNextError(material).then(res => {
if (res.data === 2) {
// 如果返回值为2表示全部发生异常了
this.finalFlag = 1
this.dialogVisible = true
this.finalData = this.dataList
}
this.getDataList() this.getDataList()
// 表示这是第一次穷尽 // 表示这是第一次穷尽
materialNextStepFlagError().then(res => { materialNextStepFlagError().then(res => {
@@ -659,12 +665,10 @@ export default {
delFlag: 1, delFlag: 1,
batchId: this.processing.batchId batchId: this.processing.batchId
} }
console.log(params)
stepProcess(params).then(res => { stepProcess(params).then(res => {
this.passList = res.data this.passList = res.data
if (res.data.length()>0){ this.nextStepFlagError = res.data.filter(item => item.operation === 1).length > 0 ? res.data.filter(item => item.operation === 1)[0].state : -1
this.nextStepFlagError = res.data.filter(item => item.operation === 1)>0?res.data.filter(item => item.operation === 1)[0].state:-1 this.nowPass = this.passList.filter(item => item.operation === 1).length > 0 ? this.passList.filter(item => item.operation === 1)[0] : {}
this.nowPass = this.passList.filter(item => item.operation === 1)>0?this.passList.filter(item => item.operation === 1)[0]:{}
if (this.nowPass !== {}) { if (this.nowPass !== {}) {
let nowPass = this.nowPass let nowPass = this.nowPass
@@ -678,10 +682,9 @@ export default {
5: 180, 5: 180,
6: 270, 6: 270,
7: 225, 7: 225,
8: 315, 8: 315
};
this.circleStart = angleMap[temp];
} }
this.circleStart = angleMap[temp]
} }
}) })
}, },

View File

@@ -538,10 +538,6 @@ export default {
this.dialogVisible = true this.dialogVisible = true
this.finalData = this.dataList this.finalData = this.dataList
} }
if (res.data === 0) {
// 返回值等于0 表示没有切换物料
}
this.getDataList() this.getDataList()
materialNextStepFlag().then(res => { materialNextStepFlag().then(res => {
if (res.data === 1) { if (res.data === 1) {