@@ -32,6 +32,9 @@ class PurchaseOrderController extends BaseController
if ($cg->mainId != $this->mainId) {
util::fail('不是你的采购单哦');
}
+ if ($cg->status != 4) {
+ util::fail('入库的订单才能打印');
+ }
$orderSn = $cg->orderSn ?? '';
$itemList = PurchaseOrderItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*');
$table = [];