| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- use yii\helpers\Html;
- use yii\grid\GridView;
- use yii\widgets\ActiveForm;
- use yii\bootstrap\Nav;
- /* @var $this yii\web\View */
- /* @var $searchModel app\models\OrderreturnSearch */
- /* @var $dataProvider yii\data\ActiveDataProvider */
- $this->title = 'Orderreturns';
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div style="display:inline-block;">
- <?php
- echo Nav::widget([
- 'options' => ['class' => 'navbar-nav navbar-left'],
- 'items' => [
- ['label' => '美国仓', 'url' => ['/site/index','shop'=>1]],
- ['label' => '亚马逊', 'url' => ['/site/index','shop'=>2]],
- ],
- ]);
- ?>
- </div>
- <div class="orderreturn-index">
-
- <h1><?php echo $shop==1?"美国仓":"亚马逊"; ?></h1>
- <p>
- <?= Html::a('创建', ['create'], ['class' => 'btn btn-success']) ?>
- </p>
- <p>
- <?php
- $model=new app\models\UploadExcel();
- $form=ActiveForm::begin([
- 'id' => 'upload-excel',
- 'action'=>'/site/export?shop='.$shop,
- 'method'=>'post',
- 'options'=>[
- 'enctype'=>'multipart/form-data',
- ]
- ]);
- ?>
- <?= Html::activeFileInput($model, 'excel', $options = []) ?>
- <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
- <?php ActiveForm::end() ?>
- </p>
- <?php echo $this->render('_search', ['model' => $searchModel]); ?>
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- // 'filterModel' => $searchModel,
- 'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
- 'id',
- 'deliveryid',
- 'website',
- 'customer',
- 'delivery',
- 'origin_goodsinfo',
- 'goodsinfo',
- 'usage',
- 'receiptdate',
- 'num',
- 'mark',
- ['class' => 'yii\grid\ActionColumn'],
- ],
- ]); ?>
- </div>
|