1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- $config = [
- 'source' => 'place_order/source_refund',
- 'update' => [
- 'start' => 'place_order/manage/source/refund.audit',
- 'field' => [
- 'type' => [
- 'type' => 'show',
- 'default' => 'Dever::call("place_order/manage/source/refund.show", ["type", "{type}"])',
- ],
- 'desc_type' => [
- 'type' => 'show',
- 'default' => 'Dever::call("place_order/manage/source/refund.show", ["desc_type", "{desc_type}"])',
- ],
- 'audit' => [
- 'name' => '退款审核',
- 'rules' => true,
- 'type' => 'radio',
- 'option' => [
- 1 => '审核通过',
- 2 => '审核驳回',
- ],
- 'default' => 1,
- ],
- 'audit_desc' => [
- 'name' => '审核备注',
- //'rules' => true,
- 'type' => 'textarea',
- 'autosize' => ['minRows' => 2],
- ],
- ],
- ],
- ];
- $id = Dever::input('id');
- if ($id) {
- $info = Dever::db('source_refund', 'place_order')->find($id);
- if ($info && $info['type'] == 1) {
- $config['update']['field']['address_id'] = [
- 'type' => 'select',
- 'rules' => true,
- 'option' => 'Dever::call("place/address.getList")',
- ];
- }
- }
- return $config;
|