<!-- 操作栏 -->
<button type="button" class="am-btn am-btn-default am-btn-xs am-radius am-btn-block submit-popup" data-url="{{:MyUrl('admin/orderaftersale/detail', ['id'=>$module_data['id']])}}">
    <i class="am-icon-eye"></i>
    <span>详情</span>
</button>
{{if $module_data['status'] eq 0 and $module_data['type'] eq 1}}
    <button type="button" type="button" class="am-btn am-btn-secondary am-btn-xs am-radius am-btn-block submit-ajax" data-url="{{:MyUrl('admin/orderaftersale/confirm')}}" data-id="{{$module_data.id}}" data-view="reload">
        <i class="am-icon-check"></i>
        <span>确认</span>
    </button>
{{/if}}
{{if $module_data['status'] eq 2}}
    <button type="button" type="button" class="am-btn am-btn-secondary am-btn-xs am-radius am-btn-block submit-audit" data-json='{{:urlencode(json_encode($module_data))}}'>
        <i class="am-icon-gavel"></i>
        <span>审核</span>
    </button>
{{/if}}
{{if in_array($module_data['status'], [0,2])}}
    <button type="button" type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-refuse" data-json='{{:urlencode(json_encode($module_data))}}'>
        <i class="am-icon-warning"></i>
        <span>拒绝</span>
    </button>
{{/if}}
{{if in_array($module_data['status'], [1,2])}}
    <button type="button" type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-btn-block submit-ajax submit-cancel" data-url="{{:MyUrl('admin/orderaftersale/cancel')}}" data-id="{{$module_data.id}}" data-view="reload">
        <i class="am-icon-paint-brush"></i>
        <span>取消</span>
    </button>
{{/if}}
{{if in_array($module_data['status'], [4,5])}}
    <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-delete" data-url="{{:MyUrl('admin/orderaftersale/delete')}}" data-id="{{$module_data.id}}">
        <i class="am-icon-trash-o"></i>
        <span>删除</span>
    </button>
{{/if}}