|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="label-repair">
|
|
|
<!-- 操作工具栏 -->
|
|
|
- <el-form ref="form" :model="form" size="small" label-width="98px">
|
|
|
+ <el-form ref="form" :model="form" size="small" label-width="98px" v-if="false">
|
|
|
<el-row>
|
|
|
<el-col :span="7">
|
|
|
<el-form-item label="打印模板" prop="BtReportId">
|
|
|
@@ -116,7 +116,6 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- v-hasPermi="['wms:incoming-receipt:labelPrintData']"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-printer"
|
|
|
@@ -200,6 +199,8 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getTemplateList();
|
|
|
+ // 打印单据reportId
|
|
|
+ this.reportId = this.$route.meta.reportId;
|
|
|
},
|
|
|
mounted() {
|
|
|
this.tokens = localStorage.getItem(AccessTokenKey);
|
|
|
@@ -229,8 +230,6 @@ export default {
|
|
|
/** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- // 打印单据reportId
|
|
|
- this.reportId = this.$route.meta.reportId[0];
|
|
|
// 执行查询
|
|
|
getIncomingLabelPrintDetail(this.queryParams)
|
|
|
.then((response) => {
|
|
|
@@ -279,8 +278,7 @@ export default {
|
|
|
// 标签补打
|
|
|
async handleRepairPrint(row) {
|
|
|
if (
|
|
|
- process.env.VUE_APP_TITLE === "麦禾田WMS管理系统" ||
|
|
|
- process.env.VUE_APP_TITLE === "WMS开发环境"
|
|
|
+ process.env.VUE_APP_TITLE === "麦禾田WMS管理系统"
|
|
|
) {
|
|
|
if (!this.form.BtReportUrl || !this.form.BtReportName) {
|
|
|
return this.$modal.msgError("请选择需要打印的模板");
|
|
|
@@ -306,7 +304,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
const { qrCode } = row;
|
|
|
- const src = `${this.baseUrl}/jmreport/view/${this.reportId}?token=${this.tokens}&qrCode=${qrCode}`;
|
|
|
+ const src = `${this.baseUrl}/jmreport/view/${this.reportId}?token=${this.tokens}&materialLots=${qrCode}`;
|
|
|
this.$refs.issuePrint.dialogVisible = true;
|
|
|
this.$refs.issuePrint.title = "单据打印";
|
|
|
this.$refs.issuePrint.src = src;
|