袁少华 4 سال پیش
والد
کامیت
41d1a8be70
2فایلهای تغییر یافته به همراه56 افزوده شده و 51 حذف شده
  1. 2 0
      js/service/material.js
  2. 54 51
      js/service/product.js

+ 2 - 0
js/service/material.js

@@ -140,6 +140,8 @@ var ServiceMaterial={
     },
     // 安全库存
     getStockList:function(){
+        // return getService.methodGet("/fbsInventory/fbsInventory/getStockList");
+
         const materialList = [];
         materialList.push({
             materialCode:"10001",

+ 54 - 51
js/service/product.js

@@ -6,60 +6,63 @@
 var ServiceProduct = {
     // 待发货成品
     getWatingSendList: function () {
-        const productList = [];
-        productList.push({
-            warehouseName: "A仓库",
-            materialCode: "10001",
-            materialName: "物料A",
-            specs: "3*4",
-            sendSum: "10",
-            planSendDate: "09月18日"
-        });
-        productList.push({
-            warehouseName: "A仓库",
-            materialCode: "10002",
-            materialName: "物料B",
-            specs: "3*4",
-            sendSum: "20",
-            planSendDate: "09月18日"
-        });
-        productList.push({
-            warehouseName: "A仓库",
-            materialCode: "10003",
-            materialName: "物料C",
-            specs: "3*4",
-            sendSum: "30",
-            planSendDate: "09月18日"
-        });
-        productList.push({
-            warehouseName: "B仓库",
-            materialCode: "10004",
-            materialName: "物料D",
-            specs: "3*4",
-            sendSum: "40",
-            planSendDate: "09月18日"
-        });
-        productList.push({
-            warehouseName: "B仓库",
-            materialCode: "10005",
-            materialName: "物料E",
-            specs: "3*4",
-            sendSum: "50",
-            planSendDate: "09月18日"
-        });
-        productList.push({
-            warehouseName: "B仓库",
-            materialCode: "10006",
-            materialName: "物料F",
-            specs: "3*4",
-            sendSum: "60",
-            planSendDate: "09月18日"
-        });
-        return productList;
+        return getService.methodGet("/fbsDispatchList/fbsDispatchList/getWatingSendList");
+        // const productList = [];
+        // productList.push({
+        //     warehouseName: "A仓库",
+        //     materialCode: "10001",
+        //     materialName: "物料A",
+        //     specs: "3*4",
+        //     sendSum: "10",
+        //     planSendDate: "09月18日"
+        // });
+        // productList.push({
+        //     warehouseName: "A仓库",
+        //     materialCode: "10002",
+        //     materialName: "物料B",
+        //     specs: "3*4",
+        //     sendSum: "20",
+        //     planSendDate: "09月18日"
+        // });
+        // productList.push({
+        //     warehouseName: "A仓库",
+        //     materialCode: "10003",
+        //     materialName: "物料C",
+        //     specs: "3*4",
+        //     sendSum: "30",
+        //     planSendDate: "09月18日"
+        // });
+        // productList.push({
+        //     warehouseName: "B仓库",
+        //     materialCode: "10004",
+        //     materialName: "物料D",
+        //     specs: "3*4",
+        //     sendSum: "40",
+        //     planSendDate: "09月18日"
+        // });
+        // productList.push({
+        //     warehouseName: "B仓库",
+        //     materialCode: "10005",
+        //     materialName: "物料E",
+        //     specs: "3*4",
+        //     sendSum: "50",
+        //     planSendDate: "09月18日"
+        // });
+        // productList.push({
+        //     warehouseName: "B仓库",
+        //     materialCode: "10006",
+        //     materialName: "物料F",
+        //     specs: "3*4",
+        //     sendSum: "60",
+        //     planSendDate: "09月18日"
+        // });
+        // return productList;
     },
     // 已入库数量
     getSendSum: function () {
-        return 9;
+        return getService.methodPost("/fbsDispatchList/fbsDispatchList/getSendSum");
+
+        // return 9;
     },
     // 月成品出货统计,根据成品维度
     getMonthSend: function () {