|
@@ -249,7 +249,7 @@ var ServiceMaterial={
|
|
|
|
|
|
},
|
|
},
|
|
// 工单备料
|
|
// 工单备料
|
|
- getListByOrderSheet:function(){
|
|
|
|
|
|
+ getListByOrderSheet:function(type){
|
|
// const materialList = [];
|
|
// const materialList = [];
|
|
// materialList.push({
|
|
// materialList.push({
|
|
// orderSheetCode:"G10001",
|
|
// orderSheetCode:"G10001",
|
|
@@ -310,7 +310,23 @@ var ServiceMaterial={
|
|
|
|
|
|
// var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheet?type=3");
|
|
// var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheet?type=3");
|
|
var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheetNow?type=1");
|
|
var materialList=MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getListByOrderSheetNow?type=1");
|
|
- materialList.forEach(element => {
|
|
|
|
|
|
+ // materialList.forEach(element => {
|
|
|
|
+ // element.orderSheetCode=element.mocode
|
|
|
|
+ // element.materialCode=element.cinvcode
|
|
|
|
+ // element.materialName=element.cinvname//element.cinvname
|
|
|
|
+ // element.specs=""//element.cinvstd
|
|
|
|
+ // element.needSum=element.qtys
|
|
|
|
+ // element.stockSum=element.issQty
|
|
|
|
+ // element.shortageQuantity=element.shortageQuantity
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ return materialList;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ getListByOrderSheet1:function(materialList){
|
|
|
|
+ materialList["1"].forEach(element => {
|
|
element.orderSheetCode=element.mocode
|
|
element.orderSheetCode=element.mocode
|
|
element.materialCode=element.cinvcode
|
|
element.materialCode=element.cinvcode
|
|
element.materialName=element.cinvname//element.cinvname
|
|
element.materialName=element.cinvname//element.cinvname
|
|
@@ -319,9 +335,32 @@ var ServiceMaterial={
|
|
element.stockSum=element.issQty
|
|
element.stockSum=element.issQty
|
|
element.shortageQuantity=element.shortageQuantity
|
|
element.shortageQuantity=element.shortageQuantity
|
|
});
|
|
});
|
|
-
|
|
|
|
- return materialList;
|
|
|
|
-
|
|
|
|
|
|
+ return materialList["1"];
|
|
|
|
+ },
|
|
|
|
+ getListByOrderSheet2:function(materialList){
|
|
|
|
+ materialList["2"].forEach(element => {
|
|
|
|
+ element.orderSheetCode=element.mocode
|
|
|
|
+ element.materialCode=element.cinvcode
|
|
|
|
+ element.materialName=element.cinvname
|
|
|
|
+ element.specs=""//element.cinvstd
|
|
|
|
+ element.needSum=element.qtys
|
|
|
|
+ element.stockSum=element.issQty
|
|
|
|
+ });
|
|
|
|
+ return materialList["2"];
|
|
|
|
+ },
|
|
|
|
+ getListByOrderSheet3:function(materialList){
|
|
|
|
+ if(materialList["3"]){
|
|
|
|
+ materialList["3"].forEach(element => {
|
|
|
|
+ element.orderSheetCode=element.mocode
|
|
|
|
+ element.materialCode=element.mcinvcode
|
|
|
|
+ element.materialName=element.mcinvname
|
|
|
|
+ element.specs=""//element.cinvstd
|
|
|
|
+ // element.needSum=element.qtys
|
|
|
|
+ element.needSum=element.shortageQuantity
|
|
|
|
+ element.stockSum=element.issQty
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ return materialList["3"];
|
|
},
|
|
},
|
|
// 工单缺料
|
|
// 工单缺料
|
|
getListByOrderSheetNotEnough:function(){
|
|
getListByOrderSheetNotEnough:function(){
|