| | |
| | | + this.dataForm.city + this.dataForm.district + this.dataForm.address; |
| | | let fullStorageAddress = (this.dataForm.storageprovince ==='新疆维吾尔自治区'? '新疆': this.dataForm.storageprovince) |
| | | + this.dataForm.storagecity + this.dataForm.storagedistrict + this.dataForm.storageaddress; |
| | | |
| | | if (this.getByteLen(fullAddress) > 90 || this.getByteLen(fullStorageAddress) > 90){ |
| | | parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过50个字,请删减', vm: this}) |
| | | if (this.getByteLen(fullAddress) > 390 || this.getByteLen(fullStorageAddress) > 390){ |
| | | parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过200个字,请删减', vm: this}) |
| | | } else { |
| | | if(this.title === "新增"){ |
| | | let res = await addLicenseInfo(this.dataForm) |
| | |
| | | parseError({error: '请填写许可类型', vm: this}) |
| | | return |
| | | } |
| | | if (this.getByteLen(fullAddress) > 90 || this.getByteLen(fullStorageAddress) > 90){ |
| | | parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过50个字,请删减', vm: this}) |
| | | if (this.getByteLen(fullAddress) > 390 || this.getByteLen(fullStorageAddress) > 390){ |
| | | parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过200个字,请删减', vm: this}) |
| | | } else { |
| | | let res = await modLicense(this.dataForm) |
| | | if(res.data.code === '200'){ |