|
@@ -58,7 +58,7 @@ const schema = ref<DataFormSchema>({
|
|
labelWidth: 63,
|
|
labelWidth: 63,
|
|
props: {
|
|
props: {
|
|
placeholder: '请填写推荐人编号',
|
|
placeholder: '请填写推荐人编号',
|
|
- disabled: userAuthInfo.value != null,
|
|
|
|
|
|
+ disabled: false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
designerName: {
|
|
designerName: {
|
|
@@ -109,7 +109,7 @@ const setReferrerExisting = (value: string) => {
|
|
}
|
|
}
|
|
const handleSubmit = async () => {
|
|
const handleSubmit = async () => {
|
|
console.log(formData.value)
|
|
console.log(formData.value)
|
|
- if (formData.value.channelSource && formData.value.channelSource !== '4') {
|
|
|
|
|
|
+ if (formData.value.channelSource && formData.value.channelSource !== '4' && !userAuthInfo.value) {
|
|
if ((formData.value.referrer ?? '') === '') {
|
|
if ((formData.value.referrer ?? '') === '') {
|
|
uni.showToast({ title: messages.mine.authentication.referrerErrorText, icon: 'none' })
|
|
uni.showToast({ title: messages.mine.authentication.referrerErrorText, icon: 'none' })
|
|
return
|
|
return
|
|
@@ -182,11 +182,7 @@ const handleSubmit = async () => {
|
|
}
|
|
}
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
await setUserAuthInfo()
|
|
await setUserAuthInfo()
|
|
- console.log(userAuthInfo.value)
|
|
|
|
- console.log(userAuthInfo.value)
|
|
|
|
-
|
|
|
|
if (userAuthInfo.value) {
|
|
if (userAuthInfo.value) {
|
|
- console.log(userAuthInfo.value)
|
|
|
|
formData.value = {
|
|
formData.value = {
|
|
...pick(userAuthInfo.value, [
|
|
...pick(userAuthInfo.value, [
|
|
'channelSource',
|
|
'channelSource',
|
|
@@ -201,6 +197,8 @@ onMounted(async () => {
|
|
}
|
|
}
|
|
setReferrerExisting(userAuthInfo.value.channelSource.toString())
|
|
setReferrerExisting(userAuthInfo.value.channelSource.toString())
|
|
attachment.value = userAuthInfo.value.attachment
|
|
attachment.value = userAuthInfo.value.attachment
|
|
|
|
+ schema.value.channelSource.props.disabled = true
|
|
|
|
+ schema.value.referrer.props.disabled = true
|
|
}
|
|
}
|
|
const { data } = await getByDictType('member_channel_source')
|
|
const { data } = await getByDictType('member_channel_source')
|
|
const { data: res } = await getByDictType(DictType.memberSpatialExpertiseType)
|
|
const { data: res } = await getByDictType(DictType.memberSpatialExpertiseType)
|