提交 d4c8d191 authored 作者: 王天霸's avatar 王天霸

111

上级 a965b7f0
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
<el-table :data="orderDetail ? orderDetail.item : []" style="border: 1px solid #eee;" @selection-change="handleSelectionChange"> <el-table :data="orderDetail ? orderDetail.item : []" style="border: 1px solid #eee;" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="订单号" prop="order_sn"/> <el-table-column label="订单号" prop="order_sn" />
<el-table-column label="商品名称"> <el-table-column label="商品名称">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.goods_list[0].title}} {{scope.row.goods_list[0].title}}
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
<div style="position: relative;"> <div style="position: relative;">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane name="first"> <el-tab-pane name="first">
<div slot="label">待发货{{activeName == 'first' ? '(' + total + ')' : ''}}</div> <div slot="label">待发货{{activeName == 'first' ? '(' + total1 + ')' : ''}}</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="second"> <el-tab-pane name="second">
<div slot="label">已发货{{activeName == 'second' ? '(' + total + ')' : ''}}</div> <div slot="label">已发货{{activeName == 'second' ? '(' + total2 + ')' : ''}}</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="已完成" name="third"></el-tab-pane> <el-tab-pane label="已完成" name="third"></el-tab-pane>
<el-tab-pane label="全部订单" name="fourth"></el-tab-pane> <el-tab-pane label="全部订单" name="fourth"></el-tab-pane>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<el-button size="mini" icon="el-icon-position" @click="isDeliveryOpen = true">批量发货</el-button> <el-button size="mini" icon="el-icon-position" @click="isDeliveryOpen = true">批量发货</el-button>
</div> </div>
</div> </div>
<div class="scollbox">
<div class="form-box"> <div class="form-box">
<el-form ref="form" :model="form" label-width="85px"> <el-form ref="form" :model="form" label-width="85px">
<el-row type="flex" class="row-bg" justify="space-around"> <el-row type="flex" class="row-bg" justify="space-around">
...@@ -64,16 +65,20 @@ ...@@ -64,16 +65,20 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<el-table :data="tableData" height="520"> <el-table :data="tableData" max-height="1080">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="订单号" align="center" prop="order_sn"/> <el-table-column label="订单号" align="center" prop="order_sn" width="255"/>
<el-table-column label="下单时间" align="center" prop="Updatetime"> <el-table-column label="下单时间" align="center" prop="Updatetime" width="155">
<template slot-scope="scope"> <template slot-scope="scope">
{{formatter(scope.row.Updatetime)}} {{formatter(scope.row.Updatetime)}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" align="center" prop="goods_total"/> <el-table-column label="数量" align="center" prop="goods_total"/>
<el-table-column label="订单金额" align="center" prop="goods_price"/> <el-table-column label="订单金额" align="center" prop="goods_price">
<template slot-scope="scope">
{{scope.row.goods_price/100}}
</template>
</el-table-column>
<el-table-column label="收货人" align="center" prop="real_name"/> <el-table-column label="收货人" align="center" prop="real_name"/>
<el-table-column label="联系电话" align="center" prop="mobile"/> <el-table-column label="联系电话" align="center" prop="mobile"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
...@@ -88,6 +93,8 @@ ...@@ -88,6 +93,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<div class="footer_pagination"> <div class="footer_pagination">
<el-pagination <el-pagination
background background
...@@ -170,6 +177,8 @@ ...@@ -170,6 +177,8 @@
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
total: 0, total: 0,
total1:'',//待发货
total2:'',//已发货
activeName: 'first', activeName: 'first',
form: { form: {
order_sn: '', order_sn: '',
...@@ -256,6 +265,12 @@ ...@@ -256,6 +265,12 @@
listOrder(params).then(res => { listOrder(params).then(res => {
if (res.code == 1) { if (res.code == 1) {
this.total = res.data.count || 0 this.total = res.data.count || 0
if( this.goodsStatus == 1){
this.total1 = res.data.count || 0
}
if( this.goodsStatus == 2){
this.total2 = res.data.count || 0
}
this.tableData = res.data.data this.tableData = res.data.data
} }
}) })
...@@ -381,7 +396,13 @@ ...@@ -381,7 +396,13 @@
/deep/.el-range-editor.el-input__inner { /deep/.el-range-editor.el-input__inner {
width: 100%; width: 100%;
} }
/deep/ .el-card__body{
height:calc(100% - 50px);
}
.scollbox{
height: calc(100% - 50px);
overflow-y: scroll;
}
.form-box { .form-box {
background-color: #F7F8FA; background-color: #F7F8FA;
margin-bottom: 20px; margin-bottom: 20px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论