#
zjj
5 天以前 2b6a1213371e631457ace87bb0678b183b09206e
#
1个文件已修改
37 ■■■■ 已修改文件
pages/outbound/wavePickItem.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/wavePickItem.vue
@@ -75,15 +75,15 @@
                            <view class="cu-form-group padding-lr-0">
                                <view class="title text-blue"><text
                                        class="text-red text-xl vertical-middle">*</text>拣:</view>
                                <uni-number-box style="width: 70%;" :max="max" v-model="item2.receiptQty"
                                    :step='1'></uni-number-box>
                                <uni-number-box style="width: 70%;" :max="max" v-model="item2.demandQty"
                                    :step='1' ></uni-number-box>
                            </view>
                        </view>
                    </view>
                </view>
                <view class="cu-item">
                    <view class="content">
                        <text class="text-gray">本次拣货数量:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.receiptQty) ||0 ) , 0)}}</text></text>
                        <text class="text-gray">本次拣货数量:<text class="text-black ">{{item.asnOrderItems.reduce((total, item) => total + (Number(item.demandQty) ||0 ) , 0)}}</text></text>
                    </view>                        
                </view>
                
@@ -95,7 +95,7 @@
        <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" @click="next">下一步</button>
            <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">拣货完成</button>
        </view>
        
@@ -121,6 +121,7 @@
                isconfirm: false,
                barcode:'80003642',
                max: 99999999,
                repeatClick:false
                
            }
        },
@@ -144,9 +145,12 @@
            this.search()
        },
        methods: {
            clearCode() {
            clear() {
                this.barcode = ''
                this.list = []
            },
            clearCode() {
                this.barcode = ''
            },
            async search() {
                this.list = []
@@ -188,6 +192,27 @@
            
            
            },
            async complete() {
                let that = this
                this.repeatClick = true
                const {
                    code,
                    data,
                    msg
                } = await request('/saveWavePick',that.list)
                if (code === 200) {
                    uni.showToast({
                        title: msg,
                        icon: "none",
                    })
                } else {
                    uni.showToast({
                        title: msg,
                        icon: "none",
                    })
                }
                this.repeatClick = false
            },
        }
    }
</script>