Commit 5c295f2489ccb8d6b64923b5583d984bc48fed4b
1 parent
43c1ea3c
1、车辆设备号修改只能在设备管理中修改
2、报废车辆自动生成报废号,原来的设备编号加前缀BF-
Showing
2 changed files
with
9 additions
and
0 deletions
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/edit.html
| ... | ... | @@ -178,6 +178,7 @@ |
| 178 | 178 | <input type="text" class="form-control" |
| 179 | 179 | name="equipmentCode" ng-model="ctrl.busInfoForSave.equipmentCode" |
| 180 | 180 | required placeholder="请输入设备终端号" |
| 181 | + readonly | |
| 181 | 182 | remote-Validation |
| 182 | 183 | remotevtype="cars_sbbh" |
| 183 | 184 | remotevparam="{{ {'id_eq': ctrl.busInfoForSave.id, 'equipmentCode_eq': ctrl.busInfoForSave.equipmentCode} | json}}" | ... | ... |
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/module.js
| ... | ... | @@ -293,6 +293,14 @@ angular.module('ScheduleApp').controller( |
| 293 | 293 | // 提交方法 |
| 294 | 294 | self.submit = function() { |
| 295 | 295 | console.log(self.busInfoForSave); |
| 296 | + | |
| 297 | + // 报废的车辆,修改原来的车辆终端号 | |
| 298 | + if (self.busInfoForSave.scrapState == true) { | |
| 299 | + self.busInfoForSave.equipmentCode = "BF-" + self.busInfoForSave.equipmentCode; | |
| 300 | + self.busInfoForSave.scrapCode = "BF-" + self.busInfoForSave.equipmentCode; | |
| 301 | + } | |
| 302 | + | |
| 303 | + | |
| 296 | 304 | // 保存或者更新 |
| 297 | 305 | self.busInfoForSave.$save(function() { |
| 298 | 306 | DataStore.refreshData("cl"); | ... | ... |