Commit 72a566f7 by 朱继来

调整

parent 790c1199
Showing with 2 additions and 1 deletions
...@@ -203,7 +203,8 @@ class QuoteModel extends Model ...@@ -203,7 +203,8 @@ class QuoteModel extends Model
try { try {
$quote_info = $this->find($id); $quote_info = $this->find($id);
if ($quote_info['status'] == -1) return [1, '该报价已撤销,请刷新页面查看']; if ($quote_info['status'] == -1) return [1, '撤销失败,该报价已撤销,请刷新页面查看'];
if ($quote_info['status'] == 3) return [1, '撤销失败,该报价已确认,请刷新页面查看'];
// if ($quote_info['status'] > 1) return [1, '当前报价状态不能撤销,请刷新页面查看']; // if ($quote_info['status'] > 1) return [1, '当前报价状态不能撤销,请刷新页面查看'];
$res = $this->where('id', $id)->update(['status' => -1, 'cancel_reason'=>$cancel_reason]); $res = $this->where('id', $id)->update(['status' => -1, 'cancel_reason'=>$cancel_reason]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment