Commit b47715cc by 杨北旺

style:修复表格样式

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