|
|
|
@ -693,7 +693,7 @@ export default { |
|
|
|
if (this.currentPart.moldCodeRequired === 'Y'){ |
|
|
|
this.printCurrentPart.moldCode = this.currentPart.moldCode; |
|
|
|
} |
|
|
|
if (this.printCurrentPart.category === 'Alpha/Hard Tag-Serials'){ |
|
|
|
if (this.printCurrentPart.category === 'Hardware(Antenna)-Serials'){ |
|
|
|
this.$set(this.printCurrentPart,'printLabelType',0) |
|
|
|
this.handleQueryTemplate(); |
|
|
|
} |
|
|
|
@ -701,7 +701,8 @@ export default { |
|
|
|
}, |
|
|
|
handleQueryTemplate(){ |
|
|
|
let params = { |
|
|
|
|
|
|
|
partNo: this.currentPart.partNo, |
|
|
|
site: this.currentPart.site, |
|
|
|
} |
|
|
|
this.templateList = []; |
|
|
|
queryExternalLabelTemplate(params).then(({data})=>{ |
|
|
|
@ -848,13 +849,13 @@ export default { |
|
|
|
continue |
|
|
|
} |
|
|
|
if (label.printType === 'Alpha/Hard Tag'){ |
|
|
|
if (this.printCurrentPart.category === 'Alpha/Hard Tag-Serials'){ |
|
|
|
printAlphaHardTagLabel(prints,icons,label.defaultPrinterName,this.$store.state.user.autoSerialNumber) |
|
|
|
printAlphaHardTagLabel(prints,icons,label.defaultPrinterName) |
|
|
|
}else if (label.printType === 'Hardware(Antenna)'){ |
|
|
|
if (this.printCurrentPart.category === 'Hardware(Antenna)-Serials'){ |
|
|
|
printAntennaLabel(prints,icons,label.defaultPrinterName,this.$store.state.user.autoSerialNumber) |
|
|
|
}else { |
|
|
|
printAlphaHardTagLabel(prints,icons,label.defaultPrinterName) |
|
|
|
printAntennaLabel(prints,icons,label.defaultPrinterName) |
|
|
|
} |
|
|
|
}else if (label.printType === 'Hardware(Antenna)'){ |
|
|
|
printAntennaLabel(prints,icons,label.defaultPrinterName) |
|
|
|
}else if (label.printType === 'RF' || this.currentPart.category === 'RFID'){ |
|
|
|
printRF_RFIDLabel(prints,icons,label.defaultPrinterName) |
|
|
|
} |
|
|
|
@ -1327,7 +1328,7 @@ export default { |
|
|
|
<el-input-number :step="0" :min="0" :controls="false" v-model="printCurrentPart.totalShipQty" disabled></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24" v-if="printCurrentPart.category !== 'Alpha/Hard Tag-Serials' || $store.state.user.autoSerialNumber !== 'Y'"> |
|
|
|
<el-col :span="24" v-if="printCurrentPart.category !== 'Hardware(Antenna)-Serials' || $store.state.user.autoSerialNumber !== 'Y'"> |
|
|
|
<el-form-item v-if="printCurrentPart.serialNumberRequired === 'Y'" key="serialNumber" label="Serial Number" prop="serialNumber" :show-message="false"> |
|
|
|
<el-input v-model="printCurrentPart.serialNumber"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -1367,7 +1368,7 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10" v-if="$store.state.user.autoSerialNumber === 'Y' && printCurrentPart.category === 'Alpha/Hard Tag-Serials'"> |
|
|
|
<el-row :gutter="10" v-if="$store.state.user.autoSerialNumber === 'Y' && printCurrentPart.category === 'Hardware(Antenna)-Serials'"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="Template"> |
|
|
|
<el-select v-model="printCurrentPart.templateNo" style="width: 100%"> |
|
|
|
|