|  |  |  | 
|---|
|  |  |  | <view> | 
|---|
|  |  |  | <view class="detl-threeCode">{{orderDetl.threeCode}}</view> | 
|---|
|  |  |  | <view class="detl-locNo">{{orderDetl.locNo}}</view> | 
|---|
|  |  |  | <view class="detl-locNo">货架码:{{orderDetl.suppCode}}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <!-- 中 --> | 
|---|
|  |  |  | <view style="display: flex;"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <view>主单号:{{orderDetl.orderNo}}</view> | 
|---|
|  |  |  | <view>编号:{{orderDetl.matnr}}</view> | 
|---|
|  |  |  | <view>名称:{{orderDetl.maktx}}</view> | 
|---|
|  |  |  | <view>库位状态:{{orderDetl.locSts$}}</view> | 
|---|
|  |  |  | <view>库存数量:{{orderDetl.anfme}}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="out-btn" @click="pakoutPrive(orderDetl)"> | 
|---|
|  |  |  | 
|---|
|  |  |  | console.log(res); | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | for (let k of res.data) { | 
|---|
|  |  |  | if (k.anfme > k.qty && k.qty == 0) { | 
|---|
|  |  |  | if (k.locSts == "F") { | 
|---|
|  |  |  | k['color'] = 'order-sts-start' | 
|---|
|  |  |  | } else if (k.anfme > k.qty && k.qty != 0) { | 
|---|
|  |  |  | } else if (k.locSts != "F") { | 
|---|
|  |  |  | k['color'] = 'order-sts-working' | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | k['color'] = 'order-sts-end' | 
|---|
|  |  |  | 
|---|
|  |  |  | k['id'] = id | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _this.dataList = res.data | 
|---|
|  |  |  | } else if (res.code == 403) { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | pakoutPrive(item) { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | console.log(item); | 
|---|
|  |  |  | if (item.locSts != 'F') { | 
|---|
|  |  |  | uni.showToast({ title: '当前库位不是在库状态!', icon: "error", position: 'top' }) | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: "./orderCheck", | 
|---|
|  |  |  | success: function(res) { | 
|---|
|  |  |  | 
|---|
|  |  |  | console.log(res); | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } else if (res.code == 403) { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|