|
@@ -13,6 +13,7 @@ var registerPage = new Vue({
|
|
|
shortName:'',
|
|
|
socialCreditCode:'',
|
|
|
businessLicense:'',
|
|
|
+ medicalPracticeLicense:'',
|
|
|
provinceId :'',
|
|
|
cityId : '',
|
|
|
townId : '',
|
|
@@ -81,6 +82,7 @@ var registerPage = new Vue({
|
|
|
_this.supplierUser.shopDesc = shop.shopDesc;
|
|
|
_this.supplierUser.socialCreditCode = shop.socialCreditCode;
|
|
|
_this.supplierUser.businessLicense = shop.businessLicense;
|
|
|
+ _this.supplierUser.medicalPracticeLicense = shop.medicalPracticeLicense;
|
|
|
_this.supplierUser.firstShopType = shop.firstShopType;
|
|
|
_this.supplierUser.secondShopType = shop.secondShopType;
|
|
|
if(shop.mainProduct != "" && shop.mainProduct != null){
|
|
@@ -189,9 +191,28 @@ var registerPage = new Vue({
|
|
|
event.target.value = '';
|
|
|
});
|
|
|
},
|
|
|
+ uploadMedicaImageFn: function(event){//上传资质证书
|
|
|
+ var _this = this;
|
|
|
+ var inputDOM = _this.$refs.businessMedicaImage;
|
|
|
+ var file = inputDOM.files;
|
|
|
+ _this.formData.append('file', file[0]);
|
|
|
+ PublicApi.uploadimg(_this.formData,function(response){
|
|
|
+ _this.supplierUser.medicalPracticeLicense = response.data;
|
|
|
+ event.target.value = '';
|
|
|
+ });
|
|
|
+ },
|
|
|
deleteBusinessImage:function(){//清楚营业执照图片
|
|
|
this.supplierUser.businessLicenseImage = '';
|
|
|
},
|
|
|
+ deleteMedicalImage:function(){//清楚资质照图片
|
|
|
+ this.supplierUser.medicalPracticeLicense = '';
|
|
|
+ },
|
|
|
+ showViewerImageFn:function(){//预览营业执照图片
|
|
|
+ var viewer = new Viewer(document.getElementById('businessLicenseImage'));
|
|
|
+ },
|
|
|
+ showViewerImageFn2:function(){//预览资质图片
|
|
|
+ var viewer = new Viewer(document.getElementById('medicalPracticeLicenseImg'));
|
|
|
+ },
|
|
|
ChangeProvince:function () {
|
|
|
var _this = this;
|
|
|
if (_this.supplierUser.provinceId!=0){
|