|
|
<template>
|
|
|
<u-navbar title="在线认证" :autoBack="true" bgColor="#40434e" placeholder safeAreaInsetTop :titleStyle="{ color: '#fff' }" leftIconColor="#fff"></u-navbar>
|
|
|
<div class="step">
|
|
|
<view class="step">
|
|
|
<view class="step-top flexJ" v-if="!['detail'].includes(Event?.type as string)">
|
|
|
<view class="flexA">
|
|
|
<view class="step-num flexC" :class="{ numac: step === 1 }">1</view>
|
...
|
...
|
@@ -30,13 +30,13 @@ |
|
|
<u-form-item labelWidth="160rpx" label="性别" prop="sex" borderBottom @click="showActionSheepHandler('sex')" ref="name">
|
|
|
<u-input v-model="ShowSelectData.sex" disabled disabledColor="#ffffff" placeholder="请选择性别" border="none" inputAlign="right"></u-input>
|
|
|
<template #right>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
<u-icon name="arrow-right" v-if="!['detail'].includes(Event?.type as string)"></u-icon>
|
|
|
</template>
|
|
|
</u-form-item>
|
|
|
<view class="grayLine"></view>
|
|
|
<u-form-item labelWidth="160rpx" label="选择种类" prop="category" borderBottom @click="!formDisabled && proxy.$h.jumpUrl(`/pages2/mineinfo/hospitalList?flag=KESHI`)" ref="selectDepartment">
|
|
|
<u-form-item labelWidth="160rpx" label="选择种类" prop="doctorUserType" borderBottom @click="!formDisabled && proxy.$h.jumpUrl(`/pages2/mineinfo/hospitalList?flag=KESHI`)" ref="selectDepartment">
|
|
|
<view class="flexD" style="width: 100%">
|
|
|
<u-checkbox-group v-model="form.category" placement="row" shape="circle">
|
|
|
<u-checkbox-group v-model="form.doctorUserType" placement="row" shape="circle" :disabled="formDisabled">
|
|
|
<u-checkbox activeColor="#05b8d2" name="1" label="猫猫"></u-checkbox>
|
|
|
<u-checkbox activeColor="#05b8d2" name="2" label="狗狗"></u-checkbox>
|
|
|
<u-checkbox activeColor="#05b8d2" name="3" label="异宠"></u-checkbox>
|
...
|
...
|
@@ -46,20 +46,20 @@ |
|
|
<u-form-item labelWidth="160rpx" label="选择科室" prop="selectDepartment" borderBottom @click="!formDisabled && proxy.$h.jumpUrl(`/pages2/mineinfo/hospitalList?flag=KESHI`)" ref="selectDepartment">
|
|
|
<u-input v-model="form.selectDepartment" disabled disabledColor="#ffffff" placeholder="请选择科室" border="none" inputAlign="right"></u-input>
|
|
|
<template #right>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
<u-icon name="arrow-right" v-if="!['detail'].includes(Event?.type as string)"></u-icon>
|
|
|
</template>
|
|
|
</u-form-item>
|
|
|
<!-- <u-form-item labelWidth="160rpx" label="选择职称" prop="career" borderBottom @click="showActionSheepHandler('career')" ref="career"> -->
|
|
|
<u-form-item labelWidth="160rpx" label="选择职称" prop="selectCareer" borderBottom @click="!formDisabled && proxy.$h.jumpUrl(`/pages2/mineinfo/hospitalList?flag=ZHICHENG`)" ref="career">
|
|
|
<u-input v-model="form.selectCareer" disabled disabledColor="#ffffff" placeholder="请选择职称" border="none" inputAlign="right"></u-input>
|
|
|
<template #right>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
<u-icon name="arrow-right" v-if="!['detail'].includes(Event?.type as string)"></u-icon>
|
|
|
</template>
|
|
|
</u-form-item>
|
|
|
<u-form-item labelWidth="160rpx" label="坐诊医院" prop="selectHospital" borderBottom @click="!formDisabled && proxy.$h.jumpUrl(`/pages2/mineinfo/hospitalList?flag=ZUOZHENYIYUAN`)" ref="career">
|
|
|
<u-input v-model="form.selectHospital" disabled disabledColor="#ffffff" placeholder="请选择医院" border="none" inputAlign="right"></u-input>
|
|
|
<template #right>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
<u-icon name="arrow-right" v-if="!['detail'].includes(Event?.type as string)"></u-icon>
|
|
|
</template>
|
|
|
</u-form-item>
|
|
|
<view style="font-size: 18rpx; color: red">若为居家办公则选择宠物研究院</view>
|
...
|
...
|
@@ -131,7 +131,7 @@ |
|
|
</view>
|
|
|
<u-safe-bottom></u-safe-bottom>
|
|
|
</view>
|
|
|
</div>
|
|
|
</view>
|
|
|
<u-action-sheet :show="showActionSheep" :actions="actions" :title="actionsTitle" @close="showActionSheep = false" @select="selectActionSheepHandler"></u-action-sheet>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -179,7 +179,7 @@ const form = ref<ApplyAuthType>({ |
|
|
selectDepartment: '',
|
|
|
selectCareer: '',
|
|
|
selectHospital: '',
|
|
|
category: []
|
|
|
doctorUserType: []
|
|
|
})
|
|
|
|
|
|
const actions = ref()
|
...
|
...
|
@@ -196,7 +196,7 @@ const rules = ref({ |
|
|
selectDepartment: { type: 'string', required: true, message: '请选择科室', trigger: ['blur', 'change'] },
|
|
|
selectCareer: { type: 'string', required: true, message: '请选择职称', trigger: ['blur', 'change'] },
|
|
|
selectHospital: { type: 'string', required: true, message: '请选坐诊医院', trigger: ['blur', 'change'] },
|
|
|
category: { type: 'array', min: 1, required: true, message: '请选择种类', trigger: ['blur', 'change'] }
|
|
|
doctorUserType: { type: 'array', min: 1, required: true, message: '请选择种类', trigger: ['blur', 'change'] }
|
|
|
})
|
|
|
|
|
|
const formDisabled = ref<boolean>(false) // true 禁用代表回显数据 false 可以填写可以提交
|
...
|
...
|
@@ -268,12 +268,15 @@ const uploadFormImgHandler = () => |
|
|
const submitAuthHandler = async () => {
|
|
|
if (!form.value.file.length) return uni.$u.toast('请上传资质证明')
|
|
|
|
|
|
await updateRegister({
|
|
|
const data = {
|
|
|
...form.value,
|
|
|
department: typeof form.value.department === 'string' ? form.value.department : JSON.stringify(form.value.department),
|
|
|
career: typeof form.value.career === 'string' ? form.value.career : JSON.stringify(form.value.career),
|
|
|
hospital: typeof form.value.hospital === 'string' ? form.value.hospital : JSON.stringify(form.value.hospital)
|
|
|
})
|
|
|
hospital: typeof form.value.hospital === 'string' ? form.value.hospital : JSON.stringify(form.value.hospital),
|
|
|
doctorUserType: form.value.doctorUserType?.join()
|
|
|
}
|
|
|
|
|
|
await updateRegister(data)
|
|
|
|
|
|
const delta = Event.value?.reapply === 'success' ? 2 : 1
|
|
|
|
...
|
...
|
@@ -310,7 +313,8 @@ const getVeterinaryHandler = async () => { |
|
|
? JSON.parse(result.hospital as string)
|
|
|
.map(item => item.name)
|
|
|
.join()
|
|
|
: result.hospital
|
|
|
: result.hospital,
|
|
|
doctorUserType: result.doctorUserType?.split(',')
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|