|
@@ -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);
|
|
|
|
|
|
- $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');
|
|
|
}
|
|
|
|
|
|
|