Browse Source

采购物料删除问题

wangmh 8 years ago
parent
commit
8efeea660a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/webapp/resources/js/index/app.js

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -21306,7 +21306,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
 
         //删除
         //删除
         $scope.deleteById = function (id) {
         $scope.deleteById = function (id) {
-            GetProductInfo.deletePurcById({id: id}, function (data) {
+            GetProductInfo.deletePurcById({}, id, function (data) {
                 if (data.error) {
                 if (data.error) {
                     toaster.pop("error", "提示", data.error);
                     toaster.pop("error", "提示", data.error);
                 } else {
                 } else {
@@ -21866,7 +21866,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
 
         //删除
         //删除
         $scope.deleteById = function (id) {
         $scope.deleteById = function (id) {
-            GetProductInfo.deletePurcById({id: id}, function (data) {
+            GetProductInfo.deletePurcById({}, id, function (data) {
                 if (data.error) {
                 if (data.error) {
                     toaster.pop("error", "提示", data.error);
                     toaster.pop("error", "提示", data.error);
                 } else {
                 } else {