update 打印可能的空白(不能确定是不是纸张大小超出还是空数据的问题,已经提交了
已修改1个文件
23 ■■■■ 文件已修改
sub_pages/supplier/print/print-list.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sub_pages/supplier/print/print-list.vue
@@ -69,7 +69,8 @@
        </view>
        <view class="print-container m-t-12">
            <button class="btn" type="primary" @click="startSearch" :loading="isScanning"> 开始搜索 </button>
            <button class="btn" type="primary" @click="startSearch" :loading="isScanning">
                开始搜索({{buffs&&buffs.length || 0}}个) </button>
            <button class="btn m-t-12" type="default" @click="breakPrint=true"> 中断打印 </button>
            <view v-for="(device,index) of list" :key="device.deviceId" @click="bindViewTap(device)">
                <view class="item">
@@ -168,8 +169,12 @@
                //获取详情接口
                var ids = []
                for (var item of this.items) {
                    if (item.id)
                    ids.push(item.id)
                }
                if (ids.length > 0) {
                this.$message.showLoading()
                // const {
                //     code,
@@ -190,13 +195,21 @@
                    }
                })
                this.$message.hideLoading()
                if (code == 0 && data) {
                    if (code == 0 && data && data.length > 0) {
                    // this.item = {
                    //     ...this.item,
                    //     ...data
                    // }
                    this.items = data || []
                        var tarr = []
                        for (var t of data) {
                            if (t) {
                                tarr.push(t)
                            }
                        }
                        if (tarr.length > 0)
                            this.items = tarr || []
                    console.log('items len:', this.items.length)
                    }
                }
            } else {
                this.$message.showToast('获取详情失败')
@@ -570,7 +583,7 @@
                        }
                        command.setText(30, 40, "TSS24.BF2", 1, 1, "" + (each.supplierName || '-'))
                        command.setText(200, 40, "TSS24.BF2", 1, 1, "" + (each.warehouseName || '待分配'))
                        var flowerCategory = each.flowerCategory
                        var flowerCategory = each.flowerCategory || ''
                        if (flowerCategory) {
                            //只取二级分类
                            var tarr = flowerCategory.split("/")
@@ -765,7 +778,7 @@
                                    that.prepareSend(that.buffs[that.currentPrint - 1])
                                }, 500)
                                }, 800)
                            }