|  |  |  | 
|---|
|  |  |  | <view class="form-item-desc"><text>销售单号</text></view> | 
|---|
|  |  |  | <view class="form-item-content"> | 
|---|
|  |  |  | <view class="form-input"> | 
|---|
|  |  |  | <input type="text" v-model="mat.batch"> | 
|---|
|  |  |  | <input type="text" v-model="mat.threeCode"> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | <view class="form-item-desc"><text>订单号</text></view> | 
|---|
|  |  |  | <view class="form-item-content"> | 
|---|
|  |  |  | <view class="form-input"> | 
|---|
|  |  |  | <input type="text" v-model="mat.batch"> | 
|---|
|  |  |  | <input type="text" v-model="mat.orderNo"> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="form-item"> | 
|---|
|  |  |  | <view class="form-item-desc"><text>数量</text></view> | 
|---|
|  |  |  | <view class="form-item-content"> | 
|---|
|  |  |  | <uni-number-box :value="mat.anfme" :max="99999999" :step='1' color="#747474" @change="changeValue" /> | 
|---|
|  |  |  | <uni-number-box :value="mat.count" :max="99999999" :step='0.01' color="#747474" @change="changeValue" /> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | maktx: null, | 
|---|
|  |  |  | specs: null, | 
|---|
|  |  |  | batch: null, | 
|---|
|  |  |  | anfme: 0, | 
|---|
|  |  |  | count: 0, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | baseIP:'', | 
|---|
|  |  |  | basePORT:'', | 
|---|
|  |  |  | 
|---|
|  |  |  | eventChannel.on('item', function(data) { | 
|---|
|  |  |  | console.log(data); | 
|---|
|  |  |  | that.mat = data.item | 
|---|
|  |  |  | that.mat.anfme = 0 | 
|---|
|  |  |  | that.mat['count'] = 0 | 
|---|
|  |  |  | that.mat['orderNo'] = '' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | // #ifdef APP | 
|---|
|  |  |  | setInterval(()=>{ | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changeValue(value) { | 
|---|
|  |  |  | this.mat.anfme = value | 
|---|
|  |  |  | this.mat.count = value | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | back() { | 
|---|
|  |  |  | if (this.mat.anfme === 0) { | 
|---|
|  |  |  | if (this.mat.count === 0) { | 
|---|
|  |  |  | uni.showToast({title: '请输入数量', icon: "none", position: 'top'}); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|