render(); $mdlBill = app::get('financebase')->model("bill"); $mdlBillBase = app::get('financebase')->model("bill_base"); $bill_row = $mdlBill->getList('unique_id,shop_id,platform_type',array('id'=>$id)); $base_bill_row = $mdlBillBase->getList('content',array('shop_id'=>$bill_row[0]['shop_id'],'unique_id'=>$bill_row[0]['unique_id'])); $class_name = 'financebase_data_bill_'.$bill_row[0]['platform_type']; if (!ome_func::class_exists($class_name)){ die($bill_row[0]['platform_type'].'无此类型的方法'); } $instance = kernel::single($class_name); $array_title = $instance->getTitle(); $array_content = json_decode($base_bill_row[0]['content'],1); $info = array(); foreach ($array_title as $key => $value) { $info[$key] = array('title'=>$value,'content'=>$array_content[$key]); } $render->pagedata['info'] = $info; return $render->fetch("admin/bill/detail.html"); } var $detail_oplog = "操作日志"; function detail_oplog($id){ $render = app::get('financebase')->render(); $mdlBill = app::get('financebase')->model("bill"); $mdlOpLog = app::get('finance')->model("bill_op_logs"); $bill_info= $mdlBill->getList('bill_bn',array('id'=>$id)); $list = $mdlOpLog->getList('*',['log_bn'=>$bill_info[0]['bill_bn']],0,-1,' log_id desc'); $render->pagedata['list'] = $list; return $render->fetch("admin/bill/op_logs.html"); } var $column_edit = "操作"; var $column_edit_width = "80"; function column_edit($row) { $finder_id = $_GET['_finder']['finder_id']; $ret = ''; if($row['status'] < 2) { $ret .= '重置订单号'; } return $ret; } }