Browse Source

修改删除bug
去掉校验

Qukatie 5 days ago
parent
commit
a5c86e366d

+ 3 - 3
src/api/tirePartsMall/purchaseService/outboundWorkOrder.js

@@ -8,12 +8,12 @@ export const getList = (params) => {
   })
 }
 //删除
-export const remove = (id) => {
+export const remove = (ids) => {
   return request({
     url: '/api/blade-sales-part/shipReturns/remove',
     method: 'post',
-    data: {
-      id
+    params: {
+      ids
     }
   })
 }

+ 3 - 3
src/api/tirePartsMall/salesService/outboundWorkOrder.js

@@ -8,12 +8,12 @@ export const getList = (params) => {
   })
 }
 //删除
-export const remove = (id) => {
+export const remove = (ids) => {
   return request({
     url: '/api/blade-sales-part/shipReturns/remove',
     method: 'post',
-    data: {
-      id
+    params: {
+      ids
     }
   })
 }

+ 8 - 8
src/views/tirePartsMall/purchaseService/outStorage/detailsPage.vue

@@ -737,14 +737,14 @@ export default {
           });
           console.log(this.form);
           // 判断处理
-          for (let index in this.form.shipItemsList) {
-            this.form.shipItemsList[index].goodsName = this.form.shipItemsList[index].$goodsId;
-            if (Number(this.form.shipItemsList[index].sendNum) > Number(this.form.shipItemsList[index].inventory)) {
-              this.$message.warning(`序号${index + 1}的实际数量不能大于库存`);
-              loading.close();
-              return;
-            }
-          }
+          // for (let index in this.form.shipItemsList) {
+          //   this.form.shipItemsList[index].goodsName = this.form.shipItemsList[index].$goodsId;
+          //   if (Number(this.form.shipItemsList[index].sendNum) > Number(this.form.shipItemsList[index].inventory)) {
+          //     this.$message.warning(`序号${index + 1}的实际数量不能大于库存`);
+          //     loading.close();
+          //     return;
+          //   }
+          // }
           // this.form.shipItemsList.forEach(item => {
           //   item.goodsName = item.$goodsId
           // })