<?php
$id = Dever::input('field')['order_id'];
$config = array
(
    'update' => array
    (
        'start' => 'place_order/source/refund.update',
        'field'    => array
        (
            'order_id' => array
            (
                'value' => $id,
                'type' => 'hidden',
            ),
            'type' => array
            (
                'rules' => true,
                'type' => 'radio',
            ),
            'cash' => array
            (
                'rules' => true,
            ),
            'place_order/source_refund_detail' => array
            (
                'name' => '退款明细',
                'where'  => array('order_refund_id' => 'id'),
            ),
            'desc_type' => array
            (
                'rules' => true,
            ),
            'desc' => array
            (
                'rules' => true,
                'type' => 'textarea',
                'autosize' => array('minRows' => 2),
            ),
        ),
    ),
);

return $config;