diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue
index e805a764..0acfffb2 100644
--- a/src/views/wpm_bx/handover_form.vue
+++ b/src/views/wpm_bx/handover_form.vue
@@ -26,7 +26,7 @@
>
-
+
{{ totalCount }}
@@ -75,7 +75,7 @@
-
+
{{ listItem.count_canhandover }}
diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue
index 7dfe2185..1b8a5560 100644
--- a/src/views/wpm_bx/inmIn.vue
+++ b/src/views/wpm_bx/inmIn.vue
@@ -72,7 +72,7 @@
:query="query"
@selection-change="selectionChange"
>
-
+
@@ -132,24 +132,30 @@
-
- {{scope.row.count}}
- {{scope.row.count}}
-
+
+
+
+
+ {{ scope.row.count_canhandover }}
+
+ /
+ {{scope.row.count}}
+ {{scope.row.count}}
+
+
+
-
0;
+ },
selectionChange(selection) {
let that = this;
that.selection = selection;
@@ -547,8 +556,15 @@ export default {
let that = this;
that.changebatch = true;
let handoverb = [];
- if(that.selection.length>0){
- that.selection.forEach(item=>{
+ const selectableItems = that.selection.filter(item => Number(item.count_canhandover || 0) > 0);
+ if(selectableItems.length !== that.selection.length){
+ that.$message.warning("已忽略无可交接数量的批次");
+ }
+ if(selectableItems.length === 0){
+ return;
+ }
+ if(selectableItems.length>0){
+ selectableItems.forEach(item=>{
that.Mmodel = item.material_.model;
let obj = {};
obj.id = item.id;
diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue
index c82ba03d..b0a047f2 100644
--- a/src/views/wpm_bx/inmOut.vue
+++ b/src/views/wpm_bx/inmOut.vue
@@ -71,7 +71,7 @@
:query="query"
@selection-change="selectionChange"
>
-
+
@@ -131,24 +131,30 @@
-
- {{scope.row.count}}
- {{scope.row.count}}
-
+
+
+
+
+ {{ scope.row.count_canhandover }}
+
+ /
+ {{scope.row.count}}
+ {{scope.row.count}}
+
+
+
-
0;
+ },
selectionChange(selection) {
let that = this;
that.selection = selection;
@@ -536,8 +545,15 @@ export default {
batchConcat(){
this.changebatch = true;
let handoverb = [];
- if(this.selection.length>0){
- this.selection.forEach(item=>{
+ const selectableItems = this.selection.filter(item => Number(item.count_canhandover || 0) > 0);
+ if(selectableItems.length !== this.selection.length){
+ this.$message.warning("已忽略无可交接数量的批次");
+ }
+ if(selectableItems.length === 0){
+ return;
+ }
+ if(selectableItems.length>0){
+ selectableItems.forEach(item=>{
let obj = {};
obj.id = item.id;
obj.wm = item.id;