skyouc
2025-11-05 7afa627789e11881366fd5145d9248d1992dcd3b
波次拣货修改
2个文件已修改
63 ■■■■■ 已修改文件
manifest.json 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/wavePickItem.vue 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -1,6 +1,6 @@
{
    "name" : "中扬wms",
    "appid" : "__UNI__DA5854D",
    "appid" : "__UNI__AE0F207",
    "description" : "",
    "versionName" : "20250613",
    "versionCode" : 100,
@@ -84,22 +84,7 @@
                }
            }
        },
        "nativePlugins" : {
            "Hanyin-Plugin" : {
                "__plugin_info__" : {
                    "name" : "蓝牙连接汉印便携式打印机",
                    "description" : "app蓝牙连接汉印便携式打印机面单打印-----测试型号: HM-A300",
                    "platforms" : "Android",
                    "url" : "https://ext.dcloud.net.cn/plugin?id=2731",
                    "android_package_name" : "uni.UNIDA5854D",
                    "ios_bundle_id" : "",
                    "isCloud" : true,
                    "bought" : 1,
                    "pid" : "2731",
                    "parameters" : {}
                }
            }
        }
        "nativePlugins" : {}
    },
    /* 快应用特有相关 */
    "quickapp" : {},
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({