流转卡打印

This commit is contained in:
yinjinlu-pc\尹金路 2024-11-25 11:25:05 +08:00
parent 76f8a8c734
commit 9f604366cb
2 changed files with 13 additions and 3 deletions

View File

@ -553,7 +553,7 @@ export default {
getWorkstation(workstationId).then(response => {
this.form = response.data;
this.open = true;
this.title = "查看车间信息";
this.title = "查看工作站信息";
this.optType = "view";
this.getBarcodeUrl();
});

View File

@ -195,6 +195,7 @@
<script>
import { listProcard, getProcard, delProcard, addProcard, updateProcard } from "@/api/mes/pro/procard";
import { printBarcodeLabel } from "@/api/print/print";
import BarcodeImg from "@/components/barcodeImg/index.vue"
import Procardprocess from "./process.vue"
import WorkorderSelect from "@/components/workorderSelect/single.vue"
@ -303,8 +304,17 @@ export default {
},
//
handlePrint(row){
var reportName = "pro_card";
window.open(`${this.website.reportUrl}/preview?_u=mysql:`+reportName+`&&cardId=`+row.cardId);
//
const key = 'defaultPrinter';
const printer = localStorage.getItem(key);
if(value !=null){
const param = { bussinessId: this.form.cardId , bussinessCode: this.form.cardCode, printerCode: printer.printerCode };
printBarcodeLabel(param);
}else{
this.$modal.msgError("请在打印管理-打印机配置功能中指定默认打印机!");
}
//var reportName = "pro_card";
//window.open(`${this.website.reportUrl}/preview?_u=mysql:`+reportName+`&&cardId=`+row.cardId);
},
/** 提交按钮 */
submitForm() {