联调 技术监督 草稿功能

This commit is contained in:
GGJ
2024-06-19 19:37:39 +08:00
parent c496a13617
commit 38c61ec5d5
19 changed files with 671 additions and 277 deletions

View File

@@ -1080,7 +1080,7 @@ const disabledDate = time => {
return false
}
//提交
const confirmForm = (flag?: boolean) => {
const confirmForm = (flag: boolean) => {
if (flag) {
//整理上传文件的数据
// userType==0,1
@@ -1138,10 +1138,11 @@ const confirmForm = (flag?: boolean) => {
}
}
confirmFormData.saveOrCheckflag = '1'
confirmFormData.id = resendId.value
if (title.value != '用户档案录入') confirmFormData.id = resendId.value
submitFormData(confirmFormData).then(res => {
ElMessage({
message: '保存成功',
message: '保存成功!',
type: 'success'
})
ruleFormRef.value.resetFields()
@@ -1149,7 +1150,7 @@ const confirmForm = (flag?: boolean) => {
close()
})
} else {
console.log(123213);
ruleFormRef.value.validate((valid: any) => {
if (valid) {
@@ -1314,7 +1315,7 @@ const confirmForm = (flag?: boolean) => {
confirmFormData.saveOrCheckflag = '2'
if (title.value == '用户档案录入') {
submitFormData(confirmFormData).then(res => {
if (res.code == 'A0000') {
ElMessage({
message: '新增成功',
type: 'success'
@@ -1322,14 +1323,14 @@ const confirmForm = (flag?: boolean) => {
ruleFormRef.value.resetFields()
resetForm()
close()
}
})
} else {
console.log(confirmFormData)
confirmFormData.id = resendId.value
updateFormData(confirmFormData).then(res => {
if (res.code == 'A0000') {
ElMessage({
message: '重新发起成功',
type: 'success'
@@ -1337,7 +1338,7 @@ const confirmForm = (flag?: boolean) => {
ruleFormRef.value.resetFields()
resetForm()
close()
}
})
}
} else {