Browse Source

交接单: 限制为仅允许勾选同一销售合同的数据进行采购

lxf 1 year ago
parent
commit
6466d1a67c
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/views/purchaseManage/purchaseManage/handoverSlip/index.vue

+ 2 - 5
src/views/purchaseManage/purchaseManage/handoverSlip/index.vue

@@ -9,7 +9,6 @@
       :row-class-name="getRowClass"
       :table-events="{
         select: selectRow,
-        'select-all': selectRow,
       }"
       :action-list="[
         {
@@ -547,8 +546,7 @@ const transferToProduction = (row) => {
   }
   dialogVisible.value = true;
 };
-// 监听选中的值,并动态更新是否可选中
-watch(selectData, (newVal, oldVal) => {
+watch(selectData, (newVal) => {
   if (newVal.length == 0) {
     sourceList.value.data.forEach((x) => {
       x.isCheck = true;
@@ -556,13 +554,12 @@ watch(selectData, (newVal, oldVal) => {
   } else if (newVal.length == 1) {
     const current = newVal[0];
     sourceList.value.data.forEach((x) => {
-      if (x.corporationId !== current.corporationId) {
+      if (x.contractId !== current.contractId) {
         x.isCheck = false;
       }
     });
   }
 });
-
 const submitForm = () => {
   submit.value.handleSubmit(() => {
     if (!(formData.data.list && formData.data.list.length > 0)) {