|
@@ -93,7 +93,8 @@
|
|
|
import {
|
|
|
listCheckoutInspection,
|
|
|
rejectInspection,
|
|
|
- confirmInspection
|
|
|
+ confirmInspection,
|
|
|
+ checkFurnace
|
|
|
} from '@/api/business/beforeCheckoutVerify'
|
|
|
import { nextTick } from "vue";
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -158,15 +159,33 @@ function handleSelectionChange(selection) {
|
|
|
}
|
|
|
|
|
|
function handleConfirm(row) {
|
|
|
- proxy.$confirm('是否确认通过?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- confirmInspection(row).then(res => {
|
|
|
- getList()
|
|
|
- })
|
|
|
- });
|
|
|
+ checkFurnace(row).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ if (res.data.length === 1) {
|
|
|
+ proxy.$confirm('是否确认通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ confirmInspection(res.data).then(res => {
|
|
|
+ getList()
|
|
|
+ })
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ proxy.$confirm('该炉已全部质检,是否全部确认通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ confirmInspection(res.data).then(res => {
|
|
|
+ getList()
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ proxy.$msgError(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function handleReject(row) {
|