|
@ -88,6 +88,7 @@ import Detail from '@/views/eam/equipmentRepairJobMain/EquipmentRepairJobDetail. |
|
|
import FinishForm1 from '@/views/eam/equipmentRepairJobMain/finishForm1.vue' |
|
|
import FinishForm1 from '@/views/eam/equipmentRepairJobMain/finishForm1.vue' |
|
|
import FinishForm2 from '@/views/eam/equipmentRepairJobMain/finishForm2.vue' |
|
|
import FinishForm2 from '@/views/eam/equipmentRepairJobMain/finishForm2.vue' |
|
|
import FinishForm3 from '@/views/eam/equipmentRepairJobMain/finishForm3.vue' |
|
|
import FinishForm3 from '@/views/eam/equipmentRepairJobMain/finishForm3.vue' |
|
|
|
|
|
import {createEquipmentRepairNewOrder} from "@/api/eam/equipmentRepairJobMain"; |
|
|
|
|
|
|
|
|
defineOptions({ name: 'EquipmentRepairJobMain' }) |
|
|
defineOptions({ name: 'EquipmentRepairJobMain' }) |
|
|
|
|
|
|
|
@ -267,17 +268,23 @@ const finishForm3Ref = ref() |
|
|
const handleValidateReport = async (row) => { |
|
|
const handleValidateReport = async (row) => { |
|
|
await message.delConfirm('是否验证所选中工单?'); |
|
|
await message.delConfirm('是否验证所选中工单?'); |
|
|
message.confirmPassword(t('')).then(async () => { |
|
|
message.confirmPassword(t('')).then(async () => { |
|
|
// 二次确认 |
|
|
const params = ref({id: '', status:''}) |
|
|
//打开提交表单 |
|
|
params.value.id = row.id |
|
|
finishForm3Ref.value.open('update', row); |
|
|
params.value.status = '8' |
|
|
|
|
|
//完结流转 |
|
|
|
|
|
await EquipmentRepairJobMainApi.createEquipmentRepairNewOrder(params.value) |
|
|
|
|
|
message.success(t('工单已结束')) |
|
|
|
|
|
// 刷新列表 |
|
|
|
|
|
await getList() |
|
|
|
|
|
|
|
|
}).catch (async (action: Action) => { |
|
|
}).catch (async (action: Action) => { |
|
|
if(action === 'cancel'){ |
|
|
if(action === 'cancel'){ |
|
|
const params = ref({id: '', status:''}) |
|
|
const params = ref({id: '', number:''}) |
|
|
params.value.id = row.id |
|
|
params.value.id = row.id |
|
|
params.value.status = '5' |
|
|
params.value.number = row.number |
|
|
//生成新工单 |
|
|
//生成新工单 |
|
|
await EquipmentRepairJobMainApi.backEquipmentRepairOrder(params.value) |
|
|
await EquipmentRepairJobMainApi.createEquipmentRepairNewOrder(params.value) |
|
|
message.success(t('工单已打回')) |
|
|
message.success(t('工单已结束')) |
|
|
// 刷新列表 |
|
|
// 刷新列表 |
|
|
await getList() |
|
|
await getList() |
|
|
} |
|
|
} |
|
|