| | |
| | | "path" : "pages/phyz/AGV/emptyPakin", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "空板入出库", |
| | | "navigationBarTitleText" : "空板入库", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | | }, |
| | |
| | | project: 'tzsk', |
| | | elements2: [ |
| | | { |
| | | title: '空板入出库', |
| | | title: '空板入库', |
| | | name: 'emptyIn', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | |
| | | eventChannel.on('mats', function(data) { |
| | | console.log(data); |
| | | that.orderNo = data.mats[0].orderNo |
| | | for (let k of data.mats) { |
| | | k.anfme = k.enableQty |
| | | } |
| | | that.dataList = data.mats |
| | | }) |
| | | }, |
| | |
| | | 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.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') |
| | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn','pakout')">出库</button> |
| | | <!-- <button size="mini" type="primary" @click="combConfirm('warn','pakout')">出库</button> --> |
| | | <button size="mini" type="primary" @click="combConfirm('warn','pakin')">入库</button> |
| | | </view> |
| | | <!-- 弹窗 --> |
| | |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | res.data.records |
| | | _this.dataList = res.data.records |
| | | |
| | | _this.oldDataList = [..._this.dataList] |
| | | } |
| | | } |
| | |
| | | <view>货位:{{item.locNo}}</view> |
| | | <view style="display: flex;">出库站: |
| | | <view class="dropdown" @click="toggleDropdown(item)"> |
| | | <input type="text" style="width: 270rpx;" v-model="item.agvStaNo"> |
| | | <input type="text" style="width: 270rpx;" v-model="item.agvStaNo" placeholder="请选择出库站"> |
| | | <uni-icons :type="item.isOpen ? 'top' : 'bottom'" color="#c1c1c1" style="margin-left: 10rpx;"></uni-icons> |
| | | <scroll-view scroll-y="ture" class="dropdown-content" v-if="item.isOpen"> |
| | | <view class="dropdown-item" v-for="option in selects" @click="selected(option,item)">{{option.value}}</view> |
| | | <view class="dropdown-item" v-for="option in item.agvStaNos" @click="selected(option,item)">{{option}}</view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | |
| | | matFocus: true, |
| | | matnr: '', |
| | | checck: true, |
| | | dataList: [{}], |
| | | dataList: [], |
| | | oldDataList: [], |
| | | newDataList: [], |
| | | allCheck: false, |
| | |
| | | item.isOpen = !item.isOpen; |
| | | }, |
| | | selected(option,item) { |
| | | item.agvStaNo = option.value |
| | | item.agvStaNo = option |
| | | }, |
| | | // 订单明细 |
| | | getPakoutList(ids) { |
| | |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '出库成功', icon: "success", position: 'top'}) |
| | | setTimeout(()=> { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | },700) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 稍后处理 |
| | | reset() { |
| | | setTimeout(()=> { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | },700) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | z-index: 10; |
| | | } |
| | | .dropdown-item { |
| | | margin: 12rpx; |
| | | padding: 12rpx; |
| | | line-height: 1.2; |
| | | font-size: 12rpx; |
| | | line-height: 1; |
| | | font-size: 32rpx; |
| | | color: #3a3a3a; |
| | | } |