|
@@ -14,7 +14,7 @@
|
|
<view class="flex align-center justify-between" style="margin: 20rpx 0;">
|
|
<view class="flex align-center justify-between" style="margin: 20rpx 0;">
|
|
<view style="width: 30%;font-weight: bold;" class="felx align-center">医生姓名</view>
|
|
<view style="width: 30%;font-weight: bold;" class="felx align-center">医生姓名</view>
|
|
<text v-if="allupload">{{form.name}}</text>
|
|
<text v-if="allupload">{{form.name}}</text>
|
|
- <u-input v-model="form.name" type="text" :border="false" placeholder="请填写真实姓名" input-align="right" maxlength="6"
|
|
|
|
|
|
+ <u-input v-model="form.name" type="text" :border="false" placeholder="请填写真实姓名" input-align="right" maxlength="10"
|
|
v-else />
|
|
v-else />
|
|
</view>
|
|
</view>
|
|
<u-line color="#f0f2f5" />
|
|
<u-line color="#f0f2f5" />
|
|
@@ -225,19 +225,18 @@
|
|
let res = await this.$request.post("doctor/getRenInfo");
|
|
let res = await this.$request.post("doctor/getRenInfo");
|
|
if (res.status == 0) {
|
|
if (res.status == 0) {
|
|
if (res.data != undefined || res.data != "undefined") {
|
|
if (res.data != undefined || res.data != "undefined") {
|
|
|
|
+ if (res.data.info.is_then == 0) {
|
|
|
|
+ this.iscertificate = true
|
|
|
|
+ }
|
|
if (res.data.oqf.length != 0 || res.data.orgList.length != 0) {
|
|
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
|
|
this.allupload = false
|
|
} else if (res.data.info.is_then == 1) {
|
|
} else if (res.data.info.is_then == 1) {
|
|
this.allupload = true
|
|
this.allupload = true
|
|
}
|
|
}
|
|
-
|
|
|
|
this.form.name = res.data.info.name;
|
|
this.form.name = res.data.info.name;
|
|
this.form.sex = res.data.info.sex == 1 ? '男' : '女';
|
|
this.form.sex = res.data.info.sex == 1 ? '男' : '女';
|
|
this.form.ID = res.data.info.card_id;
|
|
this.form.ID = res.data.info.card_id;
|
|
- if (res.data.info.is_then == 0) {
|
|
|
|
- this.iscertificate = true
|
|
|
|
- }
|
|
|
|
if (res.data.info.practice != '0') {
|
|
if (res.data.info.practice != '0') {
|
|
this.form.certificate = res.data.info.practice.split(',');
|
|
this.form.certificate = res.data.info.practice.split(',');
|
|
}
|
|
}
|
|
@@ -247,16 +246,12 @@
|
|
if (res.data.info.is_quail != '0') {
|
|
if (res.data.info.is_quail != '0') {
|
|
this.form.doctorQualification = res.data.info.is_quail.split(',');
|
|
this.form.doctorQualification = res.data.info.is_quail.split(',');
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
- console.log(this.form.certificate)
|
|
|
|
if (res.data.orgList.length != 0 && res.data.oqf.length != 0) {
|
|
if (res.data.orgList.length != 0 && res.data.oqf.length != 0) {
|
|
let orglist = res.data.orgList;
|
|
let orglist = res.data.orgList;
|
|
let oqflist = res.data.oqf;
|
|
let oqflist = res.data.oqf;
|
|
this.mechanismList.length = 0;
|
|
this.mechanismList.length = 0;
|
|
this.form.works.length = 0;
|
|
this.form.works.length = 0;
|
|
- console.log('orglist', orglist)
|
|
|
|
for (let i = 0; i < orglist.length; i++) {
|
|
for (let i = 0; i < orglist.length; i++) {
|
|
// 获取到修改中数据
|
|
// 获取到修改中数据
|
|
this.form.works.push({
|
|
this.form.works.push({
|
|
@@ -275,11 +270,8 @@
|
|
Submit: orglist[i].state, // 0=审核中,1=审核通过,2=审核拒绝 信息状态 0未提交 1审核中 2审核通过 3审核不通过
|
|
Submit: orglist[i].state, // 0=审核中,1=审核通过,2=审核拒绝 信息状态 0未提交 1审核中 2审核通过 3审核不通过
|
|
hospitalID: orglist[i].organization.id,
|
|
hospitalID: orglist[i].organization.id,
|
|
})
|
|
})
|
|
- console.log(this.mechanismList)
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -535,7 +527,6 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
bc: async function() {
|
|
bc: async function() {
|
|
-
|
|
|
|
if (this.mechanismList[this.mechanismList.length - 1].preservation == false) {
|
|
if (this.mechanismList[this.mechanismList.length - 1].preservation == false) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
'title': '请先保存机构!'
|
|
'title': '请先保存机构!'
|
|
@@ -596,29 +587,36 @@
|
|
this.form.idPhoto = [card_photo[0].response.data.url, card_photo[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] */
|
|
this.form.doctorQualification = [is_quali[0].response.data.url, is_quali[1].response.data.url] */
|
|
|
|
|
|
-
|
|
|
|
|
|
+ if (this.form.idPhoto.length != 2) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "请上传完整的身份证",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
if (typeof this.form.works != 'string') {
|
|
if (typeof this.form.works != 'string') {
|
|
this.form.works = JSON.stringify(this.form.works);
|
|
this.form.works = JSON.stringify(this.form.works);
|
|
}
|
|
}
|
|
- console.log('提交表单!', this.form);
|
|
|
|
-
|
|
|
|
// 注意要 {'doctor_name':'ddd',doctor_sex:1....}分开传值因为我方便拦截垃圾数据
|
|
// 注意要 {'doctor_name':'ddd',doctor_sex:1....}分开传值因为我方便拦截垃圾数据
|
|
let res = await this.$request.post('doctor/addthen', this.form);
|
|
let res = await this.$request.post('doctor/addthen', this.form);
|
|
- console.log('res...:', res);
|
|
|
|
if (res.status == 0) {
|
|
if (res.status == 0) {
|
|
// uni.switchTab({
|
|
// uni.switchTab({
|
|
// url: '../index/index'
|
|
// url: '../index/index'
|
|
// })
|
|
// })
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "审核提交成功",
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 1000
|
|
|
|
+ })
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
delta: 1
|
|
delta: 1
|
|
- })
|
|
|
|
|
|
+ }, 1000)
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
title: res.message
|
|
title: res.message
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
certificateChooseImage() {
|
|
certificateChooseImage() {
|
|
let arr = []
|
|
let arr = []
|