#
whycq
2024-04-28 5a29707780e00b600afd053b62d38af5d267102b
pages/phyz/orderOut/orderOutSelect.vue
@@ -18,6 +18,7 @@
            <view>编号:{{orderDetl.matnr}}</view>
            <view>名称:{{orderDetl.maktx}}</view>
            <view>订单数量:{{orderDetl.anfme}}</view>
            <view>库存数量:{{orderDetl.stock}}</view>
            <view>已出数量:{{orderDetl.qty}}</view>
         </view>
         <view class="list-right" @click="goToLocDetl(orderDetl)">
@@ -32,7 +33,7 @@
      
      <view class="buttom">
         <view style="width: 150rpx;text-align: center;padding-left: 12rpx;">
            主单号
            名称
         </view>
         <uni-search-bar v-model="searchValue2" style="width: 100%;"
            maxlength="500" ancel="cancel" @confirm="searchValueInput2()" @clear="clear2" placeholder="输入 / 扫描 订单号">
@@ -68,12 +69,12 @@
         this.getOrderDetlList(this.searchValue1,this.searchValue2,30)
      },
      methods: {
         getOrderDetlList(threeCode,orderNo,limit) {
            console.log(orderNo);
         getOrderDetlList(threeCode,maktx,limit) {
            uni.showLoading({})
            let _this = this
            _this.mask = true
            _this.data.three_code = threeCode
            _this.data.order_no = orderNo
            _this.data.maktx = maktx
            _this.data.limit = limit
            uni.request({
               url: `${_this.baseUrl}/orderDetl/pakout/list/authV3`,
@@ -81,6 +82,7 @@
               data: _this.data,
               method: 'GET',
               success(res) {
                  uni.hideLoading({})
                  res = res.data
                  if (res.code === 200) {
                     for (let k of res.data.records) {
@@ -97,7 +99,7 @@
                     _this.mask = false
                  } else if (res.code == 403) {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                     setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000);
                     setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
                  } else {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                  }
@@ -122,15 +124,12 @@
            } else {
               this.getOrderDetlList(this.searchValue1,this.searchValue2,1000)
            }
         },
         clear() {
            this.searchValue2 = ''
            this.getOrderDetlList('',this.searchValue1,999999)
         },
         clear2() {
            console.log(222);
            setTimeout(()=> {
               this.searchValue2 = ''
               this.getOrderDetlList(this.searchValue1,'',999999)