Browse Source

价格申报单批量提交/删除处理

shiy 1 year ago
parent
commit
273b68e4fd
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/api/business/purchase/apply.js
  2. 1 1
      src/views/purchase/apply/delete/index.vue

+ 2 - 1
src/api/business/purchase/apply.js

@@ -34,8 +34,9 @@ export function SUBMIT(data) {
 
 
 export function REMOVE(data) {
 export function REMOVE(data) {
   return request({
   return request({
-    url: `/pu/priceApply/${data}`,
+    url: `/pu/priceApply/del`,
     method: "delete",
     method: "delete",
+    data: {submitIds:data},
   });
   });
 }
 }
 
 

+ 1 - 1
src/views/purchase/apply/delete/index.vue

@@ -52,7 +52,7 @@ export default {
             try {
             try {
               // try
               // try
               const { selectData } = this.$props;
               const { selectData } = this.$props;
-              const ids = selectData.map((item) => item.id).join(",");
+              const ids = selectData.map((item) => item.id);
               const { msg, code } = await REMOVE(ids);
               const { msg, code } = await REMOVE(ids);
               if (code === 200) {
               if (code === 200) {
                 done();
                 done();