Commit 075db4a4 by wangzhihui

```

fix(allocation): 修复状态显示的可选链语法问题

- 修复 billStatus 和 deliveryStatus 的可选链语法,避免属性访问错误
- 统一空的 catch 块语法为 () => {}

refactor(sendBack): 优化退款状态列表项查找逻辑

- 将可选链语法重构为显式的条件判断
- 改进代码可读性和兼容性

style(sendBack): 调整样式代码格式

- 在相关样式块之间添加适当的空行
- 添加新的状态标记样式类
```
1 parent 67be202f
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
<GLTable ref="allocationRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allocationRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="billStatus" slot-scope="scope"> <template slot="billStatus" slot-scope="scope">
<div> <div>
<span :class="billStatusObj[scope.scope.billStatus]?.class || ''"></span> <span :class="(billStatusObj[scope.scope.billStatus] || {}).class || ''"></span>
<span>{{ scope.scope.billStatusName }}</span> <span>{{ scope.scope.billStatusName }}</span>
</div> </div>
</template> </template>
<template slot="deliveryStatus" slot-scope="scope"> <template slot="deliveryStatus" slot-scope="scope">
<div> <div>
<span :class="deliveryStatusObj[scope.scope.deliveryStatus]?.class || ''"></span> <span :class="(deliveryStatusObj[scope.scope.deliveryStatus] || {}).class || ''"></span>
<span>{{ scope.scope.deliveryStatusName }}</span> <span>{{ scope.scope.deliveryStatusName }}</span>
</div> </div>
</template> </template>
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
console.log(row) console.log(row)
this.updateStatus(row, 1, '提交审核成功') this.updateStatus(row, 1, '提交审核成功')
}) })
.catch(() => { }) .catch(() => {})
} }
} }
}, },
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
console.log(row) console.log(row)
this.updateStatus(row, '-1', '作废成功') this.updateStatus(row, '-1', '作废成功')
}) })
.catch(() => { }) .catch(() => {})
} }
} }
} }
......
...@@ -156,7 +156,8 @@ export default { ...@@ -156,7 +156,8 @@ export default {
width: 150, width: 150,
addHtml: 'refundStatus', addHtml: 'refundStatus',
formatter: cellValue => { formatter: cellValue => {
return this.baseData.refundStatusList.find(item => item.confId === cellValue.refundStatus)?.confLabel || '-' let item = this.baseData.refundStatusList.find(item => item.confId === cellValue.refundStatus)
return item ? item.confLabel : '-'
}, },
className: cellValue => { className: cellValue => {
return { return {
...@@ -216,7 +217,7 @@ export default { ...@@ -216,7 +217,7 @@ export default {
console.log(row) console.log(row)
this.updateStatus(row, 2, '提交审核成功') this.updateStatus(row, 2, '提交审核成功')
}) })
.catch(() => { }) .catch(() => {})
} }
} }
}, },
...@@ -255,7 +256,7 @@ export default { ...@@ -255,7 +256,7 @@ export default {
console.log(row) console.log(row)
this.updateStatus(row, 5, '作废成功') this.updateStatus(row, 5, '作废成功')
}) })
.catch(() => { }) .catch(() => {})
} }
} }
} }
...@@ -452,6 +453,7 @@ export default { ...@@ -452,6 +453,7 @@ export default {
} }
} }
} }
@mixin spotBase { @mixin spotBase {
width: 8px; width: 8px;
height: 8px; height: 8px;
...@@ -459,6 +461,7 @@ export default { ...@@ -459,6 +461,7 @@ export default {
margin-right: 5px; margin-right: 5px;
display: inline-block; display: inline-block;
} }
.ashSpot { .ashSpot {
@include spotBase(); @include spotBase();
background: #c6c8cc; background: #c6c8cc;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!