员工管理添加员工列表优惠券完善

This commit is contained in:
唐明明
2021-09-14 17:22:04 +08:00
parent f5e99ca292
commit 291ce57704
22 changed files with 7141 additions and 3586 deletions

View File

@@ -104,15 +104,14 @@
this.formType = this.$Route.query.formType
this.name = res.info.name
this.industryIndex = res.industries.findIndex(val => val.industry_id === res.info.industry.industry_id) || 0
this.category = res.info.categories
if(this.formType === 'put'){
appliesInfo().then(formValue => {
console.log(formValue)
for(let val of formValue.categories){
if(val.check){
this.categorys.push(val.category_id)
}
}
this.category = formValue.categories
this.corporate = formValue.certification.name
this.identity = formValue.certification.idcard
this.org = formValue.certification.code
@@ -124,6 +123,8 @@
icon : 'none'
})
})
}else{
this.category = res.info.categories
}
}).catch(err =>{
uni.showToast({
@@ -152,8 +153,8 @@
let method = this.formType === 'put' ? 'PUT' : 'POST'
applies({
name : this.name,
cover : this.logo,
license : this.license,
cover : this.logo.path,
license : this.license.path,
user_name : this.corporate,
id_card : this.identity,
code : this.org,