|
@ -32,7 +32,7 @@ |
|
|
v-model:sort="tableObject.sort" |
|
|
v-model:sort="tableObject.sort" |
|
|
> |
|
|
> |
|
|
<template #number="{ row }"> |
|
|
<template #number="{ row }"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.number)"> |
|
|
<el-button type="primary" link @click="openDetail(row, '维修工单编号', row.number)"> |
|
|
<span>{{ row.number }}</span> |
|
|
<span>{{ row.number }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
@ -548,7 +548,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
|
const openForm = async (type: string, row?: any) => { |
|
|
const openForm = async (type: string, row?: any) => { |
|
|
if(type == 'update'){ |
|
|
if(type == 'update'){ |
|
|
row.classes = String(row.classes) |
|
|
row.classes = String(row.classes||row.classes==0?row.classes:'') |
|
|
} |
|
|
} |
|
|
await MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { |
|
|
await MoldAccountsApi.getMoldAccountsNoPage({}).then(res => { |
|
|
MoldMaintenanceMain.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMain.allSchemas.formSchema.find(item => { |
|
@ -913,6 +913,7 @@ 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' |
|
|
|
|
|
newRow.value.classes = String(row.classes||row.classes==0?row.classes:'') |
|
|
MoldMaintenanceMainSecRules.classes = [{ required: false }] |
|
|
MoldMaintenanceMainSecRules.classes = [{ required: false }] |
|
|
MoldMaintenanceMainSecRules.faultType = [{ required: false }] |
|
|
MoldMaintenanceMainSecRules.faultType = [{ required: false }] |
|
|
MoldMaintenanceMainSecRules.describes = [{ required: false }] |
|
|
MoldMaintenanceMainSecRules.describes = [{ required: false }] |
|
@ -1065,7 +1066,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) |
|
|
MoldMaintenanceMainSecRules.maintenance = [{ required: true }] |
|
|
MoldMaintenanceMainSecRules.maintenance = [{ required: true, message: '维修人不能为空', trigger: 'blur' },] |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'type' |
|
|
return item.field == 'type' |
|
|
}).componentProps.disabled = true |
|
|
}).componentProps.disabled = true |
|
@ -1106,8 +1107,8 @@ const onChangeSec = (field, cur, item,formRefSec) => { |
|
|
formRefSec.setValues(setV) |
|
|
formRefSec.setValues(setV) |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.disabled = false |
|
|
}).componentProps.disabled = false |
|
|
MoldMaintenanceMainSecRules.maintenance = [{ required: true }] |
|
|
MoldMaintenanceMainSecRules.maintenance = [{ required: true, message: '维修人不能为空', trigger: 'blur' },] |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
MoldMaintenanceMainSec.allSchemas.formSchema.find(item => { |
|
|
return item.field == 'maintenance' |
|
|
return item.field == 'maintenance' |
|
|
}).componentProps.options = res |
|
|
}).componentProps.options = res |
|
|