function index(){
$s_date1=date('Y-m-01', strtotime(date("Y-m-d")));
$s_date2=date('Y-m-d', strtotime("$s_date1 +1 month -1 day"));
$this->s_date="$s_date1 - $s_date2";
$this->display();
}
function data(){
if($s_date=I('s_date')){
$s_date=str2arr($s_date,' - ');
$sql.=" and order_date between '$s_date[0]' and '$s_date[1]'";
}
}
<input name="s_date" id="s_date" value="{$s_date}" readonly class="layui-input">
laydate.render({
elem:'#s_date'
,range:true
})