| | |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title text-desc"><text>客户信息</text></view> |
| | | <view class="text-title"><input type="text" v-model="matData.cstmr"></view> |
| | | <uni-combox :candidates="owners" placeholder="请选择客户类别" |
| | | v-model="matData.owner"></uni-combox> |
| | | <!-- <view class="text-title"><input type="text" v-model="matData.cstmr"></view> --> |
| | | </view> |
| | | <view class="text-box"> |
| | | <view class="text-title text-desc"><text>数量</text></view> |
| | |
| | | maktx: null, |
| | | batch: null, |
| | | anfme: null, |
| | | owner: null |
| | | }, |
| | | owners: [], |
| | | owner: '', |
| | | baseIP:'', |
| | | basePORT:'', |
| | | commonUrl: '' |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | |
| | | that.matData.anfme = 0 |
| | | }) |
| | | |
| | | eventChannel.on('url', function(data) { |
| | | that.commonUrl = data.data |
| | | }) |
| | | this.locOwner() |
| | | |
| | | }, |
| | | methods: { |
| | | locOwner() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: _this.commonUrl + '/locOwner/list/auth', |
| | | data:{curr:1,limit:15}, |
| | | header: { 'token':uni.getStorageSync('token') }, |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.owner = res.data.records |
| | | for (let k of res.data.records) { |
| | | _this.owners.push(k.owner) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | blur() { |
| | | |
| | | }, |
| | |
| | | return; |
| | | } |
| | | this.getOpenerEventChannel().emit('matList', {data: this.matData}); |
| | | this.getOpenerEventChannel().emit('owner', {data: this.owner}); |
| | | uni.vibrateShort(); |
| | | uni.navigateBack({ |
| | | |