From 281bba56ec02dca2c5c56bc72edd0d6e66fbde0a Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 22 十一月 2023 19:51:19 +0800 Subject: [PATCH] 调拨新增出入库打印 --- src/views/overview/AddOverviewDialog.vue | 21 +++++++++++++++++++-- src/views/productManage/product/index.vue | 8 +++++++- src/components/makepager/StatusCommonView.vue | 2 +- src/api/overview/overview.js | 8 ++++++++ 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js index 65e2ceb..2d4edd5 100644 --- a/src/api/overview/overview.js +++ b/src/api/overview/overview.js @@ -114,4 +114,12 @@ method: "get", params: data }) +} +// 鎵撳嵃 +export function printReceipts(id) { + return request({ + url: `/api-wms/v1/operation/outputOperation/${id}`, + method: "put", + id + }) } \ No newline at end of file diff --git a/src/components/makepager/StatusCommonView.vue b/src/components/makepager/StatusCommonView.vue index d47fb2f..358bf7c 100644 --- a/src/components/makepager/StatusCommonView.vue +++ b/src/components/makepager/StatusCommonView.vue @@ -4,7 +4,7 @@ <el-button v-if="isValidateClick" plain size="mini" @click="validateClick" :disabled="isCancel">楠岃瘉</el-button> <el-button v-if="showOther" plain size="mini" @click="delClick" :disabled="isDelClick">鍒犻櫎</el-button> <el-button v-if="showCancel" plain size="mini" @click="btnCancel">鍙栨秷</el-button> - <el-button v-if="showOther" plain size="mini" disabled>鎵撳嵃</el-button> + <!-- <el-button v-if="showOther" plain size="mini" disabled>鎵撳嵃</el-button> --> </div> <div class="arrowsBox"> <div diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index c12633b..6148022 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -10,7 +10,7 @@ <div slot="title" class="dialog-header"> <span>{{ editCommonConfig.title === "鏌ョ湅" ? editCommonConfig.title : editCommonConfig.title + addName }}</span> <div class="header_btns"> - <span class="btn"> + <span class="btn" @click="btnPrint"> <i class="el-icon-printer"></i> <span>鎵撳嵃</span> </span> @@ -315,7 +315,8 @@ stateCancel, deleteOperation, getListTransfer, - getLogisticCompanyList + getLogisticCompanyList, + printReceipts } from "@/api/overview/overview" import { getCompanyList } from "@/api/common/other" export default { @@ -807,6 +808,19 @@ }) }).catch(() => { }); + }, + //鎵撳嵃 + async btnPrint(){ + await printReceipts(this.editCommonConfig.infomation.id).then((res) => { + console.log(res) + if (res.code === 200) { + this.$message.success("鎵撳嵃鎴愬姛") + const link = document.createElement('a'); + link.href = res.data; + link.download = '鍑哄簱鍗�.xlsx'; + link.click(); + } + }) } } } @@ -823,6 +837,9 @@ margin-left: auto; margin-right: 60px; .btn { + cursor: pointer; + } + .btn:nth-of-type(2){ cursor: no-drop; } } diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue index c270838..c701e34 100644 --- a/src/views/productManage/product/index.vue +++ b/src/views/productManage/product/index.vue @@ -102,7 +102,7 @@ data() { return { tableList: {}, - showcol: ["鍐呴儴缂栫爜", "璐熻矗浜�", "浜у搧鏍囩", "閿�鍞环鏍�", "鎴愭湰", "鍦ㄥ簱鏁伴噺", "棰勬祴鏁伴噺", "璁¢噺鍗曚綅"], + showcol: ["鍐呴儴缂栫爜",'浜у搧瑙勬牸', "璐熻矗浜�", "浜у搧鏍囩", "鎴愭湰", "鍦ㄥ簱鏁伴噺", "棰勬祴鏁伴噺", "璁¢噺鍗曚綅"], searchOptions: [], commonDetail: { visible: false, @@ -166,6 +166,12 @@ default: true }, { + label: "浜у搧瑙勬牸", + prop: "spex", + isShowColumn: showcol.includes("浜у搧瑙勬牸"), + default: false + }, + { label: "鍐呴儴缂栫爜", prop: "internalReference", isShowColumn: showcol.includes("鍐呴儴缂栫爜"), -- Gitblit v1.8.0