wtt
2025-12-25 74e9d43b5f72d89f2fd559d50005f2f0c3efe6bb
Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
1个文件已修改
58 ■■■■ 已修改文件
pages/zhuangxiangdan/form.vue 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/zhuangxiangdan/form.vue
@@ -319,7 +319,7 @@
            // 根据箱条码获取信息
            GetMeesageByBarCode_Pack(HBarCode_Pack) {
                CommonUtils.doRequest2({
                    url: '/WEBSController/Get_PackBarCode_PackUnionBill_New_Json_Cus',
                    url: '/WEBSController/GetHBarCode_CusJX',
                    data: {
                        HInterID: this.hform.HInterID || 0,
                        HBillNo: this.hform.HBillNo,
@@ -336,20 +336,48 @@
                            list
                        } = res.data
                        if (count == 1) {
                            CommonUtils.playSound(1)
                            this.hform.HBillNo = data[0].HBillNo
                            this.hform.HInterID = data[0].HInterID
                            this.HMaterNumber_Pack = data[0].HMaterNumber
                            this.hform.HMaterName = data[0].HMaterName
                            // 设置总数,当前扫描数量通过DisBillEntryList更新
                            const totalQty = data[0].HQty || 0
                            this.hform.HQtySum = `0/${totalQty}`
                            //处理成功后聚焦到产品码输入框
                            this.HBarCodeFocusRefresh()
                            this.DisBillEntryList();
                            uni.showToast({
                                icon: 'none',
                                title: Message
                            CommonUtils.doRequest2({
                                url: '/WEBSController/Get_PackBarCode_PackUnionBill_New_Json_Cus',
                                data: {
                                    HInterID: this.hform.HInterID || 0,
                                    HBillNo: this.hform.HBillNo,
                                    HBillType: this.HBillType,
                                    HBillSubType: this.HBillSubType,
                                    HBarCode_Pack: HBarCode_Pack,
                                    HSourceBillNo: this.hform.HSourceBillNo,
                                },
                                resFunction: (res) => {
                                    let {
                                        data,
                                        count,
                                        Message,
                                        list
                                    } = res.data
                                    if (count == 1) {
                                        CommonUtils.playSound(1)
                                        this.hform.HBillNo = data[0].HBillNo
                                        this.hform.HInterID = data[0].HInterID
                                        this.HMaterNumber_Pack = data[0].HMaterNumber
                                        this.hform.HMaterName = data[0].HMaterName
                                        // 设置总数,当前扫描数量通过DisBillEntryList更新
                                        const totalQty = data[0].HQty || 0
                                        this.hform.HQtySum = `0/${totalQty}`
                                        //处理成功后聚焦到产品码输入框
                                        this.HBarCodeFocusRefresh()
                                        this.DisBillEntryList();
                                        uni.showToast({
                                            icon: 'none',
                                            title: Message
                                        })
                                    } else {
                                        CommonUtils.playSound(0)
                                        this.HBarCodePackFocusRefresh()
                                        uni.showToast({
                                            icon: 'none',
                                            title: Message
                                        })
                                    }
                                }
                            })
                        } else {
                            CommonUtils.playSound(0)