Commit ba181d5d by wangzhihui

```

feat(constants): 更新申诉类型常量配置

- 将申诉类型从"工资申诉"/"考勤申诉"改为"平板"/"考勤"
- 修正相关字段显示内容以匹配新业务需求

fix(orderManage): 优化推荐审核页面门店列标签

- 将门店列标签从"门店"改为"门店名称"
- 提升用户界面的清晰度和准确性

feat(inStoreManage): 完善批量修改薪资功能并调整百分比范围

- 修改updateBatchSalary方法参数传递方式
- 移除错误提示信息的重复处理
- 将百分比输入范围从1-99调整为0-100
- 更新相关验证规则和错误提示文本

feat(inStoreManage): 重构考勤薪资管理组件界面和功能

- 将申诉月份选择器从月范围改为单个月份
- 移除申诉记录标题和无用注释代码
- 调整表格列宽以改善显示效果
- 修改日期选择器配置并更新数据处理逻辑
- 添加导出功能的相关参数处理

fix(editStaff): 统一百分比输入验证范围

- 将百分比输入范围从1-99调整为0-100
- 更新错误提示信息以反映新的取值范围

feat(configurationPerformance): 增强绩效配置表单的交互控制

- 为多个表单项添加基于状态的禁用控制
- 调整月份选择器的格式化方式
- 优化数值解析逻辑和显示格式
- 完善绩效等级验证规则
- 移除调试日志代码

feat(inStoreManage): 优化店内管理页面搜索功能

- 添加多选上级领导支持
- 增加批量修改薪资后的刷新回调
- 改进基础数据获取和选项列表处理逻辑

feat(salaryPerformance): 重新组织薪资绩效页面标签结构

- 调整标签页顺序和命名
- 更新标签页切换逻辑以正确映射组件
- 改进组件间的关联关系

fix(validReferrals): 优化有效推荐页面门店列显示

- 将门店列标签从"门店"改为"门店名称"
- 提升界面一致性和用户体验
```
1 parent 3a73472d
...@@ -1837,8 +1837,8 @@ export const statusTypeOptMap = { ...@@ -1837,8 +1837,8 @@ export const statusTypeOptMap = {
3: "#999999" 3: "#999999"
} }
export const appealTypeOpt = [ export const appealTypeOpt = [
{ confId: "2", confValue: "工资申诉" }, { confId: "2", confValue: "平板" },
{ confId: "1", confValue: "考勤申诉" } { confId: "1", confValue: "考勤" }
] ]
export const signerTypeOpt = [ export const signerTypeOpt = [
{ confId: 0, confValue: "个人" }, { confId: 0, confValue: "个人" },
......
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
}, },
tableColumns: [ tableColumns: [
{ {
label: "门店", label: "门店名称",
prop: "merchantName", prop: "merchantName",
minWidth: "150", minWidth: "150",
addHtml: "merchantName" addHtml: "merchantName"
......
...@@ -127,36 +127,34 @@ export default { ...@@ -127,36 +127,34 @@ export default {
staffPhoneList: this.staffPhoneList, staffPhoneList: this.staffPhoneList,
...data ...data
} }
updateBatchSalary(data) updateBatchSalary(params)
.then((res) => { .then((res) => {
if (res) { if (res) {
this.$message.success("修改成功") this.$message.success("修改成功")
} }
// this.$emit("refreshTable") this.$emit("refreshTable")
})
.catch(() => {
this.$message.error("修改失败")
}) })
.catch(() => {})
.finally(() => { .finally(() => {
this.isUpdateVisible = false this.isUpdateVisible = false
}) })
}, },
// 仅允许 1-99 的正整数;返回 null 表示空或无效输入 // 仅允许 1-100 的正整数;返回 null 表示空或无效输入
sanitizePercent(val) { sanitizePercent(val) {
const s = String(val == null ? "" : val).replace(/\D/g, "") const s = String(val == null ? "" : val).replace(/\D/g, "")
if (!s) return null if (!s) return null
let n = parseInt(s, 10) let n = parseInt(s, 10)
if (isNaN(n)) return null if (isNaN(n)) return null
if (n < 1) n = 1 if (n < 0) n = 0
if (n > 99) n = 99 // 单个不能为 100,自动纠正为 99 if (n > 100) n = 100
return n return n
}, },
// 表单校验规则:1-99 的正整数 // 表单校验规则:1-99 的正整数
validatePercent(value, callback) { validatePercent(value, callback) {
const v = this.sanitizePercent(value) const v = this.sanitizePercent(value)
if (v === null) { if (v === null) {
callback(new Error("请输入1-99的正整数")) callback(new Error("请输入0-100的正整数"))
return return
} }
// 联动后总和恒为 100,这里只需校验单项合法 // 联动后总和恒为 100,这里只需校验单项合法
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
<template slot="appealMonth"> <template slot="appealMonth">
<el-date-picker <el-date-picker
v-model="searchForm.appealMonth" v-model="searchForm.appealMonth"
type="monthrange" type="month"
range-separator="至" placeholder="请选择生效月份"
start-placeholder="开始月份"
end-placeholder="结束月份"
size="small" size="small"
:clearable="false" :clearable="false"
value-format="yyyy-MM" value-format="yyyy-MM"
...@@ -34,7 +32,6 @@ ...@@ -34,7 +32,6 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<div class="top"> <div class="top">
<div class="title">申诉记录</div>
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
...@@ -44,8 +41,6 @@ ...@@ -44,8 +41,6 @@
绩效统计导出 绩效统计导出
</el-button> </el-button>
</div> </div>
<!-- :get-list-api="getListApi" -->
<!-- max-height="450" -->
<d2-table <d2-table
ref="tableRef" ref="tableRef"
:search-form="searchFormSearch" :search-form="searchFormSearch"
...@@ -147,10 +142,8 @@ export default { ...@@ -147,10 +142,8 @@ export default {
searchForm: { searchForm: {
appealType: "", appealType: "",
submitTime: [], submitTime: [],
appealMonth: [ appealMonth:
dayjs().subtract(1, "month").format("YYYY-MM"), dayjs().subtract(1, "month").format("YYYY-MM"),
dayjs().subtract(1, "month").format("YYYY-MM")
],
staffName: "", staffName: "",
sceneType: "", sceneType: "",
merchantIdList:[] merchantIdList:[]
...@@ -170,7 +163,8 @@ export default { ...@@ -170,7 +163,8 @@ export default {
label: "提交时间", label: "提交时间",
name: "submitTime", name: "submitTime",
type: "datePicker", type: "datePicker",
isClear: true isClear: true,
pickerOptions:'yesterdayPicker'
}, },
{ {
label: "所属门店", label: "所属门店",
...@@ -229,7 +223,7 @@ export default { ...@@ -229,7 +223,7 @@ export default {
{ {
label: "适配业务", label: "适配业务",
prop: "sceneTypeList", prop: "sceneTypeList",
minWidth: "100", minWidth: "200",
formatter: (cellValue) => { formatter: (cellValue) => {
if (!cellValue.sceneTypeList) return "-" if (!cellValue.sceneTypeList) return "-"
let str = [] let str = []
...@@ -241,7 +235,7 @@ export default { ...@@ -241,7 +235,7 @@ export default {
}, },
{ {
label: "所属门店", label: "所属门店",
minWidth: "220", minWidth: "250",
addHtml: "merchantHtml" addHtml: "merchantHtml"
}, },
{ {
...@@ -357,9 +351,9 @@ export default { ...@@ -357,9 +351,9 @@ export default {
delete this.searchFormSearch.submitTime delete this.searchFormSearch.submitTime
} }
if (this.searchFormSearch.appealMonth.length) { if (this.searchFormSearch.appealMonth.length) {
let [startTime, endTime] = this.searchFormSearch.appealMonth // let [startTime, endTime] = this.searchFormSearch.appealMonth
this.searchFormSearch.appealMonthStart = Util.dateFormate(startTime, "YYYY-MM") this.searchFormSearch.appealMonthStart = Util.dateFormate( this.searchFormSearch.appealMonth, "YYYY-MM")
this.searchFormSearch.appealMonthEnd = Util.dateFormate(endTime, "YYYY-MM") this.searchFormSearch.appealMonthEnd = Util.dateFormate( this.searchFormSearch.appealMonth, "YYYY-MM")
delete this.searchFormSearch.appealMonth delete this.searchFormSearch.appealMonth
} }
resolve() resolve()
...@@ -374,10 +368,13 @@ export default { ...@@ -374,10 +368,13 @@ export default {
}, },
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
handleExport() { handleExport() {
console.log(this.searchFormSearch)
var params = deepClone(this.searchFormSearch) var params = deepClone(this.searchFormSearch)
params.evaluationMonth = params.appealMonthStart
params.moduleName = "STAFF" params.moduleName = "STAFF"
params.pageNum = 1 params.pageNum = 1
params.method = "dj.staff.api.perf.rule.export" params.method = "dj.staff.api.perf.rule.export"
delete params.appealMonthStart
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
......
...@@ -1207,14 +1207,14 @@ export default { ...@@ -1207,14 +1207,14 @@ export default {
if (!s) return null if (!s) return null
let n = parseInt(s, 10) let n = parseInt(s, 10)
if (isNaN(n)) return null if (isNaN(n)) return null
if (n < 1) n = 1 if (n < 0) n = 0
if (n > 99) n = 99 if (n > 100) n = 100
return n return n
}, },
validatePercent(value, callback) { validatePercent(value, callback) {
const v = this.sanitizePercent(value) const v = this.sanitizePercent(value)
if (v === null) { if (v === null) {
callback(new Error("请输入1-99的正整数")) callback(new Error("请输入0-100的正整数"))
return return
} }
callback() callback()
......
...@@ -66,6 +66,9 @@ ...@@ -66,6 +66,9 @@
> >
<el-form-item label="出勤天数要求"> <el-form-item label="出勤天数要求">
<el-input <el-input
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
:value="autoPerformRuleDetailDTO.monthOnboardAttendanceDays" :value="autoPerformRuleDetailDTO.monthOnboardAttendanceDays"
placeholder="1-30" placeholder="1-30"
@input=" @input="
...@@ -80,6 +83,9 @@ ...@@ -80,6 +83,9 @@
<el-form-item label="产值阈值"> <el-form-item label="产值阈值">
<el-input <el-input
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
:value="autoPerformRuleDetailDTO.monthOnboardOutputThreshold" :value="autoPerformRuleDetailDTO.monthOnboardOutputThreshold"
placeholder="5000-20000" placeholder="5000-20000"
@input=" @input="
...@@ -102,8 +108,11 @@ ...@@ -102,8 +108,11 @@
</el-form-item> </el-form-item>
<div class="sub-title">触发规则结果</div> <div class="sub-title">触发规则结果</div>
<el-form-item label="绩效等级"> <el-form-item label="绩效等级:">
<el-select <el-select
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
v-model=" v-model="
autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode
" "
...@@ -150,6 +159,9 @@ ...@@ -150,6 +159,9 @@
> >
<el-form-item label="产值阈值"> <el-form-item label="产值阈值">
<el-input <el-input
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
:value=" :value="
autoPerformRuleDetailDTO.noMonthOnboardOutputThreshold autoPerformRuleDetailDTO.noMonthOnboardOutputThreshold
" "
...@@ -176,6 +188,9 @@ ...@@ -176,6 +188,9 @@
<div class="sub-title small">触发规则结果</div> <div class="sub-title small">触发规则结果</div>
<el-form-item label="绩效等级:"> <el-form-item label="绩效等级:">
<el-select <el-select
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
v-model=" v-model="
autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode
" "
...@@ -220,10 +235,13 @@ ...@@ -220,10 +235,13 @@
> >
<el-form-item label="生效月份"> <el-form-item label="生效月份">
<el-date-picker <el-date-picker
:disabled="
autoPerformRuleDetailDTO.status == 1 ? false : true
"
v-model="autoPerformRuleDetailDTO.effectiveMonth" v-model="autoPerformRuleDetailDTO.effectiveMonth"
type="month" type="month"
:clearable="false" :clearable="false"
value-format="YYYY-MM" value-format="yyyy-MM"
:picker-options="monthPickerOptions" :picker-options="monthPickerOptions"
placeholder="请选择生效月份" placeholder="请选择生效月份"
/> />
...@@ -340,7 +358,7 @@ export default { ...@@ -340,7 +358,7 @@ export default {
return n.toFixed(fixed) return n.toFixed(fixed)
}, },
// 新增:不补零,仅限制最多两位小数 // 限制最多两位小数
sanitizeFloatRangeLoose(val, maxDecimals = 2) { sanitizeFloatRangeLoose(val, maxDecimals = 2) {
let s = String(val == null ? "" : val).replace(/[^\d.]/g, "") let s = String(val == null ? "" : val).replace(/[^\d.]/g, "")
if (!s) return "" if (!s) return ""
...@@ -357,13 +375,12 @@ export default { ...@@ -357,13 +375,12 @@ export default {
return s return s
}, },
parseScoreWithSymbol(val, min, max) { parseScoreWithSymbol(val, min, max) {
const raw = String(val == null ? "" : val) const raw = String(val == null ? "" : val.trim())
const m = raw.match(/[><=]|[<>=]/) const m = raw.match(/[><=]|[<>=]/)
const signRaw = m ? m[0] : "" const signRaw = m ? m[0] : ""
const sign = signRaw const sign = signRaw
.replace("<", "<") ? signRaw.replace("<", "<").replace(">", ">").replace("=", "=")
.replace(">", ">") : ""
.replace("=", "=")
const body = raw.replace(/[<>=\s]|[<>=]/g, "") const body = raw.replace(/[<>=\s]|[<>=]/g, "")
let cleaned = this.sanitizeFloatRangeLoose(body, 2) let cleaned = this.sanitizeFloatRangeLoose(body, 2)
...@@ -377,7 +394,7 @@ export default { ...@@ -377,7 +394,7 @@ export default {
cleaned = "" cleaned = ""
} }
} }
const display = sign ? (cleaned ? `${sign} ${cleaned}` : sign) : cleaned const display = sign ? (cleaned ? `${sign}${cleaned}` : sign) : cleaned
const numeric = cleaned const numeric = cleaned
return { sign, numeric, display } return { sign, numeric, display }
}, },
...@@ -387,18 +404,14 @@ export default { ...@@ -387,18 +404,14 @@ export default {
(l) => l.levelCode === code (l) => l.levelCode === code
) )
if (!src) return if (!src) return
const parsed = this.parseScoreWithSymbol(
src.scoreNumericValue || src.scoreSymbolValue,
0,
200
)
const score = parsed.numeric
if (place === "monthOnboardTrigger") { if (place === "monthOnboardTrigger") {
this.autoPerformRuleDetailDTO.monthOnboardTriggerScore = score this.autoPerformRuleDetailDTO.monthOnboardTriggerScore =
src.scoreSymbolValue
this.autoPerformRuleDetailDTO.monthOnboardTriggerRewardCoefficient = this.autoPerformRuleDetailDTO.monthOnboardTriggerRewardCoefficient =
src.rewardCoefficient src.rewardCoefficient
} else if (place === "noMonthOnboardTrigger") { } else if (place === "noMonthOnboardTrigger") {
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerScore = score this.autoPerformRuleDetailDTO.noMonthOnboardTriggerScore =
src.scoreSymbolValue
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerRewardCoefficient = this.autoPerformRuleDetailDTO.noMonthOnboardTriggerRewardCoefficient =
src.rewardCoefficient src.rewardCoefficient
} }
...@@ -420,8 +433,17 @@ export default { ...@@ -420,8 +433,17 @@ export default {
) )
return false return false
} }
const limitedCodes = ["B", "B-", "C", "D"] // B 允许 <= 1.0;B- / C / D 需 < 1.0;其他 0-10
if (limitedCodes.includes(r.levelCode)) { if (r.levelCode === "B") {
if (isNaN(coef) || coef < 0 || coef > 1) {
this.$message.error(
`${
this.levelNameMap[r.levelCode]
}奖励系数需小于等于1.0,最多2位小数`
)
return false
}
} else if (["B-", "C", "D"].includes(r.levelCode)) {
if (isNaN(coef) || coef < 0 || coef >= 1) { if (isNaN(coef) || coef < 0 || coef >= 1) {
this.$message.error( this.$message.error(
`${this.levelNameMap[r.levelCode]}奖励系数需小于1.0,最多2位小数` `${this.levelNameMap[r.levelCode]}奖励系数需小于1.0,最多2位小数`
...@@ -467,7 +489,6 @@ export default { ...@@ -467,7 +489,6 @@ export default {
this.autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode, this.autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode,
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode this.autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode
] ]
console.log(selectedCodes, "selectedCodes")
if (selectedCodes.some((c) => !["B-", "C", "D"].includes(c))) { if (selectedCodes.some((c) => !["B-", "C", "D"].includes(c))) {
this.$message.error("自动评绩效规则的绩效等级仅可选择 B- / C / D") this.$message.error("自动评绩效规则的绩效等级仅可选择 B- / C / D")
return false return false
...@@ -484,7 +505,7 @@ export default { ...@@ -484,7 +505,7 @@ export default {
const { sign, numeric, display } = this.parseScoreWithSymbol(val, 0, 200) const { sign, numeric, display } = this.parseScoreWithSymbol(val, 0, 200)
row.scoreSymbolSign = sign row.scoreSymbolSign = sign
row.scoreNumericValue = numeric row.scoreNumericValue = numeric
row.scoreSymbolValue = display row.scoreSymbolValue = display.trim()
}, },
// 系数输入:0-10,最多两位小数,不自动补.00 // 系数输入:0-10,最多两位小数,不自动补.00
...@@ -493,8 +514,10 @@ export default { ...@@ -493,8 +514,10 @@ export default {
if (cleaned) { if (cleaned) {
const n = parseFloat(cleaned) const n = parseFloat(cleaned)
if (!isNaN(n)) { if (!isNaN(n)) {
const limitedCodes = ["B", "B-", "C", "D"] if (row.levelCode === "B") {
if (limitedCodes.includes(row.levelCode)) { if (n > 1) cleaned = "1"
if (n < 0) cleaned = "0"
} else if (["B-", "C", "D"].includes(row.levelCode)) {
if (n >= 1) cleaned = "0.99" if (n >= 1) cleaned = "0.99"
if (n < 0) cleaned = "0" if (n < 0) cleaned = "0"
} else { } else {
...@@ -507,28 +530,6 @@ export default { ...@@ -507,28 +530,6 @@ export default {
} }
row.rewardCoefficient = cleaned row.rewardCoefficient = cleaned
}, },
handleTriggerLevelChange(place, code) {
const src = this.performanceLevelDetailDTOS.find(
(l) => l.levelCode === code
)
if (!src) return
const parsed = this.parseScoreWithSymbol(
src.scoreNumericValue || src.scoreSymbolValue,
0,
200,
2
)
const score = parsed.numeric
if (place === "monthOnboardTrigger") {
this.autoPerformRuleDetailDTO.monthOnboardTriggerScore = score
this.autoPerformRuleDetailDTO.monthOnboardTriggerRewardCoefficient =
src.rewardCoefficient
} else if (place === "noMonthOnboardTrigger") {
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerScore = score
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerRewardCoefficient =
src.rewardCoefficient
}
},
// 将四处联动值按当前选择初始化一次 // 将四处联动值按当前选择初始化一次
async syncAllTriggerDefaults() { async syncAllTriggerDefaults() {
try { try {
...@@ -540,15 +541,15 @@ export default { ...@@ -540,15 +541,15 @@ export default {
this.autoPerformRuleDetailDTO = result.autoPerformRuleDetailDTO this.autoPerformRuleDetailDTO = result.autoPerformRuleDetailDTO
this.performanceLevelDetailDTOS = result.performanceLevelDetailDTOS this.performanceLevelDetailDTOS = result.performanceLevelDetailDTOS
this.handleTriggerLevelChange( // this.handleTriggerLevelChange(
"monthOnboardTrigger", // "monthOnboardTrigger",
this.autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode // this.autoPerformRuleDetailDTO.monthOnboardTriggerLevelCode
) // )
this.handleTriggerLevelChange( // this.handleTriggerLevelChange(
"noMonthOnboardTrigger", // "noMonthOnboardTrigger",
this.autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode // this.autoPerformRuleDetailDTO.noMonthOnboardTriggerLevelCode
) // )
} }
} catch (e) { } catch (e) {
} finally { } finally {
...@@ -592,7 +593,7 @@ export default { ...@@ -592,7 +593,7 @@ export default {
padding: 0 20px; padding: 0 20px;
height: 100vh; height: 100vh;
.layout { .layout {
height: calc(100% - 190px); height: calc(100% - 220px);
overflow: scroll; overflow: scroll;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 1px; width: 1px;
......
...@@ -111,12 +111,13 @@ ...@@ -111,12 +111,13 @@
:staffPhoneList="staffPhoneList" :staffPhoneList="staffPhoneList"
v-if="batchModifySalaryVisible" v-if="batchModifySalaryVisible"
:visible.sync="batchModifySalaryVisible" :visible.sync="batchModifySalaryVisible"
@refreshTable="clearSelection"
></batch-modify-salary-dialog> ></batch-modify-salary-dialog>
</div> </div>
</template> </template>
<script> <script>
import { Util, deepClone } from "@/common/util" import { Util, deepClone, getOptionsList } from "@/common/util"
import { mapActions, mapState, mapMutations } from "vuex" import { mapActions, mapState, mapMutations } from "vuex"
import { staffLevelList, staffSceneLabelList } from "@/common/constants.js" import { staffLevelList, staffSceneLabelList } from "@/common/constants.js"
import flagDialog from "./components/flagDialog" import flagDialog from "./components/flagDialog"
...@@ -163,7 +164,7 @@ export default { ...@@ -163,7 +164,7 @@ export default {
jobType: "", jobType: "",
workingStatus: "", workingStatus: "",
createdSource: "", createdSource: "",
directLeaderPhone: "" directLeaderPhones: []
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [ showFormData: [
...@@ -240,9 +241,10 @@ export default { ...@@ -240,9 +241,10 @@ export default {
}, },
{ {
label: "上级领导", label: "上级领导",
name: "directLeaderPhone", name: "directLeaderPhones",
type: "select", type: "select",
isClear: true, isClear: true,
multiple: true,
optionList: [], optionList: [],
optionId: "directLeaderPhone", optionId: "directLeaderPhone",
optionLabel: "directLeaderName", optionLabel: "directLeaderName",
...@@ -456,6 +458,9 @@ export default { ...@@ -456,6 +458,9 @@ export default {
}, },
methods: { methods: {
clearSelection() {
this.handleSearch()
},
// 绩效规则配置 // 绩效规则配置
handleConfigurationPerformance() { handleConfigurationPerformance() {
this.$router.push("/configurationPerformance") this.$router.push("/configurationPerformance")
...@@ -478,19 +483,20 @@ export default { ...@@ -478,19 +483,20 @@ export default {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
...mapMutations("d2admin/user", ["setUpdateRefesh"]), ...mapMutations("d2admin/user", ["setUpdateRefesh"]),
async getBaseData() { async getBaseData() {
this.getOptionsList() getOptionsList()
}, },
async fetchAllApi() { async fetchAllApi() {
let [directLeaderList, commissionList] = await Promise.all([ let [directLeaderList, commissionList] = await Promise.all([
getLeaderList(), getLeaderList(),
getCommissionListApi() getCommissionListApi()
]) ])
console.log(commissionList, directLeaderList)
//上级领导列表查询 //上级领导列表查询
this.baseData.directLeaderList = directLeaderList this.baseData.directLeaderList = directLeaderList
//工资绩效 //工资绩效
this.baseData.commissionList = commissionList this.baseData.commissionList = commissionList
this.getOptionsList() getOptionsList(this, "showFormData", true)
getOptionsList(this, "showFormData", false, "directLeaderPhones")
}, },
//批量修改薪资占比 //批量修改薪资占比
handleUpdateSalary() { handleUpdateSalary() {
...@@ -543,7 +549,8 @@ export default { ...@@ -543,7 +549,8 @@ export default {
hireType: "", hireType: "",
jobType: "", jobType: "",
workingStatus: "", workingStatus: "",
createdSource: "" createdSource: "",
directLeaderPhones: []
} }
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com' * @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-01-21 11:17:18 * @Date: 2026-01-21 11:17:18
* @LastEditors: 'wangzhihui' '1733904062@qq.com' * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-01-26 15:09:25 * @LastEditTime: 2026-01-28 10:40:21
* @FilePath: \dj-car-life-system\src\views\residentManage\salaryPerformance\index.vue * @FilePath: \dj-car-life-system\src\views\residentManage\salaryPerformance\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -35,22 +35,22 @@ export default { ...@@ -35,22 +35,22 @@ export default {
}, },
data() { data() {
return { return {
activeName: "1", activeName: "0",
tabPaneList: [ tabPaneList: [
{ {
label: "提成方案配置", label: "提成方案配置",
name: "1" name: "0"
}, },
{ {
label: "门店提成方案", label: "门店提成方案",
name: "0" name: "1"
} }
// { // {
// label: '激励池', // label: '激励池',
// name: "1" // name: "1"
// } // }
], ],
tabName: "performanceList" tabName: "commissionPlanList"
} }
}, },
mounted() { mounted() {
...@@ -63,9 +63,9 @@ export default { ...@@ -63,9 +63,9 @@ export default {
methods: { methods: {
handleClick() { handleClick() {
const arr = { const arr = {
0: "performanceList", 1: "performanceList",
// 1: "rewardPoolLis" // 1: "rewardPoolLis"
1: "commissionPlanList" //提成方案配置 0: "commissionPlanList" //提成方案配置
} }
this.tabName = arr[+this.activeName] this.tabName = arr[+this.activeName]
} }
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
listName: "list", listName: "list",
tableColumns: [ tableColumns: [
{ {
label: "门店", label: "门店名称",
prop: "merchantName", prop: "merchantName",
minWidth: "200", minWidth: "200",
addHtml: "merchantName" addHtml: "merchantName"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!