业务经理

微信扫描以上二维码

028-61286886

技术咨询

后台财务流水已付流水自定义时间!加入自定义字段

迅睿框架 更新 2020-03-25 15:32:03 陶思健

后台财务流水已付流水自定义时间!加入自定义字段

方案

  • 迅睿框架创始人 #1 · 2020-03-25 15:26:19
    这个地方不能加自定义字段,没有做财务表的自定义字段功能的
  • 郑中建 #2 · 2020-03-25 15:29:09
    自己建一个财务表,建一个控制器,系统表肯定不让改的
  • 琉惗 #3 · 2020-03-25 15:30:56
    满意答案
    <div class="form-group" id="dr_row_inputtime">
                    <label class="control-label col-md-2">
                        <span class="required" aria-required="true"> * </span>到期时间限制</label>
                    <div class="col-md-9"><div class="form-date input-group">
                        <link href="http://xunrui.cc/static/assets/global/plugins/bootstrap-daterangepicker/daterangepicker.min.css?v=20200319144529" rel="stylesheet" type="text/css" />
                        <link href="http://xunrui.cc/static/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css?v=20200319144529" rel="stylesheet" type="text/css" />
                        <link href="http://xunrui.cc/static/assets/global/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css?v=20200319144529" rel="stylesheet" type="text/css" />
    
                        <script src="http://xunrui.cc/static/assets/global/plugins/moment.min.js?v=20200319144529" type="text/javascript"></script>
                        <script src="http://xunrui.cc/static/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.finecms.js?v=20200319144529" type="text/javascript"></script>
                        <script src="http://xunrui.cc/static/assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.finecms.js?v=20200319144529" type="text/javascript"></script>
                        <div class="input-group date field_date_inputtime"><span class="input-group-btn">
       <button class="btn default date-set" type="button">
          <i class="fa fa-calendar"></i>
       </button>
    </span><input name="endtime" id="endtime" type="text" style="width:170px;" value="{dr_date($data.endtime)}"  required="required" class="form-control "></div>
                        <script>
                            $(function(){
                                $(".field_date_inputtime").datetimepicker({
                                    isRTL: false,
                                    format: "yyyy-mm-dd hh:ii:ss",
                                    showMeridian: true,
                                    autoclose: true,
                                    pickerPosition: "bottom-right",
                                    todayBtn: true
                                });
                            });
                        </script>
                    </div></div>
                </div>
                <button type="button" onclick="tijiao()" class="btn green"> <i class="fa fa-save"></i> {dr_lang('提交')}</button>
    <script>
        function tijiao() {
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '{dr_url("member_paylog/xiugai")}&id={$_GET["id"]}',
                data: {
                    endtime: $('#endtime').val(),
                    {csrf_token()} : "{csrf_hash()}"
                },
                success: function (data) {
                    if (data.code == 1){
                        layer.msg('修改成功');
                    }
                },
                error: function (data) {
                    if (data.code == 0){
                        layer.msg('修改失败');
                    }
                }
            })
        }
    </script>
    public function xiugai(){
        $id = $this->request->getGet('id');
        $endtime = strtotime($this->request->getPost('endtime'));
        $result = \Phpcmf\Service::M()->db->table('member_paylog')->where('id',$id)->update(['endtime' => $endtime]);
        if ($result){
            return json_encode(['code'=>1]);
        }else {
            return json_encode(['code'=>0]);
        }
    }
  • 陶思健 #4 · 2020-03-25 15:32:03
    @琉惗:感谢大佬

迅睿系统漏洞

独立站群系统
独立站群系统(2026-09-14)
子站独立部署时修复同步附件失败问题
在线客服
在线客服(2026-09-13)
修复删除会话报错问题 删除会话时联动删除聊天图片
在线考试竞赛系统
在线考试竞赛系统(2026-09-12)
增加投票功能 考试功能拓展 注意:更新后需要执行系统更新,更新数...
网上信箱
网上信箱(2026-09-12)
修复新版本兼容问题
GeoSeo收录宝
GeoSeo收录宝(2026-09-12)
1 优化Update.php文件,解决版本在线升级不完整问题 2 ...
GeoSeo工具箱
GeoSeo工具箱(2026-09-11)
修正历史记录推送
微信系统
微信系统(2026-09-11)
增加数据统计总览界面 账号管理增加服务和公众号的区别 菜单管理支持更...
答题系统
答题系统(2026-09-11)
一站式在线答题系统,支持真题考试、题库练习和错题本,适合培训、考证、...
阿里云滑动验证码
阿里云滑动验证码(2026-09-10)
采用阿里云验证码替换迅睿系统自带的图片验证码和滑动验证码。后台设置方...
下载Plus
下载Plus(2026-09-09)
为网站附件下载加上“计数、限次、统计、防护”四重能力:按用户组控制下...