|
@@ -1,203 +1,35 @@
|
|
<template>
|
|
<template>
|
|
- <view style="width: 100%;height: 100%;">
|
|
|
|
|
|
+ <view style="width: 100%;height: 100%;background-color: #FFF;">
|
|
<!-- 性别选择器 -->
|
|
<!-- 性别选择器 -->
|
|
<u-select v-model="sexshow" :list="sexlist" @confirm="sexconfirm"></u-select>
|
|
<u-select v-model="sexshow" :list="sexlist" @confirm="sexconfirm"></u-select>
|
|
- <!-- 省 -->
|
|
|
|
- <u-select v-model="provinceshow" :list="provincelist" @confirm="sheng" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="provinceshow2" :list="provincelist2" @confirm="sheng2" value-name="id" label-name="name"></u-select>
|
|
|
|
- <!-- 市 -->
|
|
|
|
- <u-select v-model="cityshow" :list="citylist" @confirm="shi" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="cityshow2" :list="citylist2" @confirm="shi2" value-name="id" label-name="name"></u-select>
|
|
|
|
- <!-- 区县 -->
|
|
|
|
- <u-select v-model="areashow" :list="arealist" @confirm="qu" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="areashow2" :list="arealist2" @confirm="qu2" value-name="id" label-name="name"></u-select>
|
|
|
|
- <!-- 医院 -->
|
|
|
|
- <u-select v-model="hospitalshow" :list="hospitallist" @confirm="yy" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="hospitalshow2" :list="hospitallist2" @confirm="yy2" value-name="id" label-name="name"></u-select>
|
|
|
|
- <!-- 科室 -->
|
|
|
|
- <u-select v-model="departmentshow" :list="departmentlist" @confirm="ks" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="departmentshow2" :list="departmentlist2" @confirm="ks2" value-name="id" label-name="name"></u-select>
|
|
|
|
- <!-- 资质 -->
|
|
|
|
- <u-select v-model="qualificationsshow" :list="qualificationslist" @confirm="zz" value-name="id" label-name="name"></u-select>
|
|
|
|
- <u-select v-model="qualificationsshow2" :list="qualificationslist2" @confirm="zz2" value-name="id" label-name="name"></u-select>
|
|
|
|
-
|
|
|
|
|
|
+ <!-- 省市区选择 -->
|
|
|
|
+ <u-select v-model="regionShow" mode="mutil-column-auto" :list="regionlist" @confirm="regionChoice"></u-select>
|
|
|
|
+ <!-- 机构科室资质选择 -->
|
|
|
|
+ <u-select v-model="hospitalShow" mode="mutil-column-auto" :list="hospitallist" @confirm="hospitalChoice"></u-select>
|
|
|
|
|
|
|
|
|
|
<u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
<u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
<!-- 姓名 性别 身份证 -->
|
|
<!-- 姓名 性别 身份证 -->
|
|
<view style="padding: 0 28rpx;">
|
|
<view style="padding: 0 28rpx;">
|
|
- <view class="flex align-center" style="margin: 20rpx 0;">
|
|
|
|
- <view style="width: 30%;font-weight: bold;" class="felx align-center">
|
|
|
|
- <view>医生姓名</view>
|
|
|
|
- </view>
|
|
|
|
- <view style="width: 70%;">
|
|
|
|
- <u-input v-model="form.name" type="text" :border="false" placeholder="请填写真实姓名" input-align="right" maxlength="6"/>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="flex align-center justify-between" style="margin: 20rpx 0;">
|
|
|
|
+ <view style="width: 30%;font-weight: bold;" class="felx align-center">医生姓名</view>
|
|
|
|
+ <text v-if="allupload">form.name</text>
|
|
|
|
+ <u-input v-model="form.name" type="text" :border="false" placeholder="请填写真实姓名" input-align="right" maxlength="6" v-else/>
|
|
</view>
|
|
</view>
|
|
<u-line color="#f0f2f5" />
|
|
<u-line color="#f0f2f5" />
|
|
- <view class="flex align-center" style="margin: 20rpx 0;">
|
|
|
|
- <view style="width: 30%;font-weight: bold;" class="felx align-center">
|
|
|
|
- <view>性别</view>
|
|
|
|
- </view>
|
|
|
|
- <view style="width: 60%;margin-right: 40rpx;">
|
|
|
|
- <u-input v-model="form.sex" type="text" :border="false" disabled="true" @click="sexshow = true" placeholder="请选择性别" input-align="right" />
|
|
|
|
- </view>
|
|
|
|
- <view style="5%" class="flex justify-center align-center">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1" @click="sexshow = true"></u-icon>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="flex align-center justify-between" style="margin: 20rpx 0;">
|
|
|
|
+ <view style="width: 30%;font-weight: bold;" class="felx align-center">性别</view>
|
|
|
|
+ <text v-if="allupload">form.sex</text>
|
|
|
|
+ <u-icon name="arrow-down" color="#dddfe1" @click="sexshow = true" :label="form.sex==''?'请选择性别':form.sex" label-pos="left" :label-color="form.sex==''?'#c7c9ca':'#000000'" v-else></u-icon>
|
|
</view>
|
|
</view>
|
|
<u-line color="#f0f2f5" />
|
|
<u-line color="#f0f2f5" />
|
|
- <view class="flex align-center" style="margin: 20rpx 0;">
|
|
|
|
- <view style="width: 30%;font-weight: bold;" class="felx align-center">
|
|
|
|
- <view>身份证</view>
|
|
|
|
- </view>
|
|
|
|
- <view style="width: 70%;">
|
|
|
|
- <u-input v-model="form.ID" type="idcard" :border="false" placeholder="请填写身份证号" input-align="right" maxlength="18"/>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
|
|
- <!-- 工作机构一 -->
|
|
|
|
- <view style="padding: 45rpx 28rpx 30rpx 28rpx;background-color: #FFFFFF;">
|
|
|
|
- <view style="margin-bottom: 50rpx;font-weight: bold;font-size: 30rpx;">
|
|
|
|
- {{form.work1.name}}
|
|
|
|
- </view>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- ****************省份**************** -->
|
|
|
|
- <view class="xiala" @click="viewsheng1" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.province}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- ********************* 城市*************** -->
|
|
|
|
- <view class="xiala" @click="viewshi1">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.city}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <u-gap height="40" bg-color="#ffffff"></u-gap>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- **********************区县******************* -->
|
|
|
|
- <view class="xiala" @click="viewqu1" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.area}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- **********************医院********************** -->
|
|
|
|
- <view class="xiala" @click="viewyy1">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.hospital}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view style="margin:50rpx 0;font-weight: bold;font-size: 30rpx;">科室资质</view>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- ********************************科室************************************ -->
|
|
|
|
- <view class="xiala" @click="viewks1" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.department}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- ***********************************资质***************** -->
|
|
|
|
- <view class="xiala" @click="viewzz1">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work1.qualifications}}</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="flex align-center justify-between" style="margin: 20rpx 0;">
|
|
|
|
+ <view style="width: 30%;font-weight: bold;" class="felx align-center">身份证</view>
|
|
|
|
+ <text v-if="allupload">form.ID</text>
|
|
|
|
+ <u-input v-model="form.ID" type="idcard" :border="false" placeholder="请填写身份证号" input-align="right" maxlength="18" v-else/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
|
|
|
|
|
|
- <!-- 工作机构二 -->
|
|
|
|
- <view style="padding: 45rpx 28rpx 30rpx 28rpx;background-color: #FFFFFF;">
|
|
|
|
- <view style="margin-bottom: 50rpx;font-weight: bold;font-size: 30rpx;">
|
|
|
|
- {{form.work2.name}}
|
|
|
|
- </view>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- ****************省份**************** -->
|
|
|
|
- <view class="xiala" @click="viewsheng2" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.province}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- ********************* 城市*************** -->
|
|
|
|
- <view class="xiala" @click="viewshi2">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.city}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <u-gap height="40" bg-color="#ffffff"></u-gap>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- **********************区县******************* -->
|
|
|
|
- <view class="xiala" @click="viewqu2" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.area}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- **********************医院********************** -->
|
|
|
|
- <view class="xiala" @click="viewyy2">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.hospital}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view style="margin:50rpx 0;font-weight: bold;font-size: 30rpx;">科室资质</view>
|
|
|
|
- <view class="flex">
|
|
|
|
- <!-- ********************************科室************************************ -->
|
|
|
|
- <view class="xiala" @click="viewks2" style="border-right: 1rpx solid #dddfe1;">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.department}}</view>
|
|
|
|
- </view>
|
|
|
|
- <!-- ***********************************资质***************** -->
|
|
|
|
- <view class="xiala" @click="viewzz2">
|
|
|
|
- <!-- 图标 -->
|
|
|
|
- <view style="margin:0 20rpx;">
|
|
|
|
- <u-icon name="arrow-down" color="#dddfe1"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <!-- 文字 -->
|
|
|
|
- <view style="color:#999999">{{form.work2.qualifications}}</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
<u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
<u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
<!-- 照片上传 -->
|
|
<!-- 照片上传 -->
|
|
<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
|
|
<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
|
|
@@ -207,7 +39,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 上传 -->
|
|
<!-- 上传 -->
|
|
<view>
|
|
<view>
|
|
- <u-upload :action="action" :file-list="form.certificate" max-count="2" ref="Upractice" :auto-upload="true"></u-upload>
|
|
|
|
|
|
+ <u-upload :action="action" :file-list="form.certificate" max-count="2" ref="Upractice" :auto-upload="true" :deletable="!allupload"></u-upload>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
|
|
<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
|
|
@@ -217,7 +49,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 上传 -->
|
|
<!-- 上传 -->
|
|
<view>
|
|
<view>
|
|
- <u-upload :action="action" :file-list="form.idPhoto" max-count="2" ref="Ucard_photo" :auto-upload="true"></u-upload>
|
|
|
|
|
|
+ <u-upload :action="action" :file-list="form.idPhoto" max-count="2" ref="Ucard_photo" :auto-upload="true" :deletable="!allupload"></u-upload>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -228,14 +60,58 @@
|
|
</view>
|
|
</view>
|
|
<!-- 上传 -->
|
|
<!-- 上传 -->
|
|
<view>
|
|
<view>
|
|
- <u-upload :action="action" :file-list="form.doctorQualification" max-count="2" ref="Uis_quali" :auto-upload="true"></u-upload>
|
|
|
|
|
|
+ <u-upload :action="action" :file-list="form.doctorQualification" max-count="2" ref="Uis_quali" :auto-upload="true" :deletable="!allupload"></u-upload>
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <u-gap height="30" bg-color="#f0f2f5"></u-gap>
|
|
|
|
+ <view style="padding: 36rpx 28rpx 0rpx 28rpx;;background-color: #FFF;" class="flex align-center">
|
|
|
|
+ <view style="font-size: 28rpx;margin-right: 20rpx;font-weight: bold;font-size: 32rpx;">认证机构</view>
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
+ <!-- 工作机构一 -->
|
|
|
|
+ <view style="padding: 45rpx 28rpx 30rpx 28rpx;" v-for="item,index in mechanismList" :key="index">
|
|
|
|
+ <view style="margin-bottom: 20rpx;font-weight: bold;font-size: 30rpx;" class="flex justify-between">
|
|
|
|
+ <!-- 标题 -->
|
|
|
|
+ <text>{{item.title}}</text>
|
|
|
|
+ <!-- 删除按钮 -->
|
|
|
|
+ <u-icon name="close" size="30" @click="closemechanism" style="margin-right:20rpx;" v-if="index != 0&&item.Submit==0"></u-icon>
|
|
|
|
+ <!-- 状态 1审核中 2审核通过 3审核不通过 -->
|
|
|
|
+ <view v-else-if="item.Submit==1" style="color:#EA970E;font-size: 28rpx;">状态:审核中</view>
|
|
|
|
+ <view v-else-if="item.Submit==2" style="color:#4CAD84;font-size: 28rpx;">状态:已审核</view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 地区 -->
|
|
|
|
+ <view style="padding: 25rpx 10rpx;" class="flex align-center justify-around" @click="regionClick(index)">
|
|
|
|
+ <view style="width: 95%;font-size: 28rpx;background-color: ;">{{item.regionText==""?'请选择 省-市-区':item.regionText}}</view>
|
|
|
|
+ <view class="flex align-center">
|
|
|
|
+ <u-icon name="arrow-right" color="#C0C0C0"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 机构 -->
|
|
|
|
+ <view style="padding: 25rpx 10rpx;" class="flex align-center justify-around" @click="hospitalClick(index)">
|
|
|
|
+ <view style="width: 95%;font-size: 28rpx;background-color: ;">{{item.hospitalText==""?'请选择 机构-科室-资质':item.hospitalText}}</view>
|
|
|
|
+ <view class="flex align-center">
|
|
|
|
+ <u-icon name="arrow-right" color="#C0C0C0"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <u-gap height="200" bg-color="#f0f2f5"></u-gap>
|
|
|
|
- <view class="bottomButton" @click="bc">
|
|
|
|
- 提交
|
|
|
|
|
|
+ <view style="height: 100rpx;background-color: #f0f2f5;" class="flex align-center justify-center" v-if="mechanismList[mechanismList.length-1].preservation">
|
|
|
|
+ <view style="font-size: 28rpx;color: #096CBB;border:1rpx solid #C0C0C0;border-radius: 15rpx;padding: 10rpx 20rpx;background-color: #FFF;"
|
|
|
|
+ @click="addmechanism">
|
|
|
|
+ <text>添加认证机构</text>
|
|
|
|
+ <u-icon name="plus" color="#096CBB"></u-icon>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view style="height: 100rpx;background-color: #f0f2f5;" class="flex align-center justify-center" v-else>
|
|
|
|
+ <view style="font-size: 28rpx;color: #096CBB;border:1rpx solid #C0C0C0;border-radius: 15rpx;padding: 10rpx 20rpx;background-color: #096CBB;"
|
|
|
|
+ @click="bcmechanism">
|
|
|
|
+ <text style="color: #FFF;">点击保存</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <u-gap height="200" bg-color="#f0f2f5"></u-gap>
|
|
|
|
+ <view class="bottomButton" @click="bc" >提交</view>
|
|
|
|
+ <!-- <view class="bottomButton" @click="jxrz" style="background-color: #FFF;color: #0000FF;">继续认证</view> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -245,18 +121,13 @@
|
|
components: {},
|
|
components: {},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.provinceconfirm()
|
|
this.provinceconfirm()
|
|
|
|
+ this.addmechanism()
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
action: 'https://xiaoyunimg.top/api/v2/Common/uploadFile',
|
|
action: 'https://xiaoyunimg.top/api/v2/Common/uploadFile',
|
|
//保存选择的列数
|
|
//保存选择的列数
|
|
- province: '', //省
|
|
|
|
- city: '', //市
|
|
|
|
- area: '', //区
|
|
|
|
- hospital: '', //医院
|
|
|
|
- department: '', //科室
|
|
|
|
- qualifications: '', //资质
|
|
|
|
form: {
|
|
form: {
|
|
name: '', //姓名
|
|
name: '', //姓名
|
|
sex: '', //性别
|
|
sex: '', //性别
|
|
@@ -273,34 +144,9 @@
|
|
qualifications: '' //资质id
|
|
qualifications: '' //资质id
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- work1: { //工作机构
|
|
|
|
- name: '工作机构一',
|
|
|
|
- province: '选择省份', //省
|
|
|
|
- city: '选择城市', //市
|
|
|
|
- area: '选择县区', //区
|
|
|
|
- hospital: '选择医院', //医院
|
|
|
|
- department: '科室名称', //科室
|
|
|
|
- qualifications: '默认资质' //资质
|
|
|
|
- },
|
|
|
|
- work2: {
|
|
|
|
- name: '工作机构二',
|
|
|
|
- province: '选择省份', //省
|
|
|
|
- city: '选择城市', //市
|
|
|
|
- area: '选择县区', //区
|
|
|
|
- hospital: '选择医院', //医院
|
|
|
|
- department: '科室名称', //科室
|
|
|
|
- qualifications: '默认资质' //资质
|
|
|
|
- },
|
|
|
|
- // url: 图片地址
|
|
|
|
- // error:组件内部使用,不应根据此值判断上传是否成功,而应根据progress属性
|
|
|
|
- // progress:如果值为100,表示图片上传成功
|
|
|
|
- // response:上传成功后,服务器返回的数据,这是最有用的了
|
|
|
|
certificate: [], //证书
|
|
certificate: [], //证书
|
|
idPhoto: [], //身份证
|
|
idPhoto: [], //身份证
|
|
doctorQualification: [], //医生资格
|
|
doctorQualification: [], //医生资格
|
|
- // practice: ["https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg",'https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg'], // 医师执业证书(清晰照片和信息页面) 必须两个都传,不可以只上传一个
|
|
|
|
- // card_photo: ["https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg","https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg"], //身份证 , 必须两个都传,不可以只上传一个
|
|
|
|
- // is_quail: ["https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg","https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg"] //医生资格, 必须两个都传,不可以只上传一个
|
|
|
|
},
|
|
},
|
|
//性别选择
|
|
//性别选择
|
|
sexshow: false,
|
|
sexshow: false,
|
|
@@ -313,186 +159,193 @@
|
|
label: '女'
|
|
label: '女'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- //省
|
|
|
|
- provinceshow: false,
|
|
|
|
- provinceshow2: false,
|
|
|
|
- provincelist: [],
|
|
|
|
- provincelist2: [],
|
|
|
|
- //市
|
|
|
|
- cityshow: false,
|
|
|
|
- cityshow2: false,
|
|
|
|
- citylist: [],
|
|
|
|
- citylist2: [],
|
|
|
|
- //区
|
|
|
|
- areashow: false,
|
|
|
|
- areashow2: false,
|
|
|
|
- arealist: [],
|
|
|
|
- arealist2: [],
|
|
|
|
- //医院
|
|
|
|
- hospitalshow: false,
|
|
|
|
- hospitalshow2: false,
|
|
|
|
- hospitallist: [],
|
|
|
|
- hospitallist2: [],
|
|
|
|
- //科室
|
|
|
|
- departmentshow: false,
|
|
|
|
- departmentshow2: false,
|
|
|
|
- departmentlist: [],
|
|
|
|
- departmentlist2: [],
|
|
|
|
- //资质
|
|
|
|
- qualificationsshow: false,
|
|
|
|
- qualificationsshow2: false,
|
|
|
|
- qualificationslist: [],
|
|
|
|
- qualificationslist2: [],
|
|
|
|
- /**已经选择的id***/
|
|
|
|
- id1: {
|
|
|
|
- sheng: '',
|
|
|
|
- shi: '',
|
|
|
|
- qu: ''
|
|
|
|
- },
|
|
|
|
- id2: {
|
|
|
|
- sheng: '',
|
|
|
|
- shi: '',
|
|
|
|
- qu: ''
|
|
|
|
- },
|
|
|
|
- //提交的数据
|
|
|
|
- work: [{ //工作机构
|
|
|
|
- id: '',
|
|
|
|
- depart: '', //科室id
|
|
|
|
- qualifications: '', //资质id
|
|
|
|
-
|
|
|
|
- }, {
|
|
|
|
- id: '',
|
|
|
|
- depart: '', //科室id
|
|
|
|
- qualifications: '', //资质id
|
|
|
|
- }],
|
|
|
|
|
|
+ //机构列表
|
|
|
|
+ mechanismList: [],
|
|
|
|
|
|
|
|
+ //省市区选择器
|
|
|
|
+ regionShow: false,
|
|
|
|
+ regionlist: [{
|
|
|
|
+ value: 1,
|
|
|
|
+ label: '中国',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 2,
|
|
|
|
+ label: '广东',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 3,
|
|
|
|
+ label: '深圳'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 4,
|
|
|
|
+ label: '广州'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 5,
|
|
|
|
+ label: '广西',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 6,
|
|
|
|
+ label: '南宁'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 7,
|
|
|
|
+ label: '桂林'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 8,
|
|
|
|
+ label: '美国',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 9,
|
|
|
|
+ label: '纽约',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 10,
|
|
|
|
+ label: '皇后街区'
|
|
|
|
+ }]
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ regindex: 0, //记录点击的地方
|
|
|
|
+ //机构科室资质选择器
|
|
|
|
+ hospitalShow: false,
|
|
|
|
+ hospitallist: [{
|
|
|
|
+ value: 1,
|
|
|
|
+ label: '机构1',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 2,
|
|
|
|
+ label: '机构1的科室1',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 3,
|
|
|
|
+ label: '机构1的科室1的主任'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 4,
|
|
|
|
+ label: '机构1的科室1的副主任'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 5,
|
|
|
|
+ label: '机构1的科室2',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 6,
|
|
|
|
+ label: '机构1的科室2的主任'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 7,
|
|
|
|
+ label: '机构1的科室2的主任'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 8,
|
|
|
|
+ label: '机构2',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 9,
|
|
|
|
+ label: '机构2的科室1',
|
|
|
|
+ children: [{
|
|
|
|
+ value: 10,
|
|
|
|
+ label: '机构2的科室1的主任'
|
|
|
|
+ }]
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ hosindex: 0, //记录点击的地方
|
|
|
|
+ //提交之后不能修改姓名 身份证 性别 证书
|
|
|
|
+ allupload: false //是否已经提交过并且审核通过
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
/*****************view点击**********************/
|
|
/*****************view点击**********************/
|
|
- //省
|
|
|
|
- viewsheng1(e) {
|
|
|
|
- this.provinceshow = true, this.province = 1
|
|
|
|
- },
|
|
|
|
- viewsheng2(e) {
|
|
|
|
- this.provinceshow2 = true, this.province = 2
|
|
|
|
- },
|
|
|
|
- //市 判断是否选择了省,不然不让选择
|
|
|
|
- viewshi1(e) {
|
|
|
|
- if (this.form.work1.province == '选择省份') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择省份',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.cityshow = true
|
|
|
|
- this.city = 1
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- viewshi2(e) {
|
|
|
|
- if (this.form.work2.province == '选择省份') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择省份',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
|
|
+ //省市区选择器打开
|
|
|
|
+ regionClick(index) {
|
|
|
|
+ if (this.mechanismList.length - 1 == index) {
|
|
|
|
+ this.regionShow = true
|
|
|
|
+ this.regindex = index //保存点击的地方
|
|
} else {
|
|
} else {
|
|
- this.cityshow2 = true
|
|
|
|
- this.city = 2
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- //区
|
|
|
|
- viewqu1(e) {
|
|
|
|
- if (this.form.work1.city == '选择城市') {
|
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '请选择城市',
|
|
|
|
|
|
+ title: '无法修改',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
- this.areashow = true
|
|
|
|
- this.area = 1
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- viewqu2(e) {
|
|
|
|
- if (this.form.work2.city == '选择城市') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择城市',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.areashow2 = true
|
|
|
|
- this.area = 2
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- //医院
|
|
|
|
- viewyy1(e) {
|
|
|
|
- if (this.form.work1.area == '选择县区') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择县区',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
|
|
+ //机构选择器打开
|
|
|
|
+ hospitalClick(index) {
|
|
|
|
+ if(this.mechanismList.length - 1 == index){
|
|
|
|
+ if (this.mechanismList[index].regionText!='') {
|
|
|
|
+ this.hospitalShow = true
|
|
|
|
+ this.hosindex = index //保存点击的地方
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请先填写地区数据',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- this.hospitalshow = true
|
|
|
|
- this.hospital = 1
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- viewyy2(e) {
|
|
|
|
- if (this.form.work2.area == '选择县区') {
|
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '请选择县区',
|
|
|
|
|
|
+ title: '无法修改',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
- this.hospitalshow2 = true
|
|
|
|
- this.hospital = 2
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //科室
|
|
|
|
- viewks1(e) {
|
|
|
|
- if (this.form.work1.hospital == '选择医院') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择医院',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.departmentshow = true
|
|
|
|
- this.department = 1
|
|
|
|
|
|
+ //省市区选择器确认
|
|
|
|
+ regionChoice(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.mechanismList[this.regindex].regionText = e[0].label + '-' + e[1].label + '-' + e[2].label //利用保存的地方赋值
|
|
|
|
+ },
|
|
|
|
+ //机构选择
|
|
|
|
+ hospitalChoice(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.mechanismList[this.hosindex].hospitalText = e[0].label + '-' + e[1].label + '-' + e[2].label
|
|
|
|
+ },
|
|
|
|
+ //数字转文字
|
|
|
|
+ convertToChinese(num) {
|
|
|
|
+ var N = [
|
|
|
|
+ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九"
|
|
|
|
+ ];
|
|
|
|
+ var str = num.toString();
|
|
|
|
+ var len = num.toString().length;
|
|
|
|
+ var C_Num = [];
|
|
|
|
+ for (var i = 0; i < len; i++) {
|
|
|
|
+ C_Num.push(N[str.charAt(i)]);
|
|
}
|
|
}
|
|
- },
|
|
|
|
- viewks2(e) {
|
|
|
|
- if (this.form.work1.hospital == '选择医院') {
|
|
|
|
|
|
+ return C_Num.join('');
|
|
|
|
+ },
|
|
|
|
+ //添加机构
|
|
|
|
+ addmechanism() {
|
|
|
|
+ this.mechanismList.push({
|
|
|
|
+ title: '工作机构' + this.convertToChinese(this.mechanismList.length + 1), //工作机构名称
|
|
|
|
+ regionText: '', //地区信息文字
|
|
|
|
+ hospitalText: '', //机构信息文字
|
|
|
|
+ preservation: false, //是否已经保存
|
|
|
|
+ Submit: 0, // 信息状态 0未提交 1审核中 2审核通过 3审核不通过
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //保存机构
|
|
|
|
+ bcmechanism() {
|
|
|
|
+ if (this.mechanismList[this.mechanismList.length - 1].regionText == '' && this.mechanismList[this.mechanismList.length -
|
|
|
|
+ 1].hospitalText == '') {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '请选择医院',
|
|
|
|
|
|
+ title: '请完善机构信息',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.departmentshow2 = true
|
|
|
|
- this.department = 2
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- //资质
|
|
|
|
- viewzz1(e) {
|
|
|
|
- if (this.form.work1.department == '科室名称') {
|
|
|
|
|
|
+ this.mechanismList[this.mechanismList.length - 1].preservation = true
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '请选择科室',
|
|
|
|
- icon: 'none'
|
|
|
|
|
|
+ title: '保存成功'
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
- this.qualificationsshow = true
|
|
|
|
- this.qualifications = 1
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- viewzz2(e) {
|
|
|
|
- if (this.form.work2.department == '科室名称') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请选择科室',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.qualificationsshow2 = true
|
|
|
|
- this.qualifications = 2
|
|
|
|
- }
|
|
|
|
|
|
+ //删除机构
|
|
|
|
+ closemechanism() {
|
|
|
|
+ this.mechanismList.splice(this.mechanismList.length - 1, 1)
|
|
},
|
|
},
|
|
|
|
+
|
|
/************************/
|
|
/************************/
|
|
// 性别
|
|
// 性别
|
|
sexconfirm(e) {
|
|
sexconfirm(e) {
|
|
@@ -500,87 +353,6 @@
|
|
this.form.sex = e[0].label
|
|
this.form.sex = e[0].label
|
|
console.log(this.form.sex);
|
|
console.log(this.form.sex);
|
|
},
|
|
},
|
|
- /********************选择器点击事件******************************/
|
|
|
|
- //省选择器
|
|
|
|
- sheng(e) {
|
|
|
|
- console.log('打开了省选择器1')
|
|
|
|
- this.form.work1.province = e[0].label
|
|
|
|
- this.cityconfirm(e[0].value)
|
|
|
|
- this.id1.sheng = e[0].value //把id存到这里
|
|
|
|
- },
|
|
|
|
- sheng2(e) {
|
|
|
|
- console.log('打开了省选择器2')
|
|
|
|
- this.form.work2.province = e[0].label
|
|
|
|
- this.cityconfirm(e[0].value)
|
|
|
|
- this.id2.sheng = e[0].value
|
|
|
|
- },
|
|
|
|
- //市选择器
|
|
|
|
- shi(e) {
|
|
|
|
- console.log('打开了市选择器1')
|
|
|
|
- this.form.work1.city = e[0].label
|
|
|
|
- this.areaconfirm(e[0].value)
|
|
|
|
- this.id1.shi = e[0].value
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- shi2(e) {
|
|
|
|
- console.log('打开了市选择器2')
|
|
|
|
- this.form.work2.city = e[0].label
|
|
|
|
- this.areaconfirm(e[0].value)
|
|
|
|
- this.id2.shi = e[0].value
|
|
|
|
- },
|
|
|
|
- //区选择器
|
|
|
|
- qu(e) {
|
|
|
|
- console.log('打开了区选择器')
|
|
|
|
- this.form.work1.area = e[0].label
|
|
|
|
- this.id1.qu = e[0].value
|
|
|
|
- this.hospitalconfirm(this.id1.sheng, this.id1.shi, this.id1.qu)
|
|
|
|
- },
|
|
|
|
- qu2(e) {
|
|
|
|
- console.log('打开了区选择器2')
|
|
|
|
- this.form.work2.area = e[0].label
|
|
|
|
- this.id2.qu = e[0].value
|
|
|
|
- this.hospitalconfirm(this.id2.sheng, this.id2.shi, this.id2.qu)
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- //医院选择器
|
|
|
|
- yy(e) {
|
|
|
|
- console.log('打开了医院选择器1', e)
|
|
|
|
- this.form.work1.hospital = e[0].label
|
|
|
|
- this.form.works[0].hospital = e[0].value;
|
|
|
|
-
|
|
|
|
- this.departmentconfirm()
|
|
|
|
- },
|
|
|
|
- yy2(e) {
|
|
|
|
- console.log('打开了医院选择器2', e)
|
|
|
|
- this.form.work2.hospital = e[0].label
|
|
|
|
- this.form.works[1].hospital = e[0].value;
|
|
|
|
- this.departmentconfirm()
|
|
|
|
- },
|
|
|
|
- //科室
|
|
|
|
- ks(e) {
|
|
|
|
- console.log('打开了科室选择器1', e)
|
|
|
|
- this.form.work1.department = e[0].label
|
|
|
|
- this.form.works[0].department = e[0].value;
|
|
|
|
-
|
|
|
|
- this.qualificationsconfirm()
|
|
|
|
- },
|
|
|
|
- ks2(e) {
|
|
|
|
- console.log('打开了科室选择器2', e)
|
|
|
|
- this.form.work2.department = e[0].label
|
|
|
|
- this.form.works[1].department = e[0].value;
|
|
|
|
- this.qualificationsconfirm()
|
|
|
|
- },
|
|
|
|
- //资质
|
|
|
|
- zz(e) {
|
|
|
|
- console.log('打开了资质选择器1')
|
|
|
|
- this.form.work1.qualifications = e[0].label
|
|
|
|
- this.form.works[0].qualifications = e[0].value;
|
|
|
|
- },
|
|
|
|
- zz2(e) {
|
|
|
|
- console.log('打开了资质选择器2')
|
|
|
|
- this.form.work2.qualifications = e[0].label
|
|
|
|
- this.form.works[1].qualifications = e[0].value;
|
|
|
|
- },
|
|
|
|
/*******************接口*********************/
|
|
/*******************接口*********************/
|
|
//省
|
|
//省
|
|
provinceconfirm: async function() {
|
|
provinceconfirm: async function() {
|
|
@@ -665,64 +437,73 @@
|
|
},
|
|
},
|
|
// 保存
|
|
// 保存
|
|
bc: async function() {
|
|
bc: async function() {
|
|
- //照片
|
|
|
|
- let practice = [] //证书
|
|
|
|
- let card_photo = [] //身份证
|
|
|
|
- let is_quali = [] //资格
|
|
|
|
- // 通过filter,筛选出上传进度为100的文件(因为某些上传失败的文件,进度值不为100,这个是可选的操作)
|
|
|
|
- // practice = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
- // return val.progress == 100;
|
|
|
|
- // })
|
|
|
|
- // card_photo = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
- // return val.progress == 100;
|
|
|
|
- // })
|
|
|
|
- // is_quail = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
- // return val.progress == 100;
|
|
|
|
- // })
|
|
|
|
- // 如果您不需要进行太多的处理,直接如下即可
|
|
|
|
- practice = this.$refs.Upractice.lists;//证书
|
|
|
|
- card_photo = this.$refs.Ucard_photo.lists;//身份证
|
|
|
|
- is_quali = this.$refs.Uis_quali.lists;//资格
|
|
|
|
-
|
|
|
|
- if(typeof practice[0]=='undefined' ||typeof practice[1]=='undefined'){
|
|
|
|
- uni.showToast({
|
|
|
|
- 'title':'医师职业证书必填',
|
|
|
|
- icon:"none"
|
|
|
|
- })
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if(typeof card_photo[0]=='undefined' ||typeof card_photo[1]=='undefined'){
|
|
|
|
- uni.showToast({
|
|
|
|
- 'title':'身份证必填',
|
|
|
|
- icon:"none"
|
|
|
|
- })
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if(typeof is_quali[0]=='undefined' ||typeof is_quali[1]=='undefined'){
|
|
|
|
- uni.showToast({
|
|
|
|
- 'title':'资格证必填',
|
|
|
|
- icon:"none"
|
|
|
|
- })
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- this.form.certificate = [practice[0].response.data.url,practice[1].response.data.url]
|
|
|
|
- this.form.idPhoto = [card_photo[0].response.data.url,card_photo[1].response.data.url]
|
|
|
|
- this.form.doctorQualification = [is_quali[0].response.data.url,is_quali[1].response.data.url]
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if (typeof this.form.works != 'string') {
|
|
|
|
- this.form.works = JSON.stringify(this.form.works);
|
|
|
|
- }
|
|
|
|
|
|
+ this.allupload = true
|
|
|
|
+ //保存之后改变机构信息状态
|
|
|
|
+ this.mechanismList.map(val => {
|
|
|
|
+ //判断是不是新增的数据 状态为0
|
|
|
|
+ if(val.Submit==0){
|
|
|
|
+ val.Submit = 1;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
- // 注意要 {'doctor_name':'ddd',doctor_sex:1....}分开传值因为我方便拦截垃圾数据
|
|
|
|
- let res = await this.$request.post('doctor/addthen', this.form);
|
|
|
|
- console.log('res...:', res);
|
|
|
|
- if (res.status == 0) {
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '../index/index'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // //照片
|
|
|
|
+ // let practice = [] //证书
|
|
|
|
+ // let card_photo = [] //身份证
|
|
|
|
+ // let is_quali = [] //资格
|
|
|
|
+ // // 通过filter,筛选出上传进度为100的文件(因为某些上传失败的文件,进度值不为100,这个是可选的操作)
|
|
|
|
+ // // practice = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
+ // // return val.progress == 100;
|
|
|
|
+ // // })
|
|
|
|
+ // // card_photo = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
+ // // return val.progress == 100;
|
|
|
|
+ // // })
|
|
|
|
+ // // is_quail = this.$refs.uUpload.lists.filter(val => {
|
|
|
|
+ // // return val.progress == 100;
|
|
|
|
+ // // })
|
|
|
|
+ // // 如果您不需要进行太多的处理,直接如下即可
|
|
|
|
+ // practice = this.$refs.Upractice.lists; //证书
|
|
|
|
+ // card_photo = this.$refs.Ucard_photo.lists; //身份证
|
|
|
|
+ // is_quali = this.$refs.Uis_quali.lists; //资格
|
|
|
|
+
|
|
|
|
+ // if (typeof practice[0] == 'undefined' || typeof practice[1] == 'undefined') {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // 'title': '医师职业证书必填',
|
|
|
|
+ // icon: "none"
|
|
|
|
+ // })
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // if (typeof card_photo[0] == 'undefined' || typeof card_photo[1] == 'undefined') {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // 'title': '身份证必填',
|
|
|
|
+ // icon: "none"
|
|
|
|
+ // })
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // if (typeof is_quali[0] == 'undefined' || typeof is_quali[1] == 'undefined') {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // 'title': '资格证必填',
|
|
|
|
+ // icon: "none"
|
|
|
|
+ // })
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // this.form.certificate = [practice[0].response.data.url, practice[1].response.data.url]
|
|
|
|
+ // this.form.idPhoto = [card_photo[0].response.data.url, card_photo[1].response.data.url]
|
|
|
|
+ // this.form.doctorQualification = [is_quali[0].response.data.url, is_quali[1].response.data.url]
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // if (typeof this.form.works != 'string') {
|
|
|
|
+ // this.form.works = JSON.stringify(this.form.works);
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // // 注意要 {'doctor_name':'ddd',doctor_sex:1....}分开传值因为我方便拦截垃圾数据
|
|
|
|
+ // let res = await this.$request.post('doctor/addthen', this.form);
|
|
|
|
+ // console.log('res...:', res);
|
|
|
|
+ // if (res.status == 0) {
|
|
|
|
+ // uni.switchTab({
|
|
|
|
+ // url: '../index/index'
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
},
|
|
ChooseImage() {
|
|
ChooseImage() {
|