Commit 5a71abff by 张立顺

Merge branch 'dev_v4.34.0-0131' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into dev_v4.34.0-0131
2 parents 6b20968c 7a8bfead
......@@ -71,7 +71,7 @@ export default {
montorAdditionalBonus: `<div class='mb10'>1、员工a入职时间为8月18日,对应0-3个月内的导师提成比例为20%,假如第一个月内员工a产生订单产值40000元,根据业绩配置该员工提成为4000元,则其关联导师的导师提成激励为4000*20%=800元,计入次月导师的月份最终工资</div>
<div class='mb10'>2、员工a到11月18日为满三个月,12月份初计算导师提成时,按11.1-11.18的学员提成20%和11.19-11.30的学员提成10%计算为该导师的11月总导师激励提成</div>
<div class='mb10'>3、删除解绑学员时不影响订单提成规则,如8月18日关联导师,8月20日解绑学员时,导师在9月初将计算8.18-8.20该学员的订单提成比例,并入导师提成激励计算到9月初发放的最终工资中。</div>
<div class='mb10'>4、按导师学院的绑定关系计算,区间月份含当月,0即为第一个月份,0-3代表前三个月,4-6代表第四到第六个月整,以此类推</div>`
<div class='mb10'>4、按导师学员的绑定关系计算,区间月份含当月,0即为第一个月份,0-3代表前三个月,4-6代表第四到第六个月整,以此类推</div>`
}
return infoObj[this.diffExplain]
},
......
......@@ -240,9 +240,6 @@ export default {
if (val > 0) { // 编辑进入
this.initformData(false)
}
// let idx = this.editFormData.findIndex(v => v.name == 'setTitle')
// let index = this.editFormData[idx]?.optionList?.findIndex(subV => subV.confId == val)
// index > -1 && this.editFormData[idx].optionList.splice(index, 1)
},
deep: true
},
......@@ -279,6 +276,7 @@ export default {
handler(val) {
this.selectedRelateOptions = []
val?.forEach(v => {
// 已选的初级员工
this.selectedRelateOptions.push(v.staffUuid)
})
},
......@@ -308,9 +306,9 @@ export default {
}),
getNoRelateStaffList() {
let routerQuery = this.routerQuery
getNoRelateStaffListApi({ sceneType: this.routerQuery?.sceneType, currentPage: 1, pageSize: 9999 }).then(res => {
getNoRelateStaffListApi({ sceneType: this.routerQuery?.sceneType, merchantId: routerQuery?.yqMerchantObj?.merchantId, currentPage: 1, pageSize: 9999 }).then(res => {
// 需过滤当前员工
let index = res?.list.findIndex(val => val.staffUuid = routerQuery?.staffUuid)
let index = res?.list.findIndex(val => val.staffUuid == routerQuery?.staffUuid)
if (index > -1) res.list?.splice(index, 1)
this.staffList = res?.list || []
})
......@@ -343,7 +341,7 @@ export default {
// 删除关联的初级驻店销售
handleRelateDelete(index) {
let list = this.configInfo.studentStaffs
this.$confirm('删除学员后,后续订单不再计入导师提成', '提示', {
this.$confirm('删除学员后,后续订单不再计入导师提成,是否确定删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......@@ -429,10 +427,6 @@ export default {
// 导师附加提成奖励项删除
handleDelete(item, index) {
let list = this.configInfo
// if (index == list[item]?.length - 1 && index != 0) {
// list[item][index - 1].endMonth = 99
// list[item][index - 1].isEndEdit = true
// }
list[item]?.splice(index, 1)
},
handleExplain(item) {
......
......@@ -318,8 +318,9 @@ export default {
} else {
formRules.basicWage[0].required = false
}
if (this.$refs.editFormRef1.$refs['editChildRef']) {
if (this?.$refs?.editFormRef1?.$refs['editChildRef']) {
this.$nextTick(() => {
// 工资绩效开关 清除表单校验
this.$refs.editFormRef1.$refs['editChildRef'].clearValidate()
})
}
......@@ -328,8 +329,9 @@ export default {
},
'staffPerformanceConfig.businessSchoolEnableFlag': {
handler(val) {
if (this.$refs.editFormRef1.$refs['editChildRef']) {
if (this?.$refs?.editFormRef1?.$refs['editChildRef']) {
this.$nextTick(() => {
// 商学院开关 清除表单校验
this.$refs.editFormRef1.$refs['editChildRef'].clearValidate()
})
}
......@@ -343,6 +345,7 @@ export default {
yqMerchantObj: JSON.parse(this.$route.query?.yqMerchantObj),
partnerMerchantArr: JSON.parse(this.$route.query?.partnerMerchantArr)
}
// 获取配置详情
this.getConfigInfo()
},
methods: {
......@@ -641,7 +644,7 @@ export default {
},
// 重置密码
handleResetPassword() {
this.$confirm('是否重置密码?重置密码后用户可在小程序重新设置新密码', '提示', {
this.$confirm('重置密码后用户可在小程序重新设置新密码,是否重置密码?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -102,21 +102,23 @@
:is-visible="exportFileVisible"
@closeDialog="handleExport"
@confirmDialog="handleConfirmExport"
width="480px">
width="580px">
<slot>
<el-form :model="exportFileForm"
ref="exportFileRuleForm"
label-width="140px">
label-width="140px"
:rules="exportFormRules">
<el-form-item label="选择导出月份:" prop="exportMonth">
<el-date-picker
v-model="exportFileForm.exportMonth"
class="wid_280"
type="month"
placeholder="选择月"
:picker-options="beforeRangePickerOptions">
</el-date-picker>
</el-form-item>
<el-form-item label="选择园区店:" prop="exportYqMerchantId">
<el-select class="merchant-select" v-model="exportFileForm.exportYqMerchantId" multiple collapse-tags clearable>
<el-select class="wid_280" v-model="exportFileForm.exportYqMerchantId" multiple collapse-tags filterable clearable>
<el-option v-for="(item, index) in yqMerchantList" :key="index" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select>
</el-form-item>
......@@ -158,6 +160,9 @@ export default {
exportYqMerchantId: [],
exportMonth: ''
},
exportFormRules: {
exportMonth: [{ required: true, message: '请选择导出月份', trigger: 'blur' }]
},
fileRules: {
fileName: [{ required: true, message: '请上传文件', trigger: 'change' }]
},
......@@ -380,22 +385,31 @@ export default {
this.$refs.exportFileRuleForm && this.$refs.exportFileRuleForm.resetFields()
},
handleConfirmExport() {
var params = {
yqMerchantIds: this.exportFileForm?.exportYqMerchantId,
dataMonthStr: this.exportFileForm?.exportMonth ? Util.dateFormate(this.exportFileForm?.exportMonth, 'YYYY-MM') : '',
sceneType: this.sceneType
}
params.method = 'dj.api.businessSchool.staff.exportAsync'
const list = [
...this.dowloadList,
{
name: '',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
this.$refs['exportFileRuleForm'].validate(valid => {
if (valid) {
var params = {
dataMonthStr: this.exportFileForm?.exportMonth ? Util.dateFormate(this.exportFileForm?.exportMonth, 'YYYY-MM') : '',
sceneType: this.sceneType
}
this.exportFileForm?.exportYqMerchantId?.forEach((val, index) => {
let merchantId = `yqMerchantIds[${index}]`
params[merchantId] = val
})
params.method = 'dj.api.businessSchool.staff.exportAsync'
const list = [
...this.dowloadList,
{
name: '',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
this.handleExport()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
})
},
// 绩效配置
handlePerformance(row) {
......@@ -510,7 +524,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .merchant-select{
width: 220px;
::v-deep .wid_280{
width: 280px !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!