Commit bc48929d by hcy001
parents 42bff2b8 53c3ce7c
Showing with 6 additions and 1 deletions
......@@ -622,6 +622,11 @@ class QuoteModel extends Model
if (!$input['quote_id']) return [-1, '参数缺失'];
try {
$info = $this->find($input['quote_id']);
if ($info['status'] == -1) return [1, '修改失败,报价已撤销,请刷新查看'];
if ($info['status'] == 3) return [1, '修改失败,报价已确认,请刷新查看'];
$quote_info = $input['quote_info'];
$brand = json_decode($quote_info['brand_s'], true);
......@@ -728,7 +733,7 @@ class QuoteModel extends Model
#更新询价明细表状态
$InquiryItemsModel->where("id",$inquiry_items_id)->update(["status"=>2, 'update_time'=>time()]); #更新报价待报价
#更新
$QuoteModel->where("inquiry_items_id",$inquiry_items_id)->whereNotIn("status",[-1,0])->update(["status"=>1, 'update_time'=>time()]); #重启其他所有状态为 已报价
$QuoteModel->where("inquiry_items_id",$inquiry_items_id)->update(["status"=>1, 'update_time'=>time()]); #重启其他所有状态为 已报价
$data = [];
$data['types'] = 1;
......
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