|
@@ -13,9 +13,9 @@
|
|
|
cityId: '',
|
|
|
address:'',
|
|
|
name:'',//公司名称
|
|
|
- sname:'',//公司简称
|
|
|
+ shortName:'',//公司简称
|
|
|
linkMan:'',//联系人
|
|
|
- email:'',//
|
|
|
+ contractEmail:'',//
|
|
|
contractPhone:'',//固定电话
|
|
|
fax:'',//传真
|
|
|
legalPerson:'',//法人代表
|
|
@@ -33,15 +33,15 @@
|
|
|
shopId:'',
|
|
|
firstShopType:'',//公司类型 1医疗 2非医疗
|
|
|
secondShopType:'',//医疗下的二级分类
|
|
|
- medicalPracticeLicenseImg1:'',//资质
|
|
|
- mainpro:'',//主营产品
|
|
|
+ medicalPracticeLicense:'',//资质
|
|
|
+ mainProduct:'',//主营产品
|
|
|
businessScope:'',//经营内容
|
|
|
- info:'',//公司介绍
|
|
|
- productDesc:'',//主打说明
|
|
|
+ shopDesc:'',//公司介绍
|
|
|
+ mainProductDesc:'',//主打说明
|
|
|
},
|
|
|
params3:{
|
|
|
socialCreditCode:'',//营业执照编号
|
|
|
- businessLicenseImage:'',//营业执照
|
|
|
+ businessLicense:'',//营业执照
|
|
|
logo:'',//公司logo
|
|
|
productionLicence:'',//生产
|
|
|
hygienicLicense:'',//卫生
|
|
@@ -125,9 +125,9 @@
|
|
|
var shop = res.data.shop;
|
|
|
var user = res.data.user;
|
|
|
_this.params.name = shop.name;
|
|
|
- _this.params.sname = shop.sname;
|
|
|
+ _this.params.shortName = shop.shortName;
|
|
|
_this.params.linkMan = shop.linkMan;
|
|
|
- _this.params.email = user.email;
|
|
|
+ _this.params.contractEmail = user.contractEmail;
|
|
|
_this.params.address = shop.provincialAddress;
|
|
|
_this.params.provinceId = shop.provinceId;
|
|
|
_this.params.cityId = shop.cityId;
|
|
@@ -142,20 +142,20 @@
|
|
|
// _this.shopScope = _this.setNewScope(shop.businessScope);
|
|
|
_this.params2.firstShopType = shop.firstShopType;
|
|
|
_this.params2.secondShopType = shop.secondShopType;
|
|
|
- _this.params2.medicalPracticeLicenseImg1 = shop.medicalPracticeLicenseImg1;
|
|
|
- _this.params2.info = shop.info;
|
|
|
- _this.params2.productDesc = shop.productDesc;
|
|
|
+ _this.params2.medicalPracticeLicense = shop.medicalPracticeLicense;
|
|
|
+ _this.params2.shopDesc = shop.shopDesc;
|
|
|
+ _this.params2.mainProductDesc = shop.mainProductDesc;
|
|
|
_this.params3.socialCreditCode = shop.socialCreditCode;
|
|
|
- _this.params3.businessLicenseImage = shop.businessLicenseImage;
|
|
|
+ _this.params3.businessLicense = shop.businessLicense;
|
|
|
_this.params3.logo = shop.logo;
|
|
|
_this.params3.productionLicence = shop.productionLicence;
|
|
|
_this.params3.hygienicLicense = shop.hygienicLicense;
|
|
|
_this.params3.taxLicense = shop.taxLicense;
|
|
|
_this.params3.certificateHonor = shop.hygienicLicense;
|
|
|
- _this.HonorImagesList = res.data.certificateHonor;
|
|
|
- _this.productImagesList = res.data.productCertification;
|
|
|
- if(shop.mainpro != "" && shop.mainpro != null){
|
|
|
- _this.mentuzCampNullList = _this.setNewMainpro(shop.mainpro);
|
|
|
+ _this.HonorImagesList = shop.honorCertification;
|
|
|
+ _this.productImagesList = shop.productCertification;
|
|
|
+ if(shop.mainpro != "" && shop.mainProduct != null){
|
|
|
+ _this.mentuzCampNullList = _this.setNewMainpro(shop.mainProduct);
|
|
|
_this.mentuzCampNullList.forEach(function (item) {
|
|
|
if(item.checked){
|
|
|
_this.shopMainPros.push(item.name)
|
|
@@ -207,7 +207,7 @@
|
|
|
if(_self.tabCurrentIndex==1){
|
|
|
params = _self.params;
|
|
|
}else if(_self.tabCurrentIndex==2){
|
|
|
- _self.params2.mainpro = _self.shopMainPros.join("/");
|
|
|
+ _self.params2.mainProduct = _self.shopMainPros.join("/");
|
|
|
_self.params2.businessScope = _self.shopScope.join("/");
|
|
|
params = _self.params2
|
|
|
}else if(_self.tabCurrentIndex==3){
|
|
@@ -263,7 +263,7 @@
|
|
|
var file = inputDOM.files;
|
|
|
_this.formData.append('file', file[0]);
|
|
|
PublicApi.uploadimg(_this.formData,function(response){
|
|
|
- _this.params2.medicalPracticeLicenseImg1 = response.data;
|
|
|
+ _this.params2.medicalPracticeLicense = response.data;
|
|
|
event.target.value = '';
|
|
|
});
|
|
|
},
|
|
@@ -273,7 +273,7 @@
|
|
|
var file = inputDOM.files;
|
|
|
_this.formData.append('file', file[0]);
|
|
|
PublicApi.uploadimg(_this.formData,function(response){
|
|
|
- _this.params3.businessLicenseImage = response.data;
|
|
|
+ _this.params3.businessLicense = response.data;
|
|
|
event.target.value = '';
|
|
|
});
|
|
|
},
|
|
@@ -352,10 +352,10 @@
|
|
|
this.params3.logo = '';
|
|
|
},
|
|
|
deleteBusinessImage:function(){//删除营业执照图片
|
|
|
- this.params3.businessLicenseImage = '';
|
|
|
+ this.params3.businessLicense = '';
|
|
|
},
|
|
|
deleteMedicalImage:function(){//删除医疗执照图片
|
|
|
- this.params2.medicalPracticeLicenseImg1 = '';
|
|
|
+ this.params2.medicalPracticeLicense = '';
|
|
|
},
|
|
|
removeGoodsImagesFn: function(index){//删除荣誉图片
|
|
|
var _this = this;
|
|
@@ -373,6 +373,7 @@
|
|
|
},
|
|
|
checkedFn:function (index) {
|
|
|
this.tabCurrentIndex = index;
|
|
|
+ console.log( this.tabCurrentIndex);
|
|
|
},
|
|
|
province:function () {
|
|
|
var _this = this;
|