<!-- 操作栏 -->
<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']])}}" data-title="{{:MyLang('detail_title')}}" data-offcanvas="right">
    <i class="am-icon-eye"></i>
    <span>{{:MyLang('detail_title')}}</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>{{:MyLang('confirm_title')}}</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>{{:MyLang('audit_title')}}</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>{{:MyLang('refuse_title')}}</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>{{:MyLang('cancel_title')}}</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="iconfont icon-delete"></i>
        <span>{{:MyLang('delete_title')}}</span>
    </button>
{{/if}}