Selaa lähdekoodia

Merge branch 'master' into lmm

seimin 11 kuukautta sitten
vanhempi
commit
355f6e8372

+ 27 - 25
assets/js/controllers/consumables/consumablesCtrl.js

@@ -40,9 +40,9 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
40 40
         $rootScope.hc_eject_companyIds_caozuo = [];
41 41
         $rootScope.hc_eject_startPrice_caozuo = '';
42 42
         $rootScope.hc_eject_endPrice_caozuo = '';
43
-        $rootScope.hc_eject_isWarehousing_caozuo = 0;
43
+        // $rootScope.hc_eject_isWarehousing_caozuo = 0;
44 44
         $rootScope.hc_eject_inventoryNum_caozuo = '';
45
-        $rootScope.hc_eject_inventorySum_caozuo = '';
45
+        // $rootScope.hc_eject_inventorySum_caozuo = '';
46 46
         delete $rootScope.hc_eject_id_caozuo;
47 47
         // -------------------
48 48
         $scope.hc.unit = ''
@@ -50,8 +50,8 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
50 50
         $scope.select_updata_pinpai.updata_pinpai = {name:''};
51 51
         $scope.select_updata_guige.updata_guige = {name:''};
52 52
         $scope.hc_eject_inventoryNum = '';
53
-        $scope.hc_eject_inventorySum = '';
54
-        $scope.isWarehousing = 0;
53
+        // $scope.hc_eject_inventorySum = '';
54
+        // $scope.isWarehousing = 0;
55 55
         $scope.startPrice = '';
56 56
         $scope.endPrice = '';
57 57
         $scope.companyIds = null;
@@ -89,9 +89,9 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
89 89
         $rootScope.hc_eject_companyIds_caozuo = [];
90 90
         $rootScope.hc_eject_startPrice_caozuo = '';
91 91
         $rootScope.hc_eject_endPrice_caozuo = '';
92
-        $rootScope.hc_eject_isWarehousing_caozuo = 0;
92
+        // $rootScope.hc_eject_isWarehousing_caozuo = 0;
93 93
         $rootScope.hc_eject_inventoryNum_caozuo = '';
94
-        $rootScope.hc_eject_inventorySum_caozuo = '';
94
+        // $rootScope.hc_eject_inventorySum_caozuo = '';
95 95
         delete $rootScope.hc_eject_id_caozuo;
96 96
         // ----------------------------------
97 97
         $rootScope.hc_eject_big = false; //编辑弹出框
@@ -338,17 +338,17 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
338 338
         $scope.endPrice = val;
339 339
     })
340 340
     // 是否库存hc_eject_isWarehousing_caozuo
341
-    $scope.$watch('hc_eject_isWarehousing_caozuo', function (val) {
342
-        $scope.isWarehousing = val;
343
-    })
341
+    // $scope.$watch('hc_eject_isWarehousing_caozuo', function (val) {
342
+    //     $scope.isWarehousing = val;
343
+    // })
344 344
     // 在库数量
345 345
     $scope.$watch('hc_eject_inventoryNum_caozuo', function (val) {
346 346
         $scope.hc_eject_inventoryNum = val;
347 347
     })
348 348
     // 入库数量
349
-    $scope.$watch('hc_eject_inventorySum_caozuo', function (val) {
350
-        $scope.hc_eject_inventorySum = val;
351
-    })
349
+    // $scope.$watch('hc_eject_inventorySum_caozuo', function (val) {
350
+    //     $scope.hc_eject_inventorySum = val;
351
+    // })
352 352
     $scope.reset = function () {
353 353
         $scope.select_val = {};
354 354
         $scope.fileData.consumable = {};
@@ -356,16 +356,16 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
356 356
     }
357 357
 
358 358
     // 是否库存
359
-    $scope.changeWarehousing = function(type){
360
-        $scope.isWarehousing = type;
361
-    }
359
+    // $scope.changeWarehousing = function(type){
360
+    //     $scope.isWarehousing = type;
361
+    // }
362 362
 
363 363
     // 编辑保存按钮
364 364
     $scope.companyIds = null;
365 365
     $scope.startPrice = '';
366 366
     $scope.endPrice = '';
367
-    $scope.isWarehousing = 0;
368
-    $scope.hc_eject_inventorySum = '';
367
+    // $scope.isWarehousing = 0;
368
+    // $scope.hc_eject_inventorySum = '';
369 369
     $scope.updata_company = [];
370 370
     $scope.hc = {
371 371
         unit: '',//单位
@@ -378,7 +378,8 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
378 378
             ||!$scope.companyIds
379 379
             ||(!$scope.startPrice&&$scope.startPrice!==0)
380 380
             ||(!$scope.endPrice&&$scope.endPrice!==0)
381
-            ||($scope.isWarehousing == 1&&($scope.hc_eject_inventorySum===null||$scope.hc_eject_inventoryNum===null))
381
+            // ||($scope.isWarehousing == 1&&($scope.hc_eject_inventorySum===null||$scope.hc_eject_inventoryNum===null))
382
+            ||($scope.hc_eject_inventoryNum===null)
382 383
             ) {
383 384
             SweetAlert.swal({
384 385
                 title: "保存失败",
@@ -393,16 +394,17 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
393 394
                     "unit": $scope.hc.unit,
394 395
                     "brandModel": $scope.select_updata_pinpai.updata_pinpai.name,
395 396
                     "specification": $scope.select_updata_guige.updata_guige.name,
396
-                    isInventory:$scope.isWarehousing,
397
+                    // isInventory:$scope.isWarehousing,
397 398
                     startPrice:$scope.startPrice,
398 399
                     endPrice:$scope.endPrice,
399 400
                     companyIds:$scope.companyIds.map(v=>v.id).toString()
400 401
                 }
401 402
             };
402
-            if($scope.isWarehousing == 1){
403
-                edit_data.consumable.inventoryNum = $scope.hc_eject_inventoryNum;
404
-                edit_data.consumable.inventorySum = $scope.hc_eject_inventorySum;
405
-            }
403
+            // if($scope.isWarehousing == 1){
404
+            //     edit_data.consumable.inventoryNum = $scope.hc_eject_inventoryNum;
405
+            //     edit_data.consumable.inventorySum = $scope.hc_eject_inventorySum;
406
+            // }
407
+            edit_data.consumable.inventoryNum = $scope.hc_eject_inventoryNum;
406 408
             if($rootScope.isAdds){
407 409
                 edit_data.consumable.inOutInventory = 1;//入库1,出库2
408 410
             }else{
@@ -981,9 +983,9 @@ app.controller('hc_caozuoCtrl', ['$rootScope', '$http', '$scope', '$modal', '$st
981 983
         $rootScope.hc_eject_companyIds_caozuo = $scope.item.companyIds ? $scope.item.companyIds.split(',') : []; //供货公司
982 984
         $rootScope.hc_eject_startPrice_caozuo = $scope.item.startPrice; //费用区间开始
983 985
         $rootScope.hc_eject_endPrice_caozuo = $scope.item.endPrice; //费用区间结束
984
-        $rootScope.hc_eject_isWarehousing_caozuo = $scope.item.isInventory || 0; //是否库存
986
+        // $rootScope.hc_eject_isWarehousing_caozuo = $scope.item.isInventory || 0; //是否库存
985 987
         $rootScope.hc_eject_inventoryNum_caozuo = $scope.item.inventoryNum; //耗材在库数量
986
-        $rootScope.hc_eject_inventorySum_caozuo = $scope.item.inventorySum; //耗材入库数量
988
+        // $rootScope.hc_eject_inventorySum_caozuo = $scope.item.inventorySum; //耗材入库数量
987 989
         $rootScope.hc_eject_id_caozuo = $scope.item.id; //耗材id
988 990
 
989 991
     };

+ 2 - 1
assets/js/controllers/incident/incidentCtrl.js

@@ -1228,8 +1228,9 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1228 1228
                         && fileItem.file.type !== 'application/pdf'
1229 1229
                         && fileItem.file.type !== 'application/vnd.ms-excel'
1230 1230
                         && fileItem.file.type !== 'application/msword'
1231
+                        && fileItem.file.type !== 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
1231 1232
                     ) {
1232
-                        alert("只能上传word,excel,pdf,txt");
1233
+                        alert("只能上传word,excel,pdf,txt,.ppt");
1233 1234
                         fileItem.uploader.queue.pop();
1234 1235
                         console.log($scope);
1235 1236
                     }

+ 8 - 7
assets/views/consumables/list.html

@@ -325,8 +325,8 @@
325 325
                     <div>*</div>
326 326
                     <div>*</div>
327 327
                     <div>*</div>
328
-                    <div ng-show="isWarehousing == 1">*</div>
329
-                    <div ng-show="isWarehousing == 1">*</div>
328
+                    <!-- <div ng-show="isWarehousing == 1">*</div> -->
329
+                    <!-- <div ng-show="isWarehousing == 1">*</div> -->
330 330
                 </div>
331 331
                 <form class="rigt">
332 332
                     <div class="div">
@@ -390,7 +390,7 @@
390 390
                             </ui-select-choices>
391 391
                         </ui-select>
392 392
                     </div>
393
-                    <div class="div">
393
+                    <!-- <div class="div">
394 394
                         <span>是否库存:</span><br>
395 395
                         <ul class="tab_bdItem_tab">
396 396
                             <li class="fl" ng-click="changeWarehousing(1)">
@@ -402,12 +402,13 @@
402 402
                                 <span>否</span>
403 403
                             </li>
404 404
                         </ul>
405
-                    </div>
406
-                    <div class="div" ng-show="isWarehousing == 1">
405
+                    </div> -->
406
+                    <!-- <div class="div" ng-show="isWarehousing == 1">
407 407
                         <span>入库总数量:</span><br>
408 408
                         <input type="number" ng-model="hc_eject_inventorySum" class="xialaipt" ng-change="changePrice(hc_eject_inventorySum,'hc_eject_inventorySum')" step="1" min="0">
409
-                    </div>
410
-                    <div class="div" ng-show="isWarehousing == 1">
409
+                    </div> -->
410
+                    <!-- <div class="div" ng-show="isWarehousing == 1"> -->
411
+                    <div class="div">
411 412
                         <span>在库数量:</span><br>
412 413
                         <input type="number" ng-model="hc_eject_inventoryNum" class="xialaipt" ng-change="changePrice(hc_eject_inventoryNum,'hc_eject_inventoryNum')" step="1" min="0">
413 414
                     </div>

+ 3 - 3
assets/views/incident/incidentDetail.html

@@ -221,7 +221,7 @@
221 221
                                         <div class="control-label col-xs-6  fontsizes-14 formheardpad">
222 222
                                             <div class="row pull-left ">报修地址:</div>
223 223
                                         </div>
224
-                                        <div class="control-label col-xs-6 col-0   fontsizes-14 formheardpad">
224
+                                        <div class="control-label col-xs-6 col-0   fontsizes-14 formheardpad" style="word-break: break-all;">
225 225
                                             <div>{{model.place ? (model.place.area.area + model.place.place) : ''}}{{model.houseNumber || ''}}</div>
226 226
                                         </div>
227 227
                                     </div>
@@ -387,12 +387,12 @@
387 387
                         </div>
388 388
                     </div>
389 389
                 </div>
390
-                <div class="col-xs-4 ui-label">
390
+                <div class="col-xs-12 ui-label">
391 391
                     <div class="form-group">
392 392
                         <div class="padding-top-5">
393 393
                             <label>故障描述:</label>
394 394
                             <div>
395
-                                <input class="form-control" ng-value="model.description" type="text" disabled="disabled" />
395
+                                <textarea class="form-control autosize msd-elastic: \n;" data-ng-model="model.description" ng-disabled="{{true}}"></textarea>
396 396
                             </div>
397 397
                         </div>
398 398
                     </div>

+ 1 - 1
assets/views/incident/tpl/doing.tpl.html

@@ -65,7 +65,7 @@
65 65
     <div class="form-group incidentsearch" style="margin:0 auto;width: 300px;">
66 66
         <div class="panel panel-white">
67 67
             <div class="panel-heading">
68
-                <div style="width: 120px;" class="btn btn-blue btn-o btn-file col-md-2"><i class="fa fa-plus"></i><span translate="form.button.SELECTFILE"></span><input name="uploadedFile" accept=".pdf,.xlsx,.xls,.doc,.docx,.txt" type="file" nv-file-select="" uploader="uploader" />
68
+                <div style="width: 120px;" class="btn btn-blue btn-o btn-file col-md-2"><i class="fa fa-plus"></i><span translate="form.button.SELECTFILE"></span><input name="uploadedFile" accept=".pdf,.xlsx,.xls,.doc,.docx,.txt,.ppt,.pptx" type="file" nv-file-select="" uploader="uploader" />
69 69
                 </div>
70 70
             </div>
71 71
             <div class="panel-body">

+ 1 - 1
assets/views/system/tpl/faultConsumableschange.html

@@ -33,7 +33,7 @@
33 33
               repeat="item in consumableList"
34 34
               refresh="searchConsumable($select.search)"
35 35
             >
36
-              <div ng-bind-html="item.name + '(' + item.brandModel + ')' + '(' + item.unit + ')' | highlight: $select.search"></div>
36
+              <div ng-bind-html="item.name + '(' + item.brandModel + ')' + '(' + item.unit + ')' + '(' + item.inventoryNum + ')' | highlight: $select.search"></div>
37 37
             </ui-select-choices>
38 38
           </ui-select>
39 39
         </div>