|
@@ -1395,6 +1395,7 @@ class Consult extends Base
|
|
|
if($infos==false){
|
|
|
return error_show(1004,"未找到商品数据");
|
|
|
}
|
|
|
+
|
|
|
if($infos['status']!=2&&$infos['status']!=3&&$infos['status']!=7){
|
|
|
return error_show(1004,"咨询单招标未结束或已确认商品");
|
|
|
}
|
|
@@ -1425,6 +1426,8 @@ class Consult extends Base
|
|
|
"action_remark" => '',//备注
|
|
|
"action_type" => "status"//新建create,编辑edit,更改状态status
|
|
|
], "ZXD", $infos['status'], $infos);
|
|
|
+ Db::name("bargain_order")->where(["bidsNo"=>$bidNo,"is_del"=>0,"status"=>[0,2,4,5,7]])
|
|
|
+ ->update(['status'=>12,"remark"=>'已选择商品,取消议价',"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
Db::commit();
|
|
|
return app_show(0,"商品确定成功");
|
|
|
}
|
|
@@ -1451,6 +1454,9 @@ class Consult extends Base
|
|
|
if($info==false){
|
|
|
return error_show(1004,"未找到议价数据");
|
|
|
}
|
|
|
+ if($info['status']==12){
|
|
|
+ return error_show(1004,"议价单已取消");
|
|
|
+ }
|
|
|
$bids=Db::name("consult_bids")->where(["bidNo"=>$info["bidsNo"],"is_del"=>0])->find();
|
|
|
if($bids==false){
|
|
|
return error_show(1004,"未找到商品数据");
|
|
@@ -1459,6 +1465,9 @@ class Consult extends Base
|
|
|
if($coninfo==false){
|
|
|
return error_show(1004,"未找到咨询单数据");
|
|
|
}
|
|
|
+ if($bids['status']==6){
|
|
|
+ return error_show(1004,"咨询已选择商品");
|
|
|
+ }
|
|
|
$status = isset($this->post['status'])&& $this->post['status']!=='' ? intval($this->post['status']):"";
|
|
|
if($status===''){
|
|
|
return error_show(1005,"参数status不能为空");
|