Merge branch 'master' of http://121.40.234.130:8899/root/wuHanXinRui
This commit is contained in:
@@ -108,6 +108,7 @@
|
|||||||
EM_BI_EquipmentSpareBOM bomdtl
|
EM_BI_EquipmentSpareBOM bomdtl
|
||||||
left join md_me_materialbase materialbase on materialbase.material_id = bomdtl.material_id
|
left join md_me_materialbase materialbase on materialbase.material_id = bomdtl.material_id
|
||||||
left join md_pb_classstandard classstandard on materialbase.material_type_id = classstandard.class_id
|
left join md_pb_classstandard classstandard on materialbase.material_type_id = classstandard.class_id
|
||||||
|
where 1=1
|
||||||
OPTION 输入.devicerecord_id <> ""
|
OPTION 输入.devicerecord_id <> ""
|
||||||
bomdtl.devicerecord_id = 输入.devicerecord_id
|
bomdtl.devicerecord_id = 输入.devicerecord_id
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
|||||||
@@ -90,15 +90,6 @@ public class DeviceScrapServiceImpl implements DeviceScrapService {
|
|||||||
JSONObject json = fileTab.query("devicerecord_id ='" + devicerecord_id + "' and is_delete = '0'").uniqueResult(0);
|
JSONObject json = fileTab.query("devicerecord_id ='" + devicerecord_id + "' and is_delete = '0'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(json)) throw new BootstrapMethodError("档案已被删除");
|
if (ObjectUtil.isEmpty(json)) throw new BootstrapMethodError("档案已被删除");
|
||||||
|
|
||||||
String status = json.getString("status");
|
|
||||||
if (StrUtil.equals(status, "11")) {
|
|
||||||
// 需完成保养单或者维修单
|
|
||||||
JSONObject jsonMain = mainTab.query("devicerecord_id = '" + devicerecord_id + "' and is_delete = '0' and invstatus = '99'").uniqueResult(0);
|
|
||||||
JSONObject jsonRe = reTab.query("devicerecord_id = '" + devicerecord_id + "' and is_delete = '0' and invstatus = '99'").uniqueResult(0);
|
|
||||||
if (ObjectUtil.isEmpty(jsonMain) || ObjectUtil.isEmpty(jsonRe)) {
|
|
||||||
throw new BadRequestException("保养单或维修单未完成");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
json.put("status", "90");
|
json.put("status", "90");
|
||||||
json.put("update_optid", currentUserId);
|
json.put("update_optid", currentUserId);
|
||||||
json.put("update_optname", nickName);
|
json.put("update_optname", nickName);
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ export default {
|
|||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return this.crud.notify('设备状态不为正常或者闲置', CRUD.NOTIFICATION_TYPE.INFO)
|
return this.crud.notify('设备状态不正确,需启动设备或完成维修单及保养单', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
downloadWord() {
|
downloadWord() {
|
||||||
|
|||||||
Reference in New Issue
Block a user