#
zjj
4 天以前 8ebbb1cb3b258ba1469e507af6768a2550d6b434
#
2个文件已修改
77 ■■■■ 已修改文件
pages/outbound/fastPicking.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/wavePickItem.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/fastPicking.vue
@@ -2,9 +2,10 @@
    <view class="has-foot">
        <form>
            <view class="cu-form-group" v-show="!isconfirm">
                <view class="title">容器/库位码</view>
                <input placeholder="请扫描容器/库位码" v-model="barcode" @input="search()" focus></input>
                <view class="title">容器码</view>
                <input placeholder="请扫描容器码" v-model="barcode"  focus></input>
                <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>
@@ -17,7 +18,7 @@
        <view class="cu-list det menu sm-border  padding">
            <block  v-for="(item, index) in list" :key="index">
                <view :style="clickItem === index ?itemStyle : {}" class="cu-list det menu  "  @click="clickTaskItem(index)">
                <view :style="clickItem === index ?itemStyle : {}" class="cu-list det menu  " >
                    
                
                <view class="cu-bar bg-white solid-bottom margin-top-sm">
@@ -35,12 +36,7 @@
                </view>
                <view class="cu-item">
                    <view class="content">
                        <text class="text-gray">订单:<text class="text-black ">{{item.trackCode}}</text></text>
                    </view>
                </view>
                <view class="cu-item">
                    <view class="content">
                        <text class="text-gray">出库单:<text class="text-black ">{{item.trackCode}}</text></text>
                        <text class="text-gray">出库单:<text class="text-black ">{{item.sourceCode}}</text></text>
                    </view>                    
                </view>
                <view class="cu-item">
@@ -52,21 +48,12 @@
                    <view class="content">
                        <text class="text-gray">库存单位:<text class="text-black ">{{item.unit}}</text></text>
                    </view>    
                    <view class="content">
                        <text class="text-gray">质检结论:<text class="text-black ">{{item.matnrCode}}</text></text>
                    </view>
                </view>
                <view class="cu-item">
                    <view class="content">
                        <text class="text-gray">标签:<text class="text-black ">{{item.matnrCode}}</text></text>
                    </view>
                        
                </view>
                
                <view class="cu-item">
                    <view class="content">
                        <text class="text-gray">存储数量:<text class="text-black ">{{item.matnrCode}}</text></text>
                    </view>
                    <view class="content">
                        <text class="text-gray">计划分拣数量:<text class="text-black ">{{item.anfme}}</text></text>
                    </view>                        
@@ -74,7 +61,7 @@
                <view class="cu-item">                        
                    <view class="content2">
                        <text class="text-gray">本次分拣数量:</text>
                        <input type="number" v-model="item.workQty"></input>
                        <input type="number" v-model="item.anfme" disabled=""></input>
                    </view>
                        
                </view>    
@@ -83,25 +70,16 @@
        </view>
        <view class="text-blue text-right padding-lr" v-show="isconfirm">
            本次收货总数量:{{allCount}}
        </view>
        <view class="cu-form-group " v-show="isconfirm">
            <view class="title">收货区</view>
            <uni-data-select v-model="whAreaId" :localdata="range" placement="top"
                @change="selChange"></uni-data-select>
        </view>
        <view class="cu-bar btn-group foot" v-show="!isconfirm">
        <view class="cu-bar btn-group foot" >
            <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" @click="next">提交</button>
        </view>
        <view class="cu-bar btn-group foot" v-show="isconfirm">
            <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
            <button class="cu-btn bg-blue shadow-blur" @click="confirm">提交收货</button>
        </view>
    </view>
</template>
pages/outbound/wavePickItem.vue
@@ -17,7 +17,7 @@
                
        <view class="cu-list det menu sm-border  padding">
            <block  v-for="(item, index) in list" :key="index">
            <block  v-for="(item, index) in list">
                <view  class="cu-list det menu  ">
                    
                
@@ -70,7 +70,7 @@
                            <text class="text-gray">已拣数量:<text class="text-black ">{{item2.qty}}</text></text>
                        </view>
                    </view>
                    <view class="cu-item">
                    <view class="cu-item" v-show="item2.anfme !== item2.qty">
                        <view class="content">
                            <view class="cu-form-group padding-lr-0">
                                <view class="title text-blue"><text
@@ -119,7 +119,7 @@
                wave:'',
                list: [],                
                isconfirm: false,
                barcode:'80003642',
                barcode:'',
                max: 99999999,
                repeatClick:false
                
@@ -142,7 +142,7 @@
                that.wave = data.data
                
            })
            this.search()
        },
        methods: {
            clear() {
@@ -193,18 +193,37 @@
            
            },
            async complete() {
                let that = this
                if(that.barcode === '' || that.barcode === null){
                    uni.showToast({
                        title: "容器号为空",
                        icon: "error",
                    })
                    return ;
                }
                if(that.list === [] || that.list.length === 0){
                    uni.showToast({
                        title: "拣货明细为空",
                        icon: "error",
                    })
                    return ;
                }
                this.repeatClick = true
                const {
                    code,
                    data,
                    msg
                } = await request('/saveWavePick',that.list)
                } = await request('/saveWavePick',{
                    container:that.barcode,
                    containerWaveDtos:that.list
                })
                if (code === 200) {
                    uni.showToast({
                        title: msg,
                        icon: "none",
                    })
                    that.clear()
                } else {
                    uni.showToast({
                        title: msg,