Browse Source

0505更新

master
ruanqi 4 years ago
parent
commit
947d6ce0cb
  1. 8
      src/views/modules/pallet/print_pallet_label.js
  2. 28
      src/views/modules/pallet/print_pallet_labelOld.js
  3. 266
      src/views/modules/production/search_schedule.vue

8
src/views/modules/pallet/print_pallet_label.js

@ -11,12 +11,12 @@ export function printMaterialLabel(printList) {
for(let i = 0; i < printList.length; i++){
let printData = printList[i];
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,300,200,"");
LODOP.ADD_PRINT_TEXT(54,11,82,20,printData.palletNo);
LODOP.SET_PRINT_PAGESIZE(0,1000,800,"");
LODOP.ADD_PRINT_TEXT(227,75,218,42,printData.palletNo);
LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
LODOP.SET_PRINT_STYLEA(0,"FontSize",24);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_BARCODE(7,31,86,61,"QRCode",printData.palletNo);
LODOP.ADD_PRINT_BARCODE(15,85,417,255,"QRCode",printData.palletNo);
}
// LODOP.PRINT_DESIGN();

28
src/views/modules/pallet/print_pallet_labelOld.js

@ -0,0 +1,28 @@
/*调用js打印标签*/
import getLodop from '@/utils/LodopFuncs.js'
/*打印材料卷标签*/
export function printMaterialLabel(printList) {
const LODOP = getLodop()
if (LODOP) {
//LODOP.SET_LICENSES("", "AF8A5800B84BCC5218BCF67B92627BEA", "", "");
LODOP.SET_LICENSES("", "AF8A5800B84BCC5218BCF67B92627BEA", "", "");
LODOP.SET_PRINTER_INDEXA("小标签打印机");
//循环调用打印机
for(let i = 0; i < printList.length; i++){
let printData = printList[i];
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,1000,800,"");
LODOP.ADD_PRINT_TEXT(54,11,82,20,printData.palletNo);
LODOP.SET_PRINT_STYLEA(0,"FontName","黑体");
LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
LODOP.ADD_PRINT_BARCODE(7,31,86,61,"QRCode",printData.palletNo);
}
LODOP.PRINT_DESIGN();
//LODOP.PREVIEW();
// LODOP.PRINT();
console.log("操作成功!")
}
}

266
src/views/modules/production/search_schedule.vue

@ -39,7 +39,9 @@
<el-checkbox style="margin-top: 20px;" true-label="Y" false-label="N" v-model="searchData.closedFlag">显示已关闭计划
</el-checkbox>
</el-form-item>
<el-form-item :label="' '" style="margin-left: -5px;">
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
<el-form-item style="margin-left: -9px;">
<el-button type="primary" @click="refreshTables()" class="customer-bun-mid"
style="margin-left: 10px; margin-bottom: 5px;">查询
</el-button>
@ -57,13 +59,22 @@
导出
</download-excel>
</el-form-item>
<el-form-item :label="'已关闭,已达数量'">
<el-card class="customer-el-card customer-el-card-pink" style="margin-left:100px"></el-card>
</el-form-item>
<el-form-item :label="'已关闭,未达数量'">
<el-card class="customer-el-card customer-el-card-orange" style="margin-left:100px"></el-card>
</el-form-item>
<el-form-item :label="'未关闭,未达数量'">
<el-card class="customer-el-card customer-el-card-blue" style="margin-left:100px"></el-card>
</el-form-item>
<div class="mainTable">
<el-table :height="height"
:data="dataList"
:row-class-name="routingRowClassName2"
border
v-loading="dataListLoading"
style="width: 100%;">
style="width: 100%;margin-top: -20px">
<el-table-column
prop=""
header-align="center"
@ -72,6 +83,7 @@
label="操作">
<template slot-scope="scope" class="foo_container">
<a type="text" size="small" @click="printAction(scope.row)">打印标签</a>
<!-- <a type="text" size="small" @click="print(scope.row)">关闭</a>-->
</template>
</el-table-column>
<el-table-column
@ -260,24 +272,6 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceTimeReported',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "timeReported",
headerAlign: "center",
align: "right",
columnLabel: "已报告时间",
columnWidth: 70,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
@ -305,7 +299,7 @@
columnProp: "qtyReported",
headerAlign: "center",
align: "right",
columnLabel: "已报告数量",
columnLabel: "已入库数量",
columnWidth: 70,
columnHidden: false,
columnImage: false,
@ -314,24 +308,6 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceNeedDate',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "needDate",
headerAlign: "center",
align: "left",
columnLabel: "生产订单要求完工日期",
columnWidth: 130,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
@ -440,42 +416,6 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceQtyApprove',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "qtyApprove",
headerAlign: "center",
align: "right",
columnLabel: "合格数量",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
// {
// userId: this.$store.state.user.name,
// functionId: 5302,
// serialNumber: '5302ProduceBarcodeId',
// tableId: "5302Produce",
// tableName: "",
// columnProp: "barcodeId",
// headerAlign: "center",
// align: "left",
// columnLabel: "",
// columnWidth: 80,
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: false
// },
{
userId: this.$store.state.user.name,
functionId: 5302,
@ -494,35 +434,18 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceCrewSize',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "crewSize",
headerAlign: "center",
align: "right",
columnLabel: "操作工人数",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceQtyScrapt',
serialNumber: '5302ProduceScheduledSeqNo',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "qtyScrapt",
columnProp: "scheduledSeqNo",
headerAlign: "center",
align: "right",
columnLabel: "报废数量",
columnWidth: 80,
columnLabel: "日计划单号",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -530,42 +453,6 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceOutWorkFlag',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "outWorkFlag",
headerAlign: "center",
align: "left",
columnLabel: "是否外协",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
// {
// userId: this.$store.state.user.name,
// functionId: 5302,
// serialNumber: '5302ProduceScheduledSeqNo',
// tableId: "5302Produce",
// tableName: "",
// columnProp: "scheduledSeqNo",
// headerAlign: "center",
// align: "right",
// columnLabel: "",
// columnWidth: 80,
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: false
// },
{
userId: this.$store.state.user.name,
functionId: 5302,
@ -584,78 +471,7 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceMachSetupTime',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "machSetupTime",
headerAlign: "center",
align: "right",
columnLabel: "调机时间",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceMachRunFactor',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "machRunFactor",
headerAlign: "center",
align: "right",
columnLabel: "单位产出",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceFactorUnit',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "factorUnit",
headerAlign: "center",
align: "right",
columnLabel: "产出单位",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceEfficiency',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "efficiency",
headerAlign: "center",
align: "right",
columnLabel: "效率",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
@ -674,24 +490,7 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceParkFlag',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "parkFlag",
headerAlign: "center",
align: "left",
columnLabel: "暂停",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
// {
// userId: this.$store.state.user.name,
// functionId: 5302,
@ -782,24 +581,7 @@
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5302,
serialNumber: '5302ProduceCostRollUpFlag',
tableId: "5302Produce",
tableName: "待生产工单",
columnProp: "costRollUpFlag",
headerAlign: "center",
align: "left",
columnLabel: "已排料",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
],
searchData:{
site:'',
@ -816,7 +598,7 @@
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 160
this.height = window.innerHeight - 175
})
},
methods: {

Loading…
Cancel
Save