diff --git a/src/views/wpm_bx/wprList.vue b/src/views/wpm_bx/wprList.vue
index 53f662e3..f6d8dc50 100644
--- a/src/views/wpm_bx/wprList.vue
+++ b/src/views/wpm_bx/wprList.vue
@@ -4,28 +4,31 @@
v-model="visible"
:size="'70%'"
destroy-on-close
+ :close-on-click-modal="false"
+ @closed="$emit('closed')"
>
关联产品
发货编号
清空编号
- 拆批
+ 拆批
批量喷数字码
批量喷二维码
+ 已选:{{ selectedRows.length }}个
+ 关闭
-
+
@@ -62,7 +66,7 @@
-
+
二维码
- 打签
- 喷数字码
- 喷二维码
+ 打签
+ 喷数字码
+ 喷二维码
@@ -313,6 +317,7 @@ export default {
that.$refs.wprTable.setCurrentRow(that.wprList[0]);
that.$refs.wprTable.toggleRowSelection(that.wprList[0], true);
that.$refs.wprTable.scrollTo({ top: 0 });
+ that.search = ""; // 清空搜索框
});
}
},
@@ -476,6 +481,9 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => {
};
that.$refs.splitDialog.open("add", data, 20, that.selectedRows);
},
+ getRowClass({ row }) {
+ return this.selectedRows.some(r => r.id === row.id) ? 'row-selected' : '';
+ },
//本地更新数据
handleSaveSuccess() {
this.$refs.tables.refresh();
@@ -483,3 +491,14 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => {
},
};
+