zrg
2025-11-12 bc48cefb6c1288444f928dd5eb68c573f55c024a
优化装箱单
2个文件已修改
14 ■■■■ 已修改文件
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/zhuangxiangdan/form.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,8 +2,8 @@
    "name" : "智云LMES",
    "appid" : "__UNI__B002F49",
    "description" : "",
    "versionName" : "2.0.12",
    "versionCode" : 212,
    "versionName" : "2.0.15",
    "versionCode" : 215,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/zhuangxiangdan/form.vue
@@ -303,7 +303,9 @@
                this.HBarCode_Pack = ''
                this.HBarCodePackFocus = false
                await this.$nextTick()
                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