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