You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			96 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| 
 | |
| namespace wstmart\admin\controller;
 | |
| 
 | |
| use wstmart\admin\model\Orders as M;
 | |
| 
 | |
| /**
 | |
| 
 | |
|  * ============================================================================
 | |
| 
 | |
|  * 订单控制器
 | |
| 
 | |
|  */
 | |
| 
 | |
| class Orders extends Base{
 | |
| 
 | |
| 	/**
 | |
| 
 | |
| 	 * 订单列表
 | |
| 
 | |
| 	 */
 | |
| 
 | |
|     public function index(){
 | |
| 
 | |
|     	$areaList = model('areas')->listQuery(0); 
 | |
| 
 | |
|     	$this->assign("areaList",$areaList);
 | |
| 
 | |
|     	$this->assign("userId",(int)input('userId'));
 | |
| 
 | |
|     	return $this->fetch("list");
 | |
| 
 | |
|     }
 | |
| 
 | |
|     /**
 | |
| 
 | |
|      * 获取分页
 | |
| 
 | |
|      */
 | |
| 
 | |
|     public function pageQuery(){
 | |
|         $m = new M();
 | |
|         return WSTGrid($m->pageQuery((int)input('orderStatus',10000)));
 | |
|     }
 | |
|     //凭证列表
 | |
|     public function certificate(){
 | |
|         return $this->fetch("certificate_list");
 | |
|     }
 | |
|     //获取凭证列表
 | |
|     public function getCertificate(){
 | |
|         $m = new M();
 | |
|         return WSTGrid($m->getCertificate());
 | |
|     }
 | |
|     //凭证设置
 | |
|     public function certificateSet(){
 | |
|         $m = new M();
 | |
|         exit(json_encode($m->certificateSet()));
 | |
|     }
 | |
| 
 | |
|    /**
 | |
| 
 | |
|     * 获取订单详情
 | |
| 
 | |
|     */
 | |
| 
 | |
|     public function view(){
 | |
| 
 | |
|         $m = new M();
 | |
| 
 | |
|         $rs = $m->getByView(Input("id/d",0));
 | |
| 
 | |
|         $this->assign("object",$rs);
 | |
| 
 | |
|         return $this->fetch("view");
 | |
| 
 | |
|     }
 | |
| 
 | |
|     /**
 | |
| 
 | |
|      * 导出订单
 | |
| 
 | |
|      */
 | |
| 
 | |
|     public function toExport(){
 | |
| 
 | |
|     	$m = new M();
 | |
| 
 | |
|     	$rs = $m->toExport();
 | |
| 
 | |
|     	$this->assign('rs',$rs);
 | |
| 
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 |