You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 line
3.4 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use common\components\zActiveForm;
  4. use common\models\BaseResource;
  5. use backend\modules\motorcade\models\BusDocLog;
  6. use backend\modules\motorcade\models\BusOilDoc;
  7. /* @var $this yii\web\View */
  8. /* @var $model backend\modules\motorcade\models\BusOilDoc */
  9. /* @var $form yii\widgets\ActiveForm */
  10. /* @var $data array */
  11. $log = $data['log'];
  12. $this->title = '余额修改';
  13. ?>
  14. <div class="modal-dialog modal-lg">
  15. <div class="bus-oil-doc-balance">
  16. <?php \yii\widgets\Pjax::begin(['id' => 'pjax-modal', 'timeout' => false, 'enablePushState' => false, 'options' => ['data-pjax-container' => 'doc-container']]) ?>
  17. <?php $form = zActiveForm::begin(['options' => ['class' => 'form-horizontal', 'data-pjax' => true]]); ?>
  18. <div class="panel panel-default" id="panel-div">
  19. <div class="panel-heading"><?= $this->title ?>
  20. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  21. <span aria-hidden="true">&times;</span>
  22. </button>
  23. </div>
  24. <div class="panel-body">
  25. <div class="myBody">
  26. <?= $form->field($log, 'VALUE_OLD', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group input-group-with-addon">{input}' .
  27. '<div class="input-group-addon" style="width: auto">元</div>'.
  28. (isset($options['options']['unit']) ? '<div class="input-group-addon" style="width: auto">' . $options['options']['unit'] . '</div>' : '') .
  29. '</div>{hint}{error}</div>'])->textInput(['maxlength' => true, 'readonly' => true]) ?>
  30. <?= $form->field($log, 'VALUE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline" style="display: inline-flex; width: 240px;">' .
  31. '<select class="form-control" name="BusDocLog[OPERATION_TYPE]" style="margin-right: 10px;"><option value="581" >减少</option><option value="580" >增加</option></select>{input}' .
  32. '<div class="input-group-addon" style="width: auto">元</div>' .
  33. '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('修改') ?>
  34. <?= $form->field($log, 'NOTE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group">{input}' .
  35. (isset($options['options']['unit']) ? '<div class="input-group-addon" style="width: auto">' . $options['options']['unit'] . '</div>' : '') .
  36. '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('修改原因') ?>
  37. <?= $form->field($log, 'CARD_ID')->hiddenInput()->label(false) ?>
  38. <div class="form-group">
  39. <label class="control-label">&nbsp;</label>
  40. <div class="col-sm-5">
  41. <?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
  42. <?= Html::submitButton('取消', ['class' => 'btn btn-default', 'data-dismiss'=> 'modal', 'style'=> 'margin-left: 5px;']) ?>
  43. </div>
  44. </div>
  45. </div>
  46. <!--mybody end-->
  47. </div>
  48. </div>
  49. <?php zActiveForm::end(); ?>
  50. <?php \yii\widgets\Pjax::end() ?>
  51. </div>
  52. </div>