Sfoglia il codice sorgente

Merge branch 'feature-201845-wangcz' into dev

wangcz 7 anni fa
parent
commit
6326b41de2

+ 3 - 3
src/main/java/com/uas/platform/b2c/prod/commodity/model/CommodityInOutbound.java

@@ -39,7 +39,7 @@ public class CommodityInOutbound implements Serializable {
 
     /**
      * 所属企业
-     * 如果是个人,就保存个人uu
+     * 如果是个人,就保存个人uu
      */
     @Column(name = "cio_enuu")
     private Long enuu;
@@ -327,8 +327,8 @@ public class CommodityInOutbound implements Serializable {
             this.enName = user.getUserName();
         }
         this.createTime = new Date();
-        this.operaterUseruu = SystemSession.getUser().getUserUU();
-        this.operaterUserName = SystemSession.getUser().getUserName();
+        this.operaterUseruu = user.getUserUU();
+        this.operaterUserName = user.getUserName();
     }
 
 

+ 98 - 53
src/main/webapp/resources/js/usercenter/controllers/b2b/fa/arCheck.js

@@ -210,6 +210,9 @@
           BaseService.scrollBackToTop();
           // 获取当前用户是否为普通用户
           $rootScope.active = 'buyer_pay_center';
+
+          BaseService.scrollBackToTop();
+          // 获取当前用户是否为普通用户
           CurrentRole.isUser({}, {}, function (data) {
               $scope.isUser = data.isUser;
           });
@@ -217,9 +220,12 @@
           $scope.condition = {dateZone: 1};
           $scope.currency = Symbol.currency;//将币别转化为对应的符号
           $scope.active = 'all';
-
-
-
+          $scope.apCheckCondition = {
+              $open: false
+          }
+          var getService = function () {
+              return FaArCheck;
+          };
           /* 时间筛选初始化*/
           var fromDate = new Date();
           var toDate = new Date();
@@ -265,9 +271,8 @@
               $scope.tableParams.page(1);
               $scope.tableParams.reload();
           };
-          var getService = function () {
-              return FaArCheck;
-          };
+
+          $scope.ALLList = []
           //获取应收对账单全部
           $scope.tableParams = new ngTableParams({
               page: 1,
@@ -281,25 +286,28 @@
               getData: function ($defer, params) {
                   $scope.loading = true;
                   var pageParams = params.url();
-
                   pageParams.searchFilter = { // 筛选条件
-                      keyword: $scope.keyword,
                       fromDate: getDateTime($scope.condition.dateFrom),
-                      endDate: getDateTime($scope.condition.dateTo)
+                      endDate: getDateTime($scope.condition.dateTo),
+                      keyword: $scope.keyword
                   };
+                  pageParams.keyword = $scope.keyword;
                   if ($scope.active === 'all') {
                       pageParams.keyword = $scope.keyword
-                      var _fromDate =  $scope.thisMouthOut + '-01 00:00:00'
-                      var _d = new Date(_fromDate)
+                      var _fromDate = $scope.thisMouthOut + '-01 00:00:00'
+                      _fromDate = _fromDate.replace(/-/g,'/')
+                      var _d  = new Date(_fromDate)
                       _d.setDate(1)
                       _d.setMonth(_d.getMonth() + 1)
                       _d.setDate(_d.getDate() - 1)
                       var _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
+                      _endDate = _endDate.replace(/-/g, '/')
                       _endDate = new Date(_endDate).getTime()
+                      // _fromDate = _fromDate.replace(/-/g, '/')
                       _fromDate = new Date(_fromDate).getTime()
+
                       pageParams.searchFilter.fromDate =  _fromDate
                       pageParams.searchFilter.endDate = _endDate
-
                       FaApCheck.vendor(BaseService.parseParams(pageParams), function (page) {
                           $scope.loading = false;
                           page.content && page.content.forEach(function(list) {
@@ -317,14 +325,28 @@
                                   }
                               })
                               list.totalCount = _k
+
+                              var _MonthTodoCountArr = []
+                              list.thisMonthTodoCount && list.thisMonthTodoCount.forEach(function(item) {
+                                  if (item.amount > 0) {
+                                      _MonthTodoCountArr.push(item)
+                                  }
+                              })
+                              list.thisMonthTodoCount = _MonthTodoCountArr
+
+                              var _MonthDoneCountArr = []
+                              list.thisMonthDoneCount && list.thisMonthDoneCount.forEach(function(item) {
+                                  if (item.amount > 0) {
+                                      _MonthDoneCountArr.push(item)
+                                  }
+                              })
+                              list.thisMonthDoneCount = _MonthDoneCountArr
                           })
                           if (page) {
                               params.total(page.totalElement);
                               $defer.resolve(page.content);
                           }
-                          $scope.ALLList = page.content
-                          $scope.infoCommon = page
-                          $scope.infoCommon.all = page.content.length
+                          $scope.ALLList = page.content || []
                           $scope.totalCount = page.totalElement;
                       }, function (response) {
                           $scope.loading = false;
@@ -336,8 +358,7 @@
                           if (page) {
                               params.total(page.totalElement);
                               $scope.data = $defer.resolve(page.content);
-                              $scope.infoCommon = page
-                              $scope.infoCommon.all = page.content.length
+
                               $scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的条件
                           }
                       }, function (response) {
@@ -412,7 +433,8 @@
           };
 
           // 搜索框回车
-          $scope.onSearch = function () {
+          $scope.onSearch = function (keyword) {
+              $scope.keyword = keyword;
               $scope.tableParams.page(1);
               $scope.tableParams.reload();
           };
@@ -488,9 +510,8 @@
           $scope.goToMNs = function(item) {
               $scope.chooseItem = item;
               $scope.showNotCheck = true
-              // $scope.suuorname = item.myEnterprise.enName
-              // $scope.customerUU = item.myEnterprise.uu
               $scope.vendorUU = item.vendorEnterprise.uu
+              $scope.thisMouth = $scope.thisMouthOut
               this.searchOrder()
           }
 
@@ -530,8 +551,8 @@
               $scope.condition.venduuorname = $scope.vuuorname;
               if ($scope.condition.dateTo != null || $scope.keywordXls != null) {
 
-                  $scope.fromDate = $scope.apCheckCondition.dateFrom ? $scope.apCheckCondition.dateFrom.getTime() : null;
-                  $scope.endDate = $scope.apCheckCondition.dateTo ? $scope.apCheckCondition.dateTo.getTime() : null;
+                  // $scope.fromDate = $scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null;
+                  // $scope.endDate = $scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null;
                   $scope.searchKeyWord = {
                       receiveName: $scope.receiveName,
                       factory: $scope.factory,
@@ -541,12 +562,8 @@
                       vendorUU: $scope.vendorUU
                   }
                   $scope.exportKeywords = encodeURIComponent($scope.searchKeyWord);
-                  // $scope.fromDateXls = angular.copy($scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null);//保存当前取值的起始日期
-                  // $scope.endDateXls = angular.copy($scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null);//保存当前取值的截止日期
-                  // if (!$scope.suuorname) {
-                  //     toaster.pop('warning', '提示', '请先选择客户');
-                  //     document.getElementById('suuorname').focus();//光标默认在客户
-                  // } else {
+                  $scope.fromDate = $scope.apCheckCondition.dateFrom ? $scope.apCheckCondition.dateFrom.getTime() : null;
+                  $scope.endDate = $scope.apCheckCondition.dateTo ? $scope.apCheckCondition.dateTo.getTime() : null;
                   $scope.loading = true;
                   var _params = {}
                   if ($scope.apCheckCondition.$open) {
@@ -559,8 +576,7 @@
                           prodSpec: $scope.prodSpec,
                           taxRate: $scope.taxRate,
                           checkDate: $scope.thisMouth,
-                          // suuorname: $scope.suuorname,
-                          vendorUU: $scope.vendorUU,
+                          vendorUU: $scope.vendorUU
                       }
                   } else {
                       _params = {
@@ -570,32 +586,50 @@
                           prodSpec: $scope.prodSpec,
                           taxRate: $scope.taxRate,
                           checkDate: $scope.thisMouth,
-                          // suuorname: $scope.suuorname,
-                          vendorUU: $scope.vendorUU,
+                          vendorUU: $scope.vendorUU
                       }
                   }
                   FaApCheck.getAllArCheckByKeywords(_params, function (data) {
+                      $scope.checkMain = data;
                       if (data.details.length > 0) {
                           angular.forEach(data.details, function (item) {
                               item.$selected = true;
                           });
                           var _mouthArr = []
-                          data.thisMonthCount.forEach(function(item) {
+                          data.thisMonthCount && data.thisMonthCount.forEach(function(item) {
                               if (item.amount > 0) {
                                   _mouthArr.push(item)
                               }
                           })
                           data.thisMonthCount = _mouthArr
                           var _totalArr = []
-                          data.totalCount.forEach(function(item) {
+                          data.totalCount && data.totalCount.forEach(function(item) {
                               if (item.amount > 0) {
                                   _totalArr.push(item)
                               }
                           })
                           data.totalCount = _totalArr
+
+                          var _MonthTodoCountArr = []
+                          data.thisMonthTodoCount && list.thisMonthTodoCount.forEach(function(item) {
+                              if (item.amount > 0) {
+                                  _MonthTodoCountArr.push(item)
+                              }
+                          })
+                          data.thisMonthTodoCount = _MonthTodoCountArr
+
+                          var _MonthDoneCountArr = []
+                          data.thisMonthDoneCount && data.thisMonthDoneCount.forEach(function(item) {
+                              if (item.amount > 0) {
+                                  _MonthDoneCountArr.push(item)
+                              }
+                          })
+                          data.thisMonthDoneCount = _MonthDoneCountArr
+
                           $scope.dataInfo = data
                           $scope.data = data.details;
                           $scope.checkboxes.checked = true;
+                          // $scope.suuorname = data.vendorName
                           $scope.getTotalMoney();
                       } else {
                           toaster.pop('info', '提示', '当前没有需要对账记录');
@@ -640,7 +674,7 @@
               if (angular.isDefined($scope.taxRate)) {
                   url = url + '&taxRate=' + $scope.taxRate;
               }
-              window.location.href = url;
+              window.open(url);
           }
 
           /**
@@ -657,7 +691,6 @@
               $scope.filteredData = $filter('filter')($scope.data, $scope.condition.prodtitle || $scope.condition.uuorname || $scope.condition.venduuorname || $scope.condition.prodspec || $scope.condition.factory);
               // var dateFrom = $scope.condition.dateFrom;
               // var dateTo = $scope.condition.dateTo;
-
               angular.forEach($scope.filteredData, function (item) {
                   // if ((item.pidate >= dateFrom || dateFrom == '') && (item.pidate < dateTo || dateTo == '')) {
                   item.$selected = $scope.checkboxes.checked;
@@ -670,12 +703,12 @@
           $scope.getTotalMoney = function () {
               $scope.totalMoney = 0;
               angular.forEach($scope.data, function (check) {
-                  if (check.$selected) {
+                  // if (check.$selected) {
                       var price = DecimalNumber.accMul((check.thischeckqty || 0), (check.orderprice || 0));
                       $scope.totalMoney += Math.round(price * 100) / 100;
-                  } else {
-                      $scope.totalMoney += 0;
-                  }
+                  // } else {
+                  //     $scope.totalMoney += 0;
+                  // }
               });
 
           }
@@ -683,7 +716,6 @@
           // 点击其中一个明细的复选框
           $scope.checkOne = function (check) {
               check.$selected = !check.$selected
-
               $scope.Checkall()
           };
           $scope.stopPrevent = function(e) {
@@ -703,6 +735,7 @@
               });
               $scope.checkboxes.checked = result;
           }
+
           $scope.haveSelected = false;
 
           //生成应收对账单
@@ -872,7 +905,7 @@
                       FaApCheck.saveApCheck({}, $scope.apCheck, function (data) {
                           $scope.loading = false;
                           toaster.pop('success', '成功', '生成应收对账成功');
-                          $state.go('fa_apCheck_detail', {id: data.id}, {reload: true});
+                          $state.go('fa.apCheck_detail', {id: data.id}, {reload: true});
                       }, function (response) {
                           $scope.loading = false;
                           toaster.pop('error', '生成对账单失败', response.data);
@@ -884,14 +917,12 @@
               if ($scope.sameCust && $scope.validQty) {
                   $scope.saveApCheck();
               }
-          }
 
+
+          }
           // 新增
           $scope.MouthOutShow = true
           $scope.MouthinShow = true
-          $scope.apCheckCondition = {
-              $open: false
-          }
           $scope.apCheckopenFilterDatePicker = function ($event, item, openParam) {
               $event.preventDefault();
               $event.stopPropagation();
@@ -902,7 +933,10 @@
           };
           $scope.addMouth = function(val) {
               var _sp = new Date()
-              var _time = new Date($scope.thisMouth)
+              var _time1 = $scope.thisMouth + '-01'
+              _time1 = _time1.replace(/-/g, '/')
+              var _time  = new Date(_time1)
+
               _time.setMonth(_time.getMonth() + val)
               _time.setDate(1)
               _time.setMonth(_time.getMonth() + 1)
@@ -914,12 +948,16 @@
               }
               $scope.thisMouth = _time.getFullYear() + '-' + (_time.getMonth() + 1)
               $scope.apCheckCondition.$open = false
-              $scope.searchOrder()
+              // $scope.searchOrder()
           }
 
           $scope.addMouthOut = function(val) {
               var _sp = new Date()
-              var _time = new Date($scope.thisMouthOut)
+              // var _time = new Date($scope.thisMouthOut)
+              var _time1 = $scope.thisMouthOut + '-01'
+              _time1 = _time1.replace(/-/g, '/')
+              var _time  = new Date(_time1)
+              // var _time  = new Date($scope.thisMouthOut.replace(/-/g,'/'))
               _time.setMonth(_time.getMonth() + val)
               _time.setDate(1)
               _time.setMonth(_time.getMonth() + 1)
@@ -930,8 +968,8 @@
                   $scope.MouthOutShow = true
               }
               $scope.thisMouthOut = _time.getFullYear() + '-' + (_time.getMonth() + 1)
-              $scope.tableParams.page(1);
-              $scope.tableParams.reload();
+              // $scope.tableParams.page(1);
+              // $scope.tableParams.reload();
           }
 
           $scope.hideshowNotCheck = function() {
@@ -940,7 +978,9 @@
 
           $scope.$watch('thisMouthOut', function(newVal, oldVal) {
               var _fromDate = new Date()
+
               var _d = new Date(_fromDate)
+              // var _d  = new Date(_fromDate.replace(/-/g,'/'))
               _d.setDate(1)
               _d.setMonth(_d.getMonth() + 1)
               _d.setDate(_d.getDate() - 1)
@@ -952,7 +992,9 @@
                   return
               }
               if (newVal !== oldVal) {
-                  var _d = new Date(newVal)
+                  // var _d = new Date(newVal)
+                  var _newVal = newVal.replace(/-/g,'/')
+                  var _d  = new Date(_newVal)
                   _d.setDate(1)
                   _d.setMonth(_d.getMonth() + 1)
                   _d.setDate(_d.getDate() - 1)
@@ -969,6 +1011,7 @@
           $scope.$watch('thisMouth', function(newVal, oldVal) {
               var _fromDate = new Date()
               var _d = new Date(_fromDate)
+              // var _d  = new Date(_fromDate.replace(/-/g,'/'))
               _d.setDate(1)
               _d.setMonth(_d.getMonth() + 1)
               _d.setDate(_d.getDate() - 1)
@@ -980,7 +1023,9 @@
                   return
               }
               if (newVal !== oldVal) {
-                  var _d = new Date(newVal)
+                  // var _d = new Date(newVal)
+                  var _newVal = newVal.replace(/-/g,'/')
+                  var _d  = new Date(_newVal)
                   _d.setDate(1)
                   _d.setMonth(_d.getMonth() + 1)
                   _d.setDate(_d.getDate() - 1)

+ 98 - 41
src/main/webapp/resources/js/vendor/controllers/b2b/apCheck.js

@@ -4,7 +4,7 @@ define(['app/app'], function (app) {
   app.register.controller('PurchaseApCheckCtrl', ['$rootScope', '$scope', 'B2bFaApCheck', 'BaseService', 'ngTableParams', 'toaster', 'B2bReportService', 'Symbol', 'B2bCurrentRole',  'B2bDecimalNumber', '$filter', '$state',function ($rootScope, $scope, FaApCheck, BaseService, ngTableParams, toaster, ReportService, Symbol, CurrentRole, DecimalNumber, $filter, $state) {
       BaseService.scrollBackToTop();
       // 获取当前用户是否为普通用户
-      $rootScope.active = 'vendor_pay_center';
+      $rootScope.active = 'vendor_pay_center'
       CurrentRole.isUser({}, {}, function (data) {
           $scope.isUser = data.isUser;
       });
@@ -12,9 +12,9 @@ define(['app/app'], function (app) {
       $scope.condition = {dateZone: 1};
       $scope.currency = Symbol.currency;//将币别转化为对应的符号
       $scope.active = 'all';
-
-
-
+      $scope.apCheckCondition = {
+          $open: false
+      }
       /* 时间筛选初始化*/
       var fromDate = new Date();
       var toDate = new Date();
@@ -74,25 +74,28 @@ define(['app/app'], function (app) {
           getData: function ($defer, params) {
               $scope.loading = true;
               var pageParams = params.url();
-
               pageParams.searchFilter = { // 筛选条件
-                  keyword: $scope.keyword,
                   fromDate: getDateTime($scope.condition.dateFrom),
-                  endDate: getDateTime($scope.condition.dateTo)
+                  endDate: getDateTime($scope.condition.dateTo),
+                  keyword: $scope.keyword
               };
+              pageParams.keyword = $scope.keyword;
               if ($scope.active === 'all') {
                   pageParams.keyword = $scope.keyword
                   var _fromDate =  $scope.thisMouthOut + '-01 00:00:00'
-                  var _d = new Date(_fromDate)
+                  // var _d = new Date(_fromDate)
+                  _fromDate = _fromDate.replace(/-/g,'/')
+                  var _d  = new Date(_fromDate)
                   _d.setDate(1)
                   _d.setMonth(_d.getMonth() + 1)
                   _d.setDate(_d.getDate() - 1)
                   var _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
+                  _endDate = _endDate.replace(/-/g,'/')
+                  _fromDate = _fromDate.replace(/-/g,'/')
                   _endDate = new Date(_endDate).getTime()
                   _fromDate = new Date(_fromDate).getTime()
                   pageParams.searchFilter.fromDate =  _fromDate
                   pageParams.searchFilter.endDate = _endDate
-
                   FaApCheck.customer(BaseService.parseParams(pageParams), function (page) {
                       $scope.loading = false;
                       page.content && page.content.forEach(function(list) {
@@ -110,14 +113,28 @@ define(['app/app'], function (app) {
                               }
                           })
                           list.totalCount = _k
+
+                          var _MonthTodoCountArr = []
+                          list.thisMonthTodoCount && list.thisMonthTodoCount.forEach(function(item) {
+                              if (item.amount > 0) {
+                                  _MonthTodoCountArr.push(item)
+                              }
+                          })
+                          list.thisMonthTodoCount = _MonthTodoCountArr
+
+                          var _MonthDoneCountArr = []
+                          list.thisMonthDoneCount && list.thisMonthDoneCount.forEach(function(item) {
+                              if (item.amount > 0) {
+                                  _MonthDoneCountArr.push(item)
+                              }
+                          })
+                          list.thisMonthDoneCount = _MonthDoneCountArr
                       })
                       if (page) {
                           params.total(page.totalElement);
                           $defer.resolve(page.content);
                       }
                       $scope.ALLList = page.content
-                      $scope.infoCommon = page
-                      $scope.infoCommon.all = page.content && page.content.length
                       $scope.totalCount = page.totalElement;
                   }, function (response) {
                       $scope.loading = false;
@@ -129,8 +146,7 @@ define(['app/app'], function (app) {
                       if (page) {
                           params.total(page.totalElement);
                           $scope.data = $defer.resolve(page.content);
-                          $scope.infoCommon = page
-                          $scope.infoCommon.all = page.content && page.content.length
+
                           $scope.searchFilterXls = angular.copy(pageParams.searchFilter);//保存当前取值的条件
                       }
                   }, function (response) {
@@ -205,7 +221,8 @@ define(['app/app'], function (app) {
       };
 
       // 搜索框回车
-      $scope.onSearch = function () {
+      $scope.onSearch = function (keyword) {
+          $scope.keyword = keyword;
           $scope.tableParams.page(1);
           $scope.tableParams.reload();
       };
@@ -283,6 +300,7 @@ define(['app/app'], function (app) {
           $scope.showNotCheck = true
           $scope.suuorname = item.myEnterprise.enName
           $scope.customerUU = item.myEnterprise.uu
+          $scope.thisMouth = $scope.thisMouthOut
           this.searchOrder()
       }
 
@@ -322,15 +340,16 @@ define(['app/app'], function (app) {
           $scope.condition.venduuorname = $scope.vuuorname;
           if ($scope.condition.dateTo != null || $scope.keywordXls != null) {
 
-              $scope.fromDate = $scope.apCheckCondition.dateFrom ? $scope.apCheckCondition.dateFrom.getTime() : null;
-              $scope.endDate = $scope.apCheckCondition.dateTo ? $scope.apCheckCondition.dateTo.getTime() : null;
+              // $scope.fromDate = $scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null;
+              // $scope.endDate = $scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null;
               $scope.searchKeyWord = {
                   receiveName: $scope.receiveName,
                   factory: $scope.factory,
                   prodTitle: $scope.prodTitle,
                   prodSpec: $scope.prodSpec,
                   taxRate: $scope.taxRate,
-                  suuorname: $scope.suuorname
+                  suuorname: $scope.suuorname,
+                  customerUU: $scope.customerUU
               }
               $scope.exportKeywords = encodeURIComponent($scope.searchKeyWord);
               // $scope.fromDateXls = angular.copy($scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null);//保存当前取值的起始日期
@@ -339,6 +358,8 @@ define(['app/app'], function (app) {
               //     toaster.pop('warning', '提示', '请先选择客户');
               //     document.getElementById('suuorname').focus();//光标默认在客户
               // } else {
+              $scope.fromDate = $scope.apCheckCondition.dateFrom ? $scope.apCheckCondition.dateFrom.getTime() : null;
+              $scope.endDate = $scope.apCheckCondition.dateTo ? $scope.apCheckCondition.dateTo.getTime() : null;
               $scope.loading = true;
               var _params = {}
               if ($scope.apCheckCondition.$open) {
@@ -367,24 +388,42 @@ define(['app/app'], function (app) {
                   }
               }
               FaApCheck.getAllByKeywords(_params, function (data) {
+                  $scope.checkMain = data;
                   if (data.details.length > 0) {
                       angular.forEach(data.details, function (item) {
                           item.$selected = true;
                       });
                       var _mouthArr = []
-                      data.thisMonthCount.forEach(function(item) {
+                      data.thisMonthCount && data.thisMonthCount.forEach(function(item) {
                           if (item.amount > 0) {
                               _mouthArr.push(item)
                           }
                       })
                       data.thisMonthCount = _mouthArr
                       var _totalArr = []
-                      data.totalCount.forEach(function(item) {
+                      data.totalCount && data.totalCount.forEach(function(item) {
                           if (item.amount > 0) {
                               _totalArr.push(item)
                           }
                       })
                       data.totalCount = _totalArr
+
+                      var _MonthTodoCountArr = []
+                      data.thisMonthTodoCount && list.thisMonthTodoCount.forEach(function(item) {
+                          if (item.amount > 0) {
+                              _MonthTodoCountArr.push(item)
+                          }
+                      })
+                      data.thisMonthTodoCount = _MonthTodoCountArr
+
+                      var _MonthDoneCountArr = []
+                      data.thisMonthDoneCount && data.thisMonthDoneCount.forEach(function(item) {
+                          if (item.amount > 0) {
+                              _MonthDoneCountArr.push(item)
+                          }
+                      })
+                      data.thisMonthDoneCount = _MonthDoneCountArr
+
                       $scope.dataInfo = data
                       $scope.data = data.details;
                       $scope.checkboxes.checked = true;
@@ -445,10 +484,11 @@ define(['app/app'], function (app) {
           $scope.filteredData = $filter('filter')($scope.data, $scope.condition.prodtitle || $scope.condition.uuorname || $scope.condition.venduuorname || $scope.condition.prodspec || $scope.condition.factory);
           // var dateFrom = $scope.condition.dateFrom;
           // var dateTo = $scope.condition.dateTo;
-
           angular.forEach($scope.filteredData, function (item) {
-              // if ((item.pidate >= dateFrom || dateFrom == '') && (item.pidate < dateTo || dateTo == '')) {
-              item.$selected = $scope.checkboxes.checked;
+              if (item.haveChecked !== 1) {
+                  // if ((item.pidate >= dateFrom || dateFrom == '') && (item.pidate < dateTo || dateTo == '')) {
+                  item.$selected = $scope.checkboxes.checked;
+              }
               // }
           });
           $scope.getTotalMoney();
@@ -458,20 +498,22 @@ define(['app/app'], function (app) {
       $scope.getTotalMoney = function () {
           $scope.totalMoney = 0;
           angular.forEach($scope.data, function (check) {
-              if (check.$selected) {
+              // if (check.$selected) {
                   var price = DecimalNumber.accMul((check.thischeckqty || 0), (check.orderprice || 0));
                   $scope.totalMoney += Math.round(price * 100) / 100;
-              } else {
-                  $scope.totalMoney += 0;
-              }
+              // } else {
+              //     $scope.totalMoney += 0;
+              // }
           });
 
       }
 
       // 点击其中一个明细的复选框
       $scope.checkOne = function (check) {
+          if (check.haveChecked === 1) {
+              return
+          }
           check.$selected = !check.$selected
-
           $scope.Checkall()
       };
       $scope.stopPrevent = function(e) {
@@ -491,6 +533,7 @@ define(['app/app'], function (app) {
           });
           $scope.checkboxes.checked = result;
       }
+
       $scope.haveSelected = false;
 
       //生成应收对账单
@@ -558,7 +601,7 @@ define(['app/app'], function (app) {
 
               //此次对账后新的已转数
               $scope.newYCheckQty = 0;
-              if (check.$selected == true) {
+              if (check.$selected == true  && !check.haveChecked) {
                   $scope.apCheck.custName = check.custname;
                   $scope.apCheck.enUu = check.enuu;
                   $scope.apCheck.checkAmount += (check.thischeckqty || 0) * (check.orderprice || 0);
@@ -660,7 +703,7 @@ define(['app/app'], function (app) {
                   FaApCheck.saveApCheck({}, $scope.apCheck, function (data) {
                       $scope.loading = false;
                       toaster.pop('success', '成功', '生成应收对账成功');
-                      $state.go('fa_apCheck_detail', {id: data.id}, {reload: true});
+                      $state.go('fa.apCheck_detail', {id: data.id}, {reload: true});
                   }, function (response) {
                       $scope.loading = false;
                       toaster.pop('error', '生成对账单失败', response.data);
@@ -672,14 +715,12 @@ define(['app/app'], function (app) {
           if ($scope.sameCust && $scope.validQty) {
               $scope.saveApCheck();
           }
-      }
 
+
+      }
       // 新增
       $scope.MouthOutShow = true
       $scope.MouthinShow = true
-      $scope.apCheckCondition = {
-          $open: false
-      }
       $scope.apCheckopenFilterDatePicker = function ($event, item, openParam) {
           $event.preventDefault();
           $event.stopPropagation();
@@ -690,7 +731,10 @@ define(['app/app'], function (app) {
       };
       $scope.addMouth = function(val) {
           var _sp = new Date()
-          var _time = new Date($scope.thisMouth)
+          // var _time = new Date($scope.thisMouth)
+          var _time = $scope.thisMouth + '-01'
+          _time = _time.replace(/-/g,'/')
+          _time  = new Date(_time)
           _time.setMonth(_time.getMonth() + val)
           _time.setDate(1)
           _time.setMonth(_time.getMonth() + 1)
@@ -702,12 +746,16 @@ define(['app/app'], function (app) {
           }
           $scope.thisMouth = _time.getFullYear() + '-' + (_time.getMonth() + 1)
           $scope.apCheckCondition.$open = false
-          $scope.searchOrder()
+          // $scope.searchOrder()
       }
 
       $scope.addMouthOut = function(val) {
           var _sp = new Date()
-          var _time = new Date($scope.thisMouthOut)
+          var _time = $scope.thisMouthOut + '-01'
+          _time = _time.replace(/-/g,'/')
+          _time  = new Date(_time)
+          // var _time = new Date($scope.thisMouthOut)
+          // var _time  = new Date($scope.thisMouthOut.replace(/-/g,'/'))
           _time.setMonth(_time.getMonth() + val)
           _time.setDate(1)
           _time.setMonth(_time.getMonth() + 1)
@@ -718,8 +766,8 @@ define(['app/app'], function (app) {
               $scope.MouthOutShow = true
           }
           $scope.thisMouthOut = _time.getFullYear() + '-' + (_time.getMonth() + 1)
-          $scope.tableParams.page(1);
-          $scope.tableParams.reload();
+          // $scope.tableParams.page(1);
+          // $scope.tableParams.reload();
       }
 
       $scope.hideshowNotCheck = function() {
@@ -729,6 +777,7 @@ define(['app/app'], function (app) {
       $scope.$watch('thisMouthOut', function(newVal, oldVal) {
           var _fromDate = new Date()
           var _d = new Date(_fromDate)
+          // var _d  = new Date(_fromDate.replace(/-/g,'/'))
           _d.setDate(1)
           _d.setMonth(_d.getMonth() + 1)
           _d.setDate(_d.getDate() - 1)
@@ -740,7 +789,11 @@ define(['app/app'], function (app) {
               return
           }
           if (newVal !== oldVal) {
-              var _d = new Date(newVal)
+              // var _d = new Date(newVal)
+              var _d = newVal + '-01'
+              _d = _d.replace(/-/g,'/')
+              _d  = new Date(_d)
+              // var _d  = new Date(newVal.replace(/-/g,'/'))
               _d.setDate(1)
               _d.setMonth(_d.getMonth() + 1)
               _d.setDate(_d.getDate() - 1)
@@ -757,6 +810,7 @@ define(['app/app'], function (app) {
       $scope.$watch('thisMouth', function(newVal, oldVal) {
           var _fromDate = new Date()
           var _d = new Date(_fromDate)
+          // var _d  = new Date(_fromDate.replace(/-/g,'/'))
           _d.setDate(1)
           _d.setMonth(_d.getMonth() + 1)
           _d.setDate(_d.getDate() - 1)
@@ -768,7 +822,11 @@ define(['app/app'], function (app) {
               return
           }
           if (newVal !== oldVal) {
-              var _d = new Date(newVal)
+              // var _d = new Date(newVal)
+              var _d = newVal + '-01'
+              _d = _d.replace(/-/g,'/')
+              _d  = new Date(_d)
+              // var _d  = new Date(newVal.replace(/-/g,'/'))
               _d.setDate(1)
               _d.setMonth(_d.getMonth() + 1)
               _d.setDate(_d.getDate() - 1)
@@ -783,7 +841,6 @@ define(['app/app'], function (app) {
       })
 
 
-
       /**
      * 将日期转化为整数日期
      */

+ 69 - 33
src/main/webapp/resources/view/usercenter/b2b/fa/arCheck.html

@@ -509,6 +509,7 @@
       <li class="down-purchase" style="margin-right: 0;min-width: 80px"  ng-hide="active === 'all'">
         <a href="#" style="min-width: 80px" ng-click="exportXls()" target="_self" title="导出Excel表格" class="blue f14"><i class="fa fa-file-text fa-fw"></i>导出</a>
       </li>
+      <li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>
       <!--<li class="down-purchase" style="margin-right: 0;min-width: 80px" ng-hide="showNotCheck">-->
       <!--<a class="text-simple append" style="min-width: 80px" ui-sref="fa_apCheckList" title="新增对账单">-->
       <!--<i class="fa fa-plus-square fa-fw"></i>新增对账单-->
@@ -517,16 +518,16 @@
 
     </ul>
   </div>
-  <div class="com_tab tab_top" style="margin-bottom: 0px">
-    <ul>
-      <li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>
+  <!--<div class="com_tab tab_top" style="margin-bottom: 0px">-->
+    <!--<ul>-->
+      <!--<li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>-->
       <!--<li ng-class="{'active': active=='todo'}" ng-click="setActive('todo')"><a>待确认(<em ng-class="{'color-black': !unread.replied }" ng-bind="unread.replied || 0"></em>)</a></li>-->
-      <li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已对账</a></li>
+      <!--<li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已对账</a></li>-->
       <!--(<em ng-class="{'color-black': !unread.cancelled }" ng-bind="unread.cancelled || 0"></em>)-->
       <!--<li ng-class="{'active': active=='end'}" ng-click="setActive('end')"><a>已作废</a></li>-->
-      <li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>
-    </ul>
-  </div>
+      <!--<li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>-->
+    <!--</ul>-->
+  <!--</div>-->
   <div class="screen check-filter" ng-show="!showNotCheck">
     <div class="radio-block date-radio" ng-show="active !== 'all'" style="width: 33%">
       时间:
@@ -711,10 +712,12 @@
 
         <thead ng-show="active === 'all'">
         <tr class="header">
-          <th width="313">应付供应商名称</th>
-          <th width="250">本月应付</th>
-          <th width="250">应付总额</th>
-          <th width="160">操作</th>
+          <th width="200">应付供应商名称</th>
+          <th width="170">本月应付</th>
+          <th width="170">本月未对</th>
+          <th width="170">本月已对</th>
+          <th width="170">应付总额</th>
+          <th width="80">操作</th>
         </tr>
         </thead>
         <tbody ng-show="active === 'all'" ng-repeat="check in ALLList">
@@ -726,13 +729,28 @@
             </div>
           </td>
           <td ng-if="check.thisMonthCount.length === 0">-</td>
+
+          <td ng-if="check.thisMonthTodoCount.length > 0">
+            <div ng-repeat="count in check.thisMonthTodoCount">
+              <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
+            </div>
+          </td>
+          <td ng-if="check.thisMonthTodoCount.length === 0">-</td>
+
+          <td ng-if="check.thisMonthDoneCount.length > 0">
+            <div ng-repeat="count in check.thisMonthDoneCount">
+              <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
+            </div>
+          </td>
+          <td ng-if="check.thisMonthDoneCount.length === 0">-</td>
+
           <td ng-if="check.totalCount.length > 0">
             <div ng-repeat="count in check.totalCount">
               <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
             </div>
           </td>
           <td ng-if="check.totalCount.length === 0">-</td>
-          <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">对账明细</td>
+          <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">明细</td>
         </tr>
         </tbody>
 
@@ -755,7 +773,7 @@
         </tbody>
         <tbody ng-if="active === 'all' && (ALLList !== undefined && ALLList.length == 0)">
         <tr>
-          <td colspan="4">
+          <td colspan="6">
             <div class="empty">
               <div class="left_img">
                 <a><img src="static/img/all/empty-cart.png"></a>
@@ -795,6 +813,30 @@
               </div>
             </label>
           </div>
+
+          <div style="text-align: left;margin-top: 20px">
+            <label>本期间已对总额:</label>
+            <label style="text-align:left;vertical-align: top;">
+              <div ng-if="dataInfo.thisMonthDoneCount.length > 0" ng-repeat="count in dataInfo.thisMonthDoneCount">
+                <span>{{count.currency}}:{{count.amount | number:2}}</span>
+              </div>
+              <div ng-if="dataInfo.thisMonthDoneCount.length === 0">
+                0
+              </div>
+            </label>
+          </div>
+          <div style="text-align: left;margin-top: 20px">
+            <label>本期间未对总额:</label>
+            <label style="text-align:left;vertical-align: top;">
+              <div ng-if="dataInfo.thisMonthTodoCount.length > 0" ng-repeat="count in dataInfo.thisMonthTodoCount">
+                <span>{{count.currency}}:{{count.amount | number:2}}</span>
+              </div>
+              <div ng-if="dataInfo.thisMonthTodoCount.length === 0">
+                0
+              </div>
+            </label>
+          </div>
+
           <div style="text-align: left;margin-top: 20px">
             <label>应付总额:</label>
             <label style="text-align:left;vertical-align: top;">
@@ -950,15 +992,18 @@
             <!--<th width="36" style="vertical-align: middle;"><input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>-->
             <!--<th width="70">客户<br>名称</th>-->
             <th width="70">采购单</th>
+            <th width="60">发货单</th>
+            <th width="60">验收单</th>
             <th width="70">物料名称</th>
             <th width="70">规格型号</th>
-            <th width="60">发货单</th>
             <th width="55">发货数量</th>
-            <th width="60">验收单</th>
             <th width="100">验收数量</th>
             <th width="40">单价</th>
             <th width="40">税率</th>
             <th width="70">小计</th>
+            <th width="100">
+              对账人<br />/日期
+            </th>
             <!--<th width="35">序号</th>-->
             <!--<th width="60">类型</th>-->
             <!--<th width="60">单据<br>日期</th>-->
@@ -973,37 +1018,28 @@
       <div class="table-body-wrap">
         <table class="table table-bordered">
           <tr ng-repeat="check in data" ng-click="checkOne(check);getTotalMoney()" class="thAlign" style="height: 40px;">
-            <!--<td width="36" style="text-align: center;vertical-align: middle;">-->
-              <!--<input ng-model="check.$selected" name="checkbox" type="checkbox" ng-checked="check.$selected" ng-click="stopPrevent($event)"></td>-->
             <td width="70">{{::check.ordercode}}</td>
+            <td width="60">{{::check.sendcode}}</td>
+            <td width="60">{{::check.inoutno}}</td>
             <td width="70" title="{{check.prodtitle}}">
               <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
             </td>
             <td width="70" title="{{check.prodspec}}">
               <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
-            <td width="60">{{::check.sendcode}}</td>
+
             <td width="55">{{::check.qty}}</td>
-            <td width="60">{{::check.inoutno}}</td>
+
             <td width="100">{{::check.thischeckqty}}</td>
             <td width="40">{{::check.orderprice}}</td>
             <td width="40" align="center">{{::check.taxrate}}</td>
             <td width="70">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
-            <!--<td width="70" title="{{check.custname}}"><div-->
-            <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
-            <!--<td width="35" align="center">{{::check.detno}}</td>-->
-            <!--<td width="60">{{::check.piclass}}</td>-->
-            <!--<td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>-->
-            <!--<td width="90" title="{{check.receivename}}">-->
-            <!--<div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>-->
-            <!--</td>-->
-            <!--<td width="65">{{::check.prodcode}}</td>-->
-            <!--<td width="65">{{::check.factory}}</td>-->
-            <!--<td width="30">{{::check.currency}}</td>-->
-            <!--<td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>-->
-
+            <td width="100">
+              <div>{{::check.recorder || '-'}}</div>
+              <div>{{::check.apCheckDate | date:'yyyy年MM月dd日'  || '-'}}</div>
+            </td>
           </tr>
           <tr ng-if="!data || data.length==0">
-            <td colspan="10">
+            <td colspan="11">
               <div class="empty-block">
                 <i class="fa fa-exclamation-circle"></i>
                 <p class="text-muted">没有对账数据,请先筛选</p>

+ 1 - 1
src/main/webapp/resources/view/usercenter/b2b/order/usercenter_order.html

@@ -681,7 +681,7 @@
 				</div>
 			</div>
 			<div class="sreach-input fr">
-				<input type="search" placeholder="单据编号/客户名称/物料名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)"/>
+				<input type="search" placeholder="单据编号/供应商名称/物料名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)"/>
 				<a class="seek" href="javascript:void(0)" ng-click="onSearch(keyword)">搜索</a>
 			</div>
 		</div>

+ 1 - 1
src/main/webapp/resources/view/usercenter/forstore/product_upload.html

@@ -790,7 +790,7 @@
         top: 50%;
         left: 50%;
         margin-left: -50px;
-        margin-top: -60px;
+        margin-top: -180px;
     }
     #canvas {
         margin: 5% auto 0;

+ 134 - 78
src/main/webapp/resources/view/vendor/b2b/apCheck.html

@@ -509,6 +509,7 @@
       <li class="down-purchase" style="margin-right: 0;min-width: 80px"  ng-hide="active === 'all'">
         <a href="#" style="min-width: 80px" ng-click="exportXls()" target="_self" title="导出Excel表格" class="blue f14"><i class="fa fa-file-text fa-fw"></i>导出</a>
       </li>
+        <li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>
       <!--<li class="down-purchase" style="margin-right: 0;min-width: 80px" ng-hide="showNotCheck">-->
         <!--<a class="text-simple append" style="min-width: 80px" ui-sref="fa_apCheckList" title="新增对账单">-->
           <!--<i class="fa fa-plus-square fa-fw"></i>新增对账单-->
@@ -517,16 +518,16 @@
 
     </ul>
   </div>
-  <div class="com_tab tab_top" style="margin-bottom: 0px">
-    <ul>
-      <li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>
+  <!--<div class="com_tab tab_top" style="margin-bottom: 0px">-->
+    <!--<ul>-->
+      <!--<li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>-->
       <!--<li ng-class="{'active': active=='todo'}" ng-click="setActive('todo')"><a>待确认(<em ng-class="{'color-black': !unread.replied }" ng-bind="unread.replied || 0"></em>)</a></li>-->
-      <li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已对账</a></li>
+      <!--<li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已对账</a></li>-->
         <!--(<em ng-class="{'color-black': !unread.cancelled }" ng-bind="unread.cancelled || 0"></em>)-->
-      <li ng-class="{'active': active=='end'}" ng-click="setActive('end')"><a>已作废</a></li>
-        <li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>
-    </ul>
-  </div>
+      <!--<li ng-class="{'active': active=='end'}" ng-click="setActive('end')"><a>已作废</a></li>-->
+        <!--<li style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()"><img src="/static/img/vendor/images/backIcon.png" width="20"/>返回</li>-->
+    <!--</ul>-->
+  <!--</div>-->
   <div class="screen check-filter" ng-show="!showNotCheck">
     <div class="radio-block date-radio" ng-show="active !== 'all'" style="width: 33%">
       时间:
@@ -711,14 +712,16 @@
 
         <thead ng-show="active === 'all'">
           <tr class="header">
-            <th width="313">客户名称</th>
-            <th width="250">本月应收</th>
-            <th width="250">应收总额</th>
-            <th width="160">操作</th>
+            <th width="200">客户名称</th>
+              <th width="170">本月应收</th>
+              <th width="170">本月未对</th>
+              <th width="170">本月已对</th>
+              <th width="170">应收总额</th>
+            <th width="80">操作</th>
           </tr>
         </thead>
         <tbody ng-show="active === 'all'" ng-repeat="check in ALLList">
-          <tr >
+          <tr>
             <td style="color: #3f84f6">{{::check.myEnterprise.enName}}</td>
               <td ng-if="check.thisMonthCount.length > 0">
                   <div ng-repeat="count in check.thisMonthCount">
@@ -726,13 +729,28 @@
                   </div>
               </td>
               <td ng-if="check.thisMonthCount.length === 0">-</td>
+
+              <td ng-if="check.thisMonthTodoCount.length > 0">
+                  <div ng-repeat="count in check.thisMonthTodoCount">
+                      <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
+                  </div>
+              </td>
+              <td ng-if="check.thisMonthTodoCount.length === 0">-</td>
+
+              <td ng-if="check.thisMonthDoneCount.length > 0">
+                  <div ng-repeat="count in check.thisMonthDoneCount">
+                      <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
+                  </div>
+              </td>
+              <td ng-if="check.thisMonthDoneCount.length === 0">-</td>
+
               <td ng-if="check.totalCount.length > 0">
                   <div ng-repeat="count in check.totalCount">
                       <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
                   </div>
               </td>
               <td ng-if="check.totalCount.length === 0">-</td>
-            <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">对账明细</td>
+            <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">明细</td>
           </tr>
         </tbody>
 
@@ -755,7 +773,7 @@
         </tbody>
         <tbody ng-if="active === 'all' && (ALLList !== undefined && ALLList.length == 0)">
           <tr>
-            <td colspan="4">
+            <td colspan="6">
               <div class="empty">
                 <div class="left_img">
                   <a><img src="static/img/all/empty-cart.png"></a>
@@ -795,6 +813,29 @@
                 </div>
             </label>
         </div>
+            <div style="text-align: left;margin-top: 20px">
+                <label>本期间已对总额:</label>
+                <label style="text-align:left;vertical-align: top;">
+                    <div ng-if="dataInfo.thisMonthDoneCount.length > 0" ng-repeat="count in dataInfo.thisMonthDoneCount">
+                        <span>{{count.currency}}:{{count.amount | number:2}}</span>
+                    </div>
+                    <div ng-if="dataInfo.thisMonthDoneCount.length === 0">
+                        0
+                    </div>
+                </label>
+            </div>
+            <div style="text-align: left;margin-top: 20px">
+                <label>本期间未对总额:</label>
+                <label style="text-align:left;vertical-align: top;">
+                    <div ng-if="dataInfo.thisMonthTodoCount.length > 0" ng-repeat="count in dataInfo.thisMonthTodoCount">
+                        <span>{{count.currency}}:{{count.amount | number:2}}</span>
+                    </div>
+                    <div ng-if="dataInfo.thisMonthTodoCount.length === 0">
+                        0
+                    </div>
+                </label>
+            </div>
+
         <div style="text-align: left;margin-top: 20px">
             <label>应收总额:</label>
             <label style="text-align:left;vertical-align: top;">
@@ -945,72 +986,87 @@
     <!-- 标签scroll-table用于表头滚动 -->
     <div class="table-wrap" id="order-detail-list" scroll-table>
       <div class="table-header-wrap">
-        <table class="table table-bordered">
-          <tr>
-            <th width="36" style="vertical-align: middle;"><input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
-            <!--<th width="70">客户<br>名称</th>-->
-            <th width="70">采购单</th>
-            <th width="70">物料名称</th>
-            <th width="70">规格型号</th>
-            <th width="60">发货单</th>
-            <th width="55">发货数量</th>
-            <th width="60">验收单</th>
-            <th width="100">验收数量</th>
-            <th width="40">单价</th>
-            <th width="40">税率</th>
-            <th width="70">小计</th>
-            <!--<th width="35">序号</th>-->
-            <!--<th width="60">类型</th>-->
-            <!--<th width="60">单据<br>日期</th>-->
-            <!--<th width="90">应付<br>供应商</th>-->
-            <!--<th width="65">客户<br>料号</th>-->
-            <!--<th width="65">送货<br>工厂</th>-->
-            <!--<th width="30">币别</th>-->
-            <!--<th width="60">金额</th>-->
-          </tr>
-        </table>
+          <table class="table table-bordered">
+              <tr>
+                  <th width="55" style="vertical-align: middle;"><input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
+                  <!--<th width="70">客户<br>名称</th>-->
+                  <th width="70">采购单</th>
+                  <th width="60">发货单</th>
+                  <th width="60">验收单</th>
+                  <th width="70">物料名称</th>
+                  <th width="70">规格型号</th>
+                  <!--<th width="60">发货单</th>-->
+                  <th width="55">发货数量</th>
+                  <th width="80">验收数量</th>
+                  <th width="40">单价</th>
+                  <th width="40">税率</th>
+                  <th width="70">小计</th>
+                  <th width="110">
+                      对账人<br />/日期
+                  </th>
+                  <!--<th width="35">序号</th>-->
+                  <!--<th width="60">类型</th>-->
+                  <!--<th width="60">单据<br>日期</th>-->
+                  <!--<th width="90">应付<br>供应商</th>-->
+                  <!--<th width="65">客户<br>料号</th>-->
+                  <!--<th width="65">送货<br>工厂</th>-->
+                  <!--<th width="30">币别</th>-->
+                  <!--<th width="60">金额</th>-->
+              </tr>
+          </table>
       </div>
       <div class="table-body-wrap">
-        <table class="table table-bordered">
-          <tr ng-repeat="check in data" ng-click="checkOne(check);getTotalMoney()" class="thAlign" style="height: 40px;">
-            <td width="36" style="text-align: center;vertical-align: middle;">
-              <input ng-model="check.$selected" name="checkbox" type="checkbox" ng-checked="check.$selected" ng-click="stopPrevent($event)"></td>
-            <td width="70">{{::check.ordercode}}</td>
-            <td width="70" title="{{check.prodtitle}}">
-              <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
-            </td>
-            <td width="70" title="{{check.prodspec}}">
-              <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
-            <td width="60">{{::check.sendcode}}</td>
-            <td width="55">{{::check.qty}}</td>
-            <td width="60">{{::check.inoutno}}</td>
-            <td width="100">{{::check.thischeckqty}}</td>
-            <td width="40">{{::check.orderprice}}</td>
-            <td width="40" align="center">{{::check.taxrate}}</td>
-            <td width="70">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
-            <!--<td width="70" title="{{check.custname}}"><div-->
-                    <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
-            <!--<td width="35" align="center">{{::check.detno}}</td>-->
-            <!--<td width="60">{{::check.piclass}}</td>-->
-            <!--<td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>-->
-            <!--<td width="90" title="{{check.receivename}}">-->
-              <!--<div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>-->
-            <!--</td>-->
-            <!--<td width="65">{{::check.prodcode}}</td>-->
-            <!--<td width="65">{{::check.factory}}</td>-->
-            <!--<td width="30">{{::check.currency}}</td>-->
-            <!--<td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>-->
+          <table class="table table-bordered">
+              <tr ng-repeat="check in data" ng-click="checkOne(check);getTotalMoney()" class="thAlign" style="height: 40px;">
+                  <td width="55" style="text-align: center;vertical-align: middle;">
+                      <input ng-model="check.$selected" name="checkbox" type="checkbox" ng-checked="check.$selected" ng-click="stopPrevent($event)" ng-if="check.haveChecked !== 1">
+                      <span ng-if="check.haveChecked === 1">已对账</span>
+                  </td>
+                  <td width="70">{{::check.ordercode}}</td>
+                  <td width="60">{{::check.sendcode}}</td>
+                  <td width="60">{{::check.inoutno}}</td>
+                  <td width="70" title="{{check.prodtitle}}">
+                      <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
+                  </td>
+                  <td width="70" title="{{check.prodspec}}">
+                      <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
 
-          </tr>
-          <tr ng-if="!data || data.length==0">
-            <td colspan="11">
-              <div class="empty-block">
-                <i class="fa fa-exclamation-circle"></i>
-                <p class="text-muted">没有对账数据,请先筛选</p>
-              </div>
-            </td>
-          </tr>
-        </table>
+                  <td width="55">{{::check.qty}}</td>
+
+                  <td width="80">{{::check.thischeckqty}}</td>
+                  <td width="40">{{::check.orderprice}}</td>
+                  <td width="40" align="center">{{::check.taxrate}}</td>
+                  <td width="70">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
+                  <td width="110" ng-if="check.haveChecked === 1">
+                      <div>{{::check.recorder || '-'}}</div>
+                      <div>{{::check.apCheckDate | date:'yyyy年MM月dd日'  || '-'}}</div>
+                  </td>
+                  <td width="110" ng-if="check.haveChecked !== 1">
+                      未对账
+                  </td>
+                  <!--<td width="70" title="{{check.custname}}"><div-->
+                  <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
+                  <!--<td width="35" align="center">{{::check.detno}}</td>-->
+                  <!--<td width="60">{{::check.piclass}}</td>-->
+                  <!--<td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>-->
+                  <!--<td width="90" title="{{check.receivename}}">-->
+                  <!--<div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>-->
+                  <!--</td>-->
+                  <!--<td width="65">{{::check.prodcode}}</td>-->
+                  <!--<td width="65">{{::check.factory}}</td>-->
+                  <!--<td width="30">{{::check.currency}}</td>-->
+                  <!--<td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>-->
+
+              </tr>
+              <tr ng-if="!data || data.length==0">
+                  <td colspan="11">
+                      <div class="empty-block">
+                          <i class="fa fa-exclamation-circle"></i>
+                          <p class="text-muted">没有对账数据,请先筛选</p>
+                      </div>
+                  </td>
+              </tr>
+          </table>
       </div>
       <div style="padding: 10px 20px">本期间应收总额:{{totalMoney | number:2 || 0}}</div>
     </div>

+ 4 - 5
src/main/webapp/resources/view/vendor/b2b/apCheck_detail.html

@@ -277,11 +277,11 @@
       <table class="block table table-default table-striped table-hover">
         <thead>
         <tr class="header">
+          <th width="40">采购单号</th>
+          <th width="100">验收单</th>
           <th width="30" style="padding:8px 0;">行号</th>
           <th width="120">商品</th>
-          <th width="40">采购单号</th>
           <th>采购序号</th>
-          <th width="100">验收单</th>
           <th>验收单序号</th>
           <th>单价</th>
           <!--<th width="80">单据类型</th>-->
@@ -293,16 +293,15 @@
         </thead>
         <tbody ng-repeat="item in data.items" style="text-align: center;">
         <tr>
+          <td ng-bind="item.orderCode"></td>
+          <td ng-bind="item.inoutno"></td>
           <td ng-bind="item.number" style="padding:8px 0;"></td>
           <td style="max-width: 250px;" class="text-left">
             <div>编号: <span ng-bind="item.prodCode"></span></div>
             <div>规格: <span ng-bind="item.prodSpec"></span></div>
           </td>
-          <td ng-bind="item.orderCode"></td>
           <td ng-bind="item.orderDetno"></td>
-          <td ng-bind="item.inoutno"></td>
           <td ng-bind="item.inoutnodetno"></td>
-
           <!--<td ng-bind="item.orderClass"></td>-->
           <td ng-bind="isUser?'-':item.price"></td>
           <td ng-bind="item.taxrate"></td>

+ 2 - 2
src/main/webapp/resources/view/vendor/forstore/seekPurchase.html

@@ -1142,8 +1142,8 @@
                 </div>
                 <div class="content-line">
                     <div class="form-item form-left">
-                        <span><i>*</i>交期:</span>
-                        <input type="number" class="form-control" ng-change="onLeadtimeInput()" ng-blur="onLeadtimeBlur()" ng-model="inquiryItem.leadtime" placeholder="天数">
+                        <span><i>*</i>交期(天):</span>
+                        <input type="number" class="form-control" ng-change="onLeadtimeInput()" ng-blur="onLeadtimeBlur()" ng-model="inquiryItem.leadtime" placeholder="最长交期">
                     </div>
                     <div class="form-item form-right">
                         <span><i>*</i>税率:</span>

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/vendor_upload.html

@@ -812,7 +812,7 @@
         top: 50%;
         left: 50%;
         margin-left: -50px;
-        margin-top: -60px;
+        margin-top: -180px;
     }
     #canvas {
         margin: 5% auto 0;

+ 1 - 1
src/test/java/com/uas/platform/b2c/DesTest.java

@@ -11,7 +11,7 @@ import java.util.Set;
 
 public class DesTest {
     @Test
-    public void test(){
+    public void test() {
         // 测试
         System.out.println("text & dev: ");
         prindHexString("jdbc:mysql://192.168.100.3:3306/mall_test_dev?characterEncoding=UTF-8&allowMultiQueries=true&rewriteBatchedStatements=true&autoReconnect=true&useUnicode=true");