Commit 8e92bbcd by chenwq

fix: 修复购物车总价显示格式并调整发货列表列宽

- 在购物车组件中将总价格式化为两位小数
- 在发货列表组件中统一调整各列宽度为120px,优化表格显示
1 parent ea6d36c0
...@@ -212,11 +212,13 @@ export default { ...@@ -212,11 +212,13 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商品名称', label: '商品名称',
prop: 'upgradeGoodsName' prop: 'upgradeGoodsName',
width: '120px'
}, },
{ {
label: '商品编码', label: '商品编码',
prop: 'type' prop: 'type',
width: '120px'
}, },
{ {
label: '规格', label: '规格',
...@@ -234,11 +236,13 @@ export default { ...@@ -234,11 +236,13 @@ export default {
}, },
{ {
label: '所属分类', label: '所属分类',
prop: 'goodsTypeName' prop: 'goodsTypeName',
width: '120px'
}, },
{ {
label: '发货数量', label: '发货数量',
prop: '', prop: '',
width: '120px',
formatter: cellValue => { formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件` return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
} }
...@@ -254,6 +258,7 @@ export default { ...@@ -254,6 +258,7 @@ export default {
{ {
label: '承运单号', label: '承运单号',
prop: 'deliveryNumber', prop: 'deliveryNumber',
width: '120px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.deliveryNumber || '--' return cellValue.deliveryNumber || '--'
} }
...@@ -261,6 +266,7 @@ export default { ...@@ -261,6 +266,7 @@ export default {
{ {
label: '承运公司', label: '承运公司',
prop: 'deliveryCompany', prop: 'deliveryCompany',
width: '120px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.deliveryCompany || '--' return cellValue.deliveryCompany || '--'
} }
...@@ -281,7 +287,8 @@ export default { ...@@ -281,7 +287,8 @@ export default {
}, },
{ {
label: '所属商户', label: '所属商户',
prop: 'merchantName' prop: 'merchantName',
width: '120px'
}, },
{ {
label: '备注', label: '备注',
...@@ -291,6 +298,7 @@ export default { ...@@ -291,6 +298,7 @@ export default {
{ {
label: '状态', label: '状态',
prop: 'putStatus', prop: 'putStatus',
width: '120px',
addHtml: 'putStatus' addHtml: 'putStatus'
} }
] ]
......
...@@ -553,7 +553,7 @@ export default { ...@@ -553,7 +553,7 @@ export default {
this.goodsSelectTotalNumber = goodsSelectTotalNumber this.goodsSelectTotalNumber = goodsSelectTotalNumber
this.goodsTotalNumber = goodsTotalNumber this.goodsTotalNumber = goodsTotalNumber
this.isAllCheck = checkoutFlag this.isAllCheck = checkoutFlag
this.totalPrice = totalPrice this.totalPrice = totalPrice.toFixed(2)
}, },
handleGoodsNumChange(goodsNumber, id, upgradeGoodsId, suitCarTypeList) { handleGoodsNumChange(goodsNumber, id, upgradeGoodsId, suitCarTypeList) {
goodsNumber = parseInt(goodsNumber) goodsNumber = parseInt(goodsNumber)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!