|
@@ -23,7 +23,7 @@ class flow_repair_faultClassModel extends flowModel
|
|
|
// $ors当前单据操作信息,$crs提交过来的信息
|
|
|
public function flowoptmenu($ors, $crs)
|
|
|
{
|
|
|
- // 切换会议议题
|
|
|
+ // 处理维修
|
|
|
if ($ors['num'] == 'noup') {
|
|
|
$sm = $crs['sm']; // 提交过来的说明
|
|
|
$uname = $this->uname;
|
|
@@ -37,6 +37,20 @@ class flow_repair_faultClassModel extends flowModel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //显示操作菜单判断
|
|
|
+ protected function flowgetoptmenu($num)
|
|
|
+ {
|
|
|
+ $row = m("repair_fault")->getone("id={$this->id} and handle_state != 1");
|
|
|
+ if (empty($row)) return false;
|
|
|
+ $type_id = $row['type_id'];
|
|
|
+ $can = m("repair_type")->getone("id={$type_id} and FIND_IN_SET({$this->uid},`head_id`)", 'head_id');
|
|
|
+ if (empty($can)) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function getstatezt($zt)
|
|
|
{
|
|
|
if (isset($this->hstate[$zt])) {
|