diff --git a/public/js/ctrl/d.ctrl.js b/public/js/ctrl/d.ctrl.js index 7e5c9b45d8b7ef93b990bb5fd630d61d0713f027..aa769256b9843a77e423a53e358bd0ec1bbb19c3 100644 --- a/public/js/ctrl/d.ctrl.js +++ b/public/js/ctrl/d.ctrl.js @@ -32,7 +32,7 @@ wmsCtrl.controller('distributionCtrl',['$scope','$rootScope','$timeout','$state' saveAsImage: {show: true} } }, - color: ['#5086d6', '#f67c2b', '#a5a5a5'], + color: ['#5086d6', '#f67c2b', '#a5a5a5','#ffc000'], legend: { bottom: 10, left: 'center', diff --git a/public/js/ctrl/i.ctrl.js b/public/js/ctrl/i.ctrl.js index 5fcdc29e11ab563ac15c0369308c26a3513d4e40..cd699fcb10ae9c2dbec5191c1826aac94ef66e5e 100644 --- a/public/js/ctrl/i.ctrl.js +++ b/public/js/ctrl/i.ctrl.js @@ -1256,7 +1256,7 @@ wmsCtrl.controller('inStorageBillCtrl',['$scope','inStorageBillService','dropDow } if(scope.otherForm){ //展开了更多 - scope.search.invWhName = scope.dropDownDefault.warehouse.whName; //仓库 + // scope.search.invWhName = scope.dropDownDefault.warehouse.whName; //仓库 scope.search.invVehicleSpecName = scope.dropDownDefault.vehicleSpec.name; //车型 scope.search.invCustomerName = scope.dropDownDefault.shipper.customerId ? scope.dropDownDefault.shipper.customerId.name : ''; //货主 return scope.search; diff --git a/public/js/ctrl/p.ctrl.js b/public/js/ctrl/p.ctrl.js index 3e7b478d8831009aeeb3a6db5158a1414a86d64c..1c151a1a34c2cf7087578c20bf3c3fd8a35048e6 100644 --- a/public/js/ctrl/p.ctrl.js +++ b/public/js/ctrl/p.ctrl.js @@ -9,7 +9,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic title: { x: 'center', text: '提车推移图', - subtext:'更新时间:2017-11-15 10:28:34', + subtext:'', textStyle: { color: '#fff', fontSize: '30' @@ -33,7 +33,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic saveAsImage: {show: true} } }, - color: ['#5086d6', '#f67c2b', '#a5a5a5'], + color: ['#5086d6', '#f67c2b', '#a5a5a5','#ffc000'], legend: { bottom: 10, left: 'center', @@ -109,7 +109,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic itemStyle: { normal: { label: { - show: true, + show: true } } } @@ -122,7 +122,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic itemStyle: { normal: { label: { - show: true, + show: true } } } @@ -135,7 +135,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic itemStyle: { normal: { label: { - show: true, + show: true } } } @@ -188,7 +188,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic saveAsImage: {show: true} } }, - color: ['#5086d6', '#f67c2b', '#a5a5a5'], + color: ['#5086d6', '#f67c2b', '#a5a5a5','#ffc000'], legend: { bottom: 10, left: 'center', @@ -436,7 +436,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic // } }, {value: 0, name: '管控'}, - {value: 0, name: '暂运'}, + {value: 0, name: '暂运'} ], itemStyle: { emphasis: { @@ -519,62 +519,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic } } ], - series: [ - { - name: '', - type: 'bar', - stack: 'transport', - data: [0, 0, 0, 0, 0, 0, 0], - itemStyle: { - normal: { - label: { - show: true, - } - } - } - }, - { - name: '', - type: 'bar', - stack: 'transport', - data: [0, 0, 0, 0, 0, 0, 0], - itemStyle: { - normal: { - label: { - show: true - } - } - } - }, - { - name: '', - type: 'bar', - // barWidth : 5, - stack: 'transport', - data: [0, 0, 0, 0, 0, 0, 0], - itemStyle: { - normal: { - label: { - show: true - } - } - } - }, - // { - // name: '', - // type: 'bar', - // // barWidth : 5, - // stack: 'transport', - // data: [0, 0, 0, 0, 0, 0, 0], - // itemStyle: { - // normal: { - // label: { - // show: true - // } - // } - // } - // } - ] + series: [] }; $rootScope.bs_load_1 = function(a,b,c,d){ @@ -584,9 +529,6 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic var $_bWidth = $('#bs_pc_tb1').width(); var $_bHeight = $('#bs_pc_tb1').height(); - console.log('加载了一次....'); - console.log('part的大小-->width:' + bWidth + ',height:' + bHeight); - var canvasBox = document.getElementsByClassName('bs_pc_canvasBox'); for (var i = 0; i < canvasBox.length; i++) { @@ -649,7 +591,7 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic $scope.pt1.legend.data = temp; // 加载条件注释 $scope.pt1.xAxis[0].data = r_d[0].date; // 加载x轴数据 - var update = '更新时间:' + $rootScope.getNowFormatDate(); + var update = '更新时间: ' + $rootScope.getNowFormatDate(); $scope.pt1.title.subtext = update; $rootScope.bs_load_1($scope.pt1, null, null, null); } @@ -707,8 +649,22 @@ wmsCtrl.controller('pickCarCtrl',['$scope','$rootScope','$timeout','$state','pic var pt_D = $scope.pt4.series; var temp = []; for (var i = 0; i < r_d.length; i++) { - pt_D[i].data = r_d[i].data; - pt_D[i].name = r_d[i].name; // 加载柱状图 + var obj = { + name: '', + type: 'bar', + stack: 'transport', + data: [0, 0, 0, 0, 0, 0, 0], + itemStyle: { + normal: { + label: { + show: true + } + } + } + }; + obj.data = r_d[i].data; + obj.name = r_d[i].name; // 加载柱状图 + pt_D.push(obj); temp.push(r_d[i].name); } $scope.pt4.legend.data = temp; // 加载条件注释 diff --git a/public/js/ctrl/w.ctrl.js b/public/js/ctrl/w.ctrl.js index c5a2e3ec6ecb0cae739bf230e82b72775e12de58..521692ce478565651bec436cd4be296b97d64502 100644 --- a/public/js/ctrl/w.ctrl.js +++ b/public/js/ctrl/w.ctrl.js @@ -88,7 +88,7 @@ wmsCtrl.controller('warehouseCtrl',['$scope','warehouseService','dropDownService scope.search.otStatus = scope.dropDownDefault.status.value; //出库状态 scope.search.otVehicleSpecName = scope.dropDownDefault.vehicleSpec.name; //车型 scope.search.otEstimateLane = scope.dropDownDefaults.otEstimateLane.elName; //装车道 - scope.search.otDriver = scope.dropDownDefault.driver.id; //备料司机id + scope.search.otDriver = scope.dropDownDefault.driver?scope.dropDownDefault.driver.id:''; //备料司机id scope.search.otQuitFlag = scope.dropDownDefault.quitTask.value; //是否退库 return scope.search; }else{ //没有展开