| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?php
- namespace app\modules\alliance\controllers\agentStaff;
- use app\modules\alliance\behaviors\AgentFrontDriver;
- use app\modules\alliance\controllers\BaseController;
- use app\modules\alliance\models\agentStaff\CarLoadingForm;
- use yii\helpers\ArrayHelper;
- class CarLoadingController extends BaseController
- {
- public $agentFrontDriverId;//司机ID
- public $agentFrontId;//仓库ID
- public function behaviors()
- {
- $merge = [
- 'store' => [
- 'class' => AgentFrontDriver::class,
- ]
- ];
- return ArrayHelper::merge($merge, parent::behaviors());
- }
- //装车任务-在途配送页面
- public function actionCarLoadingTaskList() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->carLoadingTaskList());
- }
- //装车信息确认
- public function actionDriverLineConfirmInfo() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->driverLineConfirmInfo());
- }
- //点击装车
- public function actionDriverLineStart() {
- $form = new CarLoadingForm();
- $form->attributes = post_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->driverLineStart());
- }
- //获取待送达列表
- public function actionGetDriverLineOrderList() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->getDriverLineOrderList());
- }
- //获取团点坐标以及线路
- public function actionGetDriverToMd() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->getDriverToMd());
- }
- //排序
- public function actionSetLineOrderSort() {
- $form = new CarLoadingForm();
- $form->attributes = post_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->setLineOrderSort());
- }
- //线路配送详情
- public function actionGetLineOrderInfo() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->getLineOrderInfo());
- }
- //线路配送详情明细
- public function actionGetLineOrderDetail() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->getLineOrderDetail());
- }
- //线路团点配送详情明细(按照团线商品区分 不做团线tab)
- public function actionGetLineMdDetail() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->getLineMdDetail());
- }
- //去配送
- public function actionGoDeliveryOrder() {
- $form = new CarLoadingForm();
- $form->attributes = post_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->goDeliveryOrder());
- }
- //已完成运单
- public function actionFinishOrderList() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->finishOrderList());
- }
- //已完成运单详情
- public function actionFinishOrderDetail() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->finishOrderDetail());
- }
- //商品查询
- public function actionSearchGoods() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->searchGoods());
- }
- //退货取回
- public function actionGoodsRefundList() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->goodsRefundList());
- }
- //退货详情
- public function actionGoodsRefundDetail() {
- $form = new CarLoadingForm();
- $form->attributes = get_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->refundDetail());
- }
- //退货确认
- public function actionGoodsRefundConfirm() {
- $form = new CarLoadingForm();
- $form->attributes = post_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->refundConfirm());
- }
- //装车历史记录
- public function actionCarLoadingLog() {
- $form = new CarLoadingForm();
- $form->attributes = post_params();
- $form->admin_id = $this->agentFrontId;
- $form->driver_id = $this->agentFrontDriverId;
- return $this->asJson($form->carLoadingLog());
- }
- }
|