瀏覽代碼

一些功能

Kirin 3 年之前
父節點
當前提交
c8b74847aa
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. 6 8
      app/admin/controller/order/StoreOrder.php

+ 6 - 8
app/admin/controller/order/StoreOrder.php

@@ -569,15 +569,13 @@ class StoreOrder extends AuthController
         if (!$id) return $this->failed('数据不存在');
         $product = StoreExchangeOrder::get($id);
         if (!$product) return Json::fail('数据不存在!');
-        if ($product['paid'] == 1) {
-            $f = [];
-            $f[] = Form::input('order_id', '退押单号', $product->getData('order_id'))->disabled(1);
-            $f[] = Form::number('refund_price', '退押金额', bcsub($product->getData('deposit'), $product->getData('deposit_back'), 2))->precision(2)->min(0.01);
+        $f = [];
+        $f[] = Form::input('order_id', '退押单号', $product->getData('order_id'))->disabled(1);
+        $f[] = Form::number('refund_price', '退押金额', bcsub($product->getData('deposit'), $product->getData('deposit_back'), 2))->precision(2)->min(0.01);
 //            $f[] = Form::radio('type', '状态', 1)->options([['label' => '直接退押', 'value' => 1], ['label' => '退押后,返回原状态', 'value' => 2]]);
-            $form = Form::make_post_form('退押处理', $f, Url::buildUrl('updateExchangeRefundDepositY', array('id' => $id)), 7);
-            $this->assign(compact('form'));
-            return $this->fetch('public/form-builder');
-        } else return Json::fail('数据不存在!');
+        $form = Form::make_post_form('退押处理', $f, Url::buildUrl('updateExchangeRefundDepositY', array('id' => $id)), 7);
+        $this->assign(compact('form'));
+        return $this->fetch('public/form-builder');
     }
 
     /**