1
chenhaozhe
2025-10-30 8bb9d2275014efe8796b7e68798507983537f0f5
1
1个文件已修改
21 ■■■■ 已修改文件
pages/shouliaotongzhi/table.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shouliaotongzhi/table.vue
@@ -323,10 +323,11 @@
                            CampanyName: CampanyName
                        },
                        success: (res) => {
                            if (res.data.count == 1) {
                                resolve(printInfoClone)
                            } else {
                                reject()
                                reject(res.data.Message)
                            }
                        },
                        fail: (res) => {
@@ -450,10 +451,10 @@
            },
            async execMultiPrint() {
                this.printButtonDisabled = true
                if (this.$printer.isConnected() === false) {
                    this.$refs.labelPrinter.openPopup()
                    return
                }
                // if (this.$printer.isConnected() === false) {
                //     this.$refs.labelPrinter.openPopup()
                //     return
                // }
                if (this.printableWaitCache.length == 0) {
                    return uni.showToast({
                        icon: 'none',
@@ -485,10 +486,10 @@
                    printInfoBuffer = []
                    await this.$nextTick(() => {
                        this.$refs.labelPrinter.execPrint()
                        this.printableWaitCache = []
                    })
                    // await this.$nextTick(() => {
                    //     this.$refs.labelPrinter.execPrint()
                    //     this.printableWaitCache = []
                    // })
                    
                    this.printButtonDisabled = false
@@ -497,7 +498,7 @@
                    this.printInfo = "" // 清空打印缓存 
                    uni.showModal({
                        title: '温馨提示',
                        content: `物料名: ${printerOne['物料名称']} 款号: ${printerOne['款号']} 出现错误,已退出打印流程`,
                        content: `物料名: ${printerOne['物料名称']} 款号: ${printerOne['款号']} ${e},已退出打印流程`,
                        showCancel: false
                    })
                }