Commit 9a3d9274 by zhangquan

样式bug修复

1 parent 13134eea
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
<GLFooter>
<el-button style="margin-top: 16px;" @click="$router.back()" size="medium">取消</el-button>
</GLFooter>
</div> </div>
</template> </template>
...@@ -108,14 +111,14 @@ export default { ...@@ -108,14 +111,14 @@ export default {
{ {
label: '小计 (元)', label: '小计 (元)',
formatter: cell => { formatter: cell => {
return cell.salePrice * cell.sellQty return (cell.salePrice * cell.sellQty).toFixed(2)
} }
}, },
{ {
label: '实收金额 (元)', label: '实收金额 (元)',
prop: 'orderAmount', prop: 'orderAmount',
formatter: cell => { formatter: cell => {
return cell.salePrice * cell.sellQty return (cell.salePrice * cell.sellQty).toFixed(2)
} }
} }
] ]
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<span v-for="item in titleList" :key="item.id" :class="['title', {'curTitleCla': orderFormObj.requestType==item.id}]" @click="changeTable(item.id)">{{item.name}}</span> <span v-for="item in titleList" :key="item.id" :class="['title', {'curTitleCla': orderFormObj.requestType==item.id}]" @click="changeTable(item.id)">{{item.name}}</span>
</div> </div>
<div class="table-wrap"> <div class="table-wrap">
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn"> <GLTable @setTableFinishFun="setTableFinishFun" ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope"> <div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt=""> <img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top"> <el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
label: '实收金额 (元)', label: '实收金额 (元)',
width: 130, width: 130,
formatter: cell => { formatter: cell => {
return cell.salePrice * cell.sellQty return (cell.salePrice * cell.sellQty).toFixed(2)
} }
}, },
{ {
...@@ -182,6 +182,10 @@ export default { ...@@ -182,6 +182,10 @@ export default {
methods: { methods: {
transfStatus: util.transfStatus, transfStatus: util.transfStatus,
setTableFinishFun () {
//接收到的数据为空
this.$refs.tableRef.data.length ? (this.$refs.tableRef.tableHeightValues = '') : this.$refs.tableRef.setTableHeightFun()
},
changeTable(id){ changeTable(id){
this.orderFormObj.requestType = id this.orderFormObj.requestType = id
this.handleSearch() this.handleSearch()
......
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter>
<el-button style="margin-top: 16px;" @click="$router.back()" size="medium">取消</el-button>
</GLFooter>
</div> </div>
</template> </template>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-button :size="size" type="primary" plain @click="batchPriceChange">批量改价</el-button> <el-button :size="size" type="primary" plain @click="batchPriceChange">批量改价</el-button>
</div> </div>
</div> </div>
<GLTable ref="tableRef" :pageConf="pageConf" @sortChange="sortChange" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn"> <GLTable @setTableFinishFun="setTableFinishFun" ref="tableRef" :pageConf="pageConf" @sortChange="sortChange" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope"> <div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImgUrl" alt=""> <img :src="scope.scope.goodsImgUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top"> <el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
...@@ -217,6 +217,11 @@ export default { ...@@ -217,6 +217,11 @@ export default {
}, },
methods: { methods: {
setTableFinishFun () {
//接收到的数据为空
this.$refs.tableRef.data.length ? (this.$refs.tableRef.tableHeightValues = '') : this.$refs.tableRef.setTableHeightFun()
},
sortChange(e){ sortChange(e){
const {order, prop} = e const {order, prop} = e
if(prop=='saleAmount'){ if(prop=='saleAmount'){
......
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter>
<el-button style="margin-top: 16px;" @click="$router.back()" size="medium">取消</el-button>
</GLFooter>
</div> </div>
</template> </template>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-button :size="size" @click="batchRemove({}, 1)">批量移出</el-button> <el-button :size="size" @click="batchRemove({}, 1)">批量移出</el-button>
</div> </div>
</div> </div>
<GLTable ref="tableRef" @sortChange="sortChange" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn"> <GLTable @setTableFinishFun="setTableFinishFun" ref="tableRef" @sortChange="sortChange" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope"> <div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImgUrl" alt=""> <img :src="scope.scope.goodsImgUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top"> <el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
...@@ -206,6 +206,10 @@ export default { ...@@ -206,6 +206,10 @@ export default {
}, },
methods: { methods: {
setTableFinishFun () {
//接收到的数据为空
this.$refs.tableRef.data.length ? (this.$refs.tableRef.tableHeightValues = '') : this.$refs.tableRef.setTableHeightFun()
},
sortChange(e){ sortChange(e){
const {order, prop} = e const {order, prop} = e
if(prop=='goodsStock'){ if(prop=='goodsStock'){
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
<GLFooter>
<el-button style="margin-top: 16px;" @click="$router.back()" size="medium">取消</el-button>
</GLFooter>
</div> </div>
</template> </template>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<span v-for="item in titleList" :key="item.id" :class="['title', {'curTitleCla': orderFormObj.requestType==item.id}]" @click="changeTable(item.id)">{{item.name}}</span> <span v-for="item in titleList" :key="item.id" :class="['title', {'curTitleCla': orderFormObj.requestType==item.id}]" @click="changeTable(item.id)">{{item.name}}</span>
</div> </div>
<div class="table-wrap"> <div class="table-wrap">
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn"> <GLTable @setTableFinishFun="setTableFinishFun" ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope"> <div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt=""> <img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top"> <el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
...@@ -198,6 +198,10 @@ export default { ...@@ -198,6 +198,10 @@ export default {
}, },
methods: { methods: {
setTableFinishFun () {
//接收到的数据为空
this.$refs.tableRef.data.length ? (this.$refs.tableRef.tableHeightValues = '') : this.$refs.tableRef.setTableHeightFun()
},
changeTable(id){ changeTable(id){
this.orderFormObj.requestType = id this.orderFormObj.requestType = id
this.handleSearch() this.handleSearch()
......
...@@ -263,7 +263,12 @@ export default { ...@@ -263,7 +263,12 @@ export default {
padding: 20px; padding: 20px;
.noData{ .noData{
margin: auto; height: calc(100vh - 310px);
min-height: 300px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center; text-align: center;
color: #666; color: #666;
img{ img{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!