@@ -4,7 +4,7 @@ var getService={
var functionUrl = url;
ServiceOperation.send(ServiceOperation.MethodGet, ServiceOperation.getFullUrl(functionUrl),"", false, function(data){
if(!data.success){
- DialogOperation.alertDialog(data.message);
+ alert(data.message);
}else{
ret = data.result;
}
@@ -573,54 +573,54 @@ var ServiceMaterial={
return 90;
},
- // 近6个月质量目标合格率比较
+ // 近6个月质量目标合格率比较(品质管理看板)
getLastSixMonthQualityTargetCompare: function () {
- // return getService.methodGet("/fbsPuArrivalvouch/fbsArrivalVouchs/getLastSixMonthQualityTargetCompare");
+ return getService.methodGet("/fbsPuArrivalvouch/fbsArrivalVouchs/getLastSixMonthQualityTargetCompare");
- const list = [];
+ // const list = [];
- list.push({
- month: "04",
- target: 98,
- real: 33
- });
- month: "05",
- real: 96
- month: "06",
- real: 95
- month: "07",
- real: 99
- month: "08",
- real: 100
- month: "09",
- real: 98
+ // list.push({
+ // month: "04",
+ // target: 98,
+ // real: 33
+ // });
+ // month: "05",
+ // real: 96
+ // month: "06",
+ // real: 95
+ // month: "07",
+ // real: 99
+ // month: "08",
+ // real: 100
+ // month: "09",
+ // real: 98
- $.each(list, function (index, item) {
- item.label = item.month;
- item.label1 = "质量目标";
- item.sum1 = item.target;
- item.label2 = "合格率";
- item.sum2 = item.real;
+ // $.each(list, function (index, item) {
+ // item.label = item.month;
+ // item.label1 = "质量目标";
+ // item.sum1 = item.target;
+ // item.label2 = "合格率";
+ // item.sum2 = item.real;
- return list;
+ // return list;
// 当月供应商合格率
@@ -497,7 +497,7 @@
// 待入库
const waitinginMaterialList = ServiceMaterial.getWatingInList();
$.each(waitinginMaterialList,function(index,item){
- if (item.specs.length>6)
+ if (item.specs!=undefined && item.specs!='undefined' && item.specs.length>6)
item.specs = item.specs.substr(0,6);
item.arriveDate = item.arriveDate.replace(/-/g,"");
});