qsh 1 month ago
parent b78a26e0b9
commit 3a9a4a6d1c
  1. 50
      src/views/Clue/Pool/ClueEnroll.vue

@ -301,7 +301,9 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-button v-if="!remarkInfo.isEnroll" type="primary" @click="handleSave"> </el-button> <el-button v-if="!remarkInfo.isEnroll && info.clueId" type="primary" @click="handleSave">
</el-button>
</div> </div>
</div> </div>
</div> </div>
@ -321,6 +323,7 @@ import { getSimpleFieldList } from '@/api/clue/orderField'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { getDictOptions } from '@/utils/dict' import { getDictOptions } from '@/utils/dict'
import { componentMap } from '@/components/Form/src/componentMap' import { componentMap } from '@/components/Form/src/componentMap'
import { useUserStore } from '@/store/modules/user'
const form = ref({}) const form = ref({})
@ -337,6 +340,7 @@ const formLoading = ref(false)
const route = useRoute() const route = useRoute()
const message = useMessage() // const message = useMessage() //
const userStore = useUserStore()
const showSchema = ref([]) const showSchema = ref([])
@ -350,24 +354,32 @@ onMounted(() => {
// API // API
getClueRemarkByRemarkId({ remarkId: route.params.id }).then((response) => { getClueRemarkByRemarkId({ remarkId: route.params.id }).then((response) => {
remarkInfo.value = response remarkInfo.value = response
resetForm() if (
getOptions() userStore.getUser?.id != remarkInfo.value.remarkUser &&
getDiyFields() userStore.getUser?.id != remarkInfo.value.followUser
ClueApi.getClue(remarkInfo.value.clueId).then((data) => { ) {
info.value = { ...data, ...data.diyParams, signInfo: remarkInfo.value.signInfo } message.error('无权限操作该登记页面!')
let str = '' return
if (!remarkInfo.value.remarkContent.includes(data.name)) { } else {
// resetForm()
str += '学员姓名不一致' getOptions()
} getDiyFields()
if (!remarkInfo.value.remarkContent.includes(data.phone)) { ClueApi.getClue(remarkInfo.value.clueId).then((data) => {
// info.value = { ...data, ...data.diyParams, signInfo: remarkInfo.value.signInfo }
str += '手机号不一致' let str = ''
} if (!remarkInfo.value.remarkContent.includes(data.name)) {
if (str.length) { //
message.warning(`请注意:${str}`) str += '学员姓名不一致'
} }
}) if (!remarkInfo.value.remarkContent.includes(data.phone)) {
//
str += '手机号不一致'
}
if (str.length) {
message.warning(`请注意:${str}`)
}
})
}
}) })
} else { } else {
// //

Loading…
Cancel
Save