|
@@ -307,15 +307,17 @@ const handleSubmitOperationReport = async (manualUrl = '') => {
|
|
|
}
|
|
}
|
|
|
const handleSubmitConfirm = () => {
|
|
const handleSubmitConfirm = () => {
|
|
|
approvalUserVisible.value = false
|
|
approvalUserVisible.value = false
|
|
|
- if(props.isEdit === 'add'){
|
|
|
|
|
- fileList.value[0]?.url ? handleSubmitOperationReport(fileList.value[0].url) : uploadRef.value.submit()
|
|
|
|
|
- } else {
|
|
|
|
|
- handleSubmitOperationReport()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(props.isEdit === 'add'){
|
|
|
|
|
+ // fileList.value[0]?.url ? handleSubmitOperationReport(fileList.value[0].url) : uploadRef.value.submit()
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // handleSubmitOperationReport()
|
|
|
|
|
+ // }
|
|
|
|
|
+ fileList.value[0]?.url ? handleSubmitOperationReport(fileList.value[0].url) : uploadRef.value.submit()
|
|
|
}
|
|
}
|
|
|
const handleSubmitBefore = () => {
|
|
const handleSubmitBefore = () => {
|
|
|
// console.log(props.editInspectionplanParams, 'props.editInspectionplanParams')
|
|
// console.log(props.editInspectionplanParams, 'props.editInspectionplanParams')
|
|
|
- if (props.isEdit === 'add' && !fileList.value.length) return ElMessage.error('请先上传方案文件')
|
|
|
|
|
|
|
+ // if (props.isEdit === 'add' && !fileList.value.length) return ElMessage.error('请先上传方案文件')
|
|
|
|
|
+ if (!fileList.value.length) return ElMessage.error('请先上传方案文件')
|
|
|
getSchemeReviewerList()
|
|
getSchemeReviewerList()
|
|
|
}
|
|
}
|
|
|
|
|
|