wugg 7 mēneši atpakaļ
vecāks
revīzija
a9675a6b3b
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/admin/controller/Consult.php

+ 1 - 0
app/admin/controller/Consult.php

@@ -1643,6 +1643,7 @@ class Consult extends Base
         $bids = ConsultBids::where(['id'=>$list['list']])->column("id,infoNo,bidNo,status,tax_status,tax,tax_id,is_combind","bidNo");
         foreach ($list['list'] as $k=>$v){
             if (!isset($bids[$v])) return error_show(1004,"{$v}的反馈单不存在");
+            if($bids[$v]['tax_status']!=0) return error_show(1004,"{$v}的反馈单状态不正确");
             $consult_info =ConsultInfo::where(['infoNo'=>$bids[$v]['infoNo'],'is_del'=>0])->findOrEmpty();
             if($consult_info->isEmpty()) $this->error("未找到{$v['bidNo']}的咨询单数据");
             if($consult_info['status']!=2&&$consult_info['status']!=3&&$consult_info['status']!=7){