Commit 9a3d9274 by zhangquan

样式bug修复

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