diff --git a/klp-ui/src/views/wms/coil/do/correct.vue b/klp-ui/src/views/wms/coil/do/correct.vue index 7810a7fb..9e58a044 100644 --- a/klp-ui/src/views/wms/coil/do/correct.vue +++ b/klp-ui/src/views/wms/coil/do/correct.vue @@ -94,55 +94,6 @@ - @@ -315,6 +266,8 @@ + + @@ -612,6 +565,16 @@ export default { path: '/wms/coil/' + row.coilId, }); }, + // 打印标签 + handlePrintLabel(row) { + this.labelRender.data = { + ...row, + updateTime: row.updateTime?.split(' ')[0] || '', + }; + this.$nextTick(() => { + this.$refs.labelRender.printLabel(); + }) + }, /** 新增按钮操作 */ handleAdd() { this.reset(); diff --git a/klp-ui/src/views/wms/coil/do/correntAll.vue b/klp-ui/src/views/wms/coil/do/correntAll.vue index 6027e9e3..fbcb386e 100644 --- a/klp-ui/src/views/wms/coil/do/correntAll.vue +++ b/klp-ui/src/views/wms/coil/do/correntAll.vue @@ -61,9 +61,8 @@ size="mini" icon="el-icon-view" @click="handlePreviewLabel(scope.row)" title="预览标签">预览 打印 - - 数字钢卷 - + 数字钢卷 追溯 @@ -80,57 +79,7 @@ :loading="scope.row.cancelling" class="action-btn">强制入库 - - @@ -275,6 +224,8 @@ + + @@ -603,12 +554,6 @@ export default { } return '物品类型'; }, - // 进入数字钢卷页面 - handleNumberCoilClick(row) { - this.$router.push({ - path: '/wms/coil/' + row.coilId, - }); - }, // 分条操作列表(100-199) splitTypes() { if (!this.dict.type.action_type) return []; @@ -648,6 +593,25 @@ export default { }) }, + // 打印标签 + handlePrintLabel(row) { + this.labelRender.data = { + ...row, + updateTime: row.updateTime?.split(' ')[0] || '', + }; + this.$nextTick(() => { + this.$refs.labelRender.printLabel(); + }) + }, + + // 进入数字钢卷页面 + handleNumberCoilClick(row) { + console.log(row) + this.$router.push({ + path: '/wms/coil/' + row.coilId, + }); + }, + // 处理材料类型变化 handleMaterialTypeChange(value) { // 清空物品选择 @@ -663,6 +627,7 @@ export default { /** 预览标签 */ handlePreviewLabel(row) { + console.log(row) this.labelRender.visible = true; const type = getCoilTagPrintType(row); this.labelRender.type = type; diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index 086c9be2..7bbd1e3b 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -609,7 +609,7 @@ - +
钢卷暂存单据管理 创建暂存单据