联调文件上传
This commit is contained in:
@@ -1058,6 +1058,7 @@ const open = async (row: any) => {
|
||||
if (row.row) {
|
||||
resendId.value = row.row.id
|
||||
status.value = row.row.status
|
||||
|
||||
deptIds = row.row.orgId
|
||||
if (props.update) {
|
||||
await getUserReportUpdateById(row.row.id).then(res => {
|
||||
@@ -1068,6 +1069,9 @@ const open = async (row: any) => {
|
||||
handleResponse(res.data)
|
||||
})
|
||||
}
|
||||
setTimeout(() => {
|
||||
addUploadRef.value?.queryFiles(row.row.id)
|
||||
}, 0)
|
||||
} else {
|
||||
resendId.value = ''
|
||||
form.value.userType = userTypeList.value[0].value
|
||||
@@ -1237,10 +1241,10 @@ const disabledDate = (time: any) => {
|
||||
}
|
||||
//提交
|
||||
const confirmForm = (flag: boolean) => {
|
||||
addUploadRef.value?.submitForm()
|
||||
if (flag) {
|
||||
//整理上传文件的数据
|
||||
// userType==0,1
|
||||
|
||||
subForm.value.reporter = adminInfo.$state.id
|
||||
subForm.value.orgId = adminInfo.$state.deptId
|
||||
let confirmFormData = JSON.parse(JSON.stringify(subForm.value))
|
||||
@@ -1305,6 +1309,7 @@ const confirmForm = (flag: boolean) => {
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
@@ -1315,6 +1320,7 @@ const confirmForm = (flag: boolean) => {
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
@@ -1324,6 +1330,7 @@ const confirmForm = (flag: boolean) => {
|
||||
if (valid) {
|
||||
//整理上传文件的数据
|
||||
// userType==0,1
|
||||
addUploadRef.value?.submitForm()
|
||||
subForm.value.reporter = adminInfo.$state.id
|
||||
subForm.value.orgId = adminInfo.$state.deptId
|
||||
let confirmFormData = JSON.parse(JSON.stringify(subForm.value))
|
||||
@@ -1453,6 +1460,7 @@ const confirmForm = (flag: boolean) => {
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
@@ -1468,6 +1476,7 @@ const confirmForm = (flag: boolean) => {
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
@@ -1488,6 +1497,7 @@ const confirmForm = (flag: boolean) => {
|
||||
message: '重新发起成功',
|
||||
type: 'success'
|
||||
})
|
||||
addUploadRef.value?.submitForm(res.data)
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
|
||||
Reference in New Issue
Block a user