wankeda
2025-02-28 c7082f9c389230a989b1fa63862f6aa6e720990c
´úÂë¹ÜÀí/»´°²PDA/pages/stash/receiveorderoutbound.vue
@@ -8,7 +8,7 @@
               <uni-forms-item :label="label" style="margin-top: -20px;"></uni-forms-item>
               <!-- <uni-forms-item label="单据类型:生产领料单" style="margin-top: -20px;"></uni-forms-item> -->
               <uni-forms-item label="内箱码:" style="margin-top: -20px;">
                  <uni-easyinput type="text" placeholder="请扫描内箱码" ref='midInput' :focus="focus"
                  <uni-easyinput type="text" placeholder="请扫描内箱码" ref='midInput' :focus="!focus"
                     v-model="innerCode" @input="innercodeInput" />
               </uni-forms-item>
               <uni-forms-item :label="PurchaseOrderNo" style="margin-top: -20px;"></uni-forms-item>
@@ -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,15 +43,15 @@
               </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-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>
                  </template>
               </uni-list-item>
@@ -180,6 +175,7 @@
            current: 0,
            orderNo: "",
            orderInfo: [],
            orderinfoDetails:[],
            label: "",
            innerCode: "",
            PurchaseOrderNo: "采购单号:",
@@ -196,7 +192,7 @@
            remaindQty: "实际数量:",
            tagFocus: true,
            numberFocus: false,
            focus: true,
            focus: false,
            tag: "",
            number: "",
            tagmatCode: "物料编码:",
@@ -223,6 +219,7 @@
            endTypeRange: [],
            sns: "",
            receiveOrderId: 0,
            warehouseId:""
         }
      },
@@ -238,6 +235,7 @@
         this.orderNo = res.orderNo;
         this.receiveOrderId = res.receiveOrderId;
         this.label = "收货单号:" + this.orderNo;
         this.warehouseId=res.warehouseId;
         this.getData();
      },
      mounted() {
@@ -368,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) {
@@ -469,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;
                  }
               }
@@ -484,7 +488,8 @@
               var innerCode = this.innerCode;
               setTimeout(() => {
                  this.innerCode = "";
               }, 10);
                  this.focus=false;
               }, 1);
               this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
                  if (res.status) {
@@ -498,7 +503,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"