request->isAjax()) { $params = $this->request->get(); $params['admin_name'] = $this->admin_info['name']; $this->_success('', VerificationLogic::lists($params)); } $this->assign('order_type', CommonOrder::getOrderType(true)); $this->assign('pay_way', Pay::getPayWay(true)); $this->assign('order_source', Client_::getClient(true)); $this->assign('verification_status', CommonOrder::getVerificationStatus(true)); return $this->fetch(); } /** * @notes 导出自提订单列表 * @author ljj * @date 2021/8/16 7:55 下午 */ public function exportFile() { $params = $this->request->get(); $params['admin_name'] = $this->admin_info['name']; $this->_success('', VerificationLogic::exportFile($params)); } /** * @notes 提货核销 * @param $id * @return mixed * @author ljj * @date 2021/8/17 10:09 上午 */ public function verification($id) { if ($this->request->isAjax() && $this->request->isPost()) { $params = $this->request->post(); $params['admin_info'] = $this->admin_info; $result = $this->validate($params, 'app\admin\validate\Verification.verification'); if ($result !== true) { $this->_error($result); } $result = VerificationLogic::verification($params); if ($result !== true) { $this->_error('核销失败:' . $result); } $this->_success('核销成功'); } $this->assign('detail', VerificationLogic::verificationInfo($id)); return $this->fetch(); } /** * @notes 核销查询 * @param $id * @return mixed * @author ljj * @date 2021/8/17 11:47 上午 */ public function verificationQuery($id) { $this->assign('detail', VerificationLogic::verificationQuery($id)); return $this->fetch(); } }