first commit
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeshop100%开源免费商用商城系统
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,保留版权即可
|
||||
// | 商业版本务必购买商业授权,以免引起法律纠纷
|
||||
// | 禁止对系统程序代码以任何目的,任何形式的再发布
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee
|
||||
// | github下载:https://github.com/likeshop-github
|
||||
// | 访问官网:https://www.likeshop.cn
|
||||
// | 访问社区:https://home.likeshop.cn
|
||||
// | 访问手册:http://doc.likeshop.cn
|
||||
// | 微信公众号:likeshop技术社区
|
||||
// | likeshop团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeshopTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
|
||||
use app\admin\logic\FaceSheetOrderLogic;
|
||||
use app\admin\logic\FaceSheetSenderLogic;
|
||||
use app\admin\logic\FaceSheetLogic;
|
||||
|
||||
class FaceSheetOrder extends AdminBase
|
||||
{
|
||||
/**
|
||||
* @notes 获取待发货订单列表
|
||||
* @return mixed
|
||||
* @author 张无忌
|
||||
* @date 2021/9/27 9:39
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$get = $this->request->get();
|
||||
$lists = FaceSheetOrderLogic::lists($get);
|
||||
$this->_success('获取成功', $lists);
|
||||
}
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 选择打印模板
|
||||
* @return mixed
|
||||
* @author 张无忌
|
||||
* @date 2021/9/27 15:59
|
||||
*/
|
||||
public function select()
|
||||
{
|
||||
$this->assign('template', FaceSheetLogic::all());
|
||||
$this->assign('sender', FaceSheetSenderLogic::all());
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 批量打印
|
||||
* @author 张无忌
|
||||
* @date 2021/9/27 14:49
|
||||
*/
|
||||
public function print()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$order_id = $this->request->post('order_id', 0, 'intval');
|
||||
$tempid = $this->request->post('tempid', 0, 'intval');
|
||||
$sender_id = $this->request->post('sender_id', 0, 'intval');
|
||||
$result = FaceSheetOrderLogic::print($order_id, $tempid, $sender_id, $this->admin_id);
|
||||
if ($result !== true) {
|
||||
return $this->_error($result);
|
||||
}
|
||||
return $this->_success('打印成功');
|
||||
}
|
||||
|
||||
return $this->_error('请求异常');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user