Ver Fonte

修复删除接口参数

damon227 há 3 meses atrás
pai
commit
83555f1de4

+ 1 - 1
src/views/modules/cus/contract.vue

@@ -249,7 +249,7 @@
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
-          del({reIds: [id]}).then(({data}) => {
+          del([id]).then(({data}) => {
             if (data && data.code === '200') {
               this.$message({
                 type: 'success',

+ 1 - 1
src/views/modules/cus/quoted.vue

@@ -491,7 +491,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        del({priceIds: [priceId]}).then(({data}) => {
+        del([priceId]).then(({data}) => {
           if (data && data.code === '200') {
             this.$message({
               type: 'success',

+ 1 - 1
src/views/modules/finance/expense.vue

@@ -286,7 +286,7 @@
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
-          del({ids: [id]}).then(({data}) => {
+          del([id]).then(({data}) => {
             if (data && data.code === '200') {
               this.$message({
                 type: 'success',

+ 1 - 1
src/views/modules/quality/disqualification.vue

@@ -486,7 +486,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        del({invoicesIds: [id]}).then(({data}) => {
+        del([id]).then(({data}) => {
           if (data && data.code === '200') {
             this.$message({
               type: 'success',

+ 1 - 1
src/views/modules/quality/first.vue

@@ -331,7 +331,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        delFirst({authenticateIds: [id]}).then(({data}) => {
+        delFirst([id]).then(({data}) => {
           if (data && data.code === '200') {
             this.$message({
               type: 'success',

+ 1 - 1
src/views/modules/sale/outsource.vue

@@ -428,7 +428,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        delOutsource({purchaseIds: [id]}).then(({data}) => {
+        delOutsource([id]).then(({data}) => {
           if (data && data.code === '200') {
             this.$message({
               message: '操作成功',

+ 1 - 1
src/views/modules/sale/purchase.vue

@@ -466,7 +466,7 @@
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
-          del({priceIds: [priceId]}).then(({data}) => {
+          del([priceId]).then(({data}) => {
             if (data && data.code === '200') {
               this.$message({
                 type: 'success',

+ 1 - 1
src/views/modules/warehouse/inventory.vue

@@ -321,7 +321,7 @@ export default {
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
-          delInventory({inventoryIds: [inventoryId]}).then(({data}) => {
+          delInventory([inventoryId]).then(({data}) => {
             if (data && data.code === '200') {
               this.$message({
                 message: '删除成功',

+ 1 - 1
src/views/modules/warehouse/stock-order.vue

@@ -318,7 +318,7 @@
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
-          delInOutBound({ids: [row.id]}).then(({data}) => {
+          delInOutBound([row.id]).then(({data}) => {
             if (data && data.code === '200') {
               this.$message({
                 message: '删除成功',