| xqd
@@ -683,13 +683,33 @@
|
|
|
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;
|
|
|
+ }
|
|
|
|
|
|
- this.form.certificate = practice
|
|
|
- this.form.idPhoto = card_photo
|
|
|
- this.form.doctorQualification = is_quali
|
|
|
- console.log(this.form.certificate)
|
|
|
- console.log(this.form.idPhoto)
|
|
|
- console.log(this.form.doctorQualification)
|
|
|
+ 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);
|