| | |
| | | v-model="baseFormData.cstmrType" @input="autoLoad('cstmrType',baseFormData.cstmrType)"></uni-combox> |
| | | </view> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="客户行业" required name="industry"> |
| | | <view > |
| | | <uni-combox :candidates="industrys" placeholder="请选择客户行业" |
| | | v-model="baseFormData.industry"></uni-combox> |
| | | <uni-forms-item label="客户行业" name="industry" required> |
| | | <view @click="autoLoad('customerIndustryName','')"> |
| | | <uni-combox :candidates="industrys" placeholder="请选择客户行业" |
| | | v-model="baseFormData.industry" |
| | | @input="autoLoad('customerIndustryName',baseFormData.industry)"></uni-combox> |
| | | </view> |
| | | </uni-forms-item> |
| | | |
| | |
| | | directorList: [], |
| | | names: [], |
| | | nameList: [], |
| | | industrys: ['医药业','制造业','纺织业'], |
| | | industrys: [], |
| | | industryList: [], |
| | | productCategorys: [], |
| | | productCategoryList: [], |
| | | baseFormData: { |
| | |
| | | that.cstmrTypes = [] |
| | | that.directors = [] |
| | | that.directorList = [] |
| | | that.industrys = [] |
| | | var a = that.baseUrl + '/' + type + 'Query/auth' |
| | | uni.request({ |
| | | url: that.baseUrl + '/' + type + 'Query' +'/auth', |
| | |
| | | } |
| | | return |
| | | } |
| | | |
| | | if (type == 'customerIndustryName') { |
| | | for (element of res.data) { |
| | | that.industrys.push(element.value) |
| | | that.industryList.push(element) |
| | | } |
| | | return |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | that.baseFormData.cstmrType = element.id |
| | | } |
| | | } |
| | | for (element of that.productCategoryList) { |
| | | if(element.value == that.baseFormData.productCategory) { |
| | | that.baseFormData.productCategory = element.id |
| | | } |
| | | } |
| | | for (element of that.industryList) { |
| | | if(element.value == that.baseFormData.industry) { |
| | | that.baseFormData.industry = element.id |
| | | } |
| | | } |
| | | this.$refs.baseForm.validate().then(res=>{ |
| | | if (res.rela == undefined) { |
| | | res.rela = '' |