流转卡打印
This commit is contained in:
parent
76f8a8c734
commit
9f604366cb
@ -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();
|
||||
});
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user