|
@ -143,6 +143,68 @@ |
|
|
</template> |
|
|
</template> |
|
|
</Dialog> |
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
|
<Dialog |
|
|
|
|
|
ref="confirmDialog" |
|
|
|
|
|
title="确认意见" |
|
|
|
|
|
v-model="confirmDialogVisible" |
|
|
|
|
|
:width="600" |
|
|
|
|
|
:maxHeight="760" |
|
|
|
|
|
:style="{height:'500px'}" |
|
|
|
|
|
:before-close="handleBeforeConfirmClose" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form class="demo-form-inline"> |
|
|
|
|
|
<el-form-item label="确认意见"> |
|
|
|
|
|
<!-- 确保@change事件绑定在el-radio-group上 --> |
|
|
|
|
|
<el-radio-group v-model="confirmFormValue.confirmStatus"> |
|
|
|
|
|
<el-radio :label="'APPLYPASS'">通过</el-radio> |
|
|
|
|
|
<el-radio :label="'APPLYREJECTED'">驳回</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="意见"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="confirmFormValue.confirmContent" |
|
|
|
|
|
placeholder="请填写意见" |
|
|
|
|
|
clearable |
|
|
|
|
|
:rows="12" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<div style="text-align: center;"> |
|
|
|
|
|
<el-button type="primary" @click="confirmCancel">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click="confirmSubmit">提交</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
|
<Dialog |
|
|
|
|
|
ref="verifyDialog" |
|
|
|
|
|
title="验证意见" |
|
|
|
|
|
v-model="verifyDialogVisible" |
|
|
|
|
|
:width="600" |
|
|
|
|
|
:maxHeight="700" |
|
|
|
|
|
:style="{height:'450px'}" |
|
|
|
|
|
:before-close="handleBeforeVerifyClose" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form :model="verifyFormValue" class="demo-form-inline"> |
|
|
|
|
|
<el-form-item label="验证意见"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="verifyFormValue.verifyContent" |
|
|
|
|
|
placeholder="请填写验证意见" |
|
|
|
|
|
clearable |
|
|
|
|
|
:rows="12" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<div style="text-align: center;"> |
|
|
|
|
|
<el-button type="primary" @click="verifyCancel">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click="verifySubmit">提交</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Dialog> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -168,6 +230,8 @@ import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import { emit } from 'process' |
|
|
import { emit } from 'process' |
|
|
|
|
|
import { verify } from 'crypto' |
|
|
|
|
|
import { watch } from 'vue'; |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) |
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') |
|
|
const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') |
|
|
defineOptions({ name: 'DeviceMaintenanceMain' }) |
|
|
defineOptions({ name: 'DeviceMaintenanceMain' }) |
|
@ -195,10 +259,20 @@ const tempIdeaRefViewKey = ref(0) |
|
|
const tempIdeaRefViewTitle = ref('是否临时措施') |
|
|
const tempIdeaRefViewTitle = ref('是否临时措施') |
|
|
const isTemporary = ref(false) |
|
|
const isTemporary = ref(false) |
|
|
const tempIdeaRefViewData = ref() |
|
|
const tempIdeaRefViewData = ref() |
|
|
|
|
|
const confirmDialogVisible = ref(false) |
|
|
|
|
|
const verifyDialogVisible = ref(false) |
|
|
|
|
|
const confirmFormValue = ref({ |
|
|
|
|
|
confirmStatus: 'APPLYPASS', |
|
|
|
|
|
confirmContent: '', |
|
|
|
|
|
}) |
|
|
|
|
|
const verifyFormValue = ref({ |
|
|
|
|
|
verifyContent: '', |
|
|
|
|
|
}) |
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
const openRowValue = ref() |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -296,6 +370,37 @@ const judgeIsTheClassEngineer = (row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const judgeIsTheClassEngineerAndApply = (row,type) => { |
|
|
|
|
|
// 先判断角色是否满足条件 |
|
|
|
|
|
const rolesOk = userStore.roles.some(item => { |
|
|
|
|
|
if (row.type == 'DEVICE') { |
|
|
|
|
|
return item === 'device_class_Engineer_role'; |
|
|
|
|
|
} else if (row.type == 'TECH') { |
|
|
|
|
|
return item === 'tech_class_Engineer_role'; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
// 如果角色不满足条件,直接返回false |
|
|
|
|
|
if (!rolesOk) return false; |
|
|
|
|
|
// 根据不同的状态进行判断 |
|
|
|
|
|
if (row.status === 'COMPLETED' && type == 'CONFIRM') { |
|
|
|
|
|
// COMPLETED状态下,需要额外判断requestNumber和declarer |
|
|
|
|
|
if(row.requestNumber != null && row.requestNumber !== '' && row.declarer === userStore.getUser.id){ |
|
|
|
|
|
return true |
|
|
|
|
|
}else{ |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
} else if (row.status === 'APPLYPASS' && type == 'VERIFY') { |
|
|
|
|
|
// APPLYPASS状态下,可能有其他逻辑,这里直接返回true作为示例 |
|
|
|
|
|
// 根据实际情况,这里可能需要添加额外的逻辑判断 |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 如果不是COMPLETED或APPLYPASS状态,或者COMPLETED状态下条件不满足,则默认返回false |
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const judgeIsTheClassWorker = (row) => { |
|
|
const judgeIsTheClassWorker = (row) => { |
|
|
const rolesOk = userStore.roles.find(item => { |
|
|
const rolesOk = userStore.roles.find(item => { |
|
|
if (row.type == 'DEVICE') { |
|
|
if (row.type == 'DEVICE') { |
|
@ -361,7 +466,7 @@ const isShowMainButton = (row, val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && isReceiver(row.maintenance) )}), // 编辑 |
|
|
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && row.status != 'APPLYPASS' && isReceiver(row.maintenance) )}), // 编辑 |
|
|
defaultButtons.acceptOrderBtn({ |
|
|
defaultButtons.acceptOrderBtn({ |
|
|
hide: !( |
|
|
hide: !( |
|
|
row.status == 'PENDING' && judgeIsTheClass(row) |
|
|
row.status == 'PENDING' && judgeIsTheClass(row) |
|
@ -375,12 +480,17 @@ const butttondata = (row) => { |
|
|
}), // 维修 |
|
|
}), // 维修 |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
hide: !( |
|
|
hide: !( |
|
|
row.status == 'COMPLETED' && judgeIsTheClassEngineer(row) |
|
|
judgeIsTheClassEngineerAndApply(row,'VERIFY') |
|
|
) |
|
|
) |
|
|
}), // 验证 |
|
|
}), // 验证 |
|
|
defaultButtons.finishOrderBtn({ |
|
|
defaultButtons.finishOrderBtn({ |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails) |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails) |
|
|
}), // 完成 |
|
|
}), // 完成 |
|
|
|
|
|
defaultButtons.confirmOrderBtn({ |
|
|
|
|
|
hide: !( |
|
|
|
|
|
judgeIsTheClassEngineerAndApply(row,'CONFIRM') |
|
|
|
|
|
) |
|
|
|
|
|
}), // 确认 |
|
|
defaultButtons.pictureBtn({ |
|
|
defaultButtons.pictureBtn({ |
|
|
hide: !(row.filePathList != null && row.filePathList.length > 0) |
|
|
hide: !(row.filePathList != null && row.filePathList.length > 0) |
|
|
}) // 预览报修图片 |
|
|
}) // 预览报修图片 |
|
@ -417,19 +527,14 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = moldList.value |
|
|
}).componentProps.options = moldList.value |
|
|
selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }).then(res => { |
|
|
MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { |
|
|
repairUser.value = res |
|
|
|
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.disabled = true |
|
|
}) |
|
|
|
|
|
MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
@ -438,19 +543,14 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = deviceList.value |
|
|
}).componentProps.options = deviceList.value |
|
|
selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(res => { |
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
repairUser.value = res |
|
|
|
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.disabled = true |
|
|
}) |
|
|
|
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
@ -459,19 +559,14 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = deviceList.value |
|
|
}).componentProps.options = deviceList.value |
|
|
selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }).then(res => { |
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
repairUser.value = res |
|
|
|
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
setV['maintenance'] = '' |
|
|
setV['maintenance'] = '' |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.disabled = true |
|
|
}) |
|
|
|
|
|
DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['deviceNumber'] = '' |
|
|
|
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'deviceNumber' |
|
|
return item.field == 'deviceNumber' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
@ -489,6 +584,7 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
setV['deviceNumber'] = newRow.value.deviceNumber |
|
|
setV['deviceNumber'] = newRow.value.deviceNumber |
|
|
setV['type'] = newRow.value.type |
|
|
setV['type'] = newRow.value.type |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSecRules.maintenance = [{ required: false }] |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'type' |
|
|
return item.field == 'type' |
|
|
}).componentProps.disabled = false |
|
|
}).componentProps.disabled = false |
|
@ -536,6 +632,7 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
setV['factoryAreaNumber'] = newRow.value.factoryAreaNumber |
|
|
setV['factoryAreaNumber'] = newRow.value.factoryAreaNumber |
|
|
setV['maintenance'] = newRow.value.maintenance |
|
|
setV['maintenance'] = newRow.value.maintenance |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
|
|
|
DeviceMaintenanceMainSecRules.maintenance = [{ required: true }] |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'type' |
|
|
return item.field == 'type' |
|
|
}).componentProps.disabled = true |
|
|
}).componentProps.disabled = true |
|
@ -628,6 +725,8 @@ const buttonTableClick = async (val, row) => { |
|
|
finishOrder(row) |
|
|
finishOrder(row) |
|
|
} else if (val == 'verifyOrder') { |
|
|
} else if (val == 'verifyOrder') { |
|
|
verifyOrder(row) |
|
|
verifyOrder(row) |
|
|
|
|
|
} else if (val == 'confirmOrder') { |
|
|
|
|
|
confirmOrder(row) |
|
|
} else if (val == 'picture') { |
|
|
} else if (val == 'picture') { |
|
|
showView.value = true |
|
|
showView.value = true |
|
|
urls.value = row.filePathList |
|
|
urls.value = row.filePathList |
|
@ -650,6 +749,10 @@ const openFormSec = async (type: string, row?: any) => { |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
newRow.value = { ...row } |
|
|
newRow.value = { ...row } |
|
|
newRow.value.turnType = '0' |
|
|
newRow.value.turnType = '0' |
|
|
|
|
|
DeviceMaintenanceMainSecRules.classes = [{ required: false }] |
|
|
|
|
|
DeviceMaintenanceMainSecRules.faultType = [{ required: false }] |
|
|
|
|
|
DeviceMaintenanceMainSecRules.describes = [{ required: false }] |
|
|
|
|
|
DeviceMaintenanceMainSecRules.maintenance = [{ required: false }] |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
DeviceMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'type' |
|
|
return item.field == 'type' |
|
|
}).componentProps.disabled = false |
|
|
}).componentProps.disabled = false |
|
@ -703,6 +806,8 @@ const openDetail = async (row: any, titleName: any, titleValue: any) => { |
|
|
row.deviceNumberDetail = moldAllList.find((account) => account.number == row.deviceNumber)?.name |
|
|
row.deviceNumberDetail = moldAllList.find((account) => account.number == row.deviceNumber)?.name |
|
|
row.factoryAreaNumberDetail = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name |
|
|
row.factoryAreaNumberDetail = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name |
|
|
row.maintenanceDetail = userListAll.find((account) => account.id == row.maintenance)?.nickname |
|
|
row.maintenanceDetail = userListAll.find((account) => account.id == row.maintenance)?.nickname |
|
|
|
|
|
row.declarerDetail = userListAll.find((account) => account.id == row.declarer)?.nickname |
|
|
|
|
|
row.verifyerDetail = userListAll.find((account) => account.id == row.verifyer)?.nickname |
|
|
console.log(row) |
|
|
console.log(row) |
|
|
operatRecord.value = row; |
|
|
operatRecord.value = row; |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'DeviceMaintenanceMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue,'DeviceMaintenanceMain') |
|
@ -799,17 +904,61 @@ function confirmFinish(row) { |
|
|
|
|
|
|
|
|
// 验证 |
|
|
// 验证 |
|
|
function verifyOrder(row) { |
|
|
function verifyOrder(row) { |
|
|
|
|
|
openRowValue.value = row |
|
|
|
|
|
verifyDialogVisible.value = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 验证 |
|
|
|
|
|
function verifySubmit() { |
|
|
|
|
|
const row = openRowValue.value |
|
|
let param = { |
|
|
let param = { |
|
|
id: row.id, |
|
|
id: row.id, |
|
|
number: row.number, |
|
|
number: row.number, |
|
|
status: row.status, |
|
|
status: row.status, |
|
|
requestNumber: row.requestNumber, |
|
|
requestNumber: row.requestNumber, |
|
|
|
|
|
content: verifyFormValue.value.verifyContent |
|
|
} |
|
|
} |
|
|
DeviceMaintenanceMainApi.verifyOrder(param).then(res => { |
|
|
DeviceMaintenanceMainApi.verifyOrder(param).then(res => { |
|
|
|
|
|
verifyDialogVisible.value = false |
|
|
getList() |
|
|
getList() |
|
|
message.success('操作成功') |
|
|
message.success('操作成功') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 验证取消 |
|
|
|
|
|
function verifyCancel(row) { |
|
|
|
|
|
verifyDialogVisible.value = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 确认 |
|
|
|
|
|
function confirmOrder(row) { |
|
|
|
|
|
openRowValue.value = row |
|
|
|
|
|
confirmDialogVisible.value = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 确认 |
|
|
|
|
|
function confirmSubmit() { |
|
|
|
|
|
const row = openRowValue.value |
|
|
|
|
|
let param = { |
|
|
|
|
|
id: row.id, |
|
|
|
|
|
number: row.number, |
|
|
|
|
|
status: row.status, |
|
|
|
|
|
result: confirmFormValue.value.confirmStatus, |
|
|
|
|
|
requestNumber: row.requestNumber, |
|
|
|
|
|
content: confirmFormValue.value.confirmContent, |
|
|
|
|
|
} |
|
|
|
|
|
DeviceMaintenanceMainApi.confirmOrder(param).then(res => { |
|
|
|
|
|
confirmDialogVisible.value = false |
|
|
|
|
|
getList() |
|
|
|
|
|
message.success('操作成功') |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 确认取消 |
|
|
|
|
|
function confirmCancel(row) { |
|
|
|
|
|
confirmDialogVisible.value = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 维修 |
|
|
// 维修 |
|
|
function repair() {} |
|
|
function repair() {} |
|
|
|
|
|
|
|
@ -1077,6 +1226,7 @@ const validateRow = (row) => { |
|
|
return true; |
|
|
return true; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|