|
|
|
@ -896,15 +896,15 @@ export default { |
|
|
|
params.qrCode = qrCodeList[0] |
|
|
|
|
|
|
|
if (item.printType === 'Alpha/Hard Tag'){ |
|
|
|
printAlphaHardTagLabel([params],icons,item.printerName,this.printTest) |
|
|
|
printAlphaHardTagLabel([params],icons,item.printerName,true) |
|
|
|
}else if (item.printType === 'Hardware(Antenna)'){ |
|
|
|
if (this.printCurrentPart.category === 'Hardware(Antenna)-Serials'){ |
|
|
|
printAntennaLabel([params],icons,item.printerName,this.$store.state.user.autoSerialNumber,this.printTest) |
|
|
|
printAntennaLabel([params],icons,item.printerName,this.$store.state.user.autoSerialNumber,true) |
|
|
|
}else { |
|
|
|
printAntennaLabel([params],icons,item.printerName,'N',this.printTest) |
|
|
|
printAntennaLabel([params],icons,item.printerName,'N',true) |
|
|
|
} |
|
|
|
}else if (item.printType === 'RF' || this.currentPart.category === 'RFID'){ |
|
|
|
printRF_RFIDLabel([params],icons,item.printerName,this.printTest) |
|
|
|
printRF_RFIDLabel([params],icons,item.printerName,true) |
|
|
|
} |
|
|
|
} |
|
|
|
this.printTest = false |
|
|
|
@ -1156,7 +1156,7 @@ export default { |
|
|
|
notFound.push(label.defaultPrinterName) |
|
|
|
continue |
|
|
|
} |
|
|
|
print_roll_label(prints,label.defaultPrinterName,this.printTest) |
|
|
|
print_roll_label(prints,label.defaultPrinterName,true) |
|
|
|
} |
|
|
|
this.printTest = false |
|
|
|
if (notFound.length > 0){ |
|
|
|
@ -1257,7 +1257,7 @@ export default { |
|
|
|
notFound.push(label.defaultPrinterName) |
|
|
|
continue |
|
|
|
} |
|
|
|
printLogisticLabel([row],label.defaultPrinterName,this.printTest) |
|
|
|
printLogisticLabel([row],label.defaultPrinterName,true) |
|
|
|
} |
|
|
|
if (notFound.length > 0){ |
|
|
|
this.$message.warning(`The printer ${notFound.join(',')} is not found`) |
|
|
|
@ -1655,16 +1655,20 @@ export default { |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" style="text-align: center; margin-top: 10px"> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-button type="primary" icon="el-icon-printer" :loading="printLoading" style="width: 40px;float:left;" @click="handlePrintTest(0)"></el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintOrSave">Print</el-button> |
|
|
|
<el-button style="width: 60px" @click="printVisible = false">Cancel</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- <div slot="footer" style="text-align: center; margin-top: 10px">--> |
|
|
|
<!-- <el-row :gutter="10">--> |
|
|
|
<!-- <el-col :span="8">--> |
|
|
|
<!-- <el-button type="primary" icon="el-icon-printer" :loading="printLoading" style="width: 40px;float:left;" @click="handlePrintTest(0)"></el-button>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- <el-col :span="8">--> |
|
|
|
<!-- <el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintOrSave">Print</el-button>--> |
|
|
|
<!-- <el-button style="width: 60px" @click="printVisible = false">Cancel</el-button>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- </el-row>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div slot="footer"> |
|
|
|
<el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintOrSave">Print</el-button> |
|
|
|
<el-button style="width: 60px" @click="printVisible = false">Cancel</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
@ -1703,16 +1707,20 @@ export default { |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" style="text-align: center; margin-top: 10px"> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-button type="primary" icon="el-icon-printer" :loading="printLoading" style="width: 40px;float:left;" @click="handlePrintTest(1)"></el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintLogistic">Print</el-button> |
|
|
|
<el-button style="width: 60px" @click="logisticVisible = false">Cancel</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- <div slot="footer" style="text-align: center; margin-top: 10px">--> |
|
|
|
<!-- <el-row :gutter="10">--> |
|
|
|
<!-- <el-col :span="7">--> |
|
|
|
<!-- <el-button type="primary" icon="el-icon-printer" :loading="printLoading" style="width: 40px;float:left;" @click="handlePrintTest(1)"></el-button>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- <el-col :span="10">--> |
|
|
|
<!-- <el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintLogistic">Print</el-button>--> |
|
|
|
<!-- <el-button style="width: 60px" @click="logisticVisible = false">Cancel</el-button>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- </el-row>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div slot="footer" > |
|
|
|
<el-button type="primary" :loading="printLoading" style="width: 60px" @click="handlePrintLogistic">Print</el-button> |
|
|
|
<el-button style="width: 60px" @click="logisticVisible = false">Cancel</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|