1
dengjunjie
2025-01-15 68a2cc40b6d7f438267f9dc74bb2f6045cf4f01d
´úÂë¹ÜÀí/»´°²PDA/pages/stash/receiveorderoutbound.vue
@@ -43,7 +43,7 @@
               </uni-forms-item>
            </uni-forms> -->
            <uni-list :border="true">
               <uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="item.id">
               <uni-list-item direction="column" v-for="item in orderinfoDetails" :key="item.id">
                  <template v-slot:body>
                        <view class="uni-content">
                           <view>收货单号:{{orderNo}}</view>
@@ -175,6 +175,7 @@
            current: 0,
            orderNo: "",
            orderInfo: [],
            orderinfoDetails:[],
            label: "",
            innerCode: "",
            PurchaseOrderNo: "采购单号:",
@@ -218,6 +219,7 @@
            endTypeRange: [],
            sns: "",
            receiveOrderId: 0,
            warehouseId:""
         }
      },
@@ -233,6 +235,7 @@
         this.orderNo = res.orderNo;
         this.receiveOrderId = res.receiveOrderId;
         this.label = "收货单号:" + this.orderNo;
         this.warehouseId=res.warehouseId;
         this.getData();
      },
      mounted() {
@@ -363,6 +366,12 @@
               })
               return;
            }
            if(this.warehouseId==2){
               //替换指定两个字符间的字符
               this.sns = this.sns.replace(/(Q:)([^,PO]+)(,PO)/, (match, p1, p2, p3) => {
                 return p1 + this.Quantity + p3;
               });
            }
            this.$u.post('/api/ReceiveOrderDetail/AddReceiveOrderDetail?serNum=' + this.sns + '&orderNo=' + this
               .orderNo, {}).then(res => {
               if (res.status) {
@@ -464,8 +473,8 @@
            }
            this.$u.post('/api/ReceiveOrderDetail/GetReceiveOrderInfos', postData).then((res) => {
               if (res.status) {
                  this.orderInfo = res.data;
                  if (this.orderInfo.length > 3) {
                  this.orderinfoDetails = res.data;
                  if (this.orderinfoDetails.length > 3) {
                     this.loadVisible = true;
                  }
               }