#
whycq
2024-09-04 82f3ac1948d1b9d3d0e3dcbcd9466eabc72cdcf8
pages/phyz/orderOut/orderList.vue
@@ -6,6 +6,7 @@
            <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;">
@@ -13,6 +14,7 @@
                  <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)">
@@ -78,9 +80,9 @@
                  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'
@@ -88,13 +90,21 @@
                        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) {
@@ -124,6 +134,11 @@
                  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' })
                  }
               }
            })