|  |  | 
 |  |  |             <view>订单数量:{{orderDetl.anfme}}</view> | 
 |  |  |             <view>库存数量:{{orderDetl.stock}}</view> | 
 |  |  |             <view>已出数量:{{orderDetl.qty}}</view> | 
 |  |  |             <view v-if="orderDetl.workNum">正在作业数量:{{orderDetl.workNum}}</view> | 
 |  |  |          </view> | 
 |  |  |          <view class="list-right" @click="goToLocDetl(orderDetl)"> | 
 |  |  |             <uni-icons type="right" size="25"  color="#fff"></uni-icons> | 
 |  |  | 
 |  |  |                order_no: '', | 
 |  |  |                brand: '' | 
 |  |  |             }, | 
 |  |  |             wrkingData: [] | 
 |  |  |          } | 
 |  |  |       }, | 
 |  |  |       onReachBottom() { | 
 |  |  | 
 |  |  |       onShow() { | 
 |  |  |          this.baseUrl = uni.getStorageSync('baseUrl'); | 
 |  |  |          this.token = uni.getStorageSync('token'); | 
 |  |  |          this.searchValue1 = uni.getStorageSync('threeCodeOut1'); | 
 |  |  |          this.searchValue1 = uni.getStorageSync('threeCodeOut193'); | 
 |  |  |          this.searchValue2 = uni.getStorageSync('threeCodeOut2'); | 
 |  |  |          this.getOrderDetlList(this.searchValue1,10) | 
 |  |  |       }, | 
 |  |  |       methods: { | 
 |  |  |          getOrderDetlList(threeCode,limit) { | 
 |  |  |             this.wrkingData = [] | 
 |  |  |             this.get() | 
 |  |  |             uni.showLoading({}) | 
 |  |  |             let _this = this | 
 |  |  |             _this.mask = true | 
 |  |  | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                      let list = res.data.records | 
 |  |  |                      for (let item of list) { | 
 |  |  |                         for (let k of _this.wrkingData) { | 
 |  |  |                            if (k.matnr == item.matnr && k.orderNo == item.orderNo && k.threeCode == item.threeCode) { | 
 |  |  |                               item['workNum'] = k.anfme | 
 |  |  |                            } | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                      _this.dataList =  _this.dataList.concat(list); | 
 |  |  |                      _this.data.curr = _this.data.curr + 1 | 
 |  |  |                      _this.total = res.data.total | 
 |  |  | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |          }, | 
 |  |  |          get() { | 
 |  |  |             let _this = this | 
 |  |  |             let data = {limit:9999,curr: 1} | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/wrkDetl/list/auth`, | 
 |  |  |                header: {'token': uni.getStorageSync('token')}, | 
 |  |  |                data: data, | 
 |  |  |                method: 'GET', | 
 |  |  |                success(res) { | 
 |  |  |                   var res = res.data | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      const result = res.data.records.reduce((acc, curr) => { | 
 |  |  |                          const key = `${curr.matnr}-${curr.orderNo}-${curr.threeCode}`; | 
 |  |  |                          if (acc[key]) { | 
 |  |  |                              acc[key].anfme += curr.anfme; | 
 |  |  |                          } else { | 
 |  |  |                              acc[key] = { ...curr }; | 
 |  |  |                          } | 
 |  |  |                          return acc; | 
 |  |  |                      }, {}); | 
 |  |  |                      const newArray = Object.values(result); | 
 |  |  |                      _this.wrkingData = newArray | 
 |  |  |                   } | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |          }, | 
 |  |  |          searchValueInput1() { | 
 |  |  |             this.dataList = [] | 
 |  |  |             this.data.curr = 1 | 
 |  |  |             uni.setStorageSync('threeCodeOut1', this.searchValue1); | 
 |  |  |             uni.setStorageSync('threeCodeOut193', this.searchValue1); | 
 |  |  |             uni.setStorageSync('threeCodeOut2', this.searchValue2); | 
 |  |  |             if (this.searchValue1.length == 0) { | 
 |  |  |                this.getOrderDetlList(this.searchValue1,10) | 
 |  |  | 
 |  |  |              | 
 |  |  |          }, | 
 |  |  |          searchValueInput2() { | 
 |  |  |             uni.setStorageSync('threeCodeOut1', this.searchValue1); | 
 |  |  |             uni.setStorageSync('threeCodeOut193', this.searchValue1); | 
 |  |  |             uni.setStorageSync('threeCodeOut2', this.searchValue2); | 
 |  |  |             if (this.searchValue1.length == 0) { | 
 |  |  |                this.getOrderDetlList(this.searchValue1,10) | 
 |  |  | 
 |  |  |             } | 
 |  |  |             let _this = this | 
 |  |  |             uni.navigateTo({ | 
 |  |  |                // url: './orderList', | 
 |  |  |                url: './orderCheck', | 
 |  |  |                success(res) { | 
 |  |  |                   res.eventChannel.emit('item', { | 
 |  |  | 
 |  |  |             this.data.curr = 1 | 
 |  |  |             this.data.maktx = this.maktx | 
 |  |  |             this.data.matnr = this.matnr | 
 |  |  |             this.data.order_no = this.order_no | 
 |  |  |             this.data.order_no = this.orderNo | 
 |  |  |             this.data.brand = this.brand | 
 |  |  |             this.getOrderDetlList(this.searchValue1,10) | 
 |  |  |             this.$refs.filter.close() |