Browse Source

fix 修改批量关闭作业的接口

ylong 3 tháng trước cách đây
mục cha
commit
3c61e4d317
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/recycleService/stockOff/index.vue

+ 3 - 3
src/views/recycleService/stockOff/index.vue

@@ -190,12 +190,12 @@
     //批量关闭
     function handleBatchClose() {
         let selections = pageRef.value?.getSelections();
-        let ids = selections.map((item) => item.id);
+        let taskCodeList = selections.map((item) => item.taskCode);
         pageRef.value?.operatBatch({
             title: '当前选择的 作业单据状态将变更为已关闭,是否继续?',
             method: 'post',
-            url: '/baseinfo/stocktask/closeBatch',
-            data: { idList: ids }
+            url: '/baseinfo/stocktask/batchOperate',
+            data: { taskCodeList, operateType: 3 }
         });
     }
 </script>