添加干扰源用户台账流程

This commit is contained in:
GGJ
2024-09-12 11:23:41 +08:00
parent 28d9af0cb4
commit 33d7304c54
2 changed files with 123 additions and 13 deletions

View File

@@ -46,10 +46,7 @@
</el-form-item>
<el-form-item for="-" label="用户性质:" prop="userType">
<!-- :disabled="resendId != '' && title != '编辑'" -->
<el-select
v-model="form.userType"
placeholder="请选择用户性质"
>
<el-select v-model="form.userType" placeholder="请选择用户性质">
<el-option
v-for="(item, index) in userTypeList"
:label="item.label"
@@ -619,6 +616,7 @@ const acceptType = ''
const form: any = ref({})
const addUploadRef: any = ref()
const control: any = ref(true)
const controFlag: any = ref(false)
const ruleFormRef: any = ref(null)
//字典获取所在地市
const areaOptionList = dictData
@@ -1303,6 +1301,7 @@ const confirmForm = (flag: boolean) => {
confirmFormData.saveOrCheckflag = '1'
if (title.value != '用户档案录入') confirmFormData.id = resendId.value
if (!control.value) confirmFormData.dataType = 1
if (controFlag.value) confirmFormData.dataType = 1
if (props.normalizedControl) {
addEditor(confirmFormData).then(res => {
ElMessage({
@@ -1454,6 +1453,7 @@ const confirmForm = (flag: boolean) => {
}
}
confirmFormData.saveOrCheckflag = '2'
if (controFlag.value) confirmFormData.dataType = 1
if (title.value == '用户档案录入') {
submitFormData(confirmFormData).then(res => {
ElMessage({
@@ -1467,7 +1467,9 @@ const confirmForm = (flag: boolean) => {
})
} else {
confirmFormData.id = resendId.value
if (controFlag.value) confirmFormData.dataType = 1
console.log("🚀 ~ ruleFormRef.value.validate ~ controFlag.value:", controFlag.value)
console.log(123123)
if (props.normalizedControl) {
if (title.value == '编辑') {
if (status.value != '') confirmFormData.status = status.value
@@ -1493,6 +1495,7 @@ const confirmForm = (flag: boolean) => {
})
}
} else {
updateFormData(confirmFormData).then(res => {
ElMessage({
message: '重新发起成功',
@@ -1515,11 +1518,16 @@ const confirmForm = (flag: boolean) => {
// 过滤用户
const filterUsers = (arr: any) => {
control.value = false
controFlag.value = true
userStateList.value.map(item => (item.disabled = false))
userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value))
}
defineExpose({ open, filterUsers })
const setcontroFlag = () => {
console.log(12333)
controFlag.value = true
}
defineExpose({ open, filterUsers,setcontroFlag })
</script>
<style lang="scss" scoped>
.el-form {