Browse Source

bug修复

seimin 11 months ago
parent
commit
8e342d439c
2 changed files with 11 additions and 1 deletions
  1. 10 0
      assets/js/controllers/mainCtrl.js
  2. 1 1
      assets/views/newOrderSeimin.html

+ 10 - 0
assets/js/controllers/mainCtrl.js

@@ -3764,6 +3764,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
3764 3764
     $rootScope.newOrder = function (model1, type = '') {
3765 3765
       $rootScope.newOrderShowOpen = true;
3766 3766
       $rootScope.newOrderType = type;
3767
+      console.log('newOrderType', $rootScope.newOrderType)
3767 3768
       //进入弹窗,强制示忙
3768 3769
       if (localStorage.getItem('fenjiNumber')) {
3769 3770
         setTimeout(()=>{
@@ -3789,6 +3790,15 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
3789 3790
         ) {
3790 3791
           // -------------------start----------------------
3791 3792
           $scope.modelData = modelData;
3793
+          $scope.menuAuth = {
3794
+            allSupplement: false,//补单
3795
+          }
3796
+          for (var i = 0; i < $rootScope.user.menu.length; i++) {
3797
+              if ($rootScope.user.menu[i].link == "shijianliebiao_supplement") {
3798
+                $scope.menuAuth.allSupplement = true
3799
+              }
3800
+          }
3801
+          console.log('补单', $scope.menuAuth.allSupplement)
3792 3802
           // 事件报修图片
3793 3803
           $scope.requestImgs = [];
3794 3804
           // 当前所属院区处理

+ 1 - 1
assets/views/newOrderSeimin.html

@@ -516,8 +516,8 @@
516 516
       <button class="btn btn-primary" ng-click="build()">直接解决</button>
517 517
       <button class="btn btn-primary" ng-click="buildAndAssign()">建单并派单</button>
518 518
       <button class="btn btn-primary" ng-click="temporaryStorage()">暂存</button>
519
-      <button class="btn btn-primary" ng-click="supplement()">补单</button>
520 519
     </ng-container>
520
+    <button class="btn btn-primary" ng-click="supplement()" ng-if="!newOrderType && menuAuth.allSupplement">补单</button>
521 521
     <ng-container ng-if="newOrderType === 'edit'">
522 522
       <button class="btn btn-primary" ng-click="editSave()">保存</button>
523 523
     </ng-container>