|
@@ -17,10 +17,10 @@
|
|
|
linkMan:'',//联系人
|
|
|
contractEmail:'',//
|
|
|
contractPhone:'',//固定电话
|
|
|
- fax:'',//传真
|
|
|
+ faxNumber:'',//传真
|
|
|
legalPerson:'',//法人代表
|
|
|
registeredCapital:'',//注册资本
|
|
|
- nature:'',//公司性质
|
|
|
+ companyNature:'',//公司性质
|
|
|
turnover:'',//年营业额
|
|
|
},
|
|
|
form:{
|
|
@@ -46,7 +46,7 @@
|
|
|
socialCreditCode:'',//营业执照编号
|
|
|
businessLicense:'',//营业执照
|
|
|
logo:'',//公司logo
|
|
|
- productionLicence:'',//生产
|
|
|
+ operationLicence:'',//生产
|
|
|
hygienicLicense:'',//卫生
|
|
|
taxLicense:'',//税务
|
|
|
honorCertification:'',//荣誉
|
|
@@ -121,25 +121,25 @@
|
|
|
},
|
|
|
shopInfo:function(){
|
|
|
var _this = this;
|
|
|
- console.log()
|
|
|
SupplierApi.shopInfo({userId:_this.params.userId},function(res){
|
|
|
if(res.code==0){
|
|
|
+ console.log('asda-=======',res.data);
|
|
|
_this.isRequset=false;
|
|
|
var shop = res.data.shop;
|
|
|
var user = res.data.user;
|
|
|
_this.params.name = shop.name;
|
|
|
_this.params.shortName = shop.shortName;
|
|
|
_this.params.linkMan = shop.linkMan;
|
|
|
- _this.params.contractEmail = user.contractEmail;
|
|
|
+ _this.params.contractEmail = shop.contractEmail;
|
|
|
_this.params.address = shop.provincialAddress;
|
|
|
_this.params.provinceId = shop.provinceId;
|
|
|
_this.params.cityId = shop.cityId;
|
|
|
_this.params.townId = shop.townId;
|
|
|
_this.params.contractPhone = shop.contractPhone;
|
|
|
- _this.params.fax = shop.fax;
|
|
|
+ _this.params.faxNumber = shop.faxNumber;
|
|
|
_this.params.legalPerson = shop.legalPerson;
|
|
|
_this.params.registeredCapital = shop.registeredCapital;
|
|
|
- _this.params.nature = shop.nature;
|
|
|
+ _this.params.companyNature = shop.companyNature;
|
|
|
_this.params.turnover = shop.turnover;
|
|
|
// _this.shopMainPros = _this.setNewMainpro(shop.mainpro);
|
|
|
// _this.shopScope = _this.setNewScope(shop.businessScope);
|
|
@@ -154,7 +154,7 @@
|
|
|
_this.params3.socialCreditCode = shop.socialCreditCode;
|
|
|
_this.params3.businessLicense = shop.businessLicense;
|
|
|
_this.params3.logo = shop.logo;
|
|
|
- _this.params3.productionLicence = shop.productionLicence;
|
|
|
+ _this.params3.operationLicence = shop.operationLicence;
|
|
|
_this.params3.hygienicLicense = shop.hygienicLicense;
|
|
|
_this.params3.taxLicense = shop.taxLicense;
|
|
|
_this.params3.honorCertification = shop.honorCertification;
|
|
@@ -228,17 +228,17 @@
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
- SupplierApi.modifiedData(params,function (res) {
|
|
|
- console.log(res)
|
|
|
- if(res.code === 0){
|
|
|
+ params = Object.assign(_self.params,_self.params2,_self.params3);
|
|
|
+ SupplierApi.modifiedData(params,function (res) {
|
|
|
+ if(res.code === 0){
|
|
|
CAIMEI.dialog('修改成功',true,function () {
|
|
|
window.location.href='/supplier/dashboard.html';
|
|
|
_self.loginLoading = false;
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
CAIMEI.Alert(res.msg,'确定',false);
|
|
|
_self.loginLoading = false;
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -308,7 +308,7 @@
|
|
|
var file = inputDOM.files;
|
|
|
_this.formData.append('file', file[0]);
|
|
|
PublicApi.uploadimg(_this.formData,function(response){
|
|
|
- _this.params3.productionLicence = response.data;
|
|
|
+ _this.params3.operationLicence = response.data;
|
|
|
event.target.value = '';
|
|
|
});
|
|
|
},
|
|
@@ -361,7 +361,7 @@
|
|
|
this.params3.hygienicLicense = '';
|
|
|
},
|
|
|
deleteproducImage:function(){//删除生产
|
|
|
- this.params3.productionLicence = '';
|
|
|
+ this.params3.operationLicence = '';
|
|
|
},
|
|
|
deletelogoImage:function(){//删除logo图片
|
|
|
this.params3.logo = '';
|