| | |
| | | <input type="text" placeholder=" 扫码 / 输入 货架码" v-model="barcode" :focus="barcodeFocus" |
| | | @input="barcodeInput()"> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- <view class="item"> |
| | | <view class="dropdown" @click="toggleDropdown()"> |
| | | <input type="text" style="width: 650rpx;" v-model="containerType" placeholder="请选择货架类型"> |
| | | <uni-icons :type="isOpen ? 'top' : 'bottom'" color="#c1c1c1" style="margin-left: 10rpx;"></uni-icons> |
| | |
| | | <view class="dropdown-item" v-for="option in selects" @click="selected(option)">{{option}}</view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="item"> |
| | | <input type="text" placeholder=" 扫码 / 输入 暂存位" v-model="stationCode" :focus="stationCodeFocus" |
| | | @input="stationCodeInput()"> |
| | |
| | | <view class="desc">No:</view> |
| | | <view class="left-item">{{i + 1}}</view> |
| | | </view> |
| | | <!-- <view class="list-left-item"> |
| | | <view class="desc">箱码:</view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">订单号:</view> |
| | | <view class="left-item"> |
| | | <input type="text" v-model="item.containerCode"> |
| | | <uni-tag :text="item.containerCode" type="primary"></uni-tag> |
| | | <input type="text" v-model="item.csocode"> |
| | | <!-- <uni-tag :text="item.csocode" type="primary"></uni-tag> --> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">自由项:</view> |
| | | <view class="left-item"> |
| | | <input type="text" v-model="item.isoseq"> |
| | | </view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">编码:</view> |
| | | <view class="left-item"> |
| | |
| | | </view> |
| | | <view class="list-right"> |
| | | <uni-icons type="compose" color="#9add8b" size="24" @click="revise(item,i)"></uni-icons> |
| | | <view style="width: 10rpx;"></view> |
| | | <uni-icons type="trash" color="#f58a8a" size="24" @click="remove(item,i,'warn')"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">数量:</view> |
| | | <view class="popup-item-right" style="border: none;justify-content: center;"> |
| | | <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" /> |
| | | <uni-number-box :value="count" :step='1' :max="9999999" color="#747474" @change="changeValue" /> |
| | | </view> |
| | | </view> |
| | | <view class="btn"> |
| | |
| | | devNo: [], |
| | | flag: 0, |
| | | tempOrderInfo: {csocode: '',isoseq: ''}, |
| | | hide: true, |
| | | hide: false, |
| | | hidebg: 'kb-bgtr', |
| | | isOpen: false, |
| | | selects: [1,2,3,4], |
| | |
| | | eventChannel.on('mats', function(data) { |
| | | console.log(data); |
| | | that.orderNo = data.mats[0].orderNo |
| | | for (let k of data.mats) { |
| | | k.anfme = 0 |
| | | } |
| | | that.dataList = data.mats |
| | | }) |
| | | }, |
| | |
| | | stationCodeInput() { |
| | | setTimeout(() => { |
| | | var len = this.stationCode.length |
| | | if (len != 15) { |
| | | if (len != 7) { |
| | | this.stationCode = '' |
| | | this.stationCodeFocus = true |
| | | uni.showToast({ |
| | |
| | | }, 200) |
| | | }, |
| | | barcodeInput() { |
| | | // 不设置定时器 会出现扫入的字符串不全 |
| | | if (this.barcode.split('_')[1]) { |
| | | this.barcode = this.barcode.split('_')[1] |
| | | } |
| | | let val = this.barcode.substring(0,2) |
| | | if (val == '10') { |
| | | this.containerType = 1 |
| | | } else if(val == '20') { |
| | | this.containerType = 2 |
| | | } else if (val == '21') { |
| | | this.containerType = 3 |
| | | } else if (val == '30') { |
| | | this.containerType = 4 |
| | | } |
| | | setTimeout(() => { |
| | | var len = this.barcode.length |
| | | if (len != 10) { |
| | | if (len != 6) { |
| | | this.barcode = '' |
| | | this.barcodeFocus = true |
| | | uni.showToast({ |
| | |
| | | orderNo: that.orderNo, |
| | | barcode: that.barcode, |
| | | locno: that.stationCode, |
| | | // containerType: this.containerType, |
| | | combMats: that.dataList |
| | | }), |
| | | method: 'POST', |
| | |
| | | that.resst(); |
| | | that.messageText = "组托成功" |
| | | that.messageToggle('success') |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | setTimeout(()=> { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | },700) |
| | | } |
| | | } else if (res.code == 403) { |
| | | that.messageText = res.msg |
| | |
| | | let param = { |
| | | devNo: this.stationCode, |
| | | containerCode: this.barcode, |
| | | containerType: this.containerType, |
| | | // containerType: this.containerType, |
| | | } |
| | | params.push(param) |
| | | } else { |
| | |
| | | that.resst(); |
| | | that.messageText = "启动成功" |
| | | that.messageToggle('success') |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | setTimeout(()=>{ |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | },700) |
| | | } else if (res.code == 403) { |
| | | that.messageText = res.msg |
| | | that.messageToggle('error') |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | position: fixed; |
| | | margin-top: 280rpx; |
| | | margin-top: 210rpx; |
| | | z-index: 9; |
| | | /* border-top: 1px solid #DCDFE6; */ |
| | | text-align: center; |