Commit 71b7bb47 by wangzhihui

```

fix(outbound): 统一空值显示为双横线

统一出库页面中各字段的空值显示格式,将单横线'-'改为双横线'--',
保持界面显示的一致性。

fix(warehousing): 统一空值显示为双横线

统一入库页面中各字段的空值显示格式,将单横线'-'改为双横线'--',
保持界面显示的一致性。
```
1 parent 9ef3e6dc
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
prop: '', prop: '',
width: 100, width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.eventType == '1' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-' return cellValue.eventType == '1' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '--'
} }
}, },
{ {
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
prop: 'storeUsage', prop: 'storeUsage',
width: 200, width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.storeUsage || '-' return cellValue.storeUsage || '--'
} }
}, },
{ {
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
// 出库方式: 2-扫码出库, 4-手工出库 // 出库方式: 2-扫码出库, 4-手工出库
return cellValue.reduceMethod == 2 ? '扫码出库' : cellValue.reduceMethod == 4 ? '手工出库' : '-' return cellValue.reduceMethod == 2 ? '扫码出库' : cellValue.reduceMethod == 4 ? '手工出库' : '--'
} }
}, },
{ {
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
label: '支付时间', label: '支付时间',
prop: 'successDate', prop: 'successDate',
formatter: cellValue => { formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}, },
width: 180 width: 180
}, },
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
label: '入库数量', label: '入库数量',
prop: 'increaseStockNum', prop: 'increaseStockNum',
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '--'
}, },
width: 120 width: 120
}, },
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
label: '入库金额/元', label: '入库金额/元',
prop: 'increaseStockMoney', prop: 'increaseStockMoney',
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockMoney || cellValue.increaseStockMoney == 0 ? '¥' + cellValue.increaseStockMoney.toFixed(2) : '-' return cellValue.increaseStockMoney || cellValue.increaseStockMoney == 0 ? '¥' + cellValue.increaseStockMoney.toFixed(2) : '--'
}, },
width: 120 width: 120
}, },
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
prop: '', prop: '',
minWidth: 150, minWidth: 150,
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockType == '4' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-' return cellValue.increaseStockType == '4' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '--'
} }
}, },
{ {
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
// 入库方式: 1-扫码入库, 3-手工入库 // 入库方式: 1-扫码入库, 3-手工入库
return cellValue.warehousingMethod == 1 ? '扫码入库' : cellValue.warehousingMethod == 3 ? '手工入库' : '-' return cellValue.warehousingMethod == 1 ? '扫码入库' : cellValue.warehousingMethod == 3 ? '手工入库' : '--'
} }
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!