| | |
| | | </view> |
| | | </uni-forms-item> |
| | | |
| | | <uni-forms-item label="产品类别" required name="productCategory"> |
| | | <view> |
| | | <uni-combox :candidates="productCategorys" placeholder="请选择产品类别" |
| | | v-model="baseFormData.productCategory"></uni-combox> |
| | | <uni-forms-item label="产品类型" name="productCategory" required> |
| | | <view @click="autoLoad('orderProductType','')"> |
| | | <uni-combox :candidates="productCategorys" placeholder="请选择产品类型" |
| | | v-model="baseFormData.productCategory" |
| | | @input="autoLoad('orderProductType',baseFormData.orderProductTypeId)"></uni-combox> |
| | | </view> |
| | | </uni-forms-item> |
| | | |
| | |
| | | names: [], |
| | | nameList: [], |
| | | industrys: ['医药业','制造业','纺织业'], |
| | | productCategorys: ['立体库(货架)','立体库(集成)','四向穿梭库/两向穿梭库','阁楼货架/钢平台','周转容器','平库'], |
| | | productCategorys: [], |
| | | productCategoryList: [], |
| | | baseFormData: { |
| | | name: '', |
| | | citysData: [], |
| | |
| | | value: 2 |
| | | }], |
| | | citysData: [], |
| | | citysDataTemp: '' |
| | | citysDataTemp: '', |
| | | uraddr: 'add' |
| | | |
| | | } |
| | | }, |
| | |
| | | this.citysData = test.citysData |
| | | this.autoLoad('cstmrType','') |
| | | this.autoLoad('user','') |
| | | this.autoLoad('orderProductType','') |
| | | }, |
| | | onLoad(option) { |
| | | if(option.type == 1) { |
| | | this.uraddr = 'add2' |
| | | } |
| | | }, |
| | | methods: { |
| | | cstmrSearch() { |
| | |
| | | } |
| | | return |
| | | } |
| | | if (type == 'orderProductType') { |
| | | for (element of res.data) { |
| | | that.productCategorys.push(element.value) |
| | | that.productCategoryList.push(element) |
| | | } |
| | | return |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | res.pcd = this.citysDataTemp |
| | | uni.request({ |
| | | url: that.baseUrl + '/cstmr/add/auth', |
| | | url: `${that.baseUrl}/cstmr/${that.uraddr}/auth`, |
| | | header:{ |
| | | 'token':uni.getStorageSync('token'), |
| | | 'content-type':'application/x-www-form-urlencoded', |