| | |
| | | method: "get", |
| | | params: data |
| | | }) |
| | | } |
| | | // 打印 |
| | | export function printReceipts(id) { |
| | | return request({ |
| | | url: `/api-wms/v1/operation/outputOperation/${id}`, |
| | | method: "put", |
| | | id |
| | | }) |
| | | } |
| | |
| | | <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 |
| | |
| | | <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> |
| | |
| | | stateCancel, |
| | | deleteOperation, |
| | | getListTransfer, |
| | | getLogisticCompanyList |
| | | getLogisticCompanyList, |
| | | printReceipts |
| | | } from "@/api/overview/overview" |
| | | import { getCompanyList } from "@/api/common/other" |
| | | export default { |
| | |
| | | }) |
| | | }).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(); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | margin-left: auto; |
| | | margin-right: 60px; |
| | | .btn { |
| | | cursor: pointer; |
| | | } |
| | | .btn:nth-of-type(2){ |
| | | cursor: no-drop; |
| | | } |
| | | } |
| | |
| | | data() { |
| | | return { |
| | | tableList: {}, |
| | | showcol: ["内部编码", "负责人", "产品标签", "销售价格", "成本", "在库数量", "预测数量", "计量单位"], |
| | | showcol: ["内部编码",'产品规格', "负责人", "产品标签", "成本", "在库数量", "预测数量", "计量单位"], |
| | | searchOptions: [], |
| | | commonDetail: { |
| | | visible: false, |
| | |
| | | default: true |
| | | }, |
| | | { |
| | | label: "产品规格", |
| | | prop: "spex", |
| | | isShowColumn: showcol.includes("产品规格"), |
| | | default: false |
| | | }, |
| | | { |
| | | label: "内部编码", |
| | | prop: "internalReference", |
| | | isShowColumn: showcol.includes("内部编码"), |