|
|
|
@ -82,6 +82,7 @@
|
|
|
|
|
icon="el-icon-printer"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handlePrintBarcodes"
|
|
|
|
|
:disabled="batchPrintBtnDisabled"
|
|
|
|
|
v-hasPermi="['mes:barcode:print']"
|
|
|
|
|
>打印
|
|
|
|
|
</el-button>
|
|
|
|
@ -552,6 +553,7 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
batchPrintBtnDisabled: false
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -687,9 +689,21 @@ export default {
|
|
|
|
|
/** 打印条码按钮操作 */
|
|
|
|
|
handlePrintBarcodes(row) {
|
|
|
|
|
const barcodeIds = row.barcodeId || this.ids;
|
|
|
|
|
if (barcodeIds == null || barcodeIds == '') {
|
|
|
|
|
this.$modal.msgWarning("请选择要打印的物料条码");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (row.printFlag) {
|
|
|
|
|
row.printFlag = '1';
|
|
|
|
|
} else {
|
|
|
|
|
this.batchPrintBtnDisabled = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printBarcodes(barcodeIds).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("打印条码成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
this.batchPrintBtnDisabled = false;
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -824,7 +838,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitInternalForm() {
|
|
|
|
|
this.$refs["internalForm"].validate(valid => {
|
|
|
|
|