| xqd
@@ -71,7 +71,7 @@
|
|
|
<view class="grid col-4 grid-square flex-sub">
|
|
|
<view class="bg-img" v-for="(item,index) in form.idPhoto" :key="index" :data-url="form.idPhoto[index]">
|
|
|
<image :src="'https://xiaoyunimg.top/'+form.idPhoto[index]" mode='aspectFill'></image>
|
|
|
- <view class="cu-tag bg-red" v-if="isidPhoto" @click="idPhotoDelImg" :data-index="index">
|
|
|
+ <view class="cu-tag bg-red" v-if="iscertificate&&form.idPhoto.length<2" @click="idPhotoDelImg" :data-index="index">
|
|
|
<text class="cuIcon-close"></text>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -86,7 +86,7 @@
|
|
|
<view style="border-bottom: 0.5rpx solid #EFEFEF;padding: 10rpx 25rpx;">
|
|
|
<view style="margin-bottom: 30rpx;">
|
|
|
<text style="font-size: 30rpx;font-weight: bold;">上传医生资格证</text>
|
|
|
- <text style="color: #999999;font-size: 26rpx;">(请上传清晰的照片和相关信息页面两张)</text>
|
|
|
+ <text style="color: #999999;font-size: 26rpx;">(请上传清晰的照片和相关信息页面)</text>
|
|
|
</view>
|
|
|
<!-- 上传 -->
|
|
|
<view>
|
| xqd
@@ -96,7 +96,7 @@
|
|
|
<view class="grid col-4 grid-square flex-sub">
|
|
|
<view class="bg-img" v-for="(item,index) in form.doctorQualification" :key="index" :data-url="form.doctorQualification[index]">
|
|
|
<image :src="'https://xiaoyunimg.top/'+form.doctorQualification[index]" mode='aspectFill'></image>
|
|
|
- <view class="cu-tag bg-red" v-if="isdoctorQualification" @click="doctorQualificationDelImg" :data-index="index">
|
|
|
+ <view class="cu-tag bg-red" v-if="iscertificate" @click="doctorQualificationDelImg" :data-index="index">
|
|
|
<text class="cuIcon-close"></text>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -208,9 +208,7 @@
|
|
|
hosindex: 0, //记录点击的地方
|
|
|
//提交之后不能修改姓名 身份证 性别 证书
|
|
|
allupload: false, //是否已经提交过并且审核通过
|
|
|
- iscertificate: true,
|
|
|
- isidPhoto: true,
|
|
|
- isdoctorQualification: true
|
|
|
+ iscertificate: false,
|
|
|
|
|
|
}
|
|
|
},
|
| xqd
@@ -223,26 +221,26 @@
|
|
|
if (res.status == 0) {
|
|
|
if (res.data != undefined || res.data != "undefined") {
|
|
|
if (res.data.oqf.length != 0 || res.data.orgList.length != 0) {
|
|
|
- if(res.data.info.is_then == 0){
|
|
|
+ if (res.data.info.is_then == 0) {
|
|
|
this.allupload = false
|
|
|
- }else if(res.data.info.is_then == 1){
|
|
|
+ } else if (res.data.info.is_then == 1) {
|
|
|
this.allupload = true
|
|
|
}
|
|
|
|
|
|
this.form.name = res.data.info.name;
|
|
|
this.form.sex = res.data.info.sex == 1 ? '男' : '女';
|
|
|
this.form.ID = res.data.info.card_id;
|
|
|
+ if (res.data.info.is_then == 0) {
|
|
|
+ this.iscertificate = true
|
|
|
+ }
|
|
|
if (res.data.info.practice != '0') {
|
|
|
this.form.certificate = res.data.info.practice.split(',');
|
|
|
- this.iscertificate = false
|
|
|
}
|
|
|
if (res.data.info.card_photo != '0') {
|
|
|
this.form.idPhoto = res.data.info.card_photo.split(',');
|
|
|
- this.isidPhoto = false
|
|
|
}
|
|
|
if (res.data.info.is_quail != '0') {
|
|
|
this.form.doctorQualification = res.data.info.is_quail.split(',');
|
|
|
- this.isdoctorQualification = false
|
|
|
}
|
|
|
|
|
|
|
| xqd
@@ -270,6 +268,7 @@
|
|
|
preservation: true, //是否已经保存
|
|
|
Submit: orglist[i].state, // 0=审核中,1=审核通过,2=审核拒绝 信息状态 0未提交 1审核中 2审核通过 3审核不通过
|
|
|
})
|
|
|
+ console.log(this.mechanismList)
|
|
|
}
|
|
|
}
|
|
|
|
| xqd
@@ -278,6 +277,13 @@
|
|
|
}
|
|
|
},
|
|
|
regionClick(index) {
|
|
|
+ if (this.mechanismList[index].Submit == 0 || this.mechanismList[index].Submit == 1) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '无法修改',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (this.mechanismList.length - 1 == index) {
|
|
|
this.regionShow = true
|
|
|
this.regindex = index //保存点击的地方
|
| xqd
@@ -291,6 +297,13 @@
|
|
|
//机构选择器打开
|
|
|
hospitalClick(index) {
|
|
|
console.log(index);
|
|
|
+ if (this.mechanismList[index].Submit == 0 || this.mechanismList[index].Submit == 1) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '无法修改',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (this.mechanismList.length - 1 == index) {
|
|
|
if (this.mechanismList[index].regionText != '') {
|
|
|
this.hospitalShow = true
|
| xqd
@@ -433,11 +446,7 @@
|
|
|
"city": c,
|
|
|
"area": a,
|
|
|
});
|
|
|
- console.log('提交的数据', p)
|
|
|
- console.log('提交的数据', c)
|
|
|
- console.log('提交的数据', a)
|
|
|
- console.log('医院', res.data)
|
|
|
- if(res.status==0){
|
|
|
+ if (res.status == 0) {
|
|
|
this.hospitallist = res.data
|
|
|
}
|
|
|
},
|
| xqd
@@ -547,20 +556,26 @@
|
|
|
certificateChooseImage() {
|
|
|
let arr = []
|
|
|
uni.chooseImage({
|
|
|
- count: 2, //默认9
|
|
|
+ count: 9, //默认9
|
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], //从相册选择
|
|
|
success: (res) => {
|
|
|
if (arr.length != 0) {
|
|
|
arr = arr.concat(res.tempFilePaths)
|
|
|
- this.$request.upload("Common/uploadFile", arr[arr.length - 1], {}).then(data => {
|
|
|
- this.form.certificate.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.certificate.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
+
|
|
|
} else {
|
|
|
arr = res.tempFilePaths
|
|
|
- this.$request.upload("Common/uploadFile", arr[0], {}).then(data => {
|
|
|
- this.form.certificate.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.certificate.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
});
|
| xqd
@@ -574,13 +589,17 @@
|
|
|
success: (res) => {
|
|
|
if (arr.length != 0) {
|
|
|
arr = arr.concat(res.tempFilePaths)
|
|
|
- this.$request.upload("Common/uploadFile", arr[arr.length - 1], {}).then(data => {
|
|
|
- this.form.idPhoto.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.idPhoto.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
} else {
|
|
|
arr = res.tempFilePaths
|
|
|
- this.$request.upload("Common/uploadFile", arr[0], {}).then(data => {
|
|
|
- this.form.idPhoto.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.idPhoto.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
}
|
| xqd
@@ -589,19 +608,24 @@
|
|
|
doctorQualificationChooseImage() {
|
|
|
let arr = []
|
|
|
uni.chooseImage({
|
|
|
- count: 2, //默认9
|
|
|
+ count: 9, //默认9
|
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], //从相册选择
|
|
|
success: (res) => {
|
|
|
if (arr.length != 0) {
|
|
|
arr = arr.concat(res.tempFilePaths)
|
|
|
- this.$request.upload("Common/uploadFile", arr[arr.length - 1], {}).then(data => {
|
|
|
- this.form.doctorQualification.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.doctorQualification.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
+
|
|
|
} else {
|
|
|
arr = res.tempFilePaths
|
|
|
- this.$request.upload("Common/uploadFile", arr[0], {}).then(data => {
|
|
|
- this.form.doctorQualification.push(JSON.parse(data).data.url)
|
|
|
+ arr.forEach(item => {
|
|
|
+ this.$request.upload("Common/uploadFile", item, {}).then(data => {
|
|
|
+ this.form.doctorQualification.push(JSON.parse(data).data.url)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
}
|