wtt
2025-11-20 de32eaefeb995ce67a638ca82bc6760075af2eb5
pages/zhuangxiangdan/form.vue
@@ -145,7 +145,7 @@
      <!-- 弹窗组件 -->
      <BillListPopupVue ref="billList" :HBillType="HBillType" :HSourceBillType="hform.HMainSourceBillType || 3710"
         :HStockOrgID="hform.HStockOrgID"></BillListPopupVue>
   </view>
</template>
<script>
@@ -303,7 +303,9 @@
            this.HBarCode_Pack = ''
            this.HBarCodePackFocus = false
            await this.$nextTick()
            this.HBarCodePackFocus = true
            setTimeout(() => {
               this.HBarCodePackFocus = true
            }, 60)
         },
         // 扫描箱条码
@@ -340,7 +342,7 @@
                     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()
@@ -810,7 +812,7 @@
                        }) => {
                           if (confirm) {
                              uni.redirectTo({
                                 url: "/pages/zhuangxiangdan/form"
                                 url: `/pages/zhuangxiangdan/form?HSourceBillNo=${encodeURIComponent(this.hform.HSourceBillNo)}`
                              })
                           }
                           if (cancel) {
@@ -874,6 +876,7 @@
      },
      onLoad(e) {
         console.log('onLoad params:', e)
         // 初始化参数
         this.BarCodeType = e.BarCodeType || 1
         this.OperationType = e.OperationType || 1
@@ -885,6 +888,9 @@
            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