|
|
@ -318,6 +318,8 @@ export default { |
|
|
columnWidth: 140 |
|
|
columnWidth: 140 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
|
|
|
queryLoading:false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
@ -342,6 +344,7 @@ export default { |
|
|
...this.printRecord, |
|
|
...this.printRecord, |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
} |
|
|
} |
|
|
|
|
|
this.queryLoading = true |
|
|
getPrintLabelRecordPage(params,this.no,this.size).then(({data}) => { |
|
|
getPrintLabelRecordPage(params,this.no,this.size).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.printLabelRecordList = data.rows |
|
|
this.printLabelRecordList = data.rows |
|
|
@ -349,8 +352,10 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.$message.warning(data.message) |
|
|
this.$message.warning(data.message) |
|
|
} |
|
|
} |
|
|
|
|
|
this.queryLoading = false |
|
|
}).catch((error) => { |
|
|
}).catch((error) => { |
|
|
this.$message.error(error.message) |
|
|
this.$message.error(error.message) |
|
|
|
|
|
this.queryLoading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handleSelectionChange (val) { |
|
|
handleSelectionChange (val) { |
|
|
@ -413,6 +418,14 @@ export default { |
|
|
freeInfo2:item.freeInfo2, |
|
|
freeInfo2:item.freeInfo2, |
|
|
tradingMark: item.tradingMark, |
|
|
tradingMark: item.tradingMark, |
|
|
weightUmName: item.weightUmName, |
|
|
weightUmName: item.weightUmName, |
|
|
|
|
|
pictureMap:item.pictureMap, |
|
|
|
|
|
printLabelType:item.printLabelType, |
|
|
|
|
|
templateNo:item.templateNo, |
|
|
|
|
|
category:item.category, |
|
|
|
|
|
dateStr:item.dateStr, |
|
|
|
|
|
printStr1:item.printStr1, |
|
|
|
|
|
printStr2:item.printStr2, |
|
|
|
|
|
printStr3:item.printStr3, |
|
|
} |
|
|
} |
|
|
if (item.packingWeight){ |
|
|
if (item.packingWeight){ |
|
|
params.weight = new Decimal(item.packingWeight).mul(item.qtyPerCarton).toNumber(); |
|
|
params.weight = new Decimal(item.packingWeight).mul(item.qtyPerCarton).toNumber(); |
|
|
@ -444,7 +457,11 @@ export default { |
|
|
continue |
|
|
continue |
|
|
} |
|
|
} |
|
|
if (str[1] === 'Alpha/Hard Tag'){ |
|
|
if (str[1] === 'Alpha/Hard Tag'){ |
|
|
|
|
|
if (print.category === 'Alpha/Hard Tag-Serials'){ |
|
|
|
|
|
printAlphaHardTagLabel(dataList,base64List,str[0],this.$store.state.user.autoSerialNumber) |
|
|
|
|
|
}else { |
|
|
printAlphaHardTagLabel(dataList,base64List,str[0]) |
|
|
printAlphaHardTagLabel(dataList,base64List,str[0]) |
|
|
|
|
|
} |
|
|
}else if (str[1] === 'Hardware(Antenna)'){ |
|
|
}else if (str[1] === 'Hardware(Antenna)'){ |
|
|
printAntennaLabel(dataList,base64List,str[0]) |
|
|
printAntennaLabel(dataList,base64List,str[0]) |
|
|
}else if (str[1] === 'RF' || str[1] === 'RFID'){ |
|
|
}else if (str[1] === 'RF' || str[1] === 'RFID'){ |
|
|
@ -591,7 +608,7 @@ export default { |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<qr-code ref="qrCode"></qr-code> |
|
|
<qr-code ref="qrCode"></qr-code> |
|
|
<el-table :data="printLabelRecordList" ref="table" @selection-change="handleSelectionChange" |
|
|
|
|
|
|
|
|
<el-table :data="printLabelRecordList" v-loading="queryLoading" ref="table" @selection-change="handleSelectionChange" |
|
|
style="width: 100%;margin-top: 10px" border :height="height"> |
|
|
style="width: 100%;margin-top: 10px" border :height="height"> |
|
|
<el-table-column type="selection" width="55" fixed="left" align="center"></el-table-column> |
|
|
<el-table-column type="selection" width="55" fixed="left" align="center"></el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
|