|
|
@ -397,7 +397,8 @@ const detailSubmitForm = async (formType, data, formRef, tableList) => { |
|
|
|
chargePeoples: data.chargePeoples.join(','), |
|
|
|
completionTime: data.completionTime, |
|
|
|
engineer: data.engineer, |
|
|
|
uncompleted: data.uncompleted |
|
|
|
uncompleted: data.uncompleted, |
|
|
|
itemNumbers: data.itemNumbers, |
|
|
|
} |
|
|
|
console.log('data1',data1) |
|
|
|
if (formType === 'create') { |
|
|
@ -412,7 +413,7 @@ const detailSubmitForm = async (formType, data, formRef, tableList) => { |
|
|
|
formRef.dialogVisible = false |
|
|
|
console.log('before', data1) |
|
|
|
// 刷新当前列表 |
|
|
|
await formRef.getList1 |
|
|
|
await detailRef.value.getList() |
|
|
|
console.log('after', data1) |
|
|
|
detailRef.value.tableObject.tableList.forEach(item => { |
|
|
|
if (item.itemNumbers?.length > 0) { |
|
|
@ -424,7 +425,6 @@ const detailSubmitForm = async (formType, data, formRef, tableList) => { |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
await detailRef.value.getList() |
|
|
|
} finally { |
|
|
|
formRef.formLoading = false |
|
|
|
} |
|
|
@ -500,7 +500,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { |
|
|
|
MoldInspectionDetailRules.completionTime = [{ required: true ,message: '该项为必填项'}] |
|
|
|
MoldInspectionDetail.allSchemas.formSchema.find(item => item.field == 'status').value = '0' |
|
|
|
} else { |
|
|
|
if (cur == '1') { |
|
|
|
if (row.status == '1') { |
|
|
|
MoldInspectionDetail.allSchemas.formSchema.find(item => item.field == 'uncompleted').componentProps.disabled = false |
|
|
|
MoldInspectionDetail.allSchemas.formSchema.find(item => item.field == 'completionTime').componentProps.disabled = true |
|
|
|
MoldInspectionDetailRules.uncompleted = [{ required: true,message: '该项为必填项' }] |
|
|
|