From d07ff31f76247bf9defb4cd914255aa47950fdac Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 24 Oct 2024 17:18:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/fmlog_detail.vue | 52 +++++++++++++++++++++---------- src/views/wpm_gx/mlog_detail.vue | 20 ++++++++++++ 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue index 6252bce0..89be414a 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -6,23 +6,23 @@ destroy-on-close @closed="$emit('closed')" > - - - - - {{ - fmlogItem.routepack_name - }} - {{ - fmlogItem.mtask_number - }} - {{ - fmlogItem.belong_dept_name - }} - - - - + + + + 打印 + + {{ + fmlogItem.routepack_name + }} + {{ + fmlogItem.mtask_number + }} + {{ + fmlogItem.belong_dept_name + }} + + + + + + diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index 2b9ea28e..650e9599 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -8,6 +8,7 @@ >
+ 打印 {{ mlogItem.routepack_name @@ -385,6 +386,9 @@ > + + +
@@ -392,6 +396,7 @@ import editDialog from "./mlog_form.vue"; import saveDialog from "./mlogb_form.vue"; import checkDialog from "./mlogb_check.vue"; +import print from "./../setting/print/A4.vue"; export default { props: { mlogId: { @@ -403,6 +408,7 @@ export default { editDialog, saveDialog, checkDialog, + print }, emits: ["success", "closed"], data() { @@ -454,8 +460,11 @@ export default { visible: false, isSaveing: false, options: [], + tableData:[], + tableData2:[], saveInDialog: false, ticketDialog:false, + printVisible:false, setFiltersVisible: false, rules: { count_use: [ @@ -469,11 +478,18 @@ export default { }; }, mounted() { + let that = this; this.getMlogItem(); this.paramsIn.mlog = this.mlogId; this.paramsOut.mlog = this.mlogId; this.apiObj = this.$API.wpm.mlogb.list; this.getInit(); + that.$API.wpm.mlogb.list.req(that.paramsIn).then((res) => { + that.tableData = res; + }) + that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => { + that.tableData2 = res; + }) }, methods: { open() { @@ -638,6 +654,10 @@ export default { this.selectionFilters = filters; this.setFiltersVisible = true; }, + handlePrint(){ + let that = this; + that.printVisible = true; + }, }, };