skyouc
2025-11-05 7afa627789e11881366fd5145d9248d1992dcd3b
pages/outbound/wavePickItem.vue
@@ -11,11 +11,7 @@
            <text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearCode"></text>
            <text class='cuIcon-search text-blue' @click="search"></text>
         </view>
      </form>
      <view class="cu-list det menu sm-border  padding">
         <block  v-for="(item, index) in list">
            <view  class="cu-list det menu  ">
@@ -56,7 +52,7 @@
               </view>
               <view class="cu-item">                  
                  <view class="content">
                     <text class="text-gray">订单号:<text class="text-black ">{{item2.asnCode}}</text></text>
                     <text class="text-gray">订单号:<text class="text-black ">{{item2.orderCode}}</text></text>
                  </view>                  
               </view>
               <view class="cu-item">
@@ -69,6 +65,21 @@
                     <text class="text-gray">已拣数量:<text class="text-black ">{{item2.qty}}</text></text>
                  </view>
               </view>
               <view class="cu-item">
                  <view class="content">
                     <view class="cu-form-group padding-lr-0">
                        <view class="title text-blue"><text
                              class="text-red text-xl vertical-middle">*</text>票号: </view>
                        <input type="input" v-model="item2.fieldsIndex" class="text-black">
                     </view>
                  </view>
               </view>
<!--                <view class="cu-item grid  col-2" v-if="item2.extendFields">
                  <view class="item" v-for="el in dynamicFields" :key="el.id">
                     <text class="text-black">{{el.fieldsAlise}}:
                        <text class="text-grey ">{{item.extendFields[el.fields]}}</text></text>
                  </view>
               </view> -->
               <view class="cu-item" v-show="item2.anfme !== item2.qty">
                  <view class="content">
                     <view class="cu-form-group padding-lr-0">
@@ -85,20 +96,12 @@
                  <text class="text-gray">本次拣货数量:<text class="text-black ">{{item.wkOrderItems.reduce((total, item) => total + (Number(item.demandQty) ||0 ) , 0)}}</text></text>
               </view>                  
            </view>
         </block>
      </view>
      <view class="cu-bar btn-group foot" v-show="!isconfirm">
         <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
         <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">拣货完成</button>
      </view>
   </view>
</template>
@@ -120,18 +123,20 @@
            isconfirm: false,
            barcode:'',
            max: 99999999,
            repeatClick:false
            repeatClick:false,
         }
      },
      computed: {
      computed: {
         ...mapState('user', ['dynamicFields']),
         ...mapState('user', {
               dynFields: state => state.dynamicFields
         }),
         allCount() {
            return this.list.reduce((acc, row) => +row.receiptQty + acc, 0)
            return this.list.reduce((acc, row) => + row.receiptQty + acc, 0)
         },
      },
      mounted() {
         console.log(dynamicFields);
      },
      onLoad() {
         let that = this
@@ -192,7 +197,6 @@
         
         },
         async complete() {
            let that = this
            if(that.barcode === '' || that.barcode === null){
               uni.showToast({