wangxinhui
2025-04-08 dcecb039035f4b2e82e31c39b74db9402444c536
´úÂë¹ÜÀí/»´°²PDA/pages/stash/receiveorder.vue
@@ -11,10 +11,21 @@
            :key="item.receiveOrderNo">
            <template v-slot:body>
               <uni-group margin-top="20">
                  <view> æ”¶è´§å•号:{{item.receiveOrderNo}} </view>
                  <!-- <view> è®¢å•类型:{{item.receiveOrderType}} </view>
                  <view> è®¢å•状态:{{item.receiveOrderStatus}} </view> -->
                  <view> ä¾›åº”商代号:{{item.suppliersId}} </view>
                  <view style="line-height: 17px;color: #596671;font-size: 14px;text-align: center;display: flex;justify-content: space-between;">
                     æ”¶è´§å•号&nbsp;&nbsp;{{item.receiveOrderNo}}
                  </view>
                  <view style="margin-top: 10rpx;line-height: 17px;color: #596671;font-size: 14px;text-align: center;display: flex;justify-content: space-between;">
                     ä¾›åº”商代号&nbsp;&nbsp;{{item.suppliersId}}
                  </view>
                  <view
                     style="margin-top: 10rpx;display: flex;align-items: center; ">
                     <view style="text-align: center;line-height: 40rpx;border-radius: 8rpx; width: 238rpx;height: 40rpx;font-size: 22rpx;background-color:rgba(22,127,247,0.18);color: #1F63FF;">
                        è®¢å•状态&nbsp;&nbsp;{{item.ReceiveOrderStatus}}
                     </view>
                     <view style="text-align: center;line-height: 40rpx;border-radius: 8rpx; width: 158rpx;height: 40rpx;font-size: 22rpx;color: #F56C6C;">
                        å·²æ”¶æ•°é‡&nbsp;&nbsp;{{item.SumQty}}
                     </view>
                  </view>
               </uni-group>
            </template>
         </uni-list-item>
@@ -27,6 +38,7 @@
</template>
<script>
   import { ReceiveOrderStatus } from '../../common/config.js'
   export default {
      data() {
         return {
@@ -37,12 +49,20 @@
            status: "more",
            allReceivingOrders: [],
            pageNo: 1,
            scrollTop: 0
            scrollTop: 0,
            isLoaded:false
         }
      },
      onLoad(res) {
         this.warehouseId = res.warehouseId;
         this.getData();
         this.isLoaded=true;
      },
      onShow() {
         if (this.isLoaded) {
            // ä»Žå…¶ä»–页面返回时刷新
            this.getData();
         }
      },
      onPageScroll(e) {
         this.scrollTop = e.scrollTop;
@@ -71,7 +91,12 @@
               if (res.status) {
                  if (res.data.length > 0) {
                     if (this.searchValue == '') {
                        this.allReceivingOrders = this.allReceivingOrders.concat(res.data);
                        this.allReceivingOrders = res.data.map(i => ({
                           ...i,
                           ReceiveOrderStatus: ReceiveOrderStatus.find(item => item.value == i
                              .receiveOrderStatus).label,
                           SumQty: i.details.map(item => item.receivedQuantity).reduce((prev, next) => prev + next, 0)
                        }))
                        // this.allReceivingOrders = res.data;
                        if (this.allReceivingOrders.length > 3) {
                           this.loadVisible = true;