|
|
@ -264,7 +264,7 @@ class WorkOrderController extends ThinkController
|
|
|
|
$data['remark'] = I('remark', '');
|
|
|
|
$data['remark'] = I('remark', '');
|
|
|
|
$data['attachment_url'] = I('attachment_url', '');
|
|
|
|
$data['attachment_url'] = I('attachment_url', '');
|
|
|
|
$ins = M('work_order_info', 'tab_')->add($data);
|
|
|
|
$ins = M('work_order_info', 'tab_')->add($data);
|
|
|
|
return $ins ? $this->success('申请成功') : $this->error('申请失败');
|
|
|
|
return $ins ? $this->success('申请成功', U('WorkOrder/list')) : $this->error('申请失败');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->assign('data', $info);
|
|
|
|
$this->assign('data', $info);
|
|
|
|
$this->display('resourceApply');
|
|
|
|
$this->display('resourceApply');
|
|
|
|