public function view_edit() { $navlist = array(array('url' => 'index.php?mod=Platform&act=index', 'title' => '系统设置'), array('url' => 'index.php?mod=averageDailyCount&act=index', 'title' => '日均量策略设置'), array('url' => '', 'title' => '修改')); F('order'); $this->smarty->assign('plataccount', get_userplatacountpower(get_userid())); $this->smarty->assign('navlist', $navlist); $this->smarty->assign('toptitle', '添加SKU'); $this->smarty->assign('toplevel', A('Topmenu')->act_getToplevel('averageDailyCount')); $this->smarty->assign('secondlevel', A('Topmenu')->act_getSecondlevel('averageDailyCount')); $this->smarty->assign('averageDailyCountList', A('AverageDailyCount')->act_getAverageDailyCountListById()); $this->smarty->display("averageDailyCountEdit.htm"); }
/** * 添加普通线下订单页面(目前是出口通订单添加) * 需要和对应的用户平台、账号权限对应,只有自己有权限的才能添加 * 获取相关权限 A('UserCompetence')->act_getCompetenceByUserId(get_userid()) * */ public function view_addOfflineOrder() { //渲染代码 /**测试代码 $orderDetail = array(); $orderDetail['orderDetail']['omOrderId'] = 11973922; $orderDetail['orderDetail']['recordNumber'] = 1111122; $orderDetail['orderDetail']['itemPrice'] = 11; $orderDetail['orderDetail']['ORsku'] = '001'; $orderDetail['orderDetail']['sku'] = '002'; $orderDetail['orderDetail']['onlinesku'] = '003'; $orderDetail['orderDetail']['amount'] = 2; $orderDetail['orderDetail']['shippingFee'] = 1; $orderDetail['orderDetail']['reviews'] = 2; $orderDetail['orderDetail']['createdTime'] = time(); $orderDetail['orderDetail']['storeId'] = 1; $orderDetail['orderDetail']['is_delete'] = 0; $orderDetail['orderDetailExtension']['itemId'] = 111111111; $orderDetail['orderDetailExtension']['transId'] = 233333; $orderDetail['orderDetailExtension']['itemTitle'] = 'dddddddddd'; $orderDetail['orderDetailExtension']['itemURL'] = '111111111'; $orderDetail['orderDetailExtension']['shippingType'] = 'sdsddddd'; $orderDetail['orderDetailExtension']['FinalValueFee'] = 4.23; $orderDetail['orderDetailExtension']['FeeOrCreditAmount'] = 4.23; $orderDetail['orderDetailExtension']['ListingType'] = 'ddddddd'; $orderDetail['orderDetailExtension']['note'] = '111111111'; M('OrderAdd')->insertOrderDetailPerfect($orderDetail); **/ F('order'); $showPlatformList = array(3); //目前允许前端可见的平台id数组 $platformList = array_keys(get_userplatacountpower(get_userid()) ? get_userplatacountpower(get_userid()) : array()); //获取登陆人的平台权限 $platformList = array_intersect($showPlatformList, $platformList); $this->smarty->assign('platform_list', $platformList); $Shiping = M('InterfaceTran')->getCarrierList(2); //获取所有的运输方式 $this->smarty->assign('Shiping', $Shiping); $toplevel = 2; //一级菜单的序号 $this->smarty->assign('toplevel', $toplevel); $secondlevel = 21; //当前的二级菜单 $this->smarty->assign('secondlevel', $secondlevel); $this->smarty->assign('toptitle', '订单添加'); $this->smarty->assign('curusername', get_username()); //SESSION['userName'] $this->smarty->display('orderAdd.htm'); }
public function view_index() { F('order'); //引入function方法 $CompetencePAList = get_userplatacountpower(get_userid()); //获取登陆人的平台账号权限 $ebayAccountList = array(); //定义该登陆人在ebay平台上的可见账号数组 foreach ($CompetencePAList as $value) { $ebayAccountList = $CompetencePAList[1]; } $this->smarty->assign('ebayAccountList', $ebayAccountList); $this->smarty->assign('toplevel', A('Topmenu')->act_getToplevel('ExportExcelOutput')); $this->smarty->assign('secondlevel', A('Topmenu')->act_getSecondlevel('ExportExcelOutput')); $this->smarty->assign('toptitle', '报表导出'); $this->smarty->assign('curusername', get_username()); //SESSION['userName'] $this->smarty->display('exportExcelOutput.htm'); }
/** 展示订单数 */ public function view_showNum() { $platformNa = $_REQUEST['platformId']; $platformNa = get_platnamebyid($platformNa); $countData = A('Order')->act_getOrdersByPlatForm(); $this->smarty->assign('toplevel', 0); $this->smarty->assign('ostatus', $this->oStatus); $this->smarty->assign('otype', $this->oType); $this->smarty->assign('plataccount', get_userplatacountpower(get_userid())); $this->smarty->assign('tablekey', $this->tablekey); $this->smarty->assign('platformNa', $platformNa); $this->smarty->assign('countData', $countData); $this->smarty->display('orderStatistics.htm'); }
/** * 更新平台ID,获取权限允许的平台帐号 */ public function act_changePlatformId() { F('order'); $platformId = $_POST['platformId']; $accountList = array(); $accountReturnList = array(); if (empty($platformId)) { self::$errMsg['104'] = '未获取到平台ID'; } else { $platAccount = get_userplatacountpower(get_userid()); $accountList = $platAccount[$platformId]; if (is_array($accountList)) { foreach ($accountList as $v) { $accountReturnList[$v] = get_accountnamebyid($v); } } self::$errMsg['200'] = 'ok'; } return $accountReturnList; }