| | |
| | | // 根据箱条码获取信息 |
| | | 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, |
| | |
| | | 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) |