Ver código fonte

采购单修改时不允许原样提交

wufeng 2 anos atrás
pai
commit
5b0ab98aee
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      app/admin/controller/Purch.php

+ 2 - 0
app/admin/controller/Purch.php

@@ -488,6 +488,8 @@ class Purch extends Base
 
             if (empty($rs)) throw new Exception('采购单不存在或不允许修改');
 
+            if ($param['supplierNo'] == $rs['supplierNo'] && $param['wsm_code'] == $rs['wsm_code']) throw new Exception('没有修改的内容');
+
             $update = ['updatetime' => date('Y-m-d H:i:s')];
 
             //order_type==1备库