Commit 0ebd49ca by wangzhihui

```

feat(orderManage): 优化引荐数审核页面显示效果

- 在remark和merchantName字段添加条件渲染,避免空值显示popover
- 优化代码缩进格式,提升可读性

fix(inStoreManage): 修复批量修改薪资弹窗样式和验证问题

- 为批量修改薪资弹窗组件添加CSS类名并调整宽度从500px到480px
- 为effectiveMonth字段添加必填验证规则
- 在日期选择器上添加CSS类名以控制宽度

fix(inStoreManage): 修复编辑员工表单验证规则

- 为effectiveMonth字段添加必填验证规则,确保用户必须选择生效月份

fix(configurationPerformance): 修复绩效配置数值处理逻辑

- 修改小数处理逻辑,保留指定小数位数时包含尾随小数点
- 修改验证逻辑,允许值为0的情况通过验证

feat(validReferrals): 优化有效引荐页面字段显示

- 在remark和merchantName字段添加条件渲染,避免空值显示popover
- 统一代码缩进格式,提升代码可读性
```
1 parent e509c083
...@@ -45,7 +45,11 @@ ...@@ -45,7 +45,11 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
> >
<div slot="imageUrls" slot-scope="scope" class="coverImage-preview"> <div
slot="imageUrls"
slot-scope="scope"
class="coverImage-preview"
>
<glsx-preview <glsx-preview
:image-url-arr=" :image-url-arr="
scope.scope.imageUrls scope.scope.imageUrls
...@@ -57,7 +61,12 @@ ...@@ -57,7 +61,12 @@
></glsx-preview> ></glsx-preview>
</div> </div>
<template slot="remark" slot-scope="scope"> <template slot="remark" slot-scope="scope">
<el-popover placement="top" width="fit-content" trigger="hover"> <template v-if="scope.scope.remark">
<el-popover
placement="top"
width="fit-content"
trigger="hover"
>
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.remark || "-" }} {{ scope.scope.remark || "-" }}
</div> </div>
...@@ -66,8 +75,15 @@ ...@@ -66,8 +75,15 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
<template slot="merchantName" slot-scope="scope"> <template slot="merchantName" slot-scope="scope">
<el-popover placement="top" width="fit-content" trigger="hover"> <template v-if="scope.scope.merchantName">
<el-popover
placement="top"
width="fit-content"
trigger="hover"
>
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.merchantName || "-" }} {{ scope.scope.merchantName || "-" }}
</div> </div>
...@@ -76,6 +92,8 @@ ...@@ -76,6 +92,8 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
<!--状态 --> <!--状态 -->
<div slot="statusHtml" slot-scope="scope"> <div slot="statusHtml" slot-scope="scope">
<div class="online-status"> <div class="online-status">
...@@ -83,9 +101,11 @@ ...@@ -83,9 +101,11 @@
class="dot" class="dot"
:style="{ :style="{
background: getStatusColor( background: getStatusColor(
scope && scope.scope && scope.scope.isReviewed, scope &&
scope.scope &&
scope.scope.isReviewed,
'reviewStatusOptMap' 'reviewStatusOptMap'
) ),
}" }"
></span> ></span>
{{ {{
...@@ -101,7 +121,10 @@ ...@@ -101,7 +121,10 @@
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<span <span
style="margin-right: 8px" style="margin-right: 8px"
v-if="scope.scope.isReviewed == 2 || scope.scope.isReviewed == 1" v-if="
scope.scope.isReviewed == 2 ||
scope.scope.isReviewed == 1
"
> >
<auth-button <auth-button
slot="auth-button" slot="auth-button"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
@handleClose="closeDialogVisible" @handleClose="closeDialogVisible"
@handleConfirm="handleUpdateConfirm" @handleConfirm="handleUpdateConfirm"
:slotArr="slotArr" :slotArr="slotArr"
class="batch-modify-salary-dialog"
> >
<template slot="effectiveMonth"> <template slot="effectiveMonth">
<el-date-picker <el-date-picker
...@@ -24,6 +25,7 @@ ...@@ -24,6 +25,7 @@
size="small" size="small"
:clearable="false" :clearable="false"
value-format="yyyy-MM" value-format="yyyy-MM"
class="effectiveMonth"
> >
</el-date-picker> </el-date-picker>
</template> </template>
...@@ -62,7 +64,7 @@ export default { ...@@ -62,7 +64,7 @@ export default {
}, },
isUpdateDialogConfig: { isUpdateDialogConfig: {
title: "批量修改薪资占比", title: "批量修改薪资占比",
width: "500px", width: "480px",
okText: "确定" okText: "确定"
}, },
isUpdateForm: { isUpdateForm: {
...@@ -111,6 +113,9 @@ export default { ...@@ -111,6 +113,9 @@ export default {
this.validatePercent(value, callback), this.validatePercent(value, callback),
trigger: "blur" trigger: "blur"
} }
],
effectiveMonth: [
{ required: true, message: "请选择", trigger: "change" }
] ]
}, },
baseData: {}, baseData: {},
...@@ -195,4 +200,10 @@ export default { ...@@ -195,4 +200,10 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.batch-modify-salary-dialog{
::v-deep .el-date-editor.el-input{
width: 290px!important;
}
}
</style>
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
></glsx-preview> ></glsx-preview>
</div> </div>
<template slot="remark" slot-scope="scope"> <template slot="remark" slot-scope="scope">
<template v-if="scope.scope.remark">
<el-popover placement="top" width="fit-content" trigger="hover"> <el-popover placement="top" width="fit-content" trigger="hover">
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.remark || "-" }} {{ scope.scope.remark || "-" }}
...@@ -86,7 +87,10 @@ ...@@ -86,7 +87,10 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
<template slot="replyContent" slot-scope="scope"> <template slot="replyContent" slot-scope="scope">
<template v-if="scope.scope.replyContent">
<el-popover placement="top" width="fit-content" trigger="hover"> <el-popover placement="top" width="fit-content" trigger="hover">
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.replyContent || "-" }} {{ scope.scope.replyContent || "-" }}
...@@ -96,6 +100,8 @@ ...@@ -96,6 +100,8 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button <el-button
size="small" size="small"
......
...@@ -1062,6 +1062,11 @@ export default { ...@@ -1062,6 +1062,11 @@ export default {
trigger: "blur" trigger: "blur"
} }
], ],
effectiveMonth:[{
required: true,
message: "请选择",
trigger: "blur"
}],
hireType: [ hireType: [
{ {
required: true, required: true,
......
...@@ -374,10 +374,9 @@ export default { ...@@ -374,10 +374,9 @@ export default {
intPart = (intPart || "").replace(/^0+(?=\d)/, "") intPart = (intPart || "").replace(/^0+(?=\d)/, "")
if (intPart === "") intPart = "0" if (intPart === "") intPart = "0"
if (decPart != null) { if (decPart != null) {
// 截断到指定位数的小数 // 保留到指定小数位数;当还没输入小数位时保留尾随小数点
decPart = decPart.slice(0, maxDecimals) decPart = decPart.slice(0, maxDecimals)
// 如果没有小数位,去掉小数点 s = `${intPart}.${decPart}`
s = decPart.length > 0 ? `${intPart}.${decPart}` : intPart
} else { } else {
s = intPart s = intPart
} }
...@@ -431,12 +430,12 @@ export default { ...@@ -431,12 +430,12 @@ export default {
for (const r of this.performanceLevelDetailDTOS) { for (const r of this.performanceLevelDetailDTOS) {
// 新增:分数、系数不能为空 // 新增:分数、系数不能为空
const scoreRaw = String(r.scoreNumericValue || r.scoreSymbolValue || "").trim() const scoreRaw = String(r.scoreNumericValue || r.scoreSymbolValue || "").trim()
if (!scoreRaw) { if (!scoreRaw&&scoreRaw!=0) {
this.$message.error(`${this.levelNameMap[r.levelCode]}分数不能为空`) this.$message.error(`${this.levelNameMap[r.levelCode]}分数不能为空`)
return false return false
} }
const coefRaw = String(r.rewardCoefficient || "").trim() const coefRaw = String(r.rewardCoefficient || "").trim()
if (!coefRaw) { if (!coefRaw&&coefRaw!=0) {
this.$message.error(`${this.levelNameMap[r.levelCode]}奖励系数不能为空`) this.$message.error(`${this.levelNameMap[r.levelCode]}奖励系数不能为空`)
return false return false
} }
......
...@@ -48,7 +48,12 @@ ...@@ -48,7 +48,12 @@
></glsx-preview> ></glsx-preview>
</div> </div>
<template slot="remark" slot-scope="scope"> <template slot="remark" slot-scope="scope">
<el-popover placement="top" width="fit-content" trigger="hover"> <template v-if="scope.scope.remark">
<el-popover
placement="top"
width="fit-content"
trigger="hover"
>
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.remark || "-" }} {{ scope.scope.remark || "-" }}
</div> </div>
...@@ -57,8 +62,15 @@ ...@@ -57,8 +62,15 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
<template slot="merchantName" slot-scope="scope"> <template slot="merchantName" slot-scope="scope">
<el-popover placement="top" width="fit-content" trigger="hover"> <template v-if="scope.scope.merchantName">
<el-popover
placement="top"
width="fit-content"
trigger="hover"
>
<div class="tags-popover"> <div class="tags-popover">
{{ scope.scope.merchantName || "-" }} {{ scope.scope.merchantName || "-" }}
</div> </div>
...@@ -67,6 +79,8 @@ ...@@ -67,6 +79,8 @@
}}</span> }}</span>
</el-popover> </el-popover>
</template> </template>
<template v-else>-</template>
</template>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!