cz 1 year ago
parent
commit
c8e552aa28
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/views/production/operation/batching/index.vue

+ 14 - 0
src/views/production/operation/batching/index.vue

@@ -409,6 +409,20 @@ const clickAccomplish = () => {
     return ElMessage("请选择操作的数据");
   }
 };
+watch(selectData, (newVal) => {
+  if (newVal.length == 0) {
+    sourceList.value.data.forEach((x) => {
+      x.isCheck = false;
+    });
+  } else if (newVal.length == 1) {
+    const current = newVal[0];
+    sourceList.value.data.forEach((x) => {
+      if (x.orderId !== current.orderId) {
+        x.isCheck = false;
+      }
+    });
+  }
+});
 </script>
 
 <style lang="scss" scoped>