Commit b47715cc by 杨北旺

style:修复表格样式

1 parent b4cce47b
...@@ -6408,9 +6408,9 @@ ...@@ -6408,9 +6408,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.5.1", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.1.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-oH3TsANYngsVdDvi7XIqym48sbOuOYoVXV1m8FUoFBC7vI0gCPMgV9iMQosBGKSCPZ70m9XFgQTA0411CpZS9g==", "integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.4.7", "el-tree-transfer": "^2.4.7",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.4.9", "glsx-common": "^1.4.9",
"glsx-components": "^1.5.1", "glsx-components": "^1.5.2",
"glsx-vue-components": "^1.0.15", "glsx-vue-components": "^1.0.15",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"vue": "^2.6.14", "vue": "^2.6.14",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
> >
<el-button <el-button
slot="reference" slot="reference"
icon="el-icon-question" icon="gl-icon-circle-question"
circle circle
></el-button> ></el-button>
</el-popover> </el-popover>
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
<style scope> <style scope>
.table-tooltip { .table-tooltip {
padding-right: 0 !important; padding-right: 0 !important;
padding-left: 4px !important;
} }
.table-tooltip .el-button { .table-tooltip .el-button {
border: none !important; border: none !important;
......
...@@ -6,9 +6,9 @@ export default { ...@@ -6,9 +6,9 @@ export default {
carTableData: [], carTableData: [],
carTableParams: { carTableParams: {
listName: 'data.list', listName: 'data.list',
rowStyle: ({ row, rowIndex }) => { // rowStyle: ({ row, rowIndex }) => {
return row.status == 0 ? {opacity:0.5} : '' // return row.status == 0 ? {opacity:0.5} : ''
}, // },
tableColumns: [{ tableColumns: [{
label: '权益名称', label: '权益名称',
prop: 'equityName', prop: 'equityName',
......
...@@ -9,9 +9,9 @@ export default { ...@@ -9,9 +9,9 @@ export default {
tags: [], tags: [],
goodsTableData: [], goodsTableData: [],
goodsTableParams: { goodsTableParams: {
rowStyle: ({ row, rowIndex }) => { // rowStyle: ({ row, rowIndex }) => {
return row.status == 0 ? {opacity:0.5} : '' // return row.status == 0 ? {opacity:0.5} : ''
}, // },
tableColumns: [{ tableColumns: [{
label: '权益名称', label: '权益名称',
prop: 'equityName', prop: 'equityName',
......
...@@ -109,14 +109,20 @@ export default { ...@@ -109,14 +109,20 @@ export default {
} }
}, },
{ {
label: '实付金额', label: '实付金额/元',
prop: 'price', prop: 'price',
align:'right' align:'right',
formatter(cell){
return cell.price.toFixed(2)
}
}, },
{ {
label: '订单总额', label: '订单总额/元',
prop: 'income', prop: 'income',
align:'right' align:'right',
formatter(cell){
return cell.income.toFixed(2)
}
}, },
{ {
label: '订单号', label: '订单号',
......
...@@ -194,22 +194,31 @@ export default { ...@@ -194,22 +194,31 @@ export default {
} }
}, },
{ {
label: '订单成本金额', label: '订单成本金额/元',
prop: 'costPrices', prop: 'costPrices',
width: 150, width: 150,
align: 'right' align: 'right',
formatter(cell){
return cell.costPrices.toFixed(2)
}
}, },
{ {
label: '订单支付金额', label: '订单支付金额/元',
prop: 'orderPrices', prop: 'orderPrices',
width: 150, width: 150,
align: 'right' align: 'right',
formatter(cell){
return cell.orderPrices.toFixed(2)
}
}, },
{ {
label: '销售差额', label: '销售差额/元',
prop: 'discount', prop: 'discount',
width: 150, width: 150,
align: 'right' align: 'right',
formatter(cell){
return cell.discount.toFixed(2)
}
}, },
{ {
label: '下单渠道', label: '下单渠道',
......
...@@ -184,26 +184,26 @@ export default { ...@@ -184,26 +184,26 @@ export default {
prop: 'oilName' prop: 'oilName'
}, },
{ {
label: '加油升数(L)', label: '加油升数/L',
prop: 'litre', prop: 'litre',
width: '150' width: '150'
}, },
{ {
label: '实付金额', label: '实付金额/元',
prop: 'amountPay', prop: 'amountPay',
width: '100', width: 120,
align: 'right' align: 'right'
}, },
{ {
label: '订单总额', label: '订单总额/元',
prop: 'amountGun', prop: 'amountGun',
width: '100', width: 120,
align: 'right' align: 'right'
}, },
{ {
label: '优惠金额', label: '优惠金额/元',
prop: 'amountDiscounts', prop: 'amountDiscounts',
width: '100', width: 120,
align: 'right' align: 'right'
}, },
{ {
......
...@@ -213,13 +213,16 @@ export default { ...@@ -213,13 +213,16 @@ export default {
} }
}, },
{ {
label: '会员价(元)', label: '会员价/元',
width: 150, width: 150,
prop: 'salesPrice' align:'right',
prop: 'salesPrice',
formatter(cell){
return parseFloat(cell.salesPrice).toFixed(2)
}
}, },
{ {
prop: 'sales', prop: 'sales',
sortable: true, sortable: true,
label: '销量', label: '销量',
width: 110 width: 110
......
...@@ -294,14 +294,14 @@ export default { ...@@ -294,14 +294,14 @@ export default {
} }
}, },
{ {
label: '售价', label: '售价/元',
prop: 'price', prop: 'price',
align: 'right', align: 'right',
formatter: cellValue => { formatter: cellValue => {
if (cellValue.price == null) { if (cellValue.price == null) {
return '39.9' + '元' return '39.9'
} else { } else {
return cellValue.price + '元' return parseFloat(cellValue.price).toFixed(2)
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!