修改 草稿 功能 bug
This commit is contained in:
@@ -46,10 +46,9 @@
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="用户性质:" prop="userType">
|
||||
<el-select
|
||||
:disabled="resendId != ''"
|
||||
:disabled="resendId != '' && title != '编辑'"
|
||||
v-model="form.userType"
|
||||
placeholder="请选择用户性质"
|
||||
@change="changeUserType()"
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in userTypeList"
|
||||
@@ -620,7 +619,7 @@ const resetForm = () => {
|
||||
reportDate: new Date(), //填报日期 1
|
||||
orgId: '', //填报部门 1
|
||||
expectedProductionDate: '', //工程预期投产日期 1
|
||||
userType: 0, //用户性质 1
|
||||
userType: 1, //用户性质 1
|
||||
city: areaOptionList[0].name, //所在地市 1
|
||||
responsibleDepartment: '', //归口管理部门 1
|
||||
userStatus: userStateList[0].value, //用户状态 1
|
||||
@@ -711,7 +710,7 @@ const subForm: any = ref({
|
||||
responsibleDepartment: '', //归口管理部门
|
||||
substation: '', ////变电站
|
||||
userStatus: '0', //用户状态
|
||||
userType: 0, //用户性质
|
||||
userType: 1, //用户性质
|
||||
voltageLevel: '',
|
||||
//userType=='0' '1'
|
||||
userReportProjectPO: {
|
||||
@@ -949,6 +948,7 @@ const open = async (row: any) => {
|
||||
})
|
||||
} else {
|
||||
resendId.value = ''
|
||||
form.value.userType = 0
|
||||
}
|
||||
}
|
||||
// 处理上传文件回显
|
||||
@@ -996,7 +996,6 @@ onMounted(() => {
|
||||
console.log()
|
||||
})
|
||||
|
||||
const changeUserType = value => {}
|
||||
// 上传报告
|
||||
const uploadRef = ref()
|
||||
const handleExceed: UploadProps['onExceed'] = files => {
|
||||
@@ -1138,8 +1137,8 @@ const confirmForm = (flag: boolean) => {
|
||||
}
|
||||
}
|
||||
confirmFormData.saveOrCheckflag = '1'
|
||||
if (title.value != '用户档案录入') confirmFormData.id = resendId.value
|
||||
|
||||
if (title.value != '用户档案录入') confirmFormData.id = resendId.value
|
||||
|
||||
submitFormData(confirmFormData).then(res => {
|
||||
ElMessage({
|
||||
message: '保存成功!',
|
||||
@@ -1150,8 +1149,6 @@ const confirmForm = (flag: boolean) => {
|
||||
close()
|
||||
})
|
||||
} else {
|
||||
|
||||
|
||||
ruleFormRef.value.validate((valid: any) => {
|
||||
if (valid) {
|
||||
//整理上传文件的数据
|
||||
@@ -1315,30 +1312,26 @@ const confirmForm = (flag: boolean) => {
|
||||
confirmFormData.saveOrCheckflag = '2'
|
||||
if (title.value == '用户档案录入') {
|
||||
submitFormData(confirmFormData).then(res => {
|
||||
|
||||
ElMessage({
|
||||
message: '新增成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
|
||||
ElMessage({
|
||||
message: '新增成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
} else {
|
||||
console.log(confirmFormData)
|
||||
confirmFormData.id = resendId.value
|
||||
|
||||
updateFormData(confirmFormData).then(res => {
|
||||
|
||||
ElMessage({
|
||||
message: '重新发起成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
|
||||
ElMessage({
|
||||
message: '重新发起成功',
|
||||
type: 'success'
|
||||
})
|
||||
ruleFormRef.value.resetFields()
|
||||
resetForm()
|
||||
close()
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user