1
dengjunjie
2025-01-15 68a2cc40b6d7f438267f9dc74bb2f6045cf4f01d
´úÂë¹ÜÀí/»´°²PDA/pages/stash/receiveorderoutbound.vue
@@ -31,11 +31,6 @@
      </view>
      <view v-if="current === 1" class="headerstyle">
         <view class="itemstyle">
            <u-sticky>
               <!-- <view style="background-color: #ffffff;">
                  <uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar>
               </view> -->
            </u-sticky>
            <!-- <uni-forms label-width="180">
               <uni-forms-item label="区域">
                  <uni-data-select v-if="show" v-model="value" :localdata="range"></uni-data-select>
@@ -48,18 +43,16 @@
               </uni-forms-item>
            </uni-forms> -->
            <uni-list :border="true">
               <uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="item.dtlId">
               <uni-list-item direction="column" v-for="item in orderinfoDetails" :key="item.id">
                  <template v-slot:body>
                     <view class="uni-list-box">
                        <view class="uni-content">
                           <view style="font-size: 18px;">收货单号:{{orderNo}}</view>
                           <view style="font-size: 18px;">采购单号:{{item.purchaseOrderNo}}</view>
                           <view style="font-size: 18px;">物料编号:{{item.materielCode}}</view>
                           <view style="font-size: 18px;">批次号:{{item.lotNo}}</view>
                           <view style="font-size: 18px;">收货数量:{{item.receivedQuantity}}</view>
                           <view style="font-size: 18px;">是否质检:{{item.ifInspection==1?"是":"否"}}</view>
                           <view>收货单号:{{orderNo}}</view>
                           <view>采购单号:{{item.purchaseOrderNo}}</view>
                           <view>物料编号:{{item.materielCode}}</view>
                           <view>批次号:{{item.lotNo}}</view>
                           <view>收货数量:{{item.receivedQuantity}}</view>
                           <view>是否质检:{{item.ifInspection==1?"是":"否"}}</view>
                        </view>
                     </view>
                  </template>
               </uni-list-item>
            </uni-list>
@@ -182,6 +175,7 @@
            current: 0,
            orderNo: "",
            orderInfo: [],
            orderinfoDetails:[],
            label: "",
            innerCode: "",
            PurchaseOrderNo: "采购单号:",
@@ -225,6 +219,7 @@
            endTypeRange: [],
            sns: "",
            receiveOrderId: 0,
            warehouseId:""
         }
      },
@@ -240,6 +235,7 @@
         this.orderNo = res.orderNo;
         this.receiveOrderId = res.receiveOrderId;
         this.label = "收货单号:" + this.orderNo;
         this.warehouseId=res.warehouseId;
         this.getData();
      },
      mounted() {
@@ -370,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) {
@@ -377,6 +379,7 @@
                     title: "确认收货成功",
                     type: "success"
                  })
                  this.orderInfo=[];
                  this.sns = "";
               } else {
                  this.$refs.uToast.show({
@@ -470,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;
                  }
               }
@@ -499,7 +502,7 @@
                     this.ProductionDate = "生产日期:" + res.data.productionDate;
                     this.orderQty = "订单数量:" + res.data.quantity;
                     this.Quantity = res.data.quantity;
                     if (res.message) {
                     if (!res.status) {
                        this.$refs.uToast.show({
                           title: res.message,
                           type: "error"