From 72f7075430fe5f2cbc3522dc69e09850ae370bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Mon, 20 Nov 2017 20:43:44 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=90=E5=8D=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=90=9C=E7=B4=A2=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/wms.css | 3 + public/js/ctrl/s.ctrl.js | 12 ++ public/js/lib/exportExcel/exportExcel.js | 67 +++++++++ public/js/wms-config.js | 5 + public/js/wms-service.js | 7 + .../bigScreen/searchWaybillStatus.html | 137 ++++++++++++++++++ routes/index.js | 5 - views/index.ejs | 1 + 8 files changed, 232 insertions(+), 5 deletions(-) create mode 100644 public/js/lib/exportExcel/exportExcel.js create mode 100644 public/templates/bigScreen/searchWaybillStatus.html diff --git a/public/css/wms.css b/public/css/wms.css index d07bc62f..3bb76db2 100644 --- a/public/css/wms.css +++ b/public/css/wms.css @@ -1149,4 +1149,7 @@ table tr.checkStatus{ height: 48px; box-sizing: border-box; padding: 15px 0 0 15px; +} +#bs_sws_exportExcel{ + color: #fff !important; } \ No newline at end of file diff --git a/public/js/ctrl/s.ctrl.js b/public/js/ctrl/s.ctrl.js index 07b44cdb..4f534391 100644 --- a/public/js/ctrl/s.ctrl.js +++ b/public/js/ctrl/s.ctrl.js @@ -1791,4 +1791,16 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService }) } } + }]) + .controller('searchWaybillStatusCtrl',['$scope','$rootScope','$timeout','searchWaybillStatusService',function($scope,$rootScope,$timeout,searchWaybillStatusService){ + + $scope.moreClick = function(){ // 显示更多条件 + $('.otherForm').slideToggle(500); + }; + + $timeout(function(){ + $('#bs_sws_exportExcel').ExportExcel('bs_sws_mainTable'); + },20); + + }]) \ No newline at end of file diff --git a/public/js/lib/exportExcel/exportExcel.js b/public/js/lib/exportExcel/exportExcel.js new file mode 100644 index 00000000..f4b852c9 --- /dev/null +++ b/public/js/lib/exportExcel/exportExcel.js @@ -0,0 +1,67 @@ +/** + * 将表格数据导出表格 + */ +(function ($) { + Date.prototype.Format = function (fmt) { + var o = { + "M+": this.getMonth() + 1, //月份 + "d+": this.getDate(), //日 + "h+": this.getHours(), //小时 + "m+": this.getMinutes(), //分 + "s+": this.getSeconds(), //秒 + "q+": Math.floor((this.getMonth() + 3) / 3), //季度 + "S": this.getMilliseconds() //毫秒 + }; + if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); + for (var k in o) + if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); + return fmt; + } + + $.fn.ExportExcel = function (tab_id, options) { + var defaults = { + // height: '24px', + // 'line-height': '24px', + // margin: '0 5px', + // padding: '0 11px', + // color: '#000', + // background: '#02bafa', + // border: '1px #26bbdb solid', + // 'border-radius': '3px', + // /*color: #fff;*/ + // display: 'inline-block', + // 'text-decoration': 'none', + // 'font-size': '12px', + // outline: 'none', + // cursor: 'pointer' + } + var options = $.extend(defaults, options); + return this.each(function () { + var currentObject = $(this); //获取当前对象 + currentObject.css(defaults); + currentObject.onmouseover = function () { + $(this).css('cursor', 'hand'); + }; + + currentObject.click(function () { + //From:jsfiddle.net/h42y4ke2/16/ + var tab_text = ''; + tab_text = tab_text + ''; + + tab_text = tab_text + 'Test Sheet'; + + tab_text = tab_text + ''; + tab_text = tab_text + ''; + + tab_text = tab_text + ""; + tab_text = tab_text + $('#' + tab_id).html(); + tab_text = tab_text + '
'; + + var data_type = 'data:application/vnd.ms-excel'; + var timeStr = new Date().Format('yyyyMMddhhmmss'); + $(this).attr('href', data_type + ', ' + encodeURIComponent(tab_text)); + $(this).attr('download', '运单状态' + timeStr + '.xls'); + }); + }) + } +})(jQuery); \ No newline at end of file diff --git a/public/js/wms-config.js b/public/js/wms-config.js index e5ce0ce4..11ae08c6 100644 --- a/public/js/wms-config.js +++ b/public/js/wms-config.js @@ -452,6 +452,11 @@ angular.module('wmsApp', ['ui.router', 'wms.controllers', 'wms.services','wms.fi url: '/drayOutIn', templateUrl: 'templates/bigScreen/drayOutIn.html' }) + .state('searchWaybillStatus',{ //大屏 运单状态查询 + controller:'searchWaybillStatusCtrl', + url:'/searchWaybillStatus', + templateUrl:'templates/bigScreen/searchWaybillStatus.html' + }) $urlRouterProvider.otherwise('index'); diff --git a/public/js/wms-service.js b/public/js/wms-service.js index a9f8b3a0..28a494b3 100644 --- a/public/js/wms-service.js +++ b/public/js/wms-service.js @@ -622,3 +622,10 @@ var wmsService = angular.module('wms.services', []) } } }]) + .service('searchWaybillStatusService',['HttpService',function(HttpService){ + return { + open : function(){ + + } + } + }]) diff --git a/public/templates/bigScreen/searchWaybillStatus.html b/public/templates/bigScreen/searchWaybillStatus.html new file mode 100644 index 00000000..98579de8 --- /dev/null +++ b/public/templates/bigScreen/searchWaybillStatus.html @@ -0,0 +1,137 @@ +
+
+
+ +
+ + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
底盘号入前置库时间下单时间(SAP备料)调度时间备料出库时间SAP发运时间装车确认时间发运时间承运商司机联系方式运抵时间SAP收车时间经销商异常类别异常描述责任方发生时间关闭时间关闭状态备注
+ +
+ +
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/routes/index.js b/routes/index.js index 4ec7d05d..6c692748 100644 --- a/routes/index.js +++ b/routes/index.js @@ -2,11 +2,6 @@ var express = require('express'); var router = express.Router(); var baseConfig = require('./resource/base-config'); -var express = require('express'); -var router = express.Router(); - -var baseConfig = require('./resource/base-config'); -var distributionService = require('./service/distribution-sevice'); var request = require('request'); /* GET home page. */ diff --git a/views/index.ejs b/views/index.ejs index f64ca6fa..f9dedb64 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -118,6 +118,7 @@ + <%if (compressed) { %> -- Gitee From 4da1ed7904e599e08971e7f3a2413fc04e8a18a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Tue, 21 Nov 2017 18:14:51 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E8=BF=90=E5=8D=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/ctrl/s.ctrl.js | 42 +++++++++ public/js/wms-service.js | 4 +- .../bigScreen/searchWaybillStatus.html | 92 +++++++++++-------- .../layer/printHTML.html | 18 ++-- routes/resource/base-config.js | 4 +- 5 files changed, 107 insertions(+), 53 deletions(-) diff --git a/public/js/ctrl/s.ctrl.js b/public/js/ctrl/s.ctrl.js index 4f534391..f8b94efd 100644 --- a/public/js/ctrl/s.ctrl.js +++ b/public/js/ctrl/s.ctrl.js @@ -1798,6 +1798,48 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService $('.otherForm').slideToggle(500); }; + $scope.tableList =[]; + + //搜索对象 + $scope.search ={ + orderno:'', + vin:'', + orderBegin:'', + orderEnd:'', + inboundBegin:'', + inboundEnd:'' + }; + $scope.searchClick = function(){ + if(($scope.search.orderno || $scope.search.vin) && $scope.search.orderBegin && $scope.search.orderEnd ){ + if($scope.Tools.isRange($scope.search.orderBegin,$scope.search.orderEnd)){ + if($scope.Tools.isRange($scope.search.inboundBegin,$scope.search.inboundEnd)){ + searchWaybillStatusService.getTrackList($scope.search).then(function (res) { + if (res.success) { + $scope.tableList = res.data; + } + }) + } else { + $scope.Tools.alert('入库起始时间必须小于等于入库结束时间!'); + } + } else { + $scope.Tools.alert('下单起始时间必须小于等于下单结束时间!'); + } + + } else { + $scope.Tools.alert('车架号或底盘号必须填一项,并且下单起始时间和下单结束时间两者都必须填!'); + } + }; + $scope.resetClick = function(){ + $scope.search ={ + orderno:'', + vin:'', + orderBegin:'', + orderEnd:'', + inboundBegin:'', + inboundEnd:'' + }; + }; + $timeout(function(){ $('#bs_sws_exportExcel').ExportExcel('bs_sws_mainTable'); },20); diff --git a/public/js/wms-service.js b/public/js/wms-service.js index 28a494b3..da84839b 100644 --- a/public/js/wms-service.js +++ b/public/js/wms-service.js @@ -624,8 +624,8 @@ var wmsService = angular.module('wms.services', []) }]) .service('searchWaybillStatusService',['HttpService',function(HttpService){ return { - open : function(){ - + getTrackList : function(data){ + return HttpService.customPOST('/vehicleTracking/getTrackList',data) } } }]) diff --git a/public/templates/bigScreen/searchWaybillStatus.html b/public/templates/bigScreen/searchWaybillStatus.html index 98579de8..532b8180 100644 --- a/public/templates/bigScreen/searchWaybillStatus.html +++ b/public/templates/bigScreen/searchWaybillStatus.html @@ -30,26 +30,38 @@
底盘号
- +
订单号
- +
-
下单时间
+
下单起始时间
- +
-
入库时间
+
下单结束时间
- + +
+
+
+
入库起始时间
+
+ +
+
+
+
入库结束时间
+
+
@@ -68,12 +80,12 @@ - + + + + + + @@ -96,34 +108,34 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/templates/vehicleBorrowingManagement/layer/printHTML.html b/public/templates/vehicleBorrowingManagement/layer/printHTML.html index b85acaf3..649b7b7a 100644 --- a/public/templates/vehicleBorrowingManagement/layer/printHTML.html +++ b/public/templates/vehicleBorrowingManagement/layer/printHTML.html @@ -32,13 +32,13 @@
- -
- -
-
底盘号 入前置库时间 下单时间(SAP备料)关闭状态 备注
- -
- -
-
- - + + - - + + @@ -46,8 +46,8 @@ - - + +
序  号车架号(VIN码)序  号车架号(VIN码) 物料名称 车型 颜色库区库位
{{key+1}}
@@ -55,11 +55,11 @@
- - + + - +
制单人{{userInfo.name}}制单人{{userInfo.name}} 打印时间 {{currTime}}仓管员(签字)仓管员(签字)
diff --git a/routes/resource/base-config.js b/routes/resource/base-config.js index f63a2c3c..6b190e50 100644 --- a/routes/resource/base-config.js +++ b/routes/resource/base-config.js @@ -1,3 +1,3 @@ -/**Created on 2017-11-20*/ +/**Created on 2017-11-21*/ 'use strict'; - module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://120.77.8.167/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file + module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.76:8080/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file -- Gitee From 87da7d6056685c6d13331f6eb49919ced16ba883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Wed, 22 Nov 2017 17:21:06 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/pom.json | 2 +- public/js/ctrl/a.ctrl.js | 3 + public/js/ctrl/s.ctrl.js | 68 +++++- public/js/wms-config.js | 4 + public/js/wms-service.js | 5 + .../bigScreen/searchWaybillStatus.html | 22 +- .../abnormalManagement.html | 224 ++++++++++++++++++ routes/resource/base-config.js | 4 +- 8 files changed, 309 insertions(+), 23 deletions(-) create mode 100644 public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html diff --git a/config/pom.json b/config/pom.json index 2113a521..128157f6 100644 --- a/config/pom.json +++ b/config/pom.json @@ -77,7 +77,7 @@ "devView": true, "validate": false, "tmsMap" : true, - "host" : "http://10.2.4.76:8080/wms-extra-web/", + "host" : "http://10.2.4.76:8090/wms-extra-web/", "ticketUser": { "phone": "11111111111", "password": "123456a" diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 80e796d1..429c5caf 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -377,4 +377,7 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', } }) } +}]) +.controller('abnormalManagementCtrl',['$scope','$rootScope','$timeout',function($scope,$rootScope,$timeout){ + }]); \ No newline at end of file diff --git a/public/js/ctrl/s.ctrl.js b/public/js/ctrl/s.ctrl.js index f8b94efd..6e6b652f 100644 --- a/public/js/ctrl/s.ctrl.js +++ b/public/js/ctrl/s.ctrl.js @@ -1809,15 +1809,67 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService inboundBegin:'', inboundEnd:'' }; + $scope.isNull = function(obj){ + for(var k in obj){ + if(obj[k]){ + return true; + } + } + return false; + }; + $scope.fristSelect = true; + + // 获取列表 + $scope.getList = function(){ + var params = { + pageNo:$scope.pageNo || 1, + pageSize:$scope.pageSize || 10 + }; + params = angular.extend(params,$scope.search); + searchWaybillStatusService.getTrackList(params) + .then(function(result){ + if(result.success){ + $scope.tableList = result.data; + if($scope.fristSelect){ + $scope.Tools.page(document.getElementById('pages'),{ + pages : result.data.totalPage, + curr : result.data.pageNo, + count : result.data.totalRecord + },function(obj, first){ + $scope.fristSelect = first; //设置状态 + + if(!first){ //判断不是第一次加载 + var param = {}; + param.pageNo = obj.curr; //当前页 + param.pageSize = obj.limit; //最大页 + $scope.pageSize = obj.limit; //设置最大页 + $scope.pageNo = obj.curr; //设置当前页 + $scope.getList(param); + } + }) + } + }else{ + $scope.Tools.alert(result.message); + } + }) + }; + + //刷新 + $scope.refreshClick = function(){ + $scope.getList() + }; + $scope.searchClick = function(){ - if(($scope.search.orderno || $scope.search.vin) && $scope.search.orderBegin && $scope.search.orderEnd ){ + if($scope.isNull($scope.search)){ if($scope.Tools.isRange($scope.search.orderBegin,$scope.search.orderEnd)){ if($scope.Tools.isRange($scope.search.inboundBegin,$scope.search.inboundEnd)){ - searchWaybillStatusService.getTrackList($scope.search).then(function (res) { - if (res.success) { - $scope.tableList = res.data; - } - }) + $scope.getList(); + // searchWaybillStatusService.getTrackList($scope.search).then(function (res) { + // if (res.success) { + // $scope.tableList = res.data; + // } + // }) + } else { $scope.Tools.alert('入库起始时间必须小于等于入库结束时间!'); } @@ -1826,7 +1878,7 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService } } else { - $scope.Tools.alert('车架号或底盘号必须填一项,并且下单起始时间和下单结束时间两者都必须填!'); + $scope.Tools.alert('至少输入一个查询条件'); } }; $scope.resetClick = function(){ @@ -1845,4 +1897,4 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService },20); - }]) \ No newline at end of file + }]); \ No newline at end of file diff --git a/public/js/wms-config.js b/public/js/wms-config.js index 11ae08c6..f8037c4a 100644 --- a/public/js/wms-config.js +++ b/public/js/wms-config.js @@ -374,6 +374,10 @@ angular.module('wmsApp', ['ui.router', 'wms.controllers', 'wms.services','wms.fi controller : 'repairBillCtrl', url: '/repair-bill', templateUrl: 'templates/maintenanceManagement/repairBill/repair-bill-list.html' + }).state('abnormalManagement', { //异常管理 + controller:'abnormalManagementCtrl', + url :'/abnormalManagement', + templateUrl: 'templates/maintenanceManagement/abnormalManagement/abnormalManagement.html' }).state('warehouse-maintenance', { //仓库维护 controller : 'warehouseMaintenanceCtrl', url: '/warehouse-maintenance', diff --git a/public/js/wms-service.js b/public/js/wms-service.js index da84839b..ca32322a 100644 --- a/public/js/wms-service.js +++ b/public/js/wms-service.js @@ -629,3 +629,8 @@ var wmsService = angular.module('wms.services', []) } } }]) + .service('abnormalManagementService',['HttpService',function(HttpService){ + return{ + + } + }]); diff --git a/public/templates/bigScreen/searchWaybillStatus.html b/public/templates/bigScreen/searchWaybillStatus.html index 532b8180..f197d36e 100644 --- a/public/templates/bigScreen/searchWaybillStatus.html +++ b/public/templates/bigScreen/searchWaybillStatus.html @@ -106,7 +106,6 @@ 发生时间 关闭时间 关闭状态 - 备注 @@ -129,21 +128,20 @@ - - - - - - - + {{item.excpType}} + {{item.excpDesc}} + {{item.excpReposible}} + {{item.excpCreateTime}} + {{item.excpCloseTime}} + {{item.excpCloseStatus}} - -
-
-
+
+
+
+
\ No newline at end of file diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html new file mode 100644 index 00000000..8b1799d6 --- /dev/null +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -0,0 +1,224 @@ +
+
+
+
    + + + + +
+
+ + +
+
+ +
+
    +
  • +
    +
    维修类型
    +
    + + + + + + + + + 没有加载到数据 + + +
    +
    +
    +
    维修状态
    +
    + + + + + + + + + 没有加载到数据 + + +
    +
    +
    +
    底盘号
    +
    + +
    +
    +
    +
    运输单号
    +
    + +
    +
    +
  • + +
  • +
    +
    货主
    +
    + + + + + + + + + 没有加载到数据 + + +
    +
    +
    +
    目的地
    +
    + +
    +
    +
    +
    检验结果
    +
    + + + + + + + + + 没有加载到数据 + + +
    +
    +
    +
    维修结果
    +
    + + + + + + + + + 没有加载到数据 + + +
    +
    +
  • + +
  • +
    +
    创建日期
    +
    + +
    +
    +
    +
    +
    + +
    +
    +
    +
    维修完成时间
    +
    + +
    +
    +
    +
    +
    + +
    +
    +
  • +
  • +
    + + +
    +
  • +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
序号维修单号维修类型维修状态质损单号维修出库单号底盘号运输单号货主目的地货物说明检验结果车辆问题描述责任方维护方维修结果维修完成时间创建人创建时间备注
+ +
+ +
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/routes/resource/base-config.js b/routes/resource/base-config.js index 6b190e50..16a9893e 100644 --- a/routes/resource/base-config.js +++ b/routes/resource/base-config.js @@ -1,3 +1,3 @@ -/**Created on 2017-11-21*/ +/**Created on 2017-11-22*/ 'use strict'; - module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.76:8080/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file + module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.76:8090/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file -- Gitee From 1228886b0569a631314ea5ed086c585494b6480a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Thu, 23 Nov 2017 19:01:52 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=90=E5=8D=95?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=92=8C=E7=BB=B4=E4=BF=AE=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/ctrl/a.ctrl.js | 5 +- public/js/ctrl/b.ctrl.js | 5 - public/js/ctrl/s.ctrl.js | 63 ++++++- public/js/wms-config.js | 2 + public/js/wms-service.js | 9 + .../bigScreen/searchWaybillStatus.html | 21 +-- .../abnormalManagement.html | 167 ++++++------------ routes/resource/base-config.js | 2 +- 8 files changed, 129 insertions(+), 145 deletions(-) diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 429c5caf..0f2cd043 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -379,5 +379,8 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', } }]) .controller('abnormalManagementCtrl',['$scope','$rootScope','$timeout',function($scope,$rootScope,$timeout){ - + // 显示更多条件 + $scope.moreClick = function(){ + $('.otherForm').slideToggle(500); + }; }]); \ No newline at end of file diff --git a/public/js/ctrl/b.ctrl.js b/public/js/ctrl/b.ctrl.js index 4c095e68..e2bb6b5e 100644 --- a/public/js/ctrl/b.ctrl.js +++ b/public/js/ctrl/b.ctrl.js @@ -589,11 +589,6 @@ wmsCtrl.controller('borrowCarRegistrationCtrl',['$scope','Tools','$rootScope','$ }; $scope.getList(); - // 显示更多条件 - $scope.moreClick = function(){ - $('.otherForm').slideToggle(500); - }; - //查询 $scope.rcSearch = function(){ diff --git a/public/js/ctrl/s.ctrl.js b/public/js/ctrl/s.ctrl.js index 6e6b652f..b115aa9e 100644 --- a/public/js/ctrl/s.ctrl.js +++ b/public/js/ctrl/s.ctrl.js @@ -1797,9 +1797,16 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService $scope.moreClick = function(){ // 显示更多条件 $('.otherForm').slideToggle(500); }; + // $scope.excelUrl = 'http://10.2.4.76:8090/wms-extra-web/vehicleTracking/importOutExcel?&pageNo=1&pageSize=10&orderno=0171344810&vin=&orderBegin=&orderEnd=&inboundBegin=&inboundEnd=&whCode=UNLCN_XN_CQ&userId=16'; + $scope.tableList =[]; + // 显示更多条件 + $scope.moreClick = function(){ + $('.otherForm').slideToggle(500); + }; + //搜索对象 $scope.search ={ orderno:'', @@ -1807,7 +1814,9 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService orderBegin:'', orderEnd:'', inboundBegin:'', - inboundEnd:'' + inboundEnd:'', + whCode:$scope.userInfo.whCode, + userId:$scope.userInfo.id }; $scope.isNull = function(obj){ for(var k in obj){ @@ -1819,22 +1828,54 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService }; $scope.fristSelect = true; + $scope.formatData = function(obj){ + var str ='?'; + for(var k in obj){ + str+='&'+k+'='+obj[k]; + } + return str; + }; + $scope.excelUrl = '#'; + $scope.getData = function(e){ + if($scope.tableList.length >0){ + $scope.excelUrl = contextPath + '/vehicleTracking/importOutExcel'+ $scope.formatData($scope.search); + } else { + e.preventDefault(); + $scope.Tools.alert('没有数据,不能导出表格!'); + } + + }; + + //导出表格 + $scope.importOutExcel = function(){ + var params = { + pageNo:$scope.pageNo || 1, + pageSize:$scope.pageSize || 10 + }; + params =$scope.formatData( angular.extend(params,$scope.search) ); + searchWaybillStatusService.importOutExcel(params).then(function(res){ + + }) + }; + // 获取列表 $scope.getList = function(){ var params = { pageNo:$scope.pageNo || 1, - pageSize:$scope.pageSize || 10 + pageSize:$scope.pageSize || 10, }; params = angular.extend(params,$scope.search); + var index = layer.load(2); searchWaybillStatusService.getTrackList(params) .then(function(result){ if(result.success){ + layer.close(index); $scope.tableList = result.data; if($scope.fristSelect){ $scope.Tools.page(document.getElementById('pages'),{ - pages : result.data.totalPage, - curr : result.data.pageNo, - count : result.data.totalRecord + pages : result.pageVo.totalPage, + curr : result.pageVo.pageNo, + count : result.pageVo.totalRecord },function(obj, first){ $scope.fristSelect = first; //设置状态 @@ -1849,7 +1890,9 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService }) } }else{ + layer.close(index); $scope.Tools.alert(result.message); + $scope.tableList=[]; } }) }; @@ -1888,13 +1931,15 @@ wmsCtrl.controller('stockUnitCtrl',['$scope','stockUnitService','dropDownService orderBegin:'', orderEnd:'', inboundBegin:'', - inboundEnd:'' + inboundEnd:'', + whCode:$scope.userInfo.whCode, + userId:$scope.userInfo.id }; }; - $timeout(function(){ - $('#bs_sws_exportExcel').ExportExcel('bs_sws_mainTable'); - },20); + // $timeout(function(){ + // $('#bs_sws_exportExcel').ExportExcel('bs_sws_mainTable'); + // },20); }]); \ No newline at end of file diff --git a/public/js/wms-config.js b/public/js/wms-config.js index f8037c4a..5c618201 100644 --- a/public/js/wms-config.js +++ b/public/js/wms-config.js @@ -244,6 +244,8 @@ angular.module('wmsApp', ['ui.router', 'wms.controllers', 'wms.services','wms.fi // 下拉service $rootScope.dropDownService = dropDownService; + $rootScope.contextPath = Settings.Context.path; + //用户信息 $rootScope.userInfo = cookies.getObject('user'); if(!$rootScope.userInfo){ //如果没有登陆信息 返回登陆 diff --git a/public/js/wms-service.js b/public/js/wms-service.js index ca32322a..16720e8e 100644 --- a/public/js/wms-service.js +++ b/public/js/wms-service.js @@ -4,6 +4,11 @@ 'use strict'; var wmsService = angular.module('wms.services', []) + .constant('Settings', { + Context: { + path: contextPath + } + }) .service('HttpService', ['Restangular','$rootScope', function (restangular,rootScope) { return { @@ -626,6 +631,10 @@ var wmsService = angular.module('wms.services', []) return { getTrackList : function(data){ return HttpService.customPOST('/vehicleTracking/getTrackList',data) + }, + importOutExcel: function(data){ + // $.get(contextPath+'/vehicleTracking/importOutExcel'+data,function(){}); + return HttpService.customGET('/vehicleTracking/importOutExcel'+data) } } }]) diff --git a/public/templates/bigScreen/searchWaybillStatus.html b/public/templates/bigScreen/searchWaybillStatus.html index f197d36e..4c3af563 100644 --- a/public/templates/bigScreen/searchWaybillStatus.html +++ b/public/templates/bigScreen/searchWaybillStatus.html @@ -2,10 +2,15 @@
- +
@@ -100,12 +105,6 @@ 运抵时间 SAP收车时间 经销商 - 异常类别 - 异常描述 - 责任方 - 发生时间 - 关闭时间 - 关闭状态 @@ -128,12 +127,6 @@ - {{item.excpType}} - {{item.excpDesc}} - {{item.excpReposible}} - {{item.excpCreateTime}} - {{item.excpCloseTime}} - {{item.excpCloseStatus}} diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html index 8b1799d6..765f891b 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -2,126 +2,72 @@
    - - - - + +
- +
-
+ - 序号 - 维修单号 - 维修类型 - 维修状态 - 质损单号 - 维修出库单号 - 底盘号 - 运输单号 - 货主 - 目的地 - 货物说明 - 检验结果 - 车辆问题描述 + 车架号 + 异常分类 + 异常类型 + 异常状态 + 异常描述 责任方 - 维护方 - 维修结果 - 维修完成时间 - 创建人 - 创建时间 - 备注 + 异常图片 + 异常发生时间 + 处理方式 + 处理结果描述 + 处理完成时间 diff --git a/routes/resource/base-config.js b/routes/resource/base-config.js index 16a9893e..19ca92de 100644 --- a/routes/resource/base-config.js +++ b/routes/resource/base-config.js @@ -1,3 +1,3 @@ -/**Created on 2017-11-22*/ +/**Created on 2017-11-23*/ 'use strict'; module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.76:8090/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file -- Gitee From 6db833df728b3a3bb9a7ce2119787ef74cb89eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Fri, 24 Nov 2017 18:32:48 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/wms.css | 20 ++- public/js/ctrl/a.ctrl.js | 135 +++++++++++++++++- public/js/ctrl/d.ctrl.js | 31 +++- public/js/wms-filter.js | 55 +++++++ public/js/wms-service.js | 13 +- .../abnormalManagement/abm_imageList.html | 11 ++ .../abnormalManagement.html | 102 ++++++------- .../abnormalManagement/dealAbnormal.html | 22 +++ routes/resource/base-config.js | 4 +- 9 files changed, 328 insertions(+), 65 deletions(-) create mode 100644 public/templates/maintenanceManagement/abnormalManagement/abm_imageList.html create mode 100644 public/templates/maintenanceManagement/abnormalManagement/dealAbnormal.html diff --git a/public/css/wms.css b/public/css/wms.css index 3bb76db2..1b74b131 100644 --- a/public/css/wms.css +++ b/public/css/wms.css @@ -170,7 +170,7 @@ html,body{ .layui-table tr, td, th, select, option { text-align: center !important; - border: 1px solid #cedce2; + border: 1px solid #d2d2d2; cursor: pointer; } @@ -1152,4 +1152,22 @@ table tr.checkStatus{ } #bs_sws_exportExcel{ color: #fff !important; +} +.abm_image{ + width: 100%; + margin-bottom: 10px; + height: 600px; +} +.abm_image_desc{ + padding: 8px 0; + font-weight: 700; +} +.abm_image_icon{ + position: absolute; + bottom:22px; + right:10px; + cursor:pointer; + font-size: 30px; + color: #de531a; + } \ No newline at end of file diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 0f2cd043..01c3bc0c 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -378,9 +378,140 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', }) } }]) -.controller('abnormalManagementCtrl',['$scope','$rootScope','$timeout',function($scope,$rootScope,$timeout){ +.controller('abnormalManagementCtrl',['$scope','$rootScope','$timeout','ngDialog','abnormalManagementService',function($scope,$rootScope,$timeout,ngDialog,abnormalManagementService){ + + layui.use('form', function(){ + var $ = layui.jquery, form = layui.form(); + + //全选 + form.on('checkbox(allChoose)', function(data){ + var child = $(data.elem).parents('table').find('tbody input[type="checkbox"]'); + child.each(function(index, item){ + item.checked = data.elem.checked; + }); + form.render('checkbox'); + }); + + }); + // 显示更多条件 $scope.moreClick = function(){ $('.otherForm').slideToggle(500); }; -}]); \ No newline at end of file + +// 搜索对象 + $scope.search = { + excpStatus:'', + excpTypeCode:'', + excpType:'', + startGmtCreate:'', + endGmtCreate:'', + dealType:'', + startDealEndTime:'', + endDealEndTime:'' + }; + $scope.resetClick = function(){ + for(var k in $scope.search){ + $scope.search[k] = ''; + } + }; + +// 异常处理 + $scope.dealAbnomal = function(){ + + //判断是否有选择 + var orderidArr = []; + $rootScope.orderidArr =[]; + $rootScope.abm_indexArr = []; + //获取选中的list列表 + $('.wms_abm_table').find('td i').each(function (i, obj) { + if ($(obj).parent().hasClass('layui-form-checked')){ + orderidArr.push($(obj).parents('tr').attr('orderid')); + $rootScope.abm_indexArr.push($(obj).parents('tr').attr('key')); + } + }); + if(orderidArr.length==0) { + $scope.Tools.alert('未选择!'); + }else if( orderidArr.length !=1){ + $scope.Tools.alert('异常处理当前只支持单条操作'); + } else { + $rootScope.abm_imageList = $scope.tableList; + ngDialog.open({ + template: "templates/maintenanceManagement/abnormalManagement/dealAbnormal.html", + controller: "dealAbnormalCtrl", + title: '异常处理', + width:400, + height:400 + }); + } + }; + //查看照片 + $scope.getDetail = function(e){ + var abmImg = { + orderId:$(e.target).parents('tr').attr('orderid'), + excpType:$(e.target).parents('tr').attr('excptype') + }; + abnormalManagementService.getImageList(abmImg).then(function(res){ + if(res.success){ + $rootScope.abm_imageList = res.data; + ngDialog.open({ + template: "templates/maintenanceManagement/abnormalManagement/abm_imageList.html", + controller: "abm_imageListCtrl", + title: '异常图片显示', + width:600, + }); + $timeout(function(){ + $('.ngdialog-content').css('display','table') + },20) + } else { + $scope.Tools.alert(res.message); + } + }); + }; + + $scope.fristSelect = true; + // 获取列表 + $scope.getList = function(){ + var params = { + pageNo:$scope.pageNo || 1, + pageSize:$scope.pageSize || 10, + }; + params = angular.extend(params,$scope.search); + var index = layer.load(2); + abnormalManagementService.queryExcepList(params) + .then(function(result){ + if(result.success){ + layer.close(index); + $scope.tableList = result.data.dataList; + if($scope.fristSelect){ + $scope.Tools.page(document.getElementById('pages'),{ + pages : result.data.page.totalPage, + curr : result.data.page.pageNo, + count : result.data.page.totalRecord + },function(obj, first){ + $scope.fristSelect = first; //设置状态 + + if(!first){ //判断不是第一次加载 + var param = {}; + param.pageNo = obj.curr; //当前页 + param.pageSize = obj.limit; //最大页 + $scope.pageSize = obj.limit; //设置最大页 + $scope.pageNo = obj.curr; //设置当前页 + $scope.getList(param); + } + }) + } + }else{ + layer.close(index); + $scope.Tools.alert(result.message); + $scope.tableList=[]; + } + }) + }; + + $scope.getList(); + +}]) + .controller('abm_imageListCtrl',['$scope','$rootScope',function($scope,$rootScope){ + + }]) \ No newline at end of file diff --git a/public/js/ctrl/d.ctrl.js b/public/js/ctrl/d.ctrl.js index 87441894..b8058e0a 100644 --- a/public/js/ctrl/d.ctrl.js +++ b/public/js/ctrl/d.ctrl.js @@ -458,4 +458,33 @@ wmsCtrl.controller('distributionCtrl',['$scope','$rootScope','$timeout','$state' $state.go('distribution') },$rootScope.bs_intervalTime*60000) - }]); \ No newline at end of file + }]) + .controller('dealAbnormalCtrl',['$scope','$rootScope','abnormalManagementService','ngDialog',function($scope,$rootScope,abnormalManagementService,ngDialog){ + // 异常处理 + $scope.layer_dealType = ''; + $scope.updateToDeal = function(){ + var obj = $rootScope.abm_imageList[$rootScope.abm_indexArr[0]]; + var temp = { + orderId : obj.orderId, + excpType: obj.excpType, + excpDesc: obj.excpDesc, + dealType: $scope.layer_dealType, + vin: obj.vin, + excpTypeCode: obj.excpTypeCode + }; + abnormalManagementService.updateToDeal(temp).then(function(res){ + if(res.success){ + ngDialog.closeAll(); + setTimeout(function(){ + $scope.Tools.alert(res.message); + },20) + } else { + ngDialog.closeAll(); + layer.open({ + title: '提示' + ,content: res.message + }); + } + }) + } + }]) \ No newline at end of file diff --git a/public/js/wms-filter.js b/public/js/wms-filter.js index f09f1fad..28bc94b2 100644 --- a/public/js/wms-filter.js +++ b/public/js/wms-filter.js @@ -482,4 +482,59 @@ var wmsFilter = angular.module('wms.filter', []) } } }) + .filter('abnormal_excpStatus',function(){ + return function(str){ + if(str =='10'){ + return '未处理' + } else if(str == '20'){ + return '处理中' + } else if(str == '30'){ + return '已关闭' + } + } + }) + .filter('abnormal_excpType',function(){ + return function(str){ + if(str =='10'){ + return '入库异常' + } else if(str == '20'){ + return '出库异常' + } else if(str == '30'){ + return '备料异常' + } + } + }) + .filter('abnormal_dealType',function(){ + return function(str){ + if(str =='10'){ + return '缺件跟进' + } else if(str == '20'){ + return '出库维修' + } else if(str == '30'){ + return '库内维修' + } else if(str == '40'){ + return '缺件跟进,出库维修' + } else if(str == '50'){ + return '缺件跟进,库位修改' + } + } + }).filter('abnormal_excpTypeCode',function(){ + return function(str){ + if(str =='MISS'){ + return '缺件异常' + } else if(str == 'EXCP'){ + return '质损异常' + } else if(str == 'MISS_AND_EXCP'){ + return '缺件,质损异常' + } else if(str == 'LOSS'){ + return '非质损异常' + } else if(str == 'LOSS_AND_EXCP'){ + return '非质损,质损异常' + } else if(str == 'LOSS_AND_MISS'){ + return '非质损,缺件异常' + } else if(str == 'LOSS_EXCP_EXCP'){ + return '非质损,质损,缺件异常' + } + } + }) diff --git a/public/js/wms-service.js b/public/js/wms-service.js index 16720e8e..85c9405b 100644 --- a/public/js/wms-service.js +++ b/public/js/wms-service.js @@ -640,6 +640,17 @@ var wmsService = angular.module('wms.services', []) }]) .service('abnormalManagementService',['HttpService',function(HttpService){ return{ - + queryExcepList : function(data){ + return HttpService.customPOST('/excpManage/queryExcepList',data) + }, + getImageList : function(data){ + return HttpService.customPOST(' /excpManage/getImageList',data) + }, + updateToDeal : function(data){ // 异常处理 + return HttpService.customPOST('/excpManage/updateToDeal',data) + }, + updateToClosed : function(data){ // 异常关闭 + return HttpService.customPOST('/excpManage/updateToClosed',data) + }, } }]); diff --git a/public/templates/maintenanceManagement/abnormalManagement/abm_imageList.html b/public/templates/maintenanceManagement/abnormalManagement/abm_imageList.html new file mode 100644 index 00000000..faeac5eb --- /dev/null +++ b/public/templates/maintenanceManagement/abnormalManagement/abm_imageList.html @@ -0,0 +1,11 @@ +
+ +
\ No newline at end of file diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html index 765f891b..c8556a1a 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -2,7 +2,7 @@
    - +
@@ -17,49 +17,50 @@
异常分类
- - - - + + +
异常类型
- - - - - - - + + + + + + +
异常状态
- - - - + + +
处理方式
- - - - - - + + + + +
@@ -69,31 +70,31 @@
异常发生时间
- +
- +
处理完成时间
- +
- +
  • - +
  • @@ -101,14 +102,11 @@
    - +
    - @@ -122,33 +120,21 @@ - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + +
    - -
    - -
    +
    + 车架号 异常分类处理结果描述 处理完成时间
    - -
    - -
    +
    查看
    diff --git a/public/templates/maintenanceManagement/abnormalManagement/dealAbnormal.html b/public/templates/maintenanceManagement/abnormalManagement/dealAbnormal.html new file mode 100644 index 00000000..485d770f --- /dev/null +++ b/public/templates/maintenanceManagement/abnormalManagement/dealAbnormal.html @@ -0,0 +1,22 @@ +
    +
      +
    • +
      +
      处理方式
      +
      + +
      +
      +
    • +
    • + +
    • +
    +
    \ No newline at end of file diff --git a/routes/resource/base-config.js b/routes/resource/base-config.js index 19ca92de..7f9eb7f9 100644 --- a/routes/resource/base-config.js +++ b/routes/resource/base-config.js @@ -1,3 +1,3 @@ -/**Created on 2017-11-23*/ +/**Created on 2017-11-24*/ 'use strict'; - module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.76:8090/wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file + module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.80:8080/ils-wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file -- Gitee From 93b3f7ba9e1665b958fc0dd76350004859420583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Mon, 27 Nov 2017 13:36:09 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=85=B3=E9=97=AD=C2=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/pom.json | 2 +- public/css/wms.css | 18 +++++++- public/images/dot.png | Bin 0 -> 287 bytes public/js/ctrl/a.ctrl.js | 40 +++++++++++++++++- public/js/ctrl/c.ctrl.js | 31 +++++++++++++- public/js/ctrl/d.ctrl.js | 1 + public/js/wms-filter.js | 5 +++ .../abnormalManagement.html | 5 ++- .../abnormalManagement/closeAbnormal.html | 5 +++ routes/resource/base-config.js | 2 +- 10 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 public/images/dot.png create mode 100644 public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html diff --git a/config/pom.json b/config/pom.json index 128157f6..2113a521 100644 --- a/config/pom.json +++ b/config/pom.json @@ -77,7 +77,7 @@ "devView": true, "validate": false, "tmsMap" : true, - "host" : "http://10.2.4.76:8090/wms-extra-web/", + "host" : "http://10.2.4.76:8080/wms-extra-web/", "ticketUser": { "phone": "11111111111", "password": "123456a" diff --git a/public/css/wms.css b/public/css/wms.css index 1b74b131..4bfba3c0 100644 --- a/public/css/wms.css +++ b/public/css/wms.css @@ -1169,5 +1169,21 @@ table tr.checkStatus{ cursor:pointer; font-size: 30px; color: #de531a; - +} +.abm_desc_div{ + display: inline-block; + *display: inline; + *zoom: 1; + width: 180px; + height: 20px; + line-height: 20px; + font-size: 12px; + overflow: hidden; + -ms-text-overflow: ellipsis; + text-overflow: ellipsis; + white-space: nowrap; + color:#de531a; +} +.abm_desc_div:hover{ + height: auto;white-space: normal; } \ No newline at end of file diff --git a/public/images/dot.png b/public/images/dot.png new file mode 100644 index 0000000000000000000000000000000000000000..87c96a4340830db6a19de1365cf478a1aef6c8fa GIT binary patch literal 287 zcmV+)0pR|LP)*N!*GGQ0q+JcxCb}D4Y&v52F3}vfSIux%jW>5q}%vOEXdgCP3KFx zDqmGs5dflIr7dv?ux;koM**p^H#-EpfSuKA(DMs2{bks31CXse1d!GYyH(`^XP|E* zkk%r70!6!_w6`}|vmi+)0Yo1}DU%Rq66_`r{y}XY1NUvekRwr_NBQG2 l-Rhij^meICi5!hgozLX2gB@{tld1p!002ovPDHLkV1i9Bc|`yK literal 0 HcmV?d00001 diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 01c3bc0c..3f40621b 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -445,6 +445,36 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', }); } }; + + //异常关闭 + $scope.updateToClosed = function(){ + //判断是否有选择 + var orderidArr = []; + $rootScope.orderidArr =[]; + $rootScope.abm_indexArr = []; + //获取选中的list列表 + $('.wms_abm_table').find('td i').each(function (i, obj) { + if ($(obj).parent().hasClass('layui-form-checked')){ + orderidArr.push($(obj).parents('tr').attr('orderid')); + $rootScope.abm_indexArr.push($(obj).parents('tr').attr('key')); + } + }); + if(orderidArr.length==0) { + $scope.Tools.alert('未选择!'); + }else if( orderidArr.length !=1){ + $scope.Tools.alert('异常关闭只能单选!'); + } else { + $rootScope.abm_imageList = $scope.tableList; + ngDialog.open({ + template: "templates/maintenanceManagement/abnormalManagement/closeAbnormal.html", + controller: "closeAbnormalCtrl", + title: '异常关闭', + width:400, + height:400 + }); + } + }; + //查看照片 $scope.getDetail = function(e){ var abmImg = { @@ -470,6 +500,12 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', }; $scope.fristSelect = true; + + //刷新列表 + $scope.refreshClick = function(){ + $scope.getList(); + }; + // 获取列表 $scope.getList = function(){ var params = { @@ -483,6 +519,7 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', if(result.success){ layer.close(index); $scope.tableList = result.data.dataList; + $rootScope.abm_main_tableList = result.data.dataList; if($scope.fristSelect){ $scope.Tools.page(document.getElementById('pages'),{ pages : result.data.page.totalPage, @@ -508,10 +545,11 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', } }) }; + $rootScope.abm_getList = $scope.getList; $scope.getList(); }]) .controller('abm_imageListCtrl',['$scope','$rootScope',function($scope,$rootScope){ - }]) \ No newline at end of file + }]); \ No newline at end of file diff --git a/public/js/ctrl/c.ctrl.js b/public/js/ctrl/c.ctrl.js index d50dc8d7..0c24b604 100644 --- a/public/js/ctrl/c.ctrl.js +++ b/public/js/ctrl/c.ctrl.js @@ -1,4 +1,33 @@ /** * Created by houjianhui on 2017/7/19. */ -'use strict'; \ No newline at end of file +'use strict'; +wmsCtrl.controller('closeAbnormalCtrl',['$scope','$rootScope','$timeout','ngDialog','abnormalManagementService',function($scope,$rootScope,$timeout,abnormalManagementService,ngDialog){ + + // 异常关闭 + $scope.abm_desc =''; + $scope.updateToClose = function(){ + var obj = $rootScope.abm_main_tableList[$rootScope.abm_indexArr[0]]; + var temp = { + orderId : obj.orderId, + excpType: obj.excpType, + dealResultDesc: $scope.abm_desc, + excpTypeCode: obj.excpTypeCode + }; + abnormalManagementService.updateToClosed(temp).then(function(res){ + if(res.success){ + $rootScope.abm_getList(); //成功后刷新列表 + ngDialog.closeAll(); + $timeout(function(){ + $scope.Tools.alert(res.message); + },20) + } else { + ngDialog.closeAll(); + layer.open({ + title: '提示' + ,content: res.message + }); + } + }) + } +}]) \ No newline at end of file diff --git a/public/js/ctrl/d.ctrl.js b/public/js/ctrl/d.ctrl.js index b8058e0a..ed36504c 100644 --- a/public/js/ctrl/d.ctrl.js +++ b/public/js/ctrl/d.ctrl.js @@ -474,6 +474,7 @@ wmsCtrl.controller('distributionCtrl',['$scope','$rootScope','$timeout','$state' }; abnormalManagementService.updateToDeal(temp).then(function(res){ if(res.success){ + $rootScope.abm_getList(); //成功后刷新列表 ngDialog.closeAll(); setTimeout(function(){ $scope.Tools.alert(res.message); diff --git a/public/js/wms-filter.js b/public/js/wms-filter.js index 28bc94b2..c14064e4 100644 --- a/public/js/wms-filter.js +++ b/public/js/wms-filter.js @@ -537,4 +537,9 @@ var wmsFilter = angular.module('wms.filter', []) } } }) + .filter('abnormal_excpDesc',function(){ + return function(str){ + return str.substring(0,10); + } + }) diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html index c8556a1a..8157df26 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -3,7 +3,7 @@
      - +
    @@ -128,7 +128,8 @@ - + +
    {{item.excpDesc}}
    查看 diff --git a/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html b/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html new file mode 100644 index 00000000..fc05c2b3 --- /dev/null +++ b/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html @@ -0,0 +1,5 @@ +
    + 处理异常描述: + + +
    \ No newline at end of file diff --git a/routes/resource/base-config.js b/routes/resource/base-config.js index 7f9eb7f9..102a9268 100644 --- a/routes/resource/base-config.js +++ b/routes/resource/base-config.js @@ -1,3 +1,3 @@ -/**Created on 2017-11-24*/ +/**Created on 2017-11-27*/ 'use strict'; module.exports = {"version":"1.0.2","compressed":false,"devView":true,"validate":false,"tmsMap":true,"host":"http://10.2.4.80:8080/ils-wms-extra-web/","ticketUser":{"phone":"11111111111","password":"123456a"}}; \ No newline at end of file -- Gitee From 04014fde9122e6d03134eeb5409167dad2334cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Mon, 27 Nov 2017 13:49:47 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=91=E4=B8=8B=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../abnormalManagement/abnormalManagement.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html index 8157df26..2d4260ce 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -129,7 +129,11 @@ -
    {{item.excpDesc}}
    + +
    +   {{item.excpDesc}} +
    + 查看 -- Gitee From 68fae935ee2cfe2bc95a8b5686bf8acc6c644d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Mon, 27 Nov 2017 14:16:49 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/ctrl/a.ctrl.js | 2 +- public/js/ctrl/c.ctrl.js | 2 +- .../abnormalManagement/closeAbnormal.html | 9 ++++++--- sh.exe.stackdump | 20 +++++++++++++++++++ 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 sh.exe.stackdump diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 3f40621b..8cba0e9d 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -469,7 +469,7 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', template: "templates/maintenanceManagement/abnormalManagement/closeAbnormal.html", controller: "closeAbnormalCtrl", title: '异常关闭', - width:400, + width:380, height:400 }); } diff --git a/public/js/ctrl/c.ctrl.js b/public/js/ctrl/c.ctrl.js index 0c24b604..8ab4ff7b 100644 --- a/public/js/ctrl/c.ctrl.js +++ b/public/js/ctrl/c.ctrl.js @@ -2,7 +2,7 @@ * Created by houjianhui on 2017/7/19. */ 'use strict'; -wmsCtrl.controller('closeAbnormalCtrl',['$scope','$rootScope','$timeout','ngDialog','abnormalManagementService',function($scope,$rootScope,$timeout,abnormalManagementService,ngDialog){ +wmsCtrl.controller('closeAbnormalCtrl',['$scope','$rootScope','$timeout','ngDialog','abnormalManagementService',function($scope,$rootScope,$timeout,ngDialog,abnormalManagementService,){ // 异常关闭 $scope.abm_desc =''; diff --git a/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html b/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html index fc05c2b3..4a9586c0 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html +++ b/public/templates/maintenanceManagement/abnormalManagement/closeAbnormal.html @@ -1,5 +1,8 @@
    - 处理异常描述: - - +
    处理异常描述:  
    + +
    + +
    +
    \ No newline at end of file diff --git a/sh.exe.stackdump b/sh.exe.stackdump new file mode 100644 index 00000000..0dbf1f8f --- /dev/null +++ b/sh.exe.stackdump @@ -0,0 +1,20 @@ +Exception: STATUS_ACCESS_VIOLATION at rip=7FF9083DEB78 +rax=00007FF9084EAA68 rbx=0000000000001C8C rcx=00007FF9084EAA68 +rdx=00000000028CCBA8 rsi=00007FF9084E4D90 rdi=00000000028CCBA8 +r8 =0000000000001C8C r9 =0000000000000000 r10=00007FF908439C5A +r11=000000000008B84E r12=0000000000000000 r13=0000000000000000 +r14=0000000000000000 r15=0000000000000000 +rbp=00000000028CCC69 rsp=00000000028CCB30 +program=D:\GIT\Git\usr\bin\sh.exe, pid 7308, thread unknown (0x27DC) +cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B +Stack trace: +Frame Function Args +000028CCC69 7FF9083DEB78 (7FF908335B80, 00000000000, 00000000000, FFFFFFFFFFFFFFFE) +000028CCC69 7FF9082CA7BB (00000000000, 00000000000, 001800C753E, 00000000000) +000028CCC69 7FF90828D704 (00000000000, 00000000000, 00000000384, 00000000000) +000028CCC69 7FF908335C12 (00000000000, 00000000000, 00000000000, 00000000000) +7FF9084E4D90 0018004590C (00000000000, 00000000000, 00000000000, 00000000000) +00000000000 001800459A4 (00000000000, 00000000000, 00000000000, 00000000000) +00000000000 7FF92BAE2774 (00000000000, 00000000000, 00000000000, 00000000000) +00000000000 7FF92D920D51 (00000000000, 00000000000, 00000000000, 00000000000) +End of stack trace -- Gitee From dbd9934d4bbef35758367172e3b37ea573a2a5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= <1308369732@qq.com> Date: Mon, 27 Nov 2017 17:55:37 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=8F=8F=E8=BF=B0=E8=BD=AC=E4=B8=BA=E4=BF=A1?= =?UTF-8?q?=E4=BB=BB=E7=9A=84HTML=EF=BC=8C=E5=AE=9E=E7=8E=B0=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/wms.css | 3 +++ public/js/ctrl/a.ctrl.js | 4 ++++ public/js/wms-filter.js | 18 ++++++++++++++++-- .../abnormalManagement/abnormalManagement.html | 12 ++++++++---- 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/public/css/wms.css b/public/css/wms.css index 4bfba3c0..2d2fd5bf 100644 --- a/public/css/wms.css +++ b/public/css/wms.css @@ -1186,4 +1186,7 @@ table tr.checkStatus{ } .abm_desc_div:hover{ height: auto;white-space: normal; +} +.abm_table_icon{ + font-size:12px;float: left;display: inline-block;margin-right: 12px; } \ No newline at end of file diff --git a/public/js/ctrl/a.ctrl.js b/public/js/ctrl/a.ctrl.js index 8cba0e9d..0afaea1a 100644 --- a/public/js/ctrl/a.ctrl.js +++ b/public/js/ctrl/a.ctrl.js @@ -549,6 +549,10 @@ wmsCtrl.controller('asnCtrl',['$scope','dropDownService','inStorageBillService', $scope.getList(); +// 异常描述转义 + $scope.change = function(){ + + } }]) .controller('abm_imageListCtrl',['$scope','$rootScope',function($scope,$rootScope){ diff --git a/public/js/wms-filter.js b/public/js/wms-filter.js index c14064e4..0442ecda 100644 --- a/public/js/wms-filter.js +++ b/public/js/wms-filter.js @@ -537,9 +537,23 @@ var wmsFilter = angular.module('wms.filter', []) } } }) - .filter('abnormal_excpDesc',function(){ + .filter('abnormal_excpDesc',function($sce){ return function(str){ - return str.substring(0,10); + var temp = ''; + var arr = str.split(','); + for(var i=0;i"; + } + return $sce.trustAsHtml(temp); + } + }) + .filter('isHasIcon',function(){ + return function(str){ + if(str.indexOf(',')==-1){ + return false; + } else { + return true; + } } }) diff --git a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html index 2d4260ce..443a0540 100644 --- a/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html +++ b/public/templates/maintenanceManagement/abnormalManagement/abnormalManagement.html @@ -76,19 +76,19 @@
    - +
    处理完成时间
    - +
    - +
    @@ -131,7 +131,11 @@
    -   {{item.excpDesc}} + + + +    +
    -- Gitee