| | |
| | | <!-- 弹窗组件 --> |
| | | <BillListPopupVue ref="billList" :HBillType="HBillType" :HSourceBillType="hform.HMainSourceBillType || 3710" |
| | | :HStockOrgID="hform.HStockOrgID"></BillListPopupVue> |
| | | |
| | | |
| | | </view> |
| | | </template> |
| | | <script> |
| | |
| | | this.HBarCode_Pack = '' |
| | | this.HBarCodePackFocus = false |
| | | await this.$nextTick() |
| | | this.HBarCodePackFocus = true |
| | | setTimeout(() => { |
| | | this.HBarCodePackFocus = true |
| | | }, 60) |
| | | }, |
| | | |
| | | // 扫描箱条码 |
| | |
| | | this.HMaterNumber_Pack = data[0].HMaterNumber |
| | | this.hform.HMaterName = data[0].HMaterName |
| | | // 设置总数,当前扫描数量通过DisBillEntryList更新 |
| | | const totalQty = data[0].HBarcodeQtys || 0 |
| | | const totalQty = data[0].HQty || 0 |
| | | this.hform.HQtySum = `0/${totalQty}` |
| | | //处理成功后聚焦到产品码输入框 |
| | | this.HBarCodeFocusRefresh() |
| | |
| | | }) => { |
| | | if (confirm) { |
| | | uni.redirectTo({ |
| | | url: "/pages/zhuangxiangdan/form" |
| | | url: `/pages/zhuangxiangdan/form?HSourceBillNo=${encodeURIComponent(this.hform.HSourceBillNo)}` |
| | | }) |
| | | } |
| | | if (cancel) { |
| | |
| | | }, |
| | | |
| | | onLoad(e) { |
| | | console.log('onLoad params:', e) |
| | | // 初始化参数 |
| | | this.BarCodeType = e.BarCodeType || 1 |
| | | this.OperationType = e.OperationType || 1 |
| | |
| | | this.getMaxNo() // 新增模式:获取新单据号 |
| | | // 初始化时聚焦到源单单号 |
| | | this.HSourcebillNoFocus = true |
| | | if (this.hform.HSourceBillNo != "" && this.hform.HSourceBillNo != undefined) { |
| | | this.getSourceBarCodeData(this.hform.HSourceBillNo) |
| | | } |
| | | } else if (this.OperationType == 2) { |
| | | this.disableBarCodePack = false |
| | | this.disableBarCode = false |