huangxiaoqiang
2025-10-27 387731cab892804912e68cb91e6fb804411c4756
ÏîÄ¿´úÂë/PDA/pages/Allocate/AllocateOutorderboxing.vue
@@ -4,36 +4,40 @@
      </uni-segmented-control> -->
      <view class="content">
         <!-- <view v-if="current === 0" 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="50">
                  <uni-forms-item label="出库区域"><uni-data-select v-model="value"
                        :localdata="range"></uni-data-select></uni-forms-item>
               </uni-forms>
               <uni-list :border="true">
                  <uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="item.dtlId">
                     <template v-slot:body>
                        <view class="uni-list-box">
                           <button type="primary" style="position: absolute;right: 1%;" size="mini"
                              @click="OutBound(item.id)">出库</button>
                           <view class="uni-content">
                              <view style="font-size: 18px;">单据编号:{{orderNo}}</view>
                              <view style="font-size: 18px;">物料编码:{{item.materielCode}}</view>
                              <view style="font-size: 18px;">物料名称:{{item.materielName}}</view>
                              <view style="font-size: 18px;">单据数量:{{item.orderQuantity}}</view>
                              <!-- <view style="font-size: 18px;">已分配数量:{{item.processQty}}</view> -->
                              <view style="font-size: 18px;">出库数量:{{item.overOutQuantity}}</view>
                           </view>
         <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="50">
               <uni-forms-item label="出库区域"><uni-data-select v-model="value"
                     :localdata="range"></uni-data-select></uni-forms-item>
               <uni-forms-item label="调拨仓库">
                  <uni-easyinput type="text" :focus="!istrue" v-model="Warehouse" placeholder="请输入调拨仓库"
                     ref='midInput' />
               </uni-forms-item>
            </uni-forms>
            <uni-list :border="true">
               <uni-list-item direction="column" v-for="(item,index) in orderInfo" :key="item.dtlId">
                  <template v-slot:body>
                     <view class="uni-list-box">
                        <button type="primary" style="position: absolute;right: 1%;" size="mini"
                           @click="OutBound(item.id)">出库</button>
                        <view class="uni-content">
                           <view style="font-size: 18px;">单据编号:{{orderNo}}</view>
                           <view style="font-size: 18px;">物料编码:{{item.materielCode}}</view>
                           <view style="font-size: 18px;">物料名称:{{item.materielName}}</view>
                           <view style="font-size: 18px;">单据数量:{{item.orderQuantity}}</view>
                           <!-- <view style="font-size: 18px;">已分配数量:{{item.processQty}}</view> -->
                           <view style="font-size: 18px;">出库数量:{{item.overOutQuantity}}</view>
                        </view>
                     </template>
                  </uni-list-item>
               </uni-list>
            </view>
            <u-toast ref="uToast" />
                     </view>
                  </template>
               </uni-list-item>
            </uni-list>
         </view>
         <u-toast ref="uToast" />
         <!-- </view> -->
      </view>
   </view>
@@ -56,7 +60,8 @@
            orderIds: [],
            orderInfo: [],
            searchValue: "",
            value:"2",
            value: "2",
            Warehouse:"",
            label: "",
            range: [],
            orderDetail: {},
@@ -108,11 +113,12 @@
            }
         },
         OutBound(id) {
            this.orderIds=[];
            this.orderIds = [];
            this.orderIds.push(id);
            var postData = {
               AreaId: this.value,
               orderIds: this.orderIds
               orderIds: this.orderIds,
               Warehouse:this.Warehouse,
            };
            console.log(postData);
            this.$u.post('/api/AllocateOutboundOrder/GenerateAllocateOutboundTask', postData).then(res => {