|
@@ -173,10 +173,13 @@ class Purch extends \app\BaseController
|
|
|
return error_show(1004,"未找到数据");
|
|
|
}
|
|
|
$remark= isset($this->post['remark']) && $this->post['remark']!="" ?trim($this->post['remark']):"";
|
|
|
- $status = isset($this->post['status'])&&$this->post['status']!=""? intval($this->post['status']):"";
|
|
|
- if($status==""){
|
|
|
+ $status = isset($this->post['status'])&&$this->post['status']!==""? intval($this->post['status']):"";
|
|
|
+ if($status===""){
|
|
|
return error_show(1004,"参数status 不能为空");
|
|
|
}
|
|
|
+ if($data['send_status']>1 && $status==0){
|
|
|
+ return error_show(1004,"采购单发货中无法取消");
|
|
|
+ }
|
|
|
$data['status'] = $status;
|
|
|
$data['remark'] = $remark;
|
|
|
$data['updatetime'] =date("Y-m-d H:i:s");
|