This commit is contained in:
砂糖
2025-08-06 17:34:03 +08:00
3 changed files with 40 additions and 42 deletions

View File

@@ -62,7 +62,6 @@ export function materialAbnormalStart(query) {
}
// /work/material/abnormal_start
export function stepFinishError(batchId) {
return request({
url: '/work/step/finishError/'+batchId,
@@ -70,7 +69,6 @@ export function stepFinishError(batchId) {
})
}
// /work/material/abnormal_start
export function materialNextError(query) {
return request({
url: '/work/material/nextError',
@@ -79,7 +77,6 @@ export function materialNextError(query) {
})
}
// /work/material/abnormal_start
export function stepCheckAbnormal(batchId) {
return request({
url: '/work/step/check_abnormal/'+batchId,

View File

@@ -277,7 +277,8 @@
<el-table
:data="finalData"
stripe
style="width: 100%">
style="width: 100%"
>
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column
prop="id"
@@ -445,7 +446,7 @@ export default {
processBatchId: 0,
nowPass: {},
nextStepLoading: false,
circleStart: 0,
circleStart: 0
}
},
methods: {
@@ -487,7 +488,6 @@ export default {
}
} else if (state === 1) {
let material = this.processing
let step = this.passList.filter(item => item.operation === 1)[0]
step.state = 1
stepUpdate(step).then(res => {
materialCheckFlagError(material).then(res => {
@@ -508,14 +508,13 @@ export default {
// 下道次
nextStep() {
let step = this.passList.filter(item => item.operation === 1)[0]
let step = this.nowPass
if (step && step.state === 0) {
alert('请操作当前道次')
this.$message('请操作当前道次')
this.nextStepLoading = false
} else {
this.nextStepLoading = true
stepNextError(step)
.then(res => {
stepNextError(step).then(res => {
this.nextStepLoading = false
this.getDataList()
materialNextStepFlagError().then(res => {
@@ -538,7 +537,12 @@ export default {
let material = this.processing
material.stepFlag = stepFlag
materialNextError(material).then(res => {
if (res.data === 2) {
// 如果返回值为2表示全部发生异常了
this.finalFlag = 1
this.dialogVisible = true
this.finalData = this.dataList
}
this.getDataList()
// 表示这是第一次穷尽
materialNextStepFlagError().then(res => {
@@ -568,7 +572,6 @@ export default {
if (res.data !== 0) {
materialNextStepFlagError().then(res => {
this.submitButton = res.data === 0
this.getDataList()
})
alert('开始轧制')
this.getDataList()
@@ -664,8 +667,9 @@ export default {
}
stepProcess(params).then(res => {
this.passList = res.data
this.nextStepFlagError = res.data.filter(item => item.operation === 1)[0].state
this.nowPass = this.passList.filter(item => item.operation === 1)[0]
this.nextStepFlagError = res.data.filter(item => item.operation === 1).length > 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] : {}
if (this.nowPass !== {}) {
let nowPass = this.nowPass
let temp = nowPass.step % 8
@@ -681,6 +685,7 @@ export default {
8: 45,
};
this.circleStart = angleMap[temp];
}
})
},

View File

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