Commit 075db4a4 by wangzhihui

```

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

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

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

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

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

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