|
|
|
|
@ -554,7 +554,7 @@ const taskFormData = reactive({
|
|
|
|
|
const repairFormData = reactive({
|
|
|
|
|
repairCode: undefined as string | undefined,
|
|
|
|
|
repairName: undefined as string | undefined,
|
|
|
|
|
requireDate: undefined as string | undefined,
|
|
|
|
|
requireDate: undefined as number | string | undefined,
|
|
|
|
|
acceptedBy: undefined as string | undefined,
|
|
|
|
|
confirmBy: undefined as string | undefined,
|
|
|
|
|
faultLevel: undefined as string | undefined,
|
|
|
|
|
@ -832,6 +832,9 @@ const handleMaintainTypeChange = () => {
|
|
|
|
|
|
|
|
|
|
const selectMaintainType = async (type: number) => {
|
|
|
|
|
maintainFormData.maintainType = type
|
|
|
|
|
if (type === 3 && !repairFormData.requireDate) {
|
|
|
|
|
repairFormData.requireDate = Date.now()
|
|
|
|
|
}
|
|
|
|
|
handleMaintainTypeChange()
|
|
|
|
|
// 切换类型时刷新对应下拉框选项
|
|
|
|
|
await initOptions()
|
|
|
|
|
@ -896,7 +899,7 @@ const submitForm = async () => {
|
|
|
|
|
maintainFormRef.value?.clearValidate()
|
|
|
|
|
repairFormData.repairCode = undefined
|
|
|
|
|
repairFormData.repairName = undefined
|
|
|
|
|
repairFormData.requireDate = undefined
|
|
|
|
|
repairFormData.requireDate = Date.now()
|
|
|
|
|
repairFormData.acceptedBy = undefined
|
|
|
|
|
repairFormData.confirmBy = undefined
|
|
|
|
|
repairFormData.faultLevel = undefined
|
|
|
|
|
@ -938,6 +941,7 @@ const submitForm = async () => {
|
|
|
|
|
|
|
|
|
|
const open = async () => {
|
|
|
|
|
maintainFormData.maintainType = 1
|
|
|
|
|
repairFormData.requireDate = Date.now()
|
|
|
|
|
await initOptions()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|